Skip to content

[suggestion] Configurable bonuses #12

@JackYevhen

Description

@JackYevhen

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 ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions