mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-17 16:51:00 +00:00
Some additional fixes for PHP errors
Some additional fixes for PHP errors
This commit is contained in:
@@ -25,7 +25,8 @@ $field = 'f' . $id;
|
||||
$currentLevel = (int) ($village->resarray[$field] ?? 0);
|
||||
$buildingType = $village->resarray[$field . 't'] ?? 0;
|
||||
|
||||
$currentCapacity = $bid10[$currentLevel]['attri'] * STORAGE_MULTIPLIER;
|
||||
// $bid10 is keyed from level 1 upward; at level 0 (not built yet) fall back to the base capacity
|
||||
$currentCapacity = ($currentLevel > 0) ? $bid10[$currentLevel]['attri'] * STORAGE_MULTIPLIER : STORAGE_BASE;
|
||||
|
||||
$isMax = $building->isMax($buildingType, $id);
|
||||
$maxLevel = 20;
|
||||
|
||||
@@ -25,7 +25,8 @@ $field = 'f' . $id;
|
||||
$currentLevel = (int) ($village->resarray[$field] ?? 0);
|
||||
$buildingType = $village->resarray[$field . 't'] ?? 0;
|
||||
|
||||
$currentCapacity = $bid11[$currentLevel]['attri'] * STORAGE_MULTIPLIER;
|
||||
// $bid11 is keyed from level 1 upward; at level 0 (not built yet) fall back to the base capacity
|
||||
$currentCapacity = ($currentLevel > 0) ? $bid11[$currentLevel]['attri'] * STORAGE_MULTIPLIER : STORAGE_BASE;
|
||||
|
||||
$isMax = $building->isMax($buildingType, $id);
|
||||
$maxLevel = 20;
|
||||
|
||||
Reference in New Issue
Block a user