-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:
MaddMugsy
2006-08-10 22:39:13 +00:00
parent 3460c7bca5
commit 5b47f6fa2d
4 changed files with 20 additions and 4 deletions
+2
View File
@@ -344,4 +344,6 @@ void PopupMilitiaControlMenu( SOLDIERTYPE *pSoldier ); //lal
void PreventFromTheFreezingBug(SOLDIERTYPE* pSoldier);
void GetGridNoScreenXY( INT16 sGridNo, INT16 *pScreenX, INT16 *pScreenY );
#endif
+2
View File
@@ -388,6 +388,8 @@ typedef struct
INT16 desertCamobonus;
INT16 snowCamobonus;
BOOLEAN scifi; // item only available in scifi mode
UINT16 defaultattachment;
} INVTYPE;
+6
View File
@@ -1188,6 +1188,12 @@ BOOLEAN ItemIsLegal( UINT16 usItemIndex )
}
}
if ( gGameOptions.ubGameStyle == STYLE_REALISTIC && Item[usItemIndex].scifi )
{
return FALSE;
}
return(TRUE);
}