Mindustry
Mindustry copied to clipboard
Logic sensor accesses more infos of payload
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:
- Add "Payload" category to sense instruction.
- Get payload count of specific block or unit type. Works to PayloadUnit, PayloadBlockBuild and any building vaild to
getPayloads()
. - Get PayloadUnit info:
totalPayload
for used payload,payloadCapacity
for payload capacity.
This can be a boost to logic attack and mapping.
- [X] I have read the contribution guidelines.
- [x] I have ensured that my code compiles, if applicable.
- [X] I have ensured that any new features in this PR function correctly in-game, if applicable.