From 1fb2469188e04289e5b4b6af088c0f480eb1e6fa Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 12 Jun 2021 10:29:46 +0200 Subject: [PATCH] chore: rename getStatByType --- sonic-radiance.love/game/abstractmobs/character/equip.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sonic-radiance.love/game/abstractmobs/character/equip.lua b/sonic-radiance.love/game/abstractmobs/character/equip.lua index 5a79f9f..6443cba 100644 --- a/sonic-radiance.love/game/abstractmobs/character/equip.lua +++ b/sonic-radiance.love/game/abstractmobs/character/equip.lua @@ -44,13 +44,13 @@ function CharacterEquip:getEquipStats(stat, ignore) local ignore = ignore or "" for _, category in ipairs(categories) do if (category ~= ignore) then - boost = boost + self:getStatByType(stat, category) + boost = boost + self:getEquipStatByType(stat, category) end end return boost end -function CharacterEquip:getStatByType(stat, category) +function CharacterEquip:getEquipStatByType(stat, category) if (not utils.string.isEmpty(self.equip[category])) then local data = core.datas:get("items", self.equip[category]) local boost = data.statsBoost[stat] or 0