Commit 9812cb83f03febf7b934c2e71fb3a98fd9bcbee9

Authored by zhouhaihai
1 parent 386ca58e

冒险队属性

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/adv/AdvBattle.lua
@@ -60,7 +60,7 @@ function Battle:initPlayer() @@ -60,7 +60,7 @@ function Battle:initPlayer()
60 local baseAttr = csvdb["adv_unitCsv"][math.floor(self.adv.advInfo.chapter / 100)] 60 local baseAttr = csvdb["adv_unitCsv"][math.floor(self.adv.advInfo.chapter / 100)]
61 for _, attr in pairs(AttsEnumEx) do 61 for _, attr in pairs(AttsEnumEx) do
62 if baseAttr[attr] then 62 if baseAttr[attr] then
63 - player[attr] = baseAttr[attr] + baseAttr[attr] * player.growth * player.level 63 + player[attr] = baseAttr[attr] + baseAttr[attr] * player.growth * (player.level - 1)
64 end 64 end
65 end 65 end
66 player.hpMax = player.hp or 0 66 player.hpMax = player.hp or 0