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