|
13 | 13 | with NML; if not, write to the Free Software Foundation, Inc.,
|
14 | 14 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."""
|
15 | 15 |
|
16 |
| -from nml import expression, generic, grfstrings, global_constants |
17 |
| -from nml.actions import action8, action14 |
| 16 | +from nml import expression, free_number_list, generic, grfstrings, global_constants |
| 17 | +from nml.actions import action6, action8, action14 |
18 | 18 | from nml.ast import base_statement
|
19 | 19 |
|
20 | 20 | palette_node = None
|
|
25 | 25 | The 1st field is the largest parameter register used.
|
26 | 26 | The 2nd field is the maximum amount of parameter registers available. This is where L{action6.free_parameters} begins.
|
27 | 27 | """
|
28 |
| -param_stats = [0, 0x40] |
| 28 | +param_stats = [0, 0x80] |
29 | 29 |
|
30 | 30 | def print_stats():
|
31 | 31 | """
|
@@ -132,6 +132,8 @@ def pre_process(self):
|
132 | 132 | raise generic.ScriptError("No free parameters available. Consider assigning <num> manually and combine multiple bool parameters into a single bitmask parameter using <bit>.", self.pos)
|
133 | 133 | if param_num > param_stats[0]:
|
134 | 134 | param_stats[0] = param_num
|
| 135 | + action6.free_parameters = free_number_list.FreeNumberList(list(range(param_stats[0], 0x80)), "No free parameters available to use for internal computations.", "No unique free parameters available for internal computations.") |
| 136 | + |
135 | 137 |
|
136 | 138 | def debug_print(self, indentation):
|
137 | 139 | generic.print_dbg(indentation, 'GRF')
|
|
0 commit comments