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
Misc API Enhancements #5975
Misc API Enhancements #5975
Conversation
- Write tags in wl_map_info - Add function `LuaWorker::evict` - Add property `LuaMapObject.exists` - Expose worker buildcost to `modify_unit`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would it be possible to test the worker eviction as well in our lua testsuite?
Rest looks good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM.
Do we need to test the addon logic. It seems to be straight forward.
I tried it out in a sample add-on by just adding the calls and checking that the encyclopedia shows the expected modified worker buildcosts. |
Type of change
New features
Issue(s) closed
Re https://www.widelands.org/forum/topic/5797 & https://www.widelands.org/forum/post/40418/
wl_map_info
LuaWorker::evict
LuaMapObject.exists
modify_unit
Additional context
These are all very small additions so I didn't think it worth having separate PRs for them.