feat: 极昼永夜数值显示

This commit is contained in:
unanmed 2025-02-26 21:34:38 +08:00
parent 9e05bb3287
commit 87c7e0909b
2 changed files with 15 additions and 2 deletions

View File

@ -107,7 +107,8 @@ const MainScene = defineComponent(() => {
springCount: 0,
floor: 'MT0',
replaying: false,
replayStatus
replayStatus,
night: 0
});
const { getHeroStatusOn } = Mota.requireAll('fn');
@ -133,10 +134,11 @@ const MainScene = defineComponent(() => {
leftStatus.exAtk = getHeroStatusOn('mana');
leftStatus.magicDef = getHeroStatusOn('magicDef');
const { HeroSkill } = Mota.require('module', 'Mechanism');
const { HeroSkill, NightSpecial } = Mota.require('module', 'Mechanism');
rightStatus.autoSkill = HeroSkill.getAutoSkill();
rightStatus.skillName = HeroSkill.getSkillName();
rightStatus.skillDesc = HeroSkill.getSkillDesc();
rightStatus.night = NightSpecial.getNight(floor);
rightStatus.floor = floor;
rightStatus.replaying = core.isReplaying();
const { pausing, speed, toReplay, totalList } = core.status.replay;

View File

@ -195,6 +195,8 @@ export interface IRightHeroStatus {
replaying: boolean;
/** 录像播放状态 */
replayStatus: ReplayingStatus;
/** 极昼永夜 */
night: number;
}
export const RightStatusBar = defineComponent<StatusBarProps<IRightHeroStatus>>(
@ -246,6 +248,15 @@ export const RightStatusBar = defineComponent<StatusBarProps<IRightHeroStatus>>(
valueColor: '#a7ffa7'
});
}
if (s.night !== 0) {
const text = s.night.toString();
data.push({
name: '极昼永夜',
nameColor: '#a3f8ff',
value: s.night > 0 ? '+' + text : text,
valueColor: s.night > 0 ? '#a7ffa7' : '#ffa7a7'
});
}
return data;
});