summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authortoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-20 18:54:18 +0000
committertoms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-20 18:54:18 +0000
commit6ae26ef0260b6f25c3f68115c300020a2b5b84b9 (patch)
tree59212169d7917653a9de6fcf19abfb25a7bac8fa /src/map/status.c
parentd8515bb0bf7a0c59f38923509ef52ba3a553dae8 (diff)
downloadhercules-6ae26ef0260b6f25c3f68115c300020a2b5b84b9.tar.gz
hercules-6ae26ef0260b6f25c3f68115c300020a2b5b84b9.tar.bz2
hercules-6ae26ef0260b6f25c3f68115c300020a2b5b84b9.tar.xz
hercules-6ae26ef0260b6f25c3f68115c300020a2b5b84b9.zip
- Fixed some Homunc issues with HR servers (capping some values)
- Added @hominfo command to obtain real values (not capped ones) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8378 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 7cd27b37a..446ed2213 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2206,12 +2206,12 @@ int status_calc_homunculus(struct homun_data *hd, int first)
status = &hd->base_status;
- status->str = (int) (hom->str / 10);
- status->agi = (int) (hom->agi / 10);
- status->vit = (int) (hom->vit / 10);
- status->dex = (int) (hom->dex / 10);
- status->int_ = (int) (hom->int_ / 10);
- status->luk = (int) (hom->luk / 10);
+ status->str = hom->str / 10;
+ status->agi = hom->agi / 10;
+ status->vit = hom->vit / 10;
+ status->dex = hom->dex / 10;
+ status->int_ = hom->int_ / 10;
+ status->luk = hom->luk / 10;
status->def_ele = hd->homunculusDB->element ; //[orn]
status->ele_lv = 1;
@@ -2220,9 +2220,8 @@ int status_calc_homunculus(struct homun_data *hd, int first)
status->rhw.range = 1 + status->size; //[orn]
status->mode = MD_CANMOVE|MD_CANATTACK|MD_ASSIST|MD_AGGRESSIVE|MD_CASTSENSOR; //[orn]
status->speed = DEFAULT_WALK_SPEED;
- status->aspd_rate = 1000;
- status->def = hom->level/10 + status->vit/5;
- status->mdef = hom->level/10 + status->int_/5;
+ status->def = cap_value(hom->level/10 + status->vit/5, 0, SCHAR_MAX);
+ status->mdef = cap_value(hom->level/10 + status->int_/5, 0, SCHAR_MAX);
status->hp = 1;
status->sp = 1;