summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-08 19:37:56 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-09-08 19:37:56 +0000
commitbdc2958ced13d80122b040ab357fd002d5c0e550 (patch)
treed133c73651e4ac575964c91496ebe13ea631fc0a /src/map/clif.c
parent7a308b07b92f9aa82b0e3d8dc987d69f3535b7e2 (diff)
downloadhercules-bdc2958ced13d80122b040ab357fd002d5c0e550.tar.gz
hercules-bdc2958ced13d80122b040ab357fd002d5c0e550.tar.bz2
hercules-bdc2958ced13d80122b040ab357fd002d5c0e550.tar.xz
hercules-bdc2958ced13d80122b040ab357fd002d5c0e550.zip
- Unified the rest and ganstar paradise code into a single function.
- Moved the Happy State trigger to the regen function, it now triggers at the same time the SPTIME does. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8681 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index a8970a8b1..73ab29e6b 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -8921,8 +8921,7 @@ void clif_parse_ActionRequest_sub(struct map_session_data *sd, int action_type,
)) //No sitting during these states neither.
break;
pc_setsit(sd);
- skill_gangsterparadise(sd, 1); // ギャングスターパラダイス設定 fixed Valaris
- skill_rest(sd, 1); // TK_HPTIME sitting down mode [Dralnu]
+ skill_sit(sd, 1);
clif_sitting(sd);
break;
case 0x03: // standup
@@ -8935,8 +8934,7 @@ void clif_parse_ActionRequest_sub(struct map_session_data *sd, int action_type,
return;
}
pc_setstand(sd);
- skill_gangsterparadise(sd, 0);
- skill_rest(sd, 0); // TK_HPTIME standing up mode [Dralnu]
+ skill_sit(sd, 0);
WBUFW(buf, 0) = 0x8a;
WBUFL(buf, 2) = sd->bl.id;
WBUFB(buf,26) = 3;
@@ -11084,8 +11082,6 @@ void clif_parse_PMIgnoreList(int fd,struct map_session_data *sd)
*------------------------------------------
*/
void clif_parse_NoviceDoriDori(int fd, struct map_session_data *sd) {
- int level;
-
if (sd->state.doridori) return;
switch (sd->class_&MAPID_UPPERMASK)
@@ -11093,9 +11089,6 @@ void clif_parse_NoviceDoriDori(int fd, struct map_session_data *sd) {
case MAPID_TAEKWON:
if (!sd->state.rest)
break;
- if ((level = pc_checkskill(sd,TK_SPTIME)))
- sc_start(&sd->bl,SkillStatusChangeTable(TK_SPTIME),
- 100,level,skill_get_time(TK_SPTIME, level));
case MAPID_SUPER_NOVICE:
sd->state.doridori=1;
break;