summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rubenwardy@gmail.com>2016-07-29 16:32:58 +0100
committerrubenwardy <rubenwardy@gmail.com>2016-07-29 16:32:58 +0100
commit3c4f6e50b1f7842cd14ecfa981a6ef1df2a4e462 (patch)
treecd6540ea2dd8c9108907dae165308180ab7edb38
parent116889080c77a3df230df237f7aaad109122f2a3 (diff)
Add and remove a few awards
-rw-r--r--init.lua48
-rw-r--r--locale/template.txt6
2 files changed, 35 insertions, 19 deletions
diff --git a/init.lua b/init.lua
index 010b2fe..8725db4 100644
--- a/init.lua
+++ b/init.lua
@@ -36,13 +36,13 @@ awards.register_achievement("award_lightitup",{
trigger = {
type = "place",
node = "default:torch",
- target = 1
+ target = 500
}
})
-- Light ALL the things!
-awards.register_achievement("award_light_all_the_things",{
- title = S("Light ALL The Things!"),
+awards.register_achievement("award_well_lit",{
+ title = S("Well Lit"),
description = S("Place 1,000 torches."),
icon = "novicebuilder.png",
trigger = {
@@ -214,20 +214,6 @@ awards.register_achievement("award_youre_a_copper", {
}
})
--- You're winner
-awards.register_achievement("award_youre_winner", {
- title = S("YOU'RE A WINNER!"),
- description = S("Dig 1 mossy cobblestone."),
- icon = "miniminer.png",
- background = "bg_mining.png",
- trigger = {
- type = "dig",
- node = "default:mossycobble",
- target = 1
- },
- secret = true,
-})
-
-- Found a Nyan cat!
awards.register_achievement("award_nyanfind", {
title = S("OMG, Nyan Cat!"),
@@ -394,3 +380,31 @@ awards.register_on_death(function(player,data)
end
return nil
end)
+
+-- Die near diamond ore
+awards.register_achievement("award_deep_down", {
+ title = S("Deep Down"),
+ description = S("Die below -10000"),
+ secret = true
+})
+awards.register_on_death(function(player,data)
+ local pos = player:getpos()
+ if pos and pos.y < -10000 then
+ return "award_deep_down"
+ end
+ return nil
+end)
+
+-- Die near diamond ore
+awards.register_achievement("award_no_screen", {
+ title = S("In space, no one can hear you scream"),
+ description = S("Die above 10000"),
+ secret = true
+})
+awards.register_on_death(function(player,data)
+ local pos = player:getpos()
+ if pos and pos.y > 10000 then
+ return "award_no_screen"
+ end
+ return nil
+end)
diff --git a/locale/template.txt b/locale/template.txt
index 67d8a6e..d0505c8 100644
--- a/locale/template.txt
+++ b/locale/template.txt
@@ -29,8 +29,6 @@ First Mese Find =
Find some Mese. =
You're a copper =
Dig 1,000 copper ores. =
-YOU'RE A WINNER! =
-Dig 1 mossy cobblestone. =
OMG, Nyan Cat! =
Find a nyan cat. =
Mini Miner =
@@ -57,3 +55,7 @@ This is Sad =
Die near diamond ore. =
The Stack =
Die near bones. =
+Deep Down =
+Die below -10000 =
+In space, no one can hear you scream =
+Die above 10000 =