Added an admin tool to set multipliers for XP gain and Currency gain.

This commit is contained in:
Vari
2024-09-13 02:00:43 +02:00
parent 729feb2ceb
commit 891b7fe7c5
17 changed files with 528 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ public static function get(): ?static {
function () {
$data = static::getDisk()->get(static::FILE_NAME);
return $data === null ? null : unserialize($data);
return $data === null ? static::getDefault() : unserialize($data);
}
);
}
@@ -38,4 +38,8 @@ function () {
protected static function getDisk(): FilesystemAdapter {
return static::$disk ?? static::$disk = Storage::disk('local');
}
protected static function getDefault(): ?static {
return null;
}
}