Posted November 7, 2015 (edited) Currently base archery damage is calculated based on the average of (bow ql * bow damage) and (arrow ql * bow damage) double damage = (bow.getDamagePercent() * arrow.getCurrentQualityLevel() + bow.getDamagePercent() * bow.getCurrentQualityLevel()) / 2.0f + archery.getKnowledge(0.0) * bow.getDamagePercent();This means arrow damage is meaningless, don't know if its intended but seems odd.I dun goofed sorry I was tirrd Edited November 9, 2015 by Webba Share this post Link to post Share on other sites
Posted November 7, 2015 (edited) Currently base archery damage is calculated based on the average of (bow ql * bow damage) and (arrow ql * bow damage) double damage = (bow.getDamagePercent() * arrow.getCurrentQualityLevel() + bow.getDamagePercent() * bow.getCurrentQualityLevel()) / 2.0f + archery.getKnowledge(0.0) * bow.getDamagePercent(); This means arrow damage is meaningless, don't know if its intended but seems odd. You seem to fail to understand wtf the code does. arrow.getCurrentQualityLevel() the quality of the arrow directly affects the damage... iow "the arrows damage" Edited November 7, 2015 by Zekezor Share this post Link to post Share on other sites
Posted November 9, 2015 You seem to fail to understand wtf the code does.arrow.getCurrentQualityLevel()the quality of the arrow directly affects the damage... iow "the arrows damage" Share this post Link to post Share on other sites
Posted November 9, 2015 public final float getCurrentQualityLevel() { return this.qualityLevel * Math.max(1.0f, 100.0f - this.damage) / 100.0f; } Share this post Link to post Share on other sites
Posted November 9, 2015 "Missing the point" ... in an archery discussion... ​ Share this post Link to post Share on other sites
Posted November 9, 2015 "Missing the point" ... in an archery discussion... ​ especially one with decimals 1 Share this post Link to post Share on other sites
Posted November 9, 2015 public final float getCurrentQualityLevel() { return this.qualityLevel * Math.max(1.0f, 100.0f - this.damage) / 100.0f; } Share this post Link to post Share on other sites
Posted November 9, 2015 (edited) No, getDamagePercent returns the combat damage modifier, not how damaged the bow is. It's 50 for shortbow, 60 for medium, and 70 for longbow, and then spell modifiers are added (for rotting touch only) Edited November 9, 2015 by asdf Share this post Link to post Share on other sites