+import { max } from "lodash";
import { LocationWithCity } from "../../shared/map";
import { Monster, MonsterForFight } from "../../shared/monsters";
<input type="hidden" name="fightTrigger" value="explore">
<select id="monsterId" name="monsterId">
${monsters.map((monster: (Monster | MonsterForFight)) => {
- return `<option value="${monster.id}" ${monster.id === activeMonsterId ? 'selected': ''}>${monster.name}</option>`;
+ const range = [monster.level, monster.level + 3];
+ return `<option value="${monster.id}" ${monster.id === activeMonsterId ? 'selected': ''}>${monster.name} (${range[0]} - ${range[1]})</option>`;
}).join("\n")}
</select> <button type="submit" class="red">Fight</button></form></div>
`;