mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
a lot
fix 1.11 replication, fix some ltm specific stuff, start on shadow stones, fix some events not having foundations, fix s4-s6 gadgets, fix clear inventory on some versions
This commit is contained in:
@@ -2,6 +2,14 @@
|
||||
|
||||
#include "FortItemDefinition.h"
|
||||
|
||||
enum class EWorldItemDropBehavior : uint8_t
|
||||
{
|
||||
DropAsPickup = 0,
|
||||
DestroyOnDrop = 1,
|
||||
DropAsPickupDestroyOnEmpty = 2,
|
||||
EWorldItemDropBehavior_MAX = 3
|
||||
};
|
||||
|
||||
class UFortWorldItemDefinition : public UFortItemDefinition
|
||||
{
|
||||
public:
|
||||
@@ -12,6 +20,12 @@ public:
|
||||
return ReadBitfieldValue(bCanBeDroppedOffset, bCanBeDroppedFieldMask);
|
||||
}
|
||||
|
||||
EWorldItemDropBehavior& GetDropBehavior()
|
||||
{
|
||||
static auto DropBehaviorOffset = GetOffset("DropBehavior");
|
||||
return Get<EWorldItemDropBehavior>(DropBehaviorOffset);
|
||||
}
|
||||
|
||||
bool ShouldDropOnDeath()
|
||||
{
|
||||
static auto bDropOnDeathOffset = GetOffset("bDropOnDeath");
|
||||
|
||||
Reference in New Issue
Block a user