diff --git a/src/hotbar.ts b/src/hotbar.ts index 6c54b38..e396d7c 100644 --- a/src/hotbar.ts +++ b/src/hotbar.ts @@ -6,6 +6,8 @@ import { addButton } from "./button.ts"; import { getPlayerProgress } from "./playerprogress.ts"; import { getStateManager } from "./statemanager.ts"; import { getCheckModal } from "./checkmodal.ts"; +//import { LadderPickup } from "./pickups.ts"; +// import { generateMap } from "./mapgen.ts"; type Button = { label: string; @@ -53,6 +55,32 @@ export class Hotbar { enabled: true, endorse: getPlayerProgress().getBlood() < 100, }); + /* + buttons.push({ + label:"Cheat", + cbClick: () => { + new LadderPickup().onClick(); + }, + enabled: true, + endorse: false, + }) + buttons.push({ + label:"Dig for bad maps", + cbClick: () => { + let i = 0; + try { + for(; i < 10000; i++) { + generateMap(); + } + } catch(e) { + console.log(`Map gen failed after ${i} tries.`); + } + console.log("Ten thousand maps generated successfully."); + }, + enabled: true, + endorse: true, + }) + */ return buttons; }