Skip to content

Commit 9a0a852

Browse files
lol
1 parent 5b4b422 commit 9a0a852

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

src/iteman.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ def pickup(b):
136136
return "item not found"
137137

138138
def 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"

src/main.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
import argparse
44
import time as t
5-
65
import housmans as h_man
76
import inputs as inp
87
import iteman as i_man
98

10-
print("V 0.1.")
9+
print("V 0.1.1")
1110

1211
parser = argparse.ArgumentParser(prog="Text-Based-Game")
13-
1412
parser.add_argument("-d", "--debug", action="store_true")
1513
parser.add_argument("-c", "--custom", action="store_true")
1614
args = parser.parse_args()

0 commit comments

Comments
 (0)