Added population scaling to carp spawn event

This commit is contained in:
ZomgPonies
2013-12-22 05:48:13 -05:00
parent b0dca0269f
commit 30cb187d26
3 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -12,9 +12,12 @@
command_alert("Unknown biological entities have been detected near [station_name()], please stand-by.", "Lifesign Alert")
/datum/event/carp_migration/start()
scaling_factor = num_players() / 25
for(var/obj/effect/landmark/C in landmarks_list)
if(C.name == "carpspawn")
spawned_carp.Add(new /mob/living/simple_animal/hostile/carp(C.loc))
if(prob(60 * scaling_factor))
spawned_carp.Add(new /mob/living/simple_animal/hostile/carp(C.loc))
/datum/event/carp_migration/end()
for(var/mob/living/simple_animal/hostile/carp/C in spawned_carp)
+1
View File
@@ -6,6 +6,7 @@
var/activeFor = 0 //How long the event has existed. You don't need to change this.
var/area/impact_area
var/scaling_factor // Used to scale spawns to server pop.
//Called first before processing.
//Allows you to setup your event, such as randomly
//setting the startWhen and or announceWhen variables.
@@ -5,7 +5,6 @@
var/list/obj/machinery/vending/vendingMachines = list()
var/list/obj/machinery/vending/infectedMachines = list()
var/obj/machinery/vending/originMachine
var/scaling_factor
/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")