summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 386ea68a3..9d7f67f3e 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -8182,6 +8182,17 @@ void pc_overheat(struct map_session_data *sd, int val) {
return;
}
+
+/**
+ * Check if player is autolooting given itemID.
+ */
+bool pc_isautolooting(struct map_session_data *sd, int nameid)
+{
+ int i;
+ ARR_FIND(0, AUTOLOOTITEM_SIZE, i, sd->state.autolootid[i] == nameid);
+ return (i != AUTOLOOTITEM_SIZE);
+}
+
int pc_split_str(char *str,char **val,int num)
{
int i;