public override void Update(Player player, ref int buffIndex) { WolfsPlayer p = player.GetModPlayer <WolfsPlayer>(); if (p.amgAccessoryPrevious) { p.amgVisual = true; } else { player.DelBuff(buffIndex); buffIndex--; } }
public override void UpdateAccessory(Player player, bool hideVisual) { player.tileSpeed *= 4; player.pickSpeed -= 10; player.wallSpeed += 10; player.autoPaint = true; if (player.whoAmI == Main.myPlayer) { Player.tileRangeX += 3; Player.tileRangeY += 2; Lighting.AddLight(player.Center, 1f, 1f, 1f); } WolfsPlayer p = player.GetModPlayer <WolfsPlayer>(); p.amgAccessory = true; if (hideVisual) { p.amgHideVanity = true; } }