@@ -6,7 +6,7 @@ module G1812
6
6
module Entities
7
7
COMPANIES = [
8
8
{
9
- name : 'Tanfield Railway' ,
9
+ name : '1. Tanfield Railway' ,
10
10
sym : 'P1' ,
11
11
value : 15 ,
12
12
min_price : 5 ,
@@ -15,7 +15,7 @@ module Entities
15
15
abilities : [ ] ,
16
16
} ,
17
17
{
18
- name : 'Middleton Railway' ,
18
+ name : '2. Middleton Railway' ,
19
19
sym : 'P2' ,
20
20
value : 20 ,
21
21
min_price : 15 ,
@@ -29,21 +29,26 @@ module Entities
29
29
} ] ,
30
30
} ,
31
31
{
32
- name : 'Wylam Railway' ,
32
+ name : '3. Wylam Railway' ,
33
33
sym : 'P3' ,
34
34
value : 20 ,
35
35
min_price : 15 ,
36
36
revenue : 5 ,
37
37
desc : 'A corporation owning the Wylam Railway gains a +£10 bonus for all G-train runs to Newcastle Port (F3).' ,
38
- abilities : [ ] , # G-train bonus is defined in game.rb revenue_for method
38
+ abilities : [ {
39
+ type : 'hex_bonus' ,
40
+ owner_type : 'corporation' ,
41
+ hexes : [ 'F3' ] ,
42
+ amount : 10 ,
43
+ } ] ,
39
44
} ,
40
45
{
41
- name : 'Sheffeild & Rotherham Railway' ,
46
+ name : '4. Sheffield & Rotherham Railway' ,
42
47
sym : 'P4' ,
43
48
value : 20 ,
44
49
min_price : 15 ,
45
50
revenue : 5 ,
46
- desc : 'A corporation owning the Sheffeild & Rotherham Railway gains a +£10 bonus for all runs to Sheffield (C18).' ,
51
+ desc : 'A corporation owning the Sheffield & Rotherham Railway gains a +£10 bonus for all runs to Sheffield (C18).' ,
47
52
abilities : [ {
48
53
type : 'hex_bonus' ,
49
54
owner_type : 'corporation' ,
@@ -52,7 +57,7 @@ module Entities
52
57
} ] ,
53
58
} ,
54
59
{
55
- name : 'Leeds & Selby Railway' ,
60
+ name : '5. Leeds & Selby Railway' ,
56
61
sym : 'P5' ,
57
62
value : 40 ,
58
63
min_price : 30 ,
@@ -78,7 +83,7 @@ module Entities
78
83
] ,
79
84
} ,
80
85
{
81
- name : 'Stephenson’s Engine Works' ,
86
+ name : '6. Stephenson’s Engine Works' ,
82
87
sym : 'P6' ,
83
88
value : 40 ,
84
89
min_price : 30 ,
@@ -95,7 +100,7 @@ module Entities
95
100
} ] ,
96
101
} ,
97
102
{
98
- name : 'Stockton & Darlington Railway' ,
103
+ name : '7. Stockton & Darlington Railway' ,
99
104
sym : 'P7' ,
100
105
value : 40 ,
101
106
min_price : 30 ,
@@ -121,45 +126,59 @@ module Entities
121
126
] ,
122
127
} ,
123
128
{
124
- name : 'Stanhope & Tyne Railway' ,
129
+ name : '8. Stanhope & Tyne Railway' ,
125
130
sym : 'P8' ,
126
131
value : 40 ,
127
132
min_price : 30 ,
128
133
revenue : 10 ,
129
134
desc : 'A corporation owning the Stanhope & Tyne Railway gains a +£10 bonus for all G-train runs to Newcastle ' \
130
135
'Port (F3). Additionally, the owning corporation may lay 2 extra yellow tiles, in hexes C6 and D7.' ,
131
- abilities : [ {
132
- type : 'tile_lay' ,
133
- owner_type : 'corporation' ,
134
- hexes : %w[ C6 D7 ] ,
135
- special : false ,
136
- when : 'track' ,
137
- tiles : [ ] ,
138
- cost : 0 ,
139
- } ] ,
140
- # G-train bonus is defined in game.rb revenue_for method
136
+ abilities : [
137
+ {
138
+ type : 'tile_lay' ,
139
+ owner_type : 'corporation' ,
140
+ hexes : %w[ C6 D7 ] ,
141
+ special : false ,
142
+ when : 'track' ,
143
+ tiles : [ ] ,
144
+ cost : 0 ,
145
+ } ,
146
+ {
147
+ type : 'hex_bonus' ,
148
+ owner_type : 'corporation' ,
149
+ hexes : [ 'F3' ] ,
150
+ amount : 10 ,
151
+ } ,
152
+ ] ,
141
153
} ,
142
154
{
143
- name : 'Whitby & Pickering Railway' ,
155
+ name : '9. Whitby & Pickering Railway' ,
144
156
sym : 'P9' ,
145
157
value : 40 ,
146
158
min_price : 30 ,
147
159
revenue : 10 ,
148
160
desc : 'A corporation owning the Whitby & Pickering Railway gains a +£10 bonus for all G-train runs to Whitby ' \
149
161
'Port (H9). Additionally, the owning corporation may lay 3 extra yellow tiles, in hexes F13, G12, and G10.' ,
150
- abilities : [ {
151
- type : 'tile_lay' ,
152
- owner_type : 'corporation' ,
153
- hexes : %w[ F13 G10 G12 ] ,
154
- special : false ,
155
- when : 'track' ,
156
- tiles : [ ] ,
157
- cost : 0 ,
158
- } ] ,
159
- # G-train bonus is defined in game.rb revenue_for method
162
+ abilities : [
163
+ {
164
+ type : 'tile_lay' ,
165
+ owner_type : 'corporation' ,
166
+ hexes : %w[ F13 G10 G12 ] ,
167
+ special : false ,
168
+ when : 'track' ,
169
+ tiles : [ ] ,
170
+ cost : 0 ,
171
+ } ,
172
+ {
173
+ type : 'hex_bonus' ,
174
+ owner_type : 'corporation' ,
175
+ hexes : [ 'H9' ] ,
176
+ amount : 10 ,
177
+ } ,
178
+ ] ,
160
179
} ,
161
180
{
162
- name : 'Newcastle & Carlisle Railway' ,
181
+ name : '10. Newcastle & Carlisle Railway' ,
163
182
sym : 'P10' ,
164
183
value : 40 ,
165
184
min_price : 30 ,
@@ -185,7 +204,7 @@ module Entities
185
204
] ,
186
205
} ,
187
206
{
188
- name : 'Hull Docks Company' ,
207
+ name : '11. Hull Docks Company' ,
189
208
sym : 'P11' ,
190
209
value : 40 ,
191
210
min_price : 30 ,
@@ -198,14 +217,11 @@ module Entities
198
217
hexes : [ 'G16' ] ,
199
218
amount : 20 ,
200
219
} ,
201
- {
202
- type : 'close' ,
203
- when : 'never' ,
204
- } ,
220
+ { type : 'close' , on_phase : 'never' } ,
205
221
] ,
206
222
} ,
207
223
{
208
- name : 'Hartlepool Docks Company' ,
224
+ name : '12. Hartlepool Docks Company' ,
209
225
sym : 'P12' ,
210
226
value : 40 ,
211
227
min_price : 30 ,
@@ -223,10 +239,12 @@ module Entities
223
239
cost : 0 ,
224
240
} ,
225
241
{
226
- type : 'close' ,
227
- when : 'never' ,
242
+ type : 'hex_bonus' ,
243
+ owner_type : 'corporation' ,
244
+ hexes : [ 'G6' ] ,
245
+ amount : 10 ,
228
246
} ,
229
- # G-train bonus is defined in game.rb revenue_for method
247
+ { type : 'close' , on_phase : 'never' } ,
230
248
] ,
231
249
} ,
232
250
] . freeze
@@ -239,7 +257,7 @@ module Entities
239
257
float_percent : 20 ,
240
258
always_market_price : true ,
241
259
tokens : [ 0 , 40 , 100 , 100 ] ,
242
- type : 'public ' ,
260
+ type : 'major ' ,
243
261
color : '#025aaa' ,
244
262
} ,
245
263
{
@@ -249,7 +267,7 @@ module Entities
249
267
float_percent : 20 ,
250
268
always_market_price : true ,
251
269
tokens : [ 0 , 40 , 100 , 100 ] ,
252
- type : 'public ' ,
270
+ type : 'major ' ,
253
271
color : '#32763f' ,
254
272
} , {
255
273
sym : 'LYR' ,
@@ -258,7 +276,7 @@ module Entities
258
276
float_percent : 20 ,
259
277
always_market_price : true ,
260
278
tokens : [ 0 , 40 , 100 , 100 ] ,
261
- type : 'public ' ,
279
+ type : 'major ' ,
262
280
color : '#FFFFFFF' ,
263
281
} ,
264
282
{
@@ -268,7 +286,7 @@ module Entities
268
286
float_percent : 20 ,
269
287
always_market_price : true ,
270
288
tokens : [ 0 , 40 , 100 , 100 ] ,
271
- type : 'public ' ,
289
+ type : 'major ' ,
272
290
color : '#d1232a' ,
273
291
} ,
274
292
{
@@ -278,16 +296,15 @@ module Entities
278
296
float_percent : 20 ,
279
297
always_market_price : true ,
280
298
tokens : [ 0 , 40 , 100 , 100 ] ,
299
+ type : 'major' ,
281
300
color : :'#FFF500' ,
282
301
text_color : 'black' ,
283
- }
284
- ] . freeze
285
-
286
- MINORS = [
302
+ } ,
287
303
{
288
304
sym : '1' ,
289
305
name : 'Doncaster & Peterborough Railway' ,
290
306
logo : '1812/1' ,
307
+ float_percent : 100 ,
291
308
tokens : [ 0 ] ,
292
309
shares : [ 100 ] ,
293
310
max_ownership_percent : 100 ,
@@ -299,6 +316,7 @@ module Entities
299
316
sym : '2' ,
300
317
name : 'Hull & Selby Railway' ,
301
318
logo : '1812/2' ,
319
+ float_percent : 100 ,
302
320
tokens : [ 0 ] ,
303
321
shares : [ 100 ] ,
304
322
max_ownership_percent : 100 ,
@@ -310,6 +328,7 @@ module Entities
310
328
sym : '3' ,
311
329
name : 'Leeds Northern Railway' ,
312
330
logo : '1812/3' ,
331
+ float_percent : 100 ,
313
332
tokens : [ 0 ] ,
314
333
shares : [ 100 ] ,
315
334
max_ownership_percent : 100 ,
@@ -322,6 +341,7 @@ module Entities
322
341
sym : '4' ,
323
342
name : 'Manchester & Leeds Railway' ,
324
343
logo : '1812/4' ,
344
+ float_percent : 100 ,
325
345
tokens : [ 0 ] ,
326
346
shares : [ 100 ] ,
327
347
max_ownership_percent : 100 ,
@@ -334,6 +354,7 @@ module Entities
334
354
sym : '5' ,
335
355
name : 'Newcastle & Berwick Railway' ,
336
356
logo : '1812/5' ,
357
+ float_percent : 100 ,
337
358
tokens : [ 0 ] ,
338
359
shares : [ 100 ] ,
339
360
max_ownership_percent : 100 ,
@@ -346,18 +367,20 @@ module Entities
346
367
sym : '6' ,
347
368
name : 'Newcastle & Darlington Railway' ,
348
369
logo : '1812/6' ,
370
+ float_percent : 100 ,
349
371
tokens : [ 0 ] ,
350
372
shares : [ 100 ] ,
351
373
max_ownership_percent : 100 ,
352
374
type : 'minor' ,
353
- coordinates : 'C14 ' ,
375
+ coordinates : 'E4 ' ,
354
376
city : 0 ,
355
377
color : '#777777' ,
356
378
} ,
357
379
{
358
380
sym : '7' ,
359
381
name : ' North Midland Railway' ,
360
382
logo : '1812/7' ,
383
+ float_percent : 100 ,
361
384
tokens : [ 0 ] ,
362
385
shares : [ 100 ] ,
363
386
max_ownership_percent : 100 ,
@@ -370,6 +393,7 @@ module Entities
370
393
sym : '8' ,
371
394
name : 'Sheffield, Ashton & Manchester Railway' ,
372
395
logo : '1812/8' ,
396
+ float_percent : 100 ,
373
397
tokens : [ 0 ] ,
374
398
shares : [ 100 ] ,
375
399
max_ownership_percent : 100 ,
@@ -381,25 +405,28 @@ module Entities
381
405
sym : '9' ,
382
406
name : 'York & Darlington Railway' ,
383
407
logo : '1812/9' ,
408
+ float_percent : 100 ,
384
409
tokens : [ 0 ] ,
385
410
shares : [ 100 ] ,
386
411
max_ownership_percent : 100 ,
387
412
type : 'minor' ,
388
413
coordinates : 'E14' ,
414
+ city : 1 ,
389
415
color : '#777777' ,
390
416
} ,
391
417
{
392
418
sym : '10' ,
393
419
name : 'York & North Midland Railway ' ,
394
420
logo : '1812/10' ,
421
+ float_percent : 100 ,
395
422
tokens : [ 0 ] ,
396
423
shares : [ 100 ] ,
397
424
max_ownership_percent : 100 ,
398
425
type : 'minor' ,
399
426
coordinates : 'E14' ,
400
427
city : 0 ,
401
428
color : '#777777' ,
402
- } ,
429
+ }
403
430
] . freeze
404
431
end
405
432
end
0 commit comments