Compare commits
No commits in common. "a9b3cc86663a28aadbd899ea7f76136c7d2578d6" and "858a5e8f49e57a95192588a62ebd023f5ed2b5f8" have entirely different histories.
a9b3cc8666
...
858a5e8f49
@ -99,47 +99,46 @@ const MITIGATION_ABILITIES = [
|
||||
'Shield Samba' => ['dr' => 15, 'buffType' => 'buff', 'statusId' => 1001826, 'extraAbilityGameID' => 16012],
|
||||
'Magick Barrier' => ['dr' => 10, 'buffType' => 'buff', 'statusId' => 1002707, 'extraAbilityGameID' => 25857],
|
||||
// ── Personal / targeted mitigation ─────────────────────────────────────
|
||||
'Rampart' => ['dr' => 20, 'buffType' => 'buff', 'extraAbilityGameID' => 7531],
|
||||
'Rampart' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 7531],
|
||||
// PLD
|
||||
'Hallowed Ground' => ['dr' => 100, 'buffType' => 'buff', 'extraAbilityGameID' => 30],
|
||||
'Sentinel' => ['dr' => 30, 'buffType' => 'buff', 'extraAbilityGameID' => 17],
|
||||
'Hallowed Ground' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 30],
|
||||
'Sentinel' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 17],
|
||||
'Bulwark' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 22],
|
||||
'Holy Sheltron' => ['dr' => 15, 'buffType' => 'buff', 'extraAbilityGameID' => 25746],
|
||||
'Intervention' => ['dr' => 10, 'buffType' => 'buff', 'extraAbilityGameID' => 7382],
|
||||
'Holy Sheltron' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 25746],
|
||||
'Intervention' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 7382],
|
||||
// WAR
|
||||
'Holmgang' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 43],
|
||||
'Vengeance' => ['dr' => 30, 'buffType' => 'buff', 'extraAbilityGameID' => 44],
|
||||
'Damnation' => ['dr' => 40, 'buffType' => 'buff', 'extraAbilityGameID' => 36923],
|
||||
'Vengeance' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 44],
|
||||
'Damnation' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 36923],
|
||||
'Thrill of Battle' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 40],
|
||||
'Raw Intuition' => ['dr' => 10, 'buffType' => 'buff', 'extraAbilityGameID' => 3551],
|
||||
'Raw Intuition' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 3551],
|
||||
// DRK
|
||||
'Living Dead' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 3638],
|
||||
'Shadow Wall' => ['dr' => 30, 'buffType' => 'buff', 'extraAbilityGameID' => 3636],
|
||||
'Shadowed Vigil' => ['dr' => 40, 'buffType' => 'buff', 'extraAbilityGameID' => 36927],
|
||||
'Dark Mind' => ['dr' => 20, 'buffType' => 'buff', 'extraAbilityGameID' => 3634],
|
||||
'Shadow Wall' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 3636],
|
||||
'Shadowed Vigil' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 36927],
|
||||
'Dark Mind' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 3634],
|
||||
'The Blackest Night' => ['dr' => 0, 'buffType' => 'shield', 'extraAbilityGameID' => 7393],
|
||||
'Oblation' => ['dr' => 10, 'buffType' => 'buff', 'extraAbilityGameID' => 25754],
|
||||
'Oblation' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 25754],
|
||||
// GNB
|
||||
'Superbolide' => ['dr' => 100, 'buffType' => 'buff', 'extraAbilityGameID' => 16152],
|
||||
'Nebula' => ['dr' => 30, 'buffType' => 'buff', 'extraAbilityGameID' => 16148],
|
||||
'Great Nebula' => ['dr' => 40, 'buffType' => 'buff', 'statusId' => 1003838, 'extraAbilityGameID' => 36935],
|
||||
'Camouflage' => ['dr' => 10, 'buffType' => 'buff', 'extraAbilityGameID' => 16140],
|
||||
'Heart of Stone' => ['dr' => 15, 'buffType' => 'buff', 'extraAbilityGameID' => 16161],
|
||||
'Heart of Corundum' => ['dr' => 15, 'buffType' => 'buff', 'statusId' => 1002683, 'extraAbilityGameID' => 25758],
|
||||
'Clarity of Corundum' => ['dr' => 15, 'buffType' => 'buff', 'statusId' => 1002684, 'extraAbilityGameID' => 25758], // Proc von Heart of Corundum, kann beliebiges Partymitglied treffen
|
||||
'Superbolide' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 16152],
|
||||
'Nebula' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 16148],
|
||||
'Great Nebula' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 36935],
|
||||
'Camouflage' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 16140],
|
||||
'Heart of Stone' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 16161],
|
||||
'Heart of Corundum' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 25758],
|
||||
// DPS
|
||||
'Riddle of Earth' => ['dr' => 20, 'buffType' => 'buff', 'extraAbilityGameID' => 7394],
|
||||
'Riddle of Earth' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 7394],
|
||||
'Shade Shift' => ['dr' => 0, 'buffType' => 'shield', 'extraAbilityGameID' => 2241],
|
||||
'Third Eye' => ['dr' => 10, 'buffType' => 'buff', 'extraAbilityGameID' => 7498],
|
||||
'Third Eye' => ['dr' => 0, 'buffType' => 'buff', 'extraAbilityGameID' => 7498],
|
||||
'Arcane Crest' => ['dr' => 0, 'buffType' => 'shield', 'extraAbilityGameID' => 24404],
|
||||
'Manaward' => ['dr' => 0, 'buffType' => 'shield', 'extraAbilityGameID' => 157],
|
||||
// ── Shields ─────────────────────────────────────────────────────────────
|
||||
// PLD
|
||||
'Divine Veil' => ['dr' => 0, 'buffType' => 'shield', 'statusId' => 1001362, 'extraAbilityGameID' => 3540],
|
||||
'Guardian' => ['dr' => 40, 'buffType' => 'shield', 'statusId' => 1003830, 'extraAbilityGameID' => 36920], // FFLogs: "Guardian's Will"
|
||||
'Guardian' => ['dr' => 0, 'buffType' => 'shield', 'statusId' => 1003830, 'extraAbilityGameID' => 36920], // FFLogs: "Guardian's Will"
|
||||
// WAR
|
||||
'Shake It Off' => ['dr' => 0, 'buffType' => 'shield', 'statusId' => 1001457, 'extraAbilityGameID' => 7388],
|
||||
'Bloodwhetting' => ['dr' => 10, 'buffType' => 'shield', 'statusId' => 1002678, 'extraAbilityGameID' => 25751],
|
||||
'Bloodwhetting' => ['dr' => 0, 'buffType' => 'shield', 'statusId' => 1002678, 'extraAbilityGameID' => 25751],
|
||||
// WHM
|
||||
'Divine Benison' => ['dr' => 0, 'buffType' => 'shield', 'statusId' => 1001218, 'extraAbilityGameID' => 7432],
|
||||
'Divine Caress' => ['dr' => 0, 'buffType' => 'shield', 'statusId' => 1003903, 'extraAbilityGameID' => 37011],
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
declare(strict_types=1);
|
||||
|
||||
const CACHED_LOG_DIR = __DIR__ . '/../cached_logs';
|
||||
const CACHED_LOG_VERSION = 'v4';
|
||||
const CACHED_LOG_VERSION = 'v3';
|
||||
|
||||
function cache_language(string $language): string {
|
||||
$language = strtolower(trim($language));
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.3 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 4.7 KiB |
@ -8,8 +8,7 @@
|
||||
"fr": "Sentinelle",
|
||||
"jp": "センチネル"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000151_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/000000/000151_hr1.png"
|
||||
},
|
||||
"22": {
|
||||
"cast": 0,
|
||||
@ -20,8 +19,7 @@
|
||||
"fr": "Forteresse",
|
||||
"jp": "ブルワーク"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000167_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/000000/000167_hr1.png"
|
||||
},
|
||||
"30": {
|
||||
"cast": 0,
|
||||
@ -32,8 +30,7 @@
|
||||
"fr": "Invincible",
|
||||
"jp": "インビンシブル"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002502_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002502_hr1.png"
|
||||
},
|
||||
"40": {
|
||||
"cast": 0,
|
||||
@ -44,8 +41,7 @@
|
||||
"fr": "Frisson de la bataille",
|
||||
"jp": "スリル・オブ・バトル"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000263_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/000000/000263_hr1.png"
|
||||
},
|
||||
"43": {
|
||||
"cast": 0,
|
||||
@ -56,8 +52,7 @@
|
||||
"fr": "Holmgang",
|
||||
"jp": "ホルムギャング"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000266_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/000000/000266_hr1.png"
|
||||
},
|
||||
"44": {
|
||||
"cast": 0,
|
||||
@ -68,8 +63,7 @@
|
||||
"fr": "Représailles",
|
||||
"jp": "ヴェンジェンス"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000267_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/000000/000267_hr1.png"
|
||||
},
|
||||
"157": {
|
||||
"cast": 0,
|
||||
@ -80,8 +74,7 @@
|
||||
"fr": "Barrière de mana",
|
||||
"jp": "マバリア"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000463_hr1.png",
|
||||
"shield": "30% max HP"
|
||||
"icon": "https://xivapi.com/i/000000/000463_hr1.png"
|
||||
},
|
||||
"185": {
|
||||
"cast": 20,
|
||||
@ -92,8 +85,7 @@
|
||||
"fr": "Traité du réconfort",
|
||||
"jp": "鼓舞激励の策"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002801_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002801_hr1.png"
|
||||
},
|
||||
"188": {
|
||||
"cast": 0,
|
||||
@ -104,8 +96,7 @@
|
||||
"fr": "Dogme de survie",
|
||||
"jp": "野戦治療の陣"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002804_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002804_hr1.png"
|
||||
},
|
||||
"2241": {
|
||||
"cast": 0,
|
||||
@ -116,8 +107,7 @@
|
||||
"fr": "Décalage d'ombre",
|
||||
"jp": "残影"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000607_hr1.png",
|
||||
"shield": "20% max HP"
|
||||
"icon": "https://xivapi.com/i/000000/000607_hr1.png"
|
||||
},
|
||||
"3540": {
|
||||
"cast": 0,
|
||||
@ -128,8 +118,7 @@
|
||||
"fr": "Voile divin",
|
||||
"jp": "ディヴァインヴェール"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002508_hr1.png",
|
||||
"shield": "10% max HP"
|
||||
"icon": "https://xivapi.com/i/002000/002508_hr1.png"
|
||||
},
|
||||
"3551": {
|
||||
"cast": 0,
|
||||
@ -140,8 +129,7 @@
|
||||
"fr": "Intuition pure",
|
||||
"jp": "原初の直感"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002559_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002559_hr1.png"
|
||||
},
|
||||
"3613": {
|
||||
"cast": 0,
|
||||
@ -152,8 +140,7 @@
|
||||
"fr": "Inconscient collectif",
|
||||
"jp": "運命の輪"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003140_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003140_hr1.png"
|
||||
},
|
||||
"3634": {
|
||||
"cast": 0,
|
||||
@ -164,8 +151,7 @@
|
||||
"fr": "Esprit ténébreux",
|
||||
"jp": "ダークマインド"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003076_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003076_hr1.png"
|
||||
},
|
||||
"3636": {
|
||||
"cast": 0,
|
||||
@ -176,8 +162,7 @@
|
||||
"fr": "Mur d'ombre",
|
||||
"jp": "シャドウウォール"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003075_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003075_hr1.png"
|
||||
},
|
||||
"3638": {
|
||||
"cast": 0,
|
||||
@ -188,8 +173,7 @@
|
||||
"fr": "Mort-vivant",
|
||||
"jp": "リビングデッド"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003077_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003077_hr1.png"
|
||||
},
|
||||
"7382": {
|
||||
"cast": 0,
|
||||
@ -200,8 +184,7 @@
|
||||
"fr": "Intervention",
|
||||
"jp": "インターベンション"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002512_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002512_hr1.png"
|
||||
},
|
||||
"7385": {
|
||||
"cast": 0,
|
||||
@ -212,8 +195,7 @@
|
||||
"fr": "Passe d'armes",
|
||||
"jp": "パッセージ・オブ・アームズ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002515_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002515_hr1.png"
|
||||
},
|
||||
"7388": {
|
||||
"cast": 0,
|
||||
@ -224,8 +206,7 @@
|
||||
"fr": "Débarrassage",
|
||||
"jp": "シェイクオフ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002563_hr1.png",
|
||||
"shield": "15% max HP"
|
||||
"icon": "https://xivapi.com/i/002000/002563_hr1.png"
|
||||
},
|
||||
"7393": {
|
||||
"cast": 0,
|
||||
@ -236,8 +217,7 @@
|
||||
"fr": "Nuit noirissime",
|
||||
"jp": "ブラックナイト"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003081_hr1.png",
|
||||
"shield": "25% max HP"
|
||||
"icon": "https://xivapi.com/i/003000/003081_hr1.png"
|
||||
},
|
||||
"7394": {
|
||||
"cast": 0,
|
||||
@ -248,8 +228,7 @@
|
||||
"fr": "Énigme de la terre",
|
||||
"jp": "金剛の極意"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002537_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002537_hr1.png"
|
||||
},
|
||||
"7405": {
|
||||
"cast": 0,
|
||||
@ -260,8 +239,7 @@
|
||||
"fr": "Troubadour",
|
||||
"jp": "トルバドゥール"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002612_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002612_hr1.png"
|
||||
},
|
||||
"7432": {
|
||||
"cast": 0,
|
||||
@ -272,8 +250,7 @@
|
||||
"fr": "Faveur divine",
|
||||
"jp": "ディヴァインベニゾン"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002638_hr1.png",
|
||||
"shield": "500 potency"
|
||||
"icon": "https://xivapi.com/i/002000/002638_hr1.png"
|
||||
},
|
||||
"7498": {
|
||||
"cast": 0,
|
||||
@ -284,8 +261,7 @@
|
||||
"fr": "Troisième œil",
|
||||
"jp": "心眼"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003153_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003153_hr1.png"
|
||||
},
|
||||
"7531": {
|
||||
"cast": 0,
|
||||
@ -296,8 +272,7 @@
|
||||
"fr": "Rempart",
|
||||
"jp": "ランパート"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000801_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/000000/000801_hr1.png"
|
||||
},
|
||||
"7535": {
|
||||
"cast": 0,
|
||||
@ -308,8 +283,7 @@
|
||||
"fr": "Rétorsion",
|
||||
"jp": "リプライザル"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000806_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/000000/000806_hr1.png"
|
||||
},
|
||||
"7549": {
|
||||
"cast": 0,
|
||||
@ -320,8 +294,7 @@
|
||||
"fr": "Restreinte",
|
||||
"jp": "牽制"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000828_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/000000/000828_hr1.png"
|
||||
},
|
||||
"7560": {
|
||||
"cast": 0,
|
||||
@ -332,8 +305,7 @@
|
||||
"fr": "Embrouillement",
|
||||
"jp": "アドル"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/000000/000861_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/000000/000861_hr1.png"
|
||||
},
|
||||
"16012": {
|
||||
"cast": 0,
|
||||
@ -344,8 +316,7 @@
|
||||
"fr": "Samba protectrice",
|
||||
"jp": "守りのサンバ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003469_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003469_hr1.png"
|
||||
},
|
||||
"16140": {
|
||||
"cast": 0,
|
||||
@ -356,8 +327,7 @@
|
||||
"fr": "Camouflage",
|
||||
"jp": "カモフラージュ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003404_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003404_hr1.png"
|
||||
},
|
||||
"16148": {
|
||||
"cast": 0,
|
||||
@ -368,8 +338,7 @@
|
||||
"fr": "Nébuleuse",
|
||||
"jp": "ネビュラ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003412_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003412_hr1.png"
|
||||
},
|
||||
"16152": {
|
||||
"cast": 0,
|
||||
@ -380,8 +349,7 @@
|
||||
"fr": "Bolide",
|
||||
"jp": "ボーライド"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003416_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003416_hr1.png"
|
||||
},
|
||||
"16160": {
|
||||
"cast": 0,
|
||||
@ -392,8 +360,7 @@
|
||||
"fr": "Cœur de Lumière",
|
||||
"jp": "ハート・オブ・ライト"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003424_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003424_hr1.png"
|
||||
},
|
||||
"16161": {
|
||||
"cast": 0,
|
||||
@ -404,8 +371,7 @@
|
||||
"fr": "Cœur de pierre",
|
||||
"jp": "ハート・オブ・ストーン"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003425_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003425_hr1.png"
|
||||
},
|
||||
"16471": {
|
||||
"cast": 0,
|
||||
@ -416,8 +382,7 @@
|
||||
"fr": "Missionnaire des Ténèbres",
|
||||
"jp": "ダークミッショナリー"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003087_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003087_hr1.png"
|
||||
},
|
||||
"16536": {
|
||||
"cast": 0,
|
||||
@ -428,8 +393,7 @@
|
||||
"fr": "Tempérance",
|
||||
"jp": "テンパランス"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002645_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002645_hr1.png"
|
||||
},
|
||||
"16538": {
|
||||
"cast": 0,
|
||||
@ -440,8 +404,7 @@
|
||||
"fr": "Illumination féérique",
|
||||
"jp": "フェイイルミネーション"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002853_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002853_hr1.png"
|
||||
},
|
||||
"16548": {
|
||||
"cast": 0,
|
||||
@ -452,8 +415,7 @@
|
||||
"fr": "Voile séraphique",
|
||||
"jp": "セラフィックヴェール"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002847_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002847_hr1.png"
|
||||
},
|
||||
"16556": {
|
||||
"cast": 0,
|
||||
@ -464,8 +426,7 @@
|
||||
"fr": "Rencontre céleste",
|
||||
"jp": "星天交差"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003556_hr1.png",
|
||||
"shield": "200% of HP restored"
|
||||
"icon": "https://xivapi.com/i/003000/003556_hr1.png"
|
||||
},
|
||||
"16559": {
|
||||
"cast": 0,
|
||||
@ -476,8 +437,7 @@
|
||||
"fr": "Adepte de la neutralité",
|
||||
"jp": "ニュートラルセクト"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003552_hr1.png",
|
||||
"shield": "250% of HP restored"
|
||||
"icon": "https://xivapi.com/i/003000/003552_hr1.png"
|
||||
},
|
||||
"16889": {
|
||||
"cast": 0,
|
||||
@ -488,8 +448,7 @@
|
||||
"fr": "Tacticien",
|
||||
"jp": "タクティシャン"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003040_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003040_hr1.png"
|
||||
},
|
||||
"24291": {
|
||||
"cast": 0,
|
||||
@ -500,8 +459,7 @@
|
||||
"fr": "Diagnosis eucrasique",
|
||||
"jp": "エウクラシア・ディアグノシス"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003659_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003659_hr1.png"
|
||||
},
|
||||
"24292": {
|
||||
"cast": 0,
|
||||
@ -512,8 +470,7 @@
|
||||
"fr": "Prognosis eucrasique",
|
||||
"jp": "エウクラシア・プログノシス"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003660_hr1.png",
|
||||
"shield": "320% of HP restored"
|
||||
"icon": "https://xivapi.com/i/003000/003660_hr1.png"
|
||||
},
|
||||
"24298": {
|
||||
"cast": 0,
|
||||
@ -524,8 +481,7 @@
|
||||
"fr": "Kerachole",
|
||||
"jp": "ケーラコレ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003666_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003666_hr1.png"
|
||||
},
|
||||
"24305": {
|
||||
"cast": 0,
|
||||
@ -536,8 +492,7 @@
|
||||
"fr": "Haima",
|
||||
"jp": "ハイマ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003673_hr1.png",
|
||||
"shield": "300 potency"
|
||||
"icon": "https://xivapi.com/i/003000/003673_hr1.png"
|
||||
},
|
||||
"24310": {
|
||||
"cast": 0,
|
||||
@ -548,8 +503,7 @@
|
||||
"fr": "Holos",
|
||||
"jp": "ホーリズム"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003678_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003678_hr1.png"
|
||||
},
|
||||
"24311": {
|
||||
"cast": 0,
|
||||
@ -560,8 +514,7 @@
|
||||
"fr": "Panhaima",
|
||||
"jp": "パンハイマ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003679_hr1.png",
|
||||
"shield": "200 potency"
|
||||
"icon": "https://xivapi.com/i/003000/003679_hr1.png"
|
||||
},
|
||||
"24404": {
|
||||
"cast": 0,
|
||||
@ -572,8 +525,7 @@
|
||||
"fr": "Blason arcanique",
|
||||
"jp": "アルケインクレスト"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003632_hr1.png",
|
||||
"shield": "10% max HP"
|
||||
"icon": "https://xivapi.com/i/003000/003632_hr1.png"
|
||||
},
|
||||
"25746": {
|
||||
"cast": 0,
|
||||
@ -584,8 +536,7 @@
|
||||
"fr": "Schiltron sacré",
|
||||
"jp": "ホーリーシェルトロン"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002950_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002950_hr1.png"
|
||||
},
|
||||
"25751": {
|
||||
"cast": 0,
|
||||
@ -596,8 +547,7 @@
|
||||
"fr": "Intuition fougueuse",
|
||||
"jp": "原初の血気"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002569_hr1.png",
|
||||
"shield": "400 potency"
|
||||
"icon": "https://xivapi.com/i/002000/002569_hr1.png"
|
||||
},
|
||||
"25754": {
|
||||
"cast": 0,
|
||||
@ -608,8 +558,7 @@
|
||||
"fr": "Oblation",
|
||||
"jp": "オブレーション"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003089_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003089_hr1.png"
|
||||
},
|
||||
"25758": {
|
||||
"cast": 0,
|
||||
@ -620,8 +569,7 @@
|
||||
"fr": "Cœur de corindon",
|
||||
"jp": "ハート・オブ・コランダム"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003430_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003430_hr1.png"
|
||||
},
|
||||
"25789": {
|
||||
"cast": 0,
|
||||
@ -632,8 +580,7 @@
|
||||
"fr": "Final improvisé",
|
||||
"jp": "インプロビゼーション・フィニッシュ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003479_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003479_hr1.png"
|
||||
},
|
||||
"25799": {
|
||||
"cast": 0,
|
||||
@ -644,8 +591,7 @@
|
||||
"fr": "Égide rayonnante",
|
||||
"jp": "守りの光"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002750_hr1.png",
|
||||
"shield": "20% max HP"
|
||||
"icon": "https://xivapi.com/i/002000/002750_hr1.png"
|
||||
},
|
||||
"25857": {
|
||||
"cast": 0,
|
||||
@ -656,8 +602,7 @@
|
||||
"fr": "Barrière anti-magie",
|
||||
"jp": "バマジク"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003237_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003237_hr1.png"
|
||||
},
|
||||
"25868": {
|
||||
"cast": 0,
|
||||
@ -668,8 +613,7 @@
|
||||
"fr": "Thèse fluidique",
|
||||
"jp": "疾風怒濤の計"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002878_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002878_hr1.png"
|
||||
},
|
||||
"34685": {
|
||||
"cast": 0,
|
||||
@ -680,8 +624,7 @@
|
||||
"fr": "Enduit a tempera",
|
||||
"jp": "テンペラコート"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003835_hr1.png",
|
||||
"shield": "20% max HP"
|
||||
"icon": "https://xivapi.com/i/003000/003835_hr1.png"
|
||||
},
|
||||
"34686": {
|
||||
"cast": 0,
|
||||
@ -692,8 +635,7 @@
|
||||
"fr": "Tempera grassa",
|
||||
"jp": "テンペラグラッサ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003836_hr1.png",
|
||||
"shield": "10% max HP"
|
||||
"icon": "https://xivapi.com/i/003000/003836_hr1.png"
|
||||
},
|
||||
"36920": {
|
||||
"cast": 0,
|
||||
@ -704,8 +646,7 @@
|
||||
"fr": "Garde extrême",
|
||||
"jp": "エクストリームガード"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002524_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002524_hr1.png"
|
||||
},
|
||||
"36923": {
|
||||
"cast": 0,
|
||||
@ -716,8 +657,7 @@
|
||||
"fr": "Damnation",
|
||||
"jp": "ダムネーション"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002573_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/002000/002573_hr1.png"
|
||||
},
|
||||
"36927": {
|
||||
"cast": 0,
|
||||
@ -728,8 +668,7 @@
|
||||
"fr": "Vigile ténébreux",
|
||||
"jp": "シャドウヴィジル"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003094_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003094_hr1.png"
|
||||
},
|
||||
"36935": {
|
||||
"cast": 0,
|
||||
@ -740,8 +679,7 @@
|
||||
"fr": "Grande nébuleuse",
|
||||
"jp": "グレートネビュラ"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003435_hr1.png",
|
||||
"shield": null
|
||||
"icon": "https://xivapi.com/i/003000/003435_hr1.png"
|
||||
},
|
||||
"37011": {
|
||||
"cast": 0,
|
||||
@ -752,8 +690,7 @@
|
||||
"fr": "Caresse divine",
|
||||
"jp": "ディヴァインカレス"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/002000/002128_hr1.png",
|
||||
"shield": "400 potency"
|
||||
"icon": "https://xivapi.com/i/002000/002128_hr1.png"
|
||||
},
|
||||
"37025": {
|
||||
"cast": 0,
|
||||
@ -764,8 +701,7 @@
|
||||
"fr": "La Tour",
|
||||
"jp": "ビエルゴの塔"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003115_hr1.png",
|
||||
"shield": "400 potency"
|
||||
"icon": "https://xivapi.com/i/003000/003115_hr1.png"
|
||||
},
|
||||
"37034": {
|
||||
"cast": 0,
|
||||
@ -776,7 +712,6 @@
|
||||
"fr": "Prognosis eucrasique II",
|
||||
"jp": "エウクラシア・プログノシスII"
|
||||
},
|
||||
"icon": "https://xivapi.com/i/003000/003689_hr1.png",
|
||||
"shield": "360% of HP restored"
|
||||
"icon": "https://xivapi.com/i/003000/003689_hr1.png"
|
||||
}
|
||||
}
|
||||
|
||||
@ -69,7 +69,6 @@
|
||||
{ name: 'Camouflage', buffType: 'buff', extraAbilityGameID: 16140, duration: 20 },
|
||||
{ name: 'Heart of Stone', buffType: 'buff', extraAbilityGameID: 16161, duration: 7 },
|
||||
{ name: 'Heart of Corundum', buffType: 'buff', extraAbilityGameID: 25758, duration: 8 },
|
||||
{ name: 'Clarity of Corundum', buffType: 'buff', extraAbilityGameID: 25758, duration: 4 }, // Proc von HoC, geht auf beliebiges Partymitglied
|
||||
{ name: 'Reprisal', buffType: 'debuff' },
|
||||
],
|
||||
'WHM': [
|
||||
@ -157,7 +156,7 @@
|
||||
'Oblation': 'DRK',
|
||||
'Heart of Light': 'GNB', 'Superbolide': 'GNB', 'Nebula': 'GNB',
|
||||
'Great Nebula': 'GNB', 'Camouflage': 'GNB', 'Heart of Stone': 'GNB',
|
||||
'Heart of Corundum': 'GNB', 'Clarity of Corundum': 'GNB',
|
||||
'Heart of Corundum': 'GNB',
|
||||
'Temperance': 'WHM', 'Divine Benison': 'WHM', 'Divine Caress': 'WHM',
|
||||
'Sacred Soil': 'SCH', 'Expedient': 'SCH', 'Fey Illumination': 'SCH',
|
||||
'Galvanize': 'SCH', 'Seraphic Veil': 'SCH', 'Catalyze': 'SCH',
|
||||
@ -220,9 +219,6 @@
|
||||
'Tempera Coat': 'assets/icons/mitigation/tempera-coat.png',
|
||||
'Tempera Grassa': 'assets/icons/mitigation/tempera-grassa.png',
|
||||
'Improvised Finish': 'assets/icons/mitigation/improvised-finish.png',
|
||||
'Heart of Corundum': 'assets/icons/mitigation/heart-of-corundum.png',
|
||||
'Clarity of Corundum': 'assets/icons/mitigation/clarity-of-corundum.png',
|
||||
'Heart of Stone': 'assets/icons/mitigation/heart-of-stone.png',
|
||||
};
|
||||
|
||||
const ABILITY_DR = {
|
||||
@ -243,29 +239,6 @@
|
||||
'Reprisal': 0.10,
|
||||
'Feint': 0.05,
|
||||
'Addle': 0.10,
|
||||
'Rampart': 0.20,
|
||||
'Hallowed Ground': 1.00,
|
||||
'Sentinel': 0.30,
|
||||
'Guardian': 0.40,
|
||||
'Holy Sheltron': 0.15,
|
||||
'Intervention': 0.10,
|
||||
'Vengeance': 0.30,
|
||||
'Damnation': 0.40,
|
||||
'Raw Intuition': 0.10,
|
||||
'Bloodwhetting': 0.10,
|
||||
'Shadow Wall': 0.30,
|
||||
'Shadowed Vigil': 0.40,
|
||||
'Dark Mind': 0.20,
|
||||
'Oblation': 0.10,
|
||||
'Superbolide': 1.00,
|
||||
'Nebula': 0.30,
|
||||
'Great Nebula': 0.40,
|
||||
'Camouflage': 0.10,
|
||||
'Heart of Stone': 0.15,
|
||||
'Heart of Corundum': 0.15,
|
||||
'Clarity of Corundum': 0.15,
|
||||
'Riddle of Earth': 0.20,
|
||||
'Third Eye': 0.10,
|
||||
};
|
||||
|
||||
const ABILITY_JOBS = {};
|
||||
|
||||
@ -150,21 +150,6 @@ function abilityIcon(ability) {
|
||||
return MITIG_ICONS[ability] ?? actionMetaByName[ability]?.icon ?? '';
|
||||
}
|
||||
|
||||
function abilityShieldText(ability) {
|
||||
return actionMetaByName[ability]?.shield ?? '';
|
||||
}
|
||||
|
||||
function abilityEffectTooltip(ability, buffType, plan = null) {
|
||||
const lines = [localizedAbilityName(ability, plan)];
|
||||
const dr = ABILITY_DR[ability] ?? 0;
|
||||
const shield = abilityShieldText(ability);
|
||||
if (dr > 0) lines.push(`Mitigation: ${Math.round(dr * 100)}%`);
|
||||
if (shield) lines.push(`Shield: ${shield}`);
|
||||
else if (buffType === 'shield') lines.push('Shield');
|
||||
if (dr <= 0 && !shield && buffType !== 'shield') lines.push('No direct damage reduction');
|
||||
return lines.join('\n');
|
||||
}
|
||||
|
||||
async function ensureActionMetaLoaded() {
|
||||
if (actionMetaPromise) return actionMetaPromise;
|
||||
actionMetaPromise = (async () => {
|
||||
@ -194,7 +179,6 @@ async function ensureActionMetaLoaded() {
|
||||
jp: action.Name_ja ?? '',
|
||||
},
|
||||
icon: compact?.[id]?.icon ?? null,
|
||||
shield: compact?.[id]?.shield ?? '',
|
||||
cast: (parseInt(compact?.[id]?.cast ?? action.Cast100ms ?? 0, 10) || 0) / 10,
|
||||
recast: (parseInt(compact?.[id]?.recast ?? action.Recast100ms ?? 0, 10) || 0) / 10,
|
||||
duration: durations.find(Number.isFinite) ?? 15,
|
||||
@ -209,11 +193,10 @@ async function ensureActionMetaLoaded() {
|
||||
name: byId[id]?.name ?? names.en ?? '',
|
||||
names: { ...(byId[id]?.names ?? {}), ...names },
|
||||
icon: byId[id]?.icon ?? action.icon ?? '',
|
||||
shield: byId[id]?.shield ?? action.shield ?? '',
|
||||
cast: (parseInt(action.cast ?? 0, 10) || 0) / 10,
|
||||
recast: (parseInt(action.recast ?? 0, 10) || 0) / 10,
|
||||
};
|
||||
if (names.en) byName[names.en] = byId[id];
|
||||
if (names.en && !byName[names.en]) byName[names.en] = byId[id];
|
||||
}
|
||||
actionMetaById = byId;
|
||||
actionMetaByName = byName;
|
||||
@ -493,40 +476,10 @@ function avgNonTankMaxHp(plan) {
|
||||
return Math.round(hps.reduce((s, v) => s + v, 0) / hps.length);
|
||||
}
|
||||
|
||||
function avgTankMaxHp(plan) {
|
||||
const roster = plan.playerRoster ?? [];
|
||||
const jobComp = plan.jobComposition ?? [];
|
||||
const hps = jobComp
|
||||
.map((job, i) => ({ job, maxHp: roster[i]?.maxHp ?? 0 }))
|
||||
.filter(p => p.job && JOB_ROLE[p.job] === 'tank' && p.maxHp > 0)
|
||||
.map(p => p.maxHp);
|
||||
if (!hps.length) return 0;
|
||||
// Tankbuster trifft einen Tank → Durchschnitt über alle gefundenen Tanks
|
||||
// (1 Tank → sein MaxHP direkt; 2 Tanks → (hp1 + hp2) / 2)
|
||||
return Math.round(hps.reduce((s, v) => s + v, 0) / hps.length);
|
||||
}
|
||||
|
||||
// Ermittelt den maxHP-Wert direkt aus dem aoe_event (für präzise Tankbuster-Anzeige)
|
||||
function tankMaxHpFromEvent(ev) {
|
||||
if (!ev?.isHeavyTankbuster) return 0;
|
||||
const tankTargets = (ev.targets ?? []).filter(t => t.role === 'tank' && (t.maxHp ?? 0) > 0);
|
||||
if (tankTargets.length === 1) return tankTargets[0].maxHp;
|
||||
if (tankTargets.length > 1) {
|
||||
// Mehrere Tanks gleichzeitig → Durchschnitt
|
||||
return Math.round(tankTargets.reduce((s, t) => s + t.maxHp, 0) / tankTargets.length);
|
||||
}
|
||||
// Fallback: erstes Target mit maxHp (z.B. wenn Role nicht gesetzt)
|
||||
const any = (ev.targets ?? []).find(t => (t.maxHp ?? 0) > 0);
|
||||
return any?.maxHp ?? 0;
|
||||
}
|
||||
|
||||
function simulateDrMultiplier(mechanic, assignments = mechanic.assignments ?? []) {
|
||||
const isTankbuster = !!mechanic.isHeavyTankbuster;
|
||||
let mult = 1;
|
||||
for (const a of assignments) {
|
||||
if (a.buffType === 'shield') continue;
|
||||
// Persönliche Mitigation nur bei Tankbustern einrechnen
|
||||
if (!isTankbuster && TIMELINE_PERSONAL_ABILITIES.has(a.ability)) continue;
|
||||
mult *= (1 - (ABILITY_DR[a.ability] ?? 0));
|
||||
}
|
||||
return mult;
|
||||
@ -540,13 +493,6 @@ function plannedAssignmentsForMechanic(plan, targetMechanic) {
|
||||
for (const entry of canonicalAssignmentActivations(plan, { dedupeKey: canonicalMechanicKey })) {
|
||||
if (targetTime < entry.start - tolerance || targetTime > entry.end + tolerance) continue;
|
||||
|
||||
// Persönliche Mitigation zeigt nur auf der Mechanik, der sie direkt zugewiesen ist
|
||||
// (verhindert dass DRK-Cooldowns auf GNB-Tankbuster erscheinen und umgekehrt)
|
||||
if (TIMELINE_PERSONAL_ABILITIES.has(entry.assignment.ability)
|
||||
&& entry.mechanic.id !== targetMechanic.id) {
|
||||
continue;
|
||||
}
|
||||
|
||||
result.push({
|
||||
...entry.assignment,
|
||||
sourceMechanicId: entry.mechanic.id,
|
||||
@ -572,14 +518,9 @@ function renderMechanicListHtml(plan) {
|
||||
}
|
||||
|
||||
const activeJobSet = new Set(plan.jobComposition.filter(j => j));
|
||||
const nonTankAvgHp = avgNonTankMaxHp(plan);
|
||||
const tankAvgHp = avgTankMaxHp(plan);
|
||||
const avgHp = avgNonTankMaxHp(plan);
|
||||
|
||||
return mechanics.map(m => {
|
||||
// Tankbuster: gespeicherter maxHP des getroffenen Tanks hat Vorrang (präziser als Roster-Durchschnitt)
|
||||
const avgHp = m.isHeavyTankbuster
|
||||
? ((m.tankMaxHp ?? 0) > 0 ? m.tankMaxHp : tankAvgHp)
|
||||
: nonTankAvgHp;
|
||||
const planned = plannedAssignmentsForMechanic(plan, m);
|
||||
const sorted = sortedAssignments(planned);
|
||||
const assignHtml = sorted.length === 0
|
||||
@ -630,7 +571,7 @@ function renderMechanicListHtml(plan) {
|
||||
: ''
|
||||
}
|
||||
${hasDrAssign || hasShield ? `<div class="mechanic-dmg mechanic-mitig-row">
|
||||
${hasDrAssign ? `<span class="mechanic-mitig-val${drOnlyCls ? ' ' + drOnlyCls : ''}">→ ${fmtNumber(drOnly)}</span> nach DR` : ''}
|
||||
${hasDrAssign ? `<span class="mechanic-mitig-val${drOnlyCls ? ' ' + drOnlyCls : ''}">→ ${fmtNumber(drOnly)}</span> mitigiert` : ''}
|
||||
${hasShield ? `<span class="mechanic-mitig-shield${fullCls ? ' ' + fullCls : ''}">Mitigation mit Schild ${fmtNumber(mitigFull)}</span>` : ''}
|
||||
</div>` : ''}
|
||||
<div class="mechanic-assignments">${assignHtml}</div>
|
||||
@ -753,7 +694,6 @@ const TIMELINE_PERSONAL_ABILITIES = new Set([
|
||||
'Camouflage',
|
||||
'Heart of Stone',
|
||||
'Heart of Corundum',
|
||||
'Clarity of Corundum',
|
||||
'Divine Benison',
|
||||
'Intersection',
|
||||
'the Spire',
|
||||
@ -1175,13 +1115,12 @@ function renderTimelineHtml(plan) {
|
||||
}
|
||||
const icon = abilityIcon(row.ability);
|
||||
const abilityDisplayName = localizedAbilityName(row.ability, plan);
|
||||
const abilityTooltip = abilityEffectTooltip(row.ability, row.buffType, plan);
|
||||
const jobStartCls = row.firstForJob ? ' timeline-player-row--job-start' : '';
|
||||
return `
|
||||
<div class="timeline-row timeline-player-row${jobStartCls}" data-row-idx="${row.idx}" data-job="${escHtml(row.job)}" data-ability="${escHtml(row.ability)}">
|
||||
<div class="timeline-row-label">
|
||||
<span class="timeline-job role-${escHtml(row.role)}">${escHtml(row.job)}</span>
|
||||
<span class="timeline-row-ability" title="${escHtml(abilityTooltip)}">
|
||||
<span class="timeline-row-ability">
|
||||
${icon ? `<img src="${escHtml(icon)}" alt="" class="timeline-row-ability-icon">` : ''}
|
||||
<span class="timeline-row-ability-name">${escHtml(abilityDisplayName)}</span>
|
||||
</span>
|
||||
@ -2310,7 +2249,6 @@ function aoeEventsToMechanics(aoeEvents, fightStart, phases, players, withMitiga
|
||||
phase: phase?.name ?? '',
|
||||
unmitigatedDamage: avgUnmit,
|
||||
isHeavyTankbuster: !!ev.isHeavyTankbuster,
|
||||
tankMaxHp: tankMaxHpFromEvent(ev),
|
||||
notes: '',
|
||||
assignments,
|
||||
};
|
||||
@ -2431,10 +2369,9 @@ async function refreshPlanLanguage(planId) {
|
||||
}));
|
||||
return {
|
||||
...mechanic,
|
||||
name: match.abilityName ?? mechanic.name,
|
||||
abilityId: match.abilityId ?? mechanic.abilityId,
|
||||
name: match.abilityName ?? mechanic.name,
|
||||
abilityId: match.abilityId ?? mechanic.abilityId,
|
||||
isHeavyTankbuster: mechanic.mechanicTypeManual ? !!mechanic.isHeavyTankbuster : !!match.isHeavyTankbuster,
|
||||
tankMaxHp: mechanic.mechanicTypeManual ? (mechanic.tankMaxHp ?? 0) : tankMaxHpFromEvent(match),
|
||||
assignments,
|
||||
};
|
||||
});
|
||||
@ -2525,12 +2462,11 @@ function renderAbilityModalContent() {
|
||||
const icon = abilityIcon(ab.name);
|
||||
const assignedName = assigned ? assignmentAbilityName(assigned, plan) : '';
|
||||
const label = assignedName || localizedAbilityName(ab.name, plan);
|
||||
const effectTitle = [title, abilityEffectTooltip(ab.name, ab.buffType, plan)].filter(Boolean).join('\n\n');
|
||||
return `<button class="ability-chip ${cls}${activeClass}${otherClass}"
|
||||
data-ability="${escHtml(ab.name)}"
|
||||
data-job="${escHtml(job)}"
|
||||
data-buff-type="${escHtml(ab.buffType)}"
|
||||
title="${escHtml(effectTitle)}"
|
||||
${title ? `title="${title}"` : ''}
|
||||
>${icon ? `<img class="badge-icon" src="${escHtml(icon)}" alt="">` : ''}${escHtml(label)}</button>`;
|
||||
}).join('');
|
||||
|
||||
|
||||
@ -324,42 +324,6 @@ function action_icon_url(array $action): ?string
|
||||
return 'https://xivapi.com/i/' . $matches[1] . '/' . $matches[2] . '.png';
|
||||
}
|
||||
|
||||
function plain_action_text(?string $text): string
|
||||
{
|
||||
if ($text === null || $text === '') {
|
||||
return '';
|
||||
}
|
||||
|
||||
$text = html_entity_decode(strip_tags($text), ENT_QUOTES | ENT_HTML5, 'UTF-8');
|
||||
return trim((string)preg_replace('/\s+/u', ' ', $text));
|
||||
}
|
||||
|
||||
function action_shield_text(array $action): ?string
|
||||
{
|
||||
$description = plain_action_text(action_text_field($action, 'Description_en'));
|
||||
if ($description === '' || !preg_match('/barrier|absorbs|absorbed|nullif(?:y|ies)/i', $description)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (preg_match('/(?:absorbs|absorb|nullifies|nullify)[^.]*?(?:totaling|up to)?\s*(\d+)%\s*(?:of\s*)?(?:your\s+|target\'s\s+)?maximum HP/i', $description, $m)) {
|
||||
return $m[1] . '% max HP';
|
||||
}
|
||||
|
||||
if (preg_match('/barrier[^.]*?(?:absorbs|absorb|nullifies|nullify)[^.]*?(\d+)%\s*(?:of\s*)?(?:your\s+|target\'s\s+)?maximum HP/i', $description, $m)) {
|
||||
return $m[1] . '% max HP';
|
||||
}
|
||||
|
||||
if (preg_match('/barrier[^.]*?(\d+)%\s+of\s+the\s+amount\s+of\s+HP\s+restored/i', $description, $m)) {
|
||||
return $m[1] . '% of HP restored';
|
||||
}
|
||||
|
||||
if (preg_match('/barrier[^.]*?(?:heal of|Cure Potency:)\s*(\d+)\s*potency/i', $description, $m)) {
|
||||
return $m[1] . ' potency';
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
$plannerAbilityNames = read_planner_ability_names($plannerDataSource);
|
||||
$actionIds = read_mitigation_action_ids($mitigationSource, $plannerAbilityNames);
|
||||
$wanted = array_fill_keys(array_map('strval', $actionIds), true);
|
||||
@ -389,7 +353,6 @@ foreach ($wanted as $id => $_) {
|
||||
'jp' => action_text_field($action, 'Name_ja'),
|
||||
],
|
||||
'icon' => action_icon_url($action),
|
||||
'shield' => action_shield_text($action),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user