CitizensDev/Citizens — Issue #478: Blacksmith Repair Idea
Author: FePython
Created: 2011-12-16 01:07:28+00:00
State: open

Here is a suggestion for your Blacksmith NPC. right now you got 1 value for all tools of one kind of materiel. well that's is alright but kinda limiting, il show you what i mean

in are server 1 diamond is worth 1,000 Drics. a pickaxe then cost about 3k Drics so does an axe. i can set up tool diamond cost to be 1.8 that way it cost about 2,811 Dric's to repair your tool so it cost less to travel to the blacksmith and have him fix it then let it brake and build a new one by about 189 Dric's (over time that pay's for a free pickaxe)

well thats great but then we drop to lower tools like hoe. that cost 2K to make but has the same durability as the axe. so your spending 811 Dric's more repairing it and so its costing you a lot more in the end. and shovels cost you an extra 1,811 so there is nearly 2 shovels if you tried to repair it.

i could set it up so the value is set for shovels but then axe's are dirt cheap and if i set it to hoe's then shovels are to pricy and axe's are still cheap. so this is my idea (btw this also goes for armor as a helmet cost 5k were a chest is 8k) set up in the config a tool ratio ether programed in the code were we cant change it or let us for example

blacksmith:
creation: 0
toolrepair:
wood: 0.25
diamond: 1.8
stone: 0.75
gold: 0.5
iron: 1
misc: 0.5
toolratio:
shovel: 1
hoe: 1
sword: 1
axe: 1
pickaxe: 1

then the equation can be something like.

((maxItemDurability - currentItemDurability) * basePrice) * ratio

all of them will be 1 by default but that lets people change how much of a deference they wish to charge for each kind of tool. me id make is 1 for shovel and 3 for axe as that's how many diamonds are used in the making. so it would end up costing:

Diamond: 0.6

Shovel: make: 1,000 repair: 937 Saving: 63
Hoe: Make: 2,000 Repair: 1,874 Saving: 125
Axe: Make: 3,000 Repair: 2,811 Saving: 188

that can also work for any other materials as well as you can set up something like that for armor so that helms cost less then chest.