This commit is contained in:
libccy 2017-02-23 11:47:33 +08:00
parent 054936d0ab
commit 814257d4f1
2 changed files with 42 additions and 1 deletions

View File

@ -5677,6 +5677,7 @@ character.swd={
trigger:{player:['loseEnd','phaseBegin']}, trigger:{player:['loseEnd','phaseBegin']},
direct:true, direct:true,
usable:1, usable:1,
alter:true,
filter:function(event,player){ filter:function(event,player){
if(event.name=='phase') return true; if(event.name=='phase') return true;
if(player.num('h')) return false; if(player.num('h')) return false;
@ -9011,6 +9012,7 @@ character.swd={
jikong:'亟空', jikong:'亟空',
jikong2:'亟空', jikong2:'亟空',
jikong_info:'准备阶段,你可以指定一名角色视为对其使用一张雷杀;每当你失去最后一张手牌,你可以指定一名角色视为对其使用一张雷杀(每回合限发动一次)', jikong_info:'准备阶段,你可以指定一名角色视为对其使用一张雷杀;每当你失去最后一张手牌,你可以指定一名角色视为对其使用一张雷杀(每回合限发动一次)',
jikong_info_alter:'准备阶段,你可以指定一名角色视为对其使用一张雷杀',
xiangu:'仙骨', xiangu:'仙骨',
xiangu_info:'锁定技,你的手牌上限不会因体力值的减少而减少。', xiangu_info:'锁定技,你的手牌上限不会因体力值的减少而减少。',
yiesheng:'回雪', yiesheng:'回雪',

View File

@ -23538,7 +23538,11 @@
lib.setIntro(node,function(uiintro){ lib.setIntro(node,function(uiintro){
if(lib.config.touchscreen) _status.dragged=true; if(lib.config.touchscreen) _status.dragged=true;
uiintro.style.width='160px'; uiintro.style.width='160px';
uiintro._place_text=uiintro.add('<div class="text" style="display:inline">'+config.intro+'</div>'); var str=config.intro;
if(typeof str=='function'){
str=str();
}
uiintro._place_text=uiintro.add('<div class="text" style="display:inline">'+str+'</div>');
}); });
} }
} }
@ -25213,8 +25217,20 @@
node.mode=mode; node.mode=mode;
page.node=node; page.node=node;
var list=[]; var list=[];
var alterableSkills=[];
var alterableCharacters=[];
var charactersToAlter=[];
for(var i in info){ for(var i in info){
list.push(i); list.push(i);
for(var j=0;j<info[i][3].length;j++){
if(lib.skill[info[i][3][j]].alter){
alterableSkills.add(info[i][3][j]);
alterableCharacters.add(i);
if(!lib.config.alteredSkills.contains(info[i][3][j])){
charactersToAlter.add(i);
}
}
}
} }
var groupSort=function(name){ var groupSort=function(name){
if(info[name][1]=='wei') return 0; if(info[name][1]=='wei') return 0;
@ -25245,6 +25261,29 @@
}); });
if(mode.indexOf('mode_')!=0){ if(mode.indexOf('mode_')!=0){
page.appendChild(cfgnode); page.appendChild(cfgnode);
if(alterableCharacters.length){
var cfgnode2=createConfig({
name:'平衡强度',
_name:mode,
init:charactersToAlter.length==0,
intro:'以下武将将被调整: '+get.translation(alterableCharacters),
onclick:function(bool){
if(bool){
for(var i=0;i<alterableSkills.length;i++){
lib.config.alteredSkills.add(alterableSkills[i]);
}
}
else{
for(var i=0;i<alterableSkills.length;i++){
lib.config.alteredSkills.remove(alterableSkills[i]);
}
}
game.saveConfig('alteredSkills',lib.config.alteredSkills);
}
});
cfgnode2.style.marginTop='0px';
page.appendChild(cfgnode2);
}
} }
else{ else{
page.style.paddingTop='8px'; page.style.paddingTop='8px';