Skip to content

Clean-Up of MU Ability Code#8006

Merged
NoahTheDuke merged 1 commit intomtgred:masterfrom
Cluedrew:clean-up-mu
Mar 13, 2025
Merged

Clean-Up of MU Ability Code#8006
NoahTheDuke merged 1 commit intomtgred:masterfrom
Cluedrew:clean-up-mu

Conversation

@Cluedrew
Copy link
Contributor

There was a bunch of redundancy in the mu+, virus-mu+ and caissa-mu+ functions. I added the calling convention other mu functions call mu+ to its documentation and trimmed down the other functions so they only handle the cases where they are different from the mu+.

If a need for these cases comes up again, turning all three into wrappers around some private core might work best, forward their arguments, with the default mu type to it and they can handle all the complex logic. But for now this handles all the same cases with less code.

…ctions, they do not handle cases also handled by mu+ anymore but they are a lot simpler now.
@Cluedrew
Copy link
Contributor Author

I did testing for the virus case. The caissa case is symmetric so I didn't test it separately.

@NoahTheDuke NoahTheDuke merged commit 7af990e into mtgred:master Mar 13, 2025
3 checks passed
@Cluedrew Cluedrew deleted the clean-up-mu branch March 17, 2025 22:29
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