[MIRROR] move the spoiler (#11417)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-14 17:24:30 +02:00
committed by GitHub
co-authored by Kashargul
parent 2f9ea4bf5f
commit 7aba7be802
5 changed files with 19 additions and 8 deletions
+12 -3
View File
@@ -96,20 +96,29 @@
//do pref check here
var/desc_info_temp = A.get_description_info()
if(desc_info_temp)
. += span_details("️ | Information",desc_info_temp)
. += span_details("️ | Information", desc_info_temp)
var/fluff_info_temp = A.get_description_fluff()
if(fluff_info_temp && fluff_info_temp != "")
var/title = "🪐 | Flavor Information"
var/examine_text = splittext(fluff_info_temp, "||")
var/index = 0
var/rendered_text = ""
for(var/part in examine_text)
if(index % 2)
rendered_text += span_spoiler("[part]")
else
rendered_text += "[part]"
index++
if(isliving(A)) //ehhh
var/mob/living/B = A
if(B.flavor_text)
title = "🔍 | Flavor Text"
. += span_details(title,fluff_info_temp)
. += span_details(title, rendered_text)
var/is_antagish = antag_check()
var/antag_info_temp = A.get_description_antag()
if(is_antagish && antag_info_temp)
. += span_details("🏴‍☠️ | Antag Information",antag_info_temp)
. += span_details("🏴‍☠️ | Antag Information", antag_info_temp)
var/list/interaction_info = A.get_description_interaction()
if(interaction_info.len > 0)
var/temp = ""