From 9601a81f4d7e43cb4a0bde770ecf99fe520ed883 Mon Sep 17 00:00:00 2001 From: Wanne Date: Fri, 25 May 2012 22:23:21 +0000 Subject: [PATCH] - Bugfix: drugs that alter stats do not behave correctly with doctoring. Temporarily commented them out till a solution has been found. (by Flugente) git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5303 3b4a5df2-a311-0410-b5c6-a8a6f20db521 --- Tactical/Drugs And Alcohol.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tactical/Drugs And Alcohol.cpp b/Tactical/Drugs And Alcohol.cpp index 322cf7f2..607e777e 100644 --- a/Tactical/Drugs And Alcohol.cpp +++ b/Tactical/Drugs And Alcohol.cpp @@ -361,6 +361,8 @@ void HandleEndTurnDrugAdjustments( SOLDIERTYPE *pSoldier ) // only do the checks for the player team, as soldiers do not have a gMercProfiles if ( pSoldier->bTeam == gbPlayerNum) { + // Flugente 2012-05-25: the status drugs cause weird behaviour with the stat repairing behaviour of doctoring, so this is commented out till a working solution has been found + /* //////////////// STRENGTH //////////////// // strength we would normally have right now INT8 strength = gMercProfiles[ pSoldier->ubProfile ].bStrength - pSoldier->ubCriticalStatDamage[ DAMAGED_STAT_STRENGTH ]; @@ -459,7 +461,7 @@ void HandleEndTurnDrugAdjustments( SOLDIERTYPE *pSoldier ) { pSoldier->timeChanges.uiChangeWisdomTime = GetJA2Clock(); pSoldier->usValueGoneUp &= ~( WIS_INCREASE ); - } + }*/ // if our sideeffect count is 1 (which should occur a while AFTER we took the drug), we suddenly become blind for a few turns... if ( pSoldier->drugs.bDrugEffect[ DRUG_TYPE_BLIND ] == 0 && pSoldier->drugs.bDrugSideEffect[ DRUG_TYPE_BLIND ] == 1 )