mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Adds an extra malf AI ability: Remote emagging. Also tidies up emag code and coverts a lot of things to balloon alerts (#76669)
## About The Pull Request New malf AI upgrade Remote safety overrides: Mid-cost, Mid-supply. Allows the AI to remotely emag things it can see and can access. 1. Very useful for psychological warfare (Emagging APCs to throw the crew off their trail) 2. Logically makes sense - why, of all things, can the AI not emag anything when it's fundumentally integrated with the station's electronics? 3. Generally speaking can only access things that make sense for it to access - it cannot emag ethereals, sadly In order for this to work, emag_act now returns a boolean, designating if the emag had any effect. While I was in there, I also added args to every single emag_act I could find and added far more feedback/converted a lot of things to balloon alerts to allow the AI to see if its emag had any effect. ## Why It's Good For The Game It just makes sense that the AI, the most electronically-sensitive entity in the game, would be able to emag things. Plus, more options given to malf that aren't strictly MURDER KILL MURDER are always a plus, especially if they allow for fancier plays. ## Changelog 🆑 add: New malf ability: Remote safety overrides. Allows the AI to remotely emag things it has access to. code: emag_act() now returns a boolean designating it's success in emagging code: All instances of emag_act() now have the proper arguments qol: Most usecases of emagging now have some kind of feedback, and existing feedback has been sanity checked and converted to balloon alerts. /🆑
This commit is contained in:
@@ -104,14 +104,17 @@ GLOBAL_VAR_INIT(nt_fax_department, pick("NT HR Department", "NT Legal Department
|
||||
* Emag the device if the panel is open.
|
||||
* Emag does not bring you into the syndicate network, but makes it visible to you.
|
||||
*/
|
||||
/obj/machinery/fax/emag_act(mob/user)
|
||||
/obj/machinery/fax/emag_act(mob/user, obj/item/card/emag/emag_card)
|
||||
if (!panel_open && !allow_exotic_faxes)
|
||||
balloon_alert(user, "open panel first!")
|
||||
return
|
||||
return FALSE
|
||||
if (!(obj_flags & EMAGGED))
|
||||
obj_flags |= EMAGGED
|
||||
playsound(src, 'sound/creatures/dog/growl2.ogg', 50, FALSE)
|
||||
balloon_alert(user, "migrated to syndienet 2.0")
|
||||
to_chat(user, span_warning("An image appears on [src] screen for a moment with Ian in the cap of a Syndicate officer."))
|
||||
return TRUE
|
||||
return FALSE
|
||||
|
||||
/obj/machinery/fax/wrench_act(mob/living/user, obj/item/tool)
|
||||
. = ..()
|
||||
|
||||
@@ -58,10 +58,10 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/ticket_machine, 32)
|
||||
to_chat(user, span_notice("You store linkage information in [I]'s buffer."))
|
||||
return TRUE
|
||||
|
||||
/obj/machinery/ticket_machine/emag_act(mob/user) //Emag the ticket machine to dispense burning tickets, as well as randomize its number to destroy the HoP's mind.
|
||||
/obj/machinery/ticket_machine/emag_act(mob/user, obj/item/card/emag/emag_card) //Emag the ticket machine to dispense burning tickets, as well as randomize its number to destroy the HoP's mind.
|
||||
if(obj_flags & EMAGGED)
|
||||
return
|
||||
to_chat(user, span_warning("You overload [src]'s bureaucratic logic circuitry to its MAXIMUM setting."))
|
||||
return FALSE
|
||||
balloon_alert(user, "bureaucratic nightmare engaged")
|
||||
ticket_number = rand(0,max_number)
|
||||
current_number = ticket_number
|
||||
obj_flags |= EMAGGED
|
||||
@@ -71,6 +71,7 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/ticket_machine, 32)
|
||||
qdel(ticket)
|
||||
tickets.Cut()
|
||||
update_appearance()
|
||||
return TRUE
|
||||
|
||||
/obj/item/wallframe/ticket_machine
|
||||
name = "ticket machine frame"
|
||||
|
||||
Reference in New Issue
Block a user