From 8bebefe996537137901a8c0cc862a73cbfce9939 Mon Sep 17 00:00:00 2001 From: kageru Date: Mon, 24 Apr 2023 11:18:21 +0200 Subject: [PATCH] Add Yugipedia link to card details --- src/data.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data.rs b/src/data.rs index 65542b7..51b6237 100644 --- a/src/data.rs +++ b/src/data.rs @@ -66,7 +66,7 @@ pub struct Set { impl Card { pub fn extended_info(&self) -> Result { let mut s = String::with_capacity(1000); - write!(s, "

Click here for rulings.

", &self.name)?; + write!(s, "

RulingsYugipedia

", &self.name, &self.name.replace(' ', "_"))?; s.push_str("

Printings:

"); for printing in &self.card_sets { write!(s, "{}: {} ({})", printing.set_name, printing.set_code, printing.set_rarity)?;