diff --git a/server/gameserver/mt/Param.cc b/server/gameserver/mt/Param.cc index 7d7c82b0..30edd7b0 100644 --- a/server/gameserver/mt/Param.cc +++ b/server/gameserver/mt/Param.cc @@ -3,7 +3,14 @@ #include "mt/Param.h" IMPL_TABLE(mt::Param) +mt::Param::S mt::Param::s_; namespace mt { + + void Param::StaticPostInit() + { + s_.gas_inactive_time = 100; + } + } diff --git a/server/gameserver/mt/Param.h b/server/gameserver/mt/Param.h index 1db656da..321750cd 100644 --- a/server/gameserver/mt/Param.h +++ b/server/gameserver/mt/Param.h @@ -10,7 +10,7 @@ namespace mt "parameter@parameter.csv", "param_name") public: - static struct { + struct S { int gas_inactive_time = 10; float kill_param = 0.0f; float rank_param = 0.0f; @@ -84,7 +84,11 @@ namespace mt int inwater_oxygen_recover = 0; int revive_time = 15; - } s; + }; + static void StaticPostInit(); + static const S& s() { return s_; }; + private: + static S s_; }; }