Mindustry icon indicating copy to clipboard operation
Mindustry copied to clipboard

Logic sensor accesses more infos of payload

Open BlackDeluxeCat opened this issue 1 year ago • 0 comments

If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:

  1. Add "Payload" category to sense instruction.
  2. Get payload count of specific block or unit type. Works to PayloadUnit, PayloadBlockBuild and any building vaild to getPayloads().
  3. Get PayloadUnit info: totalPayload for used payload, payloadCapacity for payload capacity.

This can be a boost to logic attack and mapping.

tt41

  • [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.

BlackDeluxeCat avatar Jun 28 '23 06:06 BlackDeluxeCat