neelthee-mansion 3.21.1__py3-none-any.whl → 3.21.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1118,11 +1118,7 @@ def initializer():
1118
1118
 
1119
1119
  # A tkinter window that asks these questions, instead of the console.Include a button that says "Exit Game". When the button is clicked, the game exits. Include a button that says "premade character". When the button is clicked, a new window opens that lets you choose one of the premade characters from teh CHARACTERSLIST var. Include a button that says "custom character". When the button is clicked, a new window opens that asks them for a name, age, hight, and waight(LBs).
1120
1120
  def create_main_menu():
1121
- def exit_game():
1122
- root.destroy()
1123
- quit()
1124
-
1125
- def premade_character():
1121
+ def show_premade_characters():
1126
1122
  def select_character():
1127
1123
  selected_character = character_listbox.curselection()
1128
1124
  if selected_character:
@@ -1132,12 +1128,12 @@ def initializer():
1132
1128
  height_entry.insert(0, character_info["height"])
1133
1129
  weight_entry.insert(0, character_info["weight(LBs)"])
1134
1130
  character_window.destroy()
1135
-
1136
1131
  character_window = tk.Toplevel(root)
1137
1132
  character_window.title("Select Premade Character")
1138
1133
  character_listbox = tk.Listbox(character_window)
1139
1134
  for character in CHARACTERSLIST:
1140
- character_listbox.insert(tk.END, character["name"])
1135
+ character_info = f"Name: {character['name']}, Age: {character['age']}, Height: {character['height']}, Weight: {character['weight(LBs)']} LBs"
1136
+ character_listbox.insert(tk.END, character_info)
1141
1137
  character_listbox.pack()
1142
1138
  select_button = tk.Button(character_window, text="Select", command=select_character)
1143
1139
  select_button.pack()
@@ -1147,6 +1143,9 @@ def initializer():
1147
1143
  age_entry.delete(0, tk.END)
1148
1144
  height_entry.delete(0, tk.END)
1149
1145
  weight_entry.delete(0, tk.END)
1146
+
1147
+ def exit_game():
1148
+ root.destroy()
1150
1149
 
1151
1150
  root = tk.Tk()
1152
1151
  root.title("Character Creation")
@@ -1167,7 +1166,7 @@ def initializer():
1167
1166
  weight_entry = tk.Entry(root)
1168
1167
  weight_entry.pack()
1169
1168
 
1170
- premade_button = tk.Button(root, text="Premade Character", command=premade_character)
1169
+ premade_button = tk.Button(root, text="Premade Character", command=show_premade_characters)
1171
1170
  premade_button.pack()
1172
1171
 
1173
1172
  custom_button = tk.Button(root, text="Custom Character", command=custom_character)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.21.1
3
+ Version: 3.21.3
4
4
  Summary: A text-based adventure game set in Neel-thee’s mansion.
5
5
  Home-page: https://github.com/Flameblade375/neelthee_mansion
6
6
  Author: Alexander.E.F
@@ -1,5 +1,5 @@
1
1
  neelthee_mansion/Books.py,sha256=Zs6GOi12vrikne-E37LdrLNRb6CyUogOCDApDGFj6Ls,26168
2
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=q1AP_t4kIUN7pbUqxEJXMyb71nNi6CLNkoIvIHUqLgw,52836
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=0KSVwuKIOxR17_oGvOgXY257X_HX1aliSwHTw4xTj_0,52990
3
3
  neelthee_mansion/Quests.py,sha256=pUlru2RugP57MACQORZaF_X9lsbefTdPYTSO474phgo,2791
4
4
  neelthee_mansion/Rooms.py,sha256=CgenMX9ssTCWbDFopX6GHhNDnRYF5MpaDufWvt5fPwU,86025
5
5
  neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -8,9 +8,9 @@ neelthee_mansion/all_game_utils.py,sha256=AasunTkFmgAqt9ZIoYmymi4R7leBe4ubW-C1ts
8
8
  neelthee_mansion/creatures.py,sha256=vUR8PmdiftCFBCGJbHkCT4AMUPvqwouDGQ4ye2fiPCw,20910
9
9
  neelthee_mansion/items.py,sha256=--DtMCZrurDAe3S-gB5DXAul_kmG9BGB0QmBY2-Fphc,6383
10
10
  neelthee_mansion/utils.py,sha256=GaCkein6dppeufYfBMk59gHAE2b4p9TJW2MsRjyyFvQ,13702
11
- neelthee_mansion-3.21.1.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
- neelthee_mansion-3.21.1.dist-info/METADATA,sha256=dnLVn1cLy-eSLH8gNeHru8CGZw-uCRtNj7qPq_A9PtU,1756
13
- neelthee_mansion-3.21.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
14
- neelthee_mansion-3.21.1.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
- neelthee_mansion-3.21.1.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
- neelthee_mansion-3.21.1.dist-info/RECORD,,
11
+ neelthee_mansion-3.21.3.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
+ neelthee_mansion-3.21.3.dist-info/METADATA,sha256=X5gnB-pKOpSql3tWl7iPXfh9n0P5unAPP2ly6YMO1QU,1756
13
+ neelthee_mansion-3.21.3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
14
+ neelthee_mansion-3.21.3.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
+ neelthee_mansion-3.21.3.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
+ neelthee_mansion-3.21.3.dist-info/RECORD,,