Skip to content

Commit

Permalink
Change set to array
Browse files Browse the repository at this point in the history
  • Loading branch information
igorknop committed Jan 30, 2022
1 parent 879a994 commit 31c0919
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions data/cards/CardsGiantRat.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { EFFECT_ATTACK, EFFECT_DEFENSE, EFFECT_REGENERATION } from "../AllTimeConstants.mjs";

export const CARDS_GIANT_RATS = [
{ text: "GiantRat00", enemy: {name: 'GiantRat', damage:0, hitPoints: 1, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Bare Hands', effects:[{type:EFFECT_ATTACK, value:1}], set:'A'}},
{ text: "GiantRat01", enemy: {name: 'GiantRat', damage:0, hitPoints: 1, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Bare Feet', effects:[{type:EFFECT_ATTACK, value:1}], set:'A'}},
{ text: "GiantRat02", enemy: {name: 'GiantRat', damage:0, hitPoints: 1, effects:[{type:EFFECT_ATTACK, value: 1},{type:EFFECT_DEFENSE, value: 1}]}, player: {name: 'Bare Head', effects:[{type:EFFECT_ATTACK, value:1}], set:'A'}},
{ text: "GiantRat03", enemy: {name: 'GiantRat', damage:0, hitPoints: 1, effects:[{type:EFFECT_ATTACK, value: 1}, {type:EFFECT_REGENERATION, value: 1}]}, player: {name: 'Bare Chest', effects:[{type:EFFECT_DEFENSE, value:1}], set:'A'}},
{ text: "GiantRat04", enemy: {name: 'GiantRat', damage:0, hitPoints: 1, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Waist Cloth', effects:[{type:EFFECT_ATTACK, value:1}, {type:EFFECT_DEFENSE, value:1},], set:'A'}}
{ text: "GiantRat00", enemy: {name: 'GiantRat', damage:0, hitPoints: 1, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Bare Hands', effects:[{type:EFFECT_ATTACK, value:1}], set:['A']}},
{ text: "GiantRat01", enemy: {name: 'GiantRat', damage:0, hitPoints: 1, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Bare Feet', effects:[{type:EFFECT_ATTACK, value:1}], set:['A']}},
{ text: "GiantRat02", enemy: {name: 'GiantRat', damage:0, hitPoints: 1, effects:[{type:EFFECT_ATTACK, value: 1},{type:EFFECT_DEFENSE, value: 1}]}, player: {name: 'Bare Head', effects:[{type:EFFECT_ATTACK, value:1}], set:['A']}},
{ text: "GiantRat03", enemy: {name: 'GiantRat', damage:0, hitPoints: 1, effects:[{type:EFFECT_ATTACK, value: 1}, {type:EFFECT_REGENERATION, value: 1}]}, player: {name: 'Bare Chest', effects:[{type:EFFECT_DEFENSE, value:1}], set:['A']}},
{ text: "GiantRat04", enemy: {name: 'GiantRat', damage:0, hitPoints: 1, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Waist Cloth', effects:[{type:EFFECT_ATTACK, value:1}, {type:EFFECT_DEFENSE, value:1},], set:['A']}}
];
10 changes: 5 additions & 5 deletions data/cards/CardsSlime.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { EFFECT_ATTACK, EFFECT_DEFENSE, EFFECT_REGENERATION } from "../AllTimeConstants.mjs";

export const CARDS_SLIMES = [
{ text: "Slime00", enemy: {name: 'Slime', damage:0, hitPoints: 3, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Cloth Gloves', effects:[{type:EFFECT_ATTACK, value:1}], set:'B'}},
{ text: "Slime01", enemy: {name: 'Slime', damage:0, hitPoints: 3, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Cloth Shoes', effects:[{type:EFFECT_ATTACK, value:1}], set:'B'}},
{ text: "Slime02", enemy: {name: 'Slime', damage:0, hitPoints: 3, effects:[{type:EFFECT_ATTACK, value: 1},{type:EFFECT_DEFENSE, value: 1}]}, player: {name: 'Cloth Hood', effects:[{type:EFFECT_REGENERATION, value:1}], set:'B'}},
{ text: "Slime03", enemy: {name: 'Slime', damage:0, hitPoints: 3, effects:[{type:EFFECT_ATTACK, value: 1}, {type:EFFECT_REGENERATION, value: 1}]}, player: {name: 'Cloth Shirt', effects:[{type:EFFECT_DEFENSE, value:1}], set:'B'}},
{ text: "Slime04", enemy: {name: 'Slime', damage:0, hitPoints: 3, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Cloth Leggings', effects:[{type:EFFECT_ATTACK, value:1}, {type:EFFECT_DEFENSE, value:1},], set:'B'}}
{ text: "Slime00", enemy: {name: 'Slime', damage:0, hitPoints: 3, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Cloth Gloves', effects:[{type:EFFECT_ATTACK, value:1}], set:['B']}},
{ text: "Slime01", enemy: {name: 'Slime', damage:0, hitPoints: 3, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Cloth Shoes', effects:[{type:EFFECT_ATTACK, value:1}], set:['B']}},
{ text: "Slime02", enemy: {name: 'Slime', damage:0, hitPoints: 3, effects:[{type:EFFECT_ATTACK, value: 1},{type:EFFECT_DEFENSE, value: 1}]}, player: {name: 'Cloth Hood', effects:[{type:EFFECT_REGENERATION, value:1}], set:['B']}},
{ text: "Slime03", enemy: {name: 'Slime', damage:0, hitPoints: 3, effects:[{type:EFFECT_ATTACK, value: 1}, {type:EFFECT_REGENERATION, value: 1}]}, player: {name: 'Cloth Shirt', effects:[{type:EFFECT_DEFENSE, value:1}], set:['B']}},
{ text: "Slime04", enemy: {name: 'Slime', damage:0, hitPoints: 3, effects:[{type:EFFECT_ATTACK, value: 1}]}, player: {name: 'Cloth Leggings', effects:[{type:EFFECT_ATTACK, value:1}, {type:EFFECT_DEFENSE, value:1},], set:['B']}}
];
2 changes: 1 addition & 1 deletion js/CrawlerCard.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default class CrawlerCard extends Card {
ctx.textAlign = "center";
ctx.font = `${fontSize}px "Orbitron"`;
ctx.fillText(this.player.name, this.x, this.y - this.h * 0.34, this.w * 0.9);
ctx.fillText(this.player.set, this.x, this.y - this.h * 0.2, this.w * 0.9);
ctx.fillText(this.player.set.join(''), this.x, this.y - this.h * 0.2, this.w * 0.9);
ctx.fillStyle = FRONT_COLOR;
ctx.font = `${fontSize}px "Orbitron"`;
for (let i = this.player.effects.length - 1; i >= 0; i--) {
Expand Down

0 comments on commit 31c0919

Please sign in to comment.