pub enum ClassPassive {
None,
BlockHeal,
DoubleStrike,
Multicast,
LowestAllyHeal,
}Expand description
The always-on rule a class plays with (BAL-033). One per class: it is the half of class identity that is not a stat, so it must be readable from the class alone rather than inferred from what the character happens to wear.
The magnitude interpolates linearly between the two authored endpoints over
global Class Level 1..=20 — a %MaxHP heal for BlockHeal and
LowestAllyHeal, a chance in whole percent for DoubleStrike.
Variants§
None
No passive — the unselected sentinel class.
BlockHeal
Every successful Block heals the blocker (Warrior).
DoubleStrike
Every original Basic Attack may repeat itself at full damage (Rogue).
Multicast
The multicast_chance stat IS the passive (Mage): the runtime already
casts the second copy, and the class level authors the chance.
LowestAllyHeal
A periodic heal on the ally with the lowest HP share, self in solo (Priest).
Implementations§
Source§impl ClassPassive
impl ClassPassive
Sourcepub const fn is_periodic(self) -> bool
pub const fn is_periodic(self) -> bool
Whether this passive needs a fight-local timer.
Trait Implementations§
Source§impl Clone for ClassPassive
impl Clone for ClassPassive
Source§fn clone(&self) -> ClassPassive
fn clone(&self) -> ClassPassive
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClassPassive
impl Debug for ClassPassive
Source§impl Default for ClassPassive
impl Default for ClassPassive
Source§fn default() -> ClassPassive
fn default() -> ClassPassive
Source§impl<'de> Deserialize<'de> for ClassPassive
impl<'de> Deserialize<'de> for ClassPassive
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 JsonSchema for ClassPassive
impl JsonSchema for ClassPassive
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more