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

Limit skill point usage #11

Open
popey456963 opened this issue Sep 30, 2017 · 2 comments
Open

Limit skill point usage #11

popey456963 opened this issue Sep 30, 2017 · 2 comments

Comments

@popey456963
Copy link

Is there a way to do this?

@popey456963
Copy link
Author

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
Copy link

KNWL commented Aug 21, 2020

Hello there,

Has there been any solution to this issue yet?
I couldn`t make popey456963s solution work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants
@popey456963 @KNWL and others