Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
thisiscoding1234 authored Feb 26, 2024
1 parent 5b4b422 commit 9a0a852
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 7 additions & 7 deletions src/iteman.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ def pickup(b):
return "item not found"

def drop(b, room):

return f"you dropped the {b}!"


def fault_drop(b, room):
"""
Removes the specified item from the player's inventory and adds it to the item list.
Expand All @@ -155,14 +160,9 @@ def drop(b, room):
t.append(c)
p.remove(x)
with open("h-inv.txt", "w", encoding="utf-8") as file:
a = str(t)
t = len(str(t)) - 1
c = a[1:t:]
file.write(c)
file.write(a)
with open("inv.txt", "w", encoding="utf-8") as file:
a = str(p)
t = len(str(p)) - 1
c = a[1:t:]
file.write(c)
file.write(a)
return f"you dropped the {b}!"
return "item not found"
4 changes: 1 addition & 3 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@

import argparse
import time as t

import housmans as h_man
import inputs as inp
import iteman as i_man

print("V 0.1.")
print("V 0.1.1")

parser = argparse.ArgumentParser(prog="Text-Based-Game")

parser.add_argument("-d", "--debug", action="store_true")
parser.add_argument("-c", "--custom", action="store_true")
args = parser.parse_args()
Expand Down

0 comments on commit 9a0a852

Please sign in to comment.