Merge commit '179a607a90ad7ec62bdaff4e6fe72af60ee56442' of https://github.com/tgstation/tgstation into upstream-24-10b

This commit is contained in:
Majkl-J
2024-10-23 23:27:16 -07:00
4642 changed files with 25352 additions and 14167 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
var/number = length(stored)
picture.picture_name = "Image [number] (taken by [loc.name])"
stored[picture] = TRUE
playsound(src, pick('sound/items/polaroid1.ogg', 'sound/items/polaroid2.ogg'), 75, TRUE, -3)
playsound(src, pick('sound/items/polaroid/polaroid1.ogg', 'sound/items/polaroid/polaroid2.ogg'), 75, TRUE, -3)
balloon_alert(user, "image recorded")
/**
+2 -3
View File
@@ -27,7 +27,6 @@
update_appearance()
SSpai.pai_card_list += src
ADD_TRAIT(src, TRAIT_CASTABLE_LOC, INNATE_TRAIT)
RegisterSignal(src, COMSIG_HIT_BY_SABOTEUR, PROC_REF(on_saboteur))
/obj/item/pai_card/attackby(obj/item/used, mob/user, params)
if(pai && istype(used, /obj/item/encryptionkey))
@@ -71,8 +70,8 @@
emotion_icon = initial(emotion_icon)
update_appearance()
/obj/item/pai_card/proc/on_saboteur(datum/source, disrupt_duration)
SIGNAL_HANDLER
/obj/item/pai_card/on_saboteur(datum/source, disrupt_duration)
. = ..()
if(pai)
return pai.on_saboteur(source, disrupt_duration)
+1 -1
View File
@@ -107,7 +107,7 @@
if(!hacking_cable.hacking_machine)
balloon_alert(src, "nothing connected")
return FALSE
playsound(src, 'sound/machines/airlock_alien_prying.ogg', 50, TRUE)
playsound(src, 'sound/machines/airlock/airlock_alien_prying.ogg', 50, TRUE)
balloon_alert(src, "overriding...")
// Now begin hacking
if(!do_after(src, 15 SECONDS, hacking_cable.hacking_machine, timed_action_flags = NONE, progress = TRUE))
+17 -7
View File
@@ -242,7 +242,11 @@
RegisterSignal(src, COMSIG_LIVING_CULT_SACRIFICED, PROC_REF(on_cult_sacrificed))
RegisterSignals(src, list(COMSIG_LIVING_ADJUST_BRUTE_DAMAGE, COMSIG_LIVING_ADJUST_BURN_DAMAGE), PROC_REF(on_shell_damaged))
RegisterSignal(src, COMSIG_LIVING_ADJUST_STAMINA_DAMAGE, PROC_REF(on_shell_weakened))
RegisterSignal(src, COMSIG_HIT_BY_SABOTEUR, PROC_REF(on_saboteur))
/mob/living/silicon/pai/create_modularInterface()
if(!modularInterface)
modularInterface = new /obj/item/modular_computer/pda/silicon/pai(src)
return ..()
/mob/living/silicon/pai/make_laws()
laws = new /datum/ai_laws/pai()
@@ -263,7 +267,7 @@
return radio.screwdriver_act(user, tool)
/mob/living/silicon/pai/updatehealth()
if(status_flags & GODMODE)
if(HAS_TRAIT(src, TRAIT_GODMODE))
return
set_health(maxHealth - getBruteLoss() - getFireLoss())
update_stat()
@@ -356,11 +360,11 @@
to_chat(src, span_danger("WARN: Holochasis range restrictions disabled."))
return TRUE
/mob/living/silicon/pai/proc/on_saboteur(datum/source, disrupt_duration)
SIGNAL_HANDLER
/mob/living/silicon/pai/on_saboteur(datum/source, disrupt_duration)
. = ..()
set_silence_if_lower(disrupt_duration)
balloon_alert(src, "muted!")
return COMSIG_SABOTEUR_SUCCESS
return TRUE
/**
* Resets the pAI and any emagged status.
@@ -411,7 +415,13 @@
if(!master_ref)
balloon_alert(user, "access denied: no master")
return FALSE
var/new_laws = tgui_input_text(user, "Enter any additional directives you would like your pAI personality to follow. Note that these directives will not override the personality's allegiance to its imprinted master. Conflicting directives will be ignored.", "pAI Directive Configuration", laws.supplied[1], 300)
var/new_laws = tgui_input_text(
user,
"Enter any additional directives you would like your pAI personality to follow. Note that these directives will not override the personality's allegiance to its imprinted master. Conflicting directives will be ignored.",
"pAI Directive Configuration",
laws.supplied[1],
max_length = 300,
)
if(!new_laws || !master_ref)
return FALSE
add_supplied_law(0, new_laws)
@@ -461,7 +471,7 @@
to_chat(src, span_userdanger("Your mental faculties leave you."))
to_chat(src, span_rose("oblivion... "))
balloon_alert(user, "personality wiped")
playsound(src, 'sound/machines/buzz-two.ogg', 30, TRUE)
playsound(src, 'sound/machines/buzz/buzz-two.ogg', 30, TRUE)
qdel(src)
return TRUE