Skip to content

Commit f6457e5

Browse files
committed
Add Maniac terms which are only needed because the superior RPG Maker 2000 placeholder feature was not ported :(
1 parent 63b3c9d commit f6457e5

File tree

5 files changed

+136
-40
lines changed

5 files changed

+136
-40
lines changed

generator/csv/fields_easyrpg.csv

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ State,easyrpg_immune_states,t,DBBitArray,0xC8,,0,0,States cleared on infliction
107107
State,easyrpg_immune_states,f,DBBitArray,0xC9,,0,0,States cleared on infliction by this state
108108
Terrain,easyrpg_damage_in_percent,f,Boolean,0xC8,False,0,0,If the terrain damage is a percentage
109109
Terrain,easyrpg_damage_can_kill,f,Boolean,0xC9,False,0,0,If the terrain damage can kill the actors
110+
Terms,maniac_item_received_a,f,DBString,0xA1,,0,0,Part 1 of item received message (item_received is part 2)
111+
Terms,maniac_level_up_a,f,DBString,0xA2,,0,0,Part 1 of level up message
112+
Terms,maniac_level_up_b,f,DBString,0xA3,,0,0,Part 3 of level up message (level_up is part 2)
113+
Terms,maniac_level_up_c,f,DBString,0xA4,,0,0,Part 4 of level up message
114+
Terms,maniac_exp_received_a,f,DBString,0xA5,,0,0,Part 1 of exp message (exp_received is part 2)
115+
Terms,maniac_skill_learned_a,f,DBString,0xA6,,0,0,Part 1 of skill learning message (skill_learned is part 2)
110116
Terms,easyrpg_item_number_separator,f,DBString,0xC8,DBString(kDefaultTerm),0,0,Item number separator
111117
Terms,easyrpg_skill_cost_separator,f,DBString,0xC9,DBString(kDefaultTerm),0,0,Skill cost separator
112118
Terms,easyrpg_equipment_arrow,f,DBString,0xCA,DBString(kDefaultTerm),0,0,Equipment window arrow

src/generated/lcf/ldb/chunks.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1246,6 +1246,18 @@ namespace LDB_Reader {
12461246
yes = 0x98,
12471247
/** String */
12481248
no = 0x99,
1249+
/** Part 1 of item received message (item_received is part 2) */
1250+
maniac_item_received_a = 0xA1,
1251+
/** Part 1 of level up message */
1252+
maniac_level_up_a = 0xA2,
1253+
/** Part 3 of level up message (level_up is part 2) */
1254+
maniac_level_up_b = 0xA3,
1255+
/** Part 4 of level up message */
1256+
maniac_level_up_c = 0xA4,
1257+
/** Part 1 of exp message (exp_received is part 2) */
1258+
maniac_exp_received_a = 0xA5,
1259+
/** Part 1 of skill learning message (skill_learned is part 2) */
1260+
maniac_skill_learned_a = 0xA6,
12491261
/** Item number separator */
12501262
easyrpg_item_number_separator = 0xC8,
12511263
/** Skill cost separator */

src/generated/lcf/rpg/terms.h

Lines changed: 64 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ namespace rpg {
156156
DBString exit_game_message;
157157
DBString yes;
158158
DBString no;
159+
DBString maniac_item_received_a;
160+
DBString maniac_level_up_a;
161+
DBString maniac_level_up_b;
162+
DBString maniac_level_up_c;
163+
DBString maniac_exp_received_a;
164+
DBString maniac_skill_learned_a;
159165
DBString easyrpg_item_number_separator = DBString(kDefaultTerm);
160166
DBString easyrpg_skill_cost_separator = DBString(kDefaultTerm);
161167
DBString easyrpg_equipment_arrow = DBString(kDefaultTerm);
@@ -306,6 +312,12 @@ namespace rpg {
306312
&& l.exit_game_message == r.exit_game_message
307313
&& l.yes == r.yes
308314
&& l.no == r.no
315+
&& l.maniac_item_received_a == r.maniac_item_received_a
316+
&& l.maniac_level_up_a == r.maniac_level_up_a
317+
&& l.maniac_level_up_b == r.maniac_level_up_b
318+
&& l.maniac_level_up_c == r.maniac_level_up_c
319+
&& l.maniac_exp_received_a == r.maniac_exp_received_a
320+
&& l.maniac_skill_learned_a == r.maniac_skill_learned_a
309321
&& l.easyrpg_item_number_separator == r.easyrpg_item_number_separator
310322
&& l.easyrpg_skill_cost_separator == r.easyrpg_skill_cost_separator
311323
&& l.easyrpg_equipment_arrow == r.easyrpg_equipment_arrow
@@ -590,46 +602,58 @@ namespace rpg {
590602
f(obj.yes, ctx126);
591603
const auto ctx127 = Context<Terms, ParentCtx>{ "no", -1, &obj, parent_ctx };
592604
f(obj.no, ctx127);
593-
const auto ctx128 = Context<Terms, ParentCtx>{ "easyrpg_item_number_separator", -1, &obj, parent_ctx };
594-
f(obj.easyrpg_item_number_separator, ctx128);
595-
const auto ctx129 = Context<Terms, ParentCtx>{ "easyrpg_skill_cost_separator", -1, &obj, parent_ctx };
596-
f(obj.easyrpg_skill_cost_separator, ctx129);
597-
const auto ctx130 = Context<Terms, ParentCtx>{ "easyrpg_equipment_arrow", -1, &obj, parent_ctx };
598-
f(obj.easyrpg_equipment_arrow, ctx130);
599-
const auto ctx131 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_name", -1, &obj, parent_ctx };
600-
f(obj.easyrpg_status_scene_name, ctx131);
601-
const auto ctx132 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_class", -1, &obj, parent_ctx };
602-
f(obj.easyrpg_status_scene_class, ctx132);
603-
const auto ctx133 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_title", -1, &obj, parent_ctx };
604-
f(obj.easyrpg_status_scene_title, ctx133);
605-
const auto ctx134 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_condition", -1, &obj, parent_ctx };
606-
f(obj.easyrpg_status_scene_condition, ctx134);
607-
const auto ctx135 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_front", -1, &obj, parent_ctx };
608-
f(obj.easyrpg_status_scene_front, ctx135);
609-
const auto ctx136 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_back", -1, &obj, parent_ctx };
610-
f(obj.easyrpg_status_scene_back, ctx136);
611-
const auto ctx137 = Context<Terms, ParentCtx>{ "easyrpg_order_scene_confirm", -1, &obj, parent_ctx };
612-
f(obj.easyrpg_order_scene_confirm, ctx137);
613-
const auto ctx138 = Context<Terms, ParentCtx>{ "easyrpg_order_scene_redo", -1, &obj, parent_ctx };
614-
f(obj.easyrpg_order_scene_redo, ctx138);
615-
const auto ctx139 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_double_attack", -1, &obj, parent_ctx };
616-
f(obj.easyrpg_battle2k3_double_attack, ctx139);
617-
const auto ctx140 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_defend", -1, &obj, parent_ctx };
618-
f(obj.easyrpg_battle2k3_defend, ctx140);
619-
const auto ctx141 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_observe", -1, &obj, parent_ctx };
620-
f(obj.easyrpg_battle2k3_observe, ctx141);
621-
const auto ctx142 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_charge", -1, &obj, parent_ctx };
622-
f(obj.easyrpg_battle2k3_charge, ctx142);
623-
const auto ctx143 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_selfdestruct", -1, &obj, parent_ctx };
624-
f(obj.easyrpg_battle2k3_selfdestruct, ctx143);
625-
const auto ctx144 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_escape", -1, &obj, parent_ctx };
626-
f(obj.easyrpg_battle2k3_escape, ctx144);
627-
const auto ctx145 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_special_combat_back", -1, &obj, parent_ctx };
628-
f(obj.easyrpg_battle2k3_special_combat_back, ctx145);
629-
const auto ctx146 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_skill", -1, &obj, parent_ctx };
630-
f(obj.easyrpg_battle2k3_skill, ctx146);
631-
const auto ctx147 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_item", -1, &obj, parent_ctx };
632-
f(obj.easyrpg_battle2k3_item, ctx147);
605+
const auto ctx128 = Context<Terms, ParentCtx>{ "maniac_item_received_a", -1, &obj, parent_ctx };
606+
f(obj.maniac_item_received_a, ctx128);
607+
const auto ctx129 = Context<Terms, ParentCtx>{ "maniac_level_up_a", -1, &obj, parent_ctx };
608+
f(obj.maniac_level_up_a, ctx129);
609+
const auto ctx130 = Context<Terms, ParentCtx>{ "maniac_level_up_b", -1, &obj, parent_ctx };
610+
f(obj.maniac_level_up_b, ctx130);
611+
const auto ctx131 = Context<Terms, ParentCtx>{ "maniac_level_up_c", -1, &obj, parent_ctx };
612+
f(obj.maniac_level_up_c, ctx131);
613+
const auto ctx132 = Context<Terms, ParentCtx>{ "maniac_exp_received_a", -1, &obj, parent_ctx };
614+
f(obj.maniac_exp_received_a, ctx132);
615+
const auto ctx133 = Context<Terms, ParentCtx>{ "maniac_skill_learned_a", -1, &obj, parent_ctx };
616+
f(obj.maniac_skill_learned_a, ctx133);
617+
const auto ctx134 = Context<Terms, ParentCtx>{ "easyrpg_item_number_separator", -1, &obj, parent_ctx };
618+
f(obj.easyrpg_item_number_separator, ctx134);
619+
const auto ctx135 = Context<Terms, ParentCtx>{ "easyrpg_skill_cost_separator", -1, &obj, parent_ctx };
620+
f(obj.easyrpg_skill_cost_separator, ctx135);
621+
const auto ctx136 = Context<Terms, ParentCtx>{ "easyrpg_equipment_arrow", -1, &obj, parent_ctx };
622+
f(obj.easyrpg_equipment_arrow, ctx136);
623+
const auto ctx137 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_name", -1, &obj, parent_ctx };
624+
f(obj.easyrpg_status_scene_name, ctx137);
625+
const auto ctx138 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_class", -1, &obj, parent_ctx };
626+
f(obj.easyrpg_status_scene_class, ctx138);
627+
const auto ctx139 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_title", -1, &obj, parent_ctx };
628+
f(obj.easyrpg_status_scene_title, ctx139);
629+
const auto ctx140 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_condition", -1, &obj, parent_ctx };
630+
f(obj.easyrpg_status_scene_condition, ctx140);
631+
const auto ctx141 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_front", -1, &obj, parent_ctx };
632+
f(obj.easyrpg_status_scene_front, ctx141);
633+
const auto ctx142 = Context<Terms, ParentCtx>{ "easyrpg_status_scene_back", -1, &obj, parent_ctx };
634+
f(obj.easyrpg_status_scene_back, ctx142);
635+
const auto ctx143 = Context<Terms, ParentCtx>{ "easyrpg_order_scene_confirm", -1, &obj, parent_ctx };
636+
f(obj.easyrpg_order_scene_confirm, ctx143);
637+
const auto ctx144 = Context<Terms, ParentCtx>{ "easyrpg_order_scene_redo", -1, &obj, parent_ctx };
638+
f(obj.easyrpg_order_scene_redo, ctx144);
639+
const auto ctx145 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_double_attack", -1, &obj, parent_ctx };
640+
f(obj.easyrpg_battle2k3_double_attack, ctx145);
641+
const auto ctx146 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_defend", -1, &obj, parent_ctx };
642+
f(obj.easyrpg_battle2k3_defend, ctx146);
643+
const auto ctx147 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_observe", -1, &obj, parent_ctx };
644+
f(obj.easyrpg_battle2k3_observe, ctx147);
645+
const auto ctx148 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_charge", -1, &obj, parent_ctx };
646+
f(obj.easyrpg_battle2k3_charge, ctx148);
647+
const auto ctx149 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_selfdestruct", -1, &obj, parent_ctx };
648+
f(obj.easyrpg_battle2k3_selfdestruct, ctx149);
649+
const auto ctx150 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_escape", -1, &obj, parent_ctx };
650+
f(obj.easyrpg_battle2k3_escape, ctx150);
651+
const auto ctx151 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_special_combat_back", -1, &obj, parent_ctx };
652+
f(obj.easyrpg_battle2k3_special_combat_back, ctx151);
653+
const auto ctx152 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_skill", -1, &obj, parent_ctx };
654+
f(obj.easyrpg_battle2k3_skill, ctx152);
655+
const auto ctx153 = Context<Terms, ParentCtx>{ "easyrpg_battle2k3_item", -1, &obj, parent_ctx };
656+
f(obj.easyrpg_battle2k3_item, ctx153);
633657
(void)obj;
634658
(void)f;
635659
(void)parent_ctx;

src/generated/ldb_terms.cpp

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,48 @@ static TypedField<rpg::Terms, DBString> static_no(
909909
1,
910910
0
911911
);
912+
static TypedField<rpg::Terms, DBString> static_maniac_item_received_a(
913+
&rpg::Terms::maniac_item_received_a,
914+
LDB_Reader::ChunkTerms::maniac_item_received_a,
915+
"maniac_item_received_a",
916+
0,
917+
0
918+
);
919+
static TypedField<rpg::Terms, DBString> static_maniac_level_up_a(
920+
&rpg::Terms::maniac_level_up_a,
921+
LDB_Reader::ChunkTerms::maniac_level_up_a,
922+
"maniac_level_up_a",
923+
0,
924+
0
925+
);
926+
static TypedField<rpg::Terms, DBString> static_maniac_level_up_b(
927+
&rpg::Terms::maniac_level_up_b,
928+
LDB_Reader::ChunkTerms::maniac_level_up_b,
929+
"maniac_level_up_b",
930+
0,
931+
0
932+
);
933+
static TypedField<rpg::Terms, DBString> static_maniac_level_up_c(
934+
&rpg::Terms::maniac_level_up_c,
935+
LDB_Reader::ChunkTerms::maniac_level_up_c,
936+
"maniac_level_up_c",
937+
0,
938+
0
939+
);
940+
static TypedField<rpg::Terms, DBString> static_maniac_exp_received_a(
941+
&rpg::Terms::maniac_exp_received_a,
942+
LDB_Reader::ChunkTerms::maniac_exp_received_a,
943+
"maniac_exp_received_a",
944+
0,
945+
0
946+
);
947+
static TypedField<rpg::Terms, DBString> static_maniac_skill_learned_a(
948+
&rpg::Terms::maniac_skill_learned_a,
949+
LDB_Reader::ChunkTerms::maniac_skill_learned_a,
950+
"maniac_skill_learned_a",
951+
0,
952+
0
953+
);
912954
static TypedField<rpg::Terms, DBString> static_easyrpg_item_number_separator(
913955
&rpg::Terms::easyrpg_item_number_separator,
914956
LDB_Reader::ChunkTerms::easyrpg_item_number_separator,
@@ -1180,6 +1222,12 @@ Field<rpg::Terms> const* Struct<rpg::Terms>::fields[] = {
11801222
&static_exit_game_message,
11811223
&static_yes,
11821224
&static_no,
1225+
&static_maniac_item_received_a,
1226+
&static_maniac_level_up_a,
1227+
&static_maniac_level_up_b,
1228+
&static_maniac_level_up_c,
1229+
&static_maniac_exp_received_a,
1230+
&static_maniac_skill_learned_a,
11831231
&static_easyrpg_item_number_separator,
11841232
&static_easyrpg_skill_cost_separator,
11851233
&static_easyrpg_equipment_arrow,

src/generated/rpg_terms.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,12 @@ std::ostream& operator<<(std::ostream& os, const Terms& obj) {
144144
os << ", exit_game_message="<< obj.exit_game_message;
145145
os << ", yes="<< obj.yes;
146146
os << ", no="<< obj.no;
147+
os << ", maniac_item_received_a="<< obj.maniac_item_received_a;
148+
os << ", maniac_level_up_a="<< obj.maniac_level_up_a;
149+
os << ", maniac_level_up_b="<< obj.maniac_level_up_b;
150+
os << ", maniac_level_up_c="<< obj.maniac_level_up_c;
151+
os << ", maniac_exp_received_a="<< obj.maniac_exp_received_a;
152+
os << ", maniac_skill_learned_a="<< obj.maniac_skill_learned_a;
147153
os << ", easyrpg_item_number_separator="<< obj.easyrpg_item_number_separator;
148154
os << ", easyrpg_skill_cost_separator="<< obj.easyrpg_skill_cost_separator;
149155
os << ", easyrpg_equipment_arrow="<< obj.easyrpg_equipment_arrow;

0 commit comments

Comments
 (0)