pub struct AbilityDefConditions {Show 14 fields
pub requires_approx_effects: bool,
pub climax_area: Option<AbilityDefClimaxAreaCondition>,
pub turn: Option<ConditionTurn>,
pub hand_level_delta: i8,
pub self_waiting_room_climax_at_most: Option<u8>,
pub self_clock_card_ids_any: Vec<CardId>,
pub self_memory_card_ids_any: Vec<CardId>,
pub self_memory_at_most: Option<u8>,
pub opponent_stage_has_level_at_least: Option<u8>,
pub trigger_check_revealed_climax: bool,
pub trigger_check_revealed_icon: Option<TriggerIcon>,
pub ignore_color_requirement: bool,
pub zone_count: Option<ZoneCountCondition>,
pub source_rule_id: Option<String>,
}Expand description
Ability-level conditional requirements.
Fields§
§requires_approx_effects: boolIf true, this ability only runs when curriculum approximation effects are enabled.
climax_area: Option<AbilityDefClimaxAreaCondition>Optional climax-area gate for this ability.
turn: Option<ConditionTurn>Optional turn gate for this ability.
hand_level_delta: i8Optional play-from-hand level adjustment (typically negative).
self_waiting_room_climax_at_most: Option<u8>Optional gate on self waiting-room climax count.
self_clock_card_ids_any: Vec<CardId>Optional gate requiring at least one of these card ids in self clock.
self_memory_card_ids_any: Vec<CardId>Optional gate requiring at least one of these card ids in self memory.
self_memory_at_most: Option<u8>Optional gate requiring self memory count to be at most this value.
opponent_stage_has_level_at_least: Option<u8>Optional gate requiring the opponent to have a stage character at or above this level.
trigger_check_revealed_climax: boolOptional gate requiring the current trigger check card to be a climax.
trigger_check_revealed_icon: Option<TriggerIcon>Optional gate requiring the current trigger check card to include this trigger icon.
ignore_color_requirement: boolIf true, this card can be played without color requirements while in hand.
zone_count: Option<ZoneCountCondition>Optional generic zone-count gate for this ability.
source_rule_id: Option<String>Optional parser-v2 rule-pack provenance identifier.
Trait Implementations§
Source§impl Clone for AbilityDefConditions
impl Clone for AbilityDefConditions
Source§fn clone(&self) -> AbilityDefConditions
fn clone(&self) -> AbilityDefConditions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AbilityDefConditions
impl Debug for AbilityDefConditions
Source§impl Default for AbilityDefConditions
impl Default for AbilityDefConditions
Source§fn default() -> AbilityDefConditions
fn default() -> AbilityDefConditions
Source§impl<'de> Deserialize<'de> for AbilityDefConditions
impl<'de> Deserialize<'de> for AbilityDefConditions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Hash for AbilityDefConditions
impl Hash for AbilityDefConditions
Source§impl PartialEq for AbilityDefConditions
impl PartialEq for AbilityDefConditions
Source§impl Serialize for AbilityDefConditions
impl Serialize for AbilityDefConditions
impl Eq for AbilityDefConditions
impl StructuralPartialEq for AbilityDefConditions
Auto Trait Implementations§
impl Freeze for AbilityDefConditions
impl RefUnwindSafe for AbilityDefConditions
impl Send for AbilityDefConditions
impl Sync for AbilityDefConditions
impl Unpin for AbilityDefConditions
impl UnwindSafe for AbilityDefConditions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more