Skip to content

Commit cf37039

Browse files
authored
CorpseConsumedGoal make damagedone or damagetaken is false
1 parent af209c9 commit cf37039

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Core/Goals/CorpseConsumedGoal.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,8 @@ public CorpseConsumedGoal(ILogger<CorpseConsumedGoal> logger,
3030
{
3131
AddPrecondition(GoapKey.consumablecorpsenearby, true);
3232
}
33-
else
34-
{
35-
AddPrecondition(GoapKey.damagedone, false);
36-
AddPrecondition(GoapKey.damagetaken, false);
37-
}
33+
AddPrecondition(GoapKey.damagedone, false);
34+
AddPrecondition(GoapKey.damagetaken, false);
3835

3936
AddPrecondition(GoapKey.consumecorpse, true);
4037

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

0 commit comments

Comments
 (0)