Fix init_names()

This commit is contained in:
GreenComfyTea
2023-09-03 14:16:32 +03:00
parent b52c903af3
commit 8fb02699cc
3 changed files with 9 additions and 3 deletions

View File

@@ -685,6 +685,12 @@ function this.update_spiribirds_call(player_data)
buffs.update_generic(this.list, skills_type_name, "spiribirds_call", this.get_skill_name, 1, timer, spiribirds_call_duration);
end
function this.init_names()
for skill_key, skill in pairs(this.list) do
skill.name = this.get_skill_name(skill_key);
end
end
function this.get_skill_name(skill_key)
local skill_data = skill_data_list[skill_key];