Refactoring

This commit is contained in:
GreenComfyTea
2022-07-26 19:27:37 +03:00
parent a20c458629
commit 2f9a8ac6a3
41 changed files with 5939 additions and 18587 deletions

View File

@@ -51,7 +51,8 @@ function env_creature.init(creature, REcreature)
return;
end
local creature_name = get_env_creature_name_message_method:call(singletons.message_manager, creature_type);
local creature_name = get_env_creature_name_message_method:call(singletons.message_manager,
creature_type);
if creature_name ~= nil then
creature.name = creature_name;
end
@@ -74,7 +75,7 @@ function env_creature.update_position(REcreature, creature)
if creature == nil then
creature = env_creature.get_creature(REcreature);
end
local position = get_pos_method:call(REcreature);
if position ~= nil then
creature.position = position;
@@ -122,4 +123,4 @@ function env_creature.init_module()
--ailment_UI_entity = require("MHR_Overlay.UI.UI_Entities.ailment_UI_entity");
end
return env_creature;
return env_creature;

View File

@@ -24,4 +24,4 @@ function env_creature_hook.init_module()
end);
end
return env_creature_hook;
return env_creature_hook;