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
9446ee6e
Commit
9446ee6e
authored
May 13, 2020
by
zjz1994
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
红包调整
parent
02ce9d89
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
MainScene.ts
egret/src/mainScene/MainScene.ts
+2
-3
award.json
mock/happyclear/award.json
+0
-1
baseinfo.json
mock/happyclear/baseinfo.json
+1
-1
No files found.
egret/src/mainScene/MainScene.ts
View file @
9446ee6e
...
@@ -501,7 +501,7 @@ export default class MainScene extends Scene {
...
@@ -501,7 +501,7 @@ export default class MainScene extends Scene {
// window['gm'] = this.gm;
// window['gm'] = this.gm;
//第几关
//第几关
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
this
.
chapter
=
(
data
&&
data
.
chapter
)
?
data
.
chapter
:
1
;
this
.
chapter
=
1
;
//
this.chapter = 1;
//关卡数据
//关卡数据
this
.
chapterData
=
getChapterData
(
this
.
chapter
);
this
.
chapterData
=
getChapterData
(
this
.
chapter
);
//初始化目标信息
//初始化目标信息
...
@@ -1548,9 +1548,8 @@ export default class MainScene extends Scene {
...
@@ -1548,9 +1548,8 @@ export default class MainScene extends Scene {
//初始化节日元素
//初始化节日元素
async
initFestivalEle
()
{
async
initFestivalEle
()
{
//添加节日元素,条件可能会变
//添加节日元素,条件可能会变
console
.
log
(
"节日元素判定"
,
fesChapterData
,
this
.
chapter
,
getRedBombTimes
(),
window
[
'fresp'
],
this
.
lattices
[
festivalIndex
]);
var
guidelevels
=
[
1
,
2
,
3
,
5
,
8
,
9
,
10
,
12
,
17
,
25
,
41
,
61
,
101
,
121
,
226
,
301
,
331
,
377
,
406
,
426
,
453
,
501
,
556
,
601
,
661
];
var
guidelevels
=
[
1
,
2
,
3
,
5
,
8
,
9
,
10
,
12
,
17
,
25
,
41
,
61
,
101
,
121
,
226
,
301
,
331
,
377
,
406
,
426
,
453
,
501
,
556
,
601
,
661
];
if
(
guidelevels
.
indexOf
(
this
.
chapter
)
!=-
1
){
if
(
guidelevels
.
indexOf
(
this
.
chapter
)
!=-
1
&&!
readCache
(
getCacheKey
()
+
this
.
chapter
)
){
return
false
;
return
false
;
}
}
if
(
if
(
...
...
mock/happyclear/award.json
View file @
9446ee6e
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
"desc"
:
"OK"
,
"desc"
:
"OK"
,
"timestamp"
:
1579512019430
,
"timestamp"
:
1579512019430
,
"data"
:
{
"data"
:
{
"option"
:
{
"img"
:
"//yun.duiba.com.cn/images/201607/73htz55ih9.jpg"
},
"orderNum"
:
null
,
"orderNum"
:
null
,
"remainAwardTimes"
:
0
"remainAwardTimes"
:
0
}
}
...
...
mock/happyclear/baseinfo.json
View file @
9446ee6e
{
{
"code"
:
"0000000000"
,
"code"
:
"0000000000"
,
"data"
:{
"data"
:{
"remain"
:
7
,
"remain"
:
1
,
"redBombSwitchTime"
:
"77798963487234"
"redBombSwitchTime"
:
"77798963487234"
},
},
"desc"
:
"OK"
,
"desc"
:
"OK"
,
...
...
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