Fixed a bug in the troops training

Troops can now be trained in 0 seconds.
This commit is contained in:
Pietro
2018-04-05 03:05:57 +02:00
committed by GitHub
parent aec41019e9
commit 02d79777f1
12 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ $dur=round(${'u'.$i}['time'] * ($bid29[$village->resarray['f'.$id]]['attri'] / 1
}
}
$dur=$generator->getTimeFormat($dur);
echo ($dur=="0:00:00")? "0:00:01":$dur;
echo $dur;
//-- If available resources combined are not enough, remove NPC button
$total_required = (int)(${'u'.$i}['wood'] + ${'u'.$i}['clay'] + ${'u'.$i}['iron'] + ${'u'.$i}['crop']);