Files
Bubberstation/code/_onclick
SkyratBot 6a8b418812 [MIRROR] Improvements for can_perform_action() (#28262)
* Improvements for `can_perform_action()` (#84006)

## About The Pull Request
The proc `can_perform_action()` now
- Accepts atoms & not just movables without runtiming. Fixes #83985
- It now uses `CanReach()` instead of `Adjacent()`. Allows you to
  - Check if the target object is placed on top & not hidden
  - Is the object inside another storage atom & such
- Properly checks for recursive locs. Before we were passing the direct
atom & not the type to `recursive_loc_check()` causing this proc to
always return true & giving us false positives. Now this proc has been
adjusted to accept both type paths & real atoms
- Removes `can_perform_turf_action()` since its now obsolete

## Changelog
🆑
fix: no more runtimes when dragging turfs onto other stuff
code: most actions now properly check for recursive locs & better
adjacency
/🆑

* Improvements for `can_perform_action()`

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
2024-06-20 10:56:42 +05:30
..
2024-05-20 06:24:55 -04:00
2024-06-15 18:29:40 +01:00
2024-04-28 22:24:01 +02:00
2024-04-28 22:24:01 +02:00