match на if else
This commit is contained in:
parent
d1f06e7695
commit
597dc822be
25
hlna.py
25
hlna.py
@ -129,30 +129,29 @@ def config(map_server=list_config):
|
|||||||
if 0<amount_map<=12:
|
if 0<amount_map<=12:
|
||||||
break
|
break
|
||||||
|
|
||||||
match amount_map:
|
if amount_map == 1:
|
||||||
case 1:
|
|
||||||
map_server.append("TheIsland")
|
map_server.append("TheIsland")
|
||||||
case 2:
|
elif amount_map == 2:
|
||||||
map_server.append("TheCenter")
|
map_server.append("TheCenter")
|
||||||
case 3:
|
elif amount_map == 3:
|
||||||
map_server.append("ScorchedEarth_P")
|
map_server.append("ScorchedEarth_P")
|
||||||
case 4:
|
elif amount_map == 4:
|
||||||
map_server.append("Ragnarok")
|
map_server.append("Ragnarok")
|
||||||
case 5:
|
elif amount_map == 5:
|
||||||
map_server.append("Aberration_P")
|
map_server.append("Aberration_P")
|
||||||
case 6:
|
elif amount_map == 6:
|
||||||
map_server.append("Extinction")
|
map_server.append("Extinction")
|
||||||
case 7:
|
elif amount_map == 7:
|
||||||
map_server.append("Valguero_P")
|
map_server.append("Valguero_P")
|
||||||
case 8:
|
elif amount_map == 8:
|
||||||
map_server.append("Genesis")
|
map_server.append("Genesis")
|
||||||
case 9:
|
elif amount_map == 9:
|
||||||
map_server.append("CrystalIsles")
|
map_server.append("CrystalIsles")
|
||||||
case 10:
|
elif amount_map == 10:
|
||||||
map_server.append("Gen2")
|
map_server.append("Gen2")
|
||||||
case 11:
|
elif amount_map == 11:
|
||||||
map_server.append("LostIsland")
|
map_server.append("LostIsland")
|
||||||
case 12:
|
elif amount_map == 12:
|
||||||
map_server.append("Fjordur")
|
map_server.append("Fjordur")
|
||||||
name_server = input("Укажите название Сервера: \n")
|
name_server = input("Укажите название Сервера: \n")
|
||||||
if name_server == "":
|
if name_server == "":
|
||||||
|
Loading…
Reference in New Issue
Block a user