Browse Source

fix bug

v1.0
许孟阳 2 weeks ago
parent
commit
6ea4a4dbe2
  1. 2
      src/tool/caller/battle.ts
  2. 5
      src/views/backpack/strengthen.vue

2
src/tool/caller/battle.ts

@ -106,7 +106,7 @@ export const createBattleRole = (player: Player, monster: Monster, commit) => { @@ -106,7 +106,7 @@ export const createBattleRole = (player: Player, monster: Monster, commit) => {
const playerRole = new BattleRole(player.attribute, commit, 'player');
const palyerEquips = [player.weapon, player.armor, player.neck, player.ring, player.jewelry];
palyerEquips.forEach((equip) => {
playerRole.addSkill(equip.base.skill);
equip && playerRole.addSkill(equip.base.skill);
});
monster = deepCopy(monster);

5
src/views/backpack/strengthen.vue

@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
<div class="btn-group" v-if='!auto'>
<p>{{ t('stren.0') }}<span :class="{ 'red': useCoins < needCoins }">{{ needCoins }}</span></p>
<button class="button" @click="strengthen(false)">{{ t('stren.1') }}+{{ parseInt(equip.strengthenLv) + 1
}}</button>
}}</button>
</div>
<div class="btn-group" v-if='!auto'>
<p>{{ t('stren.0') }}<span :class="{ 'red': useCoins < needCoins }">{{ needCoins }}</span></p>
@ -76,7 +76,7 @@ import { reactive, onMounted, ref, computed, watch } from "vue"; @@ -76,7 +76,7 @@ import { reactive, onMounted, ref, computed, watch } from "vue";
import { useI18n } from "vue3-i18n";
import { Tooltip, EquipIcon } from "@/components"
import { strengthenValue, strengthenCoins } from "@/tool"
import { extra_entry_num, weaponExtraEntry, armorExtraEntry, neckExtraEntry, ringExtraEntry, strengthen_rates, jewelryExtraEntry, pantsExtraEntry, shoesExtraEntry } from "@/config";
import { extra_entry_num, weaponExtraEntry, armorExtraEntry, neckExtraEntry, ringExtraEntry, strengthen_rates, jewelryExtraEntry, pantsExtraEntry, shoesExtraEntry, bracersExtraEntry } from "@/config";
const { t } = useI18n();
const { state, commit, dispatch } = useStore();
@ -158,6 +158,7 @@ const reforger = { @@ -158,6 +158,7 @@ const reforger = {
jewelry: jewelryExtraEntry,
pants: pantsExtraEntry,
shoes: shoesExtraEntry,
bracers: bracersExtraEntry,
}
const reforge = () => {

Loading…
Cancel
Save