use server calc speeds

This commit is contained in:
Mashy
2019-09-20 15:40:53 +10:00
parent 2e366e2eca
commit 67654cbbab
3 changed files with 7 additions and 19 deletions
+5
View File
@@ -1455,6 +1455,7 @@ pub struct ItemInfo {
pub spec: bool,
pub values: Option<SpecValues>,
pub skill: bool,
pub speed: Option<u64>,
pub cooldown: Cooldown,
pub description: String,
}
@@ -1491,6 +1492,10 @@ pub fn item_info() -> ItemInfoCtr {
},
skill: v.into_skill().is_some(),
description: v.into_description(),
speed: match v.into_skill() {
Some(s) => Some(s.speed()),
None => None
},
cooldown: match v.into_skill() {
Some(s) => s.base_cd(),
None => None