show skill delay on info
This commit is contained in:
+8
-3
@@ -1439,8 +1439,9 @@ pub struct ItemInfo {
|
||||
pub item: Item,
|
||||
pub cost: usize,
|
||||
pub spec: bool,
|
||||
pub skill: bool,
|
||||
pub values: Option<SpecValues>,
|
||||
pub skill: bool,
|
||||
pub cooldown: Option<u8>,
|
||||
pub description: String,
|
||||
}
|
||||
|
||||
@@ -1470,12 +1471,16 @@ pub fn item_info() -> ItemInfoCtr {
|
||||
item: v,
|
||||
cost: v.cost(),
|
||||
spec: v.into_spec().is_some(),
|
||||
skill: v.into_skill().is_some(),
|
||||
description: v.into_description(),
|
||||
values: match v.into_spec() {
|
||||
Some(s) => Some(s.values()),
|
||||
None => None
|
||||
},
|
||||
skill: v.into_skill().is_some(),
|
||||
description: v.into_description(),
|
||||
cooldown: match v.into_skill() {
|
||||
Some(s) => s.base_cd(),
|
||||
None => None
|
||||
},
|
||||
})
|
||||
.collect::<Vec<ItemInfo>>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user