曹羲【刚述】加回5限制,并优化【刚述】markcount显示

This commit is contained in:
mengxinzxz 2023-10-26 22:08:01 +08:00 committed by GitHub
parent ceaaa70185
commit d73ab8cb95
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 9 deletions

View File

@ -1971,24 +1971,26 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}).set('choice',function(){ }).set('choice',function(){
var info=lib.skill.olgangshu.getInfo(player); var info=lib.skill.olgangshu.getInfo(player);
if(info[1]==0) return 1; if(info[1]==0) return 1;
if(player.hasCard(card=>{ if(info[2]<5&&player.hasCard(card=>{
return get.name(card)=='sha'&&player.hasValueTarget(card); return get.name(card)=='sha'&&player.hasValueTarget(card);
},'hs')&&!player.getCardUsable('sha')) return 2; },'hs')&&!player.getCardUsable('sha')) return 2;
if(!game.hasPlayer(current=>{ if(info[0]<5&&!game.hasPlayer(current=>{
return player.inRange(current)&&get.effect(current,{name:'sha'},player,player)>0; return player.inRange(current)&&get.effect(current,{name:'sha'},player,player)>0;
})) return 0; })) return 0;
var rand=Math.random(); var rand=Math.random();
if(rand<0.2) return 0; var list=[0,1,2].filter(i=>info[i]<5);
if(rand<0.7) return 1; if(!list.length) return 'cancel2';
if(rand<1.0) return 2; if(rand<0.2&&list.includes(0)) return 0;
return get.rand(0,2); if(rand<0.7&&list.includes(1)) return 1;
if(rand<1.0&&list.includes(2)) return 2;
return list.randomGet();
}()); }());
'step 1' 'step 1'
if(result.control!='cancel2'){ if(result.control!='cancel2'){
player.logSkill('olgangshu'); player.logSkill('olgangshu');
player.addSkill('olgangshu_buff'); player.addSkill('olgangshu_buff');
var info=lib.skill.olgangshu.getInfo(player); var info=lib.skill.olgangshu.getInfo(player);
info[result.index]=info[result.index]+1; info[result.index]=Math.min(5,info[result.index]+1);
game.log(player,'的',result.control.slice(0,result.control.indexOf('(')),'#y+1'); game.log(player,'的',result.control.slice(0,result.control.indexOf('(')),'#y+1');
player.markSkill('olgangshu_buff'); player.markSkill('olgangshu_buff');
} }
@ -2026,7 +2028,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
}, },
mark:true, mark:true,
intro:{ intro:{
markcount:()=>0, markcount:function(storage,player){
var info=lib.skill.olgangshu.getInfo(player);
var str='';
info.forEach(num=>str+=parseFloat(num));
return str;
},
content:function(storage,player){ content:function(storage,player){
var info=lib.skill.olgangshu.getInfo(player); var info=lib.skill.olgangshu.getInfo(player);
var str=''; var str='';
@ -26389,7 +26396,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
olrunwei_info:'其他角色的弃牌阶段开始时,若其已受伤,则你可以选择一项:①令其弃置一张牌,其本回合手牌上限+1②令其摸一张牌其本回合手牌上限-1。', olrunwei_info:'其他角色的弃牌阶段开始时,若其已受伤,则你可以选择一项:①令其弃置一张牌,其本回合手牌上限+1②令其摸一张牌其本回合手牌上限-1。',
caoxi:'曹羲', caoxi:'曹羲',
olgangshu:'刚述', olgangshu:'刚述',
olgangshu_info:'①当你使用非基本牌结算结束后,你可以令以下一项数值+11.攻击范围2.受〖刚述〗影响的下个摸牌阶段摸牌数3.使用【杀】的次数上限。②当有牌被你抵消后,重置你〖刚述①〗增加的所有数值。', olgangshu_info:'①当你使用非基本牌结算结束后,你可以令以下一项数值+1每项至多加至51.攻击范围2.受〖刚述〗影响的下个摸牌阶段摸牌数3.使用【杀】的次数上限。②当有牌被你抵消后,重置你〖刚述①〗增加的所有数值。',
oljianxuan:'谏旋', oljianxuan:'谏旋',
oljianxuan_info:'当你受到伤害后,你可以令一名角色摸一张牌,然后若其手牌数等于你〖刚述①〗中的任意一项对应的数值,其重复此流程。', oljianxuan_info:'当你受到伤害后,你可以令一名角色摸一张牌,然后若其手牌数等于你〖刚述①〗中的任意一项对应的数值,其重复此流程。',
ol_pengyang:'OL彭羕', ol_pengyang:'OL彭羕',