【拥嫡】cost化

This commit is contained in:
157 2024-06-01 17:18:40 +08:00
parent 2344d6e863
commit 83ad0fb58e
1 changed files with 33 additions and 36 deletions

View File

@ -21120,49 +21120,46 @@ const skills = {
animationColor: "thunder", animationColor: "thunder",
skillAnimation: "legend", skillAnimation: "legend",
mark: true, mark: true,
direct: true, async cost(event, trigger, player) {
content: function () { event.result = await player
"step 0"; .chooseTarget(
player get.prompt2("yongdi"),
.chooseTarget(get.prompt2("yongdi"), function (card, player, target) { (card, player, target) => {
return (target.hasSex("male") || target.name == "key_yuri") && target != player; if (player === target) return false;
}) return target.hasSex("male") || target.name == "key_yuri";
.set("ai", function (target) { }
)
.set("ai", target => {
if (!_status.event.goon) return 0; if (!_status.event.goon) return 0;
var player = _status.event.player; let player = _status.event.player;
var att = get.attitude(player, target); let att = get.attitude(player, target);
if (att <= 1) return 0; if (att <= 1) return 0;
var mode = get.mode(); let mode = get.mode();
if (mode == "identity" || (mode == "versus" && (_status.mode == "four" || _status.mode == "guandu"))) { if (mode == "identity" || (mode == "versus" && (_status.mode == "four" || _status.mode == "guandu"))) {
if (target.name && lib.character[target.name]) { if (target.getStockSkills(true, true).some(i => {
for (var i = 0; i < lib.character[target.name][3].length; i++) { if (target.hasSkill(i)) return false;
if (lib.skill[lib.character[target.name][3][i]].zhuSkill) { let info = get.info(i);
return att * 2; return info && info.zhuSkill;
} })) return att * 2;
}
}
} }
return att; return att;
}) })
.set("goon", !player.hasUnknown()); .set("goon", !player.hasUnknown())
"step 1"; .forResult();
if (result.bool) { },
var target = result.targets[0]; async content(event, trigger, player) {
player.logSkill("yongdi", target);
player.awakenSkill("yongdi"); player.awakenSkill("yongdi");
let target = event.targets[0], mode = get.mode();
if (mode !== "identity" || player.identity !== "nei") player.addExpose(0.25);
target.gainMaxHp(); target.gainMaxHp();
target.recover(); target.recover();
var skills = target.getStockSkills(true, true).filter(skill => { let skills = target.getStockSkills(true, true).filter(skill => {
if (target.hasSkill(skill)) return false; if (target.hasSkill(skill)) return false;
var info = get.info(skill); let info = get.info(skill);
return info && info.zhuSkill; return info && info.zhuSkill;
}); });
if (skills.length) { if (skills.length) target.addSkills(skills);
target.addSkills(skills);
}
}
}, },
ai: { expose: 0.2 },
}, },
regushe: { regushe: {
audio: "gushe", audio: "gushe",