Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Atb mode field #171

Merged
merged 1 commit into from
Mar 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions generator/csv/enums.csv
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ SavePartyLocation,VehicleType,none,0
SavePartyLocation,VehicleType,skiff,1
SavePartyLocation,VehicleType,ship,2
SavePartyLocation,VehicleType,airship,3
SaveSystem,AtbMode,atb_active,0
SaveSystem,AtbMode,atb_wait,1
State,Persistence,ends,0
State,Persistence,persists,1
State,Restriction,normal,0
Expand Down
2 changes: 1 addition & 1 deletion generator/csv/fields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ SaveSystem,menu_allowed,f,Boolean,0x7C,True,
SaveSystem,background,f,String,0x7D,,string
SaveSystem,save_count,f,Integer,0x83,0,
SaveSystem,save_slot,f,Integer,0x84,1,
SaveSystem,unknown_8c_active_wait_atb,f,Integer,0x8C,0,Maybe ATB mode active / wait in 2k3 but not sure FIXME
SaveSystem,atb_mode,f,Enum<SaveSystem_AtbMode>,0x8C,0,ATB mode of RPG 2003 battle system.
SaveScreen,tint_finish_red,f,Integer,0x01,100,int
SaveScreen,tint_finish_green,f,Integer,0x02,100,int
SaveScreen,tint_finish_blue,f,Integer,0x03,100,int
Expand Down
4 changes: 2 additions & 2 deletions src/generated/lsd_chunks.h
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,8 @@ namespace LSD_Reader {
save_count = 0x83,
/** */
save_slot = 0x84,
/** Maybe ATB mode active / wait in 2k3 but not sure FIXME */
unknown_8c_active_wait_atb = 0x8C
/** ATB mode of RPG 2003 battle system. */
atb_mode = 0x8C
};
};
struct ChunkSaveScreen {
Expand Down
2 changes: 1 addition & 1 deletion src/generated/lsd_savesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ LCF_STRUCT_FIELDS_BEGIN()
LCF_STRUCT_TYPED_FIELD(std::string, background),
LCF_STRUCT_TYPED_FIELD(int, save_count),
LCF_STRUCT_TYPED_FIELD(int, save_slot),
LCF_STRUCT_TYPED_FIELD(int, unknown_8c_active_wait_atb),
LCF_STRUCT_TYPED_FIELD(int, atb_mode),
LCF_STRUCT_FIELDS_END()

#undef LCF_CURRENT_STRUCT
Expand Down
7 changes: 6 additions & 1 deletion src/generated/rpg_savesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
namespace RPG {
class SaveSystem {
public:
enum AtbMode {
AtbMode_atb_active = 0,
AtbMode_atb_wait = 1
};

void Setup();
void Fixup();

Expand Down Expand Up @@ -81,7 +86,7 @@ namespace RPG {
std::string background;
int save_count = 0;
int save_slot = 1;
int unknown_8c_active_wait_atb = 0;
int atb_mode = 0;
};
}

Expand Down