mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-14 03:02:22 +01:00
glorious update
work on rift tour, fix some crash and some bugs, added destroying gadgets when no more uses
This commit is contained in:
@@ -97,7 +97,7 @@ struct FFortGameplayEffectDeliveryInfo
|
||||
{
|
||||
static UStruct* GetStruct()
|
||||
{
|
||||
static auto Struct = FindObject<UStruct>("/Script/FortniteGame.FortGameplayEffectDeliveryInfo");
|
||||
static auto Struct = FindObject<UStruct>(L"/Script/FortniteGame.FortGameplayEffectDeliveryInfo");
|
||||
return Struct;
|
||||
}
|
||||
|
||||
@@ -123,7 +123,7 @@ struct FFortAbilitySetDeliveryInfo
|
||||
{
|
||||
static UStruct* GetStruct()
|
||||
{
|
||||
static auto Struct = FindObject<UStruct>("/Script/FortniteGame.FortAbilitySetDeliveryInfo");
|
||||
static auto Struct = FindObject<UStruct>(L"/Script/FortniteGame.FortAbilitySetDeliveryInfo");
|
||||
return Struct;
|
||||
}
|
||||
|
||||
@@ -165,6 +165,8 @@ public:
|
||||
if (!Actor)
|
||||
return;
|
||||
|
||||
// TODO Use the UAbilitySystemInterface or whatever
|
||||
|
||||
UAbilitySystemComponent* AbilitySystemComponent = nullptr;
|
||||
|
||||
if (auto BuildingActor = Cast<ABuildingActor>(Actor))
|
||||
@@ -230,7 +232,7 @@ public:
|
||||
if (!CurrentGameplayEffect)
|
||||
continue;
|
||||
|
||||
LOG_INFO(LogDev, "Giving GameplayEffect {}", CurrentGameplayEffect->GetFullName());
|
||||
// LOG_INFO(LogDev, "Giving GameplayEffect {}", CurrentGameplayEffect->GetFullName());
|
||||
AbilitySystemComponent->ApplyGameplayEffectToSelf(CurrentGameplayEffect, CurrentGameplayEffectInfo.Level);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user