Each weapons has a strength when the weapons is damaged the strength can be written in fractional form. For instance the fractional remaining can be written as as: 4550/5000. Call the numerator (4550) the current strength, the denominator the full strength (5000) and the full strength minus the current strength the damage.
I propose the following formula for the total resale cost:
((#weaons sold)*(current strength)*(cost of new weapon)*3)/(4*(full strength))
(#weapons sold) is the number of weapons being sold of that type by the person selling them.
Notice the parenthesis. They are there because integer division is not handled well all multiplications should be done before division.
I also propose the total repair cost should be:
((#weaons)*(damage)*(cost of new weapon)*3)/(4*strength)
Where
(# weapons) is the the number of weapons of that type the person repair them owns
Note the factor 3/4 in both formulas. In the case of weapons being sold the weapons should resell for less then there original purchase price. In the case of repair, it should be cheaper to repair weapons then it cost to buy new ones.
I am informed that we only need to calculate the resale cost per weapon. In this case
the formula for the resale cost per weapons is:
((current strength)*(cost of new weapon)*3)/(4*(full strength))
Similarly the repair cost per point is:
((#weaons)*(cost of new weapon)*3)/(4*strength)
And the repair cost per point per weapon is:
(cost of new weapon)*3)/(4*strength)
The strength and price of each weapons was added bellow by note. I propose that the price of weapons should be in another thread. In which case the quoted text bellow will be removed.
QUOTE
Attack Armor
Weapon strength Cost
Dagger 10 2500
Hand Axe 20 5000
Spear 50 7500
Mace 100 12500
Flail 450 50000
Hammer 750 75000
War Hammer 1000 95000
Battle Axe 3000 250000
Morningstar 5000 350000
Two Handed Sword 10000 500000
Defence Armor
Leather Helmet 10 2500
Leather Armor 20 5000
Wooden Shield 50 7500
Scale Mail 100 12500
Iron Shield 450 50000
Plate Armor 750 75000
Steel Shield 1000 95000
Steel Helmet 3000 250000
Steel Plate Armor 5000 350000
Elven Mail 10000 500000
Weapon strength Cost
Dagger 10 2500
Hand Axe 20 5000
Spear 50 7500
Mace 100 12500
Flail 450 50000
Hammer 750 75000
War Hammer 1000 95000
Battle Axe 3000 250000
Morningstar 5000 350000
Two Handed Sword 10000 500000
Defence Armor
Leather Helmet 10 2500
Leather Armor 20 5000
Wooden Shield 50 7500
Scale Mail 100 12500
Iron Shield 450 50000
Plate Armor 750 75000
Steel Shield 1000 95000
Steel Helmet 3000 250000
Steel Plate Armor 5000 350000
Elven Mail 10000 500000



