Skip to content

Commit

Permalink
Add ClearArea before Tome Interaction
Browse files Browse the repository at this point in the history
Monsters could get in the way of interacting with the tome or red portal. Added ClearArea to resolve this issue.
  • Loading branch information
braccali1 authored Feb 7, 2025
1 parent f59bd99 commit c805993
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/run/summoner.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ func (s Summoner) Run() error {
tome, _ := s.ctx.Data.Objects.FindOne(object.YetAnotherTome)
action.MoveToCoords(tome.Position)

// Clear around tome and where red portal will spawn, monster can block tome or red portal interaction
action.ClearAreaAroundPlayer(10, s.ctx.Data.MonsterFilterAnyReachable())

// interact with tome to open red portal
action.InteractObject(tome, func() bool {
if _, found := s.ctx.Data.Objects.FindOne(object.PermanentTownPortal); found {
Expand Down

0 comments on commit c805993

Please sign in to comment.