fix: pr format.

This commit is contained in:
Rintim 2024-04-16 03:16:01 +08:00
parent dcbc0c741d
commit 44b3c6c5ae
No known key found for this signature in database
GPG Key ID: BE9E1EA615BACFCF
6 changed files with 63 additions and 59 deletions

View File

@ -896,9 +896,9 @@ game.import("character", function () {
await player.recover(); await player.recover();
await player.addSkills("dczifu"); await player.addSkills("dczifu");
}, },
ai:{ ai: {
combo:'dcjichou' combo: "dcjichou",
} },
}, },
dczifu: { dczifu: {
audio: 2, audio: 2,

View File

@ -160,30 +160,34 @@ game.import("character", function () {
jsrg_zhugeliang: jsrg_zhugeliang:
"建兴六年春,汉丞相诸葛亮使赵云、邓芝为先锋,马谡为副将拒箕谷,牵制曹真主力。自率三十万大军攻祁山,三郡叛魏应亮,关中响震。曹叡命张郃拒亮,亮使定军山降将姜维与郃战于街亭,张郃久攻不下。后曹真强攻赵云军,赵云死战,坚守箕谷,马谡、邓芝当场战死忠勇殉国。……既克张郃,曹真溃逃,曹叡弃守长安,迁都邺城。十月,司马懿击退孙权,回援曹真。而后三年,丞相所到之处,无不望风而降,皆箪食壶浆,以迎汉军。尽收豫、徐、兖、并之地,建兴十年春,司马懿父子三人死于诸葛武侯火计,同年,孙权上表称臣,至此四海清平,大汉一统。而后诸葛亮荐蒋琬为丞相,姜维为大将军,自回隆中归隐,后主挽留再三,皆不受。魏延亦辞官相随,侍奉左右。后主时有不决之事,便往隆中拜访相父,均未得面,童子答曰外出云游,遗数锦囊,拆而视之,皆治国之良策也。", "建兴六年春,汉丞相诸葛亮使赵云、邓芝为先锋,马谡为副将拒箕谷,牵制曹真主力。自率三十万大军攻祁山,三郡叛魏应亮,关中响震。曹叡命张郃拒亮,亮使定军山降将姜维与郃战于街亭,张郃久攻不下。后曹真强攻赵云军,赵云死战,坚守箕谷,马谡、邓芝当场战死忠勇殉国。……既克张郃,曹真溃逃,曹叡弃守长安,迁都邺城。十月,司马懿击退孙权,回援曹真。而后三年,丞相所到之处,无不望风而降,皆箪食壶浆,以迎汉军。尽收豫、徐、兖、并之地,建兴十年春,司马懿父子三人死于诸葛武侯火计,同年,孙权上表称臣,至此四海清平,大汉一统。而后诸葛亮荐蒋琬为丞相,姜维为大将军,自回隆中归隐,后主挽留再三,皆不受。魏延亦辞官相随,侍奉左右。后主时有不决之事,便往隆中拜访相父,均未得面,童子答曰外出云游,遗数锦囊,拆而视之,皆治国之良策也。",
}, },
characterTitle:{ characterTitle: {},
}, characterFilter: {
characterFilter:{ jsrg_jiangwei(mode) {
jsrg_jiangwei(mode){ return mode !== "guozhan";
return mode!=='guozhan';
}, },
}, },
perfectPair:{}, perfectPair: {},
card:{ card: {
xumou_jsrg:{ xumou_jsrg: {
type:'special_delay', type: "special_delay",
allowDuplicate:true, allowDuplicate: true,
blankCard:true, blankCard: true,
fullimage:true, fullimage: true,
wuxieable:false, wuxieable: false,
effect:function(){ effect: function () {
'step 0' "step 0";
var card=get.autoViewAs(event.cards[0]); var card = get.autoViewAs(event.cards[0]);
card.storage.xumou_jsrg=true; card.storage.xumou_jsrg = true;
player.chooseUseTarget(card,event.cards,`蓄谋:是否使用${get.translation(card)}`,`请选择要使用的目标。若不使用此牌,则判定区内的所有“蓄谋”牌都将被置入弃牌堆。`); player.chooseUseTarget(
'step 1' card,
if(!result.bool){ event.cards,
var cards=player.getCards('j',card=>{ `蓄谋:是否使用${get.translation(card)}`,
return (card.viewAs||card.name)=='xumou_jsrg'; `请选择要使用的目标。若不使用此牌,则判定区内的所有“蓄谋”牌都将被置入弃牌堆。`
);
"step 1";
if (!result.bool) {
var cards = player.getCards("j", (card) => {
return (card.viewAs || card.name) == "xumou_jsrg";
}); });
if (cards.length > 0) player.loseToDiscardpile(cards); if (cards.length > 0) player.loseToDiscardpile(cards);
} else { } else {
@ -5060,11 +5064,11 @@ game.import("character", function () {
}, },
}, },
//许攸 //许攸
jsrglipan:{ jsrglipan: {
forbid:['guozhan'], forbid: ["guozhan"],
audio:2, audio: 2,
trigger:{ trigger: {
player:'phaseEnd', player: "phaseEnd",
}, },
direct: true, direct: true,
content: function () { content: function () {
@ -5329,12 +5333,12 @@ game.import("character", function () {
}, },
}, },
//吕布 //吕布
jsrgwuchang:{ jsrgwuchang: {
forbid:['guozhan'], forbid: ["guozhan"],
audio:2, audio: 2,
trigger:{ trigger: {
player:'gainAfter', player: "gainAfter",
global:'loseAsyncAfter', global: "loseAsyncAfter",
}, },
forced: true, forced: true,
filter: function (event, player) { filter: function (event, player) {

View File

@ -226,12 +226,12 @@ game.import("character", function () {
}, },
}, },
//魏武帝 //魏武帝
junkguixin:{ junkguixin: {
forbid:['guozhan'], forbid: ["guozhan"],
init:function(){ init: function () {
if(!_status.junkguixin){ if (!_status.junkguixin) {
_status.junkguixin=[]; _status.junkguixin = [];
if(!_status.characterlist){ if (!_status.characterlist) {
lib.skill.pingjian.initList(); lib.skill.pingjian.initList();
} }
for (const name of _status.characterlist) { for (const name of _status.characterlist) {

View File

@ -180,8 +180,8 @@ game.import("character", function () {
ol_dongzhao: function (mode) { ol_dongzhao: function (mode) {
return mode == "identity" && ["normal", "zhong"].includes(_status.mode); return mode == "identity" && ["normal", "zhong"].includes(_status.mode);
}, },
ol_mengda(mode){ ol_mengda(mode) {
return mode!=='guozhan'; return mode !== "guozhan";
}, },
}, },
character: { character: {

View File

@ -19977,17 +19977,17 @@ game.import("character", function () {
}, },
}, },
}, },
renshe:{ renshe: {
forbid:['guozhan'], forbid: ["guozhan"],
audio:2, audio: 2,
trigger:{player:'damageEnd'}, trigger: { player: "damageEnd" },
direct:true, direct: true,
content:function(){ content: function () {
'step 0' "step 0";
var choiceList=[ var choiceList = [
'将势力变更为场上现存的一个其他势力', "将势力变更为场上现存的一个其他势力",
'令〖外使〗的发动次数+1直到下个出牌阶段结束', "令〖外使〗的发动次数+1直到下个出牌阶段结束",
'与另一名其他角色各摸一张牌', "与另一名其他角色各摸一张牌",
]; ];
var controls = ["选项二"]; var controls = ["选项二"];
if ( if (

View File

@ -4313,10 +4313,10 @@ game.import("character", function () {
player.loseMaxHp(); player.loseMaxHp();
player.addSkills("pozhu"); player.addSkills("pozhu");
}, },
derivation:'pozhu', derivation: "pozhu",
ai:{ ai: {
combo:'sanchen' combo: "sanchen",
} },
}, },
pozhu: { pozhu: {
enable: "phaseUse", enable: "phaseUse",