mirror of
				https://github.com/DarkflameUniverse/DarkflameServer.git
				synced 2025-10-31 20:52:01 +00:00 
			
		
		
		
	replace some silly warnings
This commit is contained in:
		| @@ -8,6 +8,8 @@ | ||||
| #define DARKFLAME_PLATFORM_IOS | ||||
| #elif TARGET_OS_MAC | ||||
| #define DARKFLAME_PLATFORM_MACOS | ||||
| #pragma clang diagnostic push // prevent pragma messages being counted as a warning | ||||
| #pragma clang diagnostic ignored "-W#pragma-messages" | ||||
| #else | ||||
| #error unknown Apple operating system | ||||
| #endif | ||||
|   | ||||
| @@ -9,6 +9,7 @@ class AMFArrayValue; | ||||
|  * @brief Sent when a player moves a Behavior A at position B to their inventory.  | ||||
|  */ | ||||
| #pragma message("MoveToInventory.h This Control Behavior Message does not have a test yet. Non-developers can ignore this warning.") | ||||
|  | ||||
| class MoveToInventoryMessage : public BehaviorMessageBase { | ||||
| public: | ||||
| 	MoveToInventoryMessage(const AMFArrayValue& arguments); | ||||
|   | ||||
| @@ -137,7 +137,7 @@ bool Precondition::CheckValue(Entity* player, const uint32_t value, bool evaluat | ||||
|  | ||||
| 		return inventoryComponent->GetLotCount(value) >= count; | ||||
| 	case PreconditionType::DoesNotHaveItem: | ||||
| 		return inventoryComponent->IsEquipped(value) && count > 0; | ||||
| 		return (inventoryComponent->IsEquipped(value) ? 1 : 0) < count; | ||||
| 	case PreconditionType::HasAchievement: | ||||
| 		if (missionComponent == nullptr) return false; | ||||
| 		return missionComponent->GetMissionState(value) >= eMissionState::COMPLETE; | ||||
|   | ||||
| @@ -65,13 +65,13 @@ void RandomSpawnerFin::OnStartup(Entity* self) { | ||||
| 	}; | ||||
|  | ||||
| 	sectionMultipliers = { | ||||
| 		{"secA", 1}, | ||||
| 		{"secB", 1}, | ||||
| 		{"secA", 1.0f}, | ||||
| 		{"secB", 1.0f}, | ||||
| 		{"secC", 1.2f}, | ||||
| 		{"secD", 1.3f}, | ||||
| 		{"secE", 1.6f}, | ||||
| 		{"secF", 1}, | ||||
| 		{"secG", 1}, | ||||
| 		{"secF", 1.0f}, | ||||
| 		{"secG", 1.0f}, | ||||
| 		{"secH", 1.2f}, | ||||
| 	}; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jettford
					Jettford