fix influence 10 due to wrong call to GetInfluenceForFaction
This commit is contained in:
parent
9fc8b02898
commit
dd9b558b3c
@ -20,7 +20,15 @@ namespace EliteBGS.BGS {
|
||||
}
|
||||
|
||||
public string Influence {
|
||||
get { return (Entries[0] as MissionCompletedEntry).GetInfluenceForFaction(Faction); }
|
||||
get {
|
||||
MissionCompletedEntry e = (Entries[0] as MissionCompletedEntry);
|
||||
|
||||
if (SystemAddress == 0) {
|
||||
return e.GetInfluenceForFaction(Faction);
|
||||
} else {
|
||||
return e.GetInfluenceForFaction(Faction, SystemAddress);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString() {
|
||||
|
@ -186,6 +186,7 @@
|
||||
<Content Include="main-objectives.png">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<None Include="TestData\Double-5-Inf.txt" />
|
||||
<None Include="TestData\SameInfTwice-Log.txt" />
|
||||
<None Include="TestData\SameInfTwice.txt" />
|
||||
<None Include="CHANGELOG.md">
|
||||
|
387
TestData/Double-5-Inf.txt
Normal file
387
TestData/Double-5-Inf.txt
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user