mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2024-11-27 01:33:43 +01:00
Add foundations award
This commit is contained in:
parent
7e5d134aac
commit
0cbd130136
10
init.lua
10
init.lua
@ -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)
|
Loading…
Reference in New Issue
Block a user