Inheritance: WithMouseActions
Exemplo n.º 1
0
 public override bool CanTrigger()
 {
     if (BowlController.Get().m_Bowl == this)
     {
         return(base.CanTrigger());
     }
     return(this.m_State != Bowl.State.UnsafeWaterCooking && this.m_State != Bowl.State.HerbCooking);
 }
Exemplo n.º 2
0
 public void TakeLiquid()
 {
     if (BowlController.Get().IsActive())
     {
         BowlController.Get().TakeLiquid(this);
         return;
     }
     LiquidInHandsController.Get().TakeLiquid(this);
 }
Exemplo n.º 3
0
 public override void GetActions(List <TriggerAction.TYPE> actions)
 {
     if (HeavyObjectController.Get().IsActive())
     {
         return;
     }
     if (LiquidInHandsController.Get().IsActive() || BowlController.Get().IsActive())
     {
         actions.Add(TriggerAction.TYPE.Pour);
     }
 }
Exemplo n.º 4
0
 public override void GetActions(List <TriggerAction.TYPE> actions)
 {
     if (HeavyObjectController.Get().IsActive())
     {
         return;
     }
     actions.Add(TriggerAction.TYPE.DrinkHold);
     if (BowlController.Get().IsActive())
     {
         actions.Add(TriggerAction.TYPE.Expand);
     }
 }
Exemplo n.º 5
0
 public override bool CanTrigger()
 {
     if (this.m_CantTriggerDuringDialog && DialogsManager.Get().IsAnyDialogPlaying())
     {
         return(false);
     }
     if (BowlController.Get().m_Bowl == this)
     {
         return(base.CanTrigger());
     }
     return(this.m_State != Bowl.State.UnsafeWaterCooking && this.m_State != Bowl.State.HerbCooking);
 }
Exemplo n.º 6
0
 public override void OnExecute(TriggerAction.TYPE action)
 {
     base.OnExecute(action);
     if (action == TriggerAction.TYPE.Pour)
     {
         if (LiquidInHandsController.Get().IsActive())
         {
             this.Fill(LiquidInHandsController.Get().m_Container.m_LCInfo);
         }
         else if (BowlController.Get().IsActive())
         {
             this.Fill(BowlController.Get().m_Bowl.m_LCInfo);
         }
         if (Inventory3DManager.Get().isActiveAndEnabled)
         {
             Inventory3DManager.Get().OnLiquidTransfer();
         }
     }
 }