示例#1
0
 protected virtual void UpdateWithRest(ModernD20Library environment, Character character, RestTypeEnum restType)
 {
     // nothing in base class
 }
示例#2
0
        protected override void UpdateWithRest(ModernD20Library environment, Character character, RestTypeEnum restType)
        {
            switch (restType)
            {
            case RestTypeEnum.Single8Hours:
            case RestTypeEnum.Full24Hours:
            {
                this.Value--;
                environment.CoreNotifications.ReportCharacterAbilityRestored(character, this.AffectedAbility);
                if (this.Value <= 0)
                {
                    environment.RestorationLogic.RemoveEffect(character, this);
                }
                break;
            }

            default:
                throw new ArgumentOutOfRangeException(nameof(restType), restType, null);
            }
        }
 protected override void UpdateWithRest(ModernD20Library environment, Character character, RestTypeEnum restType)
 {
     // nothing, does not restore during rest
 }