From 3a5908ca1d831ef70ea7623c058ec8d5a19f6cd0 Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Thu, 8 May 2025 21:52:11 +0200 Subject: [PATCH] soulcatcher patches and tgui core updaste (#17685) --- code/modules/mob/dead/observer/observer_vr.dm | 4 ++-- code/modules/mob/mob.dm | 2 +- code/modules/nifsoft/software/13_soulcatcher.dm | 3 ++- code/modules/vore/eating/soulcatcher.dm | 2 +- code/modules/vore/eating/soulcatcher_mob.dm | 2 +- tgui/packages/tgui-bench/package.json | 2 +- tgui/packages/tgui-panel/package.json | 2 +- .../settings/SettingTabs/SettingsGeneral.tsx | 3 +-- .../SettingTabs/TextHighlightSettings.tsx | 9 +++------ .../tgui-panel/styles/tgchat/chat-dark.scss | 4 ++++ .../tgui-panel/styles/tgchat/chat-light.scss | 4 ++++ tgui/packages/tgui-say/package.json | 2 +- .../interfaces/ColorMate/ColorMateMatrix.tsx | 3 +-- tgui/packages/tgui/interfaces/EntityNarrate.tsx | 3 +-- tgui/packages/tgui/interfaces/LawManager.tsx | 14 ++++---------- .../MessageMonitor/MessageMonitorLogin.tsx | 3 +-- .../MessageMonitor/MessageMonitorTabs.tsx | 9 +++------ tgui/packages/tgui/interfaces/MobSpawner.tsx | 6 ++---- .../Newscaster/NewscasterNewChannel.tsx | 3 +-- .../Newscaster/NewscasterNewWanted.tsx | 6 ++---- tgui/packages/tgui/package.json | 2 +- tgui/yarn.lock | 16 ++++++++-------- 22 files changed, 46 insertions(+), 58 deletions(-) diff --git a/code/modules/mob/dead/observer/observer_vr.dm b/code/modules/mob/dead/observer/observer_vr.dm index 5e78750f7d6..11da02c4d7c 100644 --- a/code/modules/mob/dead/observer/observer_vr.dm +++ b/code/modules/mob/dead/observer/observer_vr.dm @@ -36,13 +36,13 @@ var/req_time = world.time nif.notify("Transient mindstate detected, analyzing...") sleep(15) //So if they are typing they get interrupted by sound and message, and don't type over the box - var/response = tgui_alert(H,"[src] ([src.key]) wants to join into your Soulcatcher.","Soulcatcher Request",list("Deny","Allow")) + var/response = tgui_alert(H,"[src] ([src.key]) wants to join into your Soulcatcher.","Soulcatcher Request",list("Deny","Allow"), timeout = 1 MINUTE) if(!response || response == "Deny") to_chat(src,span_warning("[H] denied your request.")) return - if((world.time - req_time) > 1 MINUTES) + if((world.time - req_time) > 1 MINUTE) to_chat(H,span_warning("The request had already expired. (1 minute waiting max)")) return diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 633c024fb6b..702ef243b89 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -14,7 +14,7 @@ if(mind && mind.current == src) spellremove(src) if(!istype(src,/mob/observer)) - ghostize() + ghostize(FALSE) QDEL_NULL(soulgem) //Soulcatcher QDEL_NULL(dna) QDEL_NULL(plane_holder) diff --git a/code/modules/nifsoft/software/13_soulcatcher.dm b/code/modules/nifsoft/software/13_soulcatcher.dm index d89ef0d789e..64bd0dc5c75 100644 --- a/code/modules/nifsoft/software/13_soulcatcher.dm +++ b/code/modules/nifsoft/software/13_soulcatcher.dm @@ -228,7 +228,7 @@ //Complex version for catching in-round characters /datum/nifsoft/soulcatcher/proc/catch_mob(var/mob/M) if(!M.mind) return - if(!(M.soulcatcher_pref_flags & SOULCATCHER_ALLOW_CAPTURE)) return + if(!(M.soulcatcher_pref_flags & SOULCATCHER_ALLOW_CAPTURE) && !isobserver(M)) return // Bypass pref check for observer join //Create a new brain mob var/mob/living/carbon/brain/caught_soul/brainmob = new(nif) @@ -425,6 +425,7 @@ /////////////////// //A projected AR soul thing /mob/observer/eye/ar_soul + invisibility = 0 plane = PLANE_AUGMENTED icon = 'icons/obj/machines/ar_elements.dmi' icon_state = "beacon" diff --git a/code/modules/vore/eating/soulcatcher.dm b/code/modules/vore/eating/soulcatcher.dm index 9fe9cdb5e84..f81c9a29ffb 100644 --- a/code/modules/vore/eating/soulcatcher.dm +++ b/code/modules/vore/eating/soulcatcher.dm @@ -35,7 +35,6 @@ . = ..() if(ismob(loc)) owner = loc - owner.recalculate_vis() // Store the vars_to_save into the save file /obj/soulgem/deserialize(list/data) @@ -43,6 +42,7 @@ if(apply_stored_belly(data["linked_belly"], TRUE)) return linked_belly = null + owner.recalculate_vis() /obj/soulgem/proc/apply_stored_belly(var/belly_string, var/skip_unreg = FALSE) for(var/obj/belly in owner.vore_organs) diff --git a/code/modules/vore/eating/soulcatcher_mob.dm b/code/modules/vore/eating/soulcatcher_mob.dm index 5929192c0b2..116680a92fa 100644 --- a/code/modules/vore/eating/soulcatcher_mob.dm +++ b/code/modules/vore/eating/soulcatcher_mob.dm @@ -156,7 +156,7 @@ return if(!(gem.setting_flags & NIF_SC_PROJECTING)) - to_chat(src, span_warning("Projecting from this NIF has been disabled!")) + to_chat(src, span_warning("Projecting from this soulcatcher has been disabled!")) return if(!client || !client.prefs) diff --git a/tgui/packages/tgui-bench/package.json b/tgui/packages/tgui-bench/package.json index b4cf4e9e654..8e5eadcbe99 100644 --- a/tgui/packages/tgui-bench/package.json +++ b/tgui/packages/tgui-bench/package.json @@ -11,7 +11,7 @@ "react": "^19.1.0", "react-dom": "^19.1.0", "tgui": "workspace:*", - "tgui-core": "^3.1.3" + "tgui-core": "^3.1.4" }, "devDependencies": { "@types/react": "^19.1.0", diff --git a/tgui/packages/tgui-panel/package.json b/tgui/packages/tgui-panel/package.json index 8ac289002a9..d014f0a2b3d 100644 --- a/tgui/packages/tgui-panel/package.json +++ b/tgui/packages/tgui-panel/package.json @@ -8,7 +8,7 @@ "react": "^19.1.0", "react-dom": "^19.1.0", "tgui": "workspace:*", - "tgui-core": "^3.1.3", + "tgui-core": "^3.1.4", "tgui-dev-server": "workspace:*" }, "devDependencies": { diff --git a/tgui/packages/tgui-panel/settings/SettingTabs/SettingsGeneral.tsx b/tgui/packages/tgui-panel/settings/SettingTabs/SettingsGeneral.tsx index 30876e73c89..91e547aad65 100644 --- a/tgui/packages/tgui-panel/settings/SettingTabs/SettingsGeneral.tsx +++ b/tgui/packages/tgui-panel/settings/SettingTabs/SettingsGeneral.tsx @@ -183,12 +183,11 @@ export const SettingsGeneral = (props) => { + onBlur={(value) => dispatch( updateSettings({ interleaveColor: value, diff --git a/tgui/packages/tgui-panel/settings/SettingTabs/TextHighlightSettings.tsx b/tgui/packages/tgui-panel/settings/SettingTabs/TextHighlightSettings.tsx index 51e21634521..9c90f80c8a5 100644 --- a/tgui/packages/tgui-panel/settings/SettingTabs/TextHighlightSettings.tsx +++ b/tgui/packages/tgui-panel/settings/SettingTabs/TextHighlightSettings.tsx @@ -165,12 +165,11 @@ const TextHighlightSetting = (props) => { + onBlur={(value) => dispatch( updateHighlightSetting({ id: id, @@ -183,11 +182,10 @@ const TextHighlightSetting = (props) => {