Commit 8019d0bb71b63bd76724e080ca8d08130cfbceba
1 parent
6d272f65
冒险buff 调整
Showing
3 changed files
with
5 additions
and
5 deletions
Show diff stats
src/adv/AdvBattle.lua
| ... | ... | @@ -61,7 +61,7 @@ function Battle:initPlayer() |
| 61 | 61 | local baseAttr = csvdb["adv_unitCsv"][self.adv.chapterId] |
| 62 | 62 | for _, attr in pairs(AttsEnumEx) do |
| 63 | 63 | if baseAttr[attr] then |
| 64 | - player[attr] = baseAttr[attr] + baseAttr[attr] * player.growth * (player.level - 1) | |
| 64 | + player[attr] = baseAttr[attr] + player.growth * (player.level - 1) | |
| 65 | 65 | end |
| 66 | 66 | end |
| 67 | 67 | player.hpMax = player.hp or 0 | ... | ... |
src/adv/AdvBuff.lua
| ... | ... | @@ -204,7 +204,7 @@ local BuffFactory = { |
| 204 | 204 | self._changeV = baseOwner[attrs[self.buffData.effectValue3]] * self.buffData.effectValue2 / 100 |
| 205 | 205 | end |
| 206 | 206 | if self._changeV < 0 then |
| 207 | - self._changeV = -self.release:getHurtValue(-self._changeV) | |
| 207 | + self._changeV = self.release and -self.release:getHurtValue(-self._changeV) or self._changeV | |
| 208 | 208 | end |
| 209 | 209 | end |
| 210 | 210 | _Buff._initDB = function(self, data) | ... | ... |
src/adv/AdvPlayer.lua
| ... | ... | @@ -470,11 +470,11 @@ function Player:addExp(value) |
| 470 | 470 | local baseAttr = csvdb["adv_unitCsv"][self.battle.adv.chapterId] |
| 471 | 471 | for _, attr in pairs(AttsEnumEx) do |
| 472 | 472 | if baseAttr[attr] then |
| 473 | - self[attr] = self[attr] + baseAttr[attr] * self.growth * delta | |
| 473 | + self[attr] = self[attr] + self.growth * delta | |
| 474 | 474 | if attr == "hp" then |
| 475 | - self.hpMax = self.hpMax + baseAttr[attr] * self.growth * delta | |
| 475 | + self.hpMax = self.hpMax + self.growth * delta | |
| 476 | 476 | else |
| 477 | - self["_" .. attr] = self["_" .. attr] + baseAttr[attr] * self.growth * delta | |
| 477 | + self["_" .. attr] = self["_" .. attr] + self.growth * delta | |
| 478 | 478 | end |
| 479 | 479 | end |
| 480 | 480 | end | ... | ... |