-
Notifications
You must be signed in to change notification settings - Fork 24
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
Compatibility for technic_set_charge/technic_get_charge #275
Conversation
Did not include extensions for compatibility shims here to keep core implementation clean for reviews. |
This comment was marked as outdated.
This comment was marked as outdated.
Yeah, this is better 👍 Looks like |
This one should be ready now, linked pull request is from tool-compatibility-2 branch and target is this PR branch tool-charge-api-2 Linked PR only touches compatibility shims |
Click for detailed source code test coverage reportTest coverage report for Technic CNC 87.33% in 11/14 files:
Test coverage report for technic chests 45.56% in 6/6 files:
Test coverage report for technic 62.05% in 96/96 files:
Raw test runner output for geeks:CNC:
Chests:
Technic:
|
nice 👍 |
Implements minetest-mods/technic#600 for mt-mods/technic#272
This one without changing
technic.get_RE_charge
/technic.set_RE_charge
, keeps new power tool definition methods independent.Should also offer better compatibility with original Technic mod.
See #273 (comment)
Basically this makes
technic.get_RE_charge
andtechnic.set_RE_charge
very tool specific while<itemdef>.technic_get_charge
and<itemdef>.technic_set_charge
will be overridable functions pointing totechnic.get_RE_charge
andtechnic.set_RE_charge
by default.Other option #273 makes
technic.get_RE_charge
andtechnic.set_RE_charge
universally compatible while<itemdef>.technic_get_charge
and<itemdef>.technic_set_charge
would be overridable functions not defined by default and never calling throughtechnic.get_RE_charge
ortechnic.set_RE_charge
.