diff --git a/public/assets/images/counter_attacker.svg b/public/assets/images/counter_attacker.svg new file mode 100644 index 0000000..fcf02a3 --- /dev/null +++ b/public/assets/images/counter_attacker.svg @@ -0,0 +1,30 @@ + + + + diff --git a/public/assets/images/counter_defender.svg b/public/assets/images/counter_defender.svg new file mode 100644 index 0000000..98710cd --- /dev/null +++ b/public/assets/images/counter_defender.svg @@ -0,0 +1,30 @@ + + + + diff --git a/public/assets/images/scenario_template.svg b/public/assets/images/scenario_template.svg index b6595f6..bc5b146 100644 --- a/public/assets/images/scenario_template.svg +++ b/public/assets/images/scenario_template.svg @@ -26,6 +26,14 @@ + + + + + + + + diff --git a/public/index.html b/public/index.html index 9c5a027..0ec3a1f 100644 --- a/public/index.html +++ b/public/index.html @@ -231,6 +231,12 @@ 6 MP Mech + + + + + + diff --git a/src/index.js b/src/index.js index fa90d13..8f853bd 100644 --- a/src/index.js +++ b/src/index.js @@ -162,7 +162,7 @@ document.querySelectorAll('.set-firing-arc').forEach(el => el.addEventListener('click', gameboard.setFiringArc) ); -document.querySelectorAll('.counters-list button').forEach(el => { +document.querySelectorAll('.counters-list button, button.attacker, button.defender').forEach(el => { el.addEventListener('click', e => gameboard.setCounter(el.className)); });