Achievement for ClimbHome
authorunC0Rr
Thu, 24 Mar 2016 14:40:59 +0300
changeset 11615 d5b205f00ac7
parent 11614 3c959df6638e
child 11616 5b31f61e0723
Achievement for ClimbHome
share/hedgewars/Data/Maps/ClimbHome/map.lua
--- a/share/hedgewars/Data/Maps/ClimbHome/map.lua	Tue Mar 22 11:59:31 2016 -0400
+++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua	Thu Mar 24 14:40:59 2016 +0300
@@ -678,3 +678,9 @@
 function getActualHeight(height)
     return 32640-height
 end
+
+function onAchievementsDeclaration()
+    for teamname, score in pairs(teamBests) do
+        DeclareAchievement("height reached", teamname, "ClimbHome", score)
+    end
+end