Skip to content

Commit

Permalink
change(save): Added Notification After Forcing Save (pokeclicker#5411)
Browse files Browse the repository at this point in the history
Added a notification when a player forces a save so they get some feedback about the game actually saving. This is only for pressing the hotkey and not each time the game autosaves by itself.

Co-authored-by: CypherX <[email protected]>
  • Loading branch information
EatPant2nd and CypherX authored Jul 7, 2024
1 parent 0820252 commit f84420d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/scripts/GameController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,7 @@ class GameController {
case Settings.getSetting('hotkey.forceSave').value:
if (GameController.keyHeld.Shift()) {
Save.store(player);
Notifier.notify({ message: 'Game Saved!'});
return e.preventDefault();
}
break;
Expand Down

0 comments on commit f84420d

Please sign in to comment.