mirror of
https://github.com/Deathgarden-Rebirth/Deathgarden_Rebirth-Rewrite.git
synced 2026-09-08 19:25:10 -05:00
It checks if you have all the lvl 10 items in your iventory and if you have enough currency. Then your character progress gets reset and inventory cleared of the items of that character. then you get the prestige reward added to your inventory and the prestige lvl of the character goes up
29 lines
850 B
PHP
29 lines
850 B
PHP
<?php
|
|
|
|
namespace App\Http\Responses\Api\Player;
|
|
|
|
use App\Http\Responses\Api\General\Reward;
|
|
|
|
class ResetCharacterProgressionForPrestigeResponse
|
|
{
|
|
public bool $isCharacterItemReset = true;
|
|
public bool $isCharacterChallengesReset = true;
|
|
public bool $isCharacterExperienceReset = true;
|
|
|
|
public int $prestigelevel;
|
|
|
|
/** @var Reward[] */
|
|
public array $rewards;
|
|
|
|
public static function createAbortResponse(int $prestigeLevel): ResetCharacterProgressionForPrestigeResponse
|
|
{
|
|
$response = new ResetCharacterProgressionForPrestigeResponse();
|
|
$response->isCharacterExperienceReset = false;
|
|
$response->isCharacterItemReset = false;
|
|
$response->isCharacterChallengesReset = false;
|
|
$response->prestigelevel = $prestigeLevel;
|
|
$response->rewards = [];
|
|
|
|
return $response;
|
|
}
|
|
} |