renmae to basecd

This commit is contained in:
ntr 2018-12-14 13:57:32 +11:00
parent e20aabb6e4
commit 870d74b7eb
2 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ impl CrypSkill {
CrypSkill { CrypSkill {
skill, skill,
self_targeting: skill.self_targeting(), 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 { pub fn reduce_cooldowns(&mut self) -> &mut Cryp {
for skill in self.skills.iter_mut() { for skill in self.skills.iter_mut() {
// if used cooldown // if used cooldown
if skill.skill.cd().is_some() { if skill.skill.base_cd().is_some() {
// what is the current cd // what is the current cd
if let Some(current_cd) = skill.cd { if let Some(current_cd) = skill.cd {

View File

@ -50,7 +50,7 @@ impl Cast {
} }
pub fn used_cooldown(&self) -> bool { 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 { impl Skill {
pub fn cd(&self) -> Cooldown { pub fn base_cd(&self) -> Cooldown {
match self { match self {
Skill::Attack => None, Skill::Attack => None,