301 lines
8.7 KiB
JavaScript
301 lines
8.7 KiB
JavaScript
var Tutorial;
|
|
(function (Tutorial) {
|
|
Tutorial[(Tutorial["NONE"] = -1)] = "NONE";
|
|
Tutorial[(Tutorial["AV"] = 1)] = "AV";
|
|
Tutorial[(Tutorial["FACILITY_1"] = 2)] = "FACILITY_1";
|
|
Tutorial[(Tutorial["FACILITY_2"] = 3)] = "FACILITY_2";
|
|
Tutorial[(Tutorial["COMBATANT"] = 4)] = "COMBATANT";
|
|
Tutorial[(Tutorial["BATTLE"] = 5)] = "BATTLE";
|
|
Tutorial[(Tutorial["DECISIVE_BATTLE_1"] = 6)] = "DECISIVE_BATTLE_1";
|
|
Tutorial[(Tutorial["DECISIVE_BATTLE_2"] = 7)] = "DECISIVE_BATTLE_2";
|
|
Tutorial[(Tutorial["AV_2"] = 8)] = "AV_2";
|
|
Tutorial[(Tutorial["NEXT_DAY"] = 9)] = "NEXT_DAY";
|
|
Tutorial[(Tutorial["FORMATION"] = 10)] = "FORMATION";
|
|
})(Tutorial || (Tutorial = {}));
|
|
var Game_Tutorial = /** @class */ (function () {
|
|
function Game_Tutorial() {}
|
|
Game_Tutorial.prototype.currentTutorial = function () {
|
|
if ($slg.avInfo().currentAvList().length == 0) {
|
|
// AV撮影
|
|
return Tutorial.AV;
|
|
}
|
|
if ($gameSwitches.value(210)) {
|
|
if ($slg.facilityInfo().facilityList().length == 0) {
|
|
var f = $slg.facilityInfo().facilityAt(31);
|
|
if (!f.inConstruction()) {
|
|
if ($gameParty.gold() >= f.price()) {
|
|
// 施設建設
|
|
return Tutorial.FACILITY_1;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if ($slg.avInfo().currentAvList().length == 1) {
|
|
// AV撮影
|
|
if ($gameActors.actor(8).hpRate() === 1) {
|
|
if ($gameSwitches.value(105)) {
|
|
return Tutorial.AV_2;
|
|
}
|
|
return;
|
|
}
|
|
}
|
|
// 決戦
|
|
if ($slg.decisiveBattleInfo().canExecute()) {
|
|
return Tutorial.DECISIVE_BATTLE_1;
|
|
} else {
|
|
//return Tutorial.DECISIVE_BATTLE_2;
|
|
}
|
|
if (this.nextTarget() == TextManager.target_2_4) {
|
|
return Tutorial.FORMATION;
|
|
}
|
|
if (this.nextTarget() == TextManager.target_0_3) {
|
|
return Tutorial.FORMATION;
|
|
}
|
|
if (this.nextTarget() == TextManager.target_0_2) {
|
|
return Tutorial.FACILITY_1;
|
|
}
|
|
if (this.nextTarget() == TextManager.target_4_2) {
|
|
return Tutorial.FACILITY_1;
|
|
}
|
|
if (this.nextTarget() == TextManager.target_5_2) {
|
|
return Tutorial.FACILITY_1;
|
|
}
|
|
if (this.nextTarget() == TextManager.target_2_2) {
|
|
var f = $slg.facilityInfo().facilityAt(46);
|
|
if (f.inConstruction()) {
|
|
return Tutorial.NONE;
|
|
}
|
|
return Tutorial.FACILITY_1;
|
|
}
|
|
return Tutorial.NONE;
|
|
};
|
|
Game_Tutorial.prototype.nextTarget = function () {
|
|
var common = this.commonTutorial();
|
|
if (common) {
|
|
return common;
|
|
}
|
|
switch ($slg.stage()) {
|
|
case 1:
|
|
return this.nextTarget1();
|
|
case 2:
|
|
return this.nextTarget2();
|
|
case 3:
|
|
return this.nextTarget3();
|
|
case 4:
|
|
return this.nextTarget4();
|
|
case 5:
|
|
return this.nextTarget5();
|
|
}
|
|
return null;
|
|
};
|
|
Game_Tutorial.prototype.commonTutorial = function () {
|
|
if ($slg.facilityInfo().hasFacility(43)) {
|
|
if ($slg.manInfo().hireCount() == 0) {
|
|
return TextManager.target_0_1;
|
|
}
|
|
}
|
|
if ($gameSwitches.value(1084)) {
|
|
if (!$slg.facilityInfo().hasFacility(48)) {
|
|
var f = $slg.facilityInfo().facilityAt(48);
|
|
if (!$slg.facilityInfo().inConstruction(f)) {
|
|
return TextManager.target_0_2;
|
|
}
|
|
}
|
|
}
|
|
if ($slg.facilityInfo().hasFacility(28)) {
|
|
if (!$gameSwitches.value(357)) {
|
|
return TextManager.target_0_3;
|
|
}
|
|
}
|
|
};
|
|
Game_Tutorial.prototype.nextTarget1 = function () {
|
|
if ($slg.avInfo().finishedAvCount() == 0) {
|
|
return TextManager.target_1_1;
|
|
}
|
|
if ($gameSwitches.value(210)) {
|
|
if ($slg.facilityInfo().facilityList().length == 0) {
|
|
var f = $slg.facilityInfo().facilityAt(31);
|
|
if ($gameParty.gold() >= f.price()) {
|
|
// 施設建設
|
|
if ($gameSwitches.value(101)) {
|
|
return TextManager.target_1_3;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
} else {
|
|
return "";
|
|
}
|
|
if ($slg.avInfo().finishedAvCount() == 1) {
|
|
// AV撮影
|
|
if ($gameActors.actor(8).hpRate() === 1) {
|
|
if (!$gameSwitches.value(105)) {
|
|
return TextManager.target_1_7;
|
|
}
|
|
return TextManager.target_1_4;
|
|
}
|
|
}
|
|
if ($slg.decisiveBattleInfo().canExecute()) {
|
|
return TextManager.target_1_5;
|
|
} else {
|
|
if (!$gameSwitches.value(245)) {
|
|
return TextManager.target_1_6;
|
|
}
|
|
}
|
|
return TextManager.target_1_7;
|
|
};
|
|
Game_Tutorial.prototype.nextTarget2 = function () {
|
|
if ($gameSwitches.value(219)) {
|
|
return null;
|
|
}
|
|
var avInfo = $slg.avInfo();
|
|
if (!avInfo.hasAv(122)) {
|
|
return TextManager.target_2_1;
|
|
}
|
|
if ($gameSwitches.value(1037)) {
|
|
if (!$slg.facilityInfo().hasFacility(46)) {
|
|
return TextManager.target_2_2;
|
|
}
|
|
if (!$gameSwitches.value(243)) {
|
|
// ブスジマと同棲
|
|
if (!$gameSwitches.value(303)) {
|
|
return TextManager.target_2_8;
|
|
}
|
|
if (!$gameSwitches.value(352)) {
|
|
return TextManager.target_2_12;
|
|
}
|
|
}
|
|
}
|
|
if ($gameActors.actor(9).countSyusan() == 0) {
|
|
if ($gameActors.actor(9).boteId == 1) {
|
|
return TextManager.target_2_3;
|
|
} else {
|
|
return TextManager.target_2_13;
|
|
}
|
|
}
|
|
if (!$slg.formation().kaijinExists()) {
|
|
if ($slg.formation().kaijinCount() == 1) {
|
|
return TextManager.target_2_4;
|
|
}
|
|
}
|
|
if ($gameSwitches.value(216)) {
|
|
if (!$gameSwitches.value(243)) {
|
|
if ($gameSwitches.value(331)) {
|
|
return TextManager.target_2_11;
|
|
} else {
|
|
return TextManager.target_2_5;
|
|
}
|
|
} else {
|
|
if ($gameSwitches.value(218)) {
|
|
return TextManager.target_2_7;
|
|
} else {
|
|
return TextManager.target_2_6;
|
|
}
|
|
}
|
|
}
|
|
if (!$slg.facilityInfo().hasFacility(43)) {
|
|
return TextManager.target_2_10;
|
|
}
|
|
return null;
|
|
};
|
|
Game_Tutorial.prototype.nextTarget3 = function () {
|
|
var avInfo = $slg.avInfo();
|
|
if ($gameSwitches.value(229)) {
|
|
return TextManager.target_3_8;
|
|
}
|
|
if (!avInfo.hasAv(161)) {
|
|
return TextManager.target_3_1;
|
|
}
|
|
if (!$slg.facilityInfo().hasFacility(43)) {
|
|
return TextManager.target_3_7;
|
|
}
|
|
if ($gameSwitches.value(221)) {
|
|
if (!$slg.facilityInfo().hasFacility(64)) {
|
|
return TextManager.target_3_2;
|
|
}
|
|
}
|
|
if ($gameSwitches.value(1082)) {
|
|
if (!$gameSwitches.value(1084)) {
|
|
return TextManager.target_3_5;
|
|
}
|
|
if (!$gameSwitches.value(307)) {
|
|
return TextManager.target_3_6;
|
|
}
|
|
}
|
|
return TextManager.target_3_1;
|
|
};
|
|
Game_Tutorial.prototype.nextTarget4 = function () {
|
|
if ($gameSwitches.value(235)) {
|
|
return TextManager.target_4_11;
|
|
}
|
|
var avInfo = $slg.avInfo();
|
|
if (!avInfo.hasAv(261)) {
|
|
return TextManager.target_4_1;
|
|
}
|
|
if (!$gameSwitches.value(1144)) {
|
|
return TextManager.target_4_1;
|
|
}
|
|
if ($gameSwitches.value(1144)) {
|
|
if (!$slg.facilityInfo().hasFacility(50)) {
|
|
var f = $slg.facilityInfo().facilityAt(50);
|
|
if (!$slg.facilityInfo().inConstruction(f)) {
|
|
return TextManager.target_4_2;
|
|
}
|
|
}
|
|
}
|
|
if (!$gameSwitches.value(311)) {
|
|
//サキとカスゾウを同棲させましょう
|
|
return TextManager.target_4_3;
|
|
}
|
|
if (!$gameSwitches.value(109)) {
|
|
return TextManager.target_4_12;
|
|
}
|
|
if (!$slg.facilityInfo().hasFacility(71)) {
|
|
return TextManager.target_4_4;
|
|
}
|
|
var kaijinCount = $slg.formation().kaijinCount();
|
|
if (kaijinCount < 14) {
|
|
return TextManager.target_4_8.format(kaijinCount);
|
|
}
|
|
if (!$slg.facilityInfo().hasFacility(79)) {
|
|
return TextManager.target_4_9;
|
|
}
|
|
if ($gameSwitches.value(234)) {
|
|
return TextManager.target_4_10;
|
|
}
|
|
};
|
|
Game_Tutorial.prototype.nextTarget5 = function () {
|
|
if ($gameSwitches.value(249)) {
|
|
return TextManager.target_5_12;
|
|
}
|
|
var avInfo = $slg.avInfo();
|
|
if (!avInfo.hasAv(302)) {
|
|
return TextManager.target_5_1;
|
|
}
|
|
if (!$slg.facilityInfo().hasFacility(53)) {
|
|
var f = $slg.facilityInfo().facilityAt(53);
|
|
if (!$slg.facilityInfo().inConstruction(f)) {
|
|
return TextManager.target_5_2;
|
|
}
|
|
}
|
|
if (!$gameSwitches.value(315)) {
|
|
//ココナとオリバーを同棲させましょう
|
|
return TextManager.target_5_5;
|
|
}
|
|
if (!$slg.facilityInfo().hasFacility(72)) {
|
|
return TextManager.target_5_3;
|
|
}
|
|
if ($gameSwitches.value(240)) {
|
|
if (!$slg.facilityInfo().hasFacility(80)) {
|
|
return TextManager.target_5_11;
|
|
}
|
|
} else {
|
|
return TextManager.target_4_12;
|
|
}
|
|
if (!$gameSwitches.value(237)) {
|
|
return TextManager.target_5_10;
|
|
}
|
|
return TextManager.target_5_13;
|
|
};
|
|
return Game_Tutorial;
|
|
})();
|