Description:
Tweak some settings
Make upkeep more expensive, planting/clearing cheaper, and large corporate
contracts take up more land.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -124,7 +124,7 | |||||
|
124 | } |
|
124 | } |
|
125 |
|
125 | ||
|
126 | foreach (var (entity, status) in ReadEntities<AreaComponent>().SelectWhereF((e) => (e, GetComponent<ContractStatusComponent>(e)), |
|
126 | foreach (var (entity, status) in ReadEntities<AreaComponent>().SelectWhereF((e) => (e, GetComponent<ContractStatusComponent>(e)), |
|
127 | (e) => (e.Item2.status != ContractStatus.Expired)) |
|
127 | (e) => ((e.Item2.status != ContractStatus.Broken) && (e.Item2.status != ContractStatus.Expired))) |
|
128 | ) |
|
128 | ) |
|
129 | { |
|
129 | { |
|
130 | var entitySquares = GetComponent<AreaComponent>(entity).squares; |
|
130 | var entitySquares = GetComponent<AreaComponent>(entity).squares; |
@@ -143,7 +143,7 | |||||
|
143 |
|
143 | ||
|
144 | int max_squares = (organization_type, message.min_squares) switch { |
|
144 | int max_squares = (organization_type, message.min_squares) switch { |
|
145 | (OrganizationType.Family, null) => random_generator.Next(50, 100), |
|
145 | (OrganizationType.Family, null) => random_generator.Next(50, 100), |
|
146 |
(OrganizationType.LargeCorporation, null) => random_generator.Next( |
|
146 | (OrganizationType.LargeCorporation, null) => random_generator.Next(90, 200), |
|
147 | (OrganizationType.Cooperative, null) => random_generator.Next(50, 75), |
|
147 | (OrganizationType.Cooperative, null) => random_generator.Next(50, 75), |
|
148 | (_, null) => random_generator.Next(DEFAULT_MIN_SQUARES, DEFAULT_SQUARES), |
|
148 | (_, null) => random_generator.Next(DEFAULT_MIN_SQUARES, DEFAULT_SQUARES), |
|
149 | _ => (message.max_squares == 0) ? DEFAULT_SQUARES : message.max_squares |
|
149 | _ => (message.max_squares == 0) ? DEFAULT_SQUARES : message.max_squares |
@@ -53,8 +53,8 | |||||
|
53 | private const float NEIGHBOR_NEW_TREE_CHANCE = 0.995f; |
|
53 | private const float NEIGHBOR_NEW_TREE_CHANCE = 0.995f; |
|
54 | private const float NEIGHBOR_CROWDS_TREE_CHANCE = 0.995f; |
|
54 | private const float NEIGHBOR_CROWDS_TREE_CHANCE = 0.995f; |
|
55 |
|
55 | ||
|
56 |
public const int TREE_PLANT_COST = |
|
56 | public const int TREE_PLANT_COST = 500; |
|
57 |
public const int TREE_CLEAR_COST = 5 |
|
57 | public const int TREE_CLEAR_COST = 250; |
|
58 |
|
58 | ||
|
59 | public const int MAX_TREES_TO_PLANT = 25; |
|
59 | public const int MAX_TREES_TO_PLANT = 25; |
|
60 | public const int MAX_TREES_TO_CLEAR = 25; |
|
60 | public const int MAX_TREES_TO_CLEAR = 25; |
@@ -296,7 +296,7 | |||||
|
296 | trees = this.map.tree_count, |
|
296 | trees = this.map.tree_count, |
|
297 | subsidy = 1000, |
|
297 | subsidy = 1000, |
|
298 | contracts = this.contracts, |
|
298 | contracts = this.contracts, |
|
299 | upkeep = this.map.tree_count * 1, |
|
299 | upkeep = (int)(this.map.tree_count * 1.5), |
|
300 | tree_planting = this.tree_planting * Simulation.TREE_PLANT_COST, |
|
300 | tree_planting = this.tree_planting * Simulation.TREE_PLANT_COST, |
|
301 | tree_clearing = this.tree_clearing * Simulation.TREE_CLEAR_COST |
|
301 | tree_clearing = this.tree_clearing * Simulation.TREE_CLEAR_COST |
|
302 | }; |
|
302 | }; |
You need to be logged in to leave comments.
Login now