Merge pull request #82 from alex-gh/misc_fixes

Misc fixes
This commit is contained in:
ZomgPonies
2013-12-06 11:23:27 -08:00
4 changed files with 12 additions and 11 deletions
-1
View File
@@ -21,7 +21,6 @@
/obj/machinery/telepad_cargo/attackby(obj/item/weapon/W as obj, mob/user as mob)
if(istype(W, /obj/item/weapon/wrench))
anchored = 0
playsound(src, 'sound/items/Ratchet.ogg', 50, 1)
if(anchored)
anchored = 0
+8 -6
View File
@@ -20,12 +20,13 @@
var/locstring
var/vermin
var/vermstring
/datum/event/infestation/start()
location = rand(0,9)
var/list/turf/simulated/floor/turfs = list()
var/spawn_area_type
var/list/spawn_types = list()
var/max_number
/datum/event/infestation/setup()
location = rand(0,9)
switch(location)
if(LOC_KITCHEN)
spawn_area_type = /area/crew_quarters/kitchen
@@ -69,8 +70,6 @@
if(!F.contents.len)
turfs += F
var/list/spawn_types = list()
var/max_number
vermin = rand(0,2)
switch(vermin)
if(VERM_MICE)
@@ -85,6 +84,9 @@
spawn_types = list(/obj/effect/spider/spiderling)
vermstring = "spiders"
/datum/event/infestation/start()
spawn(0)
var/num = rand(2,max_number)
while(turfs.len > 0 && num > 0)
+1 -2
View File
@@ -3,12 +3,11 @@
startWhen = 2
announceWhen = 3
oneShot = 1
setup()
start()
var/datum/event/electrical_storm/RS = new
RS.lightsoutAmount = pick(2,2,3)
RS.start()
RS.kill()
start()
for(var/area/A)
if(A.z != 1) continue //Spook on main station only.
if(A.luminosity) continue
@@ -10,8 +10,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")
/datum/event/brand_intelligence/start()
/datum/event/brand_intelligence/setup()
for(var/obj/machinery/vending/V in machines)
if(V.z != 1) continue
vendingMachines.Add(V)
@@ -22,6 +21,8 @@
originMachine = pick(vendingMachines)
vendingMachines.Remove(originMachine)
/datum/event/brand_intelligence/start()
originMachine.shut_up = 0
originMachine.shoot_inventory = 1