mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Make rank and level use some saner scales
This commit is contained in:
1 parent
782d28efec
commit
2293edec9d
5 files changed
+38
-6
No files matched your search
@@ -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(),
|
||||
|
||||
Reference in new issue
Block a user