Выкусываем урон из базы

This commit is contained in:
Igor Barkov (iwork)
2020-07-20 16:44:31 +03:00
parent ab5d0459d9
commit c689b6631c
3 changed files with 7 additions and 7 deletions

View File

@@ -44,8 +44,8 @@ SELECT SUM(add_strength) as sum_strength,
SUM(add_accuracy) as sum_accuracy,
SUM(add_evasion) as sum_evasion,
SUM(add_criticals) as sum_criticals,
SUM(min_physical_damage) as sum_min_phys_damage,
SUM(max_physical_damage) as sum_max_phys_damage
SUM(add_min_physical_damage) as sum_min_phys_damage,
SUM(add_max_physical_damage) as sum_max_phys_damage
FROM inventory WHERE owner_id = ?i AND dressed_slot > 0'
SQL;
$this->DBSUM = db::c()->query($query, $this->USERID)->fetch_assoc();

View File

@@ -28,15 +28,15 @@ class User
// Удар кулаком всегда 1-2.
public $minDamage = 1;
public $maxDamage = 2;
//Броня без предметов не существует.
public $headArmor = 0;
public $chestArmor = 0;
public $legArmor = 0;
public const STAT_MAXIMUM_AMOUNT = 40;
// Пока несуществующие, для совместимости.
public $married = 'Someone или нет.';
public $experience = 200;
public $stat_points = 1;
public $headArmor;
public $chestArmor;
public $legArmor;
// Динамически рассчитываемые
public $health;
//Статусы того, кто смотрит на информацию.