Add alt names for map options

This commit is contained in:
DeathByDenim 2023-05-22 14:46:22 -04:00
parent 23add4aba3
commit e44fc0ee09
Signed by: DeathByDenim
GPG Key ID: 4A475283D925365B
1 changed files with 50 additions and 50 deletions

View File

@ -567,13 +567,13 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-int value for shotlife") push_warning("Non-int value for shotlife")
num_errors += 1 num_errors += 1
"firerepeatrate": "firerepeatrate", "firerepeat":
if value.is_valid_int(): if value.is_valid_int():
firerepeatrate = value.to_int() firerepeatrate = value.to_int()
else: else:
push_warning("Non-int value for firerepeatrate") push_warning("Non-int value for firerepeatrate")
num_errors += 1 num_errors += 1
"maxrobots": "maxrobots", "robots":
if value.is_valid_int(): if value.is_valid_int():
maxrobots = value.to_int() maxrobots = value.to_int()
else: else:
@ -647,7 +647,7 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-int value for tankscoredecrement") push_warning("Non-int value for tankscoredecrement")
num_errors += 1 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": 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") turnthrust = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -663,7 +663,7 @@ func set_option(option: String, value: String) -> void:
defaultshipshape = value defaultshipshape = value
"tankshipshape": "tankshipshape":
tankshipshape = value tankshipshape = value
"maxplayershots": "maxplayershots", "shots":
if value.is_valid_int(): if value.is_valid_int():
maxplayershots = value.to_int() maxplayershots = value.to_int()
else: else:
@ -705,19 +705,19 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for allowplayerbounces") push_warning("Non-bool value for allowplayerbounces")
num_errors += 1 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": 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") allowplayerkilling = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for allowplayerkilling") push_warning("Non-bool value for allowplayerkilling")
num_errors += 1 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": 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") allowshields = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for allowshields") push_warning("Non-bool value for allowshields")
num_errors += 1 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": 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") playerstartsshielded = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -795,43 +795,43 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for cloakedshield") push_warning("Non-bool value for cloakedshield")
num_errors += 1 num_errors += 1
"maxobjectwallbouncespeed": "maxobjectwallbouncespeed", "maxobjectbouncespeed":
if value.is_valid_float(): if value.is_valid_float():
maxobjectwallbouncespeed = value.to_float() maxobjectwallbouncespeed = value.to_float()
else: else:
push_warning("Non-float value for maxobjectwallbouncespeed") push_warning("Non-float value for maxobjectwallbouncespeed")
num_errors += 1 num_errors += 1
"maxshieldedwallbouncespeed": "maxshieldedwallbouncespeed", "maxshieldedbouncespeed":
if value.is_valid_float(): if value.is_valid_float():
maxshieldedwallbouncespeed = value.to_float() maxshieldedwallbouncespeed = value.to_float()
else: else:
push_warning("Non-float value for maxshieldedwallbouncespeed") push_warning("Non-float value for maxshieldedwallbouncespeed")
num_errors += 1 num_errors += 1
"maxunshieldedwallbouncespeed": "maxunshieldedwallbouncespeed", "maxunshieldedbouncespeed":
if value.is_valid_float(): if value.is_valid_float():
maxunshieldedwallbouncespeed = value.to_float() maxunshieldedwallbouncespeed = value.to_float()
else: else:
push_warning("Non-float value for maxunshieldedwallbouncespeed") push_warning("Non-float value for maxunshieldedwallbouncespeed")
num_errors += 1 num_errors += 1
"maxshieldedplayerwallbounceangle": "maxshieldedplayerwallbounceangle", "maxshieldedbounceangle":
if value.is_valid_float(): if value.is_valid_float():
maxshieldedplayerwallbounceangle = value.to_float() maxshieldedplayerwallbounceangle = value.to_float()
else: else:
push_warning("Non-float value for maxshieldedplayerwallbounceangle") push_warning("Non-float value for maxshieldedplayerwallbounceangle")
num_errors += 1 num_errors += 1
"maxunshieldedplayerwallbounceangle": "maxunshieldedplayerwallbounceangle", "maxunshieldedbounceangle":
if value.is_valid_float(): if value.is_valid_float():
maxunshieldedplayerwallbounceangle = value.to_float() maxunshieldedplayerwallbounceangle = value.to_float()
else: else:
push_warning("Non-float value for maxunshieldedplayerwallbounceangle") push_warning("Non-float value for maxunshieldedplayerwallbounceangle")
num_errors += 1 num_errors += 1
"playerwallbouncebrakefactor": "playerwallbouncebrakefactor", "playerwallbrake":
if value.is_valid_float(): if value.is_valid_float():
playerwallbouncebrakefactor = value.to_float() playerwallbouncebrakefactor = value.to_float()
else: else:
push_warning("Non-float value for playerwallbouncebrakefactor") push_warning("Non-float value for playerwallbouncebrakefactor")
num_errors += 1 num_errors += 1
"objectwallbouncebrakefactor": "objectwallbouncebrakefactor", "objectwallbrake":
if value.is_valid_float(): if value.is_valid_float():
objectwallbouncebrakefactor = value.to_float() objectwallbouncebrakefactor = value.to_float()
else: else:
@ -843,7 +843,7 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-float value for objectwallbouncelifefactor") push_warning("Non-float value for objectwallbouncelifefactor")
num_errors += 1 num_errors += 1
"wallbouncefueldrainmult": "wallbouncefueldrainmult", "wallbouncedrail":
if value.is_valid_float(): if value.is_valid_float():
wallbouncefueldrainmult = value.to_float() wallbouncefueldrainmult = value.to_float()
else: else:
@ -861,13 +861,13 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for limitedvisibility") push_warning("Non-bool value for limitedvisibility")
num_errors += 1 num_errors += 1
"minvisibilitydistance": "minvisibilitydistance", "minvisibility":
if value.is_valid_float(): if value.is_valid_float():
minvisibilitydistance = value.to_float() minvisibilitydistance = value.to_float()
else: else:
push_warning("Non-float value for minvisibilitydistance") push_warning("Non-float value for minvisibilitydistance")
num_errors += 1 num_errors += 1
"maxvisibilitydistance": "maxvisibilitydistance", "maxvisibility":
if value.is_valid_float(): if value.is_valid_float():
maxvisibilitydistance = value.to_float() maxvisibilitydistance = value.to_float()
else: else:
@ -879,7 +879,7 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for limitedlives") push_warning("Non-bool value for limitedlives")
num_errors += 1 num_errors += 1
"worldlives": "worldlives", "lives":
if value.is_valid_int(): if value.is_valid_int():
worldlives = value.to_int() worldlives = value.to_int()
else: else:
@ -891,13 +891,13 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for reset") push_warning("Non-bool value for reset")
num_errors += 1 num_errors += 1
"resetonhuman": "resetonhuman", "humanreset":
if value.is_valid_int(): if value.is_valid_int():
resetonhuman = value.to_int() resetonhuman = value.to_int()
else: else:
push_warning("Non-int value for resetonhuman") push_warning("Non-int value for resetonhuman")
num_errors += 1 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": 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") allowalliances = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -909,7 +909,7 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for announcealliances") push_warning("Non-bool value for announcealliances")
num_errors += 1 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": 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") teamplay = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -933,7 +933,7 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-int value for cannonsmartness") push_warning("Non-int value for cannonsmartness")
num_errors += 1 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": 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") cannonsuseitems = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -945,7 +945,7 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for cannonsdefend") push_warning("Non-bool value for cannonsdefend")
num_errors += 1 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": 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") cannonflak = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -999,7 +999,7 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for targetkillteam") push_warning("Non-bool value for targetkillteam")
num_errors += 1 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": 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") targetteamcollision = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -1023,13 +1023,13 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for treasurekillteam") push_warning("Non-bool value for treasurekillteam")
num_errors += 1 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": 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") capturetheflag = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for capturetheflag") push_warning("Non-bool value for capturetheflag")
num_errors += 1 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": 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") treasurecollisiondestroys = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -1065,25 +1065,25 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for connectorisstring") push_warning("Non-bool value for connectorisstring")
num_errors += 1 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": 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") treasurecollisionmaykill = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for treasurecollisionmaykill") push_warning("Non-bool value for treasurecollisionmaykill")
num_errors += 1 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": 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") wreckagecollisionmaykill = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for wreckagecollisionmaykill") push_warning("Non-bool value for wreckagecollisionmaykill")
num_errors += 1 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": 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") asteroidcollisionmaykill = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for asteroidcollisionmaykill") push_warning("Non-bool value for asteroidcollisionmaykill")
num_errors += 1 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": 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") timing = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -1181,37 +1181,37 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-int value for wormtime") push_warning("Non-int value for wormtime")
num_errors += 1 num_errors += 1
"framespersecond": "framespersecond", "fps":
if value.is_valid_int(): if value.is_valid_int():
framespersecond = value.to_int() framespersecond = value.to_int()
else: else:
push_warning("Non-int value for framespersecond") push_warning("Non-int value for framespersecond")
num_errors += 1 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": 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") allowsmartmissiles = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for allowsmartmissiles") push_warning("Non-bool value for allowsmartmissiles")
num_errors += 1 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": 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") allowheatseekers = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for allowheatseekers") push_warning("Non-bool value for allowheatseekers")
num_errors += 1 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": 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") allowtorpedoes = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for allowtorpedoes") push_warning("Non-bool value for allowtorpedoes")
num_errors += 1 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": 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") allownukes = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for allownukes") push_warning("Non-bool value for allownukes")
num_errors += 1 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": 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") allowclusters = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -1223,49 +1223,49 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for allowmodifiers") push_warning("Non-bool value for allowmodifiers")
num_errors += 1 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": 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") allowlasermodifiers = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for allowlasermodifiers") push_warning("Non-bool value for allowlasermodifiers")
num_errors += 1 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": 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") allowshipshapes = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for allowshipshapes") push_warning("Non-bool value for allowshipshapes")
num_errors += 1 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": 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") playersonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for playersonradar") push_warning("Non-bool value for playersonradar")
num_errors += 1 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": 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") missilesonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for missilesonradar") push_warning("Non-bool value for missilesonradar")
num_errors += 1 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": 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") minesonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for minesonradar") push_warning("Non-bool value for minesonradar")
num_errors += 1 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": 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") nukesonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for nukesonradar") push_warning("Non-bool value for nukesonradar")
num_errors += 1 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": 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") treasuresonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for treasuresonradar") push_warning("Non-bool value for treasuresonradar")
num_errors += 1 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": 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") asteroidsonradar = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -1295,19 +1295,19 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-bool value for identifymines") push_warning("Non-bool value for identifymines")
num_errors += 1 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": 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") shieldeditempickup = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for shieldeditempickup") push_warning("Non-bool value for shieldeditempickup")
num_errors += 1 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": 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") shieldedmining = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
push_warning("Non-bool value for shieldedmining") push_warning("Non-bool value for shieldedmining")
num_errors += 1 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": 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") laserisstungun = (value.to_lower() == "yes" or value.to_lower() == "true")
else: else:
@ -1541,7 +1541,7 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-int value for maxasteroiddensity") push_warning("Non-int value for maxasteroiddensity")
num_errors += 1 num_errors += 1
"itemconcentratorradius": "itemconcentratorradius", "itemconcentratorrange":
if value.is_valid_int(): if value.is_valid_int():
itemconcentratorradius = value.to_int() itemconcentratorradius = value.to_int()
else: else:
@ -1553,7 +1553,7 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-float value for itemconcentratorprob") push_warning("Non-float value for itemconcentratorprob")
num_errors += 1 num_errors += 1
"asteroidconcentratorradius": "asteroidconcentratorradius", "asteroidconcentratorrange":
if value.is_valid_int(): if value.is_valid_int():
asteroidconcentratorradius = value.to_int() asteroidconcentratorradius = value.to_int()
else: else:
@ -1781,7 +1781,7 @@ func set_option(option: String, value: String) -> void:
else: else:
push_warning("Non-int value for initialmirrors") push_warning("Non-int value for initialmirrors")
num_errors += 1 num_errors += 1
"maxarmor": "maxarmor", "maxarmors":
if value.is_valid_int(): if value.is_valid_int():
maxarmor = value.to_int() maxarmor = value.to_int()
else: else: