Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FarmingGame-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Andreas Nedbal
FarmingGame-web
Commits
39be61b8
Commit
39be61b8
authored
Oct 18, 2014
by
pixeldesu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: undefined texts in growl notifications, copypasta failure
parent
381b74c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
coffee/main.coffee
coffee/main.coffee
+2
-2
js/main.js
js/main.js
+2
-2
No files found.
coffee/main.coffee
View file @
39be61b8
...
...
@@ -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
()
...
...
js/main.js
View file @
39be61b8
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment