mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: max crop/resources reset to level 1 value temporarily
This happened when level 1 granary / warehouse was built because of a missing + sign in a formula. #374
This commit is contained in:
@@ -654,11 +654,10 @@ class Automation {
|
||||
|
||||
if ($level != 1) {
|
||||
$max -= ${'bid'.$indi['type']}[$level-1]['attri'] * STORAGE_MULTIPLIER;
|
||||
$max += ${'bid'.$indi['type']}[$level]['attri'] * STORAGE_MULTIPLIER;
|
||||
} else {
|
||||
$max = ${'bid'.$indi['type']}[$level]['attri'] * STORAGE_MULTIPLIER;
|
||||
}
|
||||
|
||||
$max += ${'bid'.$indi['type']}[$level]['attri'] * STORAGE_MULTIPLIER;
|
||||
|
||||
$fieldsToSet[$fieldDbName] = $max;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user