summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-03 00:27:22 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-03 00:27:22 +0000
commit8ba5f3a15f084a5fe168ccf597884d5e47265e3b (patch)
tree4474f8b29e83537a8b69349309bbf0557267dc3d /src/map/status.c
parent442f3ce3b9a8af792d874c0b0b62343fa229c7a4 (diff)
downloadhercules-8ba5f3a15f084a5fe168ccf597884d5e47265e3b.tar.gz
hercules-8ba5f3a15f084a5fe168ccf597884d5e47265e3b.tar.bz2
hercules-8ba5f3a15f084a5fe168ccf597884d5e47265e3b.tar.xz
hercules-8ba5f3a15f084a5fe168ccf597884d5e47265e3b.zip
- Moved Full Buster blind penalty to skill_counter_additional_effect
- Added a dummy blind duration of 10 secs to FullBuster. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8082 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 7aeaa39ae..feb497d7a 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -1846,17 +1846,17 @@ int status_calc_pc(struct map_session_data* sd,int first)
// Bonuses from cards and equipment as well as base stat, remember to avoid overflows.
i = status->str + sd->status.str + sd->param_bonus[0] + sd->param_equip[0];
- status->str = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->str = cap_value(i,0,USHRT_MAX);
i = status->agi + sd->status.agi + sd->param_bonus[1] + sd->param_equip[1];
- status->agi = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->agi = cap_value(i,0,USHRT_MAX);
i = status->vit + sd->status.vit + sd->param_bonus[2] + sd->param_equip[2];
- status->vit = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->vit = cap_value(i,0,USHRT_MAX);
i = status->int_+ sd->status.int_+ sd->param_bonus[3] + sd->param_equip[3];
- status->int_ = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->int_ = cap_value(i,0,USHRT_MAX);
i = status->dex + sd->status.dex + sd->param_bonus[4] + sd->param_equip[4];
- status->dex = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->dex = cap_value(i,0,USHRT_MAX);
i = status->luk + sd->status.luk + sd->param_bonus[5] + sd->param_equip[5];
- status->luk = i<0?0:(i>USHRT_MAX?USHRT_MAX:i);
+ status->luk = cap_value(i,0,USHRT_MAX);
// ------ BASE ATTACK CALCULATION ------