mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
If a buckled mob enters a bear trap, damage buckled object (#31192)
* If a buckled mob enters a bear trap, damage buckled object * Amend comment whitespace.
This commit is contained in:
@@ -123,11 +123,14 @@
|
||||
|
||||
if(ishuman(entered))
|
||||
var/mob/living/carbon/H = entered
|
||||
if(IS_HORIZONTAL(H))
|
||||
if(H.buckled) // if you ride your wheelchair into the trap, snare that instead
|
||||
var/obj/buckled_obj = H.buckled
|
||||
buckled_obj.take_damage(trap_damage, BRUTE)
|
||||
else if(IS_HORIZONTAL(H))
|
||||
H.apply_damage(trap_damage, BRUTE, "chest")
|
||||
else
|
||||
H.apply_damage(trap_damage, BRUTE, pick("l_leg", "r_leg"))
|
||||
if(!H.legcuffed && H.get_num_legs() >= 2) //beartrap can't cuff you leg if there's already a beartrap or legcuffs.
|
||||
if(!H.legcuffed && H.get_num_legs() >= 2 && !H.buckled) // beartrap can't cuff you leg if there's already a beartrap or legcuffs.
|
||||
H.legcuffed = src
|
||||
forceMove(H)
|
||||
H.update_inv_legcuffed()
|
||||
|
||||
Reference in New Issue
Block a user