孟节和十常侍添加幸运星模式相关调整
This commit is contained in:
parent
3f91566a0c
commit
e986396d61
|
@ -2264,7 +2264,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
direct:true,
|
||||
forced:true,
|
||||
content:function(){
|
||||
if(Math.random()<1.25-0.25*get.distance(player,trigger.player)){
|
||||
if(Math.random()<1.25-0.25*get.distance(player,trigger.player)||get.isLuckyStar(player)){
|
||||
player.logSkill('dcyouqi');
|
||||
player.gain(trigger.cards.filterInD('d'),'gain2');
|
||||
}
|
||||
|
@ -10447,7 +10447,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
dcyouqi:'幽栖',
|
||||
dcyouqi_info:'锁定技。当其他角色因〖引路〗标记弃置牌后,你有一定概率获得此牌。',
|
||||
dcyouqi_faq:'〖幽栖〗概率<br>',
|
||||
dcyouqi_faq_info:'当满足〖幽栖〗条件时,系统生成一个随机数X∈[0,1)。若X小于(1.25-0.25Y),你获得此牌(Y为你至该角色的距离)。',
|
||||
dcyouqi_faq_info:'当满足〖幽栖〗条件时,系统生成一个随机数X∈[0,1)。若X小于(1.25-0.25Y),或幸运星模式已开启,你获得此牌(Y为你至该角色的距离)。',
|
||||
dc_sunhanhua:'孙寒华',
|
||||
dchuiling:'汇灵',
|
||||
dchuiling_info:'锁定技。当你使用牌时,若此牌颜色为弃牌堆中数量较少的颜色,你获得1枚“灵”标记。若弃牌堆中:红色牌数大于黑色牌数,你回复1点体力;黑色牌数大于红色牌数,你可以弃置一名其他角色的一张牌。',
|
||||
|
|
|
@ -1314,7 +1314,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
['scs_guosheng','scsniqu'],
|
||||
['scs_gaowang','scsmiaoyu']
|
||||
],
|
||||
conflictMap:function(){
|
||||
conflictMap:function(player){
|
||||
if(!_status.changshiMap){
|
||||
_status.changshiMap={
|
||||
scs_zhangrang:[],
|
||||
|
@ -1328,10 +1328,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
scs_guosheng:['scs_duangui'],
|
||||
scs_gaowang:[],
|
||||
};
|
||||
var list=lib.skill.mbdanggu.changshi.map(i=>i[0]);
|
||||
for(var i of list){
|
||||
var select=list.filter(scs=>scs!=i&&!_status.changshiMap[i].contains(i));
|
||||
_status.changshiMap[i].addArray(select.randomGets(get.rand(0,select.length)));
|
||||
if(!get.isLuckyStar(player)){
|
||||
var list=lib.skill.mbdanggu.changshi.map(i=>i[0]);
|
||||
for(var i of list){
|
||||
var select=list.filter(scs=>scs!=i&&!_status.changshiMap[i].contains(i));
|
||||
_status.changshiMap[i].addArray(select.randomGets(get.rand(0,select.length)));
|
||||
}
|
||||
}
|
||||
}
|
||||
return _status.changshiMap;
|
||||
|
@ -1368,7 +1370,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
if(others.length==1) event._result={bool:true,links:others};
|
||||
else{
|
||||
var conflictList=others.filter(changshi=>{
|
||||
var map=lib.skill.mbdanggu.conflictMap();
|
||||
var map=lib.skill.mbdanggu.conflictMap(player);
|
||||
var names=map[first];
|
||||
return names.contains(changshi);
|
||||
}),list=others.slice();
|
||||
|
@ -1433,7 +1435,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}
|
||||
},
|
||||
isSingleShichangshi:function(player){
|
||||
var map=lib.skill.mbdanggu.conflictMap();
|
||||
var map=lib.skill.mbdanggu.conflictMap(player);
|
||||
return player.name=='shichangshi'&&(map[player.name1]&&map[player.name2]||map[player.name1]&&!player.name2||!player.name1&&!player.name2||player.name==player.name1&&!player.name2);
|
||||
},
|
||||
mod:{
|
||||
|
|
Loading…
Reference in New Issue