Achievement for ClimbHome 0.9.22
authorunC0Rr
Thu, 24 Mar 2016 14:40:59 +0300
branch0.9.22
changeset 12373 1e7a50e91d0c
parent 12372 3e4044f959a9
child 12374 d75c666e2d21
Achievement for ClimbHome
share/hedgewars/Data/Maps/ClimbHome/map.lua
--- a/share/hedgewars/Data/Maps/ClimbHome/map.lua	Tue Mar 01 08:32:46 2016 +0300
+++ 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