Space Viking's many mercs changes plus numerous generic bug fixes

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2498 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
SpaceViking
2009-01-15 01:26:13 +00:00
parent f64f58fbf8
commit f26095d86f
138 changed files with 3493 additions and 3265 deletions
+12 -1
View File
@@ -18,9 +18,13 @@
#include "finances.h"
#include "history.h"
#include "Dialogue Control.h"
#include "Strategic AI.h"
#endif
#include "SaveLoadGame.h"
#include "GameSettings.h"
#include "connect.h"
void HourlyQuestUpdate( void );
void HourlyLarryUpdate( void );
@@ -74,13 +78,20 @@ void HandleHourlyUpdate()
HourlyCheckIfSlayAloneSoHeCanLeave();
PayOffSkyriderDebtIfAny();
// WDS - New AI
HourlyCheckStrategicAI();
PayOffSkyriderDebtIfAny();
if ( GetWorldHour() % 6 == 0 ) // 4 times a day
{
UpdateRegenCounters();
}
if ((gGameExternalOptions.autoSaveTime != 0) &&
(GetWorldHour() % gGameExternalOptions.autoSaveTime == 0)) {
SaveGame( SAVE__TIMED_AUTOSAVE, L"Auto Save" );
}
}
void UpdateRegenCounters( void )