1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2025-06-30 23:30:39 +02:00

Activation du HEAL_MULTIPLIER et affichage de stats supplémentaires

- Stats speed+jump+gravity affichées dans Unified Inventory
This commit is contained in:
sys4-fr
2018-12-04 22:51:53 +01:00
parent 4c032e8c7e
commit f991b676f4
3 changed files with 44 additions and 5 deletions

View File

@ -36,16 +36,19 @@ unified_inventory.register_page("armor", {
"label[0,0;"..F(S("Armor")).."]"..
"list[detached:"..name.."_armor;armor;0,"..fy..";2,3;]"..
"image[2.5,"..(fy - 0.25)..";2,4;"..armor.textures[name].preview.."]"..
"label[5.0,"..(fy + 0.0)..";"..F(S("Level"))..": "..armor.def[name].level.."]"..
"label[5.0,"..(fy + 0.5)..";"..F(S("Heal"))..": "..armor.def[name].heal.."]"..
"label[5.0,"..(fy + 0.0)..";"..F(S("Level"))..": "..armor.def[name].level.."]"..
"label[5.0,"..(fy + 0.4)..";"..F(S("Heal"))..": "..armor.def[name].heal.."]"..
"label[5.0,"..(fy + 1.6)..";"..F(S("Speed"))..": "..armor.def[name].speed.."]"..
"label[5.0,"..(fy + 2)..";"..F(S("Jump"))..": "..armor.def[name].jump.."]"..
"label[5.0,"..(fy + 2.4)..";"..F(S("Gravity"))..": "..armor.def[name].gravity.."]"..
"listring[current_player;main]"..
"listring[detached:"..name.."_armor;armor]"
if armor.config.fire_protect then
formspec = formspec.."label[5.0,"..(fy + 1.0)..";"..
formspec = formspec.."label[5.0,"..(fy + 0.8)..";"..
F(S("Fire"))..": "..armor.def[name].fire.."]"
end
if has_technic then
formspec = formspec.."label[5.0,"..(fy + 1.5)..";"..
formspec = formspec.."label[5.0,"..(fy + 1.2)..";"..
F(S("Radiation"))..": "..armor.def[name].groups["radiation"].."]"
end
return {formspec=formspec}