summaryrefslogtreecommitdiff
path: root/src/map/clif.cpp
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-12-18 13:57:40 -0500
committergumi <git@gumi.ca>2018-12-18 13:58:40 -0500
commitabf1b2697df06e95291014f7637cc0df6f5a10b1 (patch)
tree20fc26f51d491766691c27f6f22669f3c89166ef /src/map/clif.cpp
parent07ae3cf97e9f1e86ac792cc1140e0cae051625fc (diff)
downloadtmwa-abf1b2697df06e95291014f7637cc0df6f5a10b1.tar.gz
tmwa-abf1b2697df06e95291014f7637cc0df6f5a10b1.tar.bz2
tmwa-abf1b2697df06e95291014f7637cc0df6f5a10b1.tar.xz
tmwa-abf1b2697df06e95291014f7637cc0df6f5a10b1.zip
add player heal packetsv18.12.18
Diffstat (limited to 'src/map/clif.cpp')
-rw-r--r--src/map/clif.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/map/clif.cpp b/src/map/clif.cpp
index 95e4ef2..f2667ac 100644
--- a/src/map/clif.cpp
+++ b/src/map/clif.cpp
@@ -4121,6 +4121,31 @@ void clif_send_mask(dumb_ptr<map_session_data> sd, int map_mask)
clif_send(buf, sd, SendWho::SELF, wrap<ClientVersion>(2));
}
+void clif_send_hp_partial(dumb_ptr<map_session_data> sd)
+{
+ nullpo_retv(sd);
+
+ Packet_Fixed<0x0232> fixed_232;
+ fixed_232.account_id = sd->status_key.account_id;
+ fixed_232.hp = sd->status.hp;
+
+ Buffer buf = create_fpacket<0x0232, 10>(fixed_232);
+ clif_send(buf, sd, SendWho::AREA_WOS, wrap<ClientVersion>(9));
+}
+
+void clif_send_hp_full(dumb_ptr<map_session_data> sd)
+{
+ nullpo_retv(sd);
+
+ Packet_Fixed<0x0233> fixed_233;
+ fixed_233.account_id = sd->status_key.account_id;
+ fixed_233.hp = sd->status.hp;
+ fixed_233.max_hp = sd->status.max_hp;
+
+ Buffer buf = create_fpacket<0x0233, 14>(fixed_233);
+ clif_send(buf, sd, SendWho::AREA_WOS, wrap<ClientVersion>(9));
+}
+
/*==========================================
*
*------------------------------------------