neelthee-mansion 3.4.1__py3-none-any.whl → 3.5.1__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.
@@ -15,7 +15,13 @@ GameState = {
15
15
  Neel-thee's Mansion of Amnesia
16
16
  '''
17
17
 
18
- global player, evil_mage, commands, NOTE_NUM, credits, characters, color_coding, quest_manager, revealer
18
+ global player, evil_mage, commands, NOTE_NUM, credits, color_coding, quest_manager, revealer, CHARACTERSLIST, BACKGROUNDS
19
+
20
+ BACKGROUNDS = [
21
+ 'Adventurer',
22
+ 'Artist',
23
+ 'Scholar',
24
+ ]
19
25
 
20
26
  revealer = KeyRevealer()
21
27
 
@@ -33,7 +39,7 @@ height = Height()
33
39
  weight = 0
34
40
 
35
41
 
36
- charactersList = [
42
+ CHARACTERSLIST = [
37
43
  {'name': 'Jack', 'age': 19, 'height': Height('6ft 3'), 'weight(LBs)': 213},
38
44
  {'name': 'Darcie-Mae', 'age': 19, 'height': Height('5ft 5'), 'weight(LBs)': 150},
39
45
  {'name': 'John', 'age': 25, 'height': Height('5ft 10'), 'weight(LBs)': 180},
@@ -923,15 +929,9 @@ def handle_guard_action(guard):
923
929
  else:
924
930
  return [False, [guard, True]] # Function was not found
925
931
 
926
- def main():
927
- global player, color_coding
928
- global charactersList
929
-
930
-
931
- df = pd.DataFrame(charactersList)
932
-
933
-
934
- # this is the initializer
932
+ def initializer():
933
+ global color_coding, player, CHARACTERSLIST
934
+ df = pd.DataFrame(CHARACTERSLIST)
935
935
  Standord_Player = loop_til_valid_input("Do you want to use a premade character?", "you didn't answer Y or N.", Y_N).value
936
936
 
937
937
  if Standord_Player:
@@ -943,9 +943,9 @@ def main():
943
943
  "That wasn't one of the characters. Please choose one.",
944
944
  int
945
945
  )
946
- lstIndex = last_index(charactersList)
946
+ lstIndex = last_index(CHARACTERSLIST)
947
947
  if selected_character <= lstIndex:
948
- character_info = charactersList[selected_character]
948
+ character_info = CHARACTERSLIST[selected_character]
949
949
  name = character_info['name']
950
950
  age = character_info['age']
951
951
  height = character_info['height']
@@ -965,46 +965,38 @@ def main():
965
965
  color_coding = loop_til_valid_input("Do you want color coding (Y/N)?", "you didn't answer Y or N.", Y_N).value
966
966
 
967
967
 
968
+ while True:
969
+ for idx, background in enumerate(BACKGROUNDS):
970
+ type_text(f"{idx}. {background}")
971
+
972
+ background = loop_til_valid_input("What background do you want? (please select the number to the left of them)", "You didn't pick one", int)
973
+ lstIndex = last_index(CHARACTERSLIST)
974
+ if background <= lstIndex:
975
+ background = BACKGROUNDS[background]
976
+ break
977
+ else:
978
+ type_text("You didn't pick one")
979
+
980
+
968
981
  # start the player in the Hall and sets up everything else
969
982
  player = PC(
970
983
  name,
971
984
  age,
972
- 'Warrior',
985
+ background,
973
986
  1,
974
987
  'Soldier',
975
988
  height,
976
989
  weight,
977
- [
978
- f"You joined the army at {14 if age >= 14 else age}",
979
- f"You joined the army to end the war and because you wanted glory",
980
- f"You spent your first year of service training and the rest on the front lines, surprisingly you didn't die",
981
- f"In your service, you made 3 friends, one of them died",
982
- f"You fought your enemies from the tops of the mountains to the vast oceans",
983
- f"Your father was never home; he was always off on great adventures until he died when you were {7 if age >= 7 else age}",
984
- f"You have no friends back home; you were always very lonely",
985
- f"You are an only child. You ran away from home to join the army; your mother misses you terribly",
986
- f"She was a baker, and you spent a lot of time helping her bake bread. You never went to school",
987
- f"The people you admire the most are Sam and Aragorn from Lord of the Rings, which you read as a child. You also read the Hunger Games when you were {13 if age >= 13 else age}",
988
- f"Your favorite weapon is a bow; however, the scimitar is a close second.",
989
- ],
990
- backstory=f"""
991
- You were born into a life of solitude as an only child. Your father was always away on grand adventures and passed away when you were just {7 if age >= 7 else age}. Your mother, a dedicated
992
- baker, raised you alone. Although she did her best, you spent most of your time helping her in the bakery rather than attending school, which left you feeling quite isolated.
993
-
994
- At the age of {14 if age >= 14 else age}, driven by a desire for glory and a wish to end the war, you left home to join the army. You spent your first year in rigorous training, followed by a
995
- harsh life on the front lines. Against all odds, you survived, forging bonds with three close friends—though one of them tragically died in battle. Your journey took you from the heights of
996
- mountains to the vast expanses of the ocean, each experience shaping who you are.
997
-
998
- You were deeply influenced by the heroes of your childhood—Sam and Aragorn from %*ITALIC*%Lord of the Rings%*RESET*%, which you read as a child, and the characters from %*ITALIC*%The Hunger
999
- Games%*RESET*%, which you read when you were {13 if age >= 13 else age}. These stories inspired you and fueled your dream of heroism. Though your favorite weapon is a bow, you also have a
1000
- fondness for the scimitar.
1001
-
1002
- Now, you find yourself in the Mansion of Amnesia, a place that seems to have erased your memories. The details of your past are fragmented, but the echoes of your history drive you forward.
1003
- You must navigate the mansion and uncover the truth behind your captivity, all while drawing strength from the remnants of your past.
1004
- """,
1005
- CURRENTROOM='Hall'
990
+ CURRENTROOM='Hall'
1006
991
  )
1007
992
 
993
+ def main():
994
+ global player, color_coding
995
+
996
+
997
+ # this is the initializer
998
+ initializer()
999
+
1008
1000
  # shows the instructions
1009
1001
  start()
1010
1002
 
neelthee_mansion/items.py CHANGED
@@ -141,7 +141,7 @@ class container:
141
141
  self.secret = secret
142
142
  self.lock = Lock(KeyCode) if KeyCode else None
143
143
  self.RevealCount = 0
144
- self.CurentRevealStr = "-" * len(self.value)
144
+ self.CurentRevealStr = "-" * len(self.lock.key_code) if isinstance(self.lock, Lock) else ""
145
145
 
146
146
  def take_contents(self, geter=None):
147
147
  if isinstance(self.lock, Lock) and self.lock.is_locked:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.4.1
3
+ Version: 3.5.1
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,14 +1,14 @@
1
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=XZTu_1eRQKp8ksNdbkkXmIEm9Pl6ll5As1WPSKs_KCg,46190
1
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=ocCqpc-UxQJso67dSIrSzA6ZkFObGt7JIYehx2M9Lm4,44030
2
2
  neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
3
3
  neelthee_mansion/Rooms.py,sha256=bJrlA5UoY4ihmb-Bx2dbjK5skCbpj2CT-tc9KQRTnDA,87871
4
4
  neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,95
6
6
  neelthee_mansion/all_game_utils.py,sha256=Xfty9uXiYAfmA6iVzJurq852ZBPn7a4gQUcUcaV9yEU,341
7
7
  neelthee_mansion/creatures.py,sha256=FsBVgO6drEKS97lVXUZhbzzqHdOogzNzI8qmBkzvSZ4,15267
8
- neelthee_mansion/items.py,sha256=ysXxbGTfVSW9gc8N4uGEZlQ-_Nsv2eFjHdfIBUGxBNQ,5101
8
+ neelthee_mansion/items.py,sha256=78roH1JNOf9eB7PgXkJhs8K6eVsg1By05BRUn5hrP4M,5148
9
9
  neelthee_mansion/utils.py,sha256=Wt1CdK4eCskrxRXkeKgzVoa_NIzwQ047dJU-b_e8pb8,13559
10
- neelthee_mansion-3.4.1.dist-info/METADATA,sha256=vjRF4-Z0WXQxLB4efupnHfaJiOGRsjXlXO_lYsgCVno,1991
11
- neelthee_mansion-3.4.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
- neelthee_mansion-3.4.1.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
- neelthee_mansion-3.4.1.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
- neelthee_mansion-3.4.1.dist-info/RECORD,,
10
+ neelthee_mansion-3.5.1.dist-info/METADATA,sha256=o5zFkzjSPOIFhkEusBy4oxCkavr8K4fULY6cD-wDAFA,1991
11
+ neelthee_mansion-3.5.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
+ neelthee_mansion-3.5.1.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
+ neelthee_mansion-3.5.1.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
+ neelthee_mansion-3.5.1.dist-info/RECORD,,