Exemplo n.º 1
0
        public new bool DoWater()
        {
            if (herbSkill == null)
            {
                herbSkill = Actor.SkillManager.GetSkill <EWHerbLoreSkill>(EWHerbLoreSkill.SkillNameID);
            }

            if (herbSkill == null)
            {
                return(false);
            }

            StandardEntry();
            BeginCommodityUpdates();
            // Probably just a quick animation, maybe dropping a toy prop?
            Actor.PlaySoloAnimation("a_idle_stand_sniffAround_x");
            //mCurrentStateMachine = Target.GetStateMachine(Actor, out Soil dummyIk);
            EndCommodityUpdates(succeeded: false);
            StandardExit();
            //AddOneShotScriptEventHandler(1001u, (SacsEventHandler)(object)new SacsEventHandler(StartWateringSound));
            //AddOneShotScriptEventHandler(1002u, (SacsEventHandler)(object)new SacsEventHandler(StopWateringSound));
            //mCurrentStateMachine.RequestState("x", "Loop Water");
            Target.WaterLevel = 100f;
            EventTracker.SendEvent(EventTypeId.kWateredPlant, Actor, Target);
            EventTracker.SendEvent(EventTypeId.kGardened, Actor);
            EndCommodityUpdates(succeeded: true);
            StandardExit();
            return(true);
        }
Exemplo n.º 2
0
 public SpeciesPlanted(EWHerbLoreSkill skill)
 {
     mSkill = skill;
 }
Exemplo n.º 3
0
 public override void MergeTravelData(Skill mergeSkill)
 {
     base.MergeTravelData(mergeSkill);
     EWHerbLoreSkill skill = mergeSkill as EWHerbLoreSkill;
 }
Exemplo n.º 4
0
 public OppTest(EWHerbLoreSkill skill)
 {
     mSkill = skill;
 }