mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-26 14:46:52 +01:00
Merge pull request #8407 from Mechoid/RealityPuddle
Fix the div 0 problem. God damnit.
This commit is contained in:
@@ -40,12 +40,12 @@
|
||||
if(LAZYLEN(possible_targets))
|
||||
while(possible_targets.len)
|
||||
var/turf/T = pick(possible_targets) // Don't always go NORTH, please. It's kind of weird.
|
||||
possible_targets -= T
|
||||
|
||||
var/obj/effect/decal/cleanable/chempuddle/other_puddle = locate() in T
|
||||
if(!istype(other_puddle))
|
||||
other_puddle = new(T)
|
||||
reagents.trans_to_holder(other_puddle.reagents, (reagents.total_volume - (25 * reagents.get_viscosity())) * (1 / possible_targets.len))
|
||||
possible_targets -= T
|
||||
other_puddle.Spread(exclude)
|
||||
|
||||
if(reagents.total_volume)
|
||||
|
||||
Reference in New Issue
Block a user