add back overlap between anims and combattext
This commit is contained in:
+7
-7
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user