aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2020-05-10 12:05:28 +0200
committerDaniel Schadt <kingdread@gmx.de>2020-05-10 12:05:28 +0200
commit02647a66181a6abc49c4dda57138e8752d9427d8 (patch)
treec8ae71e409993d817d0217b2c351f2e7416e46d6
parentdd0e9cbc3da25a59e3bdc08cc0da9c56f8ac15ad (diff)
downloadevtclib-02647a66181a6abc49c4dda57138e8752d9427d8.tar.gz
evtclib-02647a66181a6abc49c4dda57138e8752d9427d8.tar.bz2
evtclib-02647a66181a6abc49c4dda57138e8752d9427d8.zip
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.
-rw-r--r--src/gamedata.rs3
1 files changed, 2 insertions, 1 deletions
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),
}