Exemple #1
0
        protected override bool PrivateUpdate(ScenarioFrame frame)
        {
            if (mHousehold != null)
            {
                SimDescription head = SimTypes.HeadOfFamily(mHousehold);
                if (head != null)
                {
                    Add(frame, new GotPaidScenario(Sim, head, mRepaired), ScenarioResult.Start);
                    return(false);
                }
            }

            int basePay = GotPaidScenario.GetBasePay(Sim.OccupationAsSkillBasedCareer);

            int funds = RandomUtil.GetInt(basePay / 2, basePay);

            Money.AdjustFunds(Sim, "Repaired", funds);

            GotPaidScenario.UpdateExperience(Sim, funds);
            return(true);
        }
Exemple #2
0
 protected GotPaidScenario(GotPaidScenario scenario)
     : base(scenario)
 {
     mRepaired = scenario.mRepaired;
 }