继续完善定点查看

This commit is contained in:
unanmed 2023-01-06 22:48:23 +08:00
parent 77d051dd27
commit c4e746a211

View File

@ -55,6 +55,10 @@ export function getDetailedEnemy<I extends EnemyIds>(
if (toShowColor.length > 2) { if (toShowColor.length > 2) {
toShowColor = toShowColor.slice(0, 2).concat(['#fff']); toShowColor = toShowColor.slice(0, 2).concat(['#fff']);
} }
if (toShowSpecial.length === 0) {
toShowSpecial = ['无属性'];
toShowColor = ['#fff'];
}
const damageColor = getDamageColor(enemyInfo.damage); const damageColor = getDamageColor(enemyInfo.damage);
const detail: DetailedEnemy<I> = Object.assign(enemyInfo, { const detail: DetailedEnemy<I> = Object.assign(enemyInfo, {
critical: critical[0][0], critical: critical[0][0],