Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
new_taobao
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
new_taobao
Commits
4d878121
Commit
4d878121
authored
Oct 16, 2020
by
zhangjinzhou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂存
parent
57c9cccb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
pagegamemain.js
taobao_jn/client/pages/pagegamemain/pagegamemain.js
+4
-4
No files found.
taobao_jn/client/pages/pagegamemain/pagegamemain.js
View file @
4d878121
...
@@ -226,7 +226,7 @@ Page({
...
@@ -226,7 +226,7 @@ Page({
},
4000
);
},
4000
);
},
},
//新ai逻辑,tool==使用道具,task==任务,invite==邀请人
//新ai逻辑,tool==使用道具,task==任务,invite==邀请人
async
newAiControl
(
type
=
"tool"
,
ainum
=
1
)
{
async
newAiControl
(
type
=
"tool"
,
ainum
=
1
,
aiwarm
=
0
)
{
let
canwin
=
this
.
data
.
canwin
;
let
canwin
=
this
.
data
.
canwin
;
let
roomnums
=
this
.
data
.
roomnums
-
1
;
let
roomnums
=
this
.
data
.
roomnums
-
1
;
let
roomdata
=
this
.
data
.
roomdata
;
let
roomdata
=
this
.
data
.
roomdata
;
...
@@ -239,15 +239,15 @@ Page({
...
@@ -239,15 +239,15 @@ Page({
let
fromedir
=
Math
.
random
();
let
fromedir
=
Math
.
random
();
if
(
fromedir
<
0.5
)
{
if
(
fromedir
<
0.5
)
{
for
(
let
i
=
0
;
i
<
roomdata
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
roomdata
.
length
;
i
++
)
{
havechao
=
this
.
newAiControl1
(
i
,
canwin
,
roomnums
,
roomdata
,
myidx
,
mywd
,
havechao
,
type
,
ainum
);
havechao
=
this
.
newAiControl1
(
i
,
canwin
,
roomnums
,
roomdata
,
myidx
,
mywd
,
havechao
,
type
,
ainum
,
aiwarm
);
}
}
}
else
{
}
else
{
for
(
let
i
=
roomdata
.
length
-
1
;
i
>
-
1
;
i
--
)
{
for
(
let
i
=
roomdata
.
length
-
1
;
i
>
-
1
;
i
--
)
{
havechao
=
this
.
newAiControl1
(
i
,
canwin
,
roomnums
,
roomdata
,
myidx
,
mywd
,
havechao
,
type
,
ainum
);
havechao
=
this
.
newAiControl1
(
i
,
canwin
,
roomnums
,
roomdata
,
myidx
,
mywd
,
havechao
,
type
,
ainum
,
aiwarm
);
}
}
}
}
},
},
newAiControl1
(
i
,
canwin
,
roomnums
,
roomdata
,
myidx
,
mywd
,
havechao
,
type
=
"tool"
,
ainum
=
1
)
{
newAiControl1
(
i
,
canwin
,
roomnums
,
roomdata
,
myidx
,
mywd
,
havechao
,
type
=
"tool"
,
ainum
=
1
,
aiwarm
=
0
)
{
if
(
i
==
myidx
)
{
if
(
i
==
myidx
)
{
}
else
{
}
else
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment