show skill delay on info
This commit is contained in:
parent
3ad679cb02
commit
6fba9d9f4d
@ -27,7 +27,6 @@
|
|||||||
* fuck magic
|
* fuck magic
|
||||||
* empower on ko
|
* empower on ko
|
||||||
|
|
||||||
var / skill info rpc -> cooldown
|
|
||||||
* rework vecs into sets
|
* rework vecs into sets
|
||||||
* remove names so games/instances are copy
|
* remove names so games/instances are copy
|
||||||
|
|
||||||
|
|||||||
@ -50,11 +50,13 @@ function InfoComponent(args) {
|
|||||||
? (24 + (itemSpeed(itemSource[0].components[0]) + itemSpeed(itemSource[0].components[1])) * itemSpeed(itemSource[0].components[2])) * 4
|
? (24 + (itemSpeed(itemSource[0].components[0]) + itemSpeed(itemSource[0].components[1])) * itemSpeed(itemSource[0].components[2])) * 4
|
||||||
: (24 + itemSpeed(info)) * 4;
|
: (24 + itemSpeed(info)) * 4;
|
||||||
const speed = <div> Speed {shapes.SpeedStat()} multiplier {calcSpeed}% </div>;
|
const speed = <div> Speed {shapes.SpeedStat()} multiplier {calcSpeed}% </div>;
|
||||||
|
const cooldown = fullInfo.cooldown ? `${fullInfo.cooldown} Turn delay` : null;
|
||||||
return (
|
return (
|
||||||
<div class="info-skill">
|
<div class="info-skill">
|
||||||
<h2>{fullInfo.item} - {fullInfo.cost}b</h2>
|
<h2>{fullInfo.item} - {fullInfo.cost}b</h2>
|
||||||
<h3>SKILL</h3>
|
<h3> SKILL </h3>
|
||||||
{itemSourceDescription}
|
{itemSourceDescription}
|
||||||
|
<div> {cooldown} </div>
|
||||||
<div>{infoDescription}</div>
|
<div>{infoDescription}</div>
|
||||||
{speed}
|
{speed}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1439,8 +1439,9 @@ pub struct ItemInfo {
|
|||||||
pub item: Item,
|
pub item: Item,
|
||||||
pub cost: usize,
|
pub cost: usize,
|
||||||
pub spec: bool,
|
pub spec: bool,
|
||||||
pub skill: bool,
|
|
||||||
pub values: Option<SpecValues>,
|
pub values: Option<SpecValues>,
|
||||||
|
pub skill: bool,
|
||||||
|
pub cooldown: Option<u8>,
|
||||||
pub description: String,
|
pub description: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1470,12 +1471,16 @@ pub fn item_info() -> ItemInfoCtr {
|
|||||||
item: v,
|
item: v,
|
||||||
cost: v.cost(),
|
cost: v.cost(),
|
||||||
spec: v.into_spec().is_some(),
|
spec: v.into_spec().is_some(),
|
||||||
skill: v.into_skill().is_some(),
|
|
||||||
description: v.into_description(),
|
|
||||||
values: match v.into_spec() {
|
values: match v.into_spec() {
|
||||||
Some(s) => Some(s.values()),
|
Some(s) => Some(s.values()),
|
||||||
None => None
|
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>>();
|
.collect::<Vec<ItemInfo>>();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user