Merge pull request #847 from PZ157/PR-Branch

bugfix
This commit is contained in:
Spmario233 2024-01-24 17:52:54 +08:00 committed by GitHub
commit 6aec391daa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
45 changed files with 32 additions and 23 deletions

BIN
audio/die/mp_liuling.mp3 Normal file

Binary file not shown.

BIN
audio/die/tw_gongsunfan.mp3 Normal file

Binary file not shown.

BIN
audio/die/tw_yangang.mp3 Normal file

Binary file not shown.

BIN
audio/die/xia_liubei.mp3 Normal file

Binary file not shown.

BIN
audio/die/xia_xiahoudun.mp3 Normal file

Binary file not shown.

Binary file not shown.

BIN
audio/die/xia_zhangwei.mp3 Normal file

Binary file not shown.

BIN
audio/skill/dcshouze.mp3 Normal file

Binary file not shown.

BIN
audio/skill/mpbishi1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/mpbishi2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/mpjiusong1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/mpjiusong2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/mpmaotao1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/mpmaotao2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twchengxi1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twchengxi2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twdanlie1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twdanlie2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twfenwang1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twfenwang2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twhuiyuan1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twhuiyuan2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twhuzhong1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twhuzhong2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twjuezhu1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twjuezhu2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twshenyi1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twshenyi2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twshoushou1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twshoushou2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twxianfeng1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twxianfeng2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twxinghan1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twxinghan2.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twzhiqu1.mp3 Normal file

Binary file not shown.

BIN
audio/skill/twzhiqu2.mp3 Normal file

Binary file not shown.

View File

@ -330,7 +330,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){
res = 0.9;
if(f&&t || target.hasSkillTag('nodamage')) return 0;
if(f || t) res = 0.45;
if(target.getEquip('tengjia')) res *= 2;
if(!f&&target.getEquip('tengjia')) res *= 2;
if(!target.isLinked()) res = -res;
if(ui.selected.targets.length) return res;
let fs = 0,

View File

@ -527,15 +527,15 @@ game.import('card',function(lib,game,ui,get,ai,_status){
if(event.name=='phase'){
if(game.phaseNumber!=0) return false;
if(!player._start_cards) return false;
var hs=player.getCards('h');
for(var card of player._start_cards){
let hs=player.getCards('h');
for(let card of player._start_cards){
if(get.name(card,player)=='du'&&hs.includes(card)) return true;
}
}
else{
if(event.getParent().name!='draw') return false;
var hs=player.getCards('h');
for(var card of event.cards){
let hs=player.getCards('h');
for(let card of event.getg(player)){
if(get.name(card,player)=='du'&&hs.includes(card)) return true;
}
}

View File

@ -757,7 +757,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
trigger:{player:'useCardAfter'},
filter:function(event,player){
if(get.type(event.card)!='basic') return false;
if(player.getHistory('gain',evt=>evt.getParent().name=='dccaisi').length>player.maxHp) return false;
if(player.getHistory('gain',evt=>{
return evt.getParent().name==='dccaisi';
}).reduce((num,evt)=>{
return num+evt.cards.length;
},0)>player.maxHp) return false;
return _status.currentPhase;
},
prompt2:function(event,player){
@ -11171,6 +11175,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
liuchongluojun:'刘宠(?~197年汉明帝刘庄玄孙陈敬王刘羡曾孙陈顷王刘崇之孙陈孝王刘承之子陈国第六位国君也是东汉陈国的最后一位国君。骆俊?-197字孝远东汉末年扬州会稽郡乌伤县今浙江义乌人。宗室陈王刘宠的国相在任期间励精图治深得民众爱戴。刘宠勇猛过人善使弓弩箭法高超。在其父刘承死后继承陈王爵位。中平年间黄巾军起义郡县官兵都弃城逃走刘宠于是征兵自守卫。当时天下饥荒诸王侯都已不再享有租赋反屡遭抢掠有的甚至流离在外死于荒野。只有陈国仍很富强邻郡百姓纷纷前去投靠陈国拥有部众达十余万人。初平元年190年各州郡起兵讨伐董卓刘宠率军屯驻阳夏自称辅汉大将军。建安二年197年袁术向陈国求取粮草遭陈国国相骆俊拒绝袁术大为生气便派刺客张闿假装路过陈国乘机杀死骆俊和刘宠。',
yuechen:'乐綝195~257年字号不详阳平郡卫国县今河南省清丰县人。三国时期曹魏将领右将军乐进的儿子。果毅坚毅袭封广昌亭侯累迁扬州刺史。甘露二年为叛乱的征东大将军诸葛诞所杀追赠卫尉。',
kuaiqi:'蒯祺(?~219年南郡中卢人荆州望族子弟与荆州牧刘表帐下谋士蒯良、蒯越为同族东汉末年房陵太守。建安二十四年219年汉中王刘备遣宜都太守孟达从秭归北攻房陵蒯祺于战斗中被孟达所部士兵所杀。清朝任兆麟《心斋十种》中的《襄阳记》辑本引用《万历襄阳府志》“钦从祖祺妇即诸葛孔明之姊也”称蒯祺娶故兖州泰山郡丞诸葛珪长女即他是知名政治家、蜀汉丞相诸葛亮的姐夫。但在任兆麟之前的《襄阳记》辑本中并没有这一条。',
pangshanmin:'庞山民,荆州襄阳人,三国时期曹魏大臣。庞山民出身荆州庞氏,为隐士庞德公之子、凤雏庞统的堂兄,娶诸葛亮二姐诸葛氏(“若雪”为网络小说虚构)为妻。后出仕曹魏,历任黄门、吏部郎等职。',
},
characterTitle:{
},

View File

@ -404,6 +404,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
sbsongwei:{
audio:2,
init:(player)=>{
player.addSkill('sbsongwei_delete');
},
trigger:{player:'phaseUseBegin'},
filter:function(event,player){
return game.hasPlayer(target=>target.group=='wei'&&target!=player);
@ -414,7 +417,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
async content(event,trigger,player){
player.addMark('sbxingshang',game.countPlayer(target=>target.group=='wei'&&target!=player));
},
group:'sbsongwei_delete',
subSkill:{
delete:{
audio:'sbsongwei',
@ -453,7 +455,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
direct:true,
content:function*(event,map){
var player=map.player;
var result=yield player.chooseTarget(get.prompt('sbwusheng'),'选择一名非主公的其他角色,本阶段对其使用【杀】无距离和次数限制,使用【杀】指定其为目标后摸一张牌,对其使用张【杀】后不能对其使用【杀】',(card,player,target)=>{
var result=yield player.chooseTarget(get.prompt('sbwusheng'),'选择一名非主公的其他角色,本阶段对其使用【杀】无距离和次数限制,使用【杀】指定其为目标后摸一张牌,对其使用张【杀】后不能对其使用【杀】',(card,player,target)=>{
return target!=player&&!target.isZhu2();
}).set('ai',target=>{
var player=_status.event.player;
@ -462,6 +464,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(result.bool){
var target=result.targets[0];
player.logSkill('sbwusheng',target);
if(get.mode()!=='identity'||player.identity!=='nei') player.addExpose(0.25);
player.addTempSkill('sbwusheng_effect',{player:'phaseUseAfter'});
player.storage.sbwusheng_effect[target.playerid]=0;
}
@ -555,7 +558,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
playerEnabled:function(card,player,target){
if(card.name!='sha'||typeof player.storage.sbwusheng_effect[target.playerid]!='number') return;
if(player.storage.sbwusheng_effect[target.playerid]>=5) return false;
if(player.storage.sbwusheng_effect[target.playerid]>=3) return false;
},
},
audio:'sbwusheng',
@ -6353,7 +6356,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
sb_guanyu_prefix:'谋',
sbwusheng:'武圣',
sbwusheng_wusheng_backup:'武圣',
sbwusheng_info:'你可以将一张手牌当作任意【杀】使用或打出。出牌阶段开始时,你可以选择一名非主公的其他角色,本阶段对其使用【杀】无距离和次数限制,使用【杀】指定其为目标后摸一张牌,对其使用张【杀】后不能对其使用【杀】。',
sbwusheng_info:'你可以将一张手牌当作任意【杀】使用或打出。出牌阶段开始时,你可以选择一名非主公的其他角色,本阶段对其使用【杀】无距离和次数限制,使用【杀】指定其为目标后摸一张牌,对其使用张【杀】后不能对其使用【杀】。',
sbyijue:'义绝',
sbyijue_info:'锁定技,每名角色每局游戏限一次,当你对一名角色造成大于等于其体力值的伤害时,你防止此伤害,且本回合你使用牌指定其为目标后,取消之。',
sb_caopi:'谋曹丕',
@ -6361,7 +6364,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
sbxingshang:'行殇',
sbxingshang_info:'①每回合限一次当一名角色死亡时或受到伤害时你获得1个“颂”标记。②出牌阶段限一次你可以1.移去1个“颂”标记令一名角色复原武将牌2.移去2个“颂”标记令一名角色摸X张牌X为场上阵亡角色数且X至少为1至多为53.移去3个“颂”标记令一名体力上限小于10的角色加1点体力上限回复1点体力随机恢复一个已废除的装备栏4.移去4个“颂”标记获得一名阵亡角色武将牌上的所有技能然后你失去武将牌上的所有技能。',
sbfangzhu:'放逐',
sbfangzhu_info:'出牌阶段限一次你可以1.移去2个“颂”标记令一名其他角色的非Charlotte技能失效直到其回合结束2.移去2个“颂”标记令一名其他角色不能响应除其以为的角色使用的牌直到其回合结束3.移去2个“颂”标记令一名其他角色将武将牌翻面4.移去2个“颂”标记,令一名其他角色只能使用你选择的一种类型的牌直到其回合结束。',
sbfangzhu_info:'出牌阶段限一次你可以1.移去2个“颂”标记令一名其他角色的非Charlotte技能失效直到其回合结束2.移去2个“颂”标记令一名其他角色不能响应除其以外的角色使用的牌直到其回合结束3.移去3个“颂”标记令一名其他角色将武将牌翻面4.移去3个“颂”标记,令一名其他角色只能使用你选择的一种类型的牌直到其回合结束。',
sbsongwei:'颂威',
sbsongwei_info:'主公技。①出牌阶段开始时你获得Y个“颂”标记Y为场上其他魏势力角色数。②每局游戏限一次出牌阶段你可以令一名其他魏势力角色失去所有武将牌的技能。',

View File

@ -942,7 +942,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
audio:2,
trigger:{
player:'loseAfter',
global:['gainAfter','equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','addToExpansionAfter'],
global:['gainAfter','equipAfter','addJudgeAfter','loseAsyncAfter','addToExpansionAfter'],
},
filter(event,player){
if(!_status.currentPhase||!_status.currentPhase.isIn()) return false;
@ -24834,7 +24834,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
forced:true,
content:function(){
player.addMark('xinfu_xionghuo',1);
if(player.countMark('xinfu_xionghuo')<3) player.addMark('xinfu_xionghuo',1);
if(trigger.player.hp<0&&get.itemtype(trigger.parent.cards)=='cards'&&get.position(trigger.parent.cards[0],true)=='o'){
player.gain(trigger.parent.cards,'gain2');
}
@ -25815,7 +25815,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
"xinfu_fujian":"伏间",
"xinfu_fujian_info":"锁定技结束阶段开始时你观看一名随机的其他角色的随机X张手牌。(X为场上手牌最少的角色的手牌数)",
xinfu_xionghuo:'凶镬',
xinfu_xionghuo_info:'游戏开始时你获得3个“暴戾”标记。出牌阶段,你可以交给一名其他角色一个“暴戾”标记。当你对有“暴戾”标记的其他角色造成伤害时,此伤害+1。有“暴戾”标记的其他角色的出牌阶段开始时其移去所有“暴戾”标记并随机执行一项1.受到1点火焰伤害且本回合不能对你使用【杀】2.失去1点体力且本回合手牌上限-13.你随机获得其一张手牌和一张装备区的牌。',
xinfu_xionghuo_info:'游戏开始时你获得3个“暴戾”标记标记上限为3。出牌阶段,你可以交给一名其他角色一个“暴戾”标记。当你对有“暴戾”标记的其他角色造成伤害时,此伤害+1。有“暴戾”标记的其他角色的出牌阶段开始时其移去所有“暴戾”标记并随机执行一项1.受到1点火焰伤害且本回合不能对你使用【杀】2.失去1点体力且本回合手牌上限-13.你随机获得其一张手牌和一张装备区的牌。',
xinfu_shajue:'杀绝',
xinfu_shajue_info:'锁定技其他角色进入濒死状态时你获得一个“暴戾”标记。然后若其体力值小于0你获得使其进入濒死状态的牌。',
xinfu_jianjie:"荐杰",

View File

@ -13659,7 +13659,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
return (get.suit(card)!=_status.event.suit?9:6)-get.value(card);
}).set('num',num);
if(lib.suit.includes(suit)){
next.set('prompt2','若弃置的是'+get.suit(suit)+'牌,则改为'+get.translation(player)+'获得之');
next.set('prompt2','若弃置的是'+get.translation(suit)+'牌,则改为'+get.translation(player)+'获得之');
next.set('suit',suit);
}
'step 1'

View File

@ -1901,7 +1901,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var player=_status.event.player;
var target=_status.event.target;
var left=0,right=0;
var leftx=target.getPrevious(),lefty=target.getNext();
var leftx=target.getPrevious(),rightx=target.getNext();
while(leftx!=player){
if(get.damageEffect(leftx,player,player)<0) break;
else{
@ -4436,7 +4436,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
'step 0'
var cards=lib.skill.dcshexue.getLast();
cards=cards.filter(card=>player.hasUseTarget(card,false));
player.chooseButton(['设学:是否将一张牌当作其中一张牌使用?',[cards,'vards']]);
player.chooseButton(['设学:是否将一张牌当作其中一张牌使用?',[cards,'vcard']]);
'step 1'
if(!result.bool) return;
var card=result.links[0];
@ -6323,7 +6323,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}
},
dcshouze:{
audio:2,
audio:true,
trigger:{player:'phaseJieshuBegin'},
forced:true,
filter:function(event,player){
@ -13507,6 +13507,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
tianshangyi:'田尚衣,一作陈尚衣,魏文帝曹丕宫中著名宫人。能歌善舞,一时冠绝于世,私以为比之汉宫飞燕也不遑多让。',
malingli:'马伶俐,游卡桌游原创角色,设定上为,马超之女,其身形虽娇小,却继承了马超英勇略带冲动的个性,活泼阳光,调皮伶俐,爱摆弄爆竹烟花一类的小器具,包包里经常放置用五色彩纸包装的小炸弹球。马伶俐从小跟随马超和马云騄学习战斗技巧,战斗力超强,坚强的意志和勇气也得到了提升,同时擅长马术,有一匹可爱的小白马伴随其身边。后马伶俐成年,嫁与刘备之子刘理,获封梁王妃。两人琴瑟相和,极为恩爱,常结伴出游,被人誉为天作之合。',
zhugeruoxue:'诸葛氏(“若雪”为网络小说虚构),诸葛亮的二姐,庞山民之妻。',
caoyi:'曹轶,游卡桌游旗下产品《三国杀》原创角色。设定上为曹纯所收养的孙女,从小受到曹纯的教导,在军营中长大,性情坚毅有担当,军事谋略丰富,战斗能力超强。曹轶喜欢美食,特别是甜食,并且擅长制作各种点心。她身边跟随的雪白小老虎是曹纯在她及笄时送的生辰礼物,希望她如小老虎一样,英勇无畏。曹轶与曹婴交好,两人以姐妹相称。曹轶成年后继承祖父衣钵,接手精锐部队“虎豹骑”,成为新的虎豹骑的统领者。',
},
characterTitle:{
// wulan:'#b对决限定武将',
@ -14118,7 +14119,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
dc_sb_lusu:'新杀谋鲁肃',
dc_sb_lusu_prefix:'新杀谋',
dcsbmingshi:'明势',
dcsbmingshi_info:'摸牌阶段,你可以多摸两张牌,然后展示三张牌并令一名其他角色选择获得其中的一张牌。',
dcsbmingshi_info:'摸牌阶段,你可以多摸两张牌,然后展示三张牌并令一名其他角色选择获得其中的一张牌。',
dcsbmengmou:'盟谋',
dcsbmengmou_info:'转换技每回合每项各限一次当你得到其他角色的牌后或其他角色得到你的牌后你可以令该角色使用至多X张【杀】且其每以此法造成1点伤害其回复1点体力你可令该角色打出至多X张【杀】然后其失去Y点体力。X为你的体力值Y为X-其打出【杀】数)',
dc_sb_zhouyu:'新杀谋周瑜',

View File

@ -1182,7 +1182,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
getv=(name,player)=>{
let v=trigger.getTempCache('sangu',player.id+name);
if(typeof v==='number') return v;
v=player.getUseValue({name:name,storage:{sangu:true}},arg);
v=player.getUseValue({name:name,storage:{sangu:true}});
trigger.putTempCache('sangu',player.id+name,v);
return v;
};
@ -8094,7 +8094,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
const chooseToPutCard = async function(target){
await target.draw();
if(target.countCards('he')){
const {result:{cards,bool}} =
const {result:{cards,bool}} =
await target.chooseCard('选择一张牌置于牌堆顶','he',true);
if(bool){
await target.lose(cards,ui.cardPile,'insert');

View File

@ -971,7 +971,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
charlotte:true,
forced:true,
popup:false,
trigger:{global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','loseAfter','gainAfter','addToExpansionAfter']},
trigger:{global:['equipAfter','addJudgeAfter','gainAfter','loseAsyncAfter','loseAfter','addToExpansionAfter']},
usable:1,
filter:function(event,player){
var target=player.storage.qimei_draw;
@ -1623,7 +1623,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var list,skills=[];
if(get.mode()=='guozhan'){
list=[];
for(var i in lib.characterPack.mode_guozhan){
for(var i in lib.characterPack.mode_guozhan){
if(lib.character[i])list.push(i);
}
}