I am creating an idle clicker game with html and JS, and I can't figure out how to make two similar upgrades. Here is the code I am using for it (https://codepen.io/samuelbeard/pen/Dsdie).
I also don't need the "Increase Clicks increment upgrade, I just want two different types of auto clickers, and once upgrade that increased the speed at which you automatically get "coins."
I am new to JS and html so I am sorry if I don't understand stuff.
Also, I'll attach a picture and what I have in html/css so far.
<div>
<center><b>Mining Enhancements</b></center>
<p>
</p>
<table class="table">
<tr>
<td>Autoclicker</td>
<td><span id="autoclicker_level">lvl 0</span></td>
<td><button id="buy_click" type="button" class="btn btn-success">Buy for 1</button></td>
</tr>
<tr>
<td>Autoclicker 2</td>
<td><span id="autoclicker_level_two">lvl 0</span></td>
<td><button id="buy_click" type="button" class="btn btn-success">Buy for 1</button></td>
</tr>
<tr>
<td>Speed up by 10%</td>
<td><span id="speed_level">lvl 0</span></td>
<td><button id="upgrade_speed" type="button" class="btn btn-success">Buy for 100</button></td>
</tr>
</table>
</div>
Thanks, Peter