mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
New merc (somewhat): Similar to Larry's two personalities, Buns now has an alternate personality as well.
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=tree&th=23806&goto=354149&#msg_354149 Requires GameDir >= r2430. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8588 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -82,6 +82,7 @@ diseaseStartElementHandle( void *userData, const XML_Char *name, const XML_Char
|
||||
strcmp( name, "fCanReInfect" ) == 0 ||
|
||||
strcmp( name, "fHideSymbol" ) == 0 ||
|
||||
strcmp( name, "fDisgusting" ) == 0 ||
|
||||
strcmp( name, "fSpecialFlagPTSDBuns" ) == 0 ||
|
||||
strcmp( name, "sEffStatAGI" ) == 0 ||
|
||||
strcmp( name, "sEffStatDEX" ) == 0 ||
|
||||
strcmp( name, "sEffStatSTR" ) == 0 ||
|
||||
@@ -302,6 +303,12 @@ diseaseEndElementHandle( void *userData, const XML_Char *name )
|
||||
if ( atol( pData->szCharData ) )
|
||||
pData->curItem.usDiseaseProperties |= DISEASE_PROPERTY_DISGUSTING;
|
||||
}
|
||||
else if ( strcmp( name, "fSpecialFlagPTSDBuns" ) == 0 )
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
if ( atol( pData->szCharData ) )
|
||||
pData->curItem.usDiseaseProperties |= DISEASE_PROPERTY_PTSD_BUNS;
|
||||
}
|
||||
else if ( strcmp( name, "sEffStatAGI" ) == 0 )
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
@@ -480,6 +487,7 @@ BOOLEAN WriteDiseaseStats( )
|
||||
FilePrintf( hFile, "\t\t<fCanReInfect>%d</fCanReInfect>\r\n", (Disease[cnt].usDiseaseProperties & DISEASE_PROPERTY_CANREINFECT) ? 1 : 0 );
|
||||
FilePrintf( hFile, "\t\t<fHideSymbol>%d</fHideSymbol>\r\n", (Disease[cnt].usDiseaseProperties & DISEASE_PROPERTY_HIDESYMBOL) ? 1 : 0 );
|
||||
FilePrintf( hFile, "\t\t<fDisgusting>%d</fDisgusting>\r\n", (Disease[cnt].usDiseaseProperties & DISEASE_PROPERTY_DISGUSTING) ? 1 : 0 );
|
||||
FilePrintf( hFile, "\t\t<fSpecialFlagPTSDBuns>%d</fSpecialFlagPTSDBuns>\r\n", ( Disease[cnt].usDiseaseProperties & DISEASE_PROPERTY_PTSD_BUNS ) ? 1 : 0 );
|
||||
FilePrintf( hFile, "\t\t<sEffStatAGI>%d</sEffStatAGI>\r\n", Disease[cnt].sEffStat[INFST_AGI] );
|
||||
FilePrintf( hFile, "\t\t<sEffStatDEX>%d</sEffStatDEX>\r\n", Disease[cnt].sEffStat[INFST_DEX] );
|
||||
FilePrintf( hFile, "\t\t<sEffStatSTR>%d</sEffStatSTR>\r\n", Disease[cnt].sEffStat[INFST_STR] );
|
||||
|
||||
Reference in New Issue
Block a user