mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
Disease protection items are no longer required to be worn in a faceslot. The point is that the player should acquire special gear, not inconvenience him to switch gear whenever a merc goes on assignment.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7852 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+4
-4
@@ -1466,7 +1466,7 @@ itemEndElementHandle(void *userData, const XML_Char *name)
|
||||
BOOLEAN val = (BOOLEAN)atol( pData->szCharData );
|
||||
|
||||
if ( val )
|
||||
pData->curItem.usItemFlag |= DISEASEPROTECTION_FACE;
|
||||
pData->curItem.usItemFlag |= DISEASEPROTECTION_1;
|
||||
}
|
||||
else if ( strcmp( name, "diseaseprotectionhand" ) == 0 )
|
||||
{
|
||||
@@ -1474,7 +1474,7 @@ itemEndElementHandle(void *userData, const XML_Char *name)
|
||||
BOOLEAN val = (BOOLEAN)atol( pData->szCharData );
|
||||
|
||||
if ( val )
|
||||
pData->curItem.usItemFlag |= DISEASEPROTECTION_HAND;
|
||||
pData->curItem.usItemFlag |= DISEASEPROTECTION_2;
|
||||
}
|
||||
|
||||
--pData->maxReadDepth;
|
||||
@@ -2109,9 +2109,9 @@ BOOLEAN WriteItemStats()
|
||||
FilePrintf(hFile, "\t\t<sBackpackWeightModifier>%d</sBackpackWeightModifier>\r\n", Item[cnt].sBackpackWeightModifier);
|
||||
FilePrintf(hFile, "\t\t<fAllowClimbing>%d</fAllowClimbing>\r\n", Item[cnt].fAllowClimbing);
|
||||
|
||||
if ( Item[cnt].usItemFlag & DISEASEPROTECTION_FACE )
|
||||
if ( Item[cnt].usItemFlag & DISEASEPROTECTION_1 )
|
||||
FilePrintf( hFile, "\t\t<diseaseprotectionface>%d</diseaseprotectionface>\r\n", 1 );
|
||||
if ( Item[cnt].usItemFlag & DISEASEPROTECTION_HAND )
|
||||
if ( Item[cnt].usItemFlag & DISEASEPROTECTION_2 )
|
||||
FilePrintf( hFile, "\t\t<diseaseprotectionhand>%d</diseaseprotectionhand>\r\n", 1 );
|
||||
|
||||
FilePrintf(hFile,"\t</ITEM>\r\n");
|
||||
|
||||
Reference in New Issue
Block a user