Skip to content
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

payloadCapacity sensor for logic #5822

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JniTrRny
Copy link
Contributor

@JniTrRny JniTrRny commented Aug 20, 2021

adds payloadCapacity sensor for logic, which senses unit payload capacity in block squared (mega = 4, quad = 9, etc.)
so people (which includes me) don't have to hardcode a payload logic again, I don't know too why this hasn't been added, it gives so much potential to those logic abusers

it's me with another PR again don't get annoyed

TODO:

  • sometimes it's too precise on imperfect payload number, like oct, in the database, it's showned as 28.09, but in the logic, it's showned as 28.095002059936523, literally.
  • if above is checked out, I might remove the 8 check, as it'll get rounded/truncated to 0 anyways (or not?) use Payloadc check, thanks to MrDuck557 for telling me that.

(no preview video)


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

  • I have read the contribution guidelines.
  • I have ensured that my code compiles, if applicable.
  • I have ensured that any new features in this PR function correctly in-game, if applicable.

@MrDuck557
Copy link
Contributor

MrDuck557 commented Aug 20, 2021

image
This is how being able to payload is defined (probably) can you check for this instead? (the others are apparently legacy)

@JniTrRny
Copy link
Contributor Author

k added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants