Allows item use when in weakened state (#8154)

This commit is contained in:
tacoguy7765093
2024-04-08 08:57:13 -05:00
committed by GitHub
parent 366a049e65
commit f21e9815e5
3 changed files with 3 additions and 2 deletions

View File

@@ -68,7 +68,7 @@
CtrlClickOn(A) CtrlClickOn(A)
return 1 return 1
if(stat || paralysis || stunned || weakened) if(stat || paralysis || stunned) //CHOMPedit, removed weakened to allow item use while crawling
return return
face_atom(A) // change direction to face what you clicked on face_atom(A) // change direction to face what you clicked on

View File

@@ -972,7 +972,7 @@
if(incapacitated(INCAPACITATION_KNOCKOUT) || incapacitated(INCAPACITATION_STUNNED)) // CHOMPAdd - Making sure we're in good condition to crawl if(incapacitated(INCAPACITATION_KNOCKOUT) || incapacitated(INCAPACITATION_STUNNED)) // CHOMPAdd - Making sure we're in good condition to crawl
canmove = 0 canmove = 0
drop_both_hands() //drop_both_hands() CHOMPremove, purple stuns dont drop items, this makes space EVA less frustrating and slips/shoves are already coded to drop your stuff.
else else
canmove = 1 canmove = 1

View File

@@ -541,6 +541,7 @@
var/mob/living/carbon/human/H = T var/mob/living/carbon/human/H = T
if(H.species.lightweight == 1) if(H.species.lightweight == 1)
H.Stun(3) // CHOMPEdit - Crawling made this useless. Changing to stun instead. H.Stun(3) // CHOMPEdit - Crawling made this useless. Changing to stun instead.
H.drop_both_hands() //Stuns no longer drop items, so were forcing it >:3
return return
var/armor_block = run_armor_check(T, "melee") var/armor_block = run_armor_check(T, "melee")
var/armor_soak = get_armor_soak(T, "melee") var/armor_soak = get_armor_soak(T, "melee")