renmae to basecd
This commit is contained in:
parent
e20aabb6e4
commit
870d74b7eb
@ -24,7 +24,7 @@ impl CrypSkill {
|
||||
CrypSkill {
|
||||
skill,
|
||||
self_targeting: skill.self_targeting(),
|
||||
cd: skill.cd(),
|
||||
cd: skill.base_cd(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -255,7 +255,7 @@ impl Cryp {
|
||||
pub fn reduce_cooldowns(&mut self) -> &mut Cryp {
|
||||
for skill in self.skills.iter_mut() {
|
||||
// if used cooldown
|
||||
if skill.skill.cd().is_some() {
|
||||
if skill.skill.base_cd().is_some() {
|
||||
// what is the current cd
|
||||
if let Some(current_cd) = skill.cd {
|
||||
|
||||
|
||||
@ -50,7 +50,7 @@ impl Cast {
|
||||
}
|
||||
|
||||
pub fn used_cooldown(&self) -> bool {
|
||||
return self.skill.cd().is_some();
|
||||
return self.skill.base_cd().is_some();
|
||||
}
|
||||
}
|
||||
|
||||
@ -344,7 +344,7 @@ pub enum Skill {
|
||||
}
|
||||
|
||||
impl Skill {
|
||||
pub fn cd(&self) -> Cooldown {
|
||||
pub fn base_cd(&self) -> Cooldown {
|
||||
match self {
|
||||
Skill::Attack => None,
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user