Skip to content

Commit d5a7c52

Browse files
authored
Merge pull request #384 from GEFNENEN/GEFNENEN-patch-1
fix: resolve bug in Complex demo
2 parents af19172 + f232da4 commit d5a7c52

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Demo/Assets/CrashKonijn/GOAP/Demos/Complex/Actions/CreateItemAction.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ public class Data : IActionData
9898
public ComplexInventoryBehaviour Inventory { get; set; }
9999
}
100100
}
101-
}
101+
}

Demo/Assets/CrashKonijn/GOAP/Demos/Complex/Factories/Extensions/ActionExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public static void AddCreateItemAction<T>(this CapabilityBuilder builder, int re
5757
var action = builder.AddAction<CreateItemAction<T>>()
5858
.SetTarget<ClosestTarget<AnvilSource>>()
5959
.AddEffect<CreatedItem<T>>(EffectType.Increase)
60+
.SetValidateConditions(false)
6061
.SetProperties(new CreateItemAction<T>.Props
6162
{
6263
requiredIron = requiredIron,
@@ -70,4 +71,4 @@ public static void AddCreateItemAction<T>(this CapabilityBuilder builder, int re
7071
action.AddCondition<IsHolding<Wood>>(Comparison.GreaterThanOrEqual, requiredWood);
7172
}
7273
}
73-
}
74+
}

0 commit comments

Comments
 (0)