Forgor to actually add ai.

This commit is contained in:
2026-05-03 01:23:01 +02:00
parent ca7283d57a
commit 6aeb7fd303

View File

@@ -221,6 +221,26 @@ def server_command_builder(
command.append(" --vwrap") command.append(" --vwrap")
if not hwrap: if not hwrap:
command.append(" --nohwrap") command.append(" --nohwrap")
if not ai_slots == []:
for ai in ai_slots:
if ai[0] not in available_nations[era]:
return "ERROR_INVALID_NATION"
match ai[1]:
case 1:
command.append(" --easyai " + str(ai[0]))
case 2:
command.append(" --normai " + str(ai[0]))
case 3:
command.append(" --diffai " + str(ai[0]))
case 4:
command.append(" --mightyai " + str(ai[0]))
case 5:
command.append(" --masterai " + str(ai[0]))
case 6:
command.append(" --impai" + str(ai[0]))
case _:
return "EROR_INVALID_AI"
return "".join(command) return "".join(command)