neelthee-mansion 3.23.5__tar.gz → 3.23.7__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/PKG-INFO +1 -1
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion/Mansion_of_Amnesia.py +20 -19
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion/Rooms.py +371 -371
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion/creatures.py +7 -56
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion/utils.py +1 -1
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion.egg-info/PKG-INFO +1 -1
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/setup.py +1 -1
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/LICENSE.md +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/README.md +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion/Books.py +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion/Quests.py +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion/__init__.py +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion/__main__.py +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion/all_game_utils.py +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion/items.py +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion.egg-info/entry_points.txt +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion.egg-info/requires.txt +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/neelthee_mansion.egg-info/top_level.txt +0 -0
- {neelthee_mansion-3.23.5 → neelthee_mansion-3.23.7}/setup.cfg +0 -0
@@ -127,12 +127,12 @@ def showInstructions():
|
|
127
127
|
"""
|
128
128
|
===========================
|
129
129
|
Commands:
|
130
|
-
go [
|
131
|
-
get [
|
132
|
-
search [
|
133
|
-
use [
|
134
|
-
put [
|
135
|
-
examine [
|
130
|
+
go [direction/teleport/number] - Move to another location
|
131
|
+
get [item] - Pick up an item from your current location
|
132
|
+
search [container] - Search a container in your current location
|
133
|
+
use [item] - Use an item from your inventory
|
134
|
+
put [item] [in] [container] - Put an item from your inventory into a container in your current location
|
135
|
+
examine [direction/container/item/NPC] - Find out some info about the object
|
136
136
|
sleep - Rest for a bit and regain some health
|
137
137
|
look - Look around your current location
|
138
138
|
quit - Quit the game
|
@@ -278,7 +278,7 @@ def Use(*Args):
|
|
278
278
|
if isinstance(item_obj, item):
|
279
279
|
if item_obj.sell(player):
|
280
280
|
add_text_to_textbox(info_text_area,
|
281
|
-
f"You sell the
|
281
|
+
f"You sell the {Item}"
|
282
282
|
)
|
283
283
|
player.inventory.remove(item_obj.name)
|
284
284
|
elif Item == "quill":
|
@@ -393,7 +393,7 @@ def start():
|
|
393
393
|
sleep(0.1)
|
394
394
|
# shows the main menu
|
395
395
|
add_text_to_textbox(info_text_area,
|
396
|
-
f"\nHello
|
396
|
+
f"\nHello {player.name} and welcome to my Role Playing Game. \nI hope you have fun!",
|
397
397
|
)
|
398
398
|
showInstructions()
|
399
399
|
|
@@ -496,10 +496,10 @@ def display_directions(text):
|
|
496
496
|
for direction in directions:
|
497
497
|
if direction in ROOMS[player.CURRENTROOM]["directions"]:
|
498
498
|
if direction != "teleport":
|
499
|
-
text += f"\n{direction_descriptions[room_type][direction]}
|
499
|
+
text += f"\n{direction_descriptions[room_type][direction]} {direction}."
|
500
500
|
|
501
501
|
if "teleport" in ROOMS[player.CURRENTROOM]["directions"]:
|
502
|
-
text += "\nThere is a
|
502
|
+
text += "\nThere is a teleportation circle on the ground."
|
503
503
|
|
504
504
|
return text
|
505
505
|
|
@@ -647,7 +647,7 @@ def monster_turn(player: PC, monster: creature):
|
|
647
647
|
player (PC): The player or ally.
|
648
648
|
monster (creature): The monster attacking.
|
649
649
|
"""
|
650
|
-
add_text_to_textbox(info_text_area, f"The
|
650
|
+
add_text_to_textbox(info_text_area, f"The {monster.name} attacks!")
|
651
651
|
damage = calculate_damage(monster, player)
|
652
652
|
player.take_damage(damage, info_text_area)
|
653
653
|
|
@@ -730,7 +730,7 @@ def use_special_ability(player: PC, monster: creature):
|
|
730
730
|
monster (creature): The monster being fought.
|
731
731
|
"""
|
732
732
|
if player.special_ability.ready:
|
733
|
-
player.special_ability.activate(monster,
|
733
|
+
player.special_ability.activate(monster, randint(calculate_damage_range(player.atpw)), info_text_area)
|
734
734
|
add_text_to_textbox(info_text_area,
|
735
735
|
f"You use your special ability: {player.special_ability.name}."
|
736
736
|
)
|
@@ -852,7 +852,7 @@ def handle_get_command(player: PC, *Args):
|
|
852
852
|
if item_name == ItemName:
|
853
853
|
player.inventory_add([ROOMS[player.CURRENTROOM]["items"][ItemName]], info_text_area)
|
854
854
|
del ROOMS[player.CURRENTROOM]["items"][ItemName]
|
855
|
-
add_text_to_textbox(info_text_area, f"
|
855
|
+
add_text_to_textbox(info_text_area, f"{item_name} got!")
|
856
856
|
return
|
857
857
|
add_text_to_textbox(info_text_area, f"Can't get {item_name}!")
|
858
858
|
|
@@ -862,12 +862,12 @@ def handle_look_command():
|
|
862
862
|
should_return = False
|
863
863
|
if "items" in ROOMS[player.CURRENTROOM]:
|
864
864
|
add_text_to_textbox(info_text_area,
|
865
|
-
f'The items in the room:
|
865
|
+
f'The items in the room: {", ".join(ROOMS[player.CURRENTROOM]["items"].keys())}.'
|
866
866
|
)
|
867
867
|
should_return = True
|
868
868
|
if "containers" in ROOMS[player.CURRENTROOM]:
|
869
869
|
add_text_to_textbox(info_text_area,
|
870
|
-
f"The containers here are:
|
870
|
+
f"The containers here are: {', '.join(ROOMS[player.CURRENTROOM]['containers'].keys())}"
|
871
871
|
)
|
872
872
|
should_return = True
|
873
873
|
if should_return:
|
@@ -899,7 +899,7 @@ def search_container(player: PC, Container):
|
|
899
899
|
key = PickKey(Container.lock)
|
900
900
|
Container.Unlock(key, player)
|
901
901
|
add_text_to_textbox(info_text_area,
|
902
|
-
f"You search the{' secret' if Container.secret else ''}
|
902
|
+
f"You search the{' secret' if Container.secret else ''} {ContainerName} and find a ",
|
903
903
|
newline=False
|
904
904
|
)
|
905
905
|
for searchitem in Container.contents:
|
@@ -912,7 +912,7 @@ def search_container(player: PC, Container):
|
|
912
912
|
else "\n"
|
913
913
|
)
|
914
914
|
add_text_to_textbox(info_text_area,
|
915
|
-
f"
|
915
|
+
f"{searchitem.name}{end_str}",
|
916
916
|
newline=False,
|
917
917
|
|
918
918
|
)
|
@@ -931,7 +931,7 @@ def put_in_container(player: PC, PutItem=None, container=None):
|
|
931
931
|
]
|
932
932
|
ROOMS[player.CURRENTROOM]["containers"][container].contents += [PutItem]
|
933
933
|
add_text_to_textbox(info_text_area,
|
934
|
-
f"You put you're
|
934
|
+
f"You put you're {PutItem.name} into the {container}",
|
935
935
|
)
|
936
936
|
|
937
937
|
|
@@ -1220,7 +1220,8 @@ def initializer():
|
|
1220
1220
|
exit()
|
1221
1221
|
|
1222
1222
|
def continue_setup():
|
1223
|
-
ask_color_coding()
|
1223
|
+
#ask_color_coding()
|
1224
|
+
choose_background()
|
1224
1225
|
|
1225
1226
|
def start_game():
|
1226
1227
|
# I will add more logic for starting the game later
|