From 67785396c1d2a3740404bd993f74dcaad87304ab Mon Sep 17 00:00:00 2001 From: skotlex Date: Wed, 8 Aug 2007 20:56:11 +0000 Subject: - Changed the structure of the homunculus_db file so that the homunculus and its evolved version share the same line. Also added the evolution bonuses to it. - Updated the @homstats command to show evolution bonuses - Cleaned up the homunculus db structure. - Implemented the evolution stat growth bonuses. - Some small cleanups in the mercenary.c file - Corrected initial intimacy of a newly created homunculus (should be 21/1000) - Incremented the size of mob.c:summon.class_[] since mob_pouch has almost 350 entries. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10965 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/mercenary.h | 38 +++++++------------------------------- 1 file changed, 7 insertions(+), 31 deletions(-) (limited to 'src/map/mercenary.h') diff --git a/src/map/mercenary.h b/src/map/mercenary.h index 6103acc00..3b2d2661f 100644 --- a/src/map/mercenary.h +++ b/src/map/mercenary.h @@ -5,40 +5,16 @@ #define _MERCENARY_H_ struct homunculus_db { - int class_ ; + int base_class, evo_class; char name[NAME_LENGTH]; - int basemaxHP ; - int basemaxSP ; - int baseSTR ; - int baseAGI ; - int baseVIT ; - int baseINT ; - int baseDEX ; - int baseLUK ; + struct h_stats { + unsigned int HP, SP; + unsigned short str, agi, vit, int_, dex, luk; + } base, gmin, gmax, emin, emax; int foodID ; - int baseIntimacy ; - short baseHungry ; - long hungryDelay ; - int gminHP ; - int gmaxHP ; - int gminSP ; - int gmaxSP ; - int gminSTR ; - int gmaxSTR ; - int gminAGI ; - int gmaxAGI ; - int gminVIT ; - int gmaxVIT ; - int gminINT ; - int gmaxINT ; - int gminDEX ; - int gmaxDEX ; - int gminLUK ; - int gmaxLUK ; - int evo_class ; int baseASPD ; - unsigned char element, race, size; - int accessID ; + long hungryDelay ; + unsigned char element, race, base_size, evo_size; }; extern struct homunculus_db homuncumlus_db[MAX_HOMUNCULUS_CLASS]; enum { HOMUNCULUS_CLASS, HOMUNCULUS_FOOD }; -- cgit v1.2.3-70-g09d2