mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-24 20:47:43 +01:00
Chem puffs will now touch objects on tile before splashing on the mob
This commit is contained in:
@@ -20,12 +20,15 @@
|
||||
step_towards(src, target)
|
||||
var/turf/T = get_turf(src)
|
||||
reagents.touch_turf(T)
|
||||
var/mob/M = locate() in T
|
||||
var/mob/M
|
||||
for(var/atom/A in T)
|
||||
if(!ismob(A)) // Mobs are handled differently
|
||||
reagents.touch(A)
|
||||
else if(!M)
|
||||
M = A
|
||||
if(M)
|
||||
reagents.splash_mob(M, reagents.total_volume)
|
||||
break
|
||||
for(var/atom/A in T)
|
||||
reagents.touch(A)
|
||||
if(T == get_turf(target))
|
||||
break
|
||||
sleep(delay)
|
||||
|
||||
Reference in New Issue
Block a user