mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
Merge pull request #15731 from KorPhaeron/push_block
Refactor push blocking
This commit is contained in:
@@ -129,9 +129,9 @@ Sorry Giacom. Please don't be mad :(
|
||||
if(!(M.status_flags & CANPUSH))
|
||||
return 1
|
||||
//anti-riot equipment is also anti-push
|
||||
if(M.r_hand && istype(M.r_hand, /obj/item/weapon/shield/riot))
|
||||
if(M.r_hand && (prob(M.r_hand.block_chance * 2)) && !istype(M.r_hand, /obj/item/clothing))
|
||||
return 1
|
||||
if(M.l_hand && istype(M.l_hand, /obj/item/weapon/shield/riot))
|
||||
if(M.l_hand && (prob(M.l_hand.block_chance * 2)) && !istype(M.l_hand, /obj/item/clothing))
|
||||
return 1
|
||||
|
||||
//Called when we bump onto an obj
|
||||
|
||||
Reference in New Issue
Block a user