summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-08 20:56:11 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-08-08 20:56:11 +0000
commit67785396c1d2a3740404bd993f74dcaad87304ab (patch)
tree56ced4d9bb4ea4a6bd074ffd5a03d205bcdcbf60 /src/map/status.c
parent32d8ac256193c2caf9fe705b377739bbde541dc8 (diff)
downloadhercules-67785396c1d2a3740404bd993f74dcaad87304ab.tar.gz
hercules-67785396c1d2a3740404bd993f74dcaad87304ab.tar.bz2
hercules-67785396c1d2a3740404bd993f74dcaad87304ab.tar.xz
hercules-67785396c1d2a3740404bd993f74dcaad87304ab.zip
- 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
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 76ef761be..3f2fda92f 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2354,10 +2354,11 @@ int status_calc_homunculus(struct homun_data *hd, int first)
status->luk = hom->luk / 10;
if (first) { //[orn]
- status->def_ele = hd->homunculusDB->element;
+ const struct homunculus_db *db = hd->homunculusDB;
+ status->def_ele = db->element;
status->ele_lv = 1;
- status->race = hd->homunculusDB->race ;
- status->size = hd->homunculusDB->size ;
+ status->race = db->race;
+ status->size = (hom->class_ == db->evo_class)?db->evo_size:db->base_size;
status->rhw.range = 1 + status->size;
status->mode = MD_CANMOVE|MD_CANATTACK;
status->speed = DEFAULT_WALK_SPEED;