Issue information

Issue ID
#3179
Status
Fixed
Severity
Fair
Started
Hercules Elf Bot
Jun 4, 2009 9:29
Last Post
Hercules Elf Bot
Apr 19, 2012 10:08
Confirmation
N/A

Hercules Elf Bot - Jun 4, 2009 9:29

Originally posted by [b]theultramage[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=3179

There are several battle config settings that get 'post-processed' after loading them, limiting their values to some range, or outright changing them:
CODE
    battle_config.monster_max_aspd = 2000 - battle_config.monster_max_aspd*10;
    battle_config.max_aspd = 2000 - battle_config.max_aspd*10;
    battle_config.max_walk_speed = 100*DEFAULT_WALK_SPEED/battle_config.max_walk_speed;
    battle_config.max_cart_weight *= 10;

This doesn't work very well if you have to change them, say by using @setbattleflag. In this case it sets their raw value, causing unexpected behavior.
My suggestion is to get rid of battle_adjust_conf() completely, and do these adjustments in places where the config values are used.

Hercules Elf Bot - Jan 4, 2012 4:16

Originally posted by [b]Ind[/b]
was fixed in a previous eA revision