protected override void OnEnable() { base.OnEnable(); this.m_Player.BlockMoves(); if (this.m_ChatterName != string.Empty) { ChatterManager.Get().Play(this.m_ChatterName, 0f); } this.m_Animator.SetTrigger(this.m_TDiarrhea); }
public override bool TakeDamage(DamageInfo damage_info) { bool result = base.TakeDamage(damage_info); if (this.m_ChatterName != string.Empty) { ChatterManager.Get().Play(this.m_ChatterName, 0f); } return(result); }
public override bool CanTrigger() { return((!this.m_CantTriggerDuringDialog || !DialogsManager.Get().IsAnyDialogPlaying()) && (!Player.Get().m_DreamActive || !ChatterManager.Get().IsAnyChatterPlaying()) && (!this.m_OneTimeUse || !base.WasTriggered())); }