moves: add move name strings
This commit is contained in:
parent
0348eb2e74
commit
be07dddc55
@ -57,6 +57,7 @@ def struct_move_t():
|
|||||||
"uint8_t type;",
|
"uint8_t type;",
|
||||||
"uint8_t accuracy;",
|
"uint8_t accuracy;",
|
||||||
"uint8_t pp;",
|
"uint8_t pp;",
|
||||||
|
"const uint8_t * name;"
|
||||||
"",
|
"",
|
||||||
"enum move {",
|
"enum move {",
|
||||||
*_move_constants_str,
|
*_move_constants_str,
|
||||||
@ -76,6 +77,7 @@ def generate_header():
|
|||||||
|
|
||||||
def move(constant_index, constant_name):
|
def move(constant_index, constant_name):
|
||||||
_move = parse.move_moves_list()[constant_index]
|
_move = parse.move_moves_list()[constant_index]
|
||||||
|
_move_name = parse.move_names_list()[constant_index]
|
||||||
return [
|
return [
|
||||||
f"[move_t::{constant_name.lower()}] = {{",
|
f"[move_t::{constant_name.lower()}] = {{",
|
||||||
".animation = 0,",
|
".animation = 0,",
|
||||||
@ -84,6 +86,7 @@ def move(constant_index, constant_name):
|
|||||||
".type = 0,",
|
".type = 0,",
|
||||||
f".accuracy = {_move.accuracy},",
|
f".accuracy = {_move.accuracy},",
|
||||||
f".pp = {_move.pp},",
|
f".pp = {_move.pp},",
|
||||||
|
f".name = reinterpret_cast<const uint8_t*>(\"{_move_name}\"),",
|
||||||
"},"
|
"},"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user