public override void UpdateAccessory(Player player, bool hideVisual) { WolfHeroPlayer p = player.GetModPlayer <WolfHeroPlayer>(); p.NeffAccessory = true; if (hideVisual) { p.NeffHideVanity = true; } }
public override void Update(Player player, ref int buffIndex) { WolfHeroPlayer p = player.GetModPlayer <WolfHeroPlayer>(); // We use blockyAccessoryPrevious here instead of blockyAccessory because UpdateBuffs happens before UpdateEquips but after ResetEffects. if (p.NeffAccessoryPrevious) { p.NeffPower = true; player.jumpSpeedBoost += 1.25f; player.maxRunSpeed += 0.10f; player.statDefense += 2; player.moveSpeed += 0.05f; } else { player.DelBuff(buffIndex); buffIndex--; } }