forked from mirrors/webxoss-core
🚧 💁 add game text translation for WX16
This commit is contained in:
parent
f4b2dddab8
commit
35e22763d6
2 changed files with 5 additions and 7 deletions
10
CardInfo.js
10
CardInfo.js
|
@ -116237,10 +116237,10 @@ var CardInfo = {
|
||||||
auto: 'onAttack',
|
auto: 'onAttack',
|
||||||
effect: {
|
effect: {
|
||||||
actionAsyn: function () {
|
actionAsyn: function () {
|
||||||
// TODO: localize...
|
|
||||||
return this.player.selectNumberAsyn('LEVEL',1,2).callback(this,function (level) {
|
return this.player.selectNumberAsyn('LEVEL',1,2).callback(this,function (level) {
|
||||||
// TODO: show level...
|
|
||||||
this.game.tillTurnEndAdd(this,'level',level);
|
this.game.tillTurnEndAdd(this,'level',level);
|
||||||
|
// FIX ME: Keep showing current level for all signis.
|
||||||
|
this.player.opponent.showTextAsyn('LEVEL','number',level);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -116568,8 +116568,7 @@ var CardInfo = {
|
||||||
artsEffect: {
|
artsEffect: {
|
||||||
actionAsyn: function () {
|
actionAsyn: function () {
|
||||||
return Callback.forEach([this.player,this.player.opponent],function (player) {
|
return Callback.forEach([this.player,this.player.opponent],function (player) {
|
||||||
// TODO: default label...
|
return player.selectNumberAsyn('PUT_TO_ENER_ZONE',0,3,3).callback(this,function (count) {
|
||||||
return player.selectNumberAsyn('',0,3,3).callback(this,function (count) {
|
|
||||||
if (!count) return;
|
if (!count) return;
|
||||||
player.enerCharge(count);
|
player.enerCharge(count);
|
||||||
});
|
});
|
||||||
|
@ -119882,8 +119881,7 @@ var CardInfo = {
|
||||||
};
|
};
|
||||||
return this.player.selectSelfSigniAsyn(filter).callback(this,function (card) {
|
return this.player.selectSelfSigniAsyn(filter).callback(this,function (card) {
|
||||||
if (!card) return;
|
if (!card) return;
|
||||||
// TODO: client...
|
return this.player.selectTextAsyn('LEVEL',['+1','-1'],'raw').callback(this,function (text) {
|
||||||
return this.player.selectTextAsyn('',['+1','-1']).callback(this,function (text) {
|
|
||||||
var value = (text === '+1') ? 1 : -1;
|
var value = (text === '+1') ? 1 : -1;
|
||||||
this.game.tillTurnEndAdd(this,card,'level',value);
|
this.game.tillTurnEndAdd(this,card,'level',value);
|
||||||
});
|
});
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 744efe2b2e0e0d56e9ad48da411df1bb649a2865
|
Subproject commit bf5d95c5a0a30b27c69a7706a851c0cde13dab45
|
Loading…
Reference in a new issue