From 1a298f2d63e06e18c3da7722999683ada366ae05 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Sun, 3 Mar 2024 13:23:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=B1=BB=E6=8A=80=E8=83=BD?= =?UTF-8?q?=E5=88=9D=E6=AD=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/ddd.js | 6 +++--- character/diy.js | 14 ++++++++------ character/extra.js | 29 ++++++++++++++++++++++------- character/huicui.js | 10 ++++++---- character/jsrg.js | 9 ++++++--- character/mobile.js | 6 +++--- character/offline.js | 10 ++++++++-- character/refresh.js | 5 ++++- character/sp.js | 10 ++++++++-- character/sp2.js | 12 ++++++++---- character/tw.js | 5 ++++- character/yijiang.js | 4 ++-- 12 files changed, 82 insertions(+), 38 deletions(-) diff --git a/character/ddd.js b/character/ddd.js index 29aa69783..515e2ee68 100644 --- a/character/ddd.js +++ b/character/ddd.js @@ -4815,17 +4815,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){ cardEnabled(card,player){ if(!player.storage['dddlianer_ceiling']) return; var num=get.number(card); - if(typeof num!='number'||player.storage['dddlianer_ceiling']<=num) return false; + if(num!='unsure'&&(typeof num!='number'||player.storage['dddlianer_ceiling']<=num)) return false; }, cardRespondable(card,player){ if(!player.storage['dddlianer_ceiling']) return; var num=get.number(card); - if(typeof num!='number'||player.storage['dddlianer_ceiling']<=num) return false; + if(num!='unsure'&&(typeof num!='number'||player.storage['dddlianer_ceiling']<=num)) return false; }, cardSavable(card,player){ if(!player.storage['dddlianer_ceiling']) return; var num=get.number(card); - if(typeof num!='number'||player.storage['dddlianer_ceiling']<=num) return false; + if(num!='unsure'&&(typeof num!='number'||player.storage['dddlianer_ceiling']<=num)) return false; }, } } diff --git a/character/diy.js b/character/diy.js index 6454b6ff0..030c252e3 100755 --- a/character/diy.js +++ b/character/diy.js @@ -8203,15 +8203,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){ locked:false, mod:{ targetInRange(card,player){ - var list=player.getExpansions('ao_diegui'); - for(var i=0;iplayer.storage.qiangwu) return Infinity; + if (card.name == 'sha') { + const num = get.number(card); + if (num == 'unsure' || num > player.storage.qiangwu) return true; + } } }, trigger:{player:'useCard1'}, diff --git a/character/sp2.js b/character/sp2.js index 6d6fac567..fe6fdc3bc 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -1566,10 +1566,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, mod:{ targetInRange:function(card,player){ - if(get.color(card)=='none') return true; + const color = get.color(card); + if (color === 'none' || color === 'unsure') return true; }, cardUsable:function(card){ - if(get.color(card)=='none') return Infinity; + const color = get.color(card); + if (color === 'none' || color === 'unsure') return Infinity; }, } }, @@ -6400,10 +6402,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } }, targetInRange:function(card){ - if(get.color(card)=='black') return true; + const color = get.color(card); + if (color === 'black' || color === 'unsure') return true; }, cardUsable:function(card){ - if(get.color(card)=='black') return Infinity; + const color = get.color(card); + if (color === 'black' || color === 'unsure') return Infinity; }, }, }, diff --git a/character/tw.js b/character/tw.js index 20a7465ca..72611083c 100644 --- a/character/tw.js +++ b/character/tw.js @@ -6258,7 +6258,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, mod:{ cardUsable:function(card,player){ - if(card.name=='sha'&&player.getStorage('twgongji2').includes(get.suit(card))) return Infinity; + if(card.name=='sha'){ + const suit = get.suit(card); + return suit === 'unsure' || player.getStorage('twgongji2').includes(suit); + } }, aiOrder:function(player,card,num){ if(get.name(card)=='sha'&&!player.getStorage('twgongji2').includes(get.suit(card))) return num+1; diff --git a/character/yijiang.js b/character/yijiang.js index b415f28ed..ec53d0cb3 100755 --- a/character/yijiang.js +++ b/character/yijiang.js @@ -1505,8 +1505,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ unlimit:{ mod:{ cardUsable:function(card,player){ - var list=lib.skill.lkbushi.getBushi(player); - if(list[0]==get.suit(card)) return Infinity; + const list = lib.skill.lkbushi.getBushi(player), suit = get.suit(card); + if (suit === 'unsure' || list[0] === suit) return Infinity; }, }, trigger:{player:'useCard1'},