Ejemplo n.º 1
0
	elif command[0] == "exit" or command[0] == "end":
		is_playing = False
		exit()
	
	elif command[0] == "podnieś" or command[0] == "podnies" or  command[0] == "pick_up":
		that_item = game.find_item(command, True)
		if that_item:
			hero.pick_up(that_item)
			game.time_progress(5)
		else:
			print("Nie ma tu takiej rzeczy")

	elif command[0] == "upuść" or command[0] == "upusc" or  command[0] == "drop":
		item_name = item_name_convert(command)
		if hero.is_in_eq(item_name) == True:
			hero.drop(item_name)
			game.time_progress(5)
		else:
			print("Nie masz czegoś takiego")

	elif command[0] == "ekwipunek" or command[0] == "equip" or  command[0] == "ekw" or  command[0] == "eq":
		hero.show_equip()
	
	elif command[0] == "wyposarzenie" or command[0] == "outfit":
		if hero.right_hand:
			print("W prawej ręce trzymasz  "+hero.right_hand.name)
		if hero.left_hand:
			print("W lewej ręce trzymasz   "+hero.left_hand.name)
		if hero.head:
			print("Na głowie      "+hero.head.name)
		if hero.torso: