pufmat / skillsmod

A Minecraft mod that adds a fully configurable skill system to the game.
Other
36 stars 10 forks source link

Cost doesn't work as intended #15

Closed DeKogen closed 1 year ago

DeKogen commented 1 year ago

Cost doesn't set the amount of points you'll need to spent on skill but a threshold under which u cant learn it (still cost 1 point). Example: cost set to 2, if u have 1 point than u can't learn it, if u have 2 points than u can learn it and will left with 1 point (instead of 0). Here is definition that I used.

"luck+0.25": {
    "cost": 2,
    "title": "+0.25 Luck",
    "icon": {
        "type": "effect",
        "data": {
            "effect": "luck"
        }
    },
    "rewards": [
        {
            "type": "puffish_skills:attribute",
            "data": {
                "attribute": "generic.luck",
                "value": 0.25,
                "operation": "addition"
            }
        }
    ]
}
pufmat commented 1 year ago

Thanks for reporting.

pufmat commented 1 year ago

Fixed in 0.4.0