1
0
mirror of https://git.ngram.ca/OpenJam/rc-servers synced 2026-08-23 23:08:52 +00:00

Load more config data from files (instead of hardcoded)

This commit is contained in:
NGnius (Graham)
2025-03-30 17:54:06 -04:00
parent 0e048a17b1
commit a540cf6d8f
17 changed files with 244 additions and 42 deletions

View File

@@ -174,6 +174,23 @@ CATEGORIES_PLACEMENTS = {
"EnergyModule": ALL_FACES,
}
LOGIN_MESSAGES = [
"No jam was harmed in the reverse-engineering of this game",
"Struggling to open jars since 2013",
"If you can read this, you've benefitted from an education department!",
"Support your local minorities",
"Слава Україні! Slava Ukraini!",
"Now with more poutine",
"Free Palestine!",
"Hacker free",
"Hey cutie",
"Tesla Coils are the only useful Teslas",
"Welcome to OpenJam's servers",
"Made in sovereign Canada",
"Finally, how to craft Robo",
"Warning, live without warning\nI say, warning, live without warning\nWithout, all right",
]
def guess_category(name: str, sprite: str) -> str:
name = name.lower()
sprite = sprite.lower()
@@ -427,7 +444,13 @@ def main(asset_in, cubes=None, weapons=None, movement=None):
}
],
},
}
},
"settings": {
"banners": [{
"message": msg,
"duration": 20,
} for msg in LOGIN_MESSAGES],
},
}
last_tech_tree_id = 0
tech_tree_index = 0