mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-13 18:33:22 +00:00
* Fixes admin "power failure" secret. (#73277) ## About The Pull Request - Fixes "power failure" secret not working. `GLOB.the_station_areas` is a list of types, not list of areas. This `as anything` was causing runtimes, as it was accessing values on types, and not area instances. Swaps it over to use `GLOB.areas` + location check that the areas are on station Z level. - Fixes "power failure" secret having no announcement if no grid check has occurred `GLOB.power_failure_message_cooldown` starts at 0, so it was always lower than `world.time` if an admin uses it when no grid check has occurred. Delving deeper, these should not have been linked whatsoever. The power failure spam prevention is now tied to the grid check event itself. I also don't believe it to be necessary, as we fixed discounts having infinite stock, but I'll keep it just cause. ## Why It's Good For The Game Secrets work as advertised ## Changelog 🆑 Melbert fix: Admins, "All areas unpowered" in the secrets menu will now function again. /🆑 * Fixes admin "power failure" secret. --------- Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>