There are already separate functions in Action.js that return a true/false for whether the obtain/perform is valid.
We could extend this function to also return a "reason" if the requested move is not valid, and then provide that feedback in the UI.
Potential UI changes:
- Add a highlighted/flashing style to the resource icon that's preventing the move.
- When clicked or hovered, pop up a text description explaining why the move is invalid.
There are already separate functions in Action.js that return a true/false for whether the obtain/perform is valid.
We could extend this function to also return a "reason" if the requested move is not valid, and then provide that feedback in the UI.
Potential UI changes: