mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
- fix: combo food/drug items have to be eaten if drug effect was already attributed
- new food situation level for the transition from food refusal to dangerous levels - more useful stat damage warings for food git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5468 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -68,7 +68,7 @@ BOOLEAN ApplyDrugs( SOLDIERTYPE *pSoldier, OBJECTTYPE *pObject )
|
||||
}
|
||||
|
||||
BOOLEAN consumeitem = TRUE;
|
||||
// if item is also a food iem, don't use it up here, it will be consumed in ApplyFood, which will be called afterwards
|
||||
// if item is also a food item, don't use it up here, it will be consumed in ApplyFood, which will be called afterwards
|
||||
UINT32 foodtype = Item[pObject->usItem].foodtype;
|
||||
|
||||
// if not a food item, nothing to see here
|
||||
@@ -256,7 +256,7 @@ BOOLEAN ApplyDrugs( SOLDIERTYPE *pSoldier, OBJECTTYPE *pObject )
|
||||
fInterfacePanelDirty = DIRTYLEVEL2;
|
||||
|
||||
if ( !consumeitem )
|
||||
ApplyFood( pSoldier, pObject, TRUE );
|
||||
ApplyFood( pSoldier, pObject, TRUE, TRUE );
|
||||
|
||||
return( TRUE );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user