アイテム補正
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user