Refactoring

This commit is contained in:
GreenComfyTea
2023-08-21 17:29:57 +03:00
parent 1d31a86a3f
commit e67fbf923f
7 changed files with 172 additions and 1020 deletions

View File

@@ -138,7 +138,7 @@ function this.update(master_player)
goto continue;
end
this.update_melody_effect(i+1, music_data);
this.update_melody_effect(i + 1, music_data);
::continue::
end
end
@@ -160,7 +160,7 @@ function this.update_melody_effect(lua_index, melody_data)
local melody_effect_key = melody_effect_keys[lua_index];
local name = language.current_language.melody_effects[melody_effect_key];
melody_effect = buffs.new(buffs.types.melody_effect, melody_effect_key, name, 1, melody_timer / 60);
melody_effect = buffs.new("melody_effects", melody_effect_key, name, 1, melody_timer / 60);
this.list[lua_index] = melody_effect;
else
buffs.update_timer(melody_effect, melody_timer / 60);