mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 16:48:12 +01:00
[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:
co-authored by
Kashargul
C.L.
parent
4693238765
commit
441ee14971
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user