Skip to content

Commit

Permalink
update credits for :
Browse files Browse the repository at this point in the history
-SearchAndRescue
-FactionKillBond
-DatalinkVoucher
-CommunityGoalReward
-CapShipBond
-Bounty
-MultiSellExplorationData
-SellExplorationData
  • Loading branch information
mhwlng committed May 14, 2021
1 parent 6979d60 commit d4c1509
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 4 deletions.
72 changes: 72 additions & 0 deletions Elite/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1335,6 +1335,78 @@ public static void HandleEliteEvents(object sender, JournalEventArgs e)

break;

case "SearchAndRescue":
//When written: when contributing materials to a "research" community goal
var searchAndRescueInfo = (SearchAndRescueEvent.SearchAndRescueEventArgs)e;

CommanderData.Credits += searchAndRescueInfo.Reward;

break;
case "FactionKillBond":
//When written: Player rewarded for taking part in a combat zone

var factionKillBondInfo = (FactionKillBondEvent.FactionKillBondEventArgs)e;

CommanderData.Credits += factionKillBondInfo.Reward;

break;
case "DatalinkVoucher":

//When written: when scanning a datalink generates a reward

var datalinkVoucherInfo = (DatalinkVoucherEvent.DatalinkVoucherEventArgs)e;

CommanderData.Credits += datalinkVoucherInfo.Reward;

break;
case "CommunityGoalReward":

//When Written: when receiving a reward for a community goal

var communityGoalRewardInfo = (CommunityGoalRewardEvent.CommunityGoalRewardEventArgs)e;

CommanderData.Credits += communityGoalRewardInfo.Reward;

break;
case "CapShipBond":

//When written: The player has been rewarded for a capital ship combat

var capShipBondInfo = (CapShipBondEvent.CapShipBondEventArgs)e;

CommanderData.Credits += capShipBondInfo.Reward;

break;
case "Bounty":

// When written: player is awarded a bounty for a kill

var bountyInfo = (BountyEvent.BountyEventArgs)e;

CommanderData.Credits += bountyInfo.TotalReward;

break;

case "MultiSellExplorationData":

//When Written: when selling exploration data in Cartographics

var multiSellExplorationDataInfo = (MultiSellExplorationDataEvent.MultiSellExplorationDataEventArgs)e;

CommanderData.Credits += multiSellExplorationDataInfo.TotalEarnings;

break;

case "SellExplorationData":

//When Written: when selling exploration data in Cartographics

var sellExplorationDataInfo = (SellExplorationDataEvent.SellExplorationDataEventArgs)e;

CommanderData.Credits += sellExplorationDataInfo.TotalEarnings;

break;

case "Materials":

var materialsInfo = (MaterialsEvent.MaterialsEventArgs)e;
Expand Down
4 changes: 2 additions & 2 deletions Elite/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.7.1.0")]
[assembly: AssemblyFileVersion("1.7.1.0")]
[assembly: AssemblyVersion("1.7.2.0")]
[assembly: AssemblyFileVersion("1.7.2.0")]

[assembly: log4net.Config.XmlConfigurator(Watch = true)]
4 changes: 2 additions & 2 deletions ImportData/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.7.1.0")]
[assembly: AssemblyFileVersion("1.7.1.0")]
[assembly: AssemblyVersion("1.7.2.0")]
[assembly: AssemblyFileVersion("1.7.2.0")]

[assembly: log4net.Config.XmlConfigurator(Watch = true)]

0 comments on commit d4c1509

Please sign in to comment.