Commit d113a543 authored by Jyrki's avatar Jyrki 🐾
Browse files

fucking jQuery...

parent 5a40ec93
......@@ -57,8 +57,8 @@ updateCounters = ->
$('span#builds-cattle').html window.gameVars.cattleGrids.count
# statistics
$('span#stats-wheat-produced').html window.gameVars.wheat.produced
$('span#stats-wheat-consumed').html window.gameVars.wheat.consumed
$('td#stats-wheat-produced').html window.gameVars.wheat.produced
$('td#stats-wheat-consumed').html window.gameVars.wheat.consumed
$('span#valuables-gold').html 0 if window.gameVars.gold < 0
$('span#goods-wheat').html 0 if window.gameVars.wheat.count < 0
......
......@@ -53,8 +53,8 @@
$('span#people-all').html(window.gameVars.people.home + window.gameVars.people.war + window.gameVars.people.shelter);
$('span#builds-fields').html(window.gameVars.fields.count);
$('span#builds-cattle').html(window.gameVars.cattleGrids.count);
$('span#stats-wheat-produced').html(window.gameVars.wheat.produced);
$('span#stats-wheat-consumed').html(window.gameVars.wheat.consumed);
$('td#stats-wheat-produced').html(window.gameVars.wheat.produced);
$('td#stats-wheat-consumed').html(window.gameVars.wheat.consumed);
if (window.gameVars.gold < 0) {
$('span#valuables-gold').html(0);
}
......
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