currentfestival; $now = time(); $inProgress = $inuse > $now; // Unlike Town Hall celebrations, duration is fixed (not level-scaled) — only // the combat bonus % scales with Brewery level (see $bid35 in 35.tpl). $time = $generator->getTimeFormat(round($festival['time'] / SPEED)); $total = $festival['wood'] + $festival['clay'] + $festival['iron'] + $festival['crop']; $showNpc = $session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1 && $village->atotal >= $total; $canAfford = $festival['wood'] <= $village->awood && $festival['clay'] <= $village->aclay && $festival['iron'] <= $village->airon && $festival['crop'] <= $village->acrop; ?>
|
timer;
?>
getTimeFormat($remaining);?> |