mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 13:09:53 +00:00
The arrow material now has an impact on the breakchance of the arrow (head for arrow, head+core for bolt)
This commit is contained in:
1 parent
69a40221d8
commit
5d0a151947
2 files changed
+15
-15
No files matched your search
@@ -77,7 +77,7 @@ public class WeaponryHandler {
|
||||
int durability = (int)((float)head.durability() * shaft.durabilityModifier * fletching.durabilityModifier);
|
||||
float weight = arrow.mass + shaft.weight;
|
||||
float accuracy = fletching.accuracy;
|
||||
float breakChance = shaft.fragility + fletching.breakChance;
|
||||
float breakChance = shaft.fragility * arrow.breakChance + fletching.breakChance;
|
||||
|
||||
setAmmoData(tags, durability, weight, breakChance, accuracy, head.shoddy(), head.reinforced());
|
||||
|
||||
@@ -108,7 +108,7 @@ public class WeaponryHandler {
|
||||
int durability = (int)((float)headMat.durability() * coreMat.handleDurability() * fletching.durabilityModifier);
|
||||
float weight = head.mass + core.mass*1.5f;
|
||||
float accuracy = (100f + fletching.accuracy)/2f;
|
||||
float breakChance = fletching.breakChance*3;
|
||||
float breakChance = (fletching.breakChance*2 + 0.15f * core.breakChance) * head.breakChance/2f;
|
||||
float shoddy = (headMat.shoddy() + coreMat.shoddy())/2f;
|
||||
int reinforced = Math.max(headMat.reinforced(), coreMat.reinforced());
|
||||
|
||||
|
||||
Reference in new issue
Block a user