Files
Bubberstation/lua
Lucy 133a5d8dbc Add some more lua helpers (and fix one) (#90316)
## About The Pull Request

I added new helpers to the default SS13 lua library: `SS13.ispath`,
`SS13.typecacheof`, `SS13.is_type_in_typecache`, `SS13.get_turf`, and
`SS13.get_area`, which pretty much behave like their actual DM
counterparts (albeit `SS13.typecacheof` lets you just input string
typepaths, instead of needing to manually `SS13.type` each one)

In addition, I discovered an issue with `SS13.register_signal`: `not
type(func) == "function"` is the same as `(not type(func)) ==
"function"` - so the proper check is `type(func) ~= "function"`.

## Why It's Good For The Game
## Changelog
🆑
admin: Added some new Lua functions: SS13.ispath, SS13.typecacheof,
SS13.is_type_in_typecache, SS13.get_turf, and SS13.get_area
fix: Fixed a broken check in the SS13.register_signal Lua function.
/🆑
2025-03-30 14:38:48 +00:00
..