diff --git a/script-json_data.js b/script-json_data.js index 566793fd..abbf8048 100644 --- a/script-json_data.js +++ b/script-json_data.js @@ -43,6 +43,7 @@ let localTranslating = { active_turns: tp`${'actionSkill'},效果 ${'turns'} 回合`, //turns, actionSkill random_skills: tp`随机发动以下技能:${'skills'}`, //skills damage_enemy: tp`对${'target'}造成${'damage'}的${'attr'}伤害${'times'}${'totalDamage'}`, //target, damage, attr + damage_enemy_times: tp`×${'times'}`, damage_enemy_count: tp`(共${'damage'})`, vampire: tp`对${'target'}造成${'damage'}的${'attr'}伤害,并${'icon'}回复伤害值${'heal'}的HP`, //target, damage, attr delay: tp`${'icon'}延迟敌人的攻击`, //icon diff --git a/script-skill-parser.js b/script-skill-parser.js index f0e5be9f..c762cdf9 100644 --- a/script-skill-parser.js +++ b/script-skill-parser.js @@ -1423,7 +1423,9 @@ function renderSkill(skill, option = {}) }; if (times) { - dict.times = renderValue(v.constant(times), {unit: tsp.unit.times}); + dict.times = tsp.skill.damage_enemy_times({ + times: renderValue(v.constant(times), {unit: tsp.unit.times}) + }); dict.totalDamage = tsp.skill.damage_enemy_count({ damage: renderValue(v.constant(damage.value * times), {unit: tsp.unit.point}) }); @@ -2130,7 +2132,7 @@ function renderPowerUp(powerUp) { orbs: renderOrbs(attrs, {affix: true}), min: min, stats: renderStats(1, baseAtk, baseRcv), - in_once: matchAll && tsp.word.in_once() || null, + in_once: matchAll && attrs.length>1 && tsp.word.in_once() || null, } if (max !== min) {