From 3e249282517d4ada02989d4856c1233717a8b11c Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 22 Jul 2021 07:09:59 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - data/states/death.py - data/states/levels.py - data/states/main_menu.py - data/tools.py Fixes: - Should read `persistent` rather than `persistant`. - Should read `dictionary` rather than `dicitonary`. - Should read `beginning` rather than `begining`. --- data/states/death.py | 2 +- data/states/levels.py | 2 +- data/states/main_menu.py | 2 +- data/tools.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/data/states/death.py b/data/states/death.py index 1949fa5..e3ed284 100644 --- a/data/states/death.py +++ b/data/states/death.py @@ -128,7 +128,7 @@ def make_message_box(self): def make_state_dict(self): """ - Make the dicitonary of state methods for the scene. + Make the dictionary of state methods for the scene. """ state_dict = {c.TRANSITION_IN: self.transition_in, c.TRANSITION_OUT: self.transition_out, diff --git a/data/states/levels.py b/data/states/levels.py index 98debae..b32b189 100644 --- a/data/states/levels.py +++ b/data/states/levels.py @@ -386,7 +386,7 @@ def check_for_menu(self, keys): def update_game_data(self): """ - Update the persistant game data dictionary. + Update the persistent game data dictionary. """ self.game_data['last location'] = self.player.location self.game_data['last direction'] = self.player.direction diff --git a/data/states/main_menu.py b/data/states/main_menu.py index 82cc4e2..1b0cadc 100644 --- a/data/states/main_menu.py +++ b/data/states/main_menu.py @@ -143,7 +143,7 @@ def notify(self, event): def set_next_scene(self): """ Check if there is a saved game. If not, start - game at begining. Otherwise go to load game scene. + game at beginning. Otherwise go to load game scene. """ if not os.path.isfile("save.p"): next_scene = c.OVERWORLD diff --git a/data/tools.py b/data/tools.py index 88bc8d6..8823169 100644 --- a/data/tools.py +++ b/data/tools.py @@ -190,7 +190,7 @@ def notify_observers(self, event): each_observer.on_notify(event) def create_game_data_dict(): - """Create a dictionary of persistant values the player + """Create a dictionary of persistent values the player carries between states""" player_items = {'GOLD': dict([('quantity',100),