From ce1208eb233cab2923c82ba61d546b108e056fc0 Mon Sep 17 00:00:00 2001 From: L0ne_W0lf Date: Thu, 2 Dec 2010 19:23:32 +0000 Subject: * Added item type IT_CASH (item type 18) Requires user confirmation before using/generating item(s). * Updated the item types for several of the cash item boxes to 18. * Fixed the Exorcism_Bible bonus, missing {}'s for who knows how long. (bugreport:4342) * Updated Brasilis monsters stats again, care of Playtester. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14549 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/common/mmo.h | 1 + src/map/pc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/common/mmo.h b/src/common/mmo.h index fd29bc211..d2bc93a04 100644 --- a/src/common/mmo.h +++ b/src/common/mmo.h @@ -181,6 +181,7 @@ enum item_types { IT_UNKNOWN2,//9 IT_AMMO, //10 IT_DELAYCONSUME,//11 + IT_CASH = 18, IT_MAX }; diff --git a/src/map/pc.c b/src/map/pc.c index ac352524e..9d8ad29b0 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -3529,7 +3529,7 @@ int pc_isUseitem(struct map_session_data *sd,int n) if( item == NULL ) return 0; //Not consumable item - if( item->type != IT_HEALING && item->type != IT_USABLE ) + if( item->type != IT_HEALING && item->type != IT_USABLE && item->type != IT_CASH ) return 0; if( !item->script ) //if it has no script, you can't really consume it! return 0; -- cgit v1.2.3-70-g09d2