Limit skill point usage
Opened this issue · 2 comments
popey456963 commented
Is there a way to do this?
popey456963 commented
Since this was a one-off, I did a really hacky:
setInterval(function() {
can_add_points = used < total;
}, 50)
And altered the method to do that:
self.addPoint = function() {
if(self.canAddPoints() && window.can_add_points) self.points(self.points() + 1);
}
A better method would be nice though, so I'll leave the issue open. I imagine it's something 99% of people designing a skill tree need?
KNWL commented
Hello there,
Has there been any solution to this issue yet?
I couldn`t make popey456963s solution work.