[MIRROR] initial throw fixing (#12231)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
Co-authored-by: C.L. <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-01-08 22:45:27 +01:00
committed by GitHub
co-authored by Kashargul C.L.
parent 4693238765
commit 441ee14971
43 changed files with 219 additions and 170 deletions
+2 -1
View File
@@ -257,9 +257,10 @@
take_damage(damage)
return
/obj/structure/low_wall/hitby(atom/movable/source, var/speed)
/obj/structure/low_wall/hitby(atom/movable/source, datum/thrownthing/throwingdatum)
..()
var/tforce = 0
var/speed = throwingdatum?.speed || THROWFORCE_SPEED_DIVISOR
if(ismob(source)) // All mobs have a multiplier and a size according to mob_defines.dm
var/mob/I = source
tforce = I.mob_size * (speed/THROWFORCE_SPEED_DIVISOR)