-
Notifications
You must be signed in to change notification settings - Fork 3
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
[Move][Checkup] Present RNG Fixes #337
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
Probably caused because of |
The video seems to show it happens after (which makes sense -- the heal phase is pushed when move power is resolved and before damage is finalized/rounded up) |
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
I think a better way to fix it would be to somehow stop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heal & Damage at the same time
Screen.Recording.2025-01-23.at.8.42.12.PM.mov
[APPLIED CHANGES FOR TESTING]
I had this
.attr(
ChangeToStatusCategoryAttr,
(user, _target, _move) => user.turnData.hitCount === user.turnData.hitsLeft && user.randSeedInt(100) < 20,
(user, _target, move) => {
user.turnData.hitCount = 1;
user.turnData.hitsLeft = 1;
move.addAttr(new HealAttr(0.25, true, false));
},
)
replaced with
.attr(
ChangeToStatusCategoryAttr,
(user, _target, _move) => user.turnData.hitCount === user.turnData.hitsLeft && user.randSeedInt(100) < 50, // ⚠️
(user, _target, move) => {
user.turnData.hitCount = 1;
user.turnData.hitsLeft = 1;
move.addAttr(new HealAttr(0.25, true, false));
},
)
d839706
to
e0c6416
Compare
…eternity into presentCheckup
…eternity into presentCheckup
…ames/poketernity into presentCheckup" This reverts commit 4cb3b4e, reversing changes made to 6898ef8.
I also recommend adding a Since the formula for base damage adds 2 damage at the end, it is possible under extreme circumstances for a move with -1 power to deal positive damage. |
Co-authored-by: PigeonBar <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just some styling comments
What are the changes the user will see?
Present will no longer use global RNG when it is used.
Present will also no longer damage the target for 1 HP before healing the target.
Present's outcomes were shifted by 1 before. This PR fixes that so that the chances of each of the 4 outcomes are accurate to mainline.
Why am I making these changes?
Move Checkups.
#313
What are the changes from a developer perspective?
firstHit
variable renamed toisFirstHit
Present-related test removed from Triage since its unnecessary.
powerSeed generated with user.randSeedInt()
Fixed off-by-1 Present RNG
How to test the changes?
Using Present should not affect the events of the next wave.
Screen.Recording.2025-01-23.at.11.52.34.AM.mov
Checklist
beta
as my base branchnpm run test:silent
)npm run create-test
) or updated existing tests related to the PR's changes?