it is actually an update to this one (made by compa, refer to thanks)
though a lot has been changed (refer to changelog for all details)
major differences :
- no more specific per mod per boss adjustments (sorry too much work for me alone) (EDIT: though again the code is on github now, so anyone can contribute, all contributors will be properly credited, and if it's a major contrib you'll be added to authors field)
- multipliers actually work on all entities (no they did not, even with vanilla, all entities with negative ID such as green slimes were escaping it, including some modded bosses such as the grand thunderbird by thorium)
- scale has been removed (except for bosses) because it can majorly mess up AIs (zombies for example) : the risk is definetely not worth the reward. I still left the ability to change boss scale hoping it wouldn't cause too much issues.
- some modifiers were added : player health, player mana, player regen.
On the backend, a whole bunch of code got rewritten (at least 50~70%), hence why I thought it warranted its own version. Though if compa ever came back (yes I have tried contacting her) & had issues with that (despite her open source mod) I'd be happy to solve it in private & find an adequate solution without crippling users.
What if i want to add more health on to the chestplate? my current code is this
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace ExampleMod.Items.Armor
{
[AutoloadEquip(EquipType.Body)]
public class ExampleBreastplate : ModItem
{
public override void SetStaticDefaults()
{
base.SetStaticDefaults();
DisplayName.SetDefault("Example Breastplate");
Tooltip.SetDefault("This is a modded body armor."
+ "\nImmunity to 'On Fire!'"
+ "\n+20 max mana and +1 max minions");
}
public override void SetDefaults()
{
item.width = 18;
item.height = 18;
item.value = 10000;
item.rare = 2;
item.defense = 60;
}
public override void UpdateEquip(Player player)
{
player.buffImmune[BuffID.OnFire] = true;
player.statManaMax2 += 20;
player.maxMinions++;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(null, "EquipMaterial", 60);
recipe.AddTile(null, "ExampleWorkbench");
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
[doublepost=1522684420,1522684388][/doublepost]Oh sorry i dont know how to use the code thing im new to forumns