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

[Misc] Rename DamagePhase to DamageAnimPhase #4880

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

Conversation

DayKev
Copy link
Collaborator

@DayKev DayKev commented Nov 16, 2024

What are the changes the user will see?

N/A

Why am I making these changes?

The phase name is misleading as it doesn't actually calculate damage or anything, just play the animations for damage numbers appearing.

What are the changes from a developer perspective?

Renamed DamagePhase to DamageAnimPhase and the file from damage-phase.ts to damage-anim-phase.ts.

Checklist

  • I'm using beta as my base branch
  • There is no overlap with another PR?
  • The PR is self-contained and cannot be split into smaller PRs?
  • Have I provided a clear explanation of the changes?
  • [ ] Have I considered writing automated tests for the issue?
  • [ ] If I have text, did I make it translatable and add a key in the English locale file(s)?
  • [ ] Have I tested the changes (manually)?
    • Are all unit tests still passing? (npm run test)
  • [ ] Are the changes visual?
    • [ ] Have I provided screenshots/videos of the changes?

@DayKev DayKev added the Miscellaneous Changes that don't fit under any other label label Nov 16, 2024
@DayKev DayKev requested a review from a team as a code owner November 16, 2024 02:28
Comment on lines +1 to +4
import type BattleScene from "#app/battle-scene";
import { type BattlerIndex } from "#app/battle";
import { BattleSpec } from "#enums/battle-spec";
import { type DamageResult, HitResult } from "#app/field/pokemon";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the types here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type-only imports are not added to the transpiled js. All imports should be type-only when they are only used as type hints (btw VSCode users, enable "prefer type only imports" from your settings which for some insane reason isn't enabled by default).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Miscellaneous Changes that don't fit under any other label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants