summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwushin <pasekei@gmail.com>2016-03-09 13:28:42 -0600
committermekolat <mekolat@users.noreply.github.com>2016-04-15 11:47:10 -0400
commitf4183108c70a51217edf07a63e843f1a5d2c1747 (patch)
tree50b0187a5e99ff74c52a4ea0e078c42f7dcd9962
parentbd9a15547dab82334bbeafc00c1208cbbcdf6f69 (diff)
downloadtmwa-f4183108c70a51217edf07a63e843f1a5d2c1747.tar.gz
tmwa-f4183108c70a51217edf07a63e843f1a5d2c1747.tar.bz2
tmwa-f4183108c70a51217edf07a63e843f1a5d2c1747.tar.xz
tmwa-f4183108c70a51217edf07a63e843f1a5d2c1747.zip
Expose sd->heal_xp
-rw-r--r--src/map/pc.cpp3
-rw-r--r--src/mmo/clif.t.hpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/map/pc.cpp b/src/map/pc.cpp
index 0f6c9a6..929143c 100644
--- a/src/map/pc.cpp
+++ b/src/map/pc.cpp
@@ -3445,6 +3445,9 @@ int pc_readparam(dumb_ptr<block_list> bl, SP type)
case SP::MAXHP:
val = battle_get_max_hp(bl);
break;
+ case SP::HEALXP:
+ val = sd ? sd->heal_xp : 0;
+ break;
case SP::SP:
val = sd ? sd->status.sp : 0;
break;
diff --git a/src/mmo/clif.t.hpp b/src/mmo/clif.t.hpp
index 888fd66..3571a1e 100644
--- a/src/mmo/clif.t.hpp
+++ b/src/mmo/clif.t.hpp
@@ -234,7 +234,8 @@ enum class SP : uint16_t
MAXSP = 8,
// sent to client
STATUSPOINT = 9,
-
+ // sent to client
+ HEALXP = 10,
// sent to client
BASELEVEL = 11,
// sent to client