New feature (by rftr): Arulco Rebel Command (ARC)

Improve you cities and overall campaign by choosing out of several upgrades

Requires GameDir >= r2613

For more info, see https://thepit.ja-galaxy-forum.com/index.php?t=msg&th=24884&start=0&

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9153 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Flugente
2021-08-22 19:00:09 +00:00
parent d1ec359600
commit eca080f0f9
44 changed files with 3925 additions and 36 deletions
+25 -9
View File
@@ -23,6 +23,7 @@
#include "Interactive Tiles.h"
#include "gameloop.h"
#include "Action Items.h" // added by Flugente
#include "Rebel Command.h"
#endif
#include "connect.h"
@@ -662,16 +663,30 @@ void GoIntoOverheadMap( )
giXC += dX, giYC += dY;
}
if(WORLD_MAX == 129600){
if(NightTime()){
gubGridDivisor = ubResolutionTable360[gGameExternalOptions.ubGridResolutionNight];
}else{
gubGridDivisor = ubResolutionTable360[gGameExternalOptions.ubGridResolutionDay];
if (RebelCommand::ShowApproximateEnemyLocations())
{
gubGridDivisor = ubResolutionTable360[RebelCommand::GetApproximateEnemyLocationResolutionIndex()];
}
else
{
if(NightTime()){
gubGridDivisor = ubResolutionTable360[gGameExternalOptions.ubGridResolutionNight];
}else{
gubGridDivisor = ubResolutionTable360[gGameExternalOptions.ubGridResolutionDay];
}
}
}else{
if(NightTime()){
gubGridDivisor = ubResolutionTable160[gGameExternalOptions.ubGridResolutionNight];
}else{
gubGridDivisor = ubResolutionTable160[gGameExternalOptions.ubGridResolutionDay];
if (RebelCommand::ShowApproximateEnemyLocations())
{
gubGridDivisor = ubResolutionTable160[RebelCommand::GetApproximateEnemyLocationResolutionIndex()];
}
else
{
if(NightTime()){
gubGridDivisor = ubResolutionTable160[gGameExternalOptions.ubGridResolutionNight];
}else{
gubGridDivisor = ubResolutionTable160[gGameExternalOptions.ubGridResolutionDay];
}
}
}
gusGridFrameX = WORLD_COLS * 4;
@@ -1408,7 +1423,8 @@ void RenderOverheadOverlays()
UINT16 jamcolour = Get16BPPColor( FROMRGB( 36, 219, 151 ) );
BOOLEAN marklastenemy = FALSE;
if ( gGameSettings.fOptions[TOPTION_SHOW_LAST_ENEMY] && gGameExternalOptions.ubMarkerMode && gTacticalStatus.Team[ ENEMY_TEAM ].bMenInSector <= gGameExternalOptions.ubSoldiersLeft )
if ( (gGameSettings.fOptions[TOPTION_SHOW_LAST_ENEMY] && gGameExternalOptions.ubMarkerMode && gTacticalStatus.Team[ ENEMY_TEAM ].bMenInSector <= gGameExternalOptions.ubSoldiersLeft)
|| RebelCommand::ShowApproximateEnemyLocations())
marklastenemy = TRUE;
for( i = 0; i < end; ++i )