diff --git a/public/project/enemys.js b/public/project/enemys.js index 4ee75dd..0d9c8c6 100644 --- a/public/project/enemys.js +++ b/public/project/enemys.js @@ -15,7 +15,7 @@ var enemys_fcae963b_31c9_42b4_b48c_bb48d09f3f80 = "rock": {"name":"石头人","hp":50,"atk":50,"def":0,"money":3,"exp":0,"point":0,"special":[3]}, "bluePriest": {"name":"初级法师","hp":100,"atk":120,"def":0,"money":3,"exp":0,"point":1,"special":[9]}, "redPriest": {"name":"高级法师","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, - "brownWizard": {"name":"初级巫师","hp":100,"atk":120,"def":0,"money":16,"exp":0,"point":0,"special":[15],"value":100,"range":2}, + "brownWizard": {"name":"初级巫师","hp":100,"atk":120,"def":0,"money":16,"exp":0,"point":0,"special":[15],"value":100,"range":2,"zone":100}, "redWizard": {"name":"高级巫师","hp":1000,"atk":1200,"def":0,"money":160,"exp":0,"point":0,"special":[15,28],"value":200,"zoneSquare":true,"specialHalo":[6,16],"n":9,"haloRange":2,"haloSquare":true,"zone":200}, "swordsman": {"name":"双手剑士","hp":100,"atk":120,"def":0,"money":6,"exp":0,"point":0,"special":[4]}, "soldier": {"name":"冥战士","hp":0,"atk":0,"def":0,"money":0,"exp":0,"point":0,"special":[]}, diff --git a/public/project/plugins.js b/public/project/plugins.js index ded2ac0..6b91b11 100644 --- a/public/project/plugins.js +++ b/public/project/plugins.js @@ -353,7 +353,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = { { code: 6, name: enemy => `${enemy.n ?? 4}连击`, - desc: enemy => `怪物每回合攻击${enemy.n}次`, + desc: enemy => `怪物每回合攻击${enemy.n ?? 4}次`, color: '#fe7' }, { @@ -809,7 +809,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = { // 连击 if (special.includes(4)) enemyPerDamage *= 2; if (special.includes(5)) enemyPerDamage *= 3; - if (special.includes(6)) enemyPerDamage *= info.n; + if (special.includes(6)) enemyPerDamage *= info.n ?? 4; // 破甲 if (special.includes(7)) { @@ -1162,7 +1162,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = { const s = enemy.specialHalo; e.special.push(...s); // 如果是自身,就不进行特殊属性数值处理了 - if (enemy === this.info) return; + if (e === this.info) return; // 然后计算特殊属性数值 for (const spec of s) { const toChange = changeable.get(spec); diff --git a/src/plugin/ui/fixed.ts b/src/plugin/ui/fixed.ts index 06ce1e5..a3fef8b 100644 --- a/src/plugin/ui/fixed.ts +++ b/src/plugin/ui/fixed.ts @@ -31,6 +31,8 @@ export function getDetailedEnemy( const special: [string, string, string][] = enemy.info.special.map(vv => { const s = Mota.require('var', 'enemySpecials')[vv]; const info = { ...enemy.enemy, ...enemy.info }; + console.log(info); + return [ fromFunc(s.name, info), fromFunc(s.desc, info),