mirror of
https://github.com/rico-vz/HeimerdingerLoL.git
synced 2025-12-06 10:10:48 +01:00
feat: champ information, style improvement
This commit is contained in:
@@ -33,6 +33,40 @@ class Champion extends Model
|
||||
'roles' => 'array',
|
||||
];
|
||||
|
||||
public function getResourceTypeAttribute($value): string
|
||||
{
|
||||
$resourceTypes = [
|
||||
'BLOOD_WELL' => "Blood",
|
||||
"MANA" => "Mana",
|
||||
"ENERGY" => "Energy",
|
||||
"NONE" => "None",
|
||||
"HEALTH" => "Health",
|
||||
"RAGE" => "Rage",
|
||||
"COURAGE" => "Courage",
|
||||
"SHIELD" => "Shield",
|
||||
"FURY" => "Fury",
|
||||
"FEROCITY" => "Ferocity",
|
||||
"HEAT" => "Heat",
|
||||
"GRIT" => "Grit",
|
||||
"BLOODTHIRST" => "Bloodthirst",
|
||||
"FLOW" => "Flow",
|
||||
"SOUL_UNBOUND" => "Soul Unbound",
|
||||
];
|
||||
|
||||
return $resourceTypes[$value];
|
||||
}
|
||||
|
||||
public function getAdaptiveTypeAttribute($value): string
|
||||
{
|
||||
$adaptiveTypes = [
|
||||
'ADAPTIVE_DAMAGE' => 'Adaptive',
|
||||
'MAGIC_DAMAGE' => 'Magical',
|
||||
'PHYSICAL_DAMAGE' => 'Physical',
|
||||
];
|
||||
|
||||
return $adaptiveTypes[$value];
|
||||
}
|
||||
|
||||
public function sluggable(): array
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user