diff options
Diffstat (limited to 'rules.ts')
-rw-r--r-- | rules.ts | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -2097,13 +2097,21 @@ states.remove_blank_marker = { const faction = get_active_faction(); pay_hero_points(faction, 1); + const track_id = Math.floor(b / 11); const space_id = b % 11; - logp(`removed blank marker from ${get_track_name(track_id)} ${space_id}`); game.triggered_track_effects = game.triggered_track_effects.filter( (id) => id !== b ); - game.used_medallions.push(ARCHIVES_MEDALLION_ID); + + // Used medallion + if (get_active_node_args()?.src === 'medallion') { + logi(`M${ARCHIVES_MEDALLION_ID} removed Blank from ${get_track_name(track_id)} ${space_id}`); + game.used_medallions.push(ARCHIVES_MEDALLION_ID); + } else { + logi(`Removed Blank from ${get_track_name(track_id)} ${space_id}`); + } + resolve_active_and_proceed(); }, skip() { @@ -2296,6 +2304,7 @@ states.spend_hero_points = { pay_hero_points(faction, 1); insert_after_active_node( create_state_node('add_to_front', faction, { + src: 'medallion', t: ANY, v: 1, }) @@ -2323,7 +2332,7 @@ states.spend_hero_points = { } else { game.used_medallions = [ARCHIVES_MEDALLION_ID]; } - insert_after_active_node(create_state_node('remove_blank_marker', faction)); + insert_after_active_node(create_state_node('remove_blank_marker', faction, { 'src': 'medallion' })); resolve_active_and_proceed(); }, tr0(x: number) { @@ -3737,6 +3746,8 @@ function get_source_name(source: EffectSource): string { case 'tr4': return tracks[4].name + ' Trigger'; case 'track_icon': throw "UNUSED" + case 'medallion': + return "Medallion"; case MOMENTUM: return 'Momentum'; } |