mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-27 23:29:10 +01:00
Port missing PR - [MIRROR]SSmachines optimizations (#5403)
* Update Fire.dm * Update machines.dm * Update fuel.dm
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
for(var/d in cardinal)
|
||||
var/turf/simulated/target = get_step(src,d)
|
||||
var/turf/simulated/origin = get_turf(src)
|
||||
if(origin.CanPass(src, target, 0, 0) && target.CanPass(src, origin, 0, 0))
|
||||
if(origin.CanPass(src, target) && target.CanPass(src, origin))
|
||||
var/obj/effect/decal/cleanable/liquid_fuel/other_fuel = locate() in target
|
||||
if(other_fuel)
|
||||
other_fuel.amount += amount*0.25
|
||||
@@ -73,7 +73,7 @@
|
||||
var/turf/simulated/O = get_step(S,d)
|
||||
if(locate(/obj/effect/decal/cleanable/liquid_fuel/flamethrower_fuel) in O)
|
||||
continue
|
||||
if(O.CanPass(null, S, 0, 0) && S.CanPass(null, O, 0, 0))
|
||||
if(O.CanPass(src, S) && S.CanPass(src, O))
|
||||
var/new_pool_amount = amount * 0.25
|
||||
if(new_pool_amount > 0.1)
|
||||
var/obj/effect/decal/cleanable/liquid_fuel/flamethrower_fuel/F = new(O, new_pool_amount, d)
|
||||
|
||||
Reference in New Issue
Block a user