Spread Patterns MOD (by Zilpin)

* You also have to update GameDir folder *

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@3009 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2009-06-15 18:00:07 +00:00
parent f0424c1ef4
commit 5cd81280bc
11 changed files with 768 additions and 32 deletions
+8
View File
@@ -154,6 +154,14 @@ BOOLEAN LoadExternalGameplayData(STR directoryName)
{
char fileName[MAX_PATH];
//zilpin: pellet spread patterns externalized in XML
//If file not found, or error, then the old hard-coded defaults are used by LOS.cpp
//This needs to be loaded before AmmoTypes and Items because SpreadPatterns can be referenced by name or index.
strcpy(fileName, directoryName);
strcat(fileName, SPREADPATTERNSFILENAME);
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
ReadInSpreadPatterns(fileName);
// WANNE: Enemy drops - begin
strcpy(fileName, directoryName);
strcat(fileName, ENEMYMISCDROPSFILENAME);