Ensure the compatibility, and fix the error when clicking again on a identity card.
This commit is contained in:
parent
832cf82220
commit
810ca75389
|
@ -167,9 +167,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
'step 0'
|
'step 0'
|
||||||
var list=lib.config.mode_config.identity.identity.lastItem.slice();
|
var list=lib.config.mode_config.identity.identity.lastItem.slice();
|
||||||
list.removeArray(game.filterPlayer().map(i=>{
|
list.removeArray(game.filterPlayer().map(i=>{
|
||||||
let identity=i.identity;
|
var identity=i.identity;
|
||||||
if(identity=='mingzhong') identity='zhong';
|
return identity=='mingzhong'?'zhong':identity;
|
||||||
return identity;
|
|
||||||
})).unique();
|
})).unique();
|
||||||
player.chooseButton([
|
player.chooseButton([
|
||||||
'###炼魄:请选择一个身份###<div class="text center">你选择的身份对应的阵营角色数于本轮内视为+1</div>',
|
'###炼魄:请选择一个身份###<div class="text center">你选择的身份对应的阵营角色数于本轮内视为+1</div>',
|
||||||
|
|
|
@ -43447,6 +43447,7 @@
|
||||||
//创建身份牌实例
|
//创建身份牌实例
|
||||||
identityCard:function(identity,position,noclick){
|
identityCard:function(identity,position,noclick){
|
||||||
const card=ui.create.card(position,'noclick',noclick);
|
const card=ui.create.card(position,'noclick',noclick);
|
||||||
|
card.removeEventListener(lib.config.touchscreen?'touchend':'click',ui.click.card);
|
||||||
card.classList.add('button');
|
card.classList.add('button');
|
||||||
card._customintro=uiintro=>uiintro.add(`${get.translation(`${identity}${2}`)}的身份牌`);
|
card._customintro=uiintro=>uiintro.add(`${get.translation(`${identity}${2}`)}的身份牌`);
|
||||||
const fileName=`image/card/identity_${identity}.jpg`;
|
const fileName=`image/card/identity_${identity}.jpg`;
|
||||||
|
|
Loading…
Reference in New Issue