File information
Created by
Creator wchf Editor TenebrisUploaded by
TenebrisRegemVirus scan
About this mod
This is a Re Balance of Defend All Interests, with these modifications the protection time is 7 to 8 months for control points with a normal councilor, for some reason the time varies according to skill
The mod also offers protection for Stations for 1 year
Requires Unity Mod Manager
- Permissions and credits
Trait Government & National hero have this mission
The cost for the Mission Defend All Interest is increasing to 250 Influence
The modificacion to the DLL File is the Follow
using PavonisInteractive.TerraInvicta;
#nullable disable
public class TIMissionEffect_GlobalProtect : TIMissionEffect
{
public virtual string ApplyEffect(
TIMissionState mission,
TIGameState target,
TIMissionOutcome outcome = 4)
{
string str1 = "";
int num1 = 0;
foreach (TIControlPoint controlPoint in mission.councilor.faction.controlPoints)
{
str1 = controlPoint.ResolveDefendControlPointEffect( 6 To 240 );
++num1;
}
string str2 = "";
int num2 = 0;
foreach (TIHabState hab in mission.councilor.faction.habs)
{
str2 = hab.ResolveDefendHabEffect(mission.councilor.faction, 12);
++num2;
}
string str3 = Loc.T("TIMissionTemplate.GlobalProtect.pointProtect") + " " + num1.ToString() + " " + Loc.T("TIMissionTemplate.GlobalProtect.till") + " " + str1;
if (num2 > 0)
str3 = str3 + "\n" + Loc.T("TIMissionTemplate.GlobalProtect.habProtect") + " " + num1.ToString() + " " + Loc.T("TIMissionTemplate.GlobalProtect.till") + " " + str2;
return str3;
}
}