[Game Version: 0.69.420-PUBLIC#1814] Dr. Teyaal - On Recreation Deck after 2 ship battles

Status
Not open for further replies.

OrangeBurner

Well-Known Member
Mar 13, 2022
305
72
Dr. Teyaal shows up on the Zheng Shi recreation deck one battle before intented.
At Recreation Deck.png

This is because the code checks for if(flags["TEYAAL_SHIPFITES"] >= 2) instead of if(flags["TEYAAL_SHIPFITES"] >= 3).
Original code: teyaalTheEngineer.js, line: 432:
JavaScript:
if(flags["TEYAAL_SHIPFITES"] >= 2 && flags["TEYAAL_SHIPFITES"] != undefined && flags["TEYAAL_DRIFTED"] != 1)
{
    output("where you see Dr. Teyaal and ");
    showTeyaalAndSela();
    showName("Dr. Teyaal and...");
    if(flags["TEYAAL_SELA_MEETING"] == undefined)
    {
        //did PyriteQuest, first time:
        if(flags["SATELLITE_QUEST"] != undefined && flags["SATELLITE_QUEST"] >= 2) output("another, younger blue gryvain - the same smug techie that gave you a hard time recovering Kase’s satellite! They look so similar, you can’t help getting the feeling the pair are related. Mother and daughter?");
        //didn’t do quest, first time:
        else output("another, younger blue gryvain that looks similar enough to be Teyaal’s daughter.");
    }
    else output("Selarith sitting together, chatting casually over a drink.");
    //[Gryvain]
    if(flags["TEYAAL_SELA_MEETING"] == undefined) addButton(0,"Gryvain",docTeyaalFirstMeetingAfterFighties,"Gryvain","Approach the two Gryvain.");
    else addButton(0,"Gryvain",repeatTeyaalAndCoStuff,"Gryvain","Approach the two Gryvain.");
}
else output("currently empty.");
return false;
}

What I think it should be:
JavaScript:
if(flags["TEYAAL_SHIPFITES"] >= 3 && flags["TEYAAL_DRIFTED"] != 1)
{
    output("where you see Dr. Teyaal and ");
    showTeyaalAndSela();
    showName("Dr. Teyaal and...");
    if(flags["TEYAAL_SELA_MEETING"] == undefined)
    {
        //did PyriteQuest, first time:
        if(flags["SATELLITE_QUEST"] != undefined && flags["SATELLITE_QUEST"] >= 2) output("another, younger blue gryvain - the same smug techie that gave you a hard time recovering Kase’s satellite! They look so similar, you can’t help getting the feeling the pair are related. Mother and daughter?");
        //didn’t do quest, first time:
        else output("another, younger blue gryvain that looks similar enough to be Teyaal’s daughter.");
    }
    else output("Selarith sitting together, chatting casually over a drink.");
    //[Gryvain]
    if(flags["TEYAAL_SELA_MEETING"] == undefined) addButton(0,"Gryvain",docTeyaalFirstMeetingAfterFighties,"Gryvain","Approach the two Gryvain.");
    else addButton(0,"Gryvain",repeatTeyaalAndCoStuff,"Gryvain","Approach the two Gryvain.");
}
else output("currently empty.");
return false;
}

Save Attached: At recreation deck with 2 complete ship battles.
 

Attachments

  • Recreation Deck - Dr. Teyaal - After 2nd Ship Battle.json
    768.7 KB · Views: 1
Status
Not open for further replies.