Files
Deathgarden_Rebirth-Rewrite/dist/app/Http/Responses/Api/Player/ResetCharacterProgressionForPrestigeResponse.php
Vari 061b1e2e42 Added endpoint resetCharacterProgressionForPrestige.
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
2024-02-29 02:15:44 +01:00

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;
}
}