moves: add move name strings
This commit is contained in:
parent
0348eb2e74
commit
9e94179a53
@ -51,6 +51,7 @@ def struct_move_t():
|
|||||||
_move_constants_str = (f"{s.lower()}," for s in _move_constants)
|
_move_constants_str = (f"{s.lower()}," for s in _move_constants)
|
||||||
return [
|
return [
|
||||||
"struct move_t {",
|
"struct move_t {",
|
||||||
|
"const uint8_t * name;"
|
||||||
"uint8_t animation;",
|
"uint8_t animation;",
|
||||||
"uint8_t effect;",
|
"uint8_t effect;",
|
||||||
"uint8_t power;",
|
"uint8_t power;",
|
||||||
@ -76,8 +77,10 @@ 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()}] = {{",
|
||||||
|
f".name = reinterpret_cast<const uint8_t*>(\"{_move_name}\"),",
|
||||||
".animation = 0,",
|
".animation = 0,",
|
||||||
".effect = 0,",
|
".effect = 0,",
|
||||||
f".power = {_move.power},",
|
f".power = {_move.power},",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user