summaryrefslogtreecommitdiff
path: root/src/map/pc.cpp
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-12-06 14:15:43 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-12-06 14:15:49 -0800
commit3eea219548e84efdbc3148ce378fcba865f97a01 (patch)
tree6ece594f60ddff038cf9c1d94b99d8d66a00bc20 /src/map/pc.cpp
parent1458563f00deebbbcf3e8049dc90157fb825fae3 (diff)
downloadtmwa-3eea219548e84efdbc3148ce378fcba865f97a01.tar.gz
tmwa-3eea219548e84efdbc3148ce378fcba865f97a01.tar.bz2
tmwa-3eea219548e84efdbc3148ce378fcba865f97a01.tar.xz
tmwa-3eea219548e84efdbc3148ce378fcba865f97a01.zip
Add basic source formatting tools
Diffstat (limited to 'src/map/pc.cpp')
-rw-r--r--src/map/pc.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 0b648d1..4cfa107 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -46,7 +46,7 @@ constexpr std::chrono::milliseconds PVP_CALCRANK_INTERVAL =
constexpr int MAGIC_SKILL_THRESHOLD = 200;
#endif
-#define MAP_LOG_STATS(sd, suffix) \
+#define MAP_LOG_STATS(sd, suffix) \
MAP_LOG_PC(sd, "STAT %d %d %d %d %d %d " suffix, \
sd->status.attrs[ATTR::STR], \
sd->status.attrs[ATTR::AGI], \
@@ -55,20 +55,20 @@ constexpr int MAGIC_SKILL_THRESHOLD = 200;
sd->status.attrs[ATTR::DEX], \
sd->status.attrs[ATTR::LUK])
-#define MAP_LOG_XP(sd, suffix) \
- MAP_LOG_PC(sd, "XP %d %d JOB %d %d %d ZENY %d + %d " suffix, \
- sd->status.base_level, sd->status.base_exp, \
- sd->status.job_level, sd->status.job_exp, sd->status.skill_point, \
+#define MAP_LOG_XP(sd, suffix) \
+ MAP_LOG_PC(sd, "XP %d %d JOB %d %d %d ZENY %d + %d " suffix, \
+ sd->status.base_level, sd->status.base_exp, \
+ sd->status.job_level, sd->status.job_exp, sd->status.skill_point, \
sd->status.zeny, pc_readaccountreg(sd, stringish<VarName>("BankAccount")))
-#define MAP_LOG_MAGIC(sd, suffix) \
- MAP_LOG_PC(sd, "MAGIC %d %d %d %d %d %d EXP %d %d " suffix, \
- sd->status.skill[SkillID::TMW_MAGIC].lv, \
- sd->status.skill[SkillID::TMW_MAGIC_LIFE].lv, \
- sd->status.skill[SkillID::TMW_MAGIC_WAR].lv, \
- sd->status.skill[SkillID::TMW_MAGIC_TRANSMUTE].lv, \
- sd->status.skill[SkillID::TMW_MAGIC_NATURE].lv, \
- sd->status.skill[SkillID::TMW_MAGIC_ETHER].lv, \
+#define MAP_LOG_MAGIC(sd, suffix) \
+ MAP_LOG_PC(sd, "MAGIC %d %d %d %d %d %d EXP %d %d " suffix, \
+ sd->status.skill[SkillID::TMW_MAGIC].lv, \
+ sd->status.skill[SkillID::TMW_MAGIC_LIFE].lv, \
+ sd->status.skill[SkillID::TMW_MAGIC_WAR].lv, \
+ sd->status.skill[SkillID::TMW_MAGIC_TRANSMUTE].lv, \
+ sd->status.skill[SkillID::TMW_MAGIC_NATURE].lv, \
+ sd->status.skill[SkillID::TMW_MAGIC_ETHER].lv, \
pc_readglobalreg(sd, stringish<VarName>("MAGIC_EXPERIENCE")) & 0xffff, \
(pc_readglobalreg(sd, stringish<VarName>("MAGIC_EXPERIENCE")) >> 24) & 0xff)