From be2bc3f0fe9b1d4fb6994446487639a5ceb633f9 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 22 Nov 2016 06:35:03 +0100 Subject: [PATCH] Add secret achievement --- depends.txt | 1 + locale/de.txt | 2 ++ locale/template.txt | 2 ++ mummy.lua | 15 ++++++++++++++- 4 files changed, 19 insertions(+), 1 deletion(-) diff --git a/depends.txt b/depends.txt index 864ae82..077a565 100644 --- a/depends.txt +++ b/depends.txt @@ -3,3 +3,4 @@ farming? treasurer? intllib? doc_items? +awards? diff --git a/locale/de.txt b/locale/de.txt index c17cb8c..6d6372d 100644 --- a/locale/de.txt +++ b/locale/de.txt @@ -10,3 +10,5 @@ Can be used to create a hostile mummy. = Kann benutzt werden, um eine feindliche Place the egg to create a mummy on this spot. Careful, it will probably attack immediately! = Platzieren Sie das Ei, um dort eine Mumie zu erzeugen. Vorsicht, sie wird wahrscheinlich sofort angreifen! This brick is old, porous and unstable and is barely able to hold itself. One should be careful not to disturb it. = Dieser Ziegel ist alt, porös und instabil und kann sich so gerade noch selbst stützen. Man sollte vorsichtig sein, ihn nicht zu belasten. This old and porous brick fell to the ground. It does not hold itself anymore. = Dieser alte und poröse Ziegel fiel zu Boden und wird durch nichts mehr gestützt. +No more mummies! = Keine Mumien mehr! +Destroy a mummy spawner by digging. = Zerstören Sie einen Mumien-Spawner, indem Sie ihn graben. diff --git a/locale/template.txt b/locale/template.txt index 75cb406..195ac55 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -10,3 +10,5 @@ Can be used to create a hostile mummy. = Place the egg to create a mummy on this spot. Careful, it will probably attack immediately! = This brick is old, porous and unstable and is barely able to hold itself. One should be careful not to disturb it. = This old and porous brick fell to the ground. It does not hold itself anymore. = +No more mummies! = +Destroy a mummy spawner by digging. = diff --git a/mummy.lua b/mummy.lua index c71781b..e393cdc 100644 --- a/mummy.lua +++ b/mummy.lua @@ -391,4 +391,17 @@ if not minetest.setting_getbool("only_peaceful_mobs") then end }) end - + +if minetest.get_modpath("awards") then + awards.register_achievement("tsm_pyramids_no_mummy_spawner", { + title = S("No more mummies!"), + description = S("Destroy a mummy spawner by digging."), + secret = true, + icon = "tsm_pyramids_spawner.png", + trigger = { + type = "dig", + node = "tsm_pyramids:spawner_mummy", + target = 1 + } + }) +end