Enhancements of the MOLLE Feature (by DepressivesBrot):

- Added: Separate message for 'no space' (used 'already there' as a placeholder before)
- Fixed: Exchanging attachments when we are near capacity for the carrier
- Fixed: The LBE shown in the description box now changes as well and as soon as you add/remove an attachment
- Changed: The attachment now transfers the first non-zero pocket to the carrier instead of simply the first
- Added: Tooltips now show the currently used and the available space of a carrier.

- Added: A modifier for the explosive damage in confined spaces (by DepressivesBrot). Implemented on a per-item basis using the new float tag <bIndoorModifier> in Explosives.xml (0.5 means 150% damage, 1.0 means 200% etc.)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5552 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2012-09-04 19:27:01 +00:00
parent 02c53cdf16
commit d0e27b0229
17 changed files with 84 additions and 24 deletions
+9 -1
View File
@@ -64,7 +64,8 @@ explosiveStartElementHandle(void *userData, const XML_Char *name, const XML_Char
strcmp(name, "ubFragDamage") == 0 ||
strcmp(name, "ubFragRange") == 0 ||
strcmp(name, "ubHorizontalDegree") == 0 ||
strcmp(name, "ubVerticalDegree") == 0 ))
strcmp(name, "ubVerticalDegree") == 0 ||
strcmp(name, "bIndoorModifier") == 0 ))
{
pData->curElement = ELEMENT_PROPERTY;
@@ -210,6 +211,12 @@ explosiveEndElementHandle(void *userData, const XML_Char *name)
pData->curExplosive.ubVerticalDegree = (UINT16) atol(pData->szCharData);
}
else if(strcmp(name, "bIndoorModifier") == 0)
{
pData->curElement = ELEMENT;
pData->curExplosive.bIndoorModifier = (FLOAT) atof(pData->szCharData);
}
pData->maxReadDepth--;
}
@@ -320,6 +327,7 @@ BOOLEAN WriteExplosiveStats()
FilePrintf(hFile,"\t\t<ubFragRange>%d</ubFragRange>\r\n", Explosive[cnt].fExplodeOnImpact );
FilePrintf(hFile,"\t\t<ubHorizontalDegree>%d</ubHorizontalDegree>\r\n", Explosive[cnt].ubHorizontalDegree );
FilePrintf(hFile,"\t\t<ubVerticalDegree>%d</ubVerticalDegree>\r\n", Explosive[cnt].ubVerticalDegree );
FilePrintf(hFile,"\t\t<bIndoorModifier>%d</bIndoorModifier>\r\n", Explosive[cnt].bIndoorModifier );
FilePrintf(hFile,"\t</EXPLOSIVE>\r\n");
}