Browse Source

card and enemies modifications

main
Stephanie Gredell 4 months ago
parent
commit
fe9623a06f
  1. 16
      src/data/cards.js
  2. 2
      src/data/enemies.js

16
src/data/cards.js

@ -50,7 +50,7 @@ export const CARDS = {
}, },
refactor: { refactor: {
id: "refactor", name: "Refactor Strike", cost: 2, type: "attack", text: "Deal 7. Draw 1.", id: "refactor", name: "Segfault", cost: 2, type: "attack", text: "Deal 7. Draw 1.",
effect: (ctx) => { ctx.deal(ctx.enemy, ctx.scalarFromWeak(7)); ctx.draw(1); } effect: (ctx) => { ctx.deal(ctx.enemy, ctx.scalarFromWeak(7)); ctx.draw(1); }
}, },
@ -60,7 +60,7 @@ export const CARDS = {
}, },
chat_ban: { chat_ban: {
id: "chat_ban", name: "Chat Ban", cost: 1, type: "skill", text: "Apply Weak(2).", id: "chat_ban", name: "404", cost: 1, type: "skill", text: "Apply Weak(2).",
effect: (ctx) => ctx.applyWeak(ctx.enemy, 2) effect: (ctx) => ctx.applyWeak(ctx.enemy, 2)
}, },
@ -70,7 +70,7 @@ export const CARDS = {
}, },
gc: { gc: {
id: "gc", name: "Garbage Collector", cost: 1, type: "skill", text: "Exhaust 1 card, draw 2.", id: "gc", name: "[object Object]", cost: 1, type: "skill", text: "Exhaust 1 card, draw 2.",
effect: (ctx) => { effect: (ctx) => {
ctx.promptExhaust(1); ctx.promptExhaust(1);
ctx.draw(2); ctx.draw(2);
@ -78,7 +78,7 @@ export const CARDS = {
}, },
async_await: { async_await: {
id: "async_await", name: "Async/Await", cost: 1, type: "power", text: "Skip this turn. Next turn +2 Energy.", id: "async_await", name: "Just One Game", cost: 1, type: "power", text: "Skip this turn. Next turn +2 Energy.",
effect: (ctx) => { ctx.flags.skipThisTurn = true; ctx.flags.nextTurnEnergyBonus = (ctx.flags.nextTurnEnergyBonus || 0) + 2; } effect: (ctx) => { ctx.flags.skipThisTurn = true; ctx.flags.nextTurnEnergyBonus = (ctx.flags.nextTurnEnergyBonus || 0) + 2; }
}, },
@ -99,7 +99,7 @@ export const CARDS = {
}, },
null_pointer: { null_pointer: {
id: "null_pointer", name: "Null Pointer", cost: 2, type: "attack", text: "Deal 8. If enemy has no Block, deal 4 more.", id: "null_pointer", name: "Task failed successfully", cost: 2, type: "attack", text: "Deal 8. If enemy has no Block, deal 4 more.",
effect: (ctx) => { effect: (ctx) => {
let dmg = ctx.scalarFromWeak(8); let dmg = ctx.scalarFromWeak(8);
if (ctx.enemy.block === 0) dmg += ctx.scalarFromWeak(4); if (ctx.enemy.block === 0) dmg += ctx.scalarFromWeak(4);
@ -160,9 +160,9 @@ export const CARDS = {
}, },
rubber_duck: { rubber_duck: {
id: "rubber_duck", name: "Rubber Duck", cost: 0, type: "skill", text: "Heal 3. Draw 1.", id: "rubber_duck", name: "Ligma", cost: 0, type: "skill", text: "Unalive yourself with -69 hit points. Courtesy of Defysall.",
effect: (ctx) => { effect: (ctx) => {
ctx.player.hp = Math.min(ctx.player.maxHp, ctx.player.hp + 3); ctx.player.hp = Math.min(ctx.player.maxHp, ctx.player.hp - 69);
ctx.draw(1); ctx.draw(1);
} }
}, },
@ -176,7 +176,7 @@ export const CARDS = {
}, },
unit_test: { unit_test: {
id: "unit_test", name: "Unit Test", cost: 1, type: "skill", text: "If enemy intends to attack, gain 8 Block.", id: "unit_test", name: "Virgin", cost: 1, type: "skill", text: "If enemy intends to attack, gain 8 Block.",
effect: (ctx) => { effect: (ctx) => {
if (ctx.intentIsAttack()) { if (ctx.intentIsAttack()) {
ctx.player.block += 8; ctx.player.block += 8;

2
src/data/enemies.js

@ -58,7 +58,7 @@ export const ENEMIES = {
ai: (turn) => ({ type: "attack", value: 10 + Math.floor(turn * 1.5) }) ai: (turn) => ({ type: "attack", value: 10 + Math.floor(turn * 1.5) })
}, },
boss_birthday_bug: { boss_birthday_bug: {
id: "boss_birthday_bug", name: "Teej", maxHp: 140, id: "boss_birthday_bug", name: "Teej", maxHp: 120,
avatar: "assets/avatars/boss_birthday_bug.png", // Demanding/angry character avatar: "assets/avatars/boss_birthday_bug.png", // Demanding/angry character
background: "assets/backgrounds/throne room.png", // Repeat background - fitting for boss background: "assets/backgrounds/throne room.png", // Repeat background - fitting for boss
ai: (turn) => { ai: (turn) => {

Loading…
Cancel
Save