mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-21 10:37:14 +00:00
Fix Some PHP 8+ view error in Build & Credits
Fix Some PHP 8+ view error in Build & Credits TO DO : Full audit in build directory
This commit is contained in:
@@ -1,10 +1,29 @@
|
||||
<?php
|
||||
// 26_create.tpl - PALACE / TRAIN SETTLERS
|
||||
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename : PALACE TRAIN SETTLERS ##
|
||||
## Type : BUILDING TEMPLATE ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Refactored by : Shadow ##
|
||||
## Redesign by : Shadow ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Contact : cata7007@gmail.com ##
|
||||
## Project : TravianZ ##
|
||||
## Test Server : https://travianz.org ##
|
||||
## GitHub : https://github.com/Shadowss/TravianZ ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## License : TravianZ Project ##
|
||||
## Copyright : TravianZ (c) 2010-2026. All rights reserved. ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
#################################################################################
|
||||
|
||||
global $village, $technology, $generator, $id;
|
||||
|
||||
$unitId = 20; // colonist
|
||||
$unitId = 20; // SETTLERS
|
||||
$unitName = $technology->getUnitName($unitId);
|
||||
$costs = $GLOBALS['u'.$unitId]; // $u20 din config
|
||||
$costs = $GLOBALS['u'.$unitId];
|
||||
$maxTrain = $technology->maxUnit($unitId);
|
||||
$available = (int)($village->unitarray['u'.$unitId]?? 0);
|
||||
$trainTime = $generator->getTimeFormat(round($costs['time'] / SPEED));
|
||||
|
||||
Reference in New Issue
Block a user