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:
Flugente
2015-05-08 19:08:54 +00:00
parent 25c98dda30
commit 1b8d898226
5 changed files with 17 additions and 20 deletions
+4 -4
View File
@@ -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");