Skip to content

Commit

Permalink
CorpseConsumedGoal make damagedone or damagetaken is false
Browse files Browse the repository at this point in the history
  • Loading branch information
lionaneesh authored Dec 2, 2024
1 parent af209c9 commit cf37039
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Core/Goals/CorpseConsumedGoal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,8 @@ public CorpseConsumedGoal(ILogger<CorpseConsumedGoal> logger,
{
AddPrecondition(GoapKey.consumablecorpsenearby, true);
}
else
{
AddPrecondition(GoapKey.damagedone, false);
AddPrecondition(GoapKey.damagetaken, false);
}
AddPrecondition(GoapKey.damagedone, false);
AddPrecondition(GoapKey.damagetaken, false);

AddPrecondition(GoapKey.consumecorpse, true);

Expand Down Expand Up @@ -70,4 +67,4 @@ public override void OnEnter()
Level = LogLevel.Information,
Message = "Total: {total} | Remaining: {remains}")]
static partial void LogConsumed(ILogger logger, int total, int remains);
}
}

0 comments on commit cf37039

Please sign in to comment.