When I try to build a mod this is what I get
error CS1704: An assembly with the same simple name 'MP3Sharp, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null has already been imported. Try removing one of the references or sign them to enable side-by-side.error CS1703: An assembly with the same identity 'Newtonsoft.Json, Version=7.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' has already been imported. Try removing one of the duplicate references.
How to fix this?
Delete the mp3sharp.dll that is in the terraria steam folder
[doublepost=1462072686,1462072531][/doublepost]
i got a sword that gives a effect onhit of a enemy when a if() is true
can i change the damage this way?
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
{
if (Main.rand.Next(1) == 0 && NPC.downedBoss1)
{
target.AddBuff(BuffID.OnFire, 1000);
}
if (Main.rand.Next(1) == 0 && NPC.downedBoss2)
{
target.AddBuff(BuffID.Stinky, 1000);
}
if (Main.rand.Next(1) == 0 && NPC.downedBoss3)
{
target.AddBuff(BuffID.Lovestruck, 1000);
}
}
this here is how the test looks
also i cant find all the bosses for downedboss
public override void SetDefaults()
{
item.name = "test sword";
item.damage = 10;
item.melee = true;
item.width = 40;
item.height = 40;
item.useTime = 50;
item.useAnimation = 50;
item.useStyle = 1;
item.knockBack = 6;
item.value = 10000;
item.rare = 1;
item.useSound = 1;
item.autoReuse = true;
}
is there away for the public override void OnHitNPC showen up top
to change the item.damage showen here in anyway
If you want to change the damage, do that in the ModifyHitNPC hook.
public static bool downedBoss1 = false;
public static bool downedBoss2 = false;
public static bool downedBoss3 = false;
public static bool downedQueenBee = false;
public static bool downedSlimeKing = false;
public static bool downedGoblins = false;
public static bool downedFrost = false;
public static bool downedPirates = false;
public static bool downedClown = false;
public static bool downedPlantBoss = false;
public static bool downedGolemBoss = false;
public static bool downedMartians = false;
public static bool downedFishron = false;
public static bool downedHalloweenTree = false;
public static bool downedHalloweenKing = false;
public static bool downedChristmasIceQueen = false;
public static bool downedChristmasTree = false;
public static bool downedChristmasSantank = false;
public static bool downedAncientCultist = false;
public static bool downedMoonlord = false;
public static bool downedTowerSolar = false;
public static bool downedTowerVortex = false;
public static bool downedTowerNebula = false;
public static bool downedTowerStardust = false;
public static int ShieldStrengthTowerSolar = 0;
public static int ShieldStrengthTowerVortex = 0;
public static int ShieldStrengthTowerNebula = 0;
public static int ShieldStrengthTowerStardust = 0;
public static int LunarShieldPowerNormal = 100;
public static int LunarShieldPowerExpert = 150;
public static bool TowerActiveSolar = false;
public static bool TowerActiveVortex = false;
public static bool TowerActiveNebula = false;
public static bool TowerActiveStardust = false;
public static bool LunarApocalypseIsUp = false;
public static bool downedMechBossAny = false;
public static bool downedMechBoss1 = false;
public static bool downedMechBoss2 = false;
public static bool downedMechBoss3 = false;
Also note that "Main.rand.Next(1) == 0" is always true since the parameter in Next is the exclusive upper bound.