fix: some format error.
This commit is contained in:
parent
83d33d268a
commit
744f6eafa0
File diff suppressed because it is too large
Load Diff
|
@ -357,7 +357,7 @@ export class Library {
|
||||||
_status.event._resultid = id;
|
_status.event._resultid = id;
|
||||||
game.resume();
|
game.resume();
|
||||||
};
|
};
|
||||||
$!;
|
"step 1";
|
||||||
var type = get.type2(card);
|
var type = get.type2(card);
|
||||||
event.list = game
|
event.list = game
|
||||||
.filterPlayer(
|
.filterPlayer(
|
||||||
|
@ -369,7 +369,7 @@ export class Library {
|
||||||
)
|
)
|
||||||
.sortBySeat(_status.currentPhase || player);
|
.sortBySeat(_status.currentPhase || player);
|
||||||
event.id = get.id();
|
event.id = get.id();
|
||||||
$!;
|
"step 2";
|
||||||
if (!event.list.length) event.finish();
|
if (!event.list.length) event.finish();
|
||||||
else if (
|
else if (
|
||||||
_status.connectMode &&
|
_status.connectMode &&
|
||||||
|
@ -386,14 +386,14 @@ export class Library {
|
||||||
trigger.parent.id,
|
trigger.parent.id,
|
||||||
trigger.yingbianZhuzhanAI
|
trigger.yingbianZhuzhanAI
|
||||||
);
|
);
|
||||||
$!;
|
"step 3";
|
||||||
if (result.bool) {
|
if (result.bool) {
|
||||||
event.zhuzhanresult = event.current;
|
event.zhuzhanresult = event.current;
|
||||||
event.zhuzhanresult2 = result;
|
event.zhuzhanresult2 = result;
|
||||||
if (event.current != game.me) game.delayx();
|
if (event.current != game.me) game.delayx();
|
||||||
event.goto(8);
|
event.goto(8);
|
||||||
} else event.goto(2);
|
} else event.goto(2);
|
||||||
$!;
|
"step 4";
|
||||||
var id = event.id,
|
var id = event.id,
|
||||||
sendback = (result, player) => {
|
sendback = (result, player) => {
|
||||||
if (result && result.id == id && !event.zhuzhanresult && result.bool) {
|
if (result && result.id == id && !event.zhuzhanresult && result.bool) {
|
||||||
|
@ -457,16 +457,16 @@ export class Library {
|
||||||
if (value != player) value.showTimer();
|
if (value != player) value.showTimer();
|
||||||
});
|
});
|
||||||
event.withol = withol;
|
event.withol = withol;
|
||||||
$!;
|
"step 5";
|
||||||
if (!result || !result.bool || event.zhuzhanresult) return;
|
if (!result || !result.bool || event.zhuzhanresult) return;
|
||||||
game.broadcast("cancel", event.id);
|
game.broadcast("cancel", event.id);
|
||||||
event.zhuzhanresult = game.me;
|
event.zhuzhanresult = game.me;
|
||||||
event.zhuzhanresult2 = result;
|
event.zhuzhanresult2 = result;
|
||||||
$!;
|
"step 6";
|
||||||
if (event.withol && !event.resultOL) game.pause();
|
if (event.withol && !event.resultOL) game.pause();
|
||||||
$!;
|
"step 7";
|
||||||
game.players.forEach((value) => value.hideTimer());
|
game.players.forEach((value) => value.hideTimer());
|
||||||
$!;
|
"step 8";
|
||||||
if (event.zhuzhanresult) {
|
if (event.zhuzhanresult) {
|
||||||
var target = event.zhuzhanresult;
|
var target = event.zhuzhanresult;
|
||||||
target.line(player, "green");
|
target.line(player, "green");
|
||||||
|
@ -12526,7 +12526,7 @@ export class Library {
|
||||||
"step 0";
|
"step 0";
|
||||||
event.dying = trigger.player;
|
event.dying = trigger.player;
|
||||||
if (!event.acted) event.acted = [];
|
if (!event.acted) event.acted = [];
|
||||||
$!;
|
"step 1";
|
||||||
if (trigger.player.isDead()) {
|
if (trigger.player.isDead()) {
|
||||||
event.finish();
|
event.finish();
|
||||||
return;
|
return;
|
||||||
|
@ -12597,7 +12597,7 @@ export class Library {
|
||||||
} else {
|
} else {
|
||||||
event._result = { bool: false };
|
event._result = { bool: false };
|
||||||
}
|
}
|
||||||
$!;
|
"step 2";
|
||||||
if (result.bool) {
|
if (result.bool) {
|
||||||
var player = trigger.player;
|
var player = trigger.player;
|
||||||
if (
|
if (
|
||||||
|
@ -12704,7 +12704,7 @@ export class Library {
|
||||||
content: function () {
|
content: function () {
|
||||||
"step 0";
|
"step 0";
|
||||||
event.logvid = trigger.getLogv();
|
event.logvid = trigger.getLogv();
|
||||||
$!;
|
"step 1";
|
||||||
event.targets = game.filterPlayer(function (current) {
|
event.targets = game.filterPlayer(function (current) {
|
||||||
return current != event.player && current.isLinked();
|
return current != event.player && current.isLinked();
|
||||||
});
|
});
|
||||||
|
@ -12714,7 +12714,7 @@ export class Library {
|
||||||
event._args = [trigger.num, trigger.nature, trigger.cards, trigger.card];
|
event._args = [trigger.num, trigger.nature, trigger.cards, trigger.card];
|
||||||
if (trigger.source) event._args.push(trigger.source);
|
if (trigger.source) event._args.push(trigger.source);
|
||||||
else event._args.push("nosource");
|
else event._args.push("nosource");
|
||||||
$!;
|
"step 2";
|
||||||
if (event.targets.length) {
|
if (event.targets.length) {
|
||||||
var target = event.targets.shift();
|
var target = event.targets.shift();
|
||||||
if (target.isLinked()) target.damage.apply(target, event._args.slice(0));
|
if (target.isLinked()) target.damage.apply(target, event._args.slice(0));
|
||||||
|
|
|
@ -91,7 +91,7 @@ export class LibInit {
|
||||||
event._resultid = null;
|
event._resultid = null;
|
||||||
event._result = null;
|
event._result = null;
|
||||||
game.pause();
|
game.pause();
|
||||||
$!;
|
"step 1";
|
||||||
if (result) {
|
if (result) {
|
||||||
if (event._resultid) {
|
if (event._resultid) {
|
||||||
result.id = event._resultid;
|
result.id = event._resultid;
|
||||||
|
@ -717,7 +717,7 @@ export class LibInit {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//func中要写步骤的话,必须要写step 0
|
//func中要写步骤的话,必须要写step 0
|
||||||
if (str.indexOf$! == -1) {
|
if (str.indexOf("step 0") == -1) {
|
||||||
str = "{if(event.step==1) {event.finish();return;}\n" + str;
|
str = "{if(event.step==1) {event.finish();return;}\n" + str;
|
||||||
} else {
|
} else {
|
||||||
let skip = 0;
|
let skip = 0;
|
||||||
|
|
Loading…
Reference in New Issue