mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-30 16:38:22 +01:00
Spark Fixes (#1764)
changes: Removed shim for old spark system. Converted all calls to old spark system with calls to new one. Processor-based effects are no longer pooled, as it had minimal performance impact and was breaking things. Tweaked some visible_messages for rogue drones. PB effects' handling of location is now done at the /datum/effect_system level.
This commit is contained in:
@@ -605,9 +605,7 @@
|
||||
|
||||
/datum/chemical_reaction/flash_powder/on_reaction(var/datum/reagents/holder, var/created_volume)
|
||||
var/location = get_turf(holder.my_atom)
|
||||
var/datum/effect/effect/system/spark_spread/s = new /datum/effect/effect/system/spark_spread
|
||||
s.set_up(2, 1, location)
|
||||
s.start()
|
||||
spark(location, 2, alldirs)
|
||||
for(var/mob/living/carbon/M in viewers(world.view, location))
|
||||
switch(get_dist(M, location))
|
||||
if(0 to 3)
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
|
||||
if (istype(target, /mob/living/silicon/robot))
|
||||
var/mob/living/silicon/robot/R = target
|
||||
R.spark_system.start()
|
||||
R.spark_system.queue()
|
||||
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user