Merge pull request #1321 from PZ157/PR-Branch

更换武将牌补充
This commit is contained in:
Spmario233 2024-05-06 21:45:36 +08:00 committed by GitHub
commit dd288220eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 29 additions and 15 deletions

View File

@ -5396,7 +5396,7 @@ const skills = {
unique: true, unique: true,
forceunique: true, forceunique: true,
init(player) { init(player) {
if (player.storage.nscongjun_show) return false; if (player.storage.nscongjun_show || ![player.name1, player.name2].includes("ns_huamulan")) return false;
var change = function (target) { var change = function (target) {
if (target == player) { if (target == player) {
var list; var list;
@ -5427,7 +5427,12 @@ const skills = {
show: { show: {
trigger: { global: "useCard" }, trigger: { global: "useCard" },
filter(event, player) { filter(event, player) {
return player.getEnemies().includes(event.player) && event.card.name == "wuxie" && event.getRand() < 0.1; return (
player.storage.nscongjun_show &&
event.card.name == "wuxie" &&
event.getRand() < 0.1 &&
player.getEnemies().includes(event.player)
);
}, },
direct: true, direct: true,
skillAnimation: true, skillAnimation: true,

View File

@ -630,7 +630,7 @@ game.import("character", function () {
player.turnOver(false); player.turnOver(false);
"step 3"; "step 3";
player.draw(4); player.draw(4);
player.reinit("gjqt_xieyi", "gjqt_chuqi"); player.reinit(get.character(player.name2, 3).includes("humeng") ? player.name2 : player.name1, "gjqt_chuqi");
player.hp = player.maxHp; player.hp = player.maxHp;
"step 4"; "step 4";
if (event.yanjia) { if (event.yanjia) {

View File

@ -2382,7 +2382,7 @@ game.import("character", function () {
trigger: { player: "phaseBefore" }, trigger: { player: "phaseBefore" },
unique: true, unique: true,
skillAnimation: true, skillAnimation: true,
forceunique: true, //forceunique: true,
filter() { filter() {
return game.roundNumber >= 3; return game.roundNumber >= 3;
}, },
@ -2407,7 +2407,7 @@ game.import("character", function () {
}; };
player.awakenSkill("szbianshen"); player.awakenSkill("szbianshen");
"step 1"; "step 1";
player.reinit("hs_shizugui", result.links[0]); player.reinit(get.character(player.name2, 3).includes("szbianshen") ? player.name2 : player.name1, result.links[0]);
player.hp = player.maxHp; player.hp = player.maxHp;
player.update(); player.update();
}, },

View File

@ -12431,6 +12431,7 @@ const skills = {
if (evt.player != event.player) return false; if (evt.player != event.player) return false;
return true; return true;
}, },
usable: 1,
logTarget: "player", logTarget: "player",
check: function (event, player) { check: function (event, player) {
var target = event.player; var target = event.player;

View File

@ -7569,6 +7569,7 @@ const skills = {
trigger: { player: "phaseZhunbeiBegin" }, trigger: { player: "phaseZhunbeiBegin" },
limited: true, limited: true,
unique: true, unique: true,
forceunique: true,
charlotte: true, charlotte: true,
skillAnimation: true, skillAnimation: true,
animationColor: "water", animationColor: "water",
@ -7576,6 +7577,7 @@ const skills = {
return player.isDamaged(); return player.isDamaged();
}, },
check(event, player) { check(event, player) {
if (![player.name1, player.name2].includes("key_mio")) return false;
return player.hp <= 1 || player.getDamagedHp() > 1; return player.hp <= 1 || player.getDamagedHp() > 1;
}, },
content() { content() {
@ -7644,12 +7646,14 @@ const skills = {
limited: true, limited: true,
charlotte: true, charlotte: true,
unique: true, unique: true,
forceunique: true,
skillAnimation: true, skillAnimation: true,
animationColor: "water", animationColor: "water",
filter(event, player) { filter(event, player) {
return player.isDamaged(); return player.isDamaged();
}, },
check(event, player) { check(event, player) {
if (![player.name1, player.name2].includes("key_midori")) return false;
return player.hp <= 1 || player.getDamagedHp() > 1; return player.hp <= 1 || player.getDamagedHp() > 1;
}, },
content() { content() {

View File

@ -19319,7 +19319,6 @@ const skills = {
limited: true, limited: true,
skillAnimation: true, skillAnimation: true,
animationColor: "orange", animationColor: "orange",
forceunique: true,
filter: function (event, player) { filter: function (event, player) {
return player.storage.fanghun2 > 0; return player.storage.fanghun2 > 0;
}, },
@ -19377,7 +19376,7 @@ const skills = {
player.awakenSkill("fuhan"); player.awakenSkill("fuhan");
"step 1"; "step 1";
event.num = Math.min(event.num, 8); event.num = Math.min(event.num, 8);
player.reinitCharacter("zhaoxiang", result.links[0]); player.reinitCharacter(get.character(player.name2, 3).includes("fuhan") ? player.name2 : player.name1, result.links[0]);
"step 2"; "step 2";
var num = event.num - player.maxHp; var num = event.num - player.maxHp;
if (num > 0) player.gainMaxHp(num); if (num > 0) player.gainMaxHp(num);
@ -19395,7 +19394,6 @@ const skills = {
limited: true, limited: true,
skillAnimation: true, skillAnimation: true,
animationColor: "orange", animationColor: "orange",
forceunique: true,
filter: function (event, player) { filter: function (event, player) {
return player.countMark("fanghun") > 0; return player.countMark("fanghun") > 0;
}, },
@ -24477,7 +24475,6 @@ const skills = {
audio: 2, audio: 2,
unique: true, unique: true,
juexingji: true, juexingji: true,
forceunique: true,
derivation: "xiaoji", derivation: "xiaoji",
trigger: { player: "phaseZhunbeiBegin" }, trigger: { player: "phaseZhunbeiBegin" },
filter: function (event, player) { filter: function (event, player) {

View File

@ -15585,7 +15585,6 @@ const skills = {
limited: true, limited: true,
skillAnimation: true, skillAnimation: true,
animationColor: "orange", animationColor: "orange",
forceunique: true,
filter: function (event, player) { filter: function (event, player) {
return player.countMark("fanghun") > 0; return player.countMark("fanghun") > 0;
}, },

View File

@ -2811,7 +2811,7 @@ game.import("character", function () {
unique: true, unique: true,
forceunique: true, forceunique: true,
filter: function () { filter: function () {
return Math.random() < 0.5; return Math.random() < 0.5 && [player.name1, player.name2].includes("pal_longkui");
}, },
derivation: ["diesha", "guijiang"], derivation: ["diesha", "guijiang"],
content: function () { content: function () {

View File

@ -816,7 +816,11 @@ game.import("character", function () {
forceunique: true, forceunique: true,
enable: "phaseUse", enable: "phaseUse",
filter: function (event, player) { filter: function (event, player) {
return !player.hasSkill("tongyu_guiyin") && !player.getStat("damage"); return (
!player.hasSkill("tongyu_guiyin") &&
!player.getStat("damage") &&
[player.name1, player.name2].includes("yxs_luobinhan")
);
}, },
derivation: ["lzhangyi", "jimin", "tongyu"], derivation: ["lzhangyi", "jimin", "tongyu"],
content: function () { content: function () {
@ -848,7 +852,11 @@ game.import("character", function () {
forceunique: true, forceunique: true,
enable: "phaseUse", enable: "phaseUse",
filter: function (event, player) { filter: function (event, player) {
return player.countCards("he") > 0 && !player.hasSkill("tongyu_guiyin"); return (
player.countCards("he") > 0 &&
!player.hasSkill("tongyu_guiyin") &&
[player.name1, player.name2].includes("yxs_luobinhan")
);
}, },
filterCard: true, filterCard: true,
position: "he", position: "he",

View File

@ -6455,7 +6455,7 @@ game.import("mode", function (lib, game, ui, get, ai, _status) {
}) })
) )
return false; return false;
return event.toShow.some((name) => lib.character[name][3].includes("gzjinyu")); return event.toShow.some((name) => get.character(name, 3).includes("gzjinyu"));
}, },
logTarget: function (event, player) { logTarget: function (event, player) {
return game return game

View File

@ -1042,7 +1042,7 @@ export class Create {
.setContent(function () { .setContent(function () {
game.log(player, "投降"); game.log(player, "投降");
player.popup("投降"); player.popup("投降");
player.die("nosource").includeOut = true; player.die("nosource").set("_triggered", null).includeOut = true;
}).player = player; }).player = player;
} }
if (_status.paused && _status.imchoosing && !_status.auto) { if (_status.paused && _status.imchoosing && !_status.auto) {