public static CreatureExtraEffect Convert(this CllcCreatureExtraEffect extraEffect) { return(extraEffect switch { CllcCreatureExtraEffect.Aggressive => CreatureExtraEffect.Aggressive, CllcCreatureExtraEffect.Quick => CreatureExtraEffect.Quick, CllcCreatureExtraEffect.Regenerating => CreatureExtraEffect.Regenerating, CllcCreatureExtraEffect.Curious => CreatureExtraEffect.Curious, CllcCreatureExtraEffect.Splitting => CreatureExtraEffect.Splitting, CllcCreatureExtraEffect.Armored => CreatureExtraEffect.Armored, _ => CreatureExtraEffect.None, });
public static IWorldSpawnBuilder SetCllcModifierExtraEffect(this IWorldSpawnBuilder builder, CllcCreatureExtraEffect extraEffect) { if (IntegrationManager.InstalledCLLC) { SetExtraEffect(builder, extraEffect); } return(builder); }
private static void SetExtraEffect(IWorldSpawnBuilder builder, CllcCreatureExtraEffect extraEffect) => builder.SetModifier(new ModifierCllcExtraEffect(extraEffect));
public ModifierCllcExtraEffect(CllcCreatureExtraEffect extraEffect) { ExtraEffect = extraEffect.Convert(); }