# HG changeset patch
# User unC0Rr
# Date 1458819659 -10800
# Node ID 1e7a50e91d0c440223026bdbc3c28f42a93b933c
# Parent  3e4044f959a956b485307becd36e3772e03b13a8
Achievement for ClimbHome

diff -r 3e4044f959a9 -r 1e7a50e91d0c 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