Skip to content

Commit

Permalink
Merge pull request #271 from Ghabry/maniac-patch
Browse files Browse the repository at this point in the history
Add Maniac Patch Event commands
  • Loading branch information
fdelapena authored Sep 26, 2019
2 parents 2f3bea9 + a06e03f commit 8324355
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
17 changes: 17 additions & 0 deletions generator/csv/enums_easyrpg.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#Structure,Entry,Value,Index
EventCommand,Code,Maniac_GetSaveInfo,3001
EventCommand,Code,Maniac_Save,3002
EventCommand,Code,Maniac_Load,3003
EventCommand,Code,Maniac_EndLoadProcess,3004
EventCommand,Code,Maniac_GetMousePosition,3005
EventCommand,Code,Maniac_SetMousePosition,3006
EventCommand,Code,Maniac_ShowStringPicture,3007
EventCommand,Code,Maniac_GetPictureInfo,3008
EventCommand,Code,Maniac_ControlBattle,3009
EventCommand,Code,Maniac_ControlAtbGauge,3010
EventCommand,Code,Maniac_ChangeBattleCommandEx,3011
EventCommand,Code,Maniac_GetBattleInfo,3012
EventCommand,Code,Maniac_ControlVarArray,3013
EventCommand,Code,Maniac_KeyInputProcEx,3014
EventCommand,Code,Maniac_RewriteMap,3015
EventCommand,Code,Maniac_ControlGlobalSave,3016
2 changes: 1 addition & 1 deletion generator/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def main(argv):

structs = get_structs('structs.csv','structs_easyrpg.csv')
sfields = get_fields('fields.csv','fields_easyrpg.csv')
enums = get_enums('enums.csv')
enums = get_enums('enums.csv','enums_easyrpg.csv')
flags = get_flags('flags.csv')
setup = get_setup('setup.csv')
constants = get_constants()
Expand Down
18 changes: 17 additions & 1 deletion src/generated/rpg_eventcommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,23 @@ namespace RPG {
EndLoop = 22210,
Comment_2 = 22410,
ElseBranch_B = 23310,
EndBranch_B = 23311
EndBranch_B = 23311,
Maniac_GetSaveInfo = 3001,
Maniac_Save = 3002,
Maniac_Load = 3003,
Maniac_EndLoadProcess = 3004,
Maniac_GetMousePosition = 3005,
Maniac_SetMousePosition = 3006,
Maniac_ShowStringPicture = 3007,
Maniac_GetPictureInfo = 3008,
Maniac_ControlBattle = 3009,
Maniac_ControlAtbGauge = 3010,
Maniac_ChangeBattleCommandEx = 3011,
Maniac_GetBattleInfo = 3012,
Maniac_ControlVarArray = 3013,
Maniac_KeyInputProcEx = 3014,
Maniac_RewriteMap = 3015,
Maniac_ControlGlobalSave = 3016
};
};

Expand Down

0 comments on commit 8324355

Please sign in to comment.