mirror of
https://github.com/Ed94/Cog.git
synced 2026-08-01 12:18:15 +00:00
Fix bad refactor
This commit is contained in:
@@ -2,53 +2,53 @@ using UnrealBuildTool;
|
|||||||
|
|
||||||
public class CogEngine : ModuleRules
|
public class CogEngine : ModuleRules
|
||||||
{
|
{
|
||||||
public CogEngine(ReadOnlyTargetRules Target) : base(Target)
|
public CogEngine(ReadOnlyTargetRules Target) : base(Target)
|
||||||
{
|
{
|
||||||
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
|
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||||
|
|
||||||
PublicIncludePaths.AddRange(
|
PublicIncludePaths.AddRange(
|
||||||
new string[]
|
new string[]
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
PrivateIncludePaths.AddRange(
|
PrivateIncludePaths.AddRange(
|
||||||
new string[]
|
new string[]
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
PublicDependencyModuleNames.AddRange(
|
PublicDependencyModuleNames.AddRange(
|
||||||
new string[]
|
new string[]
|
||||||
{
|
{
|
||||||
"CogDebug",
|
"CogDebug",
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
PrivateDependencyModuleNames.AddRange(
|
PrivateDependencyModuleNames.AddRange(
|
||||||
new string[]
|
new string[]
|
||||||
{
|
{
|
||||||
"CogCommon",
|
"CogCommon",
|
||||||
"CogImgui",
|
"CogImgui",
|
||||||
"CogWindow",
|
"CogWindow",
|
||||||
"Core",
|
"Core",
|
||||||
"CoreUObject",
|
"CoreUObject",
|
||||||
"Engine",
|
"Engine",
|
||||||
"InputCore",
|
"InputCore",
|
||||||
"NetCore",
|
"NetCore",
|
||||||
"Slate",
|
"Slate",
|
||||||
"SlateCore",
|
"SlateCore",
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
DynamicallyLoadedModuleNames.AddRange(
|
DynamicallyLoadedModuleNames.AddRange(
|
||||||
new string[]
|
new string[]
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ void FCogEngineWindow_Plots::RenderMenu()
|
|||||||
{
|
{
|
||||||
if (ImGui::BeginMenu("Options"))
|
if (ImGui::BeginMenu("Options"))
|
||||||
{
|
{
|
||||||
if (ImGui::MenuItem("Clear Settings"))
|
if (ImGui::MenuItem("Clear Data"))
|
||||||
{
|
{
|
||||||
FCogDebugPlot::Clear();
|
FCogDebugPlot::Clear();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -677,7 +677,7 @@ void ACogSampleCharacter::OnGhostTagNewOrRemoved(const FGameplayTag InTag, int32
|
|||||||
void ACogSampleCharacter::OnScaleAttributeChanged(const FOnAttributeChangeData& Data)
|
void ACogSampleCharacter::OnScaleAttributeChanged(const FOnAttributeChangeData& Data)
|
||||||
{
|
{
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
// 'Settings.NewValue' is not used because it seems to only corresponds to the changes
|
// 'Data.NewValue' is not used because it seems to only corresponds to the changes
|
||||||
// of the BaseValue which do not account for the temporary modifiers.
|
// of the BaseValue which do not account for the temporary modifiers.
|
||||||
//----------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -197,8 +197,8 @@ bool UCogSampleGameplayAbility::IsCostGameplayEffectIsZero(const UGameplayEffect
|
|||||||
const float CostValue = ModSpec.GetEvaluatedMagnitude();
|
const float CostValue = ModSpec.GetEvaluatedMagnitude();
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------
|
||||||
// The Cost in the Settings is positive, but UCogSampleModifierCalculation_Cost negates it.
|
// The Cost in the Data is positive, but UCogSampleModifierCalculation_Cost negates it.
|
||||||
// Therefore a cost less than zero is an actual cost, and a cost of 0 or greater can be ignored
|
// Therefore, a cost less than zero is an actual cost, and a cost of 0 or greater can be ignored
|
||||||
//----------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------
|
||||||
if (CostValue < 0)
|
if (CostValue < 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user