From 02647a66181a6abc49c4dda57138e8752d9427d8 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sun, 10 May 2020 12:05:28 +0200 Subject: add Cairn CM detection The given buff is the Countdown effect that each player has: https://wiki.guildwars2.com/index.php?title=Countdown The logic is from GW2-Elite-Insights-Parser (Cairn.cs, IsCM), but we count this as a buff instead of a skill. --- src/gamedata.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gamedata.rs b/src/gamedata.rs index cac6518..4fe8fa6 100644 --- a/src/gamedata.rs +++ b/src/gamedata.rs @@ -68,6 +68,7 @@ impl Boss { match self { Boss::KeepConstruct => CmTrigger::Unknown, + Boss::Cairn => CmTrigger::BuffPresent(38_098), Boss::MursaatOverseer => CmTrigger::HpThreshold(30_000_000), Boss::Samarog => CmTrigger::HpThreshold(40_000_000), Boss::Deimos => CmTrigger::HpThreshold(42_000_000), @@ -180,7 +181,7 @@ pub enum CmTrigger { BuffPresent(u32), /// The time between buff applications falls below the given threshold. /// - /// The first number is the buff id, the second number is the time threshold. + /// The first number is the buff id, the second number is the time threshold in milliseconds. TimeBetweenBuffs(u32, u64), } -- cgit v1.2.3