Browse Source

多次固伤的次数合并优化

tags/v19.0
枫谷剑仙 4 years ago
parent
commit
755a2fbbef
2 changed files with 5 additions and 2 deletions
  1. +1
    -0
      script-json_data.js
  2. +4
    -2
      script-skill-parser.js

+ 1
- 0
script-json_data.js View File

@@ -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


+ 4
- 2
script-skill-parser.js View File

@@ -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)
{


Loading…
Cancel
Save