update fix by SlimShady95: add storage multipler

This commit is contained in:
unknown
2012-04-03 17:54:31 +03:00
parent 4fd2a1c54d
commit b6535cc5d6
+6 -6
View File
@@ -2664,35 +2664,35 @@ private function starvation() {
{ {
if ($row['f' . $i . 't'] == 10) if ($row['f' . $i . 't'] == 10)
{ {
$ress += $bid10[$row['f' . $i]]['attri']; $ress += $bid10[$row['f' . $i]]['attri'] * STORAGE_MULTIPLIER;
} }
if ($row['f' . $i . 't'] == 38) if ($row['f' . $i . 't'] == 38)
{ {
$ress += $bid38[$row['f' . $i]]['attri']; $ress += $bid38[$row['f' . $i]]['attri'] * STORAGE_MULTIPLIER;
} }
if ($row['f' . $i . 't'] == 11) if ($row['f' . $i . 't'] == 11)
{ {
$crop += $bid11[$row['f' . $i]]['attri']; $crop += $bid11[$row['f' . $i]]['attri'] * STORAGE_MULTIPLIER;
} }
if ($row['f' . $i . 't'] == 39) if ($row['f' . $i . 't'] == 39)
{ {
$crop += $bid39[$row['f' . $i]]['attri']; $crop += $bid39[$row['f' . $i]]['attri'] * STORAGE_MULTIPLIER;
} }
} }
if ($ress == 0) if ($ress == 0)
{ {
$ress = 800; $ress = 800 * STORAGE_MULTIPLIER;
} }
if ($crop == 0) if ($crop == 0)
{ {
$crop = 800; $crop = 800 * STORAGE_MULTIPLIER;
} }
mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `maxstore` = ' . $ress . ', `maxcrop` = ' . $crop . ' WHERE `wref` = ' . $row['vref']) or die(mysql_error()); mysql_query('UPDATE `' . TB_PREFIX . 'vdata` SET `maxstore` = ' . $ress . ', `maxcrop` = ' . $crop . ' WHERE `wref` = ' . $row['vref']) or die(mysql_error());