mirror of
https://github.com/Steffo99/patched-porobot.git
synced 2024-12-23 01:54:22 +00:00
Document the CardSet::from_code
change
This commit is contained in:
parent
11bd4204dd
commit
e5aa83af96
1 changed files with 3 additions and 1 deletions
|
@ -55,8 +55,10 @@ impl CardSet {
|
|||
hm.get(self)
|
||||
}
|
||||
|
||||
/// Get the [`CardSet`] from its short code, **assuming it is not an [`CardSet::Events`] card**.
|
||||
/// Get the [`CardSet`] from its short code.
|
||||
///
|
||||
/// [`CardSet::Worldwalker`] and [`CardSet::TheDarkinSaga`] share the same code `06`, so a variant cannot be determined.
|
||||
///
|
||||
/// [`CardSet::Events`] cards have the short code of the set they were released in, so it is impossible to determine if a card belongs to that set from its short code.
|
||||
pub fn from_code(value: &str) -> Self {
|
||||
match value {
|
||||
|
|
Loading…
Reference in a new issue