summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-11-07 17:05:56 -0200
committershennetsind <ind@henn.et>2013-11-07 17:05:56 -0200
commit8083daec0d94f78510411c9b225abcfa7e829e95 (patch)
treec872c4b13d0853c2acf426cdf85dd25d010e3974 /src/map/pc.c
parentb9b32ac7609e33c21b488d722103cc0eea16b12c (diff)
downloadhercules-8083daec0d94f78510411c9b225abcfa7e829e95.tar.gz
hercules-8083daec0d94f78510411c9b225abcfa7e829e95.tar.bz2
hercules-8083daec0d94f78510411c9b225abcfa7e829e95.tar.xz
hercules-8083daec0d94f78510411c9b225abcfa7e829e95.zip
Further item bind adjustments
Thanks to Haruna! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 752151888..07fba6e57 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -571,7 +571,7 @@ bool pc_can_give_items(struct map_session_data *sd)
/**
* Determines if player can give / drop / trade / vend bounded items
*/
-bool pc_can_give_bounded_items(struct map_session_data *sd)
+bool pc_can_give_bound_items(struct map_session_data *sd)
{
return pc->has_permission(sd, PC_PERM_TRADE_BOUND);
}
@@ -4535,7 +4535,7 @@ int pc_cart_additem(struct map_session_data *sd,struct item *item_data,int amoun
return 1;
}
- if( !itemdb_cancartstore(item_data, pc->get_group_level(sd)) || (item_data->bound > IBT_ACCOUNT && !pc->can_give_bounded_items(sd)))
+ if( !itemdb_cancartstore(item_data, pc->get_group_level(sd)) || (item_data->bound > IBT_ACCOUNT && !pc->can_give_bound_items(sd)))
{ // Check item trade restrictions [Skotlex]
clif->message (sd->fd, msg_txt(264));
return 1;/* TODO: there is no official response to this? */
@@ -8058,7 +8058,7 @@ int pc_setmadogear(TBL_PC* sd, int flag)
*------------------------------------------*/
int pc_candrop(struct map_session_data *sd, struct item *item)
{
- if( item && (item->expire_time || (item->bound && !pc->can_give_bounded_items(sd))) )
+ if( item && (item->expire_time || (item->bound && !pc->can_give_bound_items(sd))) )
return 0;
if( !pc->can_give_items(sd) ) //check if this GM level can drop items
return 0;
@@ -10395,7 +10395,7 @@ void pc_defaults(void) {
pc->class2idx = pc_class2idx;
pc->get_group_level = pc_get_group_level;
pc->can_give_items = pc_can_give_items;
- pc->can_give_bounded_items = pc_can_give_bounded_items;
+ pc->can_give_bound_items = pc_can_give_bound_items;
pc->can_use_command = pc_can_use_command;
pc->has_permission = pc_has_permission;