Skip to content

Commit

Permalink
Update core.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Bennyhwanggggg authored Oct 24, 2019
1 parent f100ce7 commit 9225a43
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions frontend/src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,21 @@ export const manipulatePlanet = (predictResult) => {
const { className } = predictResult

if (Junks.includes(className)) {
water -= 1;
oxygen -= 1;
temperature += 1;
water -= 1.2;
oxygen -= 1.1;
temperature -= 0.6;
} else if (LifeStocks.includes(className)) {
water -= 1;
oxygen += 1;
temperature -= 1
water += 1.3;
oxygen += 0.8;
temperature += 1.1;
} else if (Plantations.includes(className)) {
water += 1;
oxygen += 1;
temperature -= 1;
water -= 0.6;
oxygen += 0.8;
temperature -= 0.7;
} else {
water += 1;
oxygen -= 1;
temperature += 1;
water += Math.random();
oxygen -= Math.random();
temperature += Math.random();
}

return {
Expand Down

0 comments on commit 9225a43

Please sign in to comment.