fix: skillTree & 序章提交成绩

This commit is contained in:
unanmed 2024-11-14 18:39:31 +08:00
parent e7b4d4cd74
commit 99402b33d8
3 changed files with 19 additions and 13 deletions

View File

@ -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": [

View File

@ -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) {

View File

@ -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 (