mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-02 00:27:12 +00:00
Fixed a bug in the troops training
Troops can now be trained in 0 seconds.
This commit is contained in:
@@ -65,7 +65,7 @@ $dur=round(${'u'.$i}['time'] * ($bid25[$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']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user