Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
xiaoxiaole
Commits
0546722c
Commit
0546722c
authored
Dec 21, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b1774c6a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
7 deletions
+10
-7
MainScene.ts
egret/src/mainScene/MainScene.ts
+2
-2
Tool.ts
egret/src/something/Tool.ts
+1
-1
Chapter12.ts
egret/src/something/chapters/Chapter12.ts
+1
-1
Chapter13.ts
egret/src/something/chapters/Chapter13.ts
+4
-2
AiControl.ts
egret/src/something/logic/AiControl.ts
+2
-1
No files found.
egret/src/mainScene/MainScene.ts
View file @
0546722c
...
@@ -772,7 +772,7 @@ export default class MainScene extends Scene {
...
@@ -772,7 +772,7 @@ export default class MainScene extends Scene {
if
(
if
(
fesChapterData
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
&&
fesChapterData
.
indexOf
(
this
.
chapter
>>
0
)
>
-
1
&&
getRedBombTimes
()
&&
getRedBombTimes
()
&&
Math
.
random
()
>
0.4
&&
//
Math.random() > 0.4 &&
this
.
lattices
[
festivalIndex
]
&&
//格子必须有
this
.
lattices
[
festivalIndex
]
&&
//格子必须有
(
Tool
.
judgeSetFesEle
(
this
.
lattices
[
festivalIndex
])
||
!
this
.
lattices
[
festivalIndex
].
element
)
//没有元素也行
(
Tool
.
judgeSetFesEle
(
this
.
lattices
[
festivalIndex
])
||
!
this
.
lattices
[
festivalIndex
].
element
)
//没有元素也行
)
{
)
{
...
@@ -2883,7 +2883,7 @@ export default class MainScene extends Scene {
...
@@ -2883,7 +2883,7 @@ export default class MainScene extends Scene {
});
});
//如果附近有节日小红包
//如果附近有节日小红包
this
.
checkNebEle
(
latttice
,
(
lat
)
=>
{
this
.
checkNebEle
(
latttice
,
(
lat
)
=>
{
return
lat
&&
lat
.
element
&&
lat
.
element
.
type
==
ElementType
.
FESTIVALELE_SMALL
;
return
lat
&&
lat
.
element
&&
lat
.
element
.
type
==
ElementType
.
FESTIVALELE_SMALL
&&
(
!
lat
.
block
||
!
lat
.
block
.
isLock
())
;
});
});
}
}
...
...
egret/src/something/Tool.ts
View file @
0546722c
...
@@ -383,8 +383,8 @@ export class Tool {
...
@@ -383,8 +383,8 @@ export class Tool {
*/
*/
public
static
judgeSetFesEle
(
lat
:
Lattice
)
{
public
static
judgeSetFesEle
(
lat
:
Lattice
)
{
if
(
Tool
.
judgeBaseEle
(
lat
)
&&
//基础元素
if
(
Tool
.
judgeBaseEle
(
lat
)
&&
//基础元素
!
lat
.
block
&&
!
lat
.
element
.
hasState
(
StateType
.
HAIRBALLGREY
)
&&
//不带毛球,下同
!
lat
.
element
.
hasState
(
StateType
.
HAIRBALLGREY
)
&&
//不带毛球,下同
!
lat
.
element
.
hasState
(
StateType
.
BLOCK_LOCK
)
&&
!
lat
.
element
.
hasState
(
StateType
.
HAIRBALLBLACK
)
&&
!
lat
.
element
.
hasState
(
StateType
.
HAIRBALLBLACK
)
&&
!
lat
.
element
.
hasState
(
StateType
.
HAIRBALLBROWN
)
!
lat
.
element
.
hasState
(
StateType
.
HAIRBALLBROWN
)
)
{
)
{
...
...
egret/src/something/chapters/Chapter12.ts
View file @
0546722c
...
@@ -263,7 +263,7 @@ export const Chapters12: ChapterData[] = [
...
@@ -263,7 +263,7 @@ export const Chapters12: ChapterData[] = [
},
},
//226
//226
{
{
baseElementTypes
:
[
4
,
3
,
2
,
0
,
1
],
bubbleProbability
:
0
,
stepCount
:
28
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
2
9
}]
},
starScores
:
[
12000
,
18000
,
22000
],
map
:
{
baseElementTypes
:
[
4
,
3
,
2
,
0
,
1
],
bubbleProbability
:
0
,
stepCount
:
28
,
passTarget
:
{
type
:
1
,
elements
:
[{
type
:
9
,
count
:
2
8
}]
},
starScores
:
[
12000
,
18000
,
22000
],
map
:
{
lattices
:
[
lattices
:
[
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
...
...
egret/src/something/chapters/Chapter13.ts
View file @
0546722c
...
@@ -22,7 +22,7 @@ export const Chapters13: ChapterData[] = [
...
@@ -22,7 +22,7 @@ export const Chapters13: ChapterData[] = [
1
,
3
,
1
,
1
,
6
,
1
,
1
,
3
,
1
,
1
,
3
,
1
,
1
,
6
,
1
,
1
,
3
,
1
,
3
,
1
,
3
,
6
,
1
,
6
,
3
,
1
,
3
,
3
,
1
,
3
,
6
,
6
,
6
,
3
,
1
,
3
,
1
,
3
,
1
,
1
,
6
,
1
,
1
,
3
,
1
,
1
,
3
,
1
,
1
,
6
,
1
,
1
,
3
,
1
,
...
@@ -30,7 +30,9 @@ export const Chapters13: ChapterData[] = [
...
@@ -30,7 +30,9 @@ export const Chapters13: ChapterData[] = [
0
,
1
,
61
,
61
,
1
,
61
,
61
,
1
,
0
,
0
,
1
,
61
,
61
,
1
,
61
,
61
,
1
,
0
,
0
,
0
,
1
,
1
,
3
,
1
,
1
,
0
,
0
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
7
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
2
,
1
,
1
,
2
,
1
,
2
,
7
,
2
,
2
,
7
,
2
,
2
,
7
,
2
,
5
,
2
,
7
,
5
,
2
,
5
,
7
,
2
,
5
,
2
,
2
,
7
,
5
,
2
,
5
,
7
,
2
,
2
,
1
,
5
,
2
,
2
,
7
,
2
,
2
,
5
,
1
,
1
,
1
,
5
,
5
,
2
,
5
,
5
,
1
,
1
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
}]
0
,
0
,
1
,
1
,
3
,
1
,
1
,
0
,
0
],
connectedLats
:
[],
elements
:
[
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
7
,
2
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
1
,
1
,
1
,
2
,
1
,
1
,
2
,
1
,
1
,
2
,
1
,
2
,
7
,
2
,
2
,
7
,
2
,
2
,
7
,
2
,
5
,
2
,
7
,
5
,
2
,
5
,
7
,
2
,
5
,
2
,
2
,
7
,
5
,
2
,
5
,
7
,
2
,
2
,
1
,
5
,
2
,
2
,
7
,
2
,
2
,
5
,
1
,
1
,
1
,
5
,
5
,
2
,
5
,
5
,
1
,
1
],
baseElements
:
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
],
recycles
:
[],
generateLats
:
[{
index
:
0
,
type
:
null
},
{
index
:
1
,
type
:
null
},
{
index
:
2
,
type
:
null
},
{
index
:
3
,
type
:
null
},
{
index
:
4
,
type
:
null
},
{
index
:
5
,
type
:
null
},
{
index
:
6
,
type
:
null
},
{
index
:
7
,
type
:
null
},
{
index
:
8
,
type
:
null
}]
}
}
},
},
//243
//243
...
...
egret/src/something/logic/AiControl.ts
View file @
0546722c
...
@@ -112,7 +112,8 @@ export class AiControl {
...
@@ -112,7 +112,8 @@ export class AiControl {
var
lat
=
thisObj
.
lattices
[
a
];
var
lat
=
thisObj
.
lattices
[
a
];
//是基础元素,但是不能有任何状态, 考虑修改小红包属性为可fall,
//是基础元素,但是不能有任何状态, 考虑修改小红包属性为可fall,
if
(
Tool
.
judgeBaseEle
(
lat
)
&&
if
(
Tool
.
judgeBaseEle
(
lat
)
&&
!
lat
.
element
.
hasAnyState
()
!
lat
.
element
.
hasAnyState
()
&&
(
!
lat
.
block
||
!
lat
.
block
.
isLock
())
//如果是石门的话,石门必须是开启的状态
)
{
)
{
redIndexs
.
push
(
a
);
redIndexs
.
push
(
a
);
}
}
...
...
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