示例#1
0
 private void CheckBountyCompletion(CargoBounty cargoBounty)
 {
     foreach (var demand in cargoBounty.Demands)
     {
         if (demand.Value > 0)
         {
             return;
         }
     }
     ActiveBounties.Remove(cargoBounty);
     Credits += cargoBounty.Reward;
     OnBountiesUpdate.Invoke();
 }
示例#2
0
 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();
 }