mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +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:
@@ -399,19 +399,23 @@ GLOBAL_LIST_INIT(typecache_holodeck_linked_floorcheck_ok, typecacheof(list(/turf
|
||||
for(var/obj/effect/holodeck_effect/holo_effect as anything in effects)
|
||||
holo_effect.safety(nerf_this)
|
||||
|
||||
/obj/machinery/computer/holodeck/emag_act(mob/user)
|
||||
/obj/machinery/computer/holodeck/emag_act(mob/user, obj/item/card/emag/emag_card)
|
||||
if(obj_flags & EMAGGED)
|
||||
return
|
||||
return FALSE
|
||||
if(!LAZYLEN(emag_programs))
|
||||
to_chat(user, "[src] does not seem to have a card swipe port. It must be an inferior model.")
|
||||
return
|
||||
balloon_alert(user, "no card swipe port!")
|
||||
return FALSE
|
||||
playsound(src, SFX_SPARKS, 75, TRUE)
|
||||
obj_flags |= EMAGGED
|
||||
to_chat(user, span_warning("You vastly increase projector power and override the safety and security protocols."))
|
||||
if (user)
|
||||
balloon_alert(user, "safety protocols destroyed") // im gonna keep this once since this perfectly describes it, and the to_chat is just flavor
|
||||
to_chat(user, span_warning("You vastly increase projector power and override the safety and security protocols."))
|
||||
user.log_message("emagged the Holodeck Control Console.", LOG_GAME)
|
||||
message_admins("[ADMIN_LOOKUPFLW(user)] emagged the Holodeck Control Console.")
|
||||
|
||||
say("Warning. Automatic shutoff and derezzing protocols have been corrupted. Please call Nanotrasen maintenance and do not use the simulator.")
|
||||
user.log_message("emagged the Holodeck Control Console.", LOG_GAME)
|
||||
message_admins("[ADMIN_LOOKUPFLW(user)] emagged the Holodeck Control Console.")
|
||||
nerf(!(obj_flags & EMAGGED),FALSE)
|
||||
return TRUE
|
||||
|
||||
/obj/machinery/computer/holodeck/emp_act(severity)
|
||||
. = ..()
|
||||
|
||||
Reference in New Issue
Block a user