private void CheckBountyCompletion(CargoBounty cargoBounty) { foreach (var demand in cargoBounty.Demands) { if (demand.Value > 0) { return; } } ActiveBounties.Remove(cargoBounty); Credits += cargoBounty.Reward; OnBountiesUpdate.Invoke(); }
private void CheckBountyCompletion(CargoBounty cargoBounty) { foreach (var demand in cargoBounty.Demands.m_dict) { if (demand.Value > 0) { return; } } ActiveBounties.Remove(cargoBounty); Credits += cargoBounty.Reward; CentcomMessage += $"+{cargoBounty.Reward.ToString()} credits: {cargoBounty.Description} - completed.\n"; OnBountiesUpdate.Invoke(); }