Add T4 Hero System (configurable on install)

Add T4 Hero System (configurable on install with TRUE/FALS) part of #285

-Adventures
-Merchants
-Equipment
This commit is contained in:
novgorodschi catalin
2026-07-10 09:15:42 +03:00
parent ed325b6d99
commit 3c99623a33
46 changed files with 4367 additions and 32 deletions
+5
View File
@@ -207,6 +207,11 @@ $hasRally = $village->resarray['f39'] > 0;
$set = $database->getMovement(5,$village->wid,0);
$cnt = count($set);
foreach($out as $u) if($u['vref']==$village->wid) $cnt++;
// T4 hero port: adventure legs count as troops on their way too.
if (defined('NEW_FUNCTIONS_HERO_T4') && NEW_FUNCTIONS_HERO_T4) {
$cnt += count($database->getMovement(20,$village->wid,0));
$cnt += count($database->getMovement(21,$village->wid,1));
}
?>
<?php if($cnt>=1): ?>
<h4><?= TROOPS_ON_THEIR_WAY ?></h4>