mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-25 08:48:12 +00:00
Added upgrades
This commit is contained in:
@@ -973,7 +973,7 @@ void GameMessages::SendResurrect(Entity* entity) {
|
||||
if (levelComponent) {
|
||||
int32_t healthToRestore = levelComponent->GetLevel() >= 45 ? 8 : 4;
|
||||
if (healthToRestore > destroyableComponent->GetMaxHealth()) healthToRestore = destroyableComponent->GetMaxHealth();
|
||||
destroyableComponent->SetHealth(healthToRestore);
|
||||
destroyableComponent->SetHealth(destroyableComponent->GetMaxHealth());
|
||||
|
||||
int32_t imaginationToRestore = levelComponent->GetLevel() >= 45 ? 20 : 6;
|
||||
if (imaginationToRestore > destroyableComponent->GetMaxImagination()) imaginationToRestore = destroyableComponent->GetMaxImagination();
|
||||
|
||||
Reference in New Issue
Block a user