bondage-college-mirr/C010_Revenge/Outro/Script.js
Ben987 7e4d84a1ba Added a global MainCanvas to replace all the declared "ctx"
Added a global MainCanvas to replace all the declared "ctx"
2018-03-26 18:52:01 -04:00

53 lines
1.8 KiB
JavaScript

var C010_Revenge_Outro_GoodEnding = false;
// Chapter 10 - Outro Load
function C010_Revenge_Outro_Load() {
// Time is always 15:15:00 in the outro, reset the poses if needed
StopTimer(15.25 * 60 * 60 * 1000);
if (C010_Revenge_AmandaSarah_ItemStolen) PlayerRestoreAllInventory();
PlayerReleaseBondage();
PlayerClothes("Clothed");
ActorSpecificClearInventory("Amanda", true);
ActorSpecificClearInventory("Sarah", true);
ActorSpecificClearInventory("Sidney", true);
ActorSpecificClearInventory("Jennifer", true);
ActorSpecificSetPose("Amanda", "");
ActorSpecificSetPose("Sarah", "");
ActorSpecificSetPose("Sidney", "");
ActorSpecificSetPose("Jennifer", "");
Common_PlayerPose = "";
}
// Chapter 10 - Outro Run
function C010_Revenge_Outro_Run() {
// Paints the background
DrawRect(0, 0, 800, 600, "black");
// Sets the correct text to fetch
var OutroText = "";
if (GameLogQuery("C007_LunchBreak", "Amanda", "Stranded") || GameLogQuery("C007_LunchBreak", "Sarah", "Stranded")) OutroText = "AmandaSarah";
if (GameLogQuery("C007_LunchBreak", "Sidney", "Stranded") || GameLogQuery("C007_LunchBreak", "Jennifer", "Stranded")) OutroText = "SidneyJennifer";
// Draw the background image
if (TextPhase >= 2) DrawImage(CurrentChapter + "/" + CurrentScreen + "/Bell.jpg", 800, 0);
if (TextPhase < 2) DrawImage(CurrentChapter + "/" + CurrentScreen + "/" + OutroText + ".jpg", 800, 0);
// Shows the text
if (C010_Revenge_Outro_GoodEnding) OutroText = OutroText + "Good";
DrawText(GetText(OutroText + "1"), 400, 150, "White");
if (TextPhase >= 1) DrawText(GetText(OutroText + "2"), 400, 300, "White");
if (TextPhase >= 2) DrawText(GetText(OutroText + "3"), 400, 450, "White");
}
// Chapter 10 - Outro Click
function C010_Revenge_Outro_Click() {
// Jump to the next animation
TextPhase++;
if (TextPhase >= 3) SaveMenu("C101_KinbakuClub", "Intro");
}