Browse Source

调整神话装备爆率

v1.0
许孟阳 1 week ago
parent
commit
b5a6b99abf
  1. 4
      src/config/beings.ts
  2. 2
      src/views/dungeon/dungeonMap.vue

4
src/config/beings.ts

@ -92,7 +92,7 @@ export class Monster extends Attribute {
this.difficulty = difficulty; this.difficulty = difficulty;
this.df = base_attr_factor[this.difficulty]; this.df = base_attr_factor[this.difficulty];
this.ef = extra_factor[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.callAtk(2.5);
this.callHp(17); this.callHp(17);
this.callCoins(11); this.callCoins(11);
@ -133,7 +133,7 @@ export class BossMonster extends Monster {
const rf = rate_factor[difficulty]; 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]; 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); 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) { if (uniqueRate + colorfulRate > 1) {
uniqueRate = 1 - colorfulRate; uniqueRate = 1 - colorfulRate;
} }

2
src/views/dungeon/dungeonMap.vue

@ -94,7 +94,7 @@ const refreshDungeons = () => {
const refreshSecret = () => { const refreshSecret = () => {
if (state.playerAttribute.lv >= 100) { if (state.playerAttribute.lv >= 100) {
xiaomi.value = new Dungeon(100, 'xiaomi'); xiaomi.value = new Dungeon(100, 'xiaomi', 1);
xiaomi.value.right = '4%'; xiaomi.value.right = '4%';
xiaomi.value.top = '43%'; xiaomi.value.top = '43%';
dami.value = new Dungeon(100, 'dami', layer.value); dami.value = new Dungeon(100, 'dami', layer.value);

Loading…
Cancel
Save