public void CompleteProject() { totalPayout = VALUE_PER_QUALITY_LEVEL * QualityLevels.Sum(); payoutPerMonth = Mathf.FloorToInt((float)totalPayout / PROJECT_SELL_MONTHS); TimeManager.PerMonthEvent.AddListener(Payout); CurrentStatus = Status.OnSale; InformationPanelManager.Instance.DisplayMessage( string.Format("{0} is now on sale!", Name), 2.0f); }
public Contract(string name, SkillList reqs, int days, int currency, int rep) { Name = name; SkillPointsRemaining = reqs; InitialPointsNeeded = SkillPointsRemaining.Sum(); DaysToComplete = days; DaysRemaining = days; Payment = currency; ReputationReward = rep; Negotiated = false; SuccessfulNegotiation = false; }