Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MingSnake_241120
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
MingSnake_241120
Commits
3db437e7
Commit
3db437e7
authored
Dec 31, 2024
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
11ccbca6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
BlessingBagPage.ts
assets/Scripts/Scenes/BlessingBagPage.ts
+18
-18
No files found.
assets/Scripts/Scenes/BlessingBagPage.ts
View file @
3db437e7
...
...
@@ -276,58 +276,58 @@ export class BlessingBagPage extends Scene {
}
//银福袋开启一个
SliverOneBtn
()
{
SliverOneBtn
=
_asyncThrottle
(
async
()
=>
{
if
(
store
.
bagInfo
.
remainBagSilverNum
<
1
)
{
showToast
(
"福袋数量不足"
);
}
else
{
showPanel
(
OpenLuckyPanel
,
{
num
:
1
,
type
:
"sliver"
});
await
showPanel
(
OpenLuckyPanel
,
{
num
:
1
,
type
:
"sliver"
});
}
}
}
);
//银福袋开启五个
SliverFiveBtn
()
{
SliverFiveBtn
=
_asyncThrottle
(
async
()
=>
{
if
(
store
.
bagInfo
.
remainBagSilverNum
<
5
)
{
showToast
(
"福袋数量不足"
);
}
else
{
showPanel
(
OpenLuckyPanel
,
{
num
:
5
,
type
:
"sliver"
});
await
showPanel
(
OpenLuckyPanel
,
{
num
:
5
,
type
:
"sliver"
});
}
}
}
);
//金福袋开启一个
GoldOneBtn
()
{
GoldOneBtn
=
_asyncThrottle
(
async
()
=>
{
if
(
store
.
bagInfo
.
remainBagSilverNum
<
store
.
bagInfo
.
bagSilverToGold
)
{
showToast
(
"福袋数量不足"
);
}
else
{
showPanel
(
OpenLuckyPanel
,
{
num
:
1
,
type
:
"gold"
})
await
showPanel
(
OpenLuckyPanel
,
{
num
:
1
,
type
:
"gold"
})
}
}
}
);
//金福袋开启五个
GoldFiveBtn
()
{
GoldFiveBtn
=
_asyncThrottle
(
async
()
=>
{
if
(
store
.
bagInfo
.
remainBagSilverNum
<
store
.
bagInfo
.
bagSilverToGold
*
5
)
{
showToast
(
"福袋数量不足"
);
}
else
{
showPanel
(
OpenLuckyPanel
,
{
num
:
5
,
type
:
"gold"
})
await
showPanel
(
OpenLuckyPanel
,
{
num
:
5
,
type
:
"gold"
})
}
}
}
);
//钻石福袋开启五个
DiamondOneBtn
()
{
DiamondOneBtn
=
_asyncThrottle
(
async
()
=>
{
if
(
store
.
bagInfo
.
remainBagSilverNum
<
store
.
bagInfo
.
bagSilverToDiamond
)
{
showToast
(
"福袋数量不足"
);
}
else
{
showPanel
(
OpenLuckyPanel
,
{
num
:
1
,
type
:
"diamond"
});
await
showPanel
(
OpenLuckyPanel
,
{
num
:
1
,
type
:
"diamond"
});
}
}
}
);
//钻石福袋开启一个
DiamondFiveBtn
()
{
DiamondFiveBtn
=
_asyncThrottle
(
async
()
=>
{
if
(
store
.
bagInfo
.
remainBagSilverNum
<
store
.
bagInfo
.
bagSilverToDiamond
*
5
)
{
showToast
(
"福袋数量不足"
);
}
else
{
showPanel
(
OpenLuckyPanel
,
{
num
:
5
,
type
:
"diamond"
});
await
showPanel
(
OpenLuckyPanel
,
{
num
:
5
,
type
:
"diamond"
});
}
}
}
);
//去赚福袋任务
...
...
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