mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 20:52:01 +00:00 
			
		
		
		
	Merge pull request #593 Fix issue with dropship computer
Fix issue with dropship computer
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)  | ||||
|   | ||||
| @@ -8,4 +8,6 @@ public: | ||||
|     void OnUse(Entity* self, Entity* user) override; | ||||
|     void OnDie(Entity* self, Entity* killer) override; | ||||
|     void OnTimerDone(Entity* self, std::string timerName) override; | ||||
| private: | ||||
|     const LOT m_NexusTalonDataCard = 12323; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 David Markowitz
					David Markowitz