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

add missing functions #29

Merged
merged 36 commits into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
f43e019
add Auxiliary.AddEquipProcedure and related types
that-hatter Sep 14, 2024
8af18bc
Clock Lizard entries + new tag
that-hatter Sep 14, 2024
0e365f8
add new tags
that-hatter Sep 14, 2024
2f155da
finalize existing card type check functions
that-hatter Sep 14, 2024
608f7a2
add new tag
that-hatter Sep 14, 2024
cca720d
add missing card type check functions
that-hatter Sep 14, 2024
e18c050
add new tag
that-hatter Sep 15, 2024
d2c27b0
add missing ATK-related functions
that-hatter Sep 15, 2024
6ec3c39
add new tag
that-hatter Sep 15, 2024
c3a612e
updates to previous commit
that-hatter Sep 15, 2024
09fb89b
add missing DEF-related functions
that-hatter Sep 15, 2024
a3858a9
add new tag
that-hatter Sep 15, 2024
e2d88c0
add missing level-related functions + new tag
that-hatter Sep 15, 2024
bb07a58
add missing rank-related functions + new tag
that-hatter Sep 15, 2024
5573781
add IsScale + new tag
that-hatter Sep 15, 2024
3c974e9
add new tags
that-hatter Sep 15, 2024
7cc6766
add missing IsPrevious functions
that-hatter Sep 15, 2024
2a1404b
add missing IsReason functions + new tag
that-hatter Sep 16, 2024
eb186ed
add missing ...FieldID functions
that-hatter Sep 16, 2024
84e2bd1
finalize existing ...FieldID functions
that-hatter Sep 16, 2024
8b104e4
finalize some exisitng destination functions
that-hatter Sep 16, 2024
e720350
add missing destination functions
that-hatter Sep 16, 2024
bcb4bd2
add HasCounter, finalize HasCounters
that-hatter Sep 16, 2024
ca7759e
add HasEquipCard + new tag
that-hatter Sep 16, 2024
53cf106
add IsOwner, finalize GetOwner
that-hatter Sep 16, 2024
125d1c7
add IsBattlePosition, finalize GetBattlePosition
that-hatter Sep 16, 2024
d0bdbed
add IsLevelBetween, finalize IsLevel... functions
that-hatter Sep 16, 2024
cfc0907
add AddCannotBeSpecialSummoned + new tags
that-hatter Sep 17, 2024
ea423ef
add AddMustBeSpecialSummoned/ByCardEffect
that-hatter Sep 17, 2024
57b94c0
add AddMust(First)BeRitualSummoned + new tag
that-hatter Sep 17, 2024
c83a3ab
add AddMust(First)BeRitualSummoned +new tag
that-hatter Sep 17, 2024
dec2c29
add AddMust(First)BeSynchroSummoned + new tag
that-hatter Sep 17, 2024
8c70275
add AddMust(First)BeXyzSummoned + new tag
that-hatter Sep 17, 2024
ba181af
add AddMust(First)BePendulumSummoned + new tag
that-hatter Sep 17, 2024
4a71c94
add AddMust(First)BeLinkSummoned + new tag
that-hatter Sep 17, 2024
cf29aa8
add HasDefense
that-hatter Sep 17, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions api/constants/CommonCard/CARD_CLOCK_LIZARD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: CARD_CLOCK_LIZARD
enum: CommonCard
value: 51476410
description: |-
Clock Lizard's ID
status:
index: stable
tags: [ under-construction ]
ID of ["Clock Lizard"](https://yugipedia.com/wiki/Clock_Lizard).
Cards affected by an effect with this ID are excluded by "Clock Lizard"
when checking what cards it can return to the Extra Deck.
summary: "Clock Lizard"
status: { index: stable }
tags: [ special-handling ]
42 changes: 42 additions & 0 deletions api/functions/Auxiliary/AddEquipProcedure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---!function
name: AddEquipProcedure
namespace: Auxiliary
description: |-
Creates and registers an effect to an Equip Spell Card that allows it to be equipped.
summary: Adds procedure for equipping Spells.
parameters:
- name: c
type: [ Card ]
description: The Equip Spell to add the procedure to.
- name: tp
type: [ int ]
description: |-
The player allowed to equip `c`.
Can be [`PLAYER_ALL`](api/constants/Player/PLAYER_ALL) to allow both.
- name: filter
type: [ TargetFilterFunction ]
description: Filter for monsters that can be initially equipped with `c`.
- name: eqlimit
type: [ EquipLimitFunction ]
description: Function to restrict which monsters `c` can remain equipped to.
- name: cost
type: [ EffectCost ]
description: Cost of the equipping effect.
- name: tg
type: [ EffectTarget ]
description: Activation procedure of the equipping effect.
- name: op
type: [ EffectOperation ]
description: Resolution of the equipping effect.
- name: con
type: [ EffectCondition ]
description: Condition of the equipping effect.
- name: prop
type: [ int ]
description: |-
[EffectProperty](/api/enums/EffectProperty) of the equipping effect.
returns:
- type: [ effect ]
description: The resulting [Effect](/api/enums/Effect).
status: { index: stable }
tags: [ registers-effect, equip-related ]
37 changes: 28 additions & 9 deletions api/functions/Auxiliary/addContinuousLizardCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,33 @@
name: addContinuousLizardCheck
namespace: Auxiliary
description: |-
no description yet
status:
index: stable
Creates and registers an [Effect](/api/types/Effect) to a card
that affects other cards such that they will be excluded by
["Clock Lizard"](https://yugipedia.com/wiki/Clock_Lizard)
when checking what cards it can return to the Extra Deck.
summary: Adds an effect to a card that affects other cards for "Clock Lizard"'s handling
parameters:
- name: ...
type: [ any ]
description: (To be added)
- name: c
type: [ Card ]
description: The card to register the effect to.
- name: location
type: [ int ]
description: Composite [Location](/api/enums/Location) values where `c` should be for the effect to apply.
- name: tRange
type: [ int ]
description: Composite Location values for `tp`'s side of the board.
required: false
defaultValue: 0xff
- name: tRange2
type: [ int ]
description: Composite Location values for `tp`'s opponent's side of the board.
required: false
defaultValue: 0
returns:
- type: [ function ]
description: (To be added)
tags: [ under-construction ]
- type: [ effect ]
description: The effect that was registered.
status: { index: stable }
tags: [ registers-effect, special-handling ]
suggestedLinks:
- name: Auxiliary.createContinuousLizardCheck
link: /api/functions/Auxiliary/createContinuousLizardCheck
17 changes: 17 additions & 0 deletions api/functions/Auxiliary/addLizardCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---!function
name: addLizardCheck
namespace: Auxiliary
description: |-
Creates and registers an [Effect](/api/types/Effect) to a card
such that it will be excluded by ["Clock Lizard"](https://yugipedia.com/wiki/Clock_Lizard)
when checking what cards it can return to the Extra Deck.
summary: Adds an effect to a card affecting itself for "Clock Lizard"'s handling
parameters:
- name: c
type: [ Card ]
description: The card to register the effect to.
returns:
- type: [ effect ]
description: The effect that was registered.
status: { index: stable }
tags: [ registers-effect, special-handling ]
48 changes: 48 additions & 0 deletions api/functions/Auxiliary/addTempLizardCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---!function
name: addTempLizardCheck
namespace: Auxiliary
description: |-
Creates and registers an [Effect](/api/types/Effect) to the duel that affects cards
such that they will be excluded by ["Clock Lizard"](https://yugipedia.com/wiki/Clock_Lizard)
when checking what cards it can return to the Extra Deck.
summary: Adds an effect to the duel that affects cards for "Clock Lizard"'s handling
parameters:
- name: c
type: [ Card ]
description: The card registering the effect.
- name: tp
type: [ int ]
description: The player to apply the effect to.
- name: filter
type: [ TargetFilterFunction ]
description: Filters which cards are affected and will be excluded by "Clock Lizard".
required: false
defaultValue: aux.TRUE
- name: reset
type: [ int ]
description: Composite [Reset](/api/enums/Reset) values to specify when the effect stops applying.
required: false
defaultValue: RESET_PHASE|PHASE_END
- name: tRange
type: [ int ]
description: Composite [Location](/api/enums/Location) values for `tp`'s side of the board.
required: false
defaultValue: 0xff
- name: tRange2
type: [ int ]
description: Composite Location values for `tp`'s opponent's side of the board.
required: false
defaultValue: 0
- name: resetcount
type: [ int ]
description: The number of times `reset` must happen for the effect to stop applying.
required: false
defaultValue: 1
returns:
- type: [ effect ]
description: The effect that was registered.
status: { index: stable }
tags: [ registers-effect, special-handling ]
suggestedLinks:
- name: Auxiliary.createTempLizardCheck
link: /api/functions/Auxiliary/createTempLizardCheck
34 changes: 34 additions & 0 deletions api/functions/Auxiliary/createContinuousLizardCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---!function
name: createContinuousLizardCheck
namespace: Auxiliary
description: |-
Creates an [Effect](/api/types/Effect) that, when registered to a card,
affects other cards such that they will be excluded by
["Clock Lizard"](https://yugipedia.com/wiki/Clock_Lizard)
when checking what cards it can return to the Extra Deck.
summary: Creates a card effect that affects other cards for "Clock Lizard"'s handling
parameters:
- name: c
type: [ Card ]
description: The card creating the effect.
- name: location
type: [ int ]
description: Composite [Location](/api/enums/Location) values where `c` should be for the effect to apply.
- name: tRange
type: [ int ]
description: Composite Location values for `tp`'s side of the board.
required: false
defaultValue: 0xff
- name: tRange2
type: [ int ]
description: Composite Location values for `tp`'s opponent's side of the board.
required: false
defaultValue: 0
returns:
- type: [ effect ]
description: The effect that was created.
status: { index: stable }
tags: [ creates-effect, special-handling ]
suggestedLinks:
- name: Auxiliary.addContinuousLizardCheck
link: /api/functions/Auxiliary/addContinuousLizardCheck
48 changes: 39 additions & 9 deletions api/functions/Auxiliary/createTempLizardCheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,44 @@
name: createTempLizardCheck
namespace: Auxiliary
description: |-
no description yet
status:
index: stable
Creates an [Effect](/api/types/Effect) that, when registered to the duel, affects cards
such that they will be excluded by ["Clock Lizard"](https://yugipedia.com/wiki/Clock_Lizard)
when checking what cards it can return to the Extra Deck.
summary: Creates a duel effect that affects cards for "Clock Lizard"'s handling
parameters:
- name: ...
type: [ any ]
description: (To be added)
- name: c
type: [ Card ]
description: The card registering the effect (its owner).
- name: filter
type: [ TargetFilterFunction ]
description: Filters which cards are affected and will be excluded by "Clock Lizard".
required: false
defaultValue: aux.TRUE
- name: reset
type: [ int ]
description: Composite [Reset](/api/enums/Reset) values to specify when the effect stops applying.
required: false
defaultValue: RESET_PHASE|PHASE_END
- name: tRange
type: [ int ]
description: Composite [Location](/api/enums/Location) values for `tp`'s side of the board.
required: false
defaultValue: 0xff
- name: tRange2
type: [ int ]
description: Composite Location values for `tp`'s opponent's side of the board.
required: false
defaultValue: 0
- name: resetcount
type: [ int ]
description: The number of times `reset` must happen for the effect to stop applying.
required: false
defaultValue: 1
returns:
- type: [ function ]
description: (To be added)
tags: [ under-construction ]
- type: [ effect ]
description: The effect that was created.
status: { index: stable }
tags: [ creates-effect, special-handling ]
suggestedLinks:
- name: Auxiliary.addTempLizardCheck
link: /api/functions/Auxiliary/addTempLizardCheck
16 changes: 16 additions & 0 deletions api/functions/Card/AddCannotBeSpecialSummoned.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---!function
name: AddCannotBeSpecialSummoned
namespace: Card
description: |-
Creates and registers an [Effect](/api/types/Effect) to a monster card
that applies a "Cannot be Special Summoned" Summoning condition to it
summary: Adds a "Cannot be Special Summoned" Summoning condition to a monster
parameters:
- name: c
type: [ Card ]
description: The monster to register the effect to.
returns:
- type: [ Effect ]
description: The registered effect.
status: { index: stable }
tags: [ registers-effect ]
19 changes: 19 additions & 0 deletions api/functions/Card/AddMustBeFusionSummoned.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---!function
name: AddMustBeFusionSummoned
namespace: Card
description: |-
Creates and registers an [Effect](/api/types/Effect) to a monster card
that applies a "Must be Fusion Summoned" Summoning condition to it
summary: Adds a "Must be Fusion Summoned" Summoning condition to a monster
parameters:
- name: c
type: [ Card ]
description: The monster to register the effect to.
returns:
- type: [ Effect ]
description: The registered effect.
status: { index: stable }
tags: [ registers-effect, fusion-related ]
suggestedLinks:
- name: AddMustFirstBeFusionSummoned
link: /api/functions/Card/AddMustFirstBeFusionSummoned
19 changes: 19 additions & 0 deletions api/functions/Card/AddMustBeLinkSummoned.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---!function
name: AddMustBeLinkSummoned
namespace: Card
description: |-
Creates and registers an [Effect](/api/types/Effect) to a monster card
that applies a "Must be Link Summoned" Summoning condition to it
summary: Adds a "Must be Link Summoned" Summoning condition to a monster
parameters:
- name: c
type: [ Card ]
description: The monster to register the effect to.
returns:
- type: [ Effect ]
description: The registered effect.
status: { index: stable }
tags: [ registers-effect, pendulum-related ]
suggestedLinks:
- name: AddMustFirstBeLinkSummoned
link: /api/functions/Card/AddMustFirstBeLinkSummoned
19 changes: 19 additions & 0 deletions api/functions/Card/AddMustBePendulumSummoned.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---!function
name: AddMustBePendulumSummoned
namespace: Card
description: |-
Creates and registers an [Effect](/api/types/Effect) to a monster card
that applies a "Must be Pendulum Summoned" Summoning condition to it
summary: Adds a "Must be Pendulum Summoned" Summoning condition to a monster
parameters:
- name: c
type: [ Card ]
description: The monster to register the effect to.
returns:
- type: [ Effect ]
description: The registered effect.
status: { index: stable }
tags: [ registers-effect, pendulum-related ]
suggestedLinks:
- name: AddMustFirstBePendulumSummoned
link: /api/functions/Card/AddMustFirstBePendulumSummoned
19 changes: 19 additions & 0 deletions api/functions/Card/AddMustBeRitualSummoned.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---!function
name: AddMustBeRitualSummoned
namespace: Card
description: |-
Creates and registers an [Effect](/api/types/Effect) to a monster card
that applies a "Must be Ritual Summoned" Summoning condition to it
summary: Adds a "Must be Ritual Summoned" Summoning condition to a monster
parameters:
- name: c
type: [ Card ]
description: The monster to register the effect to.
returns:
- type: [ Effect ]
description: The registered effect.
status: { index: stable }
tags: [ registers-effect, ritual-related ]
suggestedLinks:
- name: AddMustFirstBeRitualSummoned
link: /api/functions/Card/AddMustFirstBeRitualSummoned
19 changes: 19 additions & 0 deletions api/functions/Card/AddMustBeSpecialSummoned.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---!function
name: AddMustBeSpecialSummoned
namespace: Card
description: |-
Creates and registers an [Effect](/api/types/Effect) to a monster card
that applies a "Must be Special Summoned" Summoning condition to it
summary: Adds a "Must be Special Summoned" Summoning condition to a monster
parameters:
- name: c
type: [ Card ]
description: The monster to register the effect to.
returns:
- type: [ Effect ]
description: The registered effect.
status: { index: stable }
tags: [ registers-effect ]
suggestedLinks:
- name: AddMustBeSpecialSummonedByCardEffect
link: /api/functions/Card/AddMustBeSpecialSummonedByCardEffect
19 changes: 19 additions & 0 deletions api/functions/Card/AddMustBeSpecialSummonedByCardEffect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---!function
name: AddMustBeSpecialSummonedByCardEffect
namespace: Card
description: |-
Creates and registers an [Effect](/api/types/Effect) to a monster card
that applies a "Must be Special Summoned by card effect" Summoning condition to it
summary: Adds a "Must be Special Summoned" Summoning condition to a monster
parameters:
- name: c
type: [ Card ]
description: The monster to register the effect to.
returns:
- type: [ Effect ]
description: The registered effect.
status: { index: stable }
tags: [ registers-effect ]
suggestedLinks:
- name: AddMustBeSpecialSummoned
link: /api/functions/Card/AddMustBeSpecialSummoned
Loading
Loading