示例#1
0
        private bool SharedHasActiveCooldown(IItem item, ICharacter character)
        {
            if (this.CooldownDuration <= 0)
            {
                // this item is not subject to the medical cooldown
                return(false);
            }

            if (!character.SharedHasPerk(StatName.PerkCannotUseMedicalItems))
            {
                return(false);
            }

            Logger.Info("Cannot use a medicine - under a medical cooldown: " + item, character);

            if (IsClient)
            {
                StatusEffectMedicalCooldown.ClientShowCooldownNotification();
            }

            return(true);
        }