danj2k/aardwolf-plugins

Need to account for * at the end of max stats.

Closed this issue · 2 comments

On line 295, change:

_, _, current, maximum = string.find(v, "(%d+)%s+(%d+)$")

to

_, _, current, maximum = string.find(v, "(%d+)%s+(%d+)%*?$")

When you're at max stats, the output is: 123 123*

@AardCentral thanks for posting this! I've committed your fix, can you verify that it works as expected? As unfortunately my character doesn't have enough trains to train to max stats.

As long as you made the change I posted, it should be good. I made the change locally myself and it worked without issue.