From 6ee06fdebc63a87a427b751727c777863b76e0a1 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 7 Sep 2021 03:03:30 -0300 Subject: Mount Bonus is now handled exclusively by item script. ASPD penalty still handled by C code. Also, always report invalid operations on mailman. May help in fiding out if mailman ends up stealing players. (And futurely, in preventing that as well if it wasn't their fault) --- src/emap/horse.c | 2 +- src/emap/mail.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/emap/horse.c b/src/emap/horse.c index 90c736e..5fafad1 100644 --- a/src/emap/horse.c +++ b/src/emap/horse.c @@ -40,7 +40,7 @@ unsigned short horse_add_speed_bonus(TBL_PC *sd, unsigned short val) if (!data || data->mount == 0) return val; - val -= 25; + //val -= 25; // [TMW2] No builtin bonus - Always by item script } return val; } diff --git a/src/emap/mail.c b/src/emap/mail.c index 5d9e37c..afd8c64 100644 --- a/src/emap/mail.c +++ b/src/emap/mail.c @@ -30,12 +30,15 @@ bool email_invalid_operation_pre(struct map_session_data **sdPtr) return true; } - if (!map->list[sd->bl.m].flag.town) + // [TMW2] Always report, no exceptions + //if (!map->list[sd->bl.m].flag.town) { ShowWarning("clif->parse_Mail: char '%s' trying to do invalid mail operations.\n", sd->status.name); hookStop(); return true; } + + // FIXME: Thief mailman? hookStop(); return false; } -- cgit v1.2.3-60-g2f50