Skip to content

Updates to POWER_INFO and PowerCreep.powers #275

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DocDvorak
Copy link

@DocDvorak DocDvorak commented Apr 11, 2025

Brief Description

  • POWER_INFO[PWR_SHIELD].energy is now exposed as a number field
  • PowerCreep.powers reflects undefined results for missing powers
  • PowerCreep.powers[*].cooldown has had the undefined type removed.
    Even if a PC is not spawned, the cooldown for its powers will be 0.

Checklists

  • Test passed
  • Coding style (indentation, etc)
  • Edits have been made to src/ files not index.d.ts
  • Run npm run compile to update index.d.ts

* `POWER_INFO[PWR_SHIELD].energy` is now exposed as a number field
* `PowerCreep.powers` reflects undefined results for missing powers
* `PowerCreep.powers[*].cooldown` has had the undefined type removed.
  Even if a PC is not spawned, the cooldown for its powers will be 0.
@DocDvorak DocDvorak changed the title Expose PWR_SHIELD energy cost in POWER_INFO const Updates to POWER_INFO and PowerCreep.powers Apr 11, 2025
@DiamondMofeng DiamondMofeng self-assigned this Apr 11, 2025
@DiamondMofeng DiamondMofeng self-requested a review April 11, 2025 11:50
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.

2 participants