This commit is contained in:
parent
352278159b
commit
ec30ba7c04
|
@ -120,6 +120,18 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
nsanruo:{
|
nsanruo:{
|
||||||
unique:true,
|
unique:true,
|
||||||
init:function(player){
|
init:function(player){
|
||||||
|
if(!player.node.handcards1.cardMod){
|
||||||
|
player.node.handcards1.cardMod={};
|
||||||
|
}
|
||||||
|
if(!player.node.handcards2.cardMod){
|
||||||
|
player.node.handcards2.cardMod={};
|
||||||
|
}
|
||||||
|
var cardMod=function(card){
|
||||||
|
if(get.info(card).multitarget) return;
|
||||||
|
if(card.name=='sha'||get.type(card)=='trick') return ['暗弱','杀或普通锦囊牌对你不可见'];
|
||||||
|
};
|
||||||
|
player.node.handcards1.cardMod.nsanruo=cardMod;
|
||||||
|
player.node.handcards2.cardMod.nsanruo=cardMod;
|
||||||
player.node.handcards1.classList.add('nsanruo');
|
player.node.handcards1.classList.add('nsanruo');
|
||||||
player.node.handcards2.classList.add('nsanruo');
|
player.node.handcards2.classList.add('nsanruo');
|
||||||
if(!ui.css.nsanruo){
|
if(!ui.css.nsanruo){
|
||||||
|
@ -130,8 +142,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onremove:function(player){
|
onremove:function(player){
|
||||||
player.node.handcards1.classList.add('nsanruo');
|
player.node.handcards1.classList.remove('nsanruo');
|
||||||
player.node.handcards2.classList.add('nsanruo');
|
player.node.handcards2.classList.remove('nsanruo');
|
||||||
|
delete player.node.handcards1.cardMod.nsanruo;
|
||||||
|
delete player.node.handcards2.cardMod.nsanruo;
|
||||||
},
|
},
|
||||||
ai:{
|
ai:{
|
||||||
neg:true
|
neg:true
|
||||||
|
|
12
game/game.js
12
game/game.js
|
@ -45251,6 +45251,18 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var name=node.name;
|
var name=node.name;
|
||||||
|
if(node.parentNode.cardMod){
|
||||||
|
var moded=false;
|
||||||
|
for(var i in node.parentNode.cardMod){
|
||||||
|
var item=node.parentNode.cardMod[i](node);
|
||||||
|
if(Array.isArray(item)){
|
||||||
|
moded=true;
|
||||||
|
uiintro.add(item[0]);
|
||||||
|
uiintro._place_text=uiintro.add('<div class="text" style="display:inline">'+item[1]+'</div>');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(moded) return uiintro;
|
||||||
|
}
|
||||||
if(node.link&&node.link.name&&lib.card[node.link.name]){
|
if(node.link&&node.link.name&&lib.card[node.link.name]){
|
||||||
name=node.link.name;
|
name=node.link.name;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
window.noname_update={
|
window.noname_update={
|
||||||
version:'1.9.47',
|
version:'1.9.47.1',
|
||||||
update:'1.9.46',
|
update:'1.9.46',
|
||||||
changeLog:[
|
changeLog:[
|
||||||
'bug修复',
|
'bug修复',
|
||||||
|
|
Loading…
Reference in New Issue