fix influence 10 due to wrong call to GetInfluenceForFaction

This commit is contained in:
Florian Stinglmayr 2022-01-29 10:42:08 +01:00
parent 9fc8b02898
commit dd9b558b3c
3 changed files with 397 additions and 1 deletions

View File

@ -20,7 +20,15 @@ namespace EliteBGS.BGS {
} }
public string Influence { 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() { public override string ToString() {

View File

@ -186,6 +186,7 @@
<Content Include="main-objectives.png"> <Content Include="main-objectives.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory> <CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content> </Content>
<None Include="TestData\Double-5-Inf.txt" />
<None Include="TestData\SameInfTwice-Log.txt" /> <None Include="TestData\SameInfTwice-Log.txt" />
<None Include="TestData\SameInfTwice.txt" /> <None Include="TestData\SameInfTwice.txt" />
<None Include="CHANGELOG.md"> <None Include="CHANGELOG.md">

387
TestData/Double-5-Inf.txt Normal file

File diff suppressed because one or more lines are too long