Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Continuities committed Jun 12, 2023
1 parent 4c683dd commit 9c02581
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,6 @@ var Events = {
} else {
var r = Math.floor(Math.random()*(possibleEvents.length));
Events.startEvent(possibleEvents[r]);
AudioEngine.playEventMusic(possibleEvents[r].audio);
}
}

Expand Down Expand Up @@ -1375,6 +1374,7 @@ var Events = {
if (!event) {
return;
}
AudioEngine.stopEventMusic();
Events.eventPanel().remove();
Events.activeEvent().eventPanel = null;
Events.eventStack.shift();
Expand Down
2 changes: 1 addition & 1 deletion script/world.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var World = {
MOVES_PER_FOOD: 2,
MOVES_PER_WATER: 1,
DEATH_COOLDOWN: 120,
FIGHT_CHANCE: 0, //0.20, TODO UNCOMMENT THIS
FIGHT_CHANCE: 0.20,
BASE_HEALTH: 10,
BASE_HIT_CHANCE: 0.8,
MEAT_HEAL: 8,
Expand Down

0 comments on commit 9c02581

Please sign in to comment.