So, Fulminato, I'm doing something profoundly stupid and obsessive. I'm trying to make a modified version of the Calculator that allows me to track what the variables are in association with my save edits.
Right now I've integrated the version of the modded Calculator I made for 0.3 back in 2018 or 2019ish with the code base for 0.16.1 and I'm now debugging, and running into a Javascript compilation error I don't understand, so I thought I'd run it by you to see if you could diagnose it. (If you want nothing to do with this madness I don't blame you.)
Basically I've added a plot choice that allows you to obtain 50k more ProN in Stineford by pulling off a bank heist. (The succubi tunnel into the bank vaults via the tunnels leading into the tower and Orcent and Simon lead a diversionary attack on the town gate so that Yarra and co. can help the succubi replace the Sx reserves with crates of sand under Sx crystal tops while all the guards are distracted plus take any ProN lying around.) This means I have added a property to the PlotChoice object called "heist".
function PlotChoice(){
this.lucyDone = false;
this.slaverDone = false;
this.robinPotion = false;
this.succubiTowerDialogue = false;
this.whoringQum = false;
this.refuseWhoringQum = false;
this.heist = false;
//And so on...
Then I add a line of code reading the set of the heist property for the game calculus.
if(game.plotchoice.heist === true){
surplus += 50000
}
So far, so obvious. Problem is that the second line of code doesn't compile.
The Javascript error would be "Uncaught TypeError: Cannot read properties of undefined (reading 'heist')".
This would seem to indicate that the PlotChoice object hasn't been instantiated correctly, but hell if I have any idea what's wrong with it. Any suggestions?
EDIT: I'm a moron. It should be plotChoice.heist. That's what learning to code via VB gets you.