mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Postmortal Advancement
This commit is contained in:
parent
91f8f44e17
commit
2a62936fe7
2 changed files with 9 additions and 1 deletions
|
@ -180,6 +180,13 @@ awards.register_achievement("mcl:enterEndPortal", {
|
||||||
icon = "mcl_end_end_stone.png",
|
icon = "mcl_end_end_stone.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- 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",
|
||||||
|
})
|
||||||
|
|
||||||
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
|
-- NON-PC ACHIEVEMENTS (XBox, Pocket Edition, etc.)
|
||||||
|
|
||||||
if non_pc_achievements then
|
if non_pc_achievements then
|
||||||
|
|
|
@ -51,6 +51,7 @@ mcl_damage.register_modifier(function(obj, damage, reason)
|
||||||
obj:set_wielded_item(wield)
|
obj:set_wielded_item(wield)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
awards.unlock(obj:get_player_name(), "mcl:postMortal")
|
||||||
|
|
||||||
-- Effects
|
-- Effects
|
||||||
minetest.sound_play({name = "mcl_totems_totem", gain = 1}, {pos=ppos, max_hear_distance = 16}, true)
|
minetest.sound_play({name = "mcl_totems_totem", gain = 1}, {pos=ppos, max_hear_distance = 16}, true)
|
||||||
|
|
Loading…
Reference in a new issue