This commit is contained in:
雨下倾听 2025-09-28 10:48:25 +08:00
parent 1df55cd345
commit 585dc614ab

View File

@ -782,13 +782,13 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a =
if (itemId.startsWith("red")) {
hero.atk += GEM
core.drawTip("获得" + core.material.items[itemId].name + ",攻击力提升" + GEM + "点", itemId)
if (flags.MapStatus?.Choose === "Mamushi" && R) core.playSound("宝石")
if (flags.MapStatus?.Choose === "Mamushi" && GEM > 0) core.playSound("宝石")
else if (flags.MapStatus?.Choose !== "Mamushi") core.playSound("宝石")
} else {
hero.def += GEM
core.drawTip("获得" + core.material.items[itemId].name + ",防御力提升" + GEM + "点", itemId)
if (flags.MapStatus?.Choose === "Mamushi" & GEM > 0) core.playSound("宝石")
if (flags.MapStatus?.Choose === "Mamushi" && GEM > 0) core.playSound("宝石")
else if (flags.MapStatus?.Choose !== "Mamushi") core.playSound("宝石")
}
}