mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
New Feature: Different Mineral Types for Mines (by Jazz & Buggler)
- Instead of only having Gold and Silver for Mines, we can now add more mineral types (-> TableData\Map\Minerals.xml) - The initialization of the mineral types of the mines is done in LUA (Scripts\initmines.lua) - Example: https://ja2svn.dyndns.org/source/ja2/trunk/Documents/1.13%20Modding/Modding%20Examples/New%20Minerals-Mines%20Example.zip o In this example we have a new mineral type (Oil) and the Cambria Mine (H8) becomes a Refinery git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6584 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1271,16 +1271,31 @@ if ( ReadXMLEmail == TRUE )
|
||||
}
|
||||
#endif
|
||||
|
||||
BackupBRandEncyclopedia ( gBriefingRoomData, gBriefingRoomDataBackup, 0);
|
||||
BackupBRandEncyclopedia ( gBriefingRoomData, gBriefingRoomDataBackup, 0);
|
||||
|
||||
#endif //ENABLE_BRIEFINGROOM
|
||||
|
||||
UINT8 p;
|
||||
for(p=0; p<NUM_PROFILES; p++)
|
||||
{
|
||||
gAimOldArchives[p].FaceID = -1;
|
||||
}
|
||||
// Mine Types (Minerals)
|
||||
strcpy(fileName, directoryName);
|
||||
strcat(fileName, MINERALSFILENAME);
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
||||
SGP_THROW_IFFALSE(ReadInMinerals(fileName,FALSE), MINERALSFILENAME);
|
||||
|
||||
#ifndef ENGLISH
|
||||
AddLanguagePrefix(fileName);
|
||||
if ( FileExists(fileName) )
|
||||
{
|
||||
DebugMsg (TOPIC_JA2,DBG_LEVEL_3,String("LoadExternalGameplayData, fileName = %s", fileName));
|
||||
SGP_THROW_IFFALSE(ReadInMinerals(fileName,TRUE), fileName);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Old AIM Archive
|
||||
UINT8 p;
|
||||
for(p=0; p<NUM_PROFILES; p++)
|
||||
{
|
||||
gAimOldArchives[p].FaceID = -1;
|
||||
}
|
||||
|
||||
strcpy(fileName, directoryName);
|
||||
strcat(fileName, OLDAIMARCHIVEFILENAME);
|
||||
|
||||
Reference in New Issue
Block a user