Browse Source

Update battle.vue

master
许孟阳 1 week ago
parent
commit
8c749f0256
  1. 2
      src/views/dungeon/battle.vue

2
src/views/dungeon/battle.vue

@ -104,7 +104,7 @@ const playerMove = (monsterIdx?, playerIdx?) => {
const battleWithMonster = (monster) => { const battleWithMonster = (monster) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const player = state.playerAttribute.attribute; const player = state.playerAttribute.attribute;
const battleTime = Math.round(player_battle_time * 100 / (100 + state.rebornAttribute.battleSpeed)) const battleTime = Math.ceil(player_battle_time * 100 / (100 + state.rebornAttribute.battleSpeed))
const getMsg = (i18nName, takeDmg) => { const getMsg = (i18nName, takeDmg) => {
return t(i18nName).replace('${lv}', monster.lv).replace('${name}', t('difficulty.' + props.dungeon?.difficulty) + t(monster.type)).replace('${dmg}', takeDmg + ''); return t(i18nName).replace('${lv}', monster.lv).replace('${name}', t('difficulty.' + props.dungeon?.difficulty) + t(monster.type)).replace('${dmg}', takeDmg + '');
}; };

Loading…
Cancel
Save