diff --git a/Core/Goals/ConsumeCorpseGoal.cs b/Core/Goals/ConsumeCorpseGoal.cs index 25d32eaf..3fabbd01 100644 --- a/Core/Goals/ConsumeCorpseGoal.cs +++ b/Core/Goals/ConsumeCorpseGoal.cs @@ -23,11 +23,9 @@ public ConsumeCorpseGoal(ILogger logger, { AddPrecondition(GoapKey.consumablecorpsenearby, true); } - else - { - AddPrecondition(GoapKey.damagedone, false); - AddPrecondition(GoapKey.damagetaken, false); - } + AddPrecondition(GoapKey.pulled, false); + AddPrecondition(GoapKey.dangercombat, false); + AddPrecondition(GoapKey.incombat, false); AddPrecondition(GoapKey.producedcorpse, true); AddPrecondition(GoapKey.consumecorpse, false); diff --git a/Core/Goals/CorpseConsumedGoal.cs b/Core/Goals/CorpseConsumedGoal.cs index cdfe1bde..ff39e82a 100644 --- a/Core/Goals/CorpseConsumedGoal.cs +++ b/Core/Goals/CorpseConsumedGoal.cs @@ -30,11 +30,9 @@ public CorpseConsumedGoal(ILogger logger, { AddPrecondition(GoapKey.consumablecorpsenearby, true); } - else - { - AddPrecondition(GoapKey.damagedone, false); - AddPrecondition(GoapKey.damagetaken, false); - } + AddPrecondition(GoapKey.pulled, false); + AddPrecondition(GoapKey.dangercombat, false); + AddPrecondition(GoapKey.incombat, false); AddPrecondition(GoapKey.consumecorpse, true); @@ -70,4 +68,4 @@ public override void OnEnter() Level = LogLevel.Information, Message = "Total: {total} | Remaining: {remains}")] static partial void LogConsumed(ILogger logger, int total, int remains); -} \ No newline at end of file +}