SpikeLicious
Terrarian
Hello, I am trying to make a mod for my friend and I to play, its for his birthday so I'm trying to make it as weird and amusing as possible thus the weird item I will ask about. Anyway I am getting this error when I try to add a accessory: (26,25) : CS1518: Expected class, delegate, enum, interface, or struct
I have had so many problems so far which I have worked around. But please help me with this.
My code for the accessory:
using System;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace SpikyBelly.Items
{
public class BellyEmblem : ModItem
{
public override void SetDefaults()
{
item.name = "Belly Emblem";
item.width = 10;
item.height = 14;
item.toolTip = "Use this if your willing to take the path of a belly.";
item.toolTip2 = "This can be fused with the souls of the bosses";
item.value = 10;
item.rare = 3;
item.accessory = true;
}
}
public override void UpdateAccessory(Player, player bool hideVisual)
{
player.noFallDmg = false;
player.canRocket = false;
player.rocketTime = 0;
player.rocketBoots = 0;
player.rocketTimeMax = 0;
player.aggro += 0;
player.meleeCrit += 0;
player.meleeDamage += 0f;
player.meleeSpeed += 0f;
player.moveSpeed += 0f;
player.rangedCrit += 0;
player.rangedDamage += 0f;
player.maxMinions++;
player.minionDamage += 0f;
player.statManaMax2 += 40;
player.manaCost -= 0.15f;
player.magicCrit += 7;
player.magicDamage += 3f;
}
}
I have had so many problems so far which I have worked around. But please help me with this.
My code for the accessory:
using System;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace SpikyBelly.Items
{
public class BellyEmblem : ModItem
{
public override void SetDefaults()
{
item.name = "Belly Emblem";
item.width = 10;
item.height = 14;
item.toolTip = "Use this if your willing to take the path of a belly.";
item.toolTip2 = "This can be fused with the souls of the bosses";
item.value = 10;
item.rare = 3;
item.accessory = true;
}
}
public override void UpdateAccessory(Player, player bool hideVisual)
{
player.noFallDmg = false;
player.canRocket = false;
player.rocketTime = 0;
player.rocketBoots = 0;
player.rocketTimeMax = 0;
player.aggro += 0;
player.meleeCrit += 0;
player.meleeDamage += 0f;
player.meleeSpeed += 0f;
player.moveSpeed += 0f;
player.rangedCrit += 0;
player.rangedDamage += 0f;
player.maxMinions++;
player.minionDamage += 0f;
player.statManaMax2 += 40;
player.manaCost -= 0.15f;
player.magicCrit += 7;
player.magicDamage += 3f;
}
}