Skip to content

Commit eda827a

Browse files
authored
Merge pull request #365 from fmatthew5876/grid
Rename grid variables and SaveSystem::transparent
2 parents ab8e1b3 + 8629d7a commit eda827a

9 files changed

Lines changed: 42 additions & 42 deletions

File tree

generator/csv/fields.csv

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,10 @@ TroopPage,event_commands,t,EventCommand,0x0B,,1,0,Integer
298298
TroopPage,event_commands,f,Vector<EventCommand>,0x0C,,1,0,Array - RPG::EventCommand
299299
Troop,name,f,String,0x01,'',0,0,String
300300
Troop,members,f,Array<TroopMember>,0x02,,1,0,Array - RPG::TroopMember
301-
Troop,auto_alignment,f,Boolean,0x03,False,0,0,Flag
301+
Troop,auto_alignment,f,Boolean,0x03,False,0,1,Flag
302302
Troop,terrain_set,t,Boolean,0x04,,0,0,Integer
303303
Troop,terrain_set,f,Vector<Boolean>,0x05,,1,0,Array - Flag
304-
Troop,appear_randomly,f,Boolean,0x06,False,0,0,Flag
304+
Troop,appear_randomly,f,Boolean,0x06,False,0,1,Flag
305305
Troop,pages,f,Array<TroopPage>,0x0B,,1,0,Array - RPG::TroopPage
306306
Terrain,name,f,String,0x01,'',0,0,String
307307
Terrain,damage,f,Int32,0x02,0,0,0,Integer
@@ -332,9 +332,9 @@ Terrain,special_back_enemies,f,Int32,0x2A,10,0,1,Integer - RPG2003
332332
Terrain,special_lateral_party,f,Int32,0x2B,10,0,1,Integer - RPG2003
333333
Terrain,special_lateral_enemies,f,Int32,0x2C,5,0,1,Integer - RPG2003
334334
Terrain,grid_location,f,Int32,0x2D,0,0,1,Integer - RPG2003
335-
Terrain,grid_a,f,Int32,0x2E,120,0,1,Integer - RPG2003
336-
Terrain,grid_b,f,Int32,0x2F,392,0,1,Integer - RPG2003
337-
Terrain,grid_c,f,Int32,0x30,16000,0,1,Integer - RPG2003
335+
Terrain,grid_top_y,f,Int32,0x2E,120,0,1,Integer - RPG2003
336+
Terrain,grid_elongation,f,Int32,0x2F,392,0,1,Integer - RPG2003
337+
Terrain,grid_inclination,f,Int32,0x30,16000,0,1,Integer - RPG2003
338338
State,name,f,String,0x01,'',0,0,String
339339
State,type,f,Enum<State_Persistence>,0x02,0,1,0,Integer
340340
State,color,f,Int32,0x03,6,0,0,Integer
@@ -722,7 +722,7 @@ SaveSystem,face_name,f,String,0x33,'',0,0,
722722
SaveSystem,face_id,f,Int32,0x34,0,0,0,
723723
SaveSystem,face_right,f,Boolean,0x35,False,0,0,bool
724724
SaveSystem,face_flip,f,Boolean,0x36,False,0,0,bool
725-
SaveSystem,transparent,f,Boolean,0x37,False,0,0,
725+
SaveSystem,message_active,f,Boolean,0x37,False,0,0,A flag set by RPG_RT when messages are summoned.
726726
SaveSystem,music_stopping,f,Boolean,0x3D,False,0,0,Music is being faded out or had been stopped (Play music with the same music as currently playing will restart the music when this flag is set)
727727
SaveSystem,title_music,f,Music,0x47,,1,0,
728728
SaveSystem,battle_music,f,Music,0x48,,1,0,

src/generated/ldb_chunks.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -785,11 +785,11 @@ namespace LDB_Reader {
785785
/** Integer - RPG2003 */
786786
grid_location = 0x2D,
787787
/** Integer - RPG2003 */
788-
grid_a = 0x2E,
788+
grid_top_y = 0x2E,
789789
/** Integer - RPG2003 */
790-
grid_b = 0x2F,
790+
grid_elongation = 0x2F,
791791
/** Integer - RPG2003 */
792-
grid_c = 0x30
792+
grid_inclination = 0x30
793793
};
794794
};
795795
struct ChunkState {

src/generated/ldb_terrain.cpp

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -221,24 +221,24 @@ static TypedField<RPG::Terrain, int32_t> static_grid_location(
221221
0,
222222
1
223223
);
224-
static TypedField<RPG::Terrain, int32_t> static_grid_a(
225-
&RPG::Terrain::grid_a,
226-
LDB_Reader::ChunkTerrain::grid_a,
227-
"grid_a",
224+
static TypedField<RPG::Terrain, int32_t> static_grid_top_y(
225+
&RPG::Terrain::grid_top_y,
226+
LDB_Reader::ChunkTerrain::grid_top_y,
227+
"grid_top_y",
228228
0,
229229
1
230230
);
231-
static TypedField<RPG::Terrain, int32_t> static_grid_b(
232-
&RPG::Terrain::grid_b,
233-
LDB_Reader::ChunkTerrain::grid_b,
234-
"grid_b",
231+
static TypedField<RPG::Terrain, int32_t> static_grid_elongation(
232+
&RPG::Terrain::grid_elongation,
233+
LDB_Reader::ChunkTerrain::grid_elongation,
234+
"grid_elongation",
235235
0,
236236
1
237237
);
238-
static TypedField<RPG::Terrain, int32_t> static_grid_c(
239-
&RPG::Terrain::grid_c,
240-
LDB_Reader::ChunkTerrain::grid_c,
241-
"grid_c",
238+
static TypedField<RPG::Terrain, int32_t> static_grid_inclination(
239+
&RPG::Terrain::grid_inclination,
240+
LDB_Reader::ChunkTerrain::grid_inclination,
241+
"grid_inclination",
242242
0,
243243
1
244244
);
@@ -275,9 +275,9 @@ Field<RPG::Terrain> const* Struct<RPG::Terrain>::fields[] = {
275275
&static_special_lateral_party,
276276
&static_special_lateral_enemies,
277277
&static_grid_location,
278-
&static_grid_a,
279-
&static_grid_b,
280-
&static_grid_c,
278+
&static_grid_top_y,
279+
&static_grid_elongation,
280+
&static_grid_inclination,
281281
NULL
282282
};
283283

src/generated/ldb_troop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static TypedField<RPG::Troop, bool> static_auto_alignment(
3737
LDB_Reader::ChunkTroop::auto_alignment,
3838
"auto_alignment",
3939
0,
40-
0
40+
1
4141
);
4242
static SizeField<RPG::Troop, bool> static_size_terrain_set(
4343
&RPG::Troop::terrain_set,
@@ -57,7 +57,7 @@ static TypedField<RPG::Troop, bool> static_appear_randomly(
5757
LDB_Reader::ChunkTroop::appear_randomly,
5858
"appear_randomly",
5959
0,
60-
0
60+
1
6161
);
6262
static TypedField<RPG::Troop, std::vector<RPG::TroopPage>> static_pages(
6363
&RPG::Troop::pages,

src/generated/lsd_chunks.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ namespace LSD_Reader {
8080
face_right = 0x35,
8181
/** bool */
8282
face_flip = 0x36,
83-
/** */
84-
transparent = 0x37,
83+
/** A flag set by RPG_RT when messages are summoned. */
84+
message_active = 0x37,
8585
/** Music is being faded out or had been stopped (Play music with the same music as currently playing will restart the music when this flag is set) */
8686
music_stopping = 0x3D,
8787
/** */

src/generated/lsd_savesystem.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ static TypedField<RPG::SaveSystem, bool> static_face_flip(
135135
0,
136136
0
137137
);
138-
static TypedField<RPG::SaveSystem, bool> static_transparent(
139-
&RPG::SaveSystem::transparent,
140-
LSD_Reader::ChunkSaveSystem::transparent,
141-
"transparent",
138+
static TypedField<RPG::SaveSystem, bool> static_message_active(
139+
&RPG::SaveSystem::message_active,
140+
LSD_Reader::ChunkSaveSystem::message_active,
141+
"message_active",
142142
0,
143143
0
144144
);
@@ -436,7 +436,7 @@ Field<RPG::SaveSystem> const* Struct<RPG::SaveSystem>::fields[] = {
436436
&static_face_id,
437437
&static_face_right,
438438
&static_face_flip,
439-
&static_transparent,
439+
&static_message_active,
440440
&static_music_stopping,
441441
&static_title_music,
442442
&static_battle_music,

src/generated/rpg_savesystem.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ namespace RPG {
7575
int32_t face_id = 0;
7676
bool face_right = false;
7777
bool face_flip = false;
78-
bool transparent = false;
78+
bool message_active = false;
7979
bool music_stopping = false;
8080
Music title_music;
8181
Music battle_music;
@@ -133,7 +133,7 @@ namespace RPG {
133133
&& l.face_id == r.face_id
134134
&& l.face_right == r.face_right
135135
&& l.face_flip == r.face_flip
136-
&& l.transparent == r.transparent
136+
&& l.message_active == r.message_active
137137
&& l.music_stopping == r.music_stopping
138138
&& l.title_music == r.title_music
139139
&& l.battle_music == r.battle_music

src/generated/rpg_terrain.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ namespace RPG {
8989
int32_t special_lateral_party = 10;
9090
int32_t special_lateral_enemies = 5;
9191
int32_t grid_location = 0;
92-
int32_t grid_a = 120;
93-
int32_t grid_b = 392;
94-
int32_t grid_c = 16000;
92+
int32_t grid_top_y = 120;
93+
int32_t grid_elongation = 392;
94+
int32_t grid_inclination = 16000;
9595
};
9696

9797
inline bool operator==(const Terrain::Flags& l, const Terrain::Flags& r) {
@@ -132,9 +132,9 @@ namespace RPG {
132132
&& l.special_lateral_party == r.special_lateral_party
133133
&& l.special_lateral_enemies == r.special_lateral_enemies
134134
&& l.grid_location == r.grid_location
135-
&& l.grid_a == r.grid_a
136-
&& l.grid_b == r.grid_b
137-
&& l.grid_c == r.grid_c;
135+
&& l.grid_top_y == r.grid_top_y
136+
&& l.grid_elongation == r.grid_elongation
137+
&& l.grid_inclination == r.grid_inclination;
138138
}
139139

140140
inline bool operator!=(const Terrain& l, const Terrain& r) {

src/rpg_setup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void RPG::SaveSystem::Setup() {
9595
face_id = -1;
9696
face_right = false;
9797
face_flip = false;
98-
transparent = false;
98+
message_active = false;
9999
music_stopping = false;
100100
title_music = system.title_music;
101101
battle_music = system.battle_music;

0 commit comments

Comments
 (0)