- Fixed underflow issues when calculating dmotion.
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6860 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
7f776280a5
commit
6192e5a5e5
@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
|
|||||||
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
|
||||||
|
|
||||||
2006/05/30
|
2006/05/30
|
||||||
|
* Fixed underflow issues when calculating dmotion. [Skotlex]
|
||||||
* Fixed Absorb Spirit Spheres [Skotlex]
|
* Fixed Absorb Spirit Spheres [Skotlex]
|
||||||
* Added battle_config min_chat_delay (default 0, battle/client.conf)
|
* Added battle_config min_chat_delay (default 0, battle/client.conf)
|
||||||
specifies in ms what is the min delay between player sent chats
|
specifies in ms what is the min delay between player sent chats
|
||||||
|
@ -1937,9 +1937,9 @@ int status_calc_pc(struct map_session_data* sd,int first)
|
|||||||
|
|
||||||
|
|
||||||
// ----- DMOTION -----
|
// ----- DMOTION -----
|
||||||
//
|
//
|
||||||
status->dmotion = 800-status->agi*4;
|
i = 800-status->agi*4;
|
||||||
if(status->dmotion<400) status->dmotion = 400;
|
status->dmotion = cap_value(i, 400, 800);
|
||||||
|
|
||||||
// ----- HP MAX CALCULATION -----
|
// ----- HP MAX CALCULATION -----
|
||||||
|
|
||||||
@ -2360,12 +2360,11 @@ void status_calc_bl_sub_pc(struct map_session_data *sd, unsigned long flag)
|
|||||||
|
|
||||||
if(flag&(SCB_AGI|SCB_DSPD)) {
|
if(flag&(SCB_AGI|SCB_DSPD)) {
|
||||||
//Even though people insist this is too slow, packet data reports this is the actual real equation.
|
//Even though people insist this is too slow, packet data reports this is the actual real equation.
|
||||||
status->dmotion = 800-status->agi*4;
|
skill = 800-status->agi*4;
|
||||||
if(status->dmotion<400) status->dmotion = 400;
|
status->dmotion = cap_value(skill, 400, 800);
|
||||||
|
|
||||||
if(battle_config.pc_damage_delay_rate != 100)
|
if(battle_config.pc_damage_delay_rate != 100)
|
||||||
status->dmotion = status->dmotion*battle_config.pc_damage_delay_rate/100;
|
status->dmotion = status->dmotion*battle_config.pc_damage_delay_rate/100;
|
||||||
|
|
||||||
status->dmotion = status_calc_dmotion(&sd->bl, &sd->sc, b_status->dmotion);
|
status->dmotion = status_calc_dmotion(&sd->bl, &sd->sc, b_status->dmotion);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user