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

[Feature]: Option for getMoveCount() to return the "smart" value we see onscreen. #5157

Open
FullBleed opened this issue Jan 31, 2025 · 0 comments
Labels
feature Adding functionality that adds value

Comments

@FullBleed
Copy link

Describe the Problem

When moving into a space that produces a 0 (like moving into a block of MBL) the getMoveCount function does not return a 0 (though we see the 0 on-screen.)

If doing so goes against expected "default" behaviour (and it probably does) I'd like to see a parameter that will return the 0 value when a token is making an "illegal" move.

The Solution you'd like

Add a third option for the first parameter of getMoveCount().

Right now we have:
0 for normal count (default);
1 for fractional movement - only valid with 1-2-1 movement metric

A "2 for smart movement value" (or whatever it's called) would work.

Alternatives that you've considered.

A new function to return the "smart" movement value.

Additional Context

If we had this, people could disallow movement into "0" spaces easily in an onTokenMove. Disallowing this kind of movement is a common request and this would be a simple solution.

@FullBleed FullBleed added the feature Adding functionality that adds value label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Adding functionality that adds value
Projects
None yet
Development

No branches or pull requests

1 participant