mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Factorio: revamped location system (#1147)
This commit is contained in:
@@ -41,17 +41,30 @@ class Goal(Choice):
|
||||
default = 0
|
||||
|
||||
|
||||
class TechCost(Choice):
|
||||
"""How expensive are the technologies."""
|
||||
display_name = "Technology Cost Scale"
|
||||
option_very_easy = 0
|
||||
option_easy = 1
|
||||
option_kind = 2
|
||||
option_normal = 3
|
||||
option_hard = 4
|
||||
option_very_hard = 5
|
||||
option_insane = 6
|
||||
default = 3
|
||||
class TechCost(Range):
|
||||
range_start = 1
|
||||
range_end = 10000
|
||||
default = 5
|
||||
|
||||
|
||||
class MinTechCost(TechCost):
|
||||
"""The cheapest a Technology can be in Science Packs."""
|
||||
display_name = "Minimum Science Pack Cost"
|
||||
default = 5
|
||||
|
||||
|
||||
class MaxTechCost(TechCost):
|
||||
"""The most expensive a Technology can be in Science Packs."""
|
||||
display_name = "Maximum Science Pack Cost"
|
||||
default = 500
|
||||
|
||||
|
||||
class TechCostMix(Range):
|
||||
"""Percent chance that a preceding Science Pack is also required.
|
||||
Chance is rolled per preceding pack."""
|
||||
display_name = "Science Pack Cost Mix"
|
||||
range_end = 100
|
||||
default = 70
|
||||
|
||||
|
||||
class Silo(Choice):
|
||||
@@ -168,7 +181,7 @@ class FactorioFreeSampleWhitelist(OptionSet):
|
||||
|
||||
|
||||
class TrapCount(Range):
|
||||
range_end = 4
|
||||
range_end = 25
|
||||
|
||||
|
||||
class AttackTrapCount(TrapCount):
|
||||
@@ -343,7 +356,9 @@ factorio_options: typing.Dict[str, type(Option)] = {
|
||||
"max_science_pack": MaxSciencePack,
|
||||
"goal": Goal,
|
||||
"tech_tree_layout": TechTreeLayout,
|
||||
"tech_cost": TechCost,
|
||||
"min_tech_cost": MinTechCost,
|
||||
"max_tech_cost": MaxTechCost,
|
||||
"tech_cost_mix": TechCostMix,
|
||||
"silo": Silo,
|
||||
"satellite": Satellite,
|
||||
"free_samples": FreeSamples,
|
||||
|
Reference in New Issue
Block a user