From 8b0d94a35c472e19cfd68c5ac7ec1dd5932201d4 Mon Sep 17 00:00:00 2001 From: mekolat Date: Fri, 29 Jan 2016 20:07:39 -0500 Subject: allow to not allocate stats on CC do not use sex provided by client for scripts send the correct sex to the client --- src/map/clif.cpp | 6 +++--- src/map/pc.cpp | 2 +- tools/config.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/map/clif.cpp b/src/map/clif.cpp index 64e9939..9743e49 100644 --- a/src/map/clif.cpp +++ b/src/map/clif.cpp @@ -659,7 +659,7 @@ void clif_set0078_main_1d8(dumb_ptr sd, Buffer& buf) fixed_1d8.manner = sd->status.manner; fixed_1d8.opt3 = sd->opt3; fixed_1d8.karma = sd->status.karma; - fixed_1d8.sex = sd->sex; + fixed_1d8.sex = sd->status.sex; fixed_1d8.pos.x = sd->bl_x; fixed_1d8.pos.y = sd->bl_y; fixed_1d8.pos.dir = sd->dir; @@ -713,7 +713,7 @@ void clif_set0078_alt_1d9(dumb_ptr sd, Buffer& buf) fixed_1d8.manner = sd->status.manner; fixed_1d8.opt3 = sd->opt3; fixed_1d8.karma = sd->status.karma; - fixed_1d8.sex = sd->sex; + fixed_1d8.sex = sd->status.sex; fixed_1d8.pos.x = sd->bl_x; fixed_1d8.pos.y = sd->bl_y; fixed_1d8.pos.dir = sd->dir; @@ -766,7 +766,7 @@ void clif_set007b(dumb_ptr sd, Buffer& buf) fixed_1da.manner = sd->status.manner; fixed_1da.opt3 = sd->opt3; fixed_1da.karma = sd->status.karma; - fixed_1da.sex = sd->sex; + fixed_1da.sex = sd->status.sex; fixed_1da.pos2.x0 = sd->bl_x; fixed_1da.pos2.y0 = sd->bl_y; fixed_1da.pos2.x1 = sd->to_x; diff --git a/src/map/pc.cpp b/src/map/pc.cpp index 8a5127d..59fbba6 100644 --- a/src/map/pc.cpp +++ b/src/map/pc.cpp @@ -3361,7 +3361,7 @@ int pc_readparam(dumb_ptr sd, SP type) val = unwrap(sd->status.species); break; case SP::SEX: - val = static_cast(sd->sex); + val = static_cast(sd->status.sex); break; case SP::WEIGHT: val = sd->weight; diff --git a/tools/config.py b/tools/config.py index cedaa3a..0892973 100755 --- a/tools/config.py +++ b/tools/config.py @@ -555,9 +555,9 @@ def build_config(): char_conf.opt('max_hair_style', u16, '20', min=1) char_conf.opt('max_hair_color', u16, '11', min=1) char_conf.opt('min_stat_value', u16, '1') - char_conf.opt('max_stat_value', u16, '9', min=2) - char_conf.opt('total_stat_sum', u16, '30', min=7) - char_conf.opt('min_name_length', u16, '4', min=1) + char_conf.opt('max_stat_value', u16, '9', min=1) + char_conf.opt('total_stat_sum', u16, '30', min=6) + char_conf.opt('min_name_length', u16, '4', min=4) char_conf.opt('char_slots', u16, '9', min=1) char_conf.opt('anti_freeze_enable', bool, 'false') char_conf.opt('anti_freeze_interval', seconds, '6_s', min='5_s') -- cgit v1.2.3-70-g09d2