Skip to content

Commit

Permalink
remove console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
cheryllium committed Jan 5, 2024
1 parent 92e0928 commit 495e80c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion src/fish.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ export default class Fish {

if (addRecord) {
uiManager.addRecord(`FISH1 is feeling ${this.mood}.`, this);
console.log(this.history);
}

if (reason) {
Expand Down
5 changes: 0 additions & 5 deletions src/routines.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,19 @@ export default class RoutineManager {
// Fill in descriptions for mood actions in each script
for(let action of scriptA) {
if (action.description) {
console.log('got here');
action.description = action.description
.replace("FISH1", `<span style='color:${fish1.favoriteColor}'>${fish1.name}</span>`)
.replace("FISH2", `<span style='color:${fish2.favoriteColor}'>${fish2.name}</span>`);
}
}
for(let action of scriptB) {
if (action.description) {
console.log('got here');
action.description = action.description
.replace("FISH1", `<span style='color:${fish1.favoriteColor}'>${fish1.name}</span>`)
.replace("FISH2", `<span style='color:${fish2.favoriteColor}'>${fish2.name}</span>`);
}
}

console.log(scriptA);
console.log(scriptB);

// Calculate two points near the midpoint to move the fish
let midpoint = {x: randomIntFromInterval(100, 500), y:randomIntFromInterval(100, 700)};
let pointA = {x: midpoint.x - fishImages[filteredFish[indexA].type-1].width/2, y: midpoint.y};
Expand Down
5 changes: 0 additions & 5 deletions src/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,18 +126,13 @@ export default class UIManager {
}

updateFishJournal(fish) {
console.log('updating journal for', fish);

// Only update that specific fish's div.
let fishDiv = document.querySelector(`.${fish.name}${fish.favoriteFood}${fish.type}`);
if (!fishDiv) {
console.log('fish div not found');
return;
}

fishDiv.innerHTML = "";

console.log('fishdiv', fishDiv);

if (fish.goodMood) {
fishDiv.classList.add("good-mood");
Expand Down

0 comments on commit 495e80c

Please sign in to comment.