diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-24 18:52:00 -0700 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2014-06-24 19:07:21 -0700 |
commit | b353ae37eb6d374aec4127f1849a5dce81f812b5 (patch) | |
tree | 8bd11630cd97292d0a1def17cff36517b061a641 /src/mmo/consts.hpp | |
parent | 7e71c1db0d46d7ff4dd53af9356e1a60814dd509 (diff) | |
download | tmwa-b353ae37eb6d374aec4127f1849a5dce81f812b5.tar.gz tmwa-b353ae37eb6d374aec4127f1849a5dce81f812b5.tar.bz2 tmwa-b353ae37eb6d374aec4127f1849a5dce81f812b5.tar.xz tmwa-b353ae37eb6d374aec4127f1849a5dce81f812b5.zip |
No one is .neutral() here (except IPv4 addresses)
Diffstat (limited to 'src/mmo/consts.hpp')
-rw-r--r-- | src/mmo/consts.hpp | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/src/mmo/consts.hpp b/src/mmo/consts.hpp new file mode 100644 index 0000000..f7dbc36 --- /dev/null +++ b/src/mmo/consts.hpp @@ -0,0 +1,65 @@ +#ifndef TMWA_MMO_CONSTS_HPP +#define TMWA_MMO_CONSTS_HPP +// consts.hpp - Huge mess of constants. +// +// Copyright © ????-2004 Athena Dev Teams +// Copyright © 2004-2011 The Mana World Development Team +// Copyright © 2011-2014 Ben Longbons <b.r.longbons@gmail.com> +// +// This file is part of The Mana World (Athena server) +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see <http://www.gnu.org/licenses/>. + +# include "fwd.hpp" + +# include "../net/timer.t.hpp" + +# include "ids.hpp" +# include "strs.hpp" + +constexpr int FIFOSIZE_SERVERLINK = 256 * 1024; + +constexpr int MAX_MAP_PER_SERVER = 512; +constexpr int MAX_INVENTORY = 100; +constexpr int MAX_AMOUNT = 30000; +constexpr int MAX_ZENY = 1000000000; // 1G zeny +constexpr int TRADE_MAX = 10; + +constexpr int GLOBAL_REG_NUM = 96; +constexpr size_t ACCOUNT_REG_NUM = 16; +constexpr size_t ACCOUNT_REG2_NUM = 16; +constexpr interval_t DEFAULT_WALK_SPEED = std::chrono::milliseconds(150); +constexpr interval_t MIN_WALK_SPEED = interval_t::zero(); +constexpr interval_t MAX_WALK_SPEED = std::chrono::seconds(1); +constexpr int MAX_STORAGE = 300; +constexpr int MAX_PARTY = 12; + +# define MIN_HAIR_STYLE battle_config.min_hair_style +# define MAX_HAIR_STYLE battle_config.max_hair_style +# define MIN_HAIR_COLOR battle_config.min_hair_color +# define MAX_HAIR_COLOR battle_config.max_hair_color +# define MIN_CLOTH_COLOR battle_config.min_cloth_color +# define MAX_CLOTH_COLOR battle_config.max_cloth_color + +// WTF is this doing here? +struct PartyMember +{ + AccountId account_id; + CharName name; + MapName map; + int leader, online, lv; + struct map_session_data *sd; +}; + +#endif // TMWA_MMO_CONSTS_HPP |