public override void UpdateAccessory(Player player, bool hideVisual) { LaugicalityPlayer modPlayer = LaugicalityPlayer.Get(player); switch (modPlayer.MysticMode) { case 1: if (modPlayer.Lux <= modPlayer.LuxMax + modPlayer.LuxMaxPermaBoost && (modPlayer.CurrentLuxCost > modPlayer.Lux || (modPlayer.Vis >= (modPlayer.VisMax + modPlayer.VisMaxPermaBoost) * modPlayer.VisOverflow * modPlayer.GlobalOverflow) || (modPlayer.Mundus >= (modPlayer.MundusMax + modPlayer.MundusMaxPermaBoost) * modPlayer.MundusOverflow * modPlayer.GlobalOverflow))) { modPlayer.MysticSwitch(); } break; case 2: if (modPlayer.Vis <= modPlayer.VisMax + modPlayer.VisMaxPermaBoost && (modPlayer.CurrentVisCost > modPlayer.Vis || (modPlayer.Lux >= (modPlayer.LuxMax + modPlayer.LuxMaxPermaBoost) * modPlayer.LuxOverflow * modPlayer.GlobalOverflow) || (modPlayer.Mundus >= (modPlayer.MundusMax + modPlayer.MundusMaxPermaBoost) * modPlayer.MundusOverflow * modPlayer.GlobalOverflow))) { modPlayer.MysticSwitch(); } break; default: if (modPlayer.Mundus <= modPlayer.MundusMax + modPlayer.MundusMaxPermaBoost && (modPlayer.CurrentMundusCost > modPlayer.Mundus || (modPlayer.Vis >= (modPlayer.VisMax + modPlayer.VisMaxPermaBoost) * modPlayer.VisOverflow * modPlayer.GlobalOverflow) || (modPlayer.Lux >= (modPlayer.LuxMax + modPlayer.LuxMaxPermaBoost) * modPlayer.LuxOverflow * modPlayer.GlobalOverflow))) { modPlayer.MysticSwitch(); } break; } }
public override void UpdateAccessory(Player player, bool hideVisual) { LaugicalityPlayer modPlayer = LaugicalityPlayer.Get(player); switch (modPlayer.MysticMode) { case 1: if (modPlayer.CurrentLuxCost > modPlayer.Lux) { modPlayer.MysticSwitch(); } break; case 2: if (modPlayer.CurrentVisCost > modPlayer.Vis) { modPlayer.MysticSwitch(); } break; default: if (modPlayer.CurrentMundusCost > modPlayer.Mundus) { modPlayer.MysticSwitch(); } break; } }