Boss战(新) 战斗过程加入星光机制

This commit is contained in:
Sunumbrella 2025-09-13 20:47:03 +08:00
parent 6f00b46b03
commit c9fdc1fb01

View File

@ -99,7 +99,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
let text
const DoveCreatorJudge = ["53926", "43693", "5196", "17556", "6023", "5578", "45745", "45415"]
const Producer = ["44568", "42271", "51216", "66492"]
const Sponsor = ["61654", "46174", "66630"]
const Sponsor = ["61654", "46174", "66630", "68141"]
if (DoveCreatorJudge.includes(core.getCookie("id"))) text = "鸽窝杯评委" + core.username + "欢迎游玩星趴塔"
else if (Producer.includes(core.getCookie("id"))) text = "诶嘿,制作人" + core.username + ",欢迎回来"
else if (Sponsor.includes(core.getCookie("id"))) text = core.username + ",谢谢你一直以来对星趴塔的支持"
@ -20302,6 +20302,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
this.hero_atk = core.getRealStatus('atk');
this.hero_def = core.getRealStatus('def');
this.hero_money = core.status.hero.money;
this.star = core.flags.star.level;
this.ATKbet = flags.Trident * 3;
this.DEFbet = flags.Trident * 5;
@ -20329,8 +20330,6 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
this.hero_atk += 15 * flags.ratio;
if (flags.Immovable)
this.hero_def += 15 * flags.ratio;
if (core.hasItem("FlashlightS2"))
this.hero_atk += Math.floor(flags.star.level * Math.sqrt(flags.ratio));
if (flags.jasmine) this.hero_def = 0;
if (core.hasItem("RevengeHalberd"))
@ -20387,6 +20386,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
Math.floor(this.hero_money * flags.ratio / (flags.MapStatus?.Map === "魔法学院" ? 1000 : 100)),
1000 * flags.ratio
);
if (core.hasItem("FlashlightS2"))
this.hero_atk_status += Math.floor(flags.star.level * Math.sqrt(flags.ratio));
if (core.hasItem("NormalSight")) this.hero_def_status += this.mon_mark_status * 2;
if (core.hasItem("EagleEyeSight")) this.hero_def_status += Math.floor(this.mon_mark_status * Math.sqrt(flags.ratio * 2));
@ -20572,7 +20573,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
// 特殊效果
if (core.status.hero.name === "梅加斯")
mondamage += Math.floor(core.getRealStatus('atk') * Math.sqrt(flags.ratio) / 5);
if (core.hasItem("StarCoinHammer2") && flags.star.level > 24)
if (core.hasItem("StarCoinHammer2") && flags.star.level > 24 && flags.StarCoinHammer)
this.hero_money = Math.max(this.hero_money - 75 * flags.ratio, 0);
if (this.turn % 5 === 3 && this.enemyId === "Mamushi") {
@ -20688,6 +20689,19 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
this.minATK = this.minDEF = this.maxATK = this.maxDEF = this.hero_atk_status = this.hero_def_status = this.oneTurnDamage = 0;
this.全力攻击 = false;
// 星光锤战斗扣除 money 结算
if (core.hasItem("StarCoinHammer"))
// FlashlightB 星光数增加结算
if (core.hasItem("FlashlightB") && this.turn > 1 && this.turn % 3 === 1) {
core.flags.star.level++;
}
// 星光奖励 money 结算
this.hero_money += this.star * flags.ratio;
if (core.hasItem("VitaminPills")) {
flags.health.count = Math.floor(flags.health.count * 3 / 4);
} else {