Battle Sub names can be plaintext too

This commit is contained in:
Mc-muffin
2024-12-01 11:22:42 -05:00
parent d1ed57162f
commit ce3af63b7a

View File

@@ -184,7 +184,10 @@ def text_to_cstr(text: str, is_name: bool = False) -> str:
elif token == "\n":
output += " NL "
else:
output += f'"{token}"'
if is_name and token != "&":
output += f'NAME("{token}")'
else:
output += f'"{token}"'
return output.strip()