Skip to content

Commit

Permalink
Remove unnecessary enemy_game_object_list
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenComfyTea committed Apr 25, 2024
1 parent ae7647e commit 1fcba70
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions reframework/autorun/Health_Bars/enemy_handler.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ local reframework = reframework;
local os = os;

this.enemy_list = {};
this.enemy_game_object_list = {};

local disable_is_in_sight_delay_seconds = 5;
local health_update_delay_seconds = 1;

Expand Down Expand Up @@ -217,7 +215,6 @@ function this.update_game_object(enemy)
end

enemy.game_object = enemy_game_object;
this.enemy_game_object_list[enemy_game_object] = enemy;
end

function this.update_head_joint(enemy)
Expand Down Expand Up @@ -425,7 +422,6 @@ function this.on_destroy(enemy_action_controller)
return;
end

this.enemy_game_object_list[enemy.game_object] = nil;
this.enemy_list[enemy_action_controller] = nil;
end

Expand Down

0 comments on commit 1fcba70

Please sign in to comment.