Illarion-eV / Illarion-Content

Illarion game content, including NPCs, quests, fighting system, etc.
GNU Affero General Public License v3.0
30 stars 40 forks source link

Scale amount of the repair kits that are used on a repair #374

Closed brightrim closed 4 months ago

brightrim commented 1 year ago

When using a repair kit, each durability value raised will count as 1 use. Uses are stored as a custom item data value, resulting in multiple stacks of items. Similar to how labeled bottles work. RepairCount penalty still persists. Each kit has as many uses as are required to repair a fully broken item to brand new. EG: Using a repair kit on a broken item will repair it to brand new, using up all uses. If repairCount dictates the cap is new, not brand new, it will still use up the kit even though it only repairs to new. However if the item is not broken, but new, it will repair to brand new and use up only one use. Each use value will need a custom text to describe how much of it has been used to the player. A custom function will have to be added to the donation bin, so repair kits that have mostly been used up are not just donated for full value but an adjusted value. A similar script would have to be added in the future if repair kits are ever added for sale to npcs.

brightrim commented 4 months ago

Implemented in recent update.