mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-08 04:00:14 -05:00
fix: use booleans for bots
This commit is contained in:
+12
-3
@@ -48,13 +48,22 @@ class Bot extends Model
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
*
|
||||
* @return array{name: 'string', cost: 'decimal:2'}
|
||||
* @return array{
|
||||
* name: 'string',
|
||||
* cost: 'decimal:2'
|
||||
* is_protected: 'bool',
|
||||
* is_nerdbot: 'bool',
|
||||
* is_systembot: 'bool',
|
||||
* }
|
||||
*/
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'name' => 'string',
|
||||
'cost' => 'decimal:2',
|
||||
'name' => 'string',
|
||||
'cost' => 'decimal:2',
|
||||
'is_protected' => 'bool',
|
||||
'is_nerdbot' => 'bool',
|
||||
'is_systembot' => 'bool',
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user