summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-06-18 21:00:37 +0200
committerGitHub <noreply@github.com>2018-06-18 21:00:37 +0200
commit242bb0f939ff2e68fff8914853cbb87baa8296b6 (patch)
treede2b65845517132611aad62926ecc26ac6e8f846 /src/map/pc.c
parent2d840771eeee1d9e158e843bcc14f9d69d1cf22e (diff)
parentdfc078354025408dd5140e95702b0661b52d1e16 (diff)
downloadhercules-242bb0f939ff2e68fff8914853cbb87baa8296b6.tar.gz
hercules-242bb0f939ff2e68fff8914853cbb87baa8296b6.tar.bz2
hercules-242bb0f939ff2e68fff8914853cbb87baa8296b6.tar.xz
hercules-242bb0f939ff2e68fff8914853cbb87baa8296b6.zip
Merge pull request #2064 from 4144/updatepackets
update packets and message table for clients 20180530 to 20180612
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 1752a2b7c..922a39c5e 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -7385,7 +7385,8 @@ int pc_statusup2(struct map_session_data* sd, int type, int val)
* Update skill_lv for player sd
* Skill point allocation
*------------------------------------------*/
-int pc_skillup(struct map_session_data *sd,uint16 skill_id) {
+int pc_skillup(struct map_session_data *sd,uint16 skill_id)
+{
int index = 0;
nullpo_ret(sd);
@@ -7423,17 +7424,18 @@ int pc_skillup(struct map_session_data *sd,uint16 skill_id) {
clif->updatestatus(sd,SP_CARTINFO);
if (!pc_has_permission(sd, PC_PERM_ALL_SKILL)) // may skill everything at any time anyways, and this would cause a huge slowdown
clif->skillinfoblock(sd);
- } else if( battle_config.skillup_limit ){
- if (sd->sktree.second != 0)
+ } else if (battle_config.skillup_limit) {
+ if (sd->sktree.second != 0) {
#if PACKETVER >= 20090805
clif->msgtable_num(sd, MSG_UPGRADESKILLERROR_MORE_FIRSTJOBSKILL, sd->sktree.second);
#endif
- else if (sd->sktree.third != 0)
+ } else if (sd->sktree.third != 0) {
#if PACKETVER >= 20091013
clif->msgtable_num(sd, MSG_UPGRADESKILLERROR_MORE_SECONDJOBSKILL, sd->sktree.third);
#endif
- else if (pc->calc_skillpoint(sd) < 9) /* TODO: official response? */
+ } else if (pc->calc_skillpoint(sd) < 9) { /* TODO: official response? */
clif->messagecolor_self(sd->fd, COLOR_RED, "You need the basic skills");
+ }
}
return 0;
}