mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Merge commit '179a607a90ad7ec62bdaff4e6fe72af60ee56442' of https://github.com/tgstation/tgstation into upstream-24-10b
This commit is contained in:
@@ -223,7 +223,7 @@
|
||||
for(var/obj/item/part as anything in get_parts())
|
||||
if(part.loc != src)
|
||||
balloon_alert(user, "retract parts first!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, FALSE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, FALSE, SILENCED_SOUND_EXTRARANGE)
|
||||
return FALSE
|
||||
|
||||
/obj/item/mod/control/mouse_drop_dragged(atom/over_object, mob/user)
|
||||
@@ -232,7 +232,7 @@
|
||||
for(var/obj/item/part as anything in get_parts())
|
||||
if(part.loc != src)
|
||||
balloon_alert(wearer, "retract parts first!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, FALSE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, FALSE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
|
||||
// SKYRAT EDIT ADDITION START - Can't remove your MODsuit from your back when it's still active (as it can cause runtimes and even the MODsuit control unit to delete itself)
|
||||
@@ -270,7 +270,7 @@
|
||||
/obj/item/mod/control/screwdriver_act(mob/living/user, obj/item/screwdriver)
|
||||
if(active || activating || ai_controller)
|
||||
balloon_alert(user, "deactivate suit first!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
balloon_alert(user, "[open ? "closing" : "opening"] cover...")
|
||||
screwdriver.play_tool_sound(src, 100)
|
||||
@@ -287,14 +287,14 @@
|
||||
/obj/item/mod/control/crowbar_act(mob/living/user, obj/item/crowbar)
|
||||
if(!open)
|
||||
balloon_alert(user, "open the cover first!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
if(!allowed(user))
|
||||
balloon_alert(user, "insufficient access!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
if(SEND_SIGNAL(src, COMSIG_MOD_MODULE_REMOVAL, user) & MOD_CANCEL_REMOVAL)
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
if(length(modules))
|
||||
var/list/removable_modules = list()
|
||||
@@ -311,25 +311,15 @@
|
||||
SEND_SIGNAL(src, COMSIG_MOD_MODULE_REMOVED, user)
|
||||
return ITEM_INTERACT_SUCCESS
|
||||
balloon_alert(user, "no modules!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
|
||||
/obj/item/mod/control/storage_insert_on_interacted_with(datum/storage, obj/item/inserted, mob/living/user)
|
||||
// Hack. revisit later
|
||||
if(istype(inserted, /obj/item/aicard))
|
||||
var/obj/item/aicard/ai_card = inserted
|
||||
if(ai_card.AI)
|
||||
return FALSE // we want to get an AI assistant, try uploading instead of insertion
|
||||
if(ai_assistant)
|
||||
return FALSE // we already have an AI assistant, try withdrawing instead of insertion
|
||||
return TRUE
|
||||
|
||||
// Makes use of tool act to prevent shoving stuff into our internal storage
|
||||
/obj/item/mod/control/tool_act(mob/living/user, obj/item/tool, list/modifiers)
|
||||
if(istype(tool, /obj/item/pai_card))
|
||||
if(!open)
|
||||
balloon_alert(user, "open the cover first!")
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
return NONE // shoves the card in the storage anyways
|
||||
insert_pai(user, tool)
|
||||
return ITEM_INTERACT_SUCCESS
|
||||
if(istype(tool, /obj/item/mod/paint))
|
||||
@@ -355,7 +345,7 @@
|
||||
if(istype(tool, /obj/item/mod/module))
|
||||
if(!open)
|
||||
balloon_alert(user, "open the cover first!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
install(tool, user)
|
||||
SEND_SIGNAL(src, COMSIG_MOD_MODULE_ADDED, user)
|
||||
@@ -363,11 +353,11 @@
|
||||
if(istype(tool, /obj/item/mod/core))
|
||||
if(!open)
|
||||
balloon_alert(user, "open the cover first!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
if(core)
|
||||
balloon_alert(user, "core already installed!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return ITEM_INTERACT_BLOCKING
|
||||
var/obj/item/mod/core/attacking_core = tool
|
||||
attacking_core.install(src)
|
||||
@@ -569,19 +559,24 @@
|
||||
if(is_type_in_list(new_module, old_module.incompatible_modules) || is_type_in_list(old_module, new_module.incompatible_modules))
|
||||
if(user)
|
||||
balloon_alert(user, "[new_module] incompatible with [old_module]!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
var/complexity_with_module = complexity
|
||||
complexity_with_module += new_module.complexity
|
||||
if(complexity_with_module > complexity_max)
|
||||
if(user)
|
||||
balloon_alert(user, "[new_module] would make [src] too complex!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
if(!new_module.has_required_parts(mod_parts))
|
||||
if(user)
|
||||
balloon_alert(user, "[new_module] incompatible with [src]'s parts!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
if(!new_module.can_install(src))
|
||||
if(user)
|
||||
balloon_alert(user, "[new_module] cannot be installed into [src]!")
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
new_module.forceMove(src)
|
||||
modules += new_module
|
||||
@@ -618,7 +613,7 @@
|
||||
/obj/item/mod/control/proc/update_access(mob/user, obj/item/card/id/card)
|
||||
if(!allowed(user))
|
||||
balloon_alert(user, "insufficient access!")
|
||||
playsound(src, 'sound/machines/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
playsound(src, 'sound/machines/scanner/scanbuzz.ogg', 25, TRUE, SILENCED_SOUND_EXTRARANGE)
|
||||
return
|
||||
req_access = card.access.Copy()
|
||||
balloon_alert(user, "access updated")
|
||||
|
||||
Reference in New Issue
Block a user