This commit is contained in:
parent
c548ec5d03
commit
7e595ebc2e
|
@ -14,9 +14,9 @@ window.noname_character_rank={
|
|||
'gjqt_bailitusu',
|
||||
'swd_huanglei',
|
||||
'hs_medivh',
|
||||
'pal_yuejinzhao',
|
||||
],
|
||||
ap:[
|
||||
'pal_yuejinzhao',
|
||||
'ow_zhaliya',
|
||||
'pal_liumengli',
|
||||
'pal_yuntianhe',
|
||||
|
|
|
@ -2761,15 +2761,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
var num=0;
|
||||
var players=game.filterPlayer();
|
||||
for(var i=0;i<players.length;i++){
|
||||
var att=get.attitude(player,players[i]);
|
||||
var del=players[i].maxHp-players[i].hp;
|
||||
if(get.is.altered('shouyin')) del=Math.min(2,del);
|
||||
if(att>0){
|
||||
num+=del;
|
||||
}
|
||||
else if(att<0){
|
||||
num-=del;
|
||||
}
|
||||
del/=Math.pow(1+players[i].hp,0.2);
|
||||
num+=get.sgnAttitude(player,players[i])*del;
|
||||
}
|
||||
return num;
|
||||
}
|
||||
|
|
10
game/game.js
10
game/game.js
|
@ -42434,7 +42434,12 @@
|
|||
gainableSkills:function(func){
|
||||
var list=[];
|
||||
for(var i in lib.character){
|
||||
if(lib.character[i][4]&&lib.character[i][4].contains('boss')) continue;
|
||||
if(lib.character[i][4]){
|
||||
if(lib.character[i][4].contains('boss')) continue;
|
||||
if(lib.character[i][4].contains('hiddenboss')) continue;
|
||||
if(lib.character[i][4].contains('minskin')) return true;
|
||||
if(lib.character[i][4].contains('unseen')) return true;
|
||||
}
|
||||
for(var j=0;j<lib.character[i][3].length;j++){
|
||||
var skill=lib.character[i][3][j];
|
||||
var info=lib.skill[skill];
|
||||
|
@ -43705,6 +43710,9 @@
|
|||
}
|
||||
return att;
|
||||
},
|
||||
sgnAttitude:function(){
|
||||
return get.sgn(get.attitude.apply(this,arguments));
|
||||
},
|
||||
useful:function(card){
|
||||
if(get.position(card)=='j') return -1;
|
||||
if(get.position(card)=='e') return get.equipValue(card);
|
||||
|
|
Loading…
Reference in New Issue