アイテム補正

This commit is contained in:
2023-01-29 19:17:55 +09:00
parent 24a1cf5135
commit cf526bb11b
2 changed files with 32 additions and 3 deletions

View File

@@ -20,6 +20,7 @@
let total_min_damage = 0;
let total_max_damage_percentage = 0;
let total_min_damage_percentage = 0;
let item_magnification = 1.0;
function calculate_damage() {
let attacker;
let defender;
@@ -190,6 +191,8 @@
data.minDamage = Math.trunc(data.minDamage * magnification_terastype);
data.maxDamage = Math.trunc(data.maxDamage * magnification);
data.minDamage = Math.trunc(data.minDamage * magnification);
data.maxDamage = Math.trunc(data.maxDamage * item_magnification);
data.minDamage = Math.trunc(data.minDamage * item_magnification);
return data;
}
@@ -250,6 +253,12 @@
bind:group={attack_direction}
/> P2 ->> P1
</td>
<td>
<input
type="text"
bind:value={item_magnification}
/>
</td>
</tr>
<tr>
<td>