diff --git a/GameSettings.cpp b/GameSettings.cpp index c1932a3f..684fee82 100644 --- a/GameSettings.cpp +++ b/GameSettings.cpp @@ -4160,6 +4160,7 @@ void LoadRebelCommandSettings() // agent missions gRebelCommandSettings.iMissionBaseCost = iniReader.ReadInteger("Rebel Command Settings", "MISSION_BASE_COST", 500, 100, 10000); gRebelCommandSettings.iMissionAdditionalCost = iniReader.ReadInteger("Rebel Command Settings", "MISSION_ADDITIONAL_COST", 250, 0, 10000); + gRebelCommandSettings.iMissionPrepTime = iniReader.ReadInteger("Rebel Command Settings", "MISSION_PREPARATION_TIME", 24, 1, 168); gRebelCommandSettings.iMissionRefreshTimeDays = iniReader.ReadInteger("Rebel Command Settings", "MISSION_REFRESH_TIME_DAYS", 2, 1, 7); gRebelCommandSettings.iMinLoyaltyForMission = iniReader.ReadInteger("Rebel Command Settings", "MIN_LOYALTY_FOR_MISSION", 51, 0, 100); diff --git a/GameSettings.h b/GameSettings.h index 517d7e3a..5f5db0ad 100644 --- a/GameSettings.h +++ b/GameSettings.h @@ -1845,6 +1845,7 @@ typedef struct // agent missions INT32 iMissionBaseCost; INT32 iMissionAdditionalCost; + INT16 iMissionPrepTime; INT8 iMissionRefreshTimeDays; INT8 iMinLoyaltyForMission; diff --git a/Strategic/Rebel Command.cpp b/Strategic/Rebel Command.cpp index 79008f80..72dfd535 100644 --- a/Strategic/Rebel Command.cpp +++ b/Strategic/Rebel Command.cpp @@ -2985,7 +2985,7 @@ void PrepareMission(INT8 index) // queue up the mission start event. make sure we use the top of the hour because I'm lazy and we're handling the assignment here instead of Assignments.cpp const UINT32 time = GetWorldTotalMin(); - //AddStrategicEvent(EVENT_REBELCOMMAND, time + (60 - time % 60) + 60 * 24, MissionHelpers::missionParam); + //AddStrategicEvent(EVENT_REBELCOMMAND, time + (60 - time % 60) + 60 * gRebelCommandSettings.iMissionPrepTime, MissionHelpers::missionParam); AddStrategicEvent(EVENT_REBELCOMMAND, time + (60 - time % 60) + 60, MissionHelpers::missionParam); // rftr todo: DELETE ME missionMap.insert(std::make_pair(static_cast(evt.missionId), MissionHelpers::missionParam));