Commit 39be61b8 authored by pixeldesu's avatar pixeldesu
Browse files

fix: undefined texts in growl notifications, copypasta failure

parent 381b74c3
......@@ -250,7 +250,7 @@ eventTimer = ->
c = Math.floor((Math.random() * 10000000) % (window.gameVars.cattleGrid.count - (window.gameVars.cattleGrid.count / 3))) + 1
window.gameVars.cattleGrid.count -= c
title = "Oh noes!"
message = "#{f} cattle grids were destroyed by rampaging animals, these are not usable anymore."
message = "#{c} cattle grids were destroyed by rampaging animals, these are not usable anymore."
when 9 # livestock died
if window.gameVars.livestock.count <= 0
title = "Nothing happens..."
......@@ -259,7 +259,7 @@ eventTimer = ->
d = Math.floor((Math.random() * 10000000) % (window.gameVars.livestock.count - (window.gameVars.livestock.count / 2))) + 1
window.gameVars.livestock.count -= d
title = "Oh noes!"
message = "A flu killed some of your animals.<br /><br />You lost #{w} livestock."
message = "A flu killed some of your animals.<br /><br />You lost #{d} livestock."
updateCounters()
NProgress.start()
......
......@@ -275,7 +275,7 @@
c = Math.floor((Math.random() * 10000000) % (window.gameVars.cattleGrid.count - (window.gameVars.cattleGrid.count / 3))) + 1;
window.gameVars.cattleGrid.count -= c;
title = "Oh noes!";
message = "" + f + " cattle grids were destroyed by rampaging animals, these are not usable anymore.";
message = "" + c + " cattle grids were destroyed by rampaging animals, these are not usable anymore.";
break;
case 9:
if (window.gameVars.livestock.count <= 0) {
......@@ -286,7 +286,7 @@
d = Math.floor((Math.random() * 10000000) % (window.gameVars.livestock.count - (window.gameVars.livestock.count / 2))) + 1;
window.gameVars.livestock.count -= d;
title = "Oh noes!";
message = "A flu killed some of your animals.<br /><br />You lost " + w + " livestock.";
message = "A flu killed some of your animals.<br /><br />You lost " + d + " livestock.";
}
updateCounters();
NProgress.start();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment