Update skills global table name

This commit is contained in:
Giov4 2022-11-14 00:58:00 +01:00
parent b235059920
commit c4d86cf495
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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)", "<style color=#abc0c0>") .. "</style>\n\n"

View File

@ -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)", "<style color=#abc0c0>") .. "</style>\n\n"