commit
0ad24cf43a
|
@ -4825,7 +4825,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return 10*Math.sqrt(Math.max(0.01,get.threaten(target)))/(3.5-draw)+dis/(2*game.countPlayer());
|
return 10*Math.sqrt(Math.max(0.01,get.threaten(target)))/(3.5-draw)+dis/(2*game.countPlayer());
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(target.isTurnedOver()) return -att-draw;
|
if(target.isTurnedOver()) return att-draw;
|
||||||
if(draw>=5) return -1;
|
if(draw>=5) return -1;
|
||||||
if(current&&target.getSeatNum()<=current.getSeatNum()) return -att+draw/3;
|
if(current&&target.getSeatNum()<=current.getSeatNum()) return -att+draw/3;
|
||||||
return (4.25-draw)*10*Math.sqrt(Math.max(0.01,get.threaten(target)))+2*game.countPlayer()/dis;
|
return (4.25-draw)*10*Math.sqrt(Math.max(0.01,get.threaten(target)))+2*game.countPlayer()/dis;
|
||||||
|
|
|
@ -711,6 +711,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
},'hs');
|
},'hs');
|
||||||
},
|
},
|
||||||
groupSkill:true,
|
groupSkill:true,
|
||||||
|
locked:false,
|
||||||
viewAs:{
|
viewAs:{
|
||||||
name:'sha',
|
name:'sha',
|
||||||
storage:{jsrgxianzhu:true},
|
storage:{jsrgxianzhu:true},
|
||||||
|
|
|
@ -4700,7 +4700,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
return 10*Math.sqrt(Math.max(0.01,get.threaten(target)))/(3.5-draw)+dis/(2*game.countPlayer());
|
return 10*Math.sqrt(Math.max(0.01,get.threaten(target)))/(3.5-draw)+dis/(2*game.countPlayer());
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
if(target.isTurnedOver()) return -att-draw;
|
if(target.isTurnedOver()) return att-draw;
|
||||||
if(draw>=5) return -1;
|
if(draw>=5) return -1;
|
||||||
if(current&&target.getSeatNum()<=current.getSeatNum()) return -att+draw/3;
|
if(current&&target.getSeatNum()<=current.getSeatNum()) return -att+draw/3;
|
||||||
return (4.25-draw)*10*Math.sqrt(Math.max(0.01,get.threaten(target)))+2*game.countPlayer()/dis;
|
return (4.25-draw)*10*Math.sqrt(Math.max(0.01,get.threaten(target)))+2*game.countPlayer()/dis;
|
||||||
|
|
20
game/game.js
20
game/game.js
|
@ -28963,29 +28963,37 @@
|
||||||
if(Array.isArray(card)){
|
if(Array.isArray(card)){
|
||||||
if(card[2]=='huosha'){
|
if(card[2]=='huosha'){
|
||||||
card[2]='sha';
|
card[2]='sha';
|
||||||
card[3]=['fire'];
|
card[3]='fire';
|
||||||
}
|
}
|
||||||
else if(card[2]=='leisha'){
|
else if(card[2]=='leisha'){
|
||||||
card[2]='sha';
|
card[2]='sha';
|
||||||
card[3]=['thunder'];
|
card[3]='thunder';
|
||||||
}
|
}
|
||||||
// else if(card[2]=='kamisha'){
|
// else if(card[2]=='kamisha'){
|
||||||
// card[2]='sha';
|
// card[2]='sha';
|
||||||
// card[3]=['kami'];
|
// card[3]='kami';
|
||||||
// }
|
// }
|
||||||
// else if(card[2]=='icesha'){
|
// else if(card[2]=='icesha'){
|
||||||
// card[2]='sha';
|
// card[2]='sha';
|
||||||
// card[3]=['ice'];
|
// card[3]='ice';
|
||||||
// }
|
// }
|
||||||
else if(card[2]=='cisha'){
|
else if(card[2]=='cisha'){
|
||||||
card[2]='sha';
|
card[2]='sha';
|
||||||
card[3]=['stab'];
|
card[3]='stab';
|
||||||
}
|
}
|
||||||
else if(card[2].length>3){
|
else if(card[2].length>3){
|
||||||
let prefix=card[2].slice(0,card[2].lastIndexOf('sha'));
|
let prefix=card[2].slice(0,card[2].lastIndexOf('sha'));
|
||||||
|
if(lib.nature.has(prefix)){
|
||||||
if(prefix.length+3==card[2].length){
|
if(prefix.length+3==card[2].length){
|
||||||
card[2]='sha';
|
card[2]='sha';
|
||||||
card[3]=[prefix];
|
card[3]=prefix;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(card[2].indexOf('sha_')==0){
|
||||||
|
let suffix=card[2].slice(4);
|
||||||
|
let natureList=suffix.split('_');
|
||||||
|
card[2]='sha';
|
||||||
|
card[3]=get.nature(natureList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue