From 2d8fd51902388cc9c2d988ac6faaa61ba6237171 Mon Sep 17 00:00:00 2001 From: Stephanie Gredell Date: Fri, 5 Sep 2025 12:42:02 -0700 Subject: [PATCH] cleaning up --- src/data/enemies.js | 1 - src/data/maps.js | 1 - src/data/relics.js | 26 +++++++++++++------------- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/src/data/enemies.js b/src/data/enemies.js index f6fc030..96f3ab1 100644 --- a/src/data/enemies.js +++ b/src/data/enemies.js @@ -1,4 +1,3 @@ - export const ENEMIES = { old_man_judo: { id: "old_man_judo", name: "Old Man Judo", maxHp: 40, diff --git a/src/data/maps.js b/src/data/maps.js index c5540db..2e51f33 100644 --- a/src/data/maps.js +++ b/src/data/maps.js @@ -1,4 +1,3 @@ - export const MAPS = { act1: { id: "act1", name: "Birthday Spire — Act I", diff --git a/src/data/relics.js b/src/data/relics.js index 97201ed..b4840b8 100644 --- a/src/data/relics.js +++ b/src/data/relics.js @@ -1,30 +1,30 @@ export const RELICS = { - mech_kb: { - id: "mech_kb", name: "Kinesis", + kinesis: { + id: "kinesis", name: "Kinesis", text: "+1 card draw each turn.", art: "Monk_29.png", hooks: { onTurnStart: (ctx) => ctx.draw(1) } }, - standing_desk: { - id: "standing_desk", name: "Vim Motions", + vim_motions: { + id: "vim_motions", name: "Vim Motions", text: "+10 Max HP.", art: "Monk_30.png", hooks: { onRunStart: (ctx) => { ctx.player.maxHp += 10; ctx.player.hp += 10; } } }, - prime_hat: { - id: "prime_hat", name: "VS Code", + vs_code: { + id: "vs_code", name: "VS Code", text: "-10% damage taken.", art: "Monk_31.png", hooks: { onDamageTaken: (ctx, dmg) => Math.ceil(dmg * 0.9) } }, - coffee_thermos: { - id: "coffee_thermos", name: "Terminal Coffee Thermos", + terminal_coffee_thermos: { + id: "terminal_coffee_thermos", name: "Terminal Coffee Thermos", text: "Start each fight with Coffee Rush.", art: "Monk_32.png", hooks: { onBattleStart: (ctx) => { ctx.player.energy += 2; ctx.log("Your coffee thermos provides an energizing boost!") } } }, - cpp_compiler: { - id: "cpp_compiler", name: "Haskell", + haskell: { + id: "haskell", name: "Haskell", text: "First attack each turn deals double.", art: "Monk_33.png", state: { used: false }, @@ -33,8 +33,8 @@ export const RELICS = { onPlayerAttack: (ctx, st, amount) => st.used ? amount : (st.used = true, amount * 2) } }, - chat_mod_sword: { - id: "chat_mod_sword", name: "Worst Streamer Award", + worst_streamer_award: { + id: "worst_streamer_award", name: "Worst Streamer Award", text: "Start fights with 1 Weak on all enemies.", art: "Monk_34.png", hooks: { @@ -46,4 +46,4 @@ export const RELICS = { }, }; -export const START_RELIC_CHOICES = ["mech_kb", "standing_desk", "prime_hat", "coffee_thermos", "cpp_compiler", "chat_mod_sword"]; +export const START_RELIC_CHOICES = ["kinesis", "vim_motions", "vs_code", "terminal_coffee_thermos", "haskell", "worst_streamer_award"];