>datum/event and datum/event_control were renamed to datum/round_event and datum/round_event_control. This is because datum/event was already used by a different/more-general event queue system (used primarily on mechas)

Removed overriding of event values via feeding in an associative list into datum/round_event/New(). Instead you can do basic initializations (i.e. feed it constants) by doing new /datum/round_event{variablename=5;}(). This method is handled well by the compiler (it's the same method the maps use), so it will detect unrecognized variablenames etc.
More complex initializations for post setup() stuff can be done by accessing variables directly Event.variablename = whatever;
round_events now have a processing variable, which effectively pauses them.
This commit is contained in:
carnie
2013-04-08 07:42:46 +01:00
parent 2c3a67ae7e
commit 6a98fc89d0
32 changed files with 218 additions and 218 deletions

View File

@@ -1,21 +1,21 @@
/datum/event_control/carp_migration
/datum/round_event_control/carp_migration
name = "Carp Migration"
typepath = /datum/event/carp_migration
typepath = /datum/round_event/carp_migration
weight = 15
earliest_start = 6000
max_occurrences = 6
/datum/event/carp_migration
/datum/round_event/carp_migration
announceWhen = 50
/datum/event/carp_migration/setup()
/datum/round_event/carp_migration/setup()
announceWhen = rand(40, 60)
/datum/event/carp_migration/announce()
/datum/round_event/carp_migration/announce()
command_alert("Unknown biological entities have been detected near [station_name()], please stand-by.", "Lifesign Alert")
/datum/event/carp_migration/start()
/datum/round_event/carp_migration/start()
for(var/obj/effect/landmark/C in landmarks_list)
if(C.name == "carpspawn")
new /mob/living/simple_animal/hostile/carp(C.loc)