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
if minetest.get_modpath("intllib") then
S = intllib.Getter()
@ -157,7 +162,8 @@ awards.register_achievement("mcl:snipeSkeleton", {
-- 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"),
description = S("Place a dispenser."),
icon = "mcl_dispensers_dispenser_front_horizontal.png",
@ -166,9 +172,10 @@ awards.register_achievement("mcl:n_placeDispenser", {
node = "mcl_dispensers:dispenser",
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"),
description = S("Eat a cooked porkchop."),
icon = "mcl_mobitems_porkchop_cooked.png",
@ -177,8 +184,8 @@ awards.register_achievement("mcl:n_eatPorkchop", {
item= "mcl_mobitems:cooked_porkchop",
target = 1,
}
})
awards.register_achievement("mcl:n_eatRabbit", {
})
awards.register_achievement("mcl:n_eatRabbit", {
title = S("Rabbit Season"),
icon = "mcl_mobitems_rabbit_cooked.png",
description = S("Eat a cooked rabbit."),
@ -187,8 +194,8 @@ awards.register_achievement("mcl:n_eatRabbit", {
item= "mcl_mobitems:cooked_rabbit",
target = 1,
}
})
awards.register_achievement("mcl:n_eatRottenFlesh", {
})
awards.register_achievement("mcl:n_eatRottenFlesh", {
title = S("Iron Belly"),
description = S("Get really desperate and eat rotten flesh."),
icon = "mcl_mobitems_rotten_flesh.png",
@ -197,8 +204,8 @@ awards.register_achievement("mcl:n_eatRottenFlesh", {
item= "mcl_mobitems:rotten_flesh",
target = 1,
}
})
awards.register_achievement("mcl:n_placeFlowerpot", {
})
awards.register_achievement("mcl:n_placeFlowerpot", {
title = S("Pot Planter"),
description = S("Place a flower pot."),
icon = "mcl_flowerpots_flowerpot_inventory.png",
@ -207,9 +214,9 @@ awards.register_achievement("mcl:n_placeFlowerpot", {
node = "mcl_flowerpots:flower_pot",
target = 1,
}
})
})
awards.register_achievement("mcl:n_emeralds", {
awards.register_achievement("mcl:n_emeralds", {
title = S("The Haggler"),
-- TODO: Should also count emeralds bought from villagers
description = S("Mine 30 emerald ore."),
@ -219,7 +226,8 @@ awards.register_achievement("mcl:n_emeralds", {
node = "mcl_core:stone_with_emerald",
target = 30,
}
})
})
end
-- Show achievements formspec when the button was pressed
minetest.register_on_player_receive_fields(function(player, formname, fields)