Files
Bubberstation/code/_onclick
Lucy 39e58f8b20 Refactor some usages of get_step_towards in loops to use get_steps_to instead (#86020)
## About The Pull Request

BYOND 515 added a new proc called `get_steps_to` - which is basically
`get_step_towards`, but instead it returns a list of directions! Ain't
that nifty and useful? So we can just calculate the path once.

Several helper procs - `can_see`, `CheckToolReach`, and
`get_hearers_in_LOS`, use `get_step_towards` in a loop, so I've
refactored them to just calculate the path once using `get_steps_to`,
and then loop through the returned path of directions.

## Why It's Good For The Game

In theory, should micro-optimize performance, by only calculating the
pathfinding once.

## Changelog
🆑
refactor: Refactored some functions related to line-of-sight and reach
to improve performance.
/🆑
2024-09-05 15:43:27 +02:00
..