Should fix halloss damage spam issue, should also make halloss interact with painkillers

only display slump if we werent slumped already to prevent spam
No seriously why wasnt this checking for this already REEEE

Also trying to implement painkiller to work for halloss
This commit is contained in:
Sharkmare
2019-02-28 08:56:16 +01:00
committed by GitHub
parent 19f75ac308
commit 3ec7fc8c21
+9 -4
View File
@@ -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