Ejemplo n.º 1
0
    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);
    }
Ejemplo n.º 2
0
 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;
 }