Merge pull request #928 from mengxinzxz/PR-Branch

OL界高顺,bugfix,素材补充
This commit is contained in:
Spmario233 2024-02-07 22:42:56 +08:00 committed by GitHub
commit bc9118a421
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 63 additions and 7 deletions

View File

@ -10,10 +10,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
ol_lingtong:['male','wu',4,['olxuanfeng'],['die_audio:re_lingtong']],
ol_sb_guanyu:['male','shu',4,['olsbweilin','olsbduoshou']],
ol_sb_taishici:['male','wu',4,['olsbdulie','olsbdouchan']],
ol_gaoshun:['male','qun',4,['olxianzhen','decadejinjiu'],['die_audio:re_gaoshun']],
},
characterSort:{
onlyOL:{
onlyOL_yijiang1:['ol_jianyong','ol_lingtong'],
onlyOL_yijiang1:['ol_jianyong','ol_lingtong','ol_gaoshun'],
onlyOL_yijiang2:['ol_caozhang'],
onlyOL_sb:['ol_sb_jiangwei','ol_sb_guanyu','ol_sb_taishici'],
},
@ -23,6 +24,40 @@ game.import('character',function(lib,game,ui,get,ai,_status){
characterReplace:{
},
skill:{
//界高顺
olxianzhen:{
audio:'rexianzhen',
inherit:'xianzhen',
async content(event,trigger,player){
const target=event.target;
const {result:{bool}}=await player.chooseToCompare(target);
if(bool){
player.storage.xinxianzhen=target;
player.addTempSkill('xinxianzhen2');
}
else{
player.markAuto('olxianzhen_buff',[target]);
player.addTempSkill('olxianzhen_buff');
}
},
subSkill:{
buff:{
charlotte:true,
onremove:true,
mod:{
playerEnabled(card,player,target){
if(get.name(card,player)=='sha'&&player.getStorage('olxianzhen_buff').includes(target)) return false;
},
ignoredHandcard(card,player){
if(get.name(card,player)=='sha') return true;
},
cardDiscardable(card,player,name){
if(name=='phaseDiscard'&&get.name(card,player)=='sha') return false;
},
},
},
},
},
//新OL谋关羽
olsbweilin:{
audio:2,
@ -730,6 +765,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
olsbweilin_info:'每回合限一次,你可以将一张牌当作任意【杀】或【酒】使用,且你以此法使用的牌指定最后一个目标后,你令所有目标角色本回合与此牌颜色相同的手牌均视为【杀】。',
olsbduoshou:'夺首',
olsbduoshou_info:'锁定技。①你每回合使用的第一张红色牌无距离限制。②你每回合使用的第一张基本牌不计入使用次数。③你每回合第一次造成伤害后,你摸一张牌。',
ol_gaoshun:'OL界高顺',
ol_gaoshun_prefix:'OL界',
olxianzhen:'陷阵',
olxianzhen_info:'出牌阶段限一次,你可以与一名角色拼点。若你赢,本回合你无视该角色的防具且对其使用牌没有次数和距离限制,且当你使用【杀】或普通锦囊牌指定其他角色为唯一目标时可以令该角色也成为此牌的目标;若你没赢,本回合你不能对其使用【杀】且你的【杀】不计入手牌上限。',
onlyOL_yijiang1:'OL专属·将1',
onlyOL_yijiang2:'OL专属·将2',

View File

@ -1462,6 +1462,7 @@ window.noname_character_rank={
'ol_dengai',
're_wuguotai',
're_gaoshun',
'ol_gaoshun',
're_caozhi',
're_lingtong',
'xin_xusheng',

View File

@ -4059,23 +4059,34 @@ game.import('character',function(lib,game,ui,get,ai,_status){
decadejinjiu:{
global:'decadejinjiu_global',
mod:{
cardname:function(card){
cardname(card){
if(card.name=='jiu') return 'sha';
},
cardnumber:function(card){
cardnumber(card){
if(card.name=='jiu') return 13;
},
},
audio:2,
audioname2:{
ol_gaoshun:'rejinjiu',
},
trigger:{player:['useCard1','respond']},
filter(event,player){
return event.card.name=='sha'&&!event.skill&&event.cards&&event.cards.length==1&&event.cards[0].name=='jiu';
},
forced:true,
firstDo:true,
content(){},
subSkill:{
global:{
mod:{
cardEnabled:function(card,player){
cardEnabled(card,player){
if(card.name=='jiu'){
var source=_status.currentPhase;
if(source&&source!=player&&source.hasSkill('decadejinjiu')) return false;
}
},
cardSavable:function(card,player){
cardSavable(card,player){
if(card.name=='jiu'){
var source=_status.currentPhase;
if(source&&source!=player&&source.hasSkill('decadejinjiu')) return false;

View File

@ -733,7 +733,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
const target=player.getStorage('olqingyuan').filter(target=>target.hasCard(card=>lib.filter.canBeGained(card,target,player),'he')).randomGet();
player.line(target);
player.addTempSkill('olqingyuan_used');
player.gainPlayerCard(target,'he',true);
player.gain(target.getCards('he',card=>{
return lib.filter.canBeGained(card,target,player);
}).randomGet(),target,'giveAuto');
}
else{
const {result:{bool,targets}}=await player.chooseTarget((card,player,target)=>{
@ -27243,7 +27245,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
olshandao_info:'出牌阶段限一次,你可以选择任意名角色,你选择这些角色的各一张牌,依次将这些牌放置到牌堆顶,然后你视为对这些角色使用【五谷丰登】,然后你视为对这些角色外的所有其他角色使用【万箭齐发】。',
ol_hujinding:'胡金定',
olqingyuan:'轻缘',
olqingyuan_info:'锁定技。①游戏开始时,或当你于本局游戏首次受到伤害后,你选择一名未以此法选择过的其他角色。②每回合限一次,你发动〖轻缘①〗选择过的角色得到牌后,你随机获得其中一名角色的一张牌。',
olqingyuan_info:'锁定技。①游戏开始时,或当你于本局游戏首次受到伤害后,你选择一名未以此法选择过的其他角色。②每回合限一次,你发动〖轻缘①〗选择过的角色得到牌后,你随机获得其中一名角色的随机一张牌。',
olchongshen:'重身',
olchongshen_info:'你可以将本轮得到的手牌当作【闪】使用,且这些牌不计入你的手牌上限。',

View File

@ -6750,6 +6750,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){
},
xinxianzhen2:{
audio:'xianzhen',
audioname2:{
ol_gaoshun:'rexianzhen',
},
mod:{
targetInRange:function(card,player,target){
if(target==player.storage.xinxianzhen) return true;

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB