mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-31 15:09:26 +08:00
fix: skillTree & 序章提交成绩
This commit is contained in:
parent
e7b4d4cd74
commit
99402b33d8
@ -18,17 +18,6 @@ main.floors.MT5=
|
||||
"parallelDo": "",
|
||||
"events": {
|
||||
"14,7": [
|
||||
{
|
||||
"type": "confirm",
|
||||
"text": "是否提交序章成绩?",
|
||||
"yes": [
|
||||
{
|
||||
"type": "win",
|
||||
"reason": "踏上旅途"
|
||||
}
|
||||
],
|
||||
"no": []
|
||||
},
|
||||
{
|
||||
"type": "if",
|
||||
"condition": "(flag:cave==1)",
|
||||
@ -49,6 +38,20 @@ main.floors.MT5=
|
||||
}
|
||||
],
|
||||
"false": [
|
||||
{
|
||||
"type": "confirm",
|
||||
"text": "是否提交序章成绩?",
|
||||
"yes": [
|
||||
{
|
||||
"type": "win",
|
||||
"reason": "踏上旅途"
|
||||
},
|
||||
{
|
||||
"type": "exit"
|
||||
}
|
||||
],
|
||||
"no": []
|
||||
},
|
||||
{
|
||||
"type": "setCurtain",
|
||||
"color": [
|
||||
|
@ -221,7 +221,8 @@ export function getSkillFromIndex(index: number) {
|
||||
* 获取技能等级
|
||||
*/
|
||||
export function getSkillLevel(skill: number) {
|
||||
return levels[skill] ?? 0;
|
||||
levels[skill] ??= 0;
|
||||
return levels[skill];
|
||||
}
|
||||
|
||||
export function getSkillConsume(skill: number) {
|
||||
|
@ -23,7 +23,9 @@ export function getAddStatus(equip: Equip) {
|
||||
{keys.map(v => {
|
||||
const value = Math.floor(
|
||||
(equip.value[v] ?? 0) * core.getBuff(v) +
|
||||
(core.status.hero[v] * (equip.percentage[v] ?? 0)) / 100
|
||||
(core.status.hero[v as keyof HeroStatus] *
|
||||
(equip.percentage[v] ?? 0)) /
|
||||
100
|
||||
);
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user