Skip to content

Commit

Permalink
Initialize default settings, possibly fixing some issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitteh6660 committed Jun 8, 2020
1 parent 976ca05 commit 31533a9
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions classes/classes/CoC.as
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ package classes
stage.focus = kGAMECLASS.mainView.mainText;
mainView.eventTestInput.x = -10207.5;
mainView.eventTestInput.y = -1055.1;
gameSettings.initializeDefaultSettings();
saves.loadPermObject();
mainViewManager.startUpButtons();
preLoadInterfaces();
Expand Down
15 changes: 15 additions & 0 deletions classes/classes/GameSettings.as
Original file line number Diff line number Diff line change
Expand Up @@ -463,5 +463,20 @@ package classes
outputText("Controls have been cleared!");
doNext(displayControls);
}

public function initializeDefaultSettings():void {
//Set default gameplay.
flags[kFLAGS.PRISON_ENABLED] = 0;
//Set default UI.
flags[kFLAGS.USE_OLD_FONT] 0;
flags[kFLAGS.USE_OLD_INTERFACE] = 0;
flags[kFLAGS.ANIMATE_STATS_BARS] = 1;
flags[kFLAGS.ENEMY_STATS_BARS_ENABLED] = 1;
flags[kFLAGS.SHOW_SPRITES_FLAG] = 2;
flags[kFLAGS.IMAGEPACK_ENABLED] = 1;
//Set default fetishes.
flags[kFLAGS.ADDICTIONS_ENABLED] = 1;
flags[kFLAGS.WATERSPORTS_ENABLED] = 0;
}
}
}
4 changes: 1 addition & 3 deletions classes/classes/Saves.as
Original file line number Diff line number Diff line change
Expand Up @@ -778,9 +778,7 @@ public function loadPermObject():void {
}
}
else { //Defaults certain settings for first-time startup.
flags[kFLAGS.IMAGEPACK_ENABLED] = 1;
flags[kFLAGS.SHOW_SPRITES_FLAG] = 2;
flags[kFLAGS.ANIMATE_STATS_BARS] = 1;
getGame().gameSettings.initializeDefaultSettings();
}
}

Expand Down

0 comments on commit 31533a9

Please sign in to comment.