Make rank and level use some saner scales

This commit is contained in:
NG (Graham) committed 2026-01-01 08:51:33 -05:00
1 parent 782d28efec
commit 2293edec9d
5 files changed
+38 -6

No files matched your search

+2 -1
View File
@@ -2,6 +2,7 @@ use polariton::operation::{Typed, Dict, Arr};
use polariton::serdes::TypePrefix;
pub struct PlayerRankStaticInfo {
pub sub_rank_count: i32,
pub sub_rank_thresholds: Vec<i32>,
}
@@ -11,7 +12,7 @@ impl PlayerRankStaticInfo {
key_ty: TypePrefix::Str,
val_ty: TypePrefix::Any,
items: vec![
(Typed::Str("subRankCount".into()), Typed::Int(self.sub_rank_thresholds.len() as i32)),
(Typed::Str("subRankCount".into()), Typed::Int(self.sub_rank_count)),
(Typed::Str("subRankThresholds".into()), Typed::Arr(Arr {
ty: TypePrefix::Int, // int
items: self.sub_rank_thresholds.iter().map(|x| Typed::Int(*x)).collect(),