Description:
Tweak contract generation.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -140,7 +140,7 | |||||
|
140 |
|
140 | ||
|
141 | int max_squares = (organization_type, message.min_squares) switch { |
|
141 | int max_squares = (organization_type, message.min_squares) switch { |
|
142 | (OrganizationType.Family, null) => random_generator.Next(50, 100), |
|
142 | (OrganizationType.Family, null) => random_generator.Next(50, 100), |
|
143 |
(OrganizationType.LargeCorporation, null) => random_generator.Next(90, 2 |
|
143 | (OrganizationType.LargeCorporation, null) => random_generator.Next(90, 250), |
|
144 | (OrganizationType.Cooperative, null) => random_generator.Next(50, 75), |
|
144 | (OrganizationType.Cooperative, null) => random_generator.Next(50, 75), |
|
145 | (_, null) => random_generator.Next(DEFAULT_MIN_SQUARES, DEFAULT_SQUARES), |
|
145 | (_, null) => random_generator.Next(DEFAULT_MIN_SQUARES, DEFAULT_SQUARES), |
|
146 | _ => (message.max_squares == 0) ? DEFAULT_SQUARES : message.max_squares |
|
146 | _ => (message.max_squares == 0) ? DEFAULT_SQUARES : message.max_squares |
@@ -188,16 +188,16 | |||||
|
188 |
|
188 | ||
|
189 | var deltaTrees = organization_type switch { |
|
189 | var deltaTrees = organization_type switch { |
|
190 |
|
190 | ||
|
191 |
OrganizationType.Family => random_generator.Next(-10, |
|
191 | OrganizationType.Family => random_generator.Next(-10, 0), |
|
192 | OrganizationType.LargeCorporation => random_generator.Next(-20, 0), |
|
192 | OrganizationType.LargeCorporation => random_generator.Next(-20, 0), |
|
193 | OrganizationType.Cooperative => random_generator.Next(-1, 3), |
|
193 | OrganizationType.Cooperative => random_generator.Next(-1, 3), |
|
194 | _ => random_generator.Next(-20, 3) |
|
194 | _ => random_generator.Next(-20, 3) |
|
195 | }; |
|
195 | }; |
|
196 |
|
196 | ||
|
197 | var contract_amount = organization_type switch { |
|
197 | var contract_amount = organization_type switch { |
|
198 | OrganizationType.Family => random_generator.Next(CONTRACT_MINIMUM, CONTRACT_MAXIMUM/2), |
|
198 | OrganizationType.Family => random_generator.Next(CONTRACT_MINIMUM, (int)(CONTRACT_MAXIMUM/2)), |
|
199 |
OrganizationType.LargeCorporation => random_generator.Next(CONTRACT_MINIMUM* |
|
199 | OrganizationType.LargeCorporation => random_generator.Next(CONTRACT_MINIMUM*3, (int)(CONTRACT_MAXIMUM*1.5)), |
|
200 | OrganizationType.Cooperative => random_generator.Next(CONTRACT_MINIMUM, CONTRACT_MAXIMUM/2), |
|
200 | OrganizationType.Cooperative => random_generator.Next(CONTRACT_MINIMUM, (int)(CONTRACT_MAXIMUM/2.5)), |
|
201 | _ => random_generator.Next(CONTRACT_MINIMUM, CONTRACT_MAXIMUM) |
|
201 | _ => random_generator.Next(CONTRACT_MINIMUM, CONTRACT_MAXIMUM) |
|
202 | }; |
|
202 | }; |
|
203 |
|
203 |
You need to be logged in to leave comments.
Login now