public static void RegisterWorldOfDeathAndLoveFieldEffect() { FieldEffectLibrary.AddNewFieldEffect(WorldOfDeathAndLoveId, () => new FieldEffect { Id = WorldOfDeathAndLoveId, IsLocal = true, TurnDuration = 3, ProcessEffects = (raid, raidActions) => { foreach (var entity in raid.Allies.Concat(raid.Enemies)) { entity.ApplyStatusEffect(new StatusEffectSnapshot { Id = $"{WorldOfDeathAndLoveId}/atk_up", IsUsedInternally = true, Modifier = ModifierLibrary.FlatAttackBoost, Strength = 20, IsPassiveEffect = true, }); } foreach (var entity in raid.Allies) { entity.ApplyStatusEffect(new StatusEffectSnapshot { Id = $"{WorldOfDeathAndLoveId}/echo", IsUsedInternally = true, Modifier = ModifierLibrary.AdditionalDamage, Strength = 30, IsPassiveEffect = true, }); } }, }); }
public static void RegisterSpacialRuptureFieldEffect() { FieldEffectLibrary.AddNewFieldEffect(SpacialRuptureId, () => new FieldEffect { Id = SpacialRuptureId, DurationInSeconds = 180, ProcessEffects = (raid, raidActions) => { foreach (var entity in raid.Allies.Concat(raid.Enemies)) { entity.ApplyStatusEffectsFromTemplate( new StatusEffectSnapshot { IsUsedInternally = true, IsPassiveEffect = true, }, ($"{SpacialRuptureId}/da_up", ModifierLibrary.FlatDoubleAttackRateBoost, 20), ($"{SpacialRuptureId}/ta_up", ModifierLibrary.FlatTripleAttackRateBoost, 10)); } }, });