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

[suggestion] Configurable bonuses #12

Open
JackYevhen opened this issue Apr 7, 2024 · 0 comments
Open

[suggestion] Configurable bonuses #12

JackYevhen opened this issue Apr 7, 2024 · 0 comments
Labels
📃 Documentation Improvements or additions to documentation ✨ Enhancement New feature or request ✍️ Suggestion A request.

Comments

@JackYevhen
Copy link

Currently bonus for increasing your stats (intelligence / dexterity / ...) are fixed, and not configurable.
My suggestion is to make them both configurable and not fixed. This is how the configuration for them may look like:

"stats": {
    "Strength": { // this is just preview, I have no Idea how attributes are actually called
        "generic.attack_damage": "0.25",
        "playerex.passive_regen_amount": "0.01",
        "generic.armor": "max(5 - x/5, 0)" // example of a formula where `x` is a level you are getting. eg:
        // on Strength 1 you will get 5 armor
        // on Strength 2 you will get 5 + (5 - 0.2) = 9.8 armor
        // on Strength 3 you will get 5 + (5 - 0.2) + (5 - 0.2 * 2) = 5 + (5 - 0.2) + (5 - 0.4) = 14.4 armor
        // on Strength 4 you will get ... = 18.8 armor
        // ...
    },
    "Intelligence": {...},
    ...
    
    "Mining": { // a custom stat. the stat name is the same as one used here, so there shouldn't be a problem
        "generic.mining_speed": "1/x"
    }
}
... rest of config ...
@bibi-reden bibi-reden added 📃 Documentation Improvements or additions to documentation ✨ Enhancement New feature or request labels May 11, 2024
@bibi-reden bibi-reden added the ✍️ Suggestion A request. label Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📃 Documentation Improvements or additions to documentation ✨ Enhancement New feature or request ✍️ Suggestion A request.
Projects
None yet
Development

No branches or pull requests

2 participants