Skip to content

Deprecate existing effect markers#1199

Merged
that-hatter merged 166 commits intomasterfrom
deprecate-existing-effect-markers
Jul 12, 2025
Merged

Deprecate existing effect markers#1199
that-hatter merged 166 commits intomasterfrom
deprecate-existing-effect-markers

Conversation

@that-hatter
Copy link
Copy Markdown
Member

@that-hatter that-hatter commented Jul 6, 2025

This PR removes the use of effect markers ("register flags") from every script, and adds a mechanism for identifying effects that previously had to use markers.

Costs created by the various Cost functions are now tracked in a local table, and can be checked using various new utility functions.

  • EFFECT_MARKER_DRAGON_RULER and EFFECT_MARKER_THUNDRA - can now be checked using Effect.HasSelfDiscardCost
  • EFFECT_MARKER_DETACH_XMAT - can now be checked using Effect.HasDetachCost
  • EFFECT_MARKER_ALLURE_LVUP - can now be checked using Effect.HasSelfToGraveCost

The other markers were not necessary, as the effects they mark could be checked in other ways.

  • EFFECT_MARKER_CARDIAN - by checking if the effect's type is EFFECT_SPSUMMON_PROC
  • EFFECT_MARKER_TELLAR - by checking if the effect's code is EVENT_SUMMON_SUCCESS

The old mechanism for marking effects is kept in even if unused for the time being.

Cost.Detach is also renamed to Cost.DetachFromSelf and various scripts that had to be edited were modernized.

@that-hatter that-hatter requested review from larry126 and pyrQ as code owners July 6, 2025 17:17
pyrQ and others added 28 commits July 7, 2025 22:52
added mechanism for tracking functions that were generated with Cost.Detach
* use new function for checking effects with a detach cost
* modernization
* use new function for checking effects with a detach cost
* modernization
track functions created by SelfDiscard and SelfDiscardToGrave
@that-hatter that-hatter merged commit b3bb6f0 into master Jul 12, 2025
1 check passed
that-hatter pushed a commit to ProjectIgnis/BabelCDB that referenced this pull request Jul 12, 2025
To match the script updates from ProjectIgnis/CardScripts#1199 (both are to be merged together)

List of updated cards:
\- Exosister Gibrine
\- Flower Cardian Cherry Blossom
\- Flower Cardian Peony with Butterfly
\- Number F0: Utopic Future Slash
\- Number S39: Utopia Prime
\- Number 6: Chronomaly Atlandis
\- Number 42: Galaxy Tomahawk
\- Number 46: Dragluon
\- Number 82: Heartlandraco
\- Number 87: Queen of the Night
\- Number 91: Thunder Spark Dragon
\- Primathmech Alembertian
\- Satellarknight Rigel
\- Tellarknight Ptolemaeus

\- CXyz Barian Hope (Anime)
\- Number S39: Utopia Prime (Manga)
\- Overlay Wedge
\- Raidraptor - Rapid Xyz
\- Rank-Up-Magic Cipher Pursuit
\- Ultimate Full Burst
\- Utopia Rising
\- XYZ Wings
YgoproStaff pushed a commit to ProjectIgnis/DeltaBagooska that referenced this pull request Jul 12, 2025
To match the script updates from ProjectIgnis/CardScripts#1199 (both are to be merged together)

List of updated cards:
\- Exosister Gibrine
\- Flower Cardian Cherry Blossom
\- Flower Cardian Peony with Butterfly
\- Number F0: Utopic Future Slash
\- Number S39: Utopia Prime
\- Number 6: Chronomaly Atlandis
\- Number 42: Galaxy Tomahawk
\- Number 46: Dragluon
\- Number 82: Heartlandraco
\- Number 87: Queen of the Night
\- Number 91: Thunder Spark Dragon
\- Primathmech Alembertian
\- Satellarknight Rigel
\- Tellarknight Ptolemaeus

\- CXyz Barian Hope (Anime)
\- Number S39: Utopia Prime (Manga)
\- Overlay Wedge
\- Raidraptor - Rapid Xyz
\- Rank-Up-Magic Cipher Pursuit
\- Ultimate Full Burst
\- Utopia Rising
\- XYZ Wings
@pyrQ pyrQ deleted the deprecate-existing-effect-markers branch July 14, 2025 20:42
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.

6 participants