Skip to content

Commit

Permalink
make mine icons persistent
Browse files Browse the repository at this point in the history
  • Loading branch information
philcampeau committed Feb 14, 2025
1 parent d62ad57 commit 38e3881
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/engine/game/g_1812/map.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ module Map
'G12' => 'Scarborough',
'G16' => 'Hull',
'I1' => 'North-South Bonus',
'I3' => 'Mine to Port G-train',
'I3' => 'Mine to Port Bonus',
}.freeze

HEXES = {
Expand All @@ -127,26 +127,27 @@ module Map
%w[B3 B13 C4 D13 D15 D19 E10 E12 F13 F15 G14 H15] => '',
%w[G18 H13] => 'border=edge:3,type:impassable',
['H11'] => 'border=edge:0,type:impassable',
%w[D7 E2] => 'icon=image:mine',
%w[D7 E2] => 'icon=image:mine,sticky:1',
%w[B17 C2 C6 C8 C10 D1 D5 F11] => 'upgrade=cost:40,terrain:mountain',
['B15'] => 'upgrade=cost:40,terrain:mountain;icon=image:mine',
['B15'] => 'upgrade=cost:40,terrain:mountain;icon=image:mine,sticky:1',
%w[B9 B11 B19] => 'upgrade=cost:60,terrain:mountain',
%w[B5 B7] => 'upgrade=cost:80,terrain:mountain',
%w[D3 E18] => 'upgrade=cost:20,terrain:water',
['F17'] => 'upgrade=cost:40,terrain:water',
%w[C12 D11 F7 G12] => 'town=revenue:0',
%w[D9 E16] => 'town=revenue:0;upgrade=cost:20,terrain:water',
['G10'] => 'town=revenue:0;upgrade=cost:40,terrain:mountain',
%w[D17 E6] => 'town=revenue:0;icon=image:mine',
%w[D17 E6] => 'town=revenue:0;icon=image:mine,sticky:1',
%w[C16 F5] => 'city=revenue:0',
['C18'] => 'city=revenue:0;label=Y',
['E8'] => 'city=revenue:0;upgrade=cost:20,terrain:water',
['G16'] => 'city=revenue:0;border=edge:0,type:impassable;label=Y',
},
blue: {
%w[F3 G4 G6 G8 H9] => 'offboard=revenue:yellow_0;path=a:1,b:_0;icon=image:port',
%w[H17 H19] => 'offboard=revenue:yellow_0;path=a:2,b:_0;icon=image:port',
['I3'] => 'offboard=revenue:yellow_30|green_40|brown_50|gray_60;icon=image:port;icon=image:mine',
%w[F3 G4 G6 G8 H9] => 'offboard=revenue:yellow_0,visit_cost:0;path=a:1,b:_0;icon=image:port',
%w[H17 H19] => 'offboard=revenue:yellow_0,visit_cost:0;path=a:2,b:_0;icon=image:port',
['I3'] => 'offboard=revenue:yellow_30|green_40|brown_50|gray_60,visit_cost:0;icon=image:port;'\
'icon=image:mine,sticky:1',
},
yellow: {
['C14'] => 'city=revenue:30;city=revenue:30;path=a:1,b:_0;path=a:3,b:_1;label=Y',
Expand Down

0 comments on commit 38e3881

Please sign in to comment.