1
0
Fork 0

💁🗑 delete dead code

This commit is contained in:
WEBXOSS 2017-08-15 11:19:24 +08:00
parent e6fbf8b067
commit 753d706004
3 changed files with 1 additions and 7216 deletions

View file

@ -1,103 +0,0 @@
'use strict';
var player,opponent;
function setup () {
player = game.hostPlayer;
opponent = game.guestPlayer;
player.shuffle();
opponent.shuffle();
player.setupLrigAsyn().callback(function () {
return opponent.setupLrigAsyn();
}).callback(function () {
return game.decideFirstPlayerAsyn();
}).callback(function () {
player.setupHands();
opponent.setupHands();
return player.redrawAsyn();
}).callback(function () {
return opponent.redrawAsyn();
}).callback(function () {
player.setupLifeCloth();
opponent.setupLifeCloth();
player.open();
opponent.open();
upPhase();
});
game.sendMsgQueue();
}
function upPhase () {
player.up();
drawPhase();
}
function drawPhase () {
player.draw(2);
enerPhase();
}
function enerPhase () {
player.chargeAsyn().callback(growPhase);
player.endEnerPhaseAsyn().callback(growPhase);
}
function growPhase () {
player.growAsyn().callback(mainPhase);
player.endGrowPhaseAsyn().callback(mainPhase);
}
function mainPhase () {
function loop () {
player.summonSigniAsyn().callback(loop);
player.trashSigniAsyn().callback(loop);
player.useSpellAsyn().callback(loop);
player.useMainPhaseArtsAsyn().callback(loop);
player.useActionEffectAsyn().callback(loop);
player.endMainPhaseAsyn().callback(attackPhase);
}
loop();
}
function attackPhase () {
artsStep();
}
function artsStep () {
function playerLoop () {
player.useAttackPhaseArtsAsyn().callback(playerLoop);
player.endArtsStepAsyn().callback(opponentLoop);
}
function opponentLoop () {
opponent.useAttackPhaseArtsAsyn().callback(opponentLoop);
opponent.endArtsStepAsyn().callback(signiAttackStep);
}
playerLoop();
}
function signiAttackStep () {
function loop () {
player.signiAttackAsyn().callback(loop);
player.endSigniAttackStepAsyn().callback(lrigAttackStep);
}
loop();
}
function lrigAttackStep () {
function loop () {
player.lrigAttackAsyn().callback(loop);
player.endLrigAttackStepAsyn().callback(endPhase);
}
loop();
}
function endPhase () {
var n = player.hands.length - 7;
if (n > 0) {
player.discardAsyn(n).callback(wixoss);
} else {
wixoss();
}
}
function wixoss () {
var tmp = player;
player = opponent;
opponent = tmp;
upPhase();
}

7112
archive.js

File diff suppressed because it is too large Load diff

@ -1 +1 @@
Subproject commit 65ea44c63cb20c22bdb6d753438058988d0ab653
Subproject commit 710248350eb1f5b4acfa46d971fe9f304822a2dd