File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -136,6 +136,11 @@ def pickup(b):
136136 return "item not found"
137137
138138def drop (b , room ):
139+
140+ return f"you dropped the { b } !"
141+
142+
143+ def fault_drop (b , room ):
139144 """
140145 Removes the specified item from the player's inventory and adds it to the item list.
141146
@@ -155,14 +160,9 @@ def drop(b, room):
155160 t .append (c )
156161 p .remove (x )
157162 with open ("h-inv.txt" , "w" , encoding = "utf-8" ) as file :
158- a = str (t )
159- t = len (str (t )) - 1
160- c = a [1 :t :]
161- file .write (c )
163+ file .write (a )
162164 with open ("inv.txt" , "w" , encoding = "utf-8" ) as file :
163165 a = str (p )
164- t = len (str (p )) - 1
165- c = a [1 :t :]
166- file .write (c )
166+ file .write (a )
167167 return f"you dropped the { b } !"
168168 return "item not found"
Original file line number Diff line number Diff line change 22
33import argparse
44import time as t
5-
65import housmans as h_man
76import inputs as inp
87import iteman as i_man
98
10- print ("V 0.1.1β " )
9+ print ("V 0.1.1 " )
1110
1211parser = argparse .ArgumentParser (prog = "Text-Based-Game" )
13-
1412parser .add_argument ("-d" , "--debug" , action = "store_true" )
1513parser .add_argument ("-c" , "--custom" , action = "store_true" )
1614args = parser .parse_args ()
You can’t perform that action at this time.
0 commit comments