From 6ff27c02475aa04038ab6857ef523044d5212c07 Mon Sep 17 00:00:00 2001 From: PrairieAstronomer Date: Tue, 7 Jun 2022 16:01:12 -0600 Subject: [PATCH] Fixed formatting in advancement definitions and in the award unlock code in the mcl_totem mod --- mods/HUD/mcl_achievements/init.lua | 48 +++++++++++++++--------------- mods/ITEMS/mcl_totems/init.lua | 2 +- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/mods/HUD/mcl_achievements/init.lua b/mods/HUD/mcl_achievements/init.lua index 2c8c62139..7b3b2fc1c 100644 --- a/mods/HUD/mcl_achievements/init.lua +++ b/mods/HUD/mcl_achievements/init.lua @@ -201,56 +201,56 @@ awards.register_achievement("mcl:enterEndPortal", { -- Triggered in mcl_totems awards.register_achievement("mcl:postMortal", { - title = S("Postmortal"), - description = S("Use a Totem of Undying to cheat death."), - icon = "mcl_totems_totem.png", + title = S("Postmortal"), + description = S("Use a Totem of Undying to cheat death."), + icon = "mcl_totems_totem.png", }) -- Triggered in mcl_beds awards.register_achievement("mcl:sweetDreams", { - title = S("Sweet Dreams"), - description = S("Sleep in a bed to change your respawn point."), - icon = "mcl_beds_bed_red.png", + title = S("Sweet Dreams"), + description = S("Sleep in a bed to change your respawn point."), + icon = "mcl_beds_bed_red.png", }) -- Triggered in mcl_smithing_table awards.register_achievement("mcl:seriousDedication", { - title = S("Serious Dedication"), - description = S("Use a Netherite Ingot to upgrade a hoe, and then completely reevaluate your life choices."), - icon = "farming_tool_netheritehoe.png", + title = S("Serious Dedication"), + description = S("Use a Netherite Ingot to upgrade a hoe, and then completely reevaluate your life choices."), + icon = "farming_tool_netheritehoe.png", }) -- Triggered in mobs_mc awards.register_achievement("mcl:whatAdeal", { - title = S("What A Deal!"), - description = S("Successfully trade with a Villager."), - icon = "mcl_core_emerald.png", + title = S("What A Deal!"), + description = S("Successfully trade with a Villager."), + icon = "mcl_core_emerald.png", }) -- Triggered in mcl_fishing awards.register_achievement("mcl:fishyBusiness", { - title = S("Fishy Business"), - description = S("Catch a fish. \nHint: Catch a fish, salmon, clownfish, or pufferfish."), - icon = "mcl_fishing_fishing_rod.png", + title = S("Fishy Business"), + description = S("Catch a fish. \nHint: Catch a fish, salmon, clownfish, or pufferfish."), + icon = "mcl_fishing_fishing_rod.png", }) -- Armor Advancements --[[awards.register_achievement("mcl:suitUp", { - title = S("Suit Up"), - description = S("Protect yourself with a piece of iron armor."), - icon = "mcl_armor_inv_chestplate_iron.png", + title = S("Suit Up"), + description = S("Protect yourself with a piece of iron armor."), + icon = "mcl_armor_inv_chestplate_iron.png", })]]-- --[[awards.register_achievement("mcl:coverMeDiamonds", { - title = S("Cover Me with Diamonds"), - description = S("Diamond armor saves lives."), - icon = "mcl_armor_inv_chestplate_diamond.png", + title = S("Cover Me with Diamonds"), + description = S("Diamond armor saves lives."), + icon = "mcl_armor_inv_chestplate_diamond.png", })]]-- --[[awards.register_achievement("mcl:coverMeDebris", { - title = S("Cover Me in Debris"), - description = S("Get a full suit of Netherite armor."), - icon = "mcl_armor_inv_chestplate_netherite.png", + title = S("Cover Me in Debris"), + description = S("Get a full suit of Netherite armor."), + icon = "mcl_armor_inv_chestplate_netherite.png", })]]-- -- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.) diff --git a/mods/ITEMS/mcl_totems/init.lua b/mods/ITEMS/mcl_totems/init.lua index 6b6fce7f1..5cf5f27a3 100644 --- a/mods/ITEMS/mcl_totems/init.lua +++ b/mods/ITEMS/mcl_totems/init.lua @@ -43,7 +43,7 @@ mcl_damage.register_modifier(function(obj, damage, reason) obj:set_wielded_item(wield) end end - awards.unlock(obj:get_player_name(), "mcl:postMortal") + awards.unlock(obj:get_player_name(), "mcl:postMortal") -- Effects minetest.sound_play({name = "mcl_totems_totem", gain = 1}, {pos=ppos, max_hear_distance = 16}, true)