public Dictionary <StatusEffectType, StatusEffectDetail> BuildStatusEffects()
        {
            var builder = new StatusEffectBuilder()
                          .Create(StatusEffectType.Static)
                          .Name("Static")
                          .EffectIcon(139)
                          .TickAction((activator, target) =>
            {
                var damage = Random.D4(1);
                ApplyEffectToObject(DurationType.Instant, EffectDamage(damage, DamageType.Electrical), target);
            });

            return(builder.Build());
        }
示例#2
0
        private static void Poison1(StatusEffectBuilder builder)
        {
            builder.Create(StatusEffectType.Poison1)
            .Name("Poison I")
            .EffectIcon(137)
            .TickAction((activator, target) =>
            {
                var damage = Random.D4(1);

                AssignCommand(activator, () =>
                {
                    ApplyEffectToObject(DurationType.Instant, EffectDamage(damage, DamageType.Acid), target);
                });
            });
        }