状态类技能初步修改
This commit is contained in:
parent
706af34dc6
commit
1a298f2d63
|
@ -4815,17 +4815,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
cardEnabled(card,player){
|
cardEnabled(card,player){
|
||||||
if(!player.storage['dddlianer_ceiling']) return;
|
if(!player.storage['dddlianer_ceiling']) return;
|
||||||
var num=get.number(card);
|
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){
|
cardRespondable(card,player){
|
||||||
if(!player.storage['dddlianer_ceiling']) return;
|
if(!player.storage['dddlianer_ceiling']) return;
|
||||||
var num=get.number(card);
|
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){
|
cardSavable(card,player){
|
||||||
if(!player.storage['dddlianer_ceiling']) return;
|
if(!player.storage['dddlianer_ceiling']) return;
|
||||||
var num=get.number(card);
|
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;
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8203,15 +8203,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
locked:false,
|
locked:false,
|
||||||
mod:{
|
mod:{
|
||||||
targetInRange(card,player){
|
targetInRange(card,player){
|
||||||
var list=player.getExpansions('ao_diegui');
|
const cardSuit = get.suit(card,false);
|
||||||
for(var i=0;i<list.length;i++){
|
const list = player.getExpansions('ao_diegui');
|
||||||
if(get.suit(list[i],false)==get.suit(card,false)) return true;
|
for(let i = 0; i < list.length; i++){
|
||||||
|
if(cardSuit==='unsure'||get.suit(list[i],false)===cardSuit) return true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
cardUsable(card,player){
|
cardUsable(card,player){
|
||||||
var list=player.getExpansions('ao_diegui');
|
const cardSuit = get.suit(card,false);
|
||||||
for(var i=0;i<list.length;i++){
|
const list = player.getExpansions('ao_diegui');
|
||||||
if(get.suit(list[i],false)==get.suit(card,false)) return Infinity;
|
for(let i = 0; i < list.length; i++){
|
||||||
|
if(cardSuit==='unsure'||get.suit(list[i],false)===cardSuit) return Infinity;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
maxHandcard(player,num){
|
maxHandcard(player,num){
|
||||||
|
|
|
@ -1875,7 +1875,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
twgongxin2:{
|
twgongxin2:{
|
||||||
mod:{
|
mod:{
|
||||||
cardEnabled2(card,player){
|
cardEnabled2(card,player){
|
||||||
if(player.getStorage('twgongxin2').includes(get.color(card))) return false;
|
const color = get.color(card);
|
||||||
|
if(color!='unsure' && player.getStorage('twgongxin2').includes(color)) return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
charlotte:true,
|
charlotte:true,
|
||||||
|
@ -2266,10 +2267,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
if(lib.skill.xunshi.isXunshi(card)) return 'none';
|
if(lib.skill.xunshi.isXunshi(card)) return 'none';
|
||||||
},
|
},
|
||||||
targetInRange(card){
|
targetInRange(card){
|
||||||
if(get.color(card)=='none') return true;
|
const suit = get.color(card);
|
||||||
|
if (suit=='none' || suit=='unsure') return true;
|
||||||
},
|
},
|
||||||
cardUsable(card){
|
cardUsable(card){
|
||||||
if(get.color(card)=='none') return Infinity;
|
const suit = get.color(card);
|
||||||
|
if (suit=='none' || suit=='unsure') return Infinity;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
isXunshi(card){
|
isXunshi(card){
|
||||||
|
@ -2343,10 +2346,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
if(get.suit(card)=='heart') return false;
|
if(get.suit(card)=='heart') return false;
|
||||||
},
|
},
|
||||||
targetInRange(card){
|
targetInRange(card){
|
||||||
if(get.suit(card)=='heart') return true;
|
if(card.name === 'sha'){
|
||||||
|
const suit = get.suit(card);
|
||||||
|
if (suit === 'heart' || suit === 'unsure') return true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
cardUsable(card){
|
cardUsable(card){
|
||||||
if(card.name=='sha'&&get.suit(card)=='heart') return Infinity;
|
if(card.name === 'sha'){
|
||||||
|
const suit = get.suit(card);
|
||||||
|
if (suit === 'heart' || suit === 'unsure') return Infinity;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
audio:'wushen',
|
audio:'wushen',
|
||||||
|
@ -6164,10 +6173,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
if(get.suit(card)=='heart') return false;
|
if(get.suit(card)=='heart') return false;
|
||||||
},
|
},
|
||||||
targetInRange(card){
|
targetInRange(card){
|
||||||
if(get.suit(card)=='heart') return true;
|
if(card.name === 'sha'){
|
||||||
|
const suit = get.suit(card);
|
||||||
|
if (suit === 'heart' || suit === 'unsure') return true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
cardUsable(card){
|
cardUsable(card){
|
||||||
if(card.name=='sha'&&get.suit(card)=='heart') return Infinity;
|
if(card.name === 'sha'){
|
||||||
|
const suit = get.suit(card);
|
||||||
|
if (suit === 'heart' || suit === 'unsure') return Infinity;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
audio:2,
|
audio:2,
|
||||||
|
|
|
@ -11057,11 +11057,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
zhente2:{
|
zhente2:{
|
||||||
mod:{
|
mod:{
|
||||||
cardEnabled:function(card,player){
|
cardEnabled(card, player) {
|
||||||
if(player.getStorage('zhente2').includes(get.color(card))) return false;
|
const color = get.color(card);
|
||||||
|
if (color != 'unsure' && player.getStorage('zhente2').includes(color)) return false;
|
||||||
},
|
},
|
||||||
cardSavable:function(card,player){
|
cardSavable(card,player) {
|
||||||
if(player.getStorage('zhente2').includes(get.color(card))) return false;
|
const color = get.color(card);
|
||||||
|
if (color != 'unsure' && player.getStorage('zhente2').includes(color)) return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
charlotte:true,
|
charlotte:true,
|
||||||
|
|
|
@ -508,13 +508,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
onremove:true,
|
onremove:true,
|
||||||
mod:{
|
mod:{
|
||||||
cardEnabled:function(card,player){
|
cardEnabled:function(card,player){
|
||||||
if(player.getStorage('jsrgfumou_forbid').includes(get.color(card))) return false;
|
const color = get.color(card);
|
||||||
|
if (color != 'unsure' && player.getStorage('jsrgfumou_forbid').includes(color)) return false;
|
||||||
},
|
},
|
||||||
cardRespondable:function(card,player){
|
cardRespondable:function(card,player){
|
||||||
if(player.getStorage('jsrgfumou_forbid').includes(get.color(card))) return false;
|
const color = get.color(card);
|
||||||
|
if (color != 'unsure' && player.getStorage('jsrgfumou_forbid').includes(color)) return false;
|
||||||
},
|
},
|
||||||
cardSavable:function(card,player){
|
cardSavable:function(card,player){
|
||||||
if(player.getStorage('jsrgfumou_forbid').includes(get.color(card))) return false;
|
const color = get.color(card);
|
||||||
|
if (color != 'unsure' && player.getStorage('jsrgfumou_forbid').includes(color)) return false;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
mark:true,
|
mark:true,
|
||||||
|
|
|
@ -3108,7 +3108,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
cardEnabled:function(card,player){
|
cardEnabled:function(card,player){
|
||||||
if(!player.storage.scschihe_blocker) return;
|
if(!player.storage.scschihe_blocker) return;
|
||||||
var suit=get.suit(card);
|
var suit=get.suit(card);
|
||||||
if(suit=='none') return;
|
if(suit=='none'||suit=='unsure') return;
|
||||||
var evt=_status.event;
|
var evt=_status.event;
|
||||||
if(evt.name!='chooseToUse') evt=evt.getParent('chooseToUse');
|
if(evt.name!='chooseToUse') evt=evt.getParent('chooseToUse');
|
||||||
if(!evt||!evt.respondTo||evt.respondTo[1].name!='sha') return;
|
if(!evt||!evt.respondTo||evt.respondTo[1].name!='sha') return;
|
||||||
|
@ -5625,7 +5625,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
var evt=lib.skill.dcjianying.getLastUsed(player);
|
var evt=lib.skill.dcjianying.getLastUsed(player);
|
||||||
if(!evt||!evt.card) return;
|
if(!evt||!evt.card) return;
|
||||||
var num1=get.number(card),num2=get.number(evt.card);
|
var num1=get.number(card),num2=get.number(evt.card);
|
||||||
if(typeof num1=='number'&&typeof num2=='number'&&num1%num2==0) return Infinity;
|
if(num1==='unsure'||typeof num1=='number'&&typeof num2=='number'&&num1%num2==0) return Infinity;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
aiOrder:function(player,card,num){
|
aiOrder:function(player,card,num){
|
||||||
|
@ -5633,7 +5633,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
var evt=lib.skill.dcjianying.getLastUsed(player);
|
var evt=lib.skill.dcjianying.getLastUsed(player);
|
||||||
if(!evt||!evt.card) return;
|
if(!evt||!evt.card) return;
|
||||||
var num1=get.number(card),num2=num2=get.number(evt.card);
|
var num1=get.number(card),num2=num2=get.number(evt.card);
|
||||||
if(typeof num1=='number'&&typeof num2=='number'&&num2%num1==0) return num+5;
|
if(num1==='unsure'||typeof num1=='number'&&typeof num2=='number'&&num2%num1==0) return num+5;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -6095,10 +6095,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
mod:{
|
mod:{
|
||||||
cardRespondable:function(card,player){
|
cardRespondable:function(card,player){
|
||||||
if(card.name=='shan'&&get.suit(card)!='heart') return false;
|
if(card.name=='shan'){
|
||||||
|
const suit=get.suit(card);
|
||||||
|
if(suit!='heart'&&suit!='unsure') return false;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
cardEnabled:function(card,player){
|
cardEnabled:function(card,player){
|
||||||
if(card.name=='shan'&&get.suit(card)!='heart') return false;
|
if(card.name=='shan'){
|
||||||
|
const suit=get.suit(card);
|
||||||
|
if(suit!='heart'&&suit!='unsure') return false;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -6758,7 +6758,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return Infinity;
|
return Infinity;
|
||||||
},
|
},
|
||||||
cardUsable:function(card,player){
|
cardUsable:function(card,player){
|
||||||
if(card.name=='sha'&&player.storage.xingongji2.includes(get.suit(card))) return Infinity;
|
if(card.name=='sha'){
|
||||||
|
const suit = get.suit(card);
|
||||||
|
return suit === 'unsure' || player.storage.xingongji2.includes(suit);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
aiOrder:function(player,card,num){
|
aiOrder:function(player,card,num){
|
||||||
if(get.name(card)=='sha'&&!player.storage.xingongji2.includes(get.suit(card))) return num+1;
|
if(get.name(card)=='sha'&&!player.storage.xingongji2.includes(get.suit(card))) return num+1;
|
||||||
|
|
|
@ -22865,10 +22865,16 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
qiangwu3:{
|
qiangwu3:{
|
||||||
mod:{
|
mod:{
|
||||||
targetInRange:function(card,player){
|
targetInRange:function(card,player){
|
||||||
if(_status.currentPhase==player&&card.name=='sha'&&get.number(card)<player.storage.qiangwu) return true;
|
if (card.name == 'sha') {
|
||||||
|
const num = get.number(card);
|
||||||
|
if (num == 'unsure' || num < player.storage.qiangwu) return true;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
cardUsable:function(card,player){
|
cardUsable:function(card,player){
|
||||||
if(_status.currentPhase==player&&card.name=='sha'&&get.number(card)>player.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'},
|
trigger:{player:'useCard1'},
|
||||||
|
|
|
@ -1566,10 +1566,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
mod:{
|
mod:{
|
||||||
targetInRange:function(card,player){
|
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){
|
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){
|
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){
|
cardUsable:function(card){
|
||||||
if(get.color(card)=='black') return Infinity;
|
const color = get.color(card);
|
||||||
|
if (color === 'black' || color === 'unsure') return Infinity;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -6258,7 +6258,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},
|
},
|
||||||
mod:{
|
mod:{
|
||||||
cardUsable:function(card,player){
|
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){
|
aiOrder:function(player,card,num){
|
||||||
if(get.name(card)=='sha'&&!player.getStorage('twgongji2').includes(get.suit(card))) return num+1;
|
if(get.name(card)=='sha'&&!player.getStorage('twgongji2').includes(get.suit(card))) return num+1;
|
||||||
|
|
|
@ -1505,8 +1505,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
unlimit:{
|
unlimit:{
|
||||||
mod:{
|
mod:{
|
||||||
cardUsable:function(card,player){
|
cardUsable:function(card,player){
|
||||||
var list=lib.skill.lkbushi.getBushi(player);
|
const list = lib.skill.lkbushi.getBushi(player), suit = get.suit(card);
|
||||||
if(list[0]==get.suit(card)) return Infinity;
|
if (suit === 'unsure' || list[0] === suit) return Infinity;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
trigger:{player:'useCard1'},
|
trigger:{player:'useCard1'},
|
||||||
|
|
Loading…
Reference in New Issue