Add alt names for map options
This commit is contained in:
parent
23add4aba3
commit
e44fc0ee09
100
map_config.gd
100
map_config.gd
|
@ -567,13 +567,13 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-int value for shotlife")
|
||||
num_errors += 1
|
||||
"firerepeatrate":
|
||||
"firerepeatrate", "firerepeat":
|
||||
if value.is_valid_int():
|
||||
firerepeatrate = value.to_int()
|
||||
else:
|
||||
push_warning("Non-int value for firerepeatrate")
|
||||
num_errors += 1
|
||||
"maxrobots":
|
||||
"maxrobots", "robots":
|
||||
if value.is_valid_int():
|
||||
maxrobots = value.to_int()
|
||||
else:
|
||||
|
@ -647,7 +647,7 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-int value for tankscoredecrement")
|
||||
num_errors += 1
|
||||
"turnthrust":
|
||||
"turnthrust", "turnfuel":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
turnthrust = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -663,7 +663,7 @@ func set_option(option: String, value: String) -> void:
|
|||
defaultshipshape = value
|
||||
"tankshipshape":
|
||||
tankshipshape = value
|
||||
"maxplayershots":
|
||||
"maxplayershots", "shots":
|
||||
if value.is_valid_int():
|
||||
maxplayershots = value.to_int()
|
||||
else:
|
||||
|
@ -705,19 +705,19 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for allowplayerbounces")
|
||||
num_errors += 1
|
||||
"allowplayerkilling":
|
||||
"allowplayerkilling", "killings":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
allowplayerkilling = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for allowplayerkilling")
|
||||
num_errors += 1
|
||||
"allowshields":
|
||||
"allowshields", "shields":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
allowshields = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for allowshields")
|
||||
num_errors += 1
|
||||
"playerstartsshielded":
|
||||
"playerstartsshielded", "playerstartshielded":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
playerstartsshielded = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -795,43 +795,43 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for cloakedshield")
|
||||
num_errors += 1
|
||||
"maxobjectwallbouncespeed":
|
||||
"maxobjectwallbouncespeed", "maxobjectbouncespeed":
|
||||
if value.is_valid_float():
|
||||
maxobjectwallbouncespeed = value.to_float()
|
||||
else:
|
||||
push_warning("Non-float value for maxobjectwallbouncespeed")
|
||||
num_errors += 1
|
||||
"maxshieldedwallbouncespeed":
|
||||
"maxshieldedwallbouncespeed", "maxshieldedbouncespeed":
|
||||
if value.is_valid_float():
|
||||
maxshieldedwallbouncespeed = value.to_float()
|
||||
else:
|
||||
push_warning("Non-float value for maxshieldedwallbouncespeed")
|
||||
num_errors += 1
|
||||
"maxunshieldedwallbouncespeed":
|
||||
"maxunshieldedwallbouncespeed", "maxunshieldedbouncespeed":
|
||||
if value.is_valid_float():
|
||||
maxunshieldedwallbouncespeed = value.to_float()
|
||||
else:
|
||||
push_warning("Non-float value for maxunshieldedwallbouncespeed")
|
||||
num_errors += 1
|
||||
"maxshieldedplayerwallbounceangle":
|
||||
"maxshieldedplayerwallbounceangle", "maxshieldedbounceangle":
|
||||
if value.is_valid_float():
|
||||
maxshieldedplayerwallbounceangle = value.to_float()
|
||||
else:
|
||||
push_warning("Non-float value for maxshieldedplayerwallbounceangle")
|
||||
num_errors += 1
|
||||
"maxunshieldedplayerwallbounceangle":
|
||||
"maxunshieldedplayerwallbounceangle", "maxunshieldedbounceangle":
|
||||
if value.is_valid_float():
|
||||
maxunshieldedplayerwallbounceangle = value.to_float()
|
||||
else:
|
||||
push_warning("Non-float value for maxunshieldedplayerwallbounceangle")
|
||||
num_errors += 1
|
||||
"playerwallbouncebrakefactor":
|
||||
"playerwallbouncebrakefactor", "playerwallbrake":
|
||||
if value.is_valid_float():
|
||||
playerwallbouncebrakefactor = value.to_float()
|
||||
else:
|
||||
push_warning("Non-float value for playerwallbouncebrakefactor")
|
||||
num_errors += 1
|
||||
"objectwallbouncebrakefactor":
|
||||
"objectwallbouncebrakefactor", "objectwallbrake":
|
||||
if value.is_valid_float():
|
||||
objectwallbouncebrakefactor = value.to_float()
|
||||
else:
|
||||
|
@ -843,7 +843,7 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-float value for objectwallbouncelifefactor")
|
||||
num_errors += 1
|
||||
"wallbouncefueldrainmult":
|
||||
"wallbouncefueldrainmult", "wallbouncedrail":
|
||||
if value.is_valid_float():
|
||||
wallbouncefueldrainmult = value.to_float()
|
||||
else:
|
||||
|
@ -861,13 +861,13 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for limitedvisibility")
|
||||
num_errors += 1
|
||||
"minvisibilitydistance":
|
||||
"minvisibilitydistance", "minvisibility":
|
||||
if value.is_valid_float():
|
||||
minvisibilitydistance = value.to_float()
|
||||
else:
|
||||
push_warning("Non-float value for minvisibilitydistance")
|
||||
num_errors += 1
|
||||
"maxvisibilitydistance":
|
||||
"maxvisibilitydistance", "maxvisibility":
|
||||
if value.is_valid_float():
|
||||
maxvisibilitydistance = value.to_float()
|
||||
else:
|
||||
|
@ -879,7 +879,7 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for limitedlives")
|
||||
num_errors += 1
|
||||
"worldlives":
|
||||
"worldlives", "lives":
|
||||
if value.is_valid_int():
|
||||
worldlives = value.to_int()
|
||||
else:
|
||||
|
@ -891,13 +891,13 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for reset")
|
||||
num_errors += 1
|
||||
"resetonhuman":
|
||||
"resetonhuman", "humanreset":
|
||||
if value.is_valid_int():
|
||||
resetonhuman = value.to_int()
|
||||
else:
|
||||
push_warning("Non-int value for resetonhuman")
|
||||
num_errors += 1
|
||||
"allowalliances":
|
||||
"allowalliances", "alliances":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
allowalliances = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -909,7 +909,7 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for announcealliances")
|
||||
num_errors += 1
|
||||
"teamplay":
|
||||
"teamplay", "teams":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
teamplay = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -933,7 +933,7 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-int value for cannonsmartness")
|
||||
num_errors += 1
|
||||
"cannonsuseitems":
|
||||
"cannonsuseitems", "cannonspickupitems":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
cannonsuseitems = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -945,7 +945,7 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for cannonsdefend")
|
||||
num_errors += 1
|
||||
"cannonflak":
|
||||
"cannonflak", "cannonaaa":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
cannonflak = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -999,7 +999,7 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for targetkillteam")
|
||||
num_errors += 1
|
||||
"targetteamcollision":
|
||||
"targetteamcollision", "targetcollision":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
targetteamcollision = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -1023,13 +1023,13 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for treasurekillteam")
|
||||
num_errors += 1
|
||||
"capturetheflag":
|
||||
"capturetheflag", "ctf":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
capturetheflag = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for capturetheflag")
|
||||
num_errors += 1
|
||||
"treasurecollisiondestroys":
|
||||
"treasurecollisiondestroys", "treasurecollisiondestroy":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
treasurecollisiondestroys = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -1065,25 +1065,25 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for connectorisstring")
|
||||
num_errors += 1
|
||||
"treasurecollisionmaykill":
|
||||
"treasurecollisionmaykill", "treasureunshieldedcollisionkills":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
treasurecollisionmaykill = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for treasurecollisionmaykill")
|
||||
num_errors += 1
|
||||
"wreckagecollisionmaykill":
|
||||
"wreckagecollisionmaykill", "wreckageunshieldedcollisionkills":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
wreckagecollisionmaykill = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for wreckagecollisionmaykill")
|
||||
num_errors += 1
|
||||
"asteroidcollisionmaykill":
|
||||
"asteroidcollisionmaykill", "asteroidunshieldedcollisionkills":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
asteroidcollisionmaykill = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for asteroidcollisionmaykill")
|
||||
num_errors += 1
|
||||
"timing":
|
||||
"timing", "race":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
timing = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -1181,37 +1181,37 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-int value for wormtime")
|
||||
num_errors += 1
|
||||
"framespersecond":
|
||||
"framespersecond", "fps":
|
||||
if value.is_valid_int():
|
||||
framespersecond = value.to_int()
|
||||
else:
|
||||
push_warning("Non-int value for framespersecond")
|
||||
num_errors += 1
|
||||
"allowsmartmissiles":
|
||||
"allowsmartmissiles", "allowsmarts":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
allowsmartmissiles = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for allowsmartmissiles")
|
||||
num_errors += 1
|
||||
"allowheatseekers":
|
||||
"allowheatseekers", "allowheats":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
allowheatseekers = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for allowheatseekers")
|
||||
num_errors += 1
|
||||
"allowtorpedoes":
|
||||
"allowtorpedoes", "allowtorps":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
allowtorpedoes = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for allowtorpedoes")
|
||||
num_errors += 1
|
||||
"allownukes":
|
||||
"allownukes", "nukes":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
allownukes = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for allownukes")
|
||||
num_errors += 1
|
||||
"allowclusters":
|
||||
"allowclusters", "clusters":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
allowclusters = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -1223,49 +1223,49 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for allowmodifiers")
|
||||
num_errors += 1
|
||||
"allowlasermodifiers":
|
||||
"allowlasermodifiers", "lasermodifiers":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
allowlasermodifiers = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for allowlasermodifiers")
|
||||
num_errors += 1
|
||||
"allowshipshapes":
|
||||
"allowshipshapes", "shipshapes":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
allowshipshapes = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for allowshipshapes")
|
||||
num_errors += 1
|
||||
"playersonradar":
|
||||
"playersonradar", "playersradar":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
playersonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for playersonradar")
|
||||
num_errors += 1
|
||||
"missilesonradar":
|
||||
"missilesonradar", "missilesradar":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
missilesonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for missilesonradar")
|
||||
num_errors += 1
|
||||
"minesonradar":
|
||||
"minesonradar", "minesradar":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
minesonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for minesonradar")
|
||||
num_errors += 1
|
||||
"nukesonradar":
|
||||
"nukesonradar", "nukesradar":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
nukesonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for nukesonradar")
|
||||
num_errors += 1
|
||||
"treasuresonradar":
|
||||
"treasuresonradar", "treasuresradar":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
treasuresonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for treasuresonradar")
|
||||
num_errors += 1
|
||||
"asteroidsonradar":
|
||||
"asteroidsonradar", "asteroidsradar":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
asteroidsonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -1295,19 +1295,19 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-bool value for identifymines")
|
||||
num_errors += 1
|
||||
"shieldeditempickup":
|
||||
"shieldeditempickup", "shielditem":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
shieldeditempickup = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for shieldeditempickup")
|
||||
num_errors += 1
|
||||
"shieldedmining":
|
||||
"shieldedmining", "shieldmine":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
shieldedmining = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
push_warning("Non-bool value for shieldedmining")
|
||||
num_errors += 1
|
||||
"laserisstungun":
|
||||
"laserisstungun", "stungun":
|
||||
if value.to_lower() == "yes" or value.to_lower() == "true" or value.to_lower() == "no" or value.to_lower() == "false":
|
||||
laserisstungun = (value.to_lower() == "yes" or value.to_lower() == "true")
|
||||
else:
|
||||
|
@ -1541,7 +1541,7 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-int value for maxasteroiddensity")
|
||||
num_errors += 1
|
||||
"itemconcentratorradius":
|
||||
"itemconcentratorradius", "itemconcentratorrange":
|
||||
if value.is_valid_int():
|
||||
itemconcentratorradius = value.to_int()
|
||||
else:
|
||||
|
@ -1553,7 +1553,7 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-float value for itemconcentratorprob")
|
||||
num_errors += 1
|
||||
"asteroidconcentratorradius":
|
||||
"asteroidconcentratorradius", "asteroidconcentratorrange":
|
||||
if value.is_valid_int():
|
||||
asteroidconcentratorradius = value.to_int()
|
||||
else:
|
||||
|
@ -1781,7 +1781,7 @@ func set_option(option: String, value: String) -> void:
|
|||
else:
|
||||
push_warning("Non-int value for initialmirrors")
|
||||
num_errors += 1
|
||||
"maxarmor":
|
||||
"maxarmor", "maxarmors":
|
||||
if value.is_valid_int():
|
||||
maxarmor = value.to_int()
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue