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
+6 -1
View File
@@ -796,7 +796,12 @@ class Units {
$speeds[] = $GLOBALS['u'.$heroUnit]['speed'];
}
return $generator->procDistanceTime($fromCor, $toCor, min($speeds), $mode, $from);
$walkTime = $generator->procDistanceTime($fromCor, $toCor, min($speeds), $mode, $from);
// T4 hero port (Phase 5): boots (>20 tiles), pennant (own villages)
// and standard (ally villages) shorten the trip when the hero rides
// along. Returns the input unchanged when NEW_FUNCTIONS_HERO_T4 is off.
return HeroBattleBonus::adjustTravelTime($owner, $unitArray[10] ?? 0, $from, $to, $walkTime);
}
public function startRaidList($post){