Add foundations award

This commit is contained in:
Rubenwardy 2013-02-23 09:30:50 +00:00
parent 7e5d134aac
commit 0cbd130136

View File

@ -24,17 +24,17 @@ end)
-- First Wood Placed! -- First Wood Placed!
awards.register_achievement("award_woodplace",{ awards.register_achievement("award_foundations",{
title = "Foundations", title = "Foundations",
description = "First Wood Placed!", description = "Every house starts from its foundations!",
}) })
awards.register_onPlace(function(player,data) awards.register_onPlace(function(player,data)
if not data['place']['default'] or not data['place']['default']['wood'] then if not data['place']['default'] or not data['place']['default']['brick'] then
return return
end end
if data['place']['default']['wood'] > 0 then if data['place']['default']['brick'] > 0 then
return "award_woodplace" return "award_foundations"
end end
end) end)