Skip to main content

tokenize_string

Function tokenize_string 

Source
pub fn tokenize_string(
    game: &GameState,
    sa: &SpellAbility,
    desc: &str,
) -> String
Expand description

Tokenize a description string, replacing CARDNAME with the actual card name and NICKNAME with a short version. Mirrors Java’s SpellAbilityEffect.tokenizeString(SpellAbility, String).