public void AddCentralBank(TransactionType transactionType, double amount) { if (IsOnTrainingZone()) { return; } _centralBank.AddAmount(amount, transactionType); }
public void AddCentralBank(TransactionType transactionType, double amount) { amount = Math.Abs(amount); var centralBankShare = amount; var profitingOwner = ProfitingOwnerSelector.GetProfitingOwner(this); if (profitingOwner != null) { var multiplier = GetOwnerRefundMultiplier(transactionType); if (multiplier > 0.0) { var shareFromOwnership = amount * multiplier; centralBankShare = amount * (1 - multiplier); Logger.Info("corpEID: " + profitingOwner.Eid + " adding to wallet: " + shareFromOwnership + " as docking base owner facility payback."); IntrusionHelper.AddOwnerIncome(profitingOwner.Eid, shareFromOwnership); } } _centralBank.AddAmount(centralBankShare, transactionType); }