Added events to end-round scoring

This commit is contained in:
ZomgPonies
2013-11-26 07:36:18 -05:00
parent 81cca5f857
commit cd4eab628f
39 changed files with 42 additions and 36 deletions
+1 -1
View File
@@ -8,7 +8,7 @@
/datum/event/blob/announce()
command_alert("Confirmed outbreak of level 7 biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert")
world << sound('sound/AI/outbreak7.ogg')
score_eventsendured++
/datum/event/blob/start()
var/turf/T = pick(blobstart)
+1 -1
View File
@@ -10,7 +10,7 @@
/datum/event/carp_migration/announce()
command_alert("Unknown biological entities have been detected near [station_name()], please stand-by.", "Lifesign Alert")
score_eventsendured++
/datum/event/carp_migration/start()
for(var/obj/effect/landmark/C in landmarks_list)
if(C.name == "carpspawn")
+1
View File
@@ -10,3 +10,4 @@
A << "<br>"
for(var/obj/machinery/telecomms/T in telecomms_list)
T.emp_act(1)
score_eventsendured++
@@ -17,4 +17,5 @@
/datum/event/communications_blackout/start()
for(var/obj/machinery/telecomms/T in telecomms_list)
T.emp_act(1)
T.emp_act(1)
score_eventsendured++
+1 -1
View File
@@ -6,7 +6,7 @@
/datum/event/disease_outbreak/announce()
command_alert("Confirmed outbreak of level 7 viral biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert")
world << sound('sound/AI/outbreak7.ogg')
score_eventsendured++
/datum/event/disease_outbreak/setup()
announceWhen = rand(15, 30)
+1 -1
View File
@@ -5,7 +5,7 @@
/datum/event/electrical_storm/announce()
command_alert("An electrical storm has been detected in your area, please repair potential electronic overloads.", "Electrical Storm Alert")
score_eventsendured++
/datum/event/electrical_storm/start()
var/list/epicentreList = list()
+1 -1
View File
@@ -11,6 +11,6 @@
command_alert("Abnormal activity detected in [station_name()]'s powernet. As a precautionary measure, the station's power will be shut off for an indeterminate duration.", "Automated Grid Check")
for(var/mob/M in player_list)
M << sound('sound/AI/poweroff.ogg')
score_eventsendured++
/datum/event/grid_check/end()
power_restore()
+2 -2
View File
@@ -92,7 +92,7 @@
turfs.Remove(T)
num--
if(vermin == VERM_SPIDERS)
var/obj/effect/spider/spiderling/S = new(T)
S.amount_grown = -1
@@ -103,7 +103,7 @@
/datum/event/infestation/announce()
command_alert("Bioscans indicate that [vermstring] have been breeding in [locstring]. Clear them out, before this starts to affect productivity.", "Vermin infestation")
score_eventsendured++
#undef LOC_KITCHEN
#undef LOC_ATMOS
#undef LOC_INCIN
+1 -1
View File
@@ -47,7 +47,7 @@
target << "\red <b>You have detected a change in your laws information:</b>"
target << law
target.add_ion_law(law)
score_eventsendured++
/datum/event/ionstorm/tick()
if(botEmagChance)
for(var/obj/machinery/bot/bot in world)
+1 -1
View File
@@ -11,7 +11,7 @@
/datum/event/meteor_wave/announce()
command_alert("Meteors have been detected on collision course with the station.", "Meteor Alert")
world << sound('sound/AI/meteors.ogg')
score_eventsendured++
/datum/event/meteor_wave/tick()
if(IsMultiple(activeFor, 3))
spawn_meteors(rand(2,5))
+1 -1
View File
@@ -56,7 +56,7 @@
for (var/mob/O in hearers(5, Console.loc))
O.show_message(text("\icon[Console] *The Requests Console beeps: 'PRIORITY Alert in [my_department]'"))
Console.messages += "<B><FONT color='red'>High Priority message from [my_department]</FONT></B><BR>[sending]"
score_eventsendured++
/datum/event/money_hacker/tick()
if(world.time > time_start + time_duration)
var/message
+1
View File
@@ -38,3 +38,4 @@
for(var/obj/machinery/newscaster/NEWSCASTER in allCasters)
NEWSCASTER.newsAlert("Tau Ceti Daily")
score_eventsendured++
+1 -1
View File
@@ -9,7 +9,7 @@
if(MS.active)
useMS = MS
break
score_eventsendured++
/datum/event/pda_spam/tick()
if(!useMS || !useMS.active)
useMS = null
+1 -1
View File
@@ -9,7 +9,7 @@ datum/event/organ_failure/setup()
datum/event/organ_failure/announce()
command_alert("Confirmed outbreak of level [rand(3,7)] biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert")
world << sound('sound/AI/outbreak5.ogg')
score_eventsendured++
datum/event/organ_failure/start()
var/list/candidates = list() //list of candidate keys
for(var/mob/living/carbon/human/G in player_list)
+1 -1
View File
@@ -20,7 +20,7 @@
else
world.log << "ERROR: Could not initate grey-tide. Unable find prison or brig area."
kill()
score_eventsendured++
/datum/event/prison_break/start()
for(var/area/A in world)
+1 -1
View File
@@ -13,7 +13,7 @@
/datum/event/radiation_storm/announce()
// Don't do anything, we want to pack the announcement with the actual event
score_eventsendured++
/datum/event/radiation_storm/proc/is_safe_zone(var/area/A)
for(var/szt in safe_zones)
if(istype(A, szt))
+1 -1
View File
@@ -31,7 +31,7 @@
else
msg = "Unidentified hackers have targetted a combat drone wing deployed from the NMV Icarus. If any are sighted in the area, approach with caution."
command_alert(msg, "Rogue drone alert")
score_eventsendured++
/datum/event/rogue_drone/tick()
return
+1 -1
View File
@@ -4,7 +4,7 @@
else
command_alert("Meaty ores have been detected on collision course with the station.", "Meaty Ore Alert")
world << sound('sound/AI/meteors.ogg')
score_eventsendured++
/datum/event/dust/meaty/setup()
qnty = rand(45,125)
+1 -1
View File
@@ -7,7 +7,7 @@
/datum/event/ghosts/announce()
command_alert("Unknown quasi-aetheric entities have been detected near [station_name()], please stand-by.", "Lifesign Alert?")
score_eventsendured++
/datum/event/ghosts/start()
var/p = 100
+1
View File
@@ -38,3 +38,4 @@
announce()
for(var/mob/living/M in player_list)
M << "You feel [pick("a chill","a deathly chill","the undead","dirty", "creeped out","afraid","fear")]!"
score_eventsendured++
+1 -1
View File
@@ -8,7 +8,7 @@
/datum/event/weightless/announce()
command_alert("Warning: Failsafes for the station's artificial gravity arrays have been triggered. Please be aware that if this problem recurs it may result in formation of gravitational anomalies. Nanotrasen wishes to remind you that the unauthorised formation of anomalies within Nanotrasen facilities is strictly prohibited by health and safety regulation [rand(99,9999)][pick("a","b","c")]:subclause[rand(1,20)][pick("a","b","c")].")
score_eventsendured++
/datum/event/weightless/start()
for(var/area/A in world)
if (A.z != 1) continue //Don't turn off gravity on non-station z-levels.
+1 -1
View File
@@ -25,7 +25,7 @@
for(var/mob/M in player_list)
if(!istype(M, /mob/new_player))
M << sound('sound/AI/spanomalies.ogg')
score_eventsendured++
/datum/event/wormholes/tick()
if(activeFor % shift_frequency == 0)
for(var/obj/effect/portal/wormhole/O in wormholes)
@@ -11,3 +11,4 @@
D.affected_mob = H
H.viruses += D
break
score_eventsendured++
@@ -17,7 +17,7 @@
if(successSpawn)
command_alert("Unidentified lifesigns detected coming aboard [station_name()]. Secure any exterior access, including ducting and ventilation.", "Lifesign Alert")
world << sound('sound/AI/aliens.ogg')
score_eventsendured++
/datum/event/alien_infestation/start()
var/list/vents = list()
+1 -1
View File
@@ -9,7 +9,7 @@
/datum/event/anomaly/announce()
command_alert("Localized hyper-energetic flux wave detected on long range scanners. Expected location of impact: [impact_area.name].", "Anomaly Alert")
score_eventsendured++
/datum/event/anomaly/start()
var/turf/T = pick(get_area_turfs(impact_area))
if(T)
@@ -6,7 +6,7 @@
/datum/event/anomaly/anomaly_bluespace/announce()
command_alert("Unstable bluespace anomaly detected on long range scanners. Expected location: [impact_area.name].", "Anomaly Alert")
score_eventsendured++
/datum/event/anomaly/anomaly_bluespace/start()
var/turf/T = pick(get_area_turfs(impact_area))
+1 -1
View File
@@ -8,7 +8,7 @@
/datum/event/anomaly/anomaly_flux/announce()
command_alert("Localized hyper-energetic flux wave detected on long range scanners. Expected location: [impact_area.name].", "Anomaly Alert")
score_eventsendured++
/datum/event/anomaly/anomaly_flux/start()
var/turf/T = pick(get_area_turfs(impact_area))
+1 -1
View File
@@ -8,7 +8,7 @@
/datum/event/anomaly/anomaly_grav/announce()
command_alert("Gravitational anomaly detected on long range scanners. Expected location: [impact_area.name].", "Anomaly Alert")
score_eventsendured++
/datum/event/anomaly/anomaly_grav/start()
var/turf/T = pick(get_area_turfs(impact_area))
if(T)
+1 -1
View File
@@ -8,7 +8,7 @@
/datum/event/anomaly/anomaly_pyro/announce()
command_alert("Atmospheric anomaly detected on long range scanners. Expected location: [impact_area.name].", "Anomaly Alert")
score_eventsendured++
/datum/event/anomaly/anomaly_pyro/start()
var/turf/T = pick(get_area_turfs(impact_area))
if(T)
@@ -8,7 +8,7 @@
/datum/event/anomaly/anomaly_vortex/announce()
command_alert("Localized high-intensity vortex anomaly detected on long range scanners. Expected location: [impact_area.name]", "Anomaly Alert")
score_eventsendured++
/datum/event/anomaly/anomaly_vortex/start()
var/turf/T = pick(get_area_turfs(impact_area))
if(T)
@@ -9,7 +9,7 @@
/datum/event/brand_intelligence/announce()
command_alert("Rampant brand intelligence has been detected aboard [station_name()], please stand-by. The origin is believed to be \a [originMachine.name].", "Machine Learning Alert")
score_eventsendured++
/datum/event/brand_intelligence/start()
for(var/obj/machinery/vending/V in machines)
+1 -1
View File
@@ -9,7 +9,7 @@
/datum/event/dust/start()
while(qnty-- > 0)
new /obj/effect/space_dust/weak()
score_eventsendured++
/obj/effect/space_dust
name = "Space Dust"
@@ -1,3 +1,4 @@
/datum/event/mass_hallucination/start()
for(var/mob/living/carbon/C in living_mob_list)
C.hallucination += rand(20, 50)
C.hallucination += rand(20, 50)
score_eventsendured++
+1 -1
View File
@@ -18,7 +18,7 @@
var/turf/simulated/floor/T = pick(turfs)
spawn(0) new/obj/effect/spacevine_controller(T) //spawn a controller at turf
spacevines_spawned = 1
score_eventsendured++
@@ -14,7 +14,7 @@
/datum/event/spider_infestation/announce()
command_alert("Unidentified lifesigns detected coming aboard [station_name()]. Secure any exterior access, including ducting and ventilation.", "Lifesign Alert")
world << sound('sound/AI/aliens.ogg')
score_eventsendured++
/datum/event/spider_infestation/start()
var/list/vents = list()
+1 -1
View File
@@ -8,7 +8,7 @@
/datum/event/vent_clog/announce()
command_alert("The scrubbers network is experiencing a backpressure surge. Some ejection of contents may occur.", "Atmospherics alert")
score_eventsendured++
/datum/event/vent_clog/setup()
endWhen = rand(25, 100)
+1 -1
View File
@@ -10,7 +10,7 @@ datum/event/viral_infection/setup()
datum/event/viral_infection/announce()
command_alert("Confirmed outbreak of level five biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert")
world << sound('sound/AI/outbreak5.ogg')
score_eventsendured++
datum/event/viral_infection/start()
var/list/candidates = list() //list of candidate keys
for(var/mob/living/carbon/human/G in player_list)
+1 -1
View File
@@ -10,7 +10,7 @@ datum/event/viral_outbreak/setup()
datum/event/viral_outbreak/announce()
command_alert("Confirmed outbreak of level 7 biohazard aboard [station_name()]. All personnel must contain the outbreak.", "Biohazard Alert")
world << sound('sound/AI/outbreak7.ogg')
score_eventsendured++
datum/event/viral_outbreak/start()
var/list/candidates = list() //list of candidate keys
for(var/mob/living/carbon/human/G in player_list)
+1 -1
View File
@@ -11,7 +11,7 @@ datum/event/wallrot/setup()
datum/event/wallrot/announce()
command_alert("Harmful fungi detected on station. Station structures may be contaminated.", "Biohazard Alert")
score_eventsendured++
datum/event/wallrot/start()
spawn()
var/turf/center = null