use super::*; pub fn disclose(skill: &Skill, activate: bool, budget: usize) -> Result { let mut text = format!("{}: {}", skill.name, skill.description); if activate && !skill.body.is_empty() { text.push_str("\n\n"); text.push_str(&skill.body); } if text.chars().count() > budget { return Err(Error::Limit); } Ok(text) }