Skip to content

3 new additions and a few bugfixes - #363

Merged
zaktherobot merged 5 commits into
tommadness:masterfrom
kareking1:master
Sep 9, 2026
Merged

zaktherobot merged 5 commits into
tommadness:masterfrom
kareking1:master

Conversation

@kareking1

Copy link
Copy Markdown
Contributor

New additions:
-HPDrain is now randomizable
-DriveGain is now randomizable
-Nightmare preset in list of presets for attack rando

Changes:
-Chaos preset in attack rando covers a wider range now
-Multi-Hit presets have been altered to be more impactful when choosing milder presets

Fixes:
-Guard is now excluded from randomization to make it work like normal
-Boat Pete and MCP should both be killable
-Dual Wield Roxas should be able to kill bosses now

@zaktherobot zaktherobot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just a couple clarifying questions before I merge this

Comment thread Class/openkhmod.py Outdated
# byte
if self.RandomEffect < 0 or self.RandomEffect > 255:
raise ValueError(f"RandomEffect {self.RandomEffect} outside bounds")
print(f"RandomEffect {self.RandomEffect} outside bounds")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Did you want this value to be clamped in the same way, making negative values be zero and over 255 clamp to 255?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oops nope I accidentally changed that. I would put it back to raising an error. I only clamped the values that could reasonably be any number; like Power, RevengeDamage, HPDrain, etc. Things like RandomEffect or ComboGroup shouldn't really be set to random numbers.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I pushed

Comment thread Class/openkhmod.py
Comment on lines +1197 to +1198
if self.HpDrain > 254:
self.HpDrain = 254

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

254? not 255?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I wasn't entirely sure if putting it at 255 caused an error. So I just decided to keep the maximum amount 1 lower as that should be more than enough in any cases

@zaktherobot
zaktherobot merged commit ac28071 into tommadness:master Sep 9, 2026
3 checks passed
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