This repository has been archived by the owner on Jul 25, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
4 changed files
with
102 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,82 @@ | ||
function nextKey (arr, per) { | ||
const e = Object.keys(arr).filter(item => { | ||
return parseFloat(item) < per | ||
}) | ||
let max = e[0] | ||
e.forEach(element => { | ||
if (parseFloat(element) > parseFloat(max)) { | ||
max = element | ||
} | ||
}) | ||
return max | ||
} | ||
|
||
function lastKey (arr, per) { | ||
const e = Object.keys(arr).filter(item => { | ||
return parseFloat(item) > per | ||
}) | ||
let min = e[0] | ||
e.forEach(element => { | ||
if (parseFloat(element) < parseFloat(min)) { | ||
min = element | ||
} | ||
}) | ||
return min | ||
} | ||
|
||
export default { | ||
/** | ||
* @return {string} | ||
*/ | ||
'Lvl 200 Ultimate Bahamut' (bossData) { | ||
let percent = bossData.hp / bossData.hpmax | ||
if (percent < 0.01) { | ||
return '1% 五彩大炮' | ||
} if (percent < 0.05) { | ||
return '5% 暗aoe 1w5' | ||
} if (percent < 0.15) { | ||
return '15% 大破' | ||
} if (percent < 0.22) { | ||
return '22%特动 水AOE 驱动' | ||
} if (percent < 0.28) { | ||
return '28 触发满豆' | ||
} if (percent < 0.30) { | ||
return '30 驱散' | ||
} if (percent < 0.35) { | ||
return '35特动 四属陨石' | ||
} if (percent < 0.40) { | ||
return '40特动 白字陨石' | ||
} if (percent < 0.45) { | ||
return '45特动 四属陨石' | ||
} if (percent < 0.50) { | ||
return '50特动 白字陨石' | ||
} if (percent < 0.55) { | ||
return '55特动 喷火 最后大伤害 附带石化' | ||
} if (percent < 0.70) { | ||
return '70特动 神光 附加印记' | ||
} if (percent < 0.75) { | ||
return '75特动 5w土伤害' | ||
} if (percent < 0.80) { | ||
return '80 触发满豆' | ||
} if (percent < 0.85) { | ||
return '85特动' | ||
} if (percent < 0.95) { | ||
return '95特动' | ||
|
||
let atks = { | ||
1.0: '', | ||
0.75: '单体攻击 可能会上标记 有标记时下一回合五彩大炮', | ||
0.50: '喷火AOE', | ||
0.3: '不普攻', | ||
0.10: '单体攻击', | ||
0: 'aoe' | ||
} | ||
let nps = { | ||
1.0: '', | ||
0.85: '奥义不明', | ||
0.75: '百分比白字吹风\n喷火 全体多段伤害 最后大伤害 附带灼热 降奥义', | ||
0.5: '神光 光1w AOE', | ||
0.3: 'DPT检查阶段 满豆超越', | ||
0.1: '非OD:水AOE+驱散\n 土AOE+我方降连+超巴三连buff\nOD:大破', | ||
0: '不清楚' | ||
} | ||
let specialActions = { | ||
0.01: '1% 五彩大炮', | ||
0.05: '5% 暗aoe 1w5', | ||
0.15: '15% 大破', | ||
0.22: '22%特动 水AOE 驱动', | ||
0.28: '28 触发满豆', | ||
0.3: '30 驱散', | ||
0.35: '35特动 四属陨石', | ||
0.4: '40特动 白字陨石', | ||
0.45: '45特动 四属陨石', | ||
0.5: '50特动 白字陨石', | ||
0.55: '55特动 喷火 最后大伤害 附带石化', | ||
0.7: '70特动 神光 附加印记', | ||
0.75: '75特动 5w土伤害', | ||
0.8: '80 触发满豆', | ||
0.85: '85 喷火 全体多段伤害 最终大伤害 灼热 降奥义DB', | ||
0.95: '95 1w风伤 高昂', | ||
1.0: '' | ||
} | ||
|
||
const nKey = nextKey(specialActions, percent) | ||
const lKey = lastKey(specialActions, percent) | ||
const aKey = nextKey(atks, percent) | ||
const npKey = nextKey(nps, percent) | ||
|
||
return { | ||
special: { | ||
next: specialActions[nKey], | ||
last: specialActions[lKey] | ||
}, | ||
atk: atks[aKey], | ||
np: nps[npKey] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters