mbkarle / mind-the-fog

Roguelike JavaScript game--mind the fog!
2 stars 1 forks source link

Dog detected as nearby when not following #135

Closed mbkarle closed 6 years ago

mbkarle commented 6 years ago

If the dog is on a different floor near your x and y coords, the inventory will become accessible

akarle commented 6 years ago

On it

akarle commented 6 years ago

Solution was to go from calculating the dist btw the two points to using the already existing loc_facing variable to check if loc_facing.dog_present (this is the new trigger)