mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- new option for automatic IMP item distribution:
uiIndex 52 "Sidearm" in IMPItemChoices.xml is used to give the IMP a standard sidearm based on random selection. It is encouraged to remove marksmanship based gun choices and instead add special weaponry for traits. - The following changes are supposed to remove useless items from vendors and other lists: Function ItemIsLegal now filters out food items if the food system is off. The same applies to cleaning kits if the dirt system is off. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7722 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1266,6 +1266,18 @@ BOOLEAN ItemIsLegal( UINT16 usItemIndex, BOOLEAN fIgnoreCoolness )
|
||||
if ( Item[usItemIndex].ubCoolness == 0 && !fIgnoreCoolness )
|
||||
return FALSE;
|
||||
|
||||
// silversurfer: no food items if the food system is off
|
||||
if ( !gGameOptions.fFoodSystem && Item[ usItemIndex ].foodtype > 0 )
|
||||
{
|
||||
// Only restrict food for now. Water can be used to replenish lost energy so it is useful even without the food system.
|
||||
if ( Food[Item[usItemIndex].foodtype].bFoodPoints > 0 )
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// silversurfer: we don't need cleaning kits if the dirt system is off
|
||||
if ( !gGameExternalOptions.fDirtSystem && HasItemFlag(usItemIndex, CLEANING_KIT) )
|
||||
return FALSE;
|
||||
|
||||
//if the user has selected the reduced gun list
|
||||
if( !gGameOptions.fGunNut )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user