share/hedgewars/Data/Maps/ClimbHome/map.lua
branch0.9.22
changeset 12373 1e7a50e91d0c
parent 11067 c632b47b8ff0
child 12374 d75c666e2d21
--- 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