Constants.py (view raw)
1#!/usr/bin/python3
2PATCH_VERSION = '1.1.1'
3FINAL_ROM_NAME = f'Mother 1+2 [T+Ita{patch_version}].gba'
4
5STATUS_START = "Benvenutə al patcher per Mother 1+2."
6STATUS_MD5 = "MD5 verificato."
7
8VAR_FILEPICKER = "ROM giapponese di Mother 1+2"
9
10WARNING_TITLE = "Attenzione"
11WARNING_EXTRACT = "È necessario estrarre l'archivio."
12WARNING_MD5_MISMATCH = "La ROM selezionata non è compatibile con la nostra patch."
13
14
15PRESETS = {
16 "Scelte consigliate": {
17 'font': 1,
18 'sprites': 3,
19 'places': 6,
20 'palette': 8,
21 'skip_m1': 1
22 },
23 "EB Beginnings (US)": {
24 'font': 1,
25 'sprites': 4,
26 'places': 6,
27 'palette': 8,
28 'skip_m1': 1
29 },
30 "Mother 1 (JP)": {
31 'font': 1,
32 'sprites': 5,
33 'places': 7,
34 'palette': 8,
35 'skip_m1': 1
36 },
37 "Mother 1+2": {
38 'font': 1,
39 'sprites': 4,
40 'places': 7,
41 'palette': 9,
42 'skip_m1': 0
43 }
44}
45
46DEF_FILENAMES = {
47 'font': ['m1_gfx_font.bin'],
48 'sprites': [
49 'm1_restoration_gfx_sprites.bin',
50 'm1_restoration_gfx_ending.bin',
51 'm1_restoration_gfx_enemies.bin',
52 'm1_restoration_gfx_maptiles.bin'
53 ],
54 'places': [
55 'm1_main_text.txt',
56 'm1_gfx_map.bin'
57 ]
58}
59
60ALT_FILENAMES = {
61 100: {'option': '\nFONT'},
62 1: {
63 'option': 'Originale (serif)',
64 'files': ['m1_gfx_font_og.bin']
65 },
66 2: {
67 'option': 'Tomato (sans)',
68 'files': ['m1_gfx_font_new.bin']
69 },
70 101: {'option': '\nSPRITE E TILE'},
71 3: {
72 'option': 'Mix',
73 'files': [
74 'm1_restoration_gfx_sprites_mix.bin',
75 'm1_restoration_gfx_ending_us.bin',
76 'm1_restoration_gfx_enemies_jp.bin',
77 'm1_restoration_gfx_maptiles_jp.bin'
78 ]
79 },
80 4: {
81 'option': 'US',
82 'files': [
83 'm1_restoration_gfx_sprites_us.bin',
84 'm1_restoration_gfx_ending_us.bin',
85 'm1_restoration_gfx_enemies_us.bin',
86 'm1_restoration_gfx_maptiles_us.bin'
87 ]
88 },
89 5: {
90 'option': 'JP',
91 'files': [
92 'm1_restoration_gfx_sprites_jp.bin',
93 'm1_restoration_gfx_ending_jp.bin',
94 'm1_restoration_gfx_enemies_jp.bin',
95 'm1_restoration_gfx_maptiles_jp.bin'
96 ]
97 },
98 102: {'option': '\nLUOGHI'},
99 6: {
100 'option': 'US',
101 'files': [
102 'm1_main_text_us.txt',
103 'm1_gfx_map_us.bin'
104 ]
105 },
106 7: {
107 'option': 'JP',
108 'files': [
109 'm1_main_text_jp.txt',
110 'm1_gfx_map_jp.bin'
111 ]
112 },
113 103: {'option': '\nPALETTE'},
114 8: {
115 'option': 'NES',
116 'files': 'nes.ips'
117 },
118 9: {
119 'option': 'GBA',
120 'files': None
121 },
122 10: {
123 'option': 'Nintendo Classic Mini - NES',
124 'files': 'ncm.ips'
125 },
126 11: {
127 'option': 'Virtual Console Wii e Wii U',
128 'files': 'vc.ips'
129 },
130 104: {'option': '\nSKIP A MOTHER 1?'},
131 12: {
132 'option': 'Sì',
133 'files': 'skipm1.ips'
134 },
135 13: {
136 'option': 'No',
137 'files': None
138 }
139}