RPG::System init party and menu commands right
MODIFY
CMakeLists.txt
CMakeLists.txt
@@ -110,6 +110,7 @@ add_library(lcf
src/generated/rpg_chipset.cpp
src/generated/rpg_mapinfo.cpp
src/generated/rpg_enums.cpp
+ src/generated/rpg_system.cpp
)
# C++11 is required

MODIFY
Makefile.am
Makefile.am
@@ -106,6 +106,7 @@ liblcf_la_SOURCES = \
src/generated/rpg_chipset.cpp \
src/generated/rpg_mapinfo.cpp \
src/generated/rpg_enums.cpp \
+ src/generated/rpg_system.cpp \
src/boost/preprocessor/cat.hpp \
src/boost/preprocessor/stringize.hpp \
src/boost/preprocessor/config/config.hpp

MODIFY
builds/vs2015/liblcf.vcxproj
builds/vs2015/liblcf.vcxproj
<ClCompile Include="..\..\src\generated\lsd_savevehiclelocation.cpp" />
<ClCompile Include="..\..\src\generated\rpg_chipset.cpp" />
<ClCompile Include="..\..\src\generated\rpg_mapinfo.cpp" />
+ <ClCompile Include="..\..\src\generated\rpg_system.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\..\src\command_codes.h" />

MODIFY
generator/csv/setup.csv
generator/csv/setup.csv
@@ -15,3 +15,4 @@ SaveMapInfo,void Fixup(const RPG::Map& map),
SaveSystem,void Setup(),
SaveSystem,void Fixup(),
Parameters,void Setup(int final_level),
+System,void Init(),

ADD
src/generated/rpg_system.cpp
src/generated/rpg_system.cpp
Binary files /dev/null and b/src/generated/rpg_system.cpp differ

MODIFY
src/generated/rpg_system.h
src/generated/rpg_system.h
Binary files a/src/generated/rpg_system.h and b/src/generated/rpg_system.h differ

MODIFY
src/rpg_setup.cpp
src/rpg_setup.cpp
@@ -193,6 +193,11 @@ void RPG::Chipset::Init() {
passable_data_upper.front() = 31;
}
+void RPG::System::Init() {
+ party.resize(1, 1);
+ menu_commands.resize(1, 1);
+}
+
void RPG::Parameters::Setup(int final_level) {
maxhp.resize(final_level, 1);
maxsp.resize(final_level, 0);

RPG::System init party and menu commands right