mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-04-18 17:48:52 +08:00
feat: 极昼永夜数值显示
This commit is contained in:
parent
9e05bb3287
commit
87c7e0909b
@ -107,7 +107,8 @@ const MainScene = defineComponent(() => {
|
|||||||
springCount: 0,
|
springCount: 0,
|
||||||
floor: 'MT0',
|
floor: 'MT0',
|
||||||
replaying: false,
|
replaying: false,
|
||||||
replayStatus
|
replayStatus,
|
||||||
|
night: 0
|
||||||
});
|
});
|
||||||
|
|
||||||
const { getHeroStatusOn } = Mota.requireAll('fn');
|
const { getHeroStatusOn } = Mota.requireAll('fn');
|
||||||
@ -133,10 +134,11 @@ const MainScene = defineComponent(() => {
|
|||||||
leftStatus.exAtk = getHeroStatusOn('mana');
|
leftStatus.exAtk = getHeroStatusOn('mana');
|
||||||
leftStatus.magicDef = getHeroStatusOn('magicDef');
|
leftStatus.magicDef = getHeroStatusOn('magicDef');
|
||||||
|
|
||||||
const { HeroSkill } = Mota.require('module', 'Mechanism');
|
const { HeroSkill, NightSpecial } = Mota.require('module', 'Mechanism');
|
||||||
rightStatus.autoSkill = HeroSkill.getAutoSkill();
|
rightStatus.autoSkill = HeroSkill.getAutoSkill();
|
||||||
rightStatus.skillName = HeroSkill.getSkillName();
|
rightStatus.skillName = HeroSkill.getSkillName();
|
||||||
rightStatus.skillDesc = HeroSkill.getSkillDesc();
|
rightStatus.skillDesc = HeroSkill.getSkillDesc();
|
||||||
|
rightStatus.night = NightSpecial.getNight(floor);
|
||||||
rightStatus.floor = floor;
|
rightStatus.floor = floor;
|
||||||
rightStatus.replaying = core.isReplaying();
|
rightStatus.replaying = core.isReplaying();
|
||||||
const { pausing, speed, toReplay, totalList } = core.status.replay;
|
const { pausing, speed, toReplay, totalList } = core.status.replay;
|
||||||
|
@ -195,6 +195,8 @@ export interface IRightHeroStatus {
|
|||||||
replaying: boolean;
|
replaying: boolean;
|
||||||
/** 录像播放状态 */
|
/** 录像播放状态 */
|
||||||
replayStatus: ReplayingStatus;
|
replayStatus: ReplayingStatus;
|
||||||
|
/** 极昼永夜 */
|
||||||
|
night: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const RightStatusBar = defineComponent<StatusBarProps<IRightHeroStatus>>(
|
export const RightStatusBar = defineComponent<StatusBarProps<IRightHeroStatus>>(
|
||||||
@ -246,6 +248,15 @@ export const RightStatusBar = defineComponent<StatusBarProps<IRightHeroStatus>>(
|
|||||||
valueColor: '#a7ffa7'
|
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;
|
return data;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user