删除不用的属性

This commit is contained in:
chenxi 2023-04-17 17:27:37 +08:00
parent a8d3e443cd
commit 5977527c8d
2 changed files with 2 additions and 3 deletions

View File

@ -3,13 +3,12 @@ local BattleBuffEntity = class("BattleBuffEntity", BaseData)
function BattleBuffEntity:ctor() function BattleBuffEntity:ctor()
end end
function BattleBuffEntity:init(effectParams, owner, hostSkill) function BattleBuffEntity:init(effectParams, owner)
self.name = effectParams.type self.name = effectParams.type
self.effectNum = effectParams.num self.effectNum = effectParams.num
self.round = effectParams.round self.round = effectParams.round
self.ratio = effectParams.ratio self.ratio = effectParams.ratio
self.owner = owner self.owner = owner
self.hostSkill = hostSkill
self.buffInfo = ConfigManager:getConfigWithOtherKey("buff", "name")[self.name] self.buffInfo = ConfigManager:getConfigWithOtherKey("buff", "name")[self.name]
self.buffType = self.buffInfo.buff_type self.buffType = self.buffInfo.buff_type
end end

View File

@ -19,7 +19,7 @@ function BattleSkillEntity:initSkillEffect()
if self.skillInfo.effect then if self.skillInfo.effect then
for k, v in ipairs(self.skillInfo.effect) do for k, v in ipairs(self.skillInfo.effect) do
local buffEntity = BattleBuffEntity:create() local buffEntity = BattleBuffEntity:create()
buffEntity:init(v, self.owner, self) buffEntity:init(v, self.owner)
table.insert(self.effectList, buffEntity) table.insert(self.effectList, buffEntity)
end end
end end