Skip to content

Commit

Permalink
Use dangercombat for checking if mob is attacking us instead
Browse files Browse the repository at this point in the history
  • Loading branch information
lionaneesh authored Dec 2, 2024
1 parent bf229be commit 303d9f9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Core/Goals/LootGoal.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ public LootGoal(ILogger<LootGoal> logger,
this.state = state;

this.token = cts.Token;
AddPrecondition(GoapKey.damagedone, false);
AddPrecondition(GoapKey.damagetaken, false);
AddPrecondition(GoapKey.dangercombat, false);
AddPrecondition(GoapKey.shouldloot, true);
AddEffect(GoapKey.shouldloot, false);
}
Expand Down

0 comments on commit 303d9f9

Please sign in to comment.