some progress

This commit is contained in:
Doar Mihai
2026-06-28 03:19:32 +03:00
parent 435cef6beb
commit a36b0b7612
3 changed files with 1325 additions and 1 deletions
+1 -1
View File
@@ -194,7 +194,7 @@ class Character extends Model
*/
public function getDefenseAttribute(): int
{
$base = $this->defense;
$base = $this->attributes['defense'] ?? 0;
$armor = $this->inventory()->where('equipped', true)->whereHas('item', function($q) {
$q->where('type', 'armor');
})->first();