1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Get part way through loading (to sync) #30

This commit is contained in:
NG (Graham)
2025-07-06 17:36:52 -04:00
parent 38ab4ba799
commit 1d404db209
31 changed files with 1049 additions and 100 deletions

View File

@@ -105,6 +105,19 @@ impl ItemTier {
ItemTier::T5 => "T5",
}
}
pub fn from_u32(num: u32) -> Option<Self> {
match num {
0 => Some(Self::NoTier),
100 => Some(Self::T0),
200 => Some(Self::T1),
300 => Some(Self::T2),
400 => Some(Self::T3),
500 => Some(Self::T4),
600 => Some(Self::T5),
_ => None,
}
}
}
#[derive(Clone, Copy)]