From bffe0640164f935417a5b2c99b3f3cdc4f0fdaa3 Mon Sep 17 00:00:00 2001 From: Ombridride Date: Mon, 20 Jul 2015 23:10:35 +0200 Subject: [PATCH 1/3] Add the regen life and tweak the durability of the armor --- .../black_mithril_plated_armor_warrior/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/3d_armor_classes/black_mithril_plated_armor_warrior/init.lua b/mods/3d_armor_classes/black_mithril_plated_armor_warrior/init.lua index e9224ec4..fc1b6bd6 100755 --- a/mods/3d_armor_classes/black_mithril_plated_armor_warrior/init.lua +++ b/mods/3d_armor_classes/black_mithril_plated_armor_warrior/init.lua @@ -3,28 +3,28 @@ if ARMOR_MATERIALS.black_mithril then minetest.register_tool(":3d_armor:helmet_black_mithril_plated_warrior", { description = "Warrior's Black Mithril Plated Helmet", inventory_image = "3d_armor_inv_helmet_black_mithril_plated_warrior.png", - groups = {armor_head = 11, armor_heal = 0, armor_use = 250}, + groups = {armor_head = 11, armor_heal = 1, armor_use = 40}, wear = 0, }) -- Register chestplates : minetest.register_tool(":3d_armor:chestplate_black_mithril_plated_warrior", { description = "Warrior's Black Mithril Plated Chestplate", inventory_image = "3d_armor_inv_chestplate_black_mithril_plated_warrior.png", - groups = {armor_torso = 17, armor_heal = 0, armor_use = 250}, + groups = {armor_torso = 17, armor_heal = 1, armor_use = 40}, wear = 0, }) -- Register leggings : minetest.register_tool(":3d_armor:leggings_black_mithril_plated_warrior", { description = "Warrior's Black Mithril Plated Leggings", inventory_image = "3d_armor_inv_leggings_black_mithril_plated_warrior.png", - groups = {armor_legs = 17, armor_heal = 0, armor_use = 250}, + groups = {armor_legs = 17, armor_heal = 1, armor_use = 40}, wear = 0, }) -- Register boots : minetest.register_tool(":3d_armor:boots_black_mithril_plated_warrior", { description = "Warrior's Black Mithril Plated Boots", inventory_image = "3d_armor_inv_boots_black_mithril_plated_warrior.png", - groups = {armor_feet = 11, armor_heal = 0, armor_use = 250}, + groups = {armor_feet = 11, armor_heal = 1, armor_use = 40}, wear = 0, }) end From e94857807f0bce32a2e16134f32d003c6129fa40 Mon Sep 17 00:00:00 2001 From: Ombridride Date: Mon, 20 Jul 2015 23:13:43 +0200 Subject: [PATCH 2/3] Tweak the mithril armor regen life --- mods/3d_armor/3d_armor/init.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/3d_armor/3d_armor/init.lua b/mods/3d_armor/3d_armor/init.lua index e5e4ea8d..cf78efe6 100755 --- a/mods/3d_armor/3d_armor/init.lua +++ b/mods/3d_armor/3d_armor/init.lua @@ -168,25 +168,25 @@ if ARMOR_MATERIALS.mithril then minetest.register_tool("3d_armor:helmet_mithril", { description = "Mithril Helmet", inventory_image = "3d_armor_inv_helmet_mithril.png", - groups = {armor_head=9, armor_heal=0, armor_use=50}, + groups = {armor_head=9, armor_heal=0.5, armor_use=50}, wear = 0, }) minetest.register_tool("3d_armor:chestplate_mithril", { description = "Mithril Chestplate", inventory_image = "3d_armor_inv_chestplate_mithril.png", - groups = {armor_torso=15, armor_heal=0, armor_use=50}, + groups = {armor_torso=15, armor_heal=0.5, armor_use=50}, wear = 0, }) minetest.register_tool("3d_armor:leggings_mithril", { description = "Mithril Leggings", inventory_image = "3d_armor_inv_leggings_mithril.png", - groups = {armor_legs=15, armor_heal=0, armor_use=50}, + groups = {armor_legs=15, armor_heal=0.5, armor_use=50}, wear = 0, }) minetest.register_tool("3d_armor:boots_mithril", { description = "Mithril Boots", inventory_image = "3d_armor_inv_boots_mithril.png", - groups = {armor_feet=9, armor_heal=0, armor_use=50}, + groups = {armor_feet=9, armor_heal=0.5, armor_use=50}, wear = 0, }) end From 28c5372aafe164e165e7f1ebc2f53deef82d618d Mon Sep 17 00:00:00 2001 From: crabman77 Date: Mon, 20 Jul 2015 23:28:46 +0200 Subject: [PATCH 3/3] added button to show awards --- mods/awards/api.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/mods/awards/api.lua b/mods/awards/api.lua index 2dc0a3a8..f6157837 100755 --- a/mods/awards/api.lua +++ b/mods/awards/api.lua @@ -314,6 +314,23 @@ function awards.give_achievement(name, award) end end + +--MFF crabman(20/07/2015) add button inventory +if (minetest.get_modpath("unified_inventory")) then + unified_inventory.register_button("menu_award", { + type = "image", + image = "miniminer.png", + tooltip = "List My Award", + show_with = false, + action = function(player) + local name = player:get_player_name() + if not name then return end + awards.showto(name, name, nil, false) + end, + }) +end + + -- List a player's achievements minetest.register_chatcommand("list_awards", { params = "obsolete",