📦 Game Update 13965

This commit is contained in:
a2x
2023-10-26 16:40:24 +10:00
parent 239c872b65
commit 9a9af96afd
83 changed files with 600 additions and 545 deletions

View File

@@ -22,9 +22,9 @@ impl FileBuilder for PythonFileBuilder {
name: &str,
comment: Option<&str>,
) -> Result<()> {
let comment = comment.map_or(String::new(), |c| format!("# {}", c));
let comment = comment.map_or(String::new(), |c| format!(" # {}", c));
write!(output, "class {}: {}\n", name, comment)
write!(output, "class {}:{}\n", name, comment)
}
fn write_variable(
@@ -37,11 +37,11 @@ impl FileBuilder for PythonFileBuilder {
) -> Result<()> {
let indentation = " ".repeat(indentation.unwrap_or(4));
let comment = comment.map_or(String::new(), |c| format!("# {}", c));
let comment = comment.map_or(String::new(), |c| format!(" # {}", c));
write!(
output,
"{}{} = {:#X} {}\n",
"{}{} = {:#X}{}\n",
indentation, name, value, comment
)
}