Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pokpok2006 opened this issue Aug 11, 2023 · 0 comments
Open

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

pokpok2006 opened this issue Aug 11, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@pokpok2006
Copy link

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

@pokpok2006 pokpok2006 added the enhancement New feature or request label Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant