Added blowout, easier management of disallowed events.

This commit is contained in:
SkyMarshal
2012-01-03 12:03:14 -07:00
parent 9a651a5a84
commit 1750d044cf
2 changed files with 36 additions and 2 deletions

View File

@@ -0,0 +1,34 @@
/area/var/radsafe = 0
/area/maintenance/radsafe = 1
/area/ai_monitored/maintenance/radsafe = 1
/area/centcom/radsafe = 1
/area/admin/radsafe = 1
/area/adminsafety/radsafe = 1
/area/shuttle/radsafe = 1
/area/syndicate_station/radsafe = 1
/area/asteroid/radsafe = 1
/area/crew_quarters/sleeping/radsafe = 1
/datum/event/blowout
Lifetime = 150
Announce()
if(!forced && prob(90))
ActiveEvent = null
SpawnEvent()
del src
return
command_alert("Warning: Ship approaching high-density radiation cloud. Seek cover immediately.")
Tick()
if(ActiveFor == 50)
command_alert("Ship has entered radiation cloud. Do not leave cover until it has passed.")
if(ActiveFor == 100 || ActiveFor == 150) //1/2 and 2/2 f the way after it start proper make peope be half dead mostly
for(var/mob/living/carbon/M in world)
var/area = M.loc.loc
while(!istype(area, /area))
area = area:loc
if(area:radsafe)
continue
if(!M.stat)
M.radiate(100)
Die()
command_alert("The ship has cleared the radiation cloud. It is now safe to leave cover.")

View File

@@ -6,8 +6,8 @@
*/
var/list/EventTypes = typesof(/datum/event) - /datum/event - /datum/event/spaceninja
var/list/DisallowedEvents = list(/datum/event/spaceninja, /datum/event/prisonbreak, /datum/event/immovablerod)
var/list/EventTypes = typesof(/datum/event) - /datum/event - DisallowedEvents
var/datum/event/ActiveEvent = null
var/datum/event/LongTermEvent = null