Adds a new spawn xmas tree landmark and also adds a new holiday, the festive season.

This commit is contained in:
Lzimann
2016-11-25 19:01:53 -02:00
parent 8d86c23c47
commit 89a03ef577
3 changed files with 25 additions and 0 deletions
+4
View File
@@ -80,6 +80,10 @@
flags_inv = 0
armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 0, rad = 0, fire = 0, acid = 0)
/obj/effect/landmark/xmastree
name = "christmas tree spawner"
var/tree = /obj/structure/flora/tree/pine/xmas
/datum/round_event_control/santa
name = "Santa is coming to town! (Christmas)"
holidayID = CHRISTMAS
+20
View File
@@ -316,6 +316,26 @@
/datum/holiday/xmas/greet()
return "Have a merry Christmas!"
/datum/holiday/xmas/celebrate()
for(var/obj/effect/landmark/xmastree/XT in world)
new XT.tree(get_turf(XT))
qdel(XT)
/datum/holiday/festive_season
name = FESTIVE_SEASON
begin_day = 1
begin_month = DECEMBER
end_day = 31
/datum/holiday/festive_season/celebrate()
for(var/obj/effect/landmark/xmastree/XT in world)
var/turf/t = get_turf(XT)
new /obj/structure/flora/tree/pine/xmas(t)
qdel(XT)
/datum/holiday/festive_season/greet()
return "Have a nice festive season!"
/datum/holiday/boxing
name = "Boxing Day"
begin_day = 26