diff options
Diffstat (limited to 'data.js')
-rw-r--r-- | data.js | 404 |
1 files changed, 209 insertions, 195 deletions
@@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.FRONTS = exports.DEFEAT = exports.VICTORY = exports.TRASH = exports.TOWARDS_CENTER = exports.AWAY_FROM_CENTER = exports.SELF = exports.PLAYER_WITH_MOST_HERO_POINTS = exports.OTHER_PLAYERS = exports.ON = exports.OFF = exports.TEAMWORK_BONUS = exports.MORALE_BONUS = exports.FOREIGN_AID = exports.SOVIET_SUPPORT = exports.GOVERNMENT = exports.COLLECTIVIZATION = exports.CLOSEST_TO_VICTORY = exports.CLOSEST_TO_DEFEAT = exports.LIBERTY = exports.ANY = exports.MODERATES_ID = exports.COMMUNISTS_ID = exports.ANARCHISTS_ID = exports.MODERATE = exports.COMMUNIST = exports.ANARCHIST = void 0; +exports.ORGANIZATION_MEDALLION_ID = exports.ARCHIVES_MEDALLION_ID = exports.VOLUNTEERS_MEDALLION_ID = exports.INTELLIGENCE_MEDALLION_ID = exports.PROPAGANDA_MEDALLION_ID = exports.STRATEGY_MEDALLION_ID = exports.FRONTS = exports.DEFEAT = exports.VICTORY = exports.TRASH = exports.TOWARDS_CENTER = exports.AWAY_FROM_CENTER = exports.SELF = exports.PLAYER_WITH_MOST_HERO_POINTS = exports.OTHER_PLAYERS = exports.ON = exports.OFF = exports.TEAMWORK_BONUS = exports.MORALE_BONUS = exports.FOREIGN_AID = exports.SOVIET_SUPPORT = exports.INITIATIVE_PLAYER = exports.GOVERNMENT = exports.COLLECTIVIZATION = exports.CLOSEST_TO_VICTORY = exports.CLOSEST_TO_DEFEAT = exports.LIBERTY = exports.ANY = exports.MODERATES_ID = exports.COMMUNISTS_ID = exports.ANARCHISTS_ID = exports.MODERATE = exports.COMMUNIST = exports.ANARCHIST = void 0; exports.create_effect = create_effect; const LIBERTY = 0; exports.LIBERTY = LIBERTY; @@ -23,6 +23,7 @@ exports.ON = ON; const PLAYER_WITH_MOST_HERO_POINTS = 0; exports.PLAYER_WITH_MOST_HERO_POINTS = PLAYER_WITH_MOST_HERO_POINTS; const INITIATIVE_PLAYER = 'i'; +exports.INITIATIVE_PLAYER = INITIATIVE_PLAYER; const ALL_PLAYERS = 'all'; const ARAGON = 'a'; const MADRID = 'm'; @@ -62,11 +63,24 @@ const VICTORY = 'Victory'; exports.VICTORY = VICTORY; const DEFEAT = 'Defeat'; exports.DEFEAT = DEFEAT; -function create_effect(type, target, value) { +const STRATEGY_MEDALLION_ID = 3; +exports.STRATEGY_MEDALLION_ID = STRATEGY_MEDALLION_ID; +const PROPAGANDA_MEDALLION_ID = 4; +exports.PROPAGANDA_MEDALLION_ID = PROPAGANDA_MEDALLION_ID; +const INTELLIGENCE_MEDALLION_ID = 5; +exports.INTELLIGENCE_MEDALLION_ID = INTELLIGENCE_MEDALLION_ID; +const VOLUNTEERS_MEDALLION_ID = 6; +exports.VOLUNTEERS_MEDALLION_ID = VOLUNTEERS_MEDALLION_ID; +const ARCHIVES_MEDALLION_ID = 7; +exports.ARCHIVES_MEDALLION_ID = ARCHIVES_MEDALLION_ID; +const ORGANIZATION_MEDALLION_ID = 8; +exports.ORGANIZATION_MEDALLION_ID = ORGANIZATION_MEDALLION_ID; +function create_effect(type, target, value, faction) { return { type, target, value, + faction, }; } const data = { @@ -740,9 +754,9 @@ const data = { { id: 55, effects: [ - create_effect('attack', SOUTHERN, -4), - create_effect('attack', ARAGON, -1), - create_effect('track', SOVIET_SUPPORT, -2), + create_effect('attack', SOUTHERN, -4, INITIATIVE_PLAYER), + create_effect('attack', ARAGON, -1, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -757,9 +771,9 @@ const data = { { id: 56, effects: [ - create_effect('attack', SOUTHERN, -3), - create_effect('attack', CLOSEST_TO_VICTORY, -2), - create_effect('bonus', MORALE_BONUS, OFF), + create_effect('attack', SOUTHERN, -3, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -2, INITIATIVE_PLAYER), + create_effect('bonus', MORALE_BONUS, OFF, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -774,9 +788,9 @@ const data = { { id: 57, effects: [ - create_effect('attack', MADRID, -5), - create_effect('track', FOREIGN_AID, -2), - create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1), + create_effect('attack', MADRID, -5, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), + create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -791,9 +805,9 @@ const data = { { id: 58, effects: [ - create_effect('attack', NORTHERN, -5), - create_effect('attack', CLOSEST_TO_VICTORY, -1), - create_effect('track', COLLECTIVIZATION, -1), + create_effect('attack', NORTHERN, -5, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -1, INITIATIVE_PLAYER), + create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -808,9 +822,9 @@ const data = { { id: 59, effects: [ - create_effect('attack', MADRID, -4), - create_effect('attack', CLOSEST_TO_VICTORY, -2), - create_effect('track', LIBERTY, -1), + create_effect('attack', MADRID, -4, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -2, INITIATIVE_PLAYER), + create_effect('track', LIBERTY, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -825,9 +839,9 @@ const data = { { id: 60, effects: [ - create_effect('attack', NORTHERN, -3), - create_effect('attack', CLOSEST_TO_VICTORY, -3), - create_effect('track', LIBERTY, -1), + create_effect('attack', NORTHERN, -3, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -3, INITIATIVE_PLAYER), + create_effect('track', LIBERTY, -1, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -842,9 +856,9 @@ const data = { { id: 61, effects: [ - create_effect('attack', ARAGON, -4), - create_effect('attack', CLOSEST_TO_VICTORY, -2), - create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1), + create_effect('attack', ARAGON, -4, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -2, INITIATIVE_PLAYER), + create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -859,9 +873,9 @@ const data = { { id: 62, effects: [ - create_effect('attack', SOUTHERN, -5), - create_effect('bonus', MORALE_BONUS, OFF), - create_effect('track', LIBERTY, -1), + create_effect('attack', SOUTHERN, -5, INITIATIVE_PLAYER), + create_effect('bonus', MORALE_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('track', LIBERTY, -1, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -876,9 +890,9 @@ const data = { { id: 63, effects: [ - create_effect('attack', CLOSEST_TO_VICTORY, -5), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('track', COLLECTIVIZATION, -1), + create_effect('attack', CLOSEST_TO_VICTORY, -5, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -893,9 +907,9 @@ const data = { { id: 64, effects: [ - create_effect('attack', SOUTHERN, -4), - create_effect('attack', MADRID, -2), - create_effect('track', FOREIGN_AID, -1), + create_effect('attack', SOUTHERN, -4, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -2, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -1, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -910,9 +924,9 @@ const data = { { id: 65, effects: [ - create_effect('attack', CLOSEST_TO_DEFEAT, -1), - create_effect('attack', MADRID, -4), - create_effect('track', SOVIET_SUPPORT, -2), + create_effect('attack', CLOSEST_TO_DEFEAT, -1, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -4, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -927,9 +941,9 @@ const data = { { id: 66, effects: [ - create_effect('attack', ARAGON, -3), - create_effect('attack', SOUTHERN, -2), - create_effect('track', FOREIGN_AID, -2), + create_effect('attack', ARAGON, -3, INITIATIVE_PLAYER), + create_effect('attack', SOUTHERN, -2, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -944,9 +958,9 @@ const data = { { id: 67, effects: [ - create_effect('attack', NORTHERN, -4), - create_effect('attack', ARAGON, -2), - create_effect('track', COLLECTIVIZATION, -1), + create_effect('attack', NORTHERN, -4, INITIATIVE_PLAYER), + create_effect('attack', ARAGON, -2, INITIATIVE_PLAYER), + create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -961,9 +975,9 @@ const data = { { id: 68, effects: [ - create_effect('attack', ARAGON, -4), - create_effect('attack', MADRID, -1), - create_effect('bonus', TEAMWORK_BONUS, OFF), + create_effect('attack', ARAGON, -4, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -1, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -978,9 +992,9 @@ const data = { { id: 69, effects: [ - create_effect('attack', MADRID, -3), - create_effect('attack', NORTHERN, -2), - create_effect('bonus', TEAMWORK_BONUS, OFF), + create_effect('attack', MADRID, -3, INITIATIVE_PLAYER), + create_effect('attack', NORTHERN, -2, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -995,9 +1009,9 @@ const data = { { id: 70, effects: [ - create_effect('attack', NORTHERN, -3), - create_effect('attack', MADRID, -3), - create_effect('track', FOREIGN_AID, -1), + create_effect('attack', NORTHERN, -3, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -3, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -1, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -1012,9 +1026,9 @@ const data = { { id: 71, effects: [ - create_effect('attack', CLOSEST_TO_DEFEAT, -3), - create_effect('attack', MADRID, -2), - create_effect('track', SOVIET_SUPPORT, -2), + create_effect('attack', CLOSEST_TO_DEFEAT, -3, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -2, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1029,9 +1043,9 @@ const data = { { id: 72, effects: [ - create_effect('attack', ARAGON, -3), - create_effect('attack', NORTHERN, -1), - create_effect('attack', CLOSEST_TO_VICTORY, -2), + create_effect('attack', ARAGON, -3, INITIATIVE_PLAYER), + create_effect('attack', NORTHERN, -1, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -2, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -1046,10 +1060,10 @@ const data = { { id: 73, effects: [ - create_effect('attack', NORTHERN, -6), - create_effect('attack', CLOSEST_TO_VICTORY, -1), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1), + create_effect('attack', NORTHERN, -6, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -1, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -1064,9 +1078,9 @@ const data = { { id: 74, effects: [ - create_effect('attack', MADRID, -2), - create_effect('attack', CLOSEST_TO_VICTORY, -5), - create_effect('track', SOVIET_SUPPORT, -2), + create_effect('attack', MADRID, -2, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -5, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1081,9 +1095,9 @@ const data = { { id: 75, effects: [ - create_effect('attack', NORTHERN, -5), - create_effect('attack', CLOSEST_TO_VICTORY, -3), - create_effect('track', COLLECTIVIZATION, -1), + create_effect('attack', NORTHERN, -5, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -3, INITIATIVE_PLAYER), + create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -1098,9 +1112,9 @@ const data = { { id: 76, effects: [ - create_effect('attack', ARAGON, -5), - create_effect('attack', NORTHERN, -2), - create_effect('track', FOREIGN_AID, -2), + create_effect('attack', ARAGON, -5, INITIATIVE_PLAYER), + create_effect('attack', NORTHERN, -2, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -1115,9 +1129,9 @@ const data = { { id: 77, effects: [ - create_effect('attack', ARAGON, -5), - create_effect('attack', MADRID, -3), - create_effect('track', FOREIGN_AID, -1), + create_effect('attack', ARAGON, -5, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -3, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -1, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -1132,10 +1146,10 @@ const data = { { id: 78, effects: [ - create_effect('attack', MADRID, -6), - create_effect('attack', CLOSEST_TO_VICTORY, -1), - create_effect('track', LIBERTY, -1), - create_effect('track', SOVIET_SUPPORT, -1), + create_effect('attack', MADRID, -6, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -1, INITIATIVE_PLAYER), + create_effect('track', LIBERTY, -1, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1150,10 +1164,10 @@ const data = { { id: 79, effects: [ - create_effect('attack', NORTHERN, -6), - create_effect('attack', MADRID, -1), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('track', COLLECTIVIZATION, -1), + create_effect('attack', NORTHERN, -6, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -1, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -1168,9 +1182,9 @@ const data = { { id: 80, effects: [ - create_effect('attack', CLOSEST_TO_DEFEAT, -3), - create_effect('attack', NORTHERN, -5), - create_effect('track', LIBERTY, -1), + create_effect('attack', CLOSEST_TO_DEFEAT, -3, INITIATIVE_PLAYER), + create_effect('attack', NORTHERN, -5, INITIATIVE_PLAYER), + create_effect('track', LIBERTY, -1, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -1185,9 +1199,9 @@ const data = { { id: 81, effects: [ - create_effect('attack', MADRID, -5), - create_effect('attack', CLOSEST_TO_VICTORY, -2), - create_effect('track', FOREIGN_AID, -2), + create_effect('attack', MADRID, -5, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -2, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1202,9 +1216,9 @@ const data = { { id: 82, effects: [ - create_effect('attack', CLOSEST_TO_DEFEAT, -4), - create_effect('attack', CLOSEST_TO_VICTORY, -4), - create_effect('track', COLLECTIVIZATION, -1), + create_effect('attack', CLOSEST_TO_DEFEAT, -4, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -4, INITIATIVE_PLAYER), + create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1219,9 +1233,9 @@ const data = { { id: 83, effects: [ - create_effect('attack', ARAGON, -7), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('track', FOREIGN_AID, -1), + create_effect('attack', ARAGON, -7, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -1, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -1236,10 +1250,10 @@ const data = { { id: 84, effects: [ - create_effect('attack', CLOSEST_TO_DEFEAT, -1), - create_effect('attack', SOUTHERN, -5), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('track', FOREIGN_AID, -2), + create_effect('attack', CLOSEST_TO_DEFEAT, -1, INITIATIVE_PLAYER), + create_effect('attack', SOUTHERN, -5, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -1254,9 +1268,9 @@ const data = { { id: 85, effects: [ - create_effect('attack', SOUTHERN, -6), - create_effect('attack', MADRID, -2), - create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1), + create_effect('attack', SOUTHERN, -6, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -2, INITIATIVE_PLAYER), + create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -1271,10 +1285,10 @@ const data = { { id: 86, effects: [ - create_effect('attack', CLOSEST_TO_DEFEAT, -2), - create_effect('attack', MADRID, -5), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('track', SOVIET_SUPPORT, -1) + create_effect('attack', CLOSEST_TO_DEFEAT, -2, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -5, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1289,9 +1303,9 @@ const data = { { id: 87, effects: [ - create_effect('attack', SOUTHERN, -4), - create_effect('attack', ARAGON, -3), - create_effect('track', SOVIET_SUPPORT, -2) + create_effect('attack', SOUTHERN, -4, INITIATIVE_PLAYER), + create_effect('attack', ARAGON, -3, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -1306,9 +1320,9 @@ const data = { { id: 88, effects: [ - create_effect('attack', MADRID, -5), - create_effect('attack', SOUTHERN, -2), - create_effect('track', SOVIET_SUPPORT, -2) + create_effect('attack', MADRID, -5, INITIATIVE_PLAYER), + create_effect('attack', SOUTHERN, -2, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1323,9 +1337,9 @@ const data = { { id: 89, effects: [ - create_effect('attack', SOUTHERN, -7), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('track', COLLECTIVIZATION, -1) + create_effect('attack', SOUTHERN, -7, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -1340,9 +1354,9 @@ const data = { { id: 90, effects: [ - create_effect('attack', ARAGON, -4), - create_effect('attack', NORTHERN, -4), - create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1) + create_effect('attack', ARAGON, -4, INITIATIVE_PLAYER), + create_effect('attack', NORTHERN, -4, INITIATIVE_PLAYER), + create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -1357,10 +1371,10 @@ const data = { { id: 91, effects: [ - create_effect('attack', MADRID, -5), - create_effect('attack', SOUTHERN, -4), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('track', SOVIET_SUPPORT, -2) + create_effect('attack', MADRID, -5, INITIATIVE_PLAYER), + create_effect('attack', SOUTHERN, -4, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1375,10 +1389,10 @@ const data = { { id: 92, effects: [ - create_effect('attack', ARAGON, -6), - create_effect('attack', CLOSEST_TO_VICTORY, -3), - create_effect('track', FOREIGN_AID, -2), - create_effect('track', COLLECTIVIZATION, -1), + create_effect('attack', ARAGON, -6, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -3, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), + create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -1393,9 +1407,9 @@ const data = { { id: 93, effects: [ - create_effect('attack', NORTHERN, -4), - create_effect('attack', CLOSEST_TO_VICTORY, -6), - create_effect('track', FOREIGN_AID, -2), + create_effect('attack', NORTHERN, -4, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -6, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -1410,9 +1424,9 @@ const data = { { id: 94, effects: [ - create_effect('attack', NORTHERN, -6), - create_effect('attack', SOUTHERN, -4), - create_effect('track', SOVIET_SUPPORT, -2), + create_effect('attack', NORTHERN, -6, INITIATIVE_PLAYER), + create_effect('attack', SOUTHERN, -4, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -1427,9 +1441,9 @@ const data = { { id: 95, effects: [ - create_effect('attack', CLOSEST_TO_DEFEAT, -5), - create_effect('attack', SOUTHERN, -5), - create_effect('track', FOREIGN_AID, -2), + create_effect('attack', CLOSEST_TO_DEFEAT, -5, INITIATIVE_PLAYER), + create_effect('attack', SOUTHERN, -5, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -1444,9 +1458,9 @@ const data = { { id: 96, effects: [ - create_effect('attack', MADRID, -4), - create_effect('attack', CLOSEST_TO_VICTORY, -6), - create_effect('track', COLLECTIVIZATION, -1), + create_effect('attack', MADRID, -4, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -6, INITIATIVE_PLAYER), + create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1461,9 +1475,9 @@ const data = { { id: 97, effects: [ - create_effect('attack', MADRID, -6), - create_effect('attack', ARAGON, -4), - create_effect('track', SOVIET_SUPPORT, -2), + create_effect('attack', MADRID, -6, INITIATIVE_PLAYER), + create_effect('attack', ARAGON, -4, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1478,10 +1492,10 @@ const data = { { id: 98, effects: [ - create_effect('attack', NORTHERN, -7), - create_effect('attack', MADRID, -2), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('track', LIBERTY, -1), + create_effect('attack', NORTHERN, -7, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -2, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('track', LIBERTY, -1, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -1496,10 +1510,10 @@ const data = { { id: 99, effects: [ - create_effect('attack', NORTHERN, -6), - create_effect('attack', MADRID, -3), - create_effect('track', FOREIGN_AID, -2), - create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1), + create_effect('attack', NORTHERN, -6, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -3, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), + create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1, INITIATIVE_PLAYER), ], test: { front: NORTHERN, @@ -1514,10 +1528,10 @@ const data = { { id: 100, effects: [ - create_effect('attack', SOUTHERN, -7), - create_effect('attack', CLOSEST_TO_DEFEAT, -2), - create_effect('track', FOREIGN_AID, -2), - create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1), + create_effect('attack', SOUTHERN, -7, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_DEFEAT, -2, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), + create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -1532,9 +1546,9 @@ const data = { { id: 101, effects: [ - create_effect('attack', ARAGON, -7), - create_effect('attack', MADRID, -3), - create_effect('track', SOVIET_SUPPORT, -2), + create_effect('attack', ARAGON, -7, INITIATIVE_PLAYER), + create_effect('attack', MADRID, -3, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -1549,9 +1563,9 @@ const data = { { id: 102, effects: [ - create_effect('attack', MADRID, -6), - create_effect('attack', CLOSEST_TO_VICTORY, -4), - create_effect('track', FOREIGN_AID, -2), + create_effect('attack', MADRID, -6, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -4, INITIATIVE_PLAYER), + create_effect('track', FOREIGN_AID, -2, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1566,10 +1580,10 @@ const data = { { id: 103, effects: [ - create_effect('attack', MADRID, -7), - create_effect('attack', NORTHERN, -2), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1) + create_effect('attack', MADRID, -7, INITIATIVE_PLAYER), + create_effect('attack', NORTHERN, -2, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1584,10 +1598,10 @@ const data = { { id: 104, effects: [ - create_effect('attack', SOUTHERN, -6), - create_effect('attack', ARAGON, -3), - create_effect('track', SOVIET_SUPPORT, -2), - create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1) + create_effect('attack', SOUTHERN, -6, INITIATIVE_PLAYER), + create_effect('attack', ARAGON, -3, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), + create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -1602,9 +1616,9 @@ const data = { { id: 105, effects: [ - create_effect('attack', ARAGON, -6), - create_effect('attack', NORTHERN, -4), - create_effect('track', LIBERTY, -1), + create_effect('attack', ARAGON, -6, INITIATIVE_PLAYER), + create_effect('attack', NORTHERN, -4, INITIATIVE_PLAYER), + create_effect('track', LIBERTY, -1, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -1619,10 +1633,10 @@ const data = { { id: 106, effects: [ - create_effect('attack', MADRID, -6), - create_effect('attack', CLOSEST_TO_VICTORY, -3), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('track', LIBERTY, -1), + create_effect('attack', MADRID, -6, INITIATIVE_PLAYER), + create_effect('attack', CLOSEST_TO_VICTORY, -3, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('track', LIBERTY, -1, INITIATIVE_PLAYER), ], test: { front: MADRID, @@ -1637,10 +1651,10 @@ const data = { { id: 107, effects: [ - create_effect('attack', ARAGON, -8), - create_effect('attack', SOUTHERN, -1), - create_effect('track', COLLECTIVIZATION, -1), - create_effect('track', SOVIET_SUPPORT, -2), + create_effect('attack', ARAGON, -8, INITIATIVE_PLAYER), + create_effect('attack', SOUTHERN, -1, INITIATIVE_PLAYER), + create_effect('track', COLLECTIVIZATION, -1, INITIATIVE_PLAYER), + create_effect('track', SOVIET_SUPPORT, -2, INITIATIVE_PLAYER), ], test: { front: ARAGON, @@ -1655,10 +1669,10 @@ const data = { { id: 108, effects: [ - create_effect('attack', CLOSEST_TO_DEFEAT, -3), - create_effect('attack', SOUTHERN, -6), - create_effect('bonus', TEAMWORK_BONUS, OFF), - create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1) + create_effect('attack', CLOSEST_TO_DEFEAT, -3, INITIATIVE_PLAYER), + create_effect('attack', SOUTHERN, -6, INITIATIVE_PLAYER), + create_effect('bonus', TEAMWORK_BONUS, OFF, INITIATIVE_PLAYER), + create_effect('hero_points', PLAYER_WITH_MOST_HERO_POINTS, -1, INITIATIVE_PLAYER), ], test: { front: SOUTHERN, @@ -1697,7 +1711,7 @@ const data = { top: 426, }, ], - medaillons: [ + medallions: [ { id: 0, name: 'Subterfuge', @@ -1711,27 +1725,27 @@ const data = { name: 'Momentum', }, { - id: 3, + id: STRATEGY_MEDALLION_ID, name: 'Strategy', }, { - id: 4, + id: PROPAGANDA_MEDALLION_ID, name: 'Propaganda', }, { - id: 5, + id: INTELLIGENCE_MEDALLION_ID, name: 'Intelligence', }, { - id: 6, + id: VOLUNTEERS_MEDALLION_ID, name: 'Volunteers', }, { - id: 7, + id: ARCHIVES_MEDALLION_ID, name: 'Archives', }, { - id: 8, + id: ORGANIZATION_MEDALLION_ID, name: 'Organization', }, ], @@ -1748,9 +1762,9 @@ const data = { null, null, create_effect('track', GOVERNMENT, TOWARDS_CENTER), - create_effect('front', ANY, 1), + create_effect('front', ANY, 1, ANARCHISTS_ID), null, - create_effect('medaillon', ANY, 1), + create_effect('medallion', ANY, 1, ANARCHISTS_ID), ], }, { @@ -1767,7 +1781,7 @@ const data = { create_effect('front', ANY, 1), create_effect('track', LIBERTY, 1), null, - create_effect('medaillon', ANY, 1), + create_effect('medallion', ANY, 1, ANARCHISTS_ID), ], }, { @@ -1775,7 +1789,7 @@ const data = { name: 'Government', triggers: [ null, - create_effect('medaillon', ANY, 1), + create_effect('medallion', ANY, 1, COMMUNISTS_ID), null, null, create_effect('track', SOVIET_SUPPORT, 1), @@ -1784,7 +1798,7 @@ const data = { create_effect('track', FOREIGN_AID, 1), null, null, - create_effect('medaillon', ANY, 1), + create_effect('medallion', ANY, 1, MODERATES_ID), ], }, { @@ -1798,10 +1812,10 @@ const data = { null, create_effect('track', LIBERTY, -1), null, - create_effect('front', ANY, 1), + create_effect('front', ANY, 1, COMMUNISTS_ID), create_effect('track', GOVERNMENT, -1), null, - create_effect('medaillon', ANY, 1), + create_effect('medallion', ANY, 1, COMMUNISTS_ID), ], }, { @@ -1815,10 +1829,10 @@ const data = { null, create_effect('track', LIBERTY, -1), null, - create_effect('front', ANY, 1), + create_effect('front', ANY, 1, MODERATES_ID), create_effect('track', GOVERNMENT, 1), null, - create_effect('medaillon', ANY, 1), + create_effect('medallion', ANY, 1, MODERATES_ID), ], }, ], |