Skip to content

Commit

Permalink
Fix arrow/bolt accuracy and breakchance being mixed up :(
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Oct 26, 2014
1 parent dc1ecab commit 08cd6c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/tconstruct/weaponry/WeaponryHandler.java
Expand Up @@ -56,7 +56,7 @@ public void onAmmoCrafted(ToolCraftEvent.NormalTool event)
float accuracy = fletching.accuracy;
float breakChance = shaft.fragility + fletching.breakChance;

setAmmoData(tags, durability, weight, accuracy, breakChance, head.shoddy(), head.reinforced());
setAmmoData(tags, durability, weight, breakChance, accuracy, head.shoddy(), head.reinforced());
}
else if(event.tool instanceof BoltAmmo)
{
Expand All @@ -81,7 +81,7 @@ else if(event.tool instanceof BoltAmmo)
float shoddy = (headMat.shoddy() + coreMat.shoddy())/2f;
int reinforced = Math.max(headMat.reinforced(), coreMat.reinforced());

setAmmoData(tags, durability, weight, accuracy, breakChance, shoddy, reinforced);
setAmmoData(tags, durability, weight, breakChance, accuracy, shoddy, reinforced);
}

// now that durability has been handled...
Expand Down

0 comments on commit 08cd6c5

Please sign in to comment.