summaryrefslogtreecommitdiff
path: root/src/map/pc.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2020-04-14 01:44:54 +0300
committerAndrei Karas <akaras@inbox.ru>2020-05-04 01:00:43 +0300
commite2808832a99ccd675825935b4a81c962a35d5e10 (patch)
treee140d3384159be98c0b9cf2635e9264f8a3cc532 /src/map/pc.h
parentb996dec80009b227b643f794fd69e3e78a0d5291 (diff)
downloadhercules-e2808832a99ccd675825935b4a81c962a35d5e10.tar.gz
hercules-e2808832a99ccd675825935b4a81c962a35d5e10.tar.bz2
hercules-e2808832a99ccd675825935b4a81c962a35d5e10.tar.xz
hercules-e2808832a99ccd675825935b4a81c962a35d5e10.zip
Use enum spirit_charm_types for charm type field
Diffstat (limited to 'src/map/pc.h')
-rw-r--r--src/map/pc.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/pc.h b/src/map/pc.h
index 6b2b44e2a..728c91669 100644
--- a/src/map/pc.h
+++ b/src/map/pc.h
@@ -439,7 +439,7 @@ END_ZEROED_BLOCK;
int spiritball, spiritball_old;
int spirit_timer[MAX_SPIRITBALL];
int charm_count;
- int charm_type;
+ enum spirit_charm_types charm_type;
int charm_timer[MAX_SPIRITCHARM];
unsigned char potion_success_counter; //Potion successes in row counter
unsigned char mission_count; //Stores the bounty kill count for TK_MISSION
@@ -1129,8 +1129,8 @@ END_ZEROED_BLOCK; /* End */
int (*load_combo) (struct map_session_data *sd);
- void (*add_charm) (struct map_session_data *sd, int interval, int max, int type);
- void (*del_charm) (struct map_session_data *sd, int count, int type);
+ void (*add_charm) (struct map_session_data *sd, int interval, int max, enum spirit_charm_types type);
+ void (*del_charm) (struct map_session_data *sd, int count, enum spirit_charm_types type);
void (*baselevelchanged) (struct map_session_data *sd);
int (*level_penalty_mod) (int diff, unsigned char race, uint32 mode, int type);