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,7 +61,7 @@ function Battle:initPlayer() | ||
| 61 | local baseAttr = csvdb["adv_unitCsv"][self.adv.chapterId] | 61 | local baseAttr = csvdb["adv_unitCsv"][self.adv.chapterId] |
| 62 | for _, attr in pairs(AttsEnumEx) do | 62 | for _, attr in pairs(AttsEnumEx) do |
| 63 | if baseAttr[attr] then | 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 | end | 65 | end |
| 66 | end | 66 | end |
| 67 | player.hpMax = player.hp or 0 | 67 | player.hpMax = player.hp or 0 |
src/adv/AdvBuff.lua
| @@ -204,7 +204,7 @@ local BuffFactory = { | @@ -204,7 +204,7 @@ local BuffFactory = { | ||
| 204 | self._changeV = baseOwner[attrs[self.buffData.effectValue3]] * self.buffData.effectValue2 / 100 | 204 | self._changeV = baseOwner[attrs[self.buffData.effectValue3]] * self.buffData.effectValue2 / 100 |
| 205 | end | 205 | end |
| 206 | if self._changeV < 0 then | 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 | end | 208 | end |
| 209 | end | 209 | end |
| 210 | _Buff._initDB = function(self, data) | 210 | _Buff._initDB = function(self, data) |
src/adv/AdvPlayer.lua
| @@ -470,11 +470,11 @@ function Player:addExp(value) | @@ -470,11 +470,11 @@ function Player:addExp(value) | ||
| 470 | local baseAttr = csvdb["adv_unitCsv"][self.battle.adv.chapterId] | 470 | local baseAttr = csvdb["adv_unitCsv"][self.battle.adv.chapterId] |
| 471 | for _, attr in pairs(AttsEnumEx) do | 471 | for _, attr in pairs(AttsEnumEx) do |
| 472 | if baseAttr[attr] then | 472 | if baseAttr[attr] then |
| 473 | - self[attr] = self[attr] + baseAttr[attr] * self.growth * delta | 473 | + self[attr] = self[attr] + self.growth * delta |
| 474 | if attr == "hp" then | 474 | if attr == "hp" then |
| 475 | - self.hpMax = self.hpMax + baseAttr[attr] * self.growth * delta | 475 | + self.hpMax = self.hpMax + self.growth * delta |
| 476 | else | 476 | else |
| 477 | - self["_" .. attr] = self["_" .. attr] + baseAttr[attr] * self.growth * delta | 477 | + self["_" .. attr] = self["_" .. attr] + self.growth * delta |
| 478 | end | 478 | end |
| 479 | end | 479 | end |
| 480 | end | 480 | end |