Projectiles multiplicative speed scaling now only works off the base-damage of the projectile. Quartz is added flat afterwards.

For that purpose Tools now have base-damage saved. For existing tools the damage added by quartz is simply subtracted before the calculation.
This commit is contained in:
Bernhard Bonigl committed 2015-01-30 17:34:30 +01:00
1 parent cfebaef2c3
commit 283c3cf12a
2 files changed
+21 -1

No files matched your search

@@ -280,6 +280,7 @@ public class ToolBuilder
compound.getCompoundTag("InfiTool").setFloat("ModDurability", 0f); //Modifier
compound.getCompoundTag("InfiTool").setBoolean("Broken", false);
compound.getCompoundTag("InfiTool").setInteger("Attack", attack);
compound.getCompoundTag("InfiTool").setInteger("BaseAttack", attack);
compound.getCompoundTag("InfiTool").setInteger("MiningSpeed", headMat.toolSpeed());
compound.getCompoundTag("InfiTool").setInteger("HarvestLevel", headMat.harvestLevel());