Skip to content

Commit 97e07a8

Browse files
committed
*only war enemys are border
1 parent e6834f1 commit 97e07a8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

WarTech/WarTech/Helper.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -482,9 +482,9 @@ public static StarSystem ChangeWarDescription(StarSystem system, SimGameState Si
482482
public static bool IsBorder(StarSystem system, SimGameState Sim) {
483483
try {
484484
bool result = false;
485-
if (Sim.Starmap != null && !IsExcluded(system.Owner)) {
485+
if (Sim.Starmap != null && !IsExcluded(system.Owner) ) {
486486
foreach (StarSystem neigbourSystem in Sim.Starmap.GetAvailableNeighborSystem(system)) {
487-
if (system.Owner != neigbourSystem.Owner && !IsExcluded(neigbourSystem.Owner)) {
487+
if (system.Owner != neigbourSystem.Owner && !IsExcluded(neigbourSystem.Owner)&& Fields.currentEnemies[system.Owner].Contains(neigbourSystem.Owner)) {
488488
result = true;
489489
break;
490490
}

WarTech/WarTech/WarTech.csproj

+2-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
<Reference Include="0Harmony">
3535
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\BATTLETECH\BattleTech_Data\Managed\0Harmony.dll</HintPath>
3636
</Reference>
37-
<Reference Include="Assembly-CSharp">
37+
<Reference Include="Assembly-CSharp, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
38+
<SpecificVersion>False</SpecificVersion>
3839
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\BATTLETECH\BattleTech_Data\Managed\Assembly-CSharp.dll</HintPath>
3940
</Reference>
4041
<Reference Include="Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">

0 commit comments

Comments
 (0)