magemonkeystudio/divinity

[Enhancement] can we have a auto update for custom item?

Opened this issue · 0 comments

For example: there is a iron sword 'test sword' in custom item with 100 damage, if i change the damage to 40 and reload the plugin, all 'test sword' will change to 40 damage instead of 100. I remember this function is exist in rpgitems and it is good for balance reason. To avoid making weapon that too OP and can't revert.

P.S. I know how the auto update works in that version of rpgitems. I can share it if you made an update with prorpgitems.
P.S.2 This function is very useful for gear design and balance. If this function not exist, we can only balance with nerfing class after making OP item by mistake or hoping player return that OP item and we give them back the after-nerf item.

Logic:
There is an hidden lore in each item created with the item's id. So when event is triggered, the plugin will check the item and update the item datas by it's id.

Github for that rpgitems:
https://github.com/TheCreeperOfRedstone/RPG-Items-2/blob/master/src/think/rpgitems/Events.java