diff options
author | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-09-06 15:21:25 +0000 |
---|---|---|
committer | zephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-09-06 15:21:25 +0000 |
commit | 59e98faf7bfc79b13cf1f2d006d19e1c08e8d5d1 (patch) | |
tree | 61eab22a7f17de14dfc078b8c91f432fcabbdb53 /src/map/mercenary.h | |
parent | 0769d6ded1ef403ed60d7d5d010ff4cec8b02c19 (diff) | |
download | hercules-59e98faf7bfc79b13cf1f2d006d19e1c08e8d5d1.tar.gz hercules-59e98faf7bfc79b13cf1f2d006d19e1c08e8d5d1.tar.bz2 hercules-59e98faf7bfc79b13cf1f2d006d19e1c08e8d5d1.tar.xz hercules-59e98faf7bfc79b13cf1f2d006d19e1c08e8d5d1.zip |
- Renamed createmercenary to mercenary_create.
- Added other required mercenary script commands for official script.
- New Constants entries for this script.
- Update to missing configuration on mercenary skills.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13195 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/mercenary.h')
-rw-r--r-- | src/map/mercenary.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/map/mercenary.h b/src/map/mercenary.h index 826133660..1cc689208 100644 --- a/src/map/mercenary.h +++ b/src/map/mercenary.h @@ -7,6 +7,12 @@ #include "status.h" // struct status_data, struct status_change #include "unit.h" // struct unit_data +enum { + ARCH_MERC_GUILD, + SPEAR_MERC_GUILD, + SWORD_MERC_GUILD, +}; + struct s_mercenary_db { int class_; char sprite[NAME_LENGTH], name[NAME_LENGTH]; @@ -31,11 +37,12 @@ struct mercenary_data { struct s_mercenary_db *db; struct s_mercenary mercenary; + char blockskill[MAX_SKILL]; struct map_session_data *master; int contract_timer; - - char blockskill[MAX_SKILL]; + + unsigned devotion_flag : 1; }; bool merc_class(int class_); @@ -53,6 +60,7 @@ int merc_delete(struct mercenary_data *md, int reply); void merc_contract_stop(struct mercenary_data *md); int mercenary_get_lifetime(struct mercenary_data *md); +int mercenary_get_guild(struct mercenary_data *md); int mercenary_get_faith(struct mercenary_data *md); int mercenary_set_faith(struct mercenary_data *md, int value); int mercenary_get_calls(struct mercenary_data *md); |