定义全部基础装备

This commit is contained in:
egamerainy1022 2025-01-12 20:11:58 +08:00
parent e9feb88ff4
commit 050c0926a5

View File

@ -13843,6 +13843,19 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
hero.atk = hero.str + hero.agi;
hero.magic = false;
break;
case "twoHandedSword1":
hero.atk = Math.floor(hero.str * 2 + hero.con / 10);
hero.magic = false;
break;
case "wand1":
hero.atk = hero.str + hero.int;
hero.magic = true;
break;
case "knife1":
hero.atk = Math.floor(hero.agi * 1.2);
hero.speed = hero.agi * 2 + hero.int;
hero.magic = false;
break;
}
}
//副手效果
@ -13851,22 +13864,32 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
case "sword1":
hero.atk += hero.agi;
break;
case "knife1":
hero.speed += Math.floor(hero.agi * 0.6);
if (core.getEquip[0] === "knife1") {
hero.atk += Math.floor(hero.agi * 0.6);
}
break;
}
}
//防具效果
if (core.getEquip[2]) {
switch (core.getEquip[2]) {
case "sword1":
case "armor1":
hero.def = hero.con + hero.agi;
hero.hpmax = 2.5 * hero.con;
hero.hpmax = Math.floor(2.5 * hero.con);
break;
case "armor2":
hero.mdef = hero.con + hero.int;
hero.hpmax = hero.con * 2 + hero.int;
break;
}
}
//饰品效果
if (core.getEquip[3]) {
switch (core.getEquip[3]) {
case "sword1":
hero.speed += 0.4 * hero.int + 0.6 * hero.agi;
case "jewel1":
hero.speed += Math.floor(0.4 * hero.int + 0.6 * hero.agi);
break;
}
}
@ -13874,12 +13897,12 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
this.updateStatus = function () {
const hero = core.status.hero;
//默认映射关系
hero.hpmax = hero.str * 50 + hero.con * 50;
hero.atk = hero.str * 0.5 + hero.int * 0.5;
hero.manamax = hero.agi * 0.5 + hero.int * 0.5;
hero.def = hero.con * 0.5 + hero.agi * 0.5;
hero.mdef = hero.con * 0.5 + hero.int * 0.5;
hero.speed = hero.str * 0.5 + hero.agi * 0.5;
hero.hpmax = hero.str * 100 + hero.con * 100;
hero.atk = hero.str + hero.int;
hero.manamax = hero.agi + hero.int;
hero.def = hero.con + hero.agi;
hero.mdef = hero.con + hero.int;
hero.speed = hero.str + hero.agi;
hero.magic = false;
this.statusEquip(); //处理装备效果
for (let v in hero) {