neelthee-mansion 3.19.1__py3-none-any.whl → 3.19.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.
@@ -744,12 +744,13 @@ def handle_go_command(direction):
744
744
 
745
745
  def handle_get_command(player: PC, *Args):
746
746
  item_name = " ".join(Args)
747
- for ItemName in ROOMS[player.CURRENTROOM]['items'].keys():
748
- if item_name == ItemName:
749
- player.inventory_add([ROOMS[player.CURRENTROOM]['items'][ItemName]])
750
- del ROOMS[player.CURRENTROOM]['items'][ItemName]
751
- type_text(f'%*BLUE*%{item_name}%*RESET*% got!', colorTrue=color_coding)
752
- return
747
+ if 'items' in ROOMS[player.CURRENTROOM]:
748
+ for ItemName in ROOMS[player.CURRENTROOM]['items'].keys():
749
+ if item_name == ItemName:
750
+ player.inventory_add([ROOMS[player.CURRENTROOM]['items'][ItemName]])
751
+ del ROOMS[player.CURRENTROOM]['items'][ItemName]
752
+ type_text(f'%*BLUE*%{item_name}%*RESET*% got!', colorTrue=color_coding)
753
+ return
753
754
  type_text(f"Can't get {item_name}!", colorTrue=color_coding)
754
755
 
755
756
  def handle_look_command():
neelthee_mansion/Rooms.py CHANGED
@@ -199,7 +199,9 @@ ROOMS = {
199
199
  'north': Door('Hall'),
200
200
  'east': Door('Garden'),
201
201
  },
202
- 'item': item('rations'),
202
+ 'items': {
203
+ 'rations': item('rations'),
204
+ },
203
205
  'containers': {
204
206
  'cupboards': container([item('money-pouch', 'valuable', 10)]),
205
207
  },
@@ -246,7 +248,9 @@ ROOMS = {
246
248
  'south': Door('Garden'),
247
249
  'north': Door('Sitting Room'),
248
250
  },
249
- 'item': item('potion'),
251
+ 'items': {
252
+ '': item('potion'),
253
+ },
250
254
  'containers': {
251
255
  'chandelier': container([item('gem', 'valuable', 50)]),
252
256
  },
@@ -517,7 +521,9 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
517
521
  'containers': {
518
522
  'stone': container([item('money-pouch', 'valuable', 25), Key('key', "629.IdnXwnt")], True),
519
523
  },
520
- 'item': item('tome'),
524
+ 'items': {
525
+ '': item('tome'),
526
+ },
521
527
  'info': 'You are in the middle of a stone tower. The only light comes from above, through the cracks around the hatch to above.',
522
528
  'map': '''
523
529
  █████████
@@ -576,7 +582,9 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
576
582
  'south': Door('Basement 3'),
577
583
  'east': Door('Basement 1'),
578
584
  },
579
- 'item': item('torch'),
585
+ 'items': {
586
+ 'torch': item('torch'),
587
+ },
580
588
  'containers': {
581
589
  'rack-1': container([item('bow', 'weapon', 4)]),
582
590
  'rack-2': container([item('spear', 'weapon', 3)]),
@@ -608,7 +616,9 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
608
616
  'west': Door('Basement Armoury'),
609
617
  'up': Door('Sitting Room'),
610
618
  },
611
- 'item': item('torch'),
619
+ 'items': {
620
+ 'torch': item('torch'),
621
+ },
612
622
  'info': 'You are in an dimly lit underground (all the light in the room comes from 3 %*BLUE*%torch%*RESET*%es on the walls). You hear a %*YELLOW*%ripping%*RESET*% from the\
613
623
  stairs going %*GREEN*%up%*RESET*%.',
614
624
  'map': '''
@@ -634,7 +644,9 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
634
644
  'north': Door('Basement 1'),
635
645
  'west': Door('Basement 3'),
636
646
  },
637
- 'item': item('torch'),
647
+ 'items': {
648
+ 'torch': item('torch'),
649
+ },
638
650
  'info': 'You are in an dimly lit underground (all the light in the room comes from 3 %*BLUE*%torch%*RESET*%es on the walls).',
639
651
  'map': '''
640
652
  ████║████
@@ -660,7 +672,9 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
660
672
  'east': Door('Basement 2'),
661
673
  'north': Door('Basement Armoury'),
662
674
  },
663
- 'item': item('torch'),
675
+ 'items': {
676
+ 'torch': item('torch'),
677
+ },
664
678
  'info': 'You are in an dimly lit underground (all the light in the room comes from 3 %*BLUE*%torch%*RESET*%es on the walls).',
665
679
  'map': '''
666
680
  ████║████
@@ -683,7 +697,9 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
683
697
  'east': Door('Library'),
684
698
  'shoot': Door('Cavern 1'),
685
699
  },
686
- 'item': item('torch'),
700
+ 'items': {
701
+ 'torch': item('torch'),
702
+ },
687
703
  'info': 'You are in an dimly lit underground (all the light in the room comes from 3 %*BLUE*%torch%*RESET*%es on the walls). there is a choot in the floor (type: \'go shoot\' to go down the shoot).',
688
704
  'map': '''
689
705
  ████║████
@@ -876,7 +892,9 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
876
892
  '8': Door('The Watch Castle'),
877
893
  '9': Door('The Old Manor'),
878
894
  },
879
- 'item': item('money-pouch', 'valuable', 10),
895
+ 'items': {
896
+ 'money-pouch': item('money-pouch', 'valuable', 10),
897
+ },
880
898
  'info': '''
881
899
  You are in a strange cave with many teleportation circles, as well as some ships that are floating above the floor.
882
900
 
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Alexander.E.Finlayson
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.19.1
3
+ Version: 3.19.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
@@ -17,6 +17,7 @@ Classifier: License :: OSI Approved :: MIT License
17
17
  Classifier: Operating System :: OS Independent
18
18
  Requires-Python: >=3.6
19
19
  Description-Content-Type: text/markdown
20
+ License-File: LICENSE.md
20
21
  Requires-Dist: wheel
21
22
  Requires-Dist: psutil
22
23
  Requires-Dist: playsound
@@ -37,11 +38,3 @@ Requires-Dist: pytz
37
38
  - Encounter and interact with different creatures.
38
39
  - Collect and use items throughout the game.
39
40
  - Navigate through quests that drive the narrative forward.
40
-
41
- ## Installation
42
-
43
- You can install **Neel-thee's Mansion of Amnesia** using `pip` from the Python Package Index (PyPI). Run the following commands to install and play **Neel-thee's Mansion of Amnesia**. You need wheel installed before you can install **Neel-thee's Mansion of Amnesia**. (warning! make sure you are using command line and even then sometimes it doesn't work. Please use Visual Studio Code or have turned off colour coding or it will brake):
44
-
45
- ```bash
46
- pip install wheel
47
- pip install --no-cache-dir neelthee_mansion
@@ -1,15 +1,16 @@
1
1
  neelthee_mansion/Books.py,sha256=P608nxbspB5wnGTKjK6ATrb4p-rCvfOxjwJ1O5tMhjY,25595
2
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=gih7G7ictcp9Ztb-5q1HEMya6kcEpjT2Wk0H49vJfoA,46714
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=WG0r4Vb3BwlBeYto4iGPek4I9UtmOP5AQEd4OfAA4_8,46784
3
3
  neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
4
- neelthee_mansion/Rooms.py,sha256=i6PjEPaa_OXtCGnaHMLhTdDmAsdhaMKujKtvn7QhZJI,90222
4
+ neelthee_mansion/Rooms.py,sha256=UgI0U6yXEtrhX_W3goARqxa20TdvuXg-MY3HJc_N-5Q,90805
5
5
  neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,95
7
7
  neelthee_mansion/all_game_utils.py,sha256=mnxws_YEnsoftkkBMZv1k_zlnGKWGenUvsZnNKjuFJQ,349
8
8
  neelthee_mansion/creatures.py,sha256=nc-6YQ7S89teDiypJdHKLLuq-q3UpbQCVGfJ4hnCb7M,15600
9
9
  neelthee_mansion/items.py,sha256=HTy9BhHWB0T_S53HFls0y6ER5jD7XAeI6PlY1ZnCZug,5711
10
10
  neelthee_mansion/utils.py,sha256=Wt1CdK4eCskrxRXkeKgzVoa_NIzwQ047dJU-b_e8pb8,13559
11
- neelthee_mansion-3.19.1.dist-info/METADATA,sha256=6qPHUbz0h6oDyhFM75EM1P4f5C5-SMQniD6GyydUKZo,2047
12
- neelthee_mansion-3.19.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
- neelthee_mansion-3.19.1.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
14
- neelthee_mansion-3.19.1.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
15
- neelthee_mansion-3.19.1.dist-info/RECORD,,
11
+ neelthee_mansion-3.19.3.dist-info/LICENSE.md,sha256=tAR2h-P_1Q5LSMD4Md8FM8SXP_XyPsyg8bihWyx2n8E,1099
12
+ neelthee_mansion-3.19.3.dist-info/METADATA,sha256=afn2BLCHQXUlpYq6MmVMDT34RKvHCVlqK8SThxtSA2o,1538
13
+ neelthee_mansion-3.19.3.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
14
+ neelthee_mansion-3.19.3.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
+ neelthee_mansion-3.19.3.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
+ neelthee_mansion-3.19.3.dist-info/RECORD,,