You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
807 B
25 lines
807 B
3 years ago
|
# /*
|
||
|
# * CheckItemcodeStatus
|
||
|
# *
|
||
|
# * By actboy168
|
||
|
# *
|
||
|
# */
|
||
|
#
|
||
|
#ifndef INCLUDE_BJ_OPTIMIZATION_CHECK_ITEMCODE_STATUS_H
|
||
|
#define INCLUDE_BJ_OPTIMIZATION_CHECK_ITEMCODE_STATUS_H
|
||
|
#
|
||
|
# include <YDTrigger/Common/switch.h>
|
||
|
#
|
||
|
# define CheckItemcodeStatus(itemId, status) \
|
||
|
YDTRIGGER_COMMON_SWITCH(CHECK_ITEMCODE_STATUS_## status, ( \
|
||
|
IsItemIdPowerup(itemId), \
|
||
|
IsItemIdSellable(itemId), \
|
||
|
IsItemIdPawnable(itemId), \
|
||
|
))
|
||
|
#
|
||
|
# define CHECK_ITEMCODE_STATUS_bj_ITEMCODE_STATUS_POWERUP 0
|
||
|
# define CHECK_ITEMCODE_STATUS_bj_ITEMCODE_STATUS_SELLABLE 1
|
||
|
# define CHECK_ITEMCODE_STATUS_bj_ITEMCODE_STATUS_PAWNABLE 2
|
||
|
#
|
||
|
#endif
|