Browse Source

fix health bug and energy bug inside events

main
Stephanie Gredell 4 months ago
parent
commit
64232802c5
  1. 8
      src/ui/render.js

8
src/ui/render.js

@ -1340,7 +1340,7 @@ export function renderEvent(root) {
icon: "assets/card-art/heart.png", icon: "assets/card-art/heart.png",
risk: "low", risk: "low",
effect: () => { effect: () => {
root.player.hp = Math.min(root.player.maxHp, root.player.hp + 8); root.player.maxHp += 5;
root.log("Small bite: +8 HP"); root.log("Small bite: +8 HP");
} }
}, },
@ -1425,13 +1425,13 @@ export function renderEvent(root) {
} }
}, },
{ {
text: "Collect the balloons (+1 Energy next 3 fights)", text: "Collect the balloons (+1 Energy)",
quote: "Isn’t it funny how day by day nothing changes, but when you look back, everything is different?", quote: "Isn’t it funny how day by day nothing changes, but when you look back, everything is different?",
icon: "assets/card-art/magic_sphere.png", icon: "assets/card-art/magic_sphere.png",
risk: "low", risk: "low",
effect: () => { effect: () => {
root.flags.bonusEnergyFights = 3; root.player.maxEnergy += 1;
root.log("Collected balloons: +1 Energy next 3 fights"); root.log("Collected balloons: +1 Energy");
} }
}, },
{ {

Loading…
Cancel
Save