From c4d86cf495869d65e886c48709a8c85a3dc7e27e Mon Sep 17 00:00:00 2001 From: Giov4 Date: Mon, 14 Nov 2022 00:58:00 +0100 Subject: [PATCH] Update skills global table name --- src/GUI/gui_profile.lua | 4 ++-- src/skills/hp+.lua | 2 +- src/skills/sp+.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/GUI/gui_profile.lua b/src/GUI/gui_profile.lua index b267001..2bde692 100644 --- a/src/GUI/gui_profile.lua +++ b/src/GUI/gui_profile.lua @@ -37,7 +37,7 @@ function get_formspec(p_name) "item_image_button[0.1,0.08;0.82,0.82;" .. p_weaps[1] .. ";weap1;]", "item_image_button[1.15,0.08;0.82,0.82;" .. p_weaps[2] .. ";weap2;]", "item_image_button[2.2,0.08;0.82,0.82;" .. p_weaps[3] .. ";weap3;]", - "image_button[3.25,0.08;0.82,0.82;" .. skillz.get_skill_def(p_skill).icon .. ";skill;]", + "image_button[3.25,0.08;0.82,0.82;" .. skills.get_skill_def(p_skill).icon .. ";skill;]", "tooltip[skill;" .. p_skill .. "]", "container_end[]", "container[0.85,5.66]", @@ -61,7 +61,7 @@ function get_formspec(p_name) else local item, elem_name, elem_desc, properties, button local weap = minetest.registered_items["block_league:" .. elem] - local skill = skillz.get_skill_def("block_league:" .. elem) + local skill = skills.get_skill_def("block_league:" .. elem) -- se รจ un'arma.. if weap then diff --git a/src/skills/hp+.lua b/src/skills/hp+.lua index 77e64cf..8f3eb4e 100644 --- a/src/skills/hp+.lua +++ b/src/skills/hp+.lua @@ -1,7 +1,7 @@ local S = minetest.get_translator("block_league") -- there is no "+" in the registration name as it causes issues when retrieving images names -skillz.register_skill("block_league:hp", { +skills.register_skill("block_league:hp", { name = "HP+", icon = "bl_skill_hp.png", profile_description = S("Increases your health points by 5 @1(20>25)", "\n\n" diff --git a/src/skills/sp+.lua b/src/skills/sp+.lua index 0c614f8..c19ba85 100644 --- a/src/skills/sp+.lua +++ b/src/skills/sp+.lua @@ -1,7 +1,7 @@ local S = minetest.get_translator("block_league") -- there is no "+" in the registration name as it causes issues when retrieving images names -skillz.register_skill("block_league:sp", { +skills.register_skill("block_league:sp", { name = "SP+", icon = "bl_skill_sp.png", profile_description = S("Increases your stamina points by 25 @1(100>125)", "\n\n"