mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-08-27 14:06:43 +01:00
Merge pull request #446 from Sharkmare/patch-41
Should fix halloss damage spam issue, should also make halloss intera…
This commit is contained in:
@@ -950,10 +950,15 @@
|
||||
adjustBrainLoss(brainOxPercent * oxyloss)
|
||||
|
||||
if(halloss >= species.total_health)
|
||||
src << "<span class='notice'>You're in too much pain to keep going...</span>"
|
||||
src.visible_message("<B>[src]</B> slumps to the ground, too weak to continue fighting.")
|
||||
Paralyse(10)
|
||||
setHalLoss(species.total_health - 1)
|
||||
if (chem_effects[CE_PAINKILLER])
|
||||
setHalLoss(species.total_health - 1)
|
||||
else
|
||||
Paralyse(10)
|
||||
setHalLoss(species.total_health - 1)
|
||||
if (!paralysis && !sleeping || !chem_effects[CE_PAINKILLER]) //CHOMPEDIT only display slump if we werent slumped already to prevent spam, sleeping counts as slump state for this matter
|
||||
src << "<span class='notice'>You're in too much pain to keep going...</span>"
|
||||
src.visible_message("<B>[src]</B> slumps to the ground, too weak to continue fighting.")
|
||||
|
||||
|
||||
if(paralysis || sleeping)
|
||||
blinded = 1
|
||||
|
||||
Reference in New Issue
Block a user