Implement Buff Customization by Type

This commit is contained in:
GreenComfyTea
2023-09-30 11:03:25 +03:00
parent 17b89d3d7f
commit 423635400c
14 changed files with 1167 additions and 122 deletions

View File

@@ -282,6 +282,18 @@ function this.update_might_seed(player_data, item_parameter)
this.update_item_buff("might_seed", nil, nil, player_data, atk_up_buff_second_timer_field);
end
function this.init_all_UI()
for item_buff_key, item_buff in pairs(this.list) do
buffs.init_UI(item_buff);
end
end
function this.init_names()
for item_buff_key, item_buff in pairs(this.list) do
item_buff.name = this.get_item_buff_name(item_buff_key);
end
end
function this.get_item_buff_name(key)
local item_buff_name = get_name_method:call(nil, item_ids[key]);
if item_buff_name == nil then