share/hedgewars/Data/Scripts/Achievements.lua
author Wuzzy <Wuzzy2@mail.ru>
Fri, 05 Oct 2018 20:20:09 +0200
changeset 13859 ccfbc5f59c52
parent 13501 cbda0f842364
child 14236 74bf2d906097
permissions -rw-r--r--
Hide creeper from frontend, prevent addition of creeper ammo via ammo scheme This is a temporary measure because the creeper is still very unfinished. This can be reverted when the creeper is finished.

HedgewarsScriptLoad("/Scripts/Locale.lua")

function awardAchievement(name, statMessage, capgrp)
	local achievementString = string.format(loc("Achievement gotten: %s"), name)
	if capgrp == nil then
		captionType = capgrpMessage2
	end
	if capgrp ~= false then
		AddCaption(achievementString, 0xFFBA00FF, capgrpMessage2)
	end
	if not statMessage then
		statMessage = achievementString
	end
	SendStat(siCustomAchievement, statMessage)
end