summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-11-08 23:20:42 -0300
committerJesusaves <cpntb1@ymail.com>2022-11-08 23:20:42 -0300
commit2fd2caa7c54e3dd6898bb60d33e0e47153b10eb5 (patch)
treea843e4dcd39d256a5106c22053427cc87f1647c6
parentbe26c64fcdec14be4ac02a470ac7ed007113c7a1 (diff)
downloadtmwa-2fd2caa7c54e3dd6898bb60d33e0e47153b10eb5.tar.gz
tmwa-2fd2caa7c54e3dd6898bb60d33e0e47153b10eb5.tar.bz2
tmwa-2fd2caa7c54e3dd6898bb60d33e0e47153b10eb5.tar.xz
tmwa-2fd2caa7c54e3dd6898bb60d33e0e47153b10eb5.zip
Nerf the "Red Threshold" attack speed.v22.11.9
-rw-r--r--src/map/pc.cpp5
-rw-r--r--src/map/script-fun.cpp4
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<map_session_data> 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