forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cyborg inventory runtime fix. (tgstation#53741)
Following the cyborg inventory refactor, code changed a bit. Cyborg inventory screens are inited in the HUD, however AI Shells don't generate a HUD until an AI assumes direct control. Damaging an AI shell before the AI created a HUD in it would cause runtimes as modules disabled and enabled. To remedy this, we now initialize the core inventory slots on the robit Init() and then update them as necessary in the HUD code later on if an AI ever deigns to grace your shell with their exalted presence instead of asking for it and then never using it.
- Loading branch information
1 parent
115354b
commit b8ce0aa
Showing
2 changed files
with
36 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters