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

52 lines
No EOL
2 KiB
JavaScript

// Chapter 8 - Transition Load
function C008_DramaClass_Transition_Load() {
// Time is 13:30:00 at max in the transition, unlock if needed
if (CurrentTime >= 13.5 * 60 * 60 * 1000) CurrentTime = 13.5 * 60 * 60 * 1000;
StopTimer(CurrentTime);
PlayerReleaseBondage();
ActorSpecificClearInventory("Amanda", true);
ActorSpecificClearInventory("Sarah", true);
// Sets the clothes depending on the role
PlayerClothes(C008_DramaClass_JuliaIntro_PlayerRole);
ActorLoad("Amanda", "");
ActorSpecificSetCloth("Amanda", C008_DramaClass_JuliaIntro_AmandaRole);
ActorLoad("Sarah", "");
ActorSpecificSetCloth("Sarah", C008_DramaClass_JuliaIntro_SarahRole);
LeaveIcon = "";
// Resets the last bondage chapter for each so it counts again for chapter 8 part 2
for (var A = 0; A < Actor.length; A++)
Actor[A][ActorLastBondageChapter] = "NONE";
}
// Chapter 8 - Transition Run
function C008_DramaClass_Transition_Run() {
// Paints the background
DrawRect(0, 0, 800, 600, "black");
DrawImage(CurrentChapter + "/" + CurrentScreen + "/Julia.jpg", 800, 0);
// Sets if the transition is late or not
var LateForDrama = "Transition";
if (CurrentTime == 13.5 * 60 * 60 * 1000) LateForDrama = "Late";
// Draw the outro text
DrawText(GetText(LateForDrama + "1"), 400, 150, "White");
if (TextPhase >= 1) DrawText(GetText(LateForDrama + "2"), 400, 300, "White");
if ((TextPhase >= 2) && !GameLogQuery("C007_LunchBreak", "Amanda", "Stranded") && !GameLogQuery("C007_LunchBreak", "Sarah", "Stranded")) DrawText(GetText(LateForDrama + "3"), 400, 450, "White");
if ((TextPhase >= 2) && GameLogQuery("C007_LunchBreak", "Amanda", "Stranded")) DrawText(GetText("Amanda"), 400, 450, "White");
if ((TextPhase >= 2) && GameLogQuery("C007_LunchBreak", "Sarah", "Stranded")) DrawText(GetText("Sarah"), 400, 450, "White");
}
// Chapter 8 - Transition Click
function C008_DramaClass_Transition_Click() {
// Jump to the next animation
TextPhase++;
if (TextPhase >= 3) SetScene(CurrentChapter, "Julia");
}