summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorDastgir <dastgirp@gmail.com>2019-10-12 14:19:15 +0530
committerHaru <haru@dotalux.com>2019-11-17 15:24:46 +0100
commit227c4416b86549364a3cfaac55295dd29fafed46 (patch)
treea913cd37fd643dbcc595e2f2d7731d1ae39dccdb /src/map
parentea9895e5261a1496bc8ac8e0c7be5fab3d6d4ef9 (diff)
downloadhercules-227c4416b86549364a3cfaac55295dd29fafed46.tar.gz
hercules-227c4416b86549364a3cfaac55295dd29fafed46.tar.bz2
hercules-227c4416b86549364a3cfaac55295dd29fafed46.tar.xz
hercules-227c4416b86549364a3cfaac55295dd29fafed46.zip
Added Achievement Logs
Diffstat (limited to 'src/map')
-rw-r--r--src/map/achievement.c4
-rw-r--r--src/map/log.c1
-rw-r--r--src/map/log.h1
3 files changed, 4 insertions, 2 deletions
diff --git a/src/map/achievement.c b/src/map/achievement.c
index c2ebb5fdd..5215526a9 100644
--- a/src/map/achievement.c
+++ b/src/map/achievement.c
@@ -1051,10 +1051,10 @@ static void achievement_get_rewards_items(struct map_session_data *sd, const str
if (!itemdb->isstackable(it.nameid)) {
it.amount = 1;
for (int j = 0; j < total; ++j)
- pc->additem(sd, &it, 1, LOG_TYPE_SCRIPT);
+ pc->additem(sd, &it, 1, LOG_TYPE_ACHIEVEMENT);
} else {
it.amount = total;
- pc->additem(sd, &it, total, LOG_TYPE_SCRIPT);
+ pc->additem(sd, &it, total, LOG_TYPE_ACHIEVEMENT);
}
}
}
diff --git a/src/map/log.c b/src/map/log.c
index e4b5667e1..45335b16a 100644
--- a/src/map/log.c
+++ b/src/map/log.c
@@ -75,6 +75,7 @@ static char log_picktype2char(e_log_pick_type type)
case LOG_TYPE_SKILL: return '1'; // Skill
case LOG_TYPE_REFINE: return '2'; // Refine
case LOG_TYPE_OTHER: return 'X'; // Other
+ case LOG_TYPE_ACHIEVEMENT: return '3'; // Achievement
}
// should not get here, fallback
diff --git a/src/map/log.h b/src/map/log.h
index 80835645f..5035e9526 100644
--- a/src/map/log.h
+++ b/src/map/log.h
@@ -88,6 +88,7 @@ typedef enum e_log_pick_type {
LOG_TYPE_SKILL = 0x04000000,
LOG_TYPE_REFINE = 0x08000000,
LOG_TYPE_LOOT = 0x10000000,
+ LOG_TYPE_ACHIEVEMENT = 0x20000000,
// all
LOG_TYPE_ALL = 0xFFFFFFFF,