summaryrefslogtreecommitdiff
path: root/src/map/battle.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-30 19:28:41 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-05-30 19:28:41 +0000
commitc8391c9c07abd235b2d40d8cfec39d62827706a7 (patch)
treed28df1f57382478a6b28f6a60f1f63bb44c44171 /src/map/battle.c
parentde96c0071f2e9a2c0a97dca96a34620b9ca0473b (diff)
downloadhercules-c8391c9c07abd235b2d40d8cfec39d62827706a7.tar.gz
hercules-c8391c9c07abd235b2d40d8cfec39d62827706a7.tar.bz2
hercules-c8391c9c07abd235b2d40d8cfec39d62827706a7.tar.xz
hercules-c8391c9c07abd235b2d40d8cfec39d62827706a7.zip
- Fixed Absorb Spirit Spheres
- Added battle_config min_chat_delay (default 0) specifies in ms what is the min delay between player sent chats (whisper/global/party/guild). Messages that exceed this threshold are silently ignored for now (perhaps need to add a "DON'T SPAM" reply to the player?) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6859 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 4ae6ea545..8b05e544b 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -3562,6 +3562,7 @@ static const struct battle_data_short {
{ "sg_miracle_skill_ratio", &battle_config.sg_miracle_skill_ratio },
{ "autospell_stacking", &battle_config.autospell_stacking },
{ "override_mob_names", &battle_config.override_mob_names },
+ { "min_chat_delay", &battle_config.min_chat_delay },
};
static const struct battle_data_int {
@@ -3980,6 +3981,7 @@ void battle_set_defaults() {
battle_config.sg_miracle_skill_duration=600000;
battle_config.autospell_stacking = 0;
battle_config.override_mob_names = 0;
+ battle_config.min_chat_delay = 0;
}
void battle_validate_conf() {