mirror of
https://github.com/Squareville/TestEventServer.git
synced 2026-03-12 11:28:34 -05:00
Fix issue with dropship computer
The dropship computer now no longer gives a player a second mission item should they interact with it again after mission completion
This commit is contained in:
@@ -27,12 +27,12 @@ void AmDropshipComputer::OnUse(Entity* self, Entity* user)
|
||||
return;
|
||||
}
|
||||
|
||||
if (inventoryComponent->GetLotCount(12323) != 0)
|
||||
if (inventoryComponent->GetLotCount(m_NexusTalonDataCard) != 0 || missionComponent->GetMission(979)->GetMissionState() == MissionState::MISSION_STATE_COMPLETE)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
inventoryComponent->AddItem(12323, 1, eLootSourceType::LOOT_SOURCE_NONE);
|
||||
inventoryComponent->AddItem(m_NexusTalonDataCard, 1, eLootSourceType::LOOT_SOURCE_NONE);
|
||||
}
|
||||
|
||||
void AmDropshipComputer::OnDie(Entity* self, Entity* killer)
|
||||
|
||||
Reference in New Issue
Block a user