- New drug: antidote cures poisoning (by Flugente)

WARNING! This will break savegame compatibility.


git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5316 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2012-05-30 07:51:30 +00:00
parent c90f4bce47
commit 67fee5f14f
3 changed files with 22 additions and 3 deletions
+18
View File
@@ -495,6 +495,24 @@ void HandleEndTurnDrugAdjustments( SOLDIERTYPE *pSoldier )
pSoldier->iHealableInjury += (applieddamage * 100);
}
}
// if we took an antidote, reduce poisoning
if ( pSoldier->drugs.bDrugEffect[ DRUG_TYPE_CUREPOISON ] > 0 )
{
if ( pSoldier->bPoisonSum > 0 )
{
if ( pSoldier->bPoisonBleeding > 0 )
{
pSoldier->bPoisonBleeding--;
}
else if ( pSoldier->bPoisonLife > 0 )
{
pSoldier->bPoisonLife--;
}
pSoldier->bPoisonSum--;
}
}
}
}