mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
-added scifi tag to items.xml
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@418 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -344,4 +344,6 @@ void PopupMilitiaControlMenu( SOLDIERTYPE *pSoldier ); //lal
|
||||
|
||||
void PreventFromTheFreezingBug(SOLDIERTYPE* pSoldier);
|
||||
|
||||
void GetGridNoScreenXY( INT16 sGridNo, INT16 *pScreenX, INT16 *pScreenY );
|
||||
|
||||
#endif
|
||||
@@ -388,6 +388,8 @@ typedef struct
|
||||
INT16 desertCamobonus;
|
||||
INT16 snowCamobonus;
|
||||
|
||||
BOOLEAN scifi; // item only available in scifi mode
|
||||
|
||||
UINT16 defaultattachment;
|
||||
} INVTYPE;
|
||||
|
||||
|
||||
@@ -1188,6 +1188,12 @@ BOOLEAN ItemIsLegal( UINT16 usItemIndex )
|
||||
}
|
||||
}
|
||||
|
||||
if ( gGameOptions.ubGameStyle == STYLE_REALISTIC && Item[usItemIndex].scifi )
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
return(TRUE);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user