wetwlly/mooege — comment on commit c46749fa0801d2c6e674a6fed87b16327a4bae73
File: src/Mooege/Core/GS/Powers/Implementations/HeroSkills/Wizard.cs line 393
By mdz444:

if these all do the same thing you could just put them in a base class and inherit it to add each ImplementsPowerBuff(), like this:

class OrbitBase : PowerBuff
{
public override bool Update()
{
if (base.Update())
return true;

var targets = GetEnemiesInRadius(Target.Position, 10f);
if (targets.Actors.Count > 0)
{
WeaponDamage(targets, 1.00f, DamageType.Arcane);
return true;
}

return false;
}
}

[ImplementsPowerBuff(0)]
class Orbit1 : OrbitBase
{
}

[ImplementsPowerBuff(1)]
class Orbit2 : OrbitBase
{
}

[ImplementsPowerBuff(2)]
class Orbit3 : OrbitBase
{
}

[ImplementsPowerBuff(3)]
class Orbit4 : OrbitBase
{
}