Clean up handler
This commit is contained in:
parent
1eb7f0b07b
commit
f400a4c7c3
|
@ -77,7 +77,8 @@ class Handler(npyscreen.ButtonPress):
|
||||||
|
|
||||||
elif command == 'PICK':
|
elif command == 'PICK':
|
||||||
if arguments[0] == 'UP':
|
if arguments[0] == 'UP':
|
||||||
if len(arguments) <= 2: # If there are only 2 args ex:up, item then we dont need to merge that last arg
|
if len(
|
||||||
|
arguments) <= 2: # If there are only 2 args ex:up, item then we dont need to merge that last arg
|
||||||
try:
|
try:
|
||||||
# Argument[1] is the "thing" you want to pick up, yaml is lowercase so we lowercase it.
|
# Argument[1] is the "thing" you want to pick up, yaml is lowercase so we lowercase it.
|
||||||
self.parent.parentApp.log.info('Player tried to pick up {0}'.format(arguments[1]))
|
self.parent.parentApp.log.info('Player tried to pick up {0}'.format(arguments[1]))
|
||||||
|
|
Loading…
Reference in New Issue