Commit 85def942 authored by pixeldesu's avatar pixeldesu
Browse files

added id to people counter and removed losing condition

parent 3e1dff7c
......@@ -62,7 +62,7 @@ updateCounters = ->
}
if window.gameVars.gold <= 0 || window.gameVars.wheat.count <= 0
if window.gameVars.wheat.count <= 0
window.clearInterval evtim
$('span#valuables-gold').html 0 if window.gameVars.gold < 0
$('span#goods-wheat').html 0 if window.gameVars.wheat.count < 0
......
......@@ -88,7 +88,7 @@
<li class="list-group-item"><i class="fa fa-paw fa-fw"></i>&nbsp; <b>Livestock:</b> <span id="goods-livestock">x</span></li>
</ul>
<ul class="list-group">
<li class="list-group-item"><h4 class="list-group-item-heading">People <span class="text-muted">{n}</span></h6></li>
<li class="list-group-item"><h4 class="list-group-item-heading">People <span id="people-all" class="text-muted">{n}</span></h6></li>
<li class="list-group-item"><i class="fa fa-home fa-fw"></i>&nbsp; <b>At Home:</b> <span id="people-home">x</span></li>
<li class="list-group-item"><i class="fa fa-bomb fa-fw"></i>&nbsp; <b>At War:</b> <span id="people-war">x</span></li>
<li class="list-group-item"><i class="fa fa-life-ring fa-fw"></i>&nbsp; <b>Shelter:</b> <span id="people-shelter">x</span></li>
......
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