|
|
|
@ -92,7 +92,7 @@ export class Monster extends Attribute {
@@ -92,7 +92,7 @@ export class Monster extends Attribute {
|
|
|
|
|
this.difficulty = difficulty; |
|
|
|
|
this.df = base_attr_factor[this.difficulty]; |
|
|
|
|
this.ef = extra_factor[difficulty]; |
|
|
|
|
this.lf = ((this.lv + layer) / this.lv) ** 2; |
|
|
|
|
this.lf = ((this.lv + layer - 1) / this.lv) ** 2; |
|
|
|
|
this.callAtk(2.5); |
|
|
|
|
this.callHp(17); |
|
|
|
|
this.callCoins(11); |
|
|
|
@ -133,7 +133,7 @@ export class BossMonster extends Monster {
@@ -133,7 +133,7 @@ export class BossMonster extends Monster {
|
|
|
|
|
const rf = rate_factor[difficulty]; |
|
|
|
|
this.equipRates = [0.25 - 0.05 * rf, 0.55 - 0.1 * rf, 0.15 + 0.1 * rf, 0.05 + 0.05 * rf]; |
|
|
|
|
let uniqueRate = 0.02 * ((rf - 1) * 5 + 1); |
|
|
|
|
const colorfulRate = 0.04 * (rf - 3) * this.lf; |
|
|
|
|
const colorfulRate = 0.02 * (rf - 3) * this.lf; |
|
|
|
|
if (uniqueRate + colorfulRate > 1) { |
|
|
|
|
uniqueRate = 1 - colorfulRate; |
|
|
|
|
} |
|
|
|
|