Clean up accessory code.
This commit is contained in:
@@ -9,7 +9,6 @@ public class NebulaBand : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Nebula Band");
|
||||
Tooltip.SetDefault("12% increased magic damage \nGrants immunity to the [c/FF4E00:On Fire!], [c/A84DFD:Distorted], and [c/9362B3:Obstructed] debuffs");
|
||||
}
|
||||
|
||||
@@ -26,17 +25,17 @@ public class NebulaBand : ModItem
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.GetDamage(DamageClass.Magic) += 0.12f;
|
||||
player.buffImmune[24] = true;
|
||||
player.buffImmune[164] = true;
|
||||
player.buffImmune[163] = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Obstructed] = true;
|
||||
player.buffImmune[BuffID.VortexDebuff] = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ModContent.ItemType<HallowedBand>());
|
||||
val.AddIngredient(ItemID.FragmentNebula, 6);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
CreateRecipe()
|
||||
.AddIngredient(ModContent.ItemType<HallowedBand>())
|
||||
.AddIngredient(ItemID.FragmentNebula, 6)
|
||||
.AddTile(TileID.LunarCraftingStation)
|
||||
.Register();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user