mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
You can install B.O.R.I.S. in circuits with MMI components (+other MMI component changes) (#92002)
## About The Pull Request This PR adds the ability to install a B.O.R.I.S. in a circuit that contains an MMI component. These circuits can then be remotely connected to by an AI by clicking on them or anything they are inside of. To indicate that a circuit allows remote AI connection, an indicator is given to the circuit and anything containing it. Additionally: - Refactors the MMI component to use `item_interaction`, since it was pertinent. - You cannot insert an MMI/B.O.R.I.S. into a locked circuit. - You can no longer hotswap MMIs/B.O.R.I.S.es - you must manually eject the inserted one. Let me know what changelog labels I should use for the hotswap removal and the prevention of insertion into locked circuits. ## Why It's Good For The Game If you can put an MMI or posibrain in a circuit, why not allow an AI to use it using a B.O.R.I.S.? ## Changelog 🆑 add: B.O.R.I.S.es can be installed inside of integrated circuits with MMI components, allowing an AI to remotely interface with them the same way an MMI or posibrain could. refactor: The MMI component now uses item interaction behavior for inserting MMIs/B.O.R.I.S.es. /🆑 --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -141,7 +141,7 @@
|
||||
wipe_ai()
|
||||
. = TRUE
|
||||
if("wireless")
|
||||
AI.control_disabled = !AI.control_disabled
|
||||
AI.set_control_disabled(!AI.control_disabled)
|
||||
to_chat(AI, span_warning("[src]'s wireless port has been [AI.control_disabled ? "disabled" : "enabled"]!"))
|
||||
. = TRUE
|
||||
if("radio")
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
capture_ai(new_ai, user)
|
||||
var/obj/structure/ai_core/deactivated/detritus = locate() in get_turf(src)
|
||||
qdel(detritus)
|
||||
AI.control_disabled = FALSE
|
||||
AI.set_control_disabled(FALSE)
|
||||
AI.radio_enabled = TRUE
|
||||
do_sparks(4, TRUE, src)
|
||||
playsound(src, 'sound/machines/chime.ogg', 25, TRUE)
|
||||
|
||||
Reference in New Issue
Block a user