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); }
public void TakeLiquid() { if (BowlController.Get().IsActive()) { BowlController.Get().TakeLiquid(this); return; } LiquidInHandsController.Get().TakeLiquid(this); }
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); } }
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); } }
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); }
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(); } } }