use server calc speeds
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user