+$fightButton().on('click', async e => {
+ e.preventDefault();
+ e.stopPropagation();
+
+ const fightId = $(e.target).attr('data-fight-id');
+
+ if(!fightId || fightId === 'unset') {
+ return;
+ }
+
+ await api.fight(fightId);
+
+});
+
+$('.stat-increase').on('click', e => {
+ e.preventDefault();
+ e.stopPropagation();
+
+ const stat = $(e.target).attr('data-stat');
+
+ if(!stat) {
+ throw new Error('Invalid stat increase');
+ }
+
+ api.increaseStat(stat);
+});
+