give/takeitem *, 1: the 1 is optional

This commit is contained in:
PikalaxALT
2015-11-04 20:20:14 -05:00
parent 7fd20e6322
commit 3cadc7b012
108 changed files with 1722 additions and 1663 deletions

View File

@@ -206,14 +206,22 @@ writecode: macro
giveitem: macro
db giveitem_command
db \1 ; item
if _NARG == 2
db \2 ; quantity
else
db 1
endc
endm
enum takeitem_command
takeitem: macro
db takeitem_command
db \1 ; item
if _NARG == 2
db \2 ; quantity
else
db 1
endc
endm
enum checkitem_command
@@ -986,7 +994,11 @@ checkphonecall: macro
verbosegiveitem: macro
db verbosegiveitem_command
db \1 ; item
if _NARG == 2
db \2 ; quantity
else
db 1
endc
endm
enum verbosegiveitem2_command