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)
|
||||
return [
|
||||
"struct move_t {",
|
||||
"const uint8_t * name;"
|
||||
"uint8_t animation;",
|
||||
"uint8_t effect;",
|
||||
"uint8_t power;",
|
||||
@ -76,8 +77,10 @@ def generate_header():
|
||||
|
||||
def move(constant_index, constant_name):
|
||||
_move = parse.move_moves_list()[constant_index]
|
||||
_move_name = parse.move_names_list()[constant_index]
|
||||
return [
|
||||
f"[move_t::{constant_name.lower()}] = {{",
|
||||
f".name = reinterpret_cast<const uint8_t*>(\"{_move_name}\"),",
|
||||
".animation = 0,",
|
||||
".effect = 0,",
|
||||
f".power = {_move.power},",
|
||||
|
Loading…
x
Reference in New Issue
Block a user