Skip to content

Commit

Permalink
Update LootGoal to make sure damagedone and damagetaken is false
Browse files Browse the repository at this point in the history
  • Loading branch information
lionaneesh authored Dec 2, 2024
1 parent 8ea13b9 commit bf229be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/Goals/LootGoal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public LootGoal(ILogger<LootGoal> logger,
this.state = state;

this.token = cts.Token;

AddPrecondition(GoapKey.damagedone, false);
AddPrecondition(GoapKey.damagetaken, false);
AddPrecondition(GoapKey.shouldloot, true);
AddEffect(GoapKey.shouldloot, false);
}
Expand Down

0 comments on commit bf229be

Please sign in to comment.