add back overlap between anims and combattext

This commit is contained in:
Mashy
2019-12-06 01:47:08 +10:00
parent b8cb296bd6
commit 517b912c2e
3 changed files with 15 additions and 29 deletions
+7 -7
View File
@@ -258,15 +258,15 @@ pub enum EventVariant {
impl EventVariant {
fn delay(&self) -> i64 {
// let source_duration = 1000; // Time for SOURCE ONLY
let target_delay = 500; // Used for Source + Target
let target_duration = 1500; // Time for TARGET ONLY
let post_skill = 1000; // Time for all POST
let source_and_target_total = target_delay + target_duration; // SOURCE + TARGET time
let target_duration = 1500; // Time for target animation
let target_delay = 500; // Add delay if theres source animation
let combat_text_delay = 1300; // Time for all post skill
let combat_text_overlap = 600; // overlap between animation and combat text
match self {
EventVariant::Hit { skill: _ } => target_duration,
EventVariant::HitCast { skill: _, source: _ } => source_and_target_total,
_ => post_skill,
EventVariant::Hit { skill: _ } => target_duration - combat_text_overlap,
EventVariant::HitCast { skill: _, source: _ } => target_delay + target_duration - combat_text_overlap,
_ => combat_text_delay,
}
}
}