Remove non-PC achievements for now

This commit is contained in:
Wuzzy 2017-03-10 00:25:31 +01:00
parent 80634edb84
commit 6db2bcc56b
1 changed files with 69 additions and 61 deletions

View File

@ -1,3 +1,8 @@
-- Settings
-- If true, activates achievements from other Minecraft editions (XBox, PS, etc.)
local non_pc_achievement = false
local S local S
if minetest.get_modpath("intllib") then if minetest.get_modpath("intllib") then
S = intllib.Getter() S = intllib.Getter()
@ -157,7 +162,8 @@ awards.register_achievement("mcl:snipeSkeleton", {
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.) -- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
awards.register_achievement("mcl:n_placeDispenser", { if non_pc_achievements then
awards.register_achievement("mcl:n_placeDispenser", {
title = S("Dispense With This"), title = S("Dispense With This"),
description = S("Place a dispenser."), description = S("Place a dispenser."),
icon = "mcl_dispensers_dispenser_front_horizontal.png", icon = "mcl_dispensers_dispenser_front_horizontal.png",
@ -166,9 +172,10 @@ awards.register_achievement("mcl:n_placeDispenser", {
node = "mcl_dispensers:dispenser", node = "mcl_dispensers:dispenser",
target = 1 target = 1
} }
}) })
awards.register_achievement("mcl:n_eatPorkchop", { -- FIXME: Eating achievements don't work when you have exactly one of these items on hand
awards.register_achievement("mcl:n_eatPorkchop", {
title = S("Pork Chop"), title = S("Pork Chop"),
description = S("Eat a cooked porkchop."), description = S("Eat a cooked porkchop."),
icon = "mcl_mobitems_porkchop_cooked.png", icon = "mcl_mobitems_porkchop_cooked.png",
@ -177,8 +184,8 @@ awards.register_achievement("mcl:n_eatPorkchop", {
item= "mcl_mobitems:cooked_porkchop", item= "mcl_mobitems:cooked_porkchop",
target = 1, target = 1,
} }
}) })
awards.register_achievement("mcl:n_eatRabbit", { awards.register_achievement("mcl:n_eatRabbit", {
title = S("Rabbit Season"), title = S("Rabbit Season"),
icon = "mcl_mobitems_rabbit_cooked.png", icon = "mcl_mobitems_rabbit_cooked.png",
description = S("Eat a cooked rabbit."), description = S("Eat a cooked rabbit."),
@ -187,8 +194,8 @@ awards.register_achievement("mcl:n_eatRabbit", {
item= "mcl_mobitems:cooked_rabbit", item= "mcl_mobitems:cooked_rabbit",
target = 1, target = 1,
} }
}) })
awards.register_achievement("mcl:n_eatRottenFlesh", { awards.register_achievement("mcl:n_eatRottenFlesh", {
title = S("Iron Belly"), title = S("Iron Belly"),
description = S("Get really desperate and eat rotten flesh."), description = S("Get really desperate and eat rotten flesh."),
icon = "mcl_mobitems_rotten_flesh.png", icon = "mcl_mobitems_rotten_flesh.png",
@ -197,8 +204,8 @@ awards.register_achievement("mcl:n_eatRottenFlesh", {
item= "mcl_mobitems:rotten_flesh", item= "mcl_mobitems:rotten_flesh",
target = 1, target = 1,
} }
}) })
awards.register_achievement("mcl:n_placeFlowerpot", { awards.register_achievement("mcl:n_placeFlowerpot", {
title = S("Pot Planter"), title = S("Pot Planter"),
description = S("Place a flower pot."), description = S("Place a flower pot."),
icon = "mcl_flowerpots_flowerpot_inventory.png", icon = "mcl_flowerpots_flowerpot_inventory.png",
@ -207,9 +214,9 @@ awards.register_achievement("mcl:n_placeFlowerpot", {
node = "mcl_flowerpots:flower_pot", node = "mcl_flowerpots:flower_pot",
target = 1, target = 1,
} }
}) })
awards.register_achievement("mcl:n_emeralds", { awards.register_achievement("mcl:n_emeralds", {
title = S("The Haggler"), title = S("The Haggler"),
-- TODO: Should also count emeralds bought from villagers -- TODO: Should also count emeralds bought from villagers
description = S("Mine 30 emerald ore."), description = S("Mine 30 emerald ore."),
@ -219,7 +226,8 @@ awards.register_achievement("mcl:n_emeralds", {
node = "mcl_core:stone_with_emerald", node = "mcl_core:stone_with_emerald",
target = 30, target = 30,
} }
}) })
end
-- Show achievements formspec when the button was pressed -- Show achievements formspec when the button was pressed
minetest.register_on_player_receive_fields(function(player, formname, fields) minetest.register_on_player_receive_fields(function(player, formname, fields)