a bit of progress

This commit is contained in:
2026-07-04 17:09:55 +03:00
parent f6e7d37428
commit 082b532d52
29 changed files with 2734 additions and 47 deletions
+16
View File
@@ -114,6 +114,22 @@ class Character extends Model
return $this->hasMany(CrimeAttempt::class);
}
/**
* Get the attacks made by this character.
*/
public function attacks(): HasMany
{
return $this->hasMany(Attack::class, 'attacker_id');
}
/**
* Get the attacks received by this character.
*/
public function attacksReceived(): HasMany
{
return $this->hasMany(Attack::class, 'defender_id');
}
/**
* Get the activity logs for the character.
*/