Skip to content

Commit

Permalink
Add a dungeon door
Browse files Browse the repository at this point in the history
  • Loading branch information
igorknop committed Jan 30, 2022
1 parent 939d3bf commit 145d8de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/cards/CardsSpecialItems.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { EFFECTS, SLOTS } from "../AllTimeConstants.mjs";

export const CARDS_SPECIAL_ITEMS = [
{ text: "Door01", enemy: { name: "Dungeon's Door", damage: 0, hitPoints: 4, effects: [], hint: "A dark oak door with iron bars. An way out of this gloomy place.." }, player: { name: 'Wooden Wand', effects: [{ type: EFFECTS.HEAL, value: 1 }, { type: EFFECTS.ATTACK, value: 4 , req:['C']}, { type: EFFECTS.ATTACK, value: 2 , req:['D']} ], set: ['C', 'D'], slot:SLOTS.HAND_OFF, hint: "A thin twig that sparks in the tip" } },

];
3 changes: 3 additions & 0 deletions data/cards/Level1.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import CrawlerCard from "../../js/CrawlerCard.mjs";
import { shuffleArray } from "../../js/util/shuffle.mjs";
import { CARDS_GIANT_RATS } from "./CardsGiantRat.mjs";
import { CARDS_SLIMES } from "./CardsSlime.mjs";
import { CARDS_SPECIAL_ITEMS } from "./CardsSpecialItems.mjs";
import { CARDS_ZOMBIES } from "./CardsZombies.mjs";

export default function generateLevel1() {
Expand All @@ -10,6 +11,8 @@ export default function generateLevel1() {
[...CARDS_GIANT_RATS.map(c => new CrawlerCard(c)),
...CARDS_SLIMES.map(c => new CrawlerCard(c))]
),
new CrawlerCard(CARDS_SPECIAL_ITEMS[0]),
,
...shuffleArray([
...CARDS_ZOMBIES.map(c => new CrawlerCard(c)),
])
Expand Down

0 comments on commit 145d8de

Please sign in to comment.