diff options
author | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-18 12:48:56 +0000 |
---|---|---|
committer | ai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2010-12-18 12:48:56 +0000 |
commit | 2ce4ea3324da64930c77076194e2e8b2b8ab2e49 (patch) | |
tree | ceaf8c62f7e8a47f5e94f5cdad91455b1f33eb0f /src/map/battle.h | |
parent | f53dd3e3e3ae847c0871050464fc25f3f5863101 (diff) | |
download | hercules-2ce4ea3324da64930c77076194e2e8b2b8ab2e49.tar.gz hercules-2ce4ea3324da64930c77076194e2e8b2b8ab2e49.tar.bz2 hercules-2ce4ea3324da64930c77076194e2e8b2b8ab2e49.tar.xz hercules-2ce4ea3324da64930c77076194e2e8b2b8ab2e49.zip |
* Updates to handling of hair color/style and cloth color of characters.
- Moved limit shortcut defines from mmo.h to battle.h, as they are only required in files, which include battle.h (since pre-svn 2004/10/15).
- Moved hair style/color validation from char-server to map-server. This enables use of non-default limits as specified in battle config, rather than being restricted to hard-coded ones (bugreport:150).
- Cleaned up related capping of values in pc_changelook (related r1708).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14604 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.h')
-rw-r--r-- | src/map/battle.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/battle.h b/src/map/battle.h index 79ea13b1c..1a879f5b5 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -96,6 +96,13 @@ bool battle_check_range(struct block_list *src,struct block_list *bl,int range); void battle_consume_ammo(struct map_session_data* sd, int skill, int lv); // Ý’è +#define MIN_HAIR_STYLE battle_config.min_hair_style +#define MAX_HAIR_STYLE battle_config.max_hair_style +#define MIN_HAIR_COLOR battle_config.min_hair_color +#define MAX_HAIR_COLOR battle_config.max_hair_color +#define MIN_CLOTH_COLOR battle_config.min_cloth_color +#define MAX_CLOTH_COLOR battle_config.max_cloth_color + extern struct Battle_Config { int warp_point_debug; |