-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
195 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
---!function | ||
name: SelfDiscardCost | ||
namespace: aux | ||
description: A baseline [cost function](/api/types/EffectCost) used for effects that discard the activating card itself as cost, such as `You can discard this card; ...` (e.g. "Ash Blossom & Joyous Spring"). | ||
summary: Cost function for effects that discard the card itself as cost. | ||
status: | ||
index: stable | ||
parameters: | ||
- name: e | ||
type: [ Effect ] | ||
description: The effect being activated. | ||
- name: tp | ||
type: [ int ] | ||
description: The player activating the effect. | ||
- name: eg | ||
type: [ Group ] | ||
description: A group of cards associated to the event that prompted the effect activation. The specifics of this group vary depending on the [event code](/api/enums/Event). | ||
- name: ep | ||
type: [ int ] | ||
description: The player associated to the event that prompted the effect activation. | ||
- name: ev | ||
type: [ Group ] | ||
description: A value associated to the event that prompted the effect activation. The specifics of this value vary depending on the event code. | ||
- name: re | ||
type: [ Effect ] | ||
description: The effect that caused the event that prompted the effect activation. | ||
- name: r | ||
type: [ int ] | ||
description: Composite [Reason](/api/enums/Reason) value of the event that prompted the effect activation. | ||
- name: rp | ||
type: [ int ] | ||
description: The player that caused the event that prompted the effect activation. | ||
- name: chk | ||
type: [ int ] | ||
description: Must be `0` when checking if the cost can be paid, and `1` when performing the cost. | ||
returns: | ||
- type: [ bool ] | ||
description: If `chk` is `0`, returns `true` if the cost can be paid. | ||
guaranteed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
---!function | ||
name: SelfDiscardToGraveCost | ||
namespace: aux | ||
description: A baseline [cost function](/api/types/EffectCost) used for effects that discard the activating card itself to the GY as cost, such as `You can discard this card to the GY; ...` (e.g. "D.D. Crow"). | ||
summary: Cost function for effects that discard the card itself to the GY as cost. | ||
status: | ||
index: stable | ||
parameters: | ||
- name: e | ||
type: [ Effect ] | ||
description: The effect being activated. | ||
- name: tp | ||
type: [ int ] | ||
description: The player activating the effect. | ||
- name: eg | ||
type: [ Group ] | ||
description: A group of cards associated to the event that prompted the effect activation. The specifics of this group vary depending on the [event code](/api/enums/Event). | ||
- name: ep | ||
type: [ int ] | ||
description: The player associated to the event that prompted the effect activation. | ||
- name: ev | ||
type: [ Group ] | ||
description: A value associated to the event that prompted the effect activation. The specifics of this value vary depending on the event code. | ||
- name: re | ||
type: [ Effect ] | ||
description: The effect that caused the event that prompted the effect activation. | ||
- name: r | ||
type: [ int ] | ||
description: Composite [Reason](/api/enums/Reason) value of the event that prompted the effect activation. | ||
- name: rp | ||
type: [ int ] | ||
description: The player that caused the event that prompted the effect activation. | ||
- name: chk | ||
type: [ int ] | ||
description: Must be `0` when checking if the cost can be paid, and `1` when performing the cost. | ||
returns: | ||
- type: [ bool ] | ||
description: If `chk` is `0`, returns `true` if the cost can be paid. | ||
guaranteed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
---!function | ||
name: SelfToDeckCost | ||
namespace: aux | ||
description: A baseline [cost function](/api/types/EffectCost) used for effects that shuffle the activating card itself to the Main Deck as cost, such as `You can shuffle this card (you control/from.../etc) into the Deck; ...` (e.g. the "Rescue Ferret"). | ||
summary: Cost function for effects that shuffle the card itself to the Deck as cost. | ||
status: | ||
index: stable | ||
parameters: | ||
- name: e | ||
type: [ Effect ] | ||
description: The effect being activated. | ||
- name: tp | ||
type: [ int ] | ||
description: The player activating the effect. | ||
- name: eg | ||
type: [ Group ] | ||
description: A group of cards associated to the event that prompted the effect activation. The specifics of this group vary depending on the [event code](/api/enums/Event). | ||
- name: ep | ||
type: [ int ] | ||
description: The player associated to the event that prompted the effect activation. | ||
- name: ev | ||
type: [ Group ] | ||
description: A value associated to the event that prompted the effect activation. The specifics of this value vary depending on the event code. | ||
- name: re | ||
type: [ Effect ] | ||
description: The effect that caused the event that prompted the effect activation. | ||
- name: r | ||
type: [ int ] | ||
description: Composite [Reason](/api/enums/Reason) value of the event that prompted the effect activation. | ||
- name: rp | ||
type: [ int ] | ||
description: The player that caused the event that prompted the effect activation. | ||
- name: chk | ||
type: [ int ] | ||
description: Must be `0` when checking if the cost can be paid, and `1` when performing the cost. | ||
returns: | ||
- type: [ bool ] | ||
description: If `chk` is `0`, returns `true` if the cost can be paid. | ||
guaranteed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
---!function | ||
name: SelfToExtraCost | ||
namespace: aux | ||
description: A baseline [cost function](/api/types/EffectCost) used for effects that return the activating card itself to the Extra Deck as cost, such as `You can return this card (you control/from.../etc) to the Extra Deck; ...` (e.g. the "Gladiator Beast Gyzarus"). | ||
summary: Cost function for effects that return the card itself to the Extra Deck as cost. | ||
status: | ||
index: stable | ||
parameters: | ||
- name: e | ||
type: [ Effect ] | ||
description: The effect being activated. | ||
- name: tp | ||
type: [ int ] | ||
description: The player activating the effect. | ||
- name: eg | ||
type: [ Group ] | ||
description: A group of cards associated to the event that prompted the effect activation. The specifics of this group vary depending on the [event code](/api/enums/Event). | ||
- name: ep | ||
type: [ int ] | ||
description: The player associated to the event that prompted the effect activation. | ||
- name: ev | ||
type: [ Group ] | ||
description: A value associated to the event that prompted the effect activation. The specifics of this value vary depending on the event code. | ||
- name: re | ||
type: [ Effect ] | ||
description: The effect that caused the event that prompted the effect activation. | ||
- name: r | ||
type: [ int ] | ||
description: Composite [Reason](/api/enums/Reason) value of the event that prompted the effect activation. | ||
- name: rp | ||
type: [ int ] | ||
description: The player that caused the event that prompted the effect activation. | ||
- name: chk | ||
type: [ int ] | ||
description: Must be `0` when checking if the cost can be paid, and `1` when performing the cost. | ||
returns: | ||
- type: [ bool ] | ||
description: If `chk` is `0`, returns `true` if the cost can be paid. | ||
guaranteed: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
---!function | ||
name: SelfToHandCost | ||
namespace: aux | ||
description: A baseline [cost function](/api/types/EffectCost) used for effects that return the activating card itself to the hand as cost, such as `You can return this card (you control/from.../etc) to the/your hand; ...` (e.g. "Sauravis, the Ancient and Ascended"). | ||
summary: Cost function for effects that return the card itself to the hand as cost. | ||
status: | ||
index: stable | ||
parameters: | ||
- name: e | ||
type: [ Effect ] | ||
description: The effect being activated. | ||
- name: tp | ||
type: [ int ] | ||
description: The player activating the effect. | ||
- name: eg | ||
type: [ Group ] | ||
description: A group of cards associated to the event that prompted the effect activation. The specifics of this group vary depending on the [event code](/api/enums/Event). | ||
- name: ep | ||
type: [ int ] | ||
description: The player associated to the event that prompted the effect activation. | ||
- name: ev | ||
type: [ Group ] | ||
description: A value associated to the event that prompted the effect activation. The specifics of this value vary depending on the event code. | ||
- name: re | ||
type: [ Effect ] | ||
description: The effect that caused the event that prompted the effect activation. | ||
- name: r | ||
type: [ int ] | ||
description: Composite [Reason](/api/enums/Reason) value of the event that prompted the effect activation. | ||
- name: rp | ||
type: [ int ] | ||
description: The player that caused the event that prompted the effect activation. | ||
- name: chk | ||
type: [ int ] | ||
description: Must be `0` when checking if the cost can be paid, and `1` when performing the cost. | ||
returns: | ||
- type: [ bool ] | ||
description: If `chk` is `0`, returns `true` if the cost can be paid. | ||
guaranteed: false |