Merge pull request #8407 from Mechoid/RealityPuddle

Fix the div 0 problem. God damnit.
This commit is contained in:
Atermonera
2022-02-26 11:44:07 -08:00
committed by GitHub
+1 -1
View File
@@ -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)