From 2fd2caa7c54e3dd6898bb60d33e0e47153b10eb5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 8 Nov 2022 23:20:42 -0300 Subject: Nerf the "Red Threshold" attack speed. --- src/map/pc.cpp | 5 +++++ src/map/script-fun.cpp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 7ceb8f1..49ef5a4 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -1524,6 +1524,11 @@ int pc_calcstatus(dumb_ptr sd, int first) if (aspd_rate != 100) sd->aspd = sd->aspd * aspd_rate / 100; + /* Red Threshold Calculation */ + if (sd->aspd < 300_ms) { + sd->aspd = 300_ms + ((sd->aspd - 300_ms) / 2); + } + sd->aspd = std::max(sd->aspd, battle_config.max_aspd); sd->amotion = sd->aspd; sd->dmotion = std::chrono::milliseconds(800 - sd->paramc[ATTR::AGI] * 4); diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp index 500d892..bcb5a45 100644 --- a/src/map/script-fun.cpp +++ b/src/map/script-fun.cpp @@ -3146,7 +3146,7 @@ void builtin_mapannounce(ScriptState *st) /*========================================== * ユーザー数所得 - * User Revenue + * User Count *------------------------------------------ */ static @@ -3169,7 +3169,7 @@ void builtin_getusers(ScriptState *st) /*========================================== * マップ指定ユーザー数所得 - * maps Designated User Income + * maps Designated User Count *------------------------------------------ */ static -- cgit v1.2.3-60-g2f50