Added all (for now) features to the command builder
This commit is contained in:
@@ -89,6 +89,8 @@ def server_command_builder(
|
||||
thrones: tuple[int, int, int] = (1, 1, 1),
|
||||
required_apoints: int = 0,
|
||||
cataclysm: int = 0,
|
||||
vwrap: bool = True,
|
||||
hwrap: bool = True,
|
||||
):
|
||||
available_nations = get_nations()
|
||||
|
||||
@@ -172,6 +174,53 @@ def server_command_builder(
|
||||
command.append(" --hof_size " + str(hof_size))
|
||||
if not global_slots == 5:
|
||||
command.append(" --globals " + str(global_slots))
|
||||
if not inde_strength == 5:
|
||||
command.append(" --indepstr " + str(inde_strength))
|
||||
if not magic_sites == 40:
|
||||
command.append(" --magisites " + str(magic_sites))
|
||||
command.append(" --eventrarity " + str(event_rarity))
|
||||
if not richness == 100:
|
||||
command.append(" --richness " + str(richness))
|
||||
if not resources == 100:
|
||||
command.append(" --resources" + str(resources))
|
||||
if not recruitment == 100:
|
||||
command.append(" --recruitment" + str(recruitment))
|
||||
if not supplies == 100:
|
||||
command.append(" --supplies" + str(supplies))
|
||||
if not masterpass == "":
|
||||
command.append(" --masterpass " + masterpass)
|
||||
# i am going insane
|
||||
if not start_prov == 1:
|
||||
command.append(" --startprov " + str(start_prov))
|
||||
if renaming:
|
||||
command.append(" --renaming ")
|
||||
if score_graphs:
|
||||
command.append(" --scoregraphs ")
|
||||
if no_nation_info:
|
||||
command.append(" --nonationinfo ")
|
||||
if no_cheat_det:
|
||||
command.append(" --nocheatdet ")
|
||||
if no_artifact_rest:
|
||||
command.append(" --noartrest ")
|
||||
if story_events == 1:
|
||||
command.append(" --storyevents ")
|
||||
elif story_events == 2:
|
||||
command.append(" --allstoryevents ")
|
||||
command.append(" --newailvl " + str(new_ai_lvl))
|
||||
if no_new_ai:
|
||||
command.append(" --nonewai ")
|
||||
if conq_all:
|
||||
command.append(" --conqall ")
|
||||
command.append(
|
||||
" --thrones " + str(thrones[0]) + " " + str(thrones[1]) + " " + str(thrones[2])
|
||||
)
|
||||
command.append(" --requiredap " + str(required_apoints))
|
||||
if not cataclysm == 0:
|
||||
command.append(" --cataclysm " + str(cataclysm))
|
||||
if vwrap:
|
||||
command.append(" --vwrap ")
|
||||
if not hwrap:
|
||||
command.append(" --nohwrap ")
|
||||
return command
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user