Mostly Rydian figured out the repair cost formula for us, hurray!!
So I added a bunch of templates to show them automatically on the pages.
The Repair90 arguments still exist as overrides so I removed all of them for now. If any calculation is incorrect or non-existent you can use them to force a correct value (like in Brionac). Every Light Armor we checked was incorrect and a few values from items that can be purchased at discounted rates.
The Repairs argument has been completely removed.
This affects both Template:StyleWeapon and Template:StyleEquip of course.
The added templates are Template:RepairCost and its sub-template, the tables (0 1 2 3 4 5 6 7 8 9), Template:RepairTableFromCategory, and the style template Template:StyleRepairCost and its sub-template.
If anything is wrong let us know! If you see ?s the item may be missing its Category or BuyPrice (or may just need a More -> Refresh). If you're double checking things, make sure your version of the item is the default price one (eg. 1500 for dagger). Usually it's the version that the most people sell. Of course if it's not sold by anyone there's no such worry.
The actual formula is as follows:
B = BuyPrice * A
Repair Cost = floor(5 / sqrt(floor(Original Durability / 1000)) * (B + min(B, C)))
A and B are variables dependent on the item type and the success rate of the repair, they're what are defined in those tables. The tables return the costs for 90 to 100%. I'll add documentation on the templates eventually but I literally spent half my day writing those and I don't want to right now (I have mission points to get).
Posted by Kadalyn (administrator) on 25 July 2017 at 20:59. Edited by Kadalyn (administrator) on 27 July 2017 at 00:16. |
|