mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 14:39:58 +01:00
Most ratvarian text is now passed through text2ratvar() (#19414)
rscadd: Revenant scriptures now announce to all servants and ghosts when used instead of having a visible message. Accidentally fixes some countdown code to be more simple(coiax what the fuck why was that using an overlay) Retcons Inath-neq's name to have a lower-case N, so that the regex for it doesn't need to capitalize it. Redoes the tiny bit of Nzcrentr lore. I might have fixed a bug or two? It's kind of hazy.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
var/displayed_text
|
||||
var/atom/attached_to
|
||||
var/text_color = "#ff0000"
|
||||
color = "#ff0000"
|
||||
var/text_size = 4
|
||||
var/started = FALSE
|
||||
invisibility = INVISIBILITY_OBSERVER
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
/obj/effect/countdown/proc/stop()
|
||||
if(started)
|
||||
overlays.Cut()
|
||||
maptext = null
|
||||
STOP_PROCESSING(SSfastprocess, src)
|
||||
started = FALSE
|
||||
|
||||
@@ -47,15 +47,9 @@
|
||||
displayed_text = new_val
|
||||
|
||||
if(displayed_text)
|
||||
var/image/text_image = new(loc = src)
|
||||
//text_image.maptext = "<font size=[text_size]>[new_val]</font>"
|
||||
text_image.maptext = "<font size = [text_size]>[displayed_text]</font>"
|
||||
text_image.color = text_color
|
||||
|
||||
overlays.Cut()
|
||||
overlays += text_image
|
||||
maptext = "<font size = [text_size]>[displayed_text]</font>"
|
||||
else
|
||||
overlays.Cut()
|
||||
maptext = null
|
||||
|
||||
/obj/effect/countdown/Destroy()
|
||||
attached_to = null
|
||||
@@ -74,7 +68,7 @@
|
||||
|
||||
/obj/effect/countdown/nuclearbomb
|
||||
name = "nuclear bomb countdown"
|
||||
text_color = "#81FF14"
|
||||
color = "#81FF14"
|
||||
|
||||
/obj/effect/countdown/nuclearbomb/get_value()
|
||||
var/obj/machinery/nuclearbomb/N = attached_to
|
||||
@@ -85,7 +79,7 @@
|
||||
|
||||
/obj/effect/countdown/clonepod
|
||||
name = "cloning pod countdown"
|
||||
text_color = "#0C479D"
|
||||
color = "#0C479D"
|
||||
text_size = 1
|
||||
|
||||
/obj/effect/countdown/clonepod/get_value()
|
||||
@@ -99,7 +93,7 @@
|
||||
/obj/effect/countdown/dominator
|
||||
name = "dominator countdown"
|
||||
text_size = 1
|
||||
text_color = "#ff00ff" // Overwritten when the dominator starts
|
||||
color = "#ff00ff" // Overwritten when the dominator starts
|
||||
|
||||
/obj/effect/countdown/dominator/get_value()
|
||||
var/obj/machinery/dominator/D = attached_to
|
||||
@@ -114,7 +108,7 @@
|
||||
/obj/effect/countdown/clockworkgate
|
||||
name = "gateway countdown"
|
||||
text_size = 1
|
||||
text_color = "#BE8700"
|
||||
color = "#BE8700"
|
||||
layer = POINT_LAYER
|
||||
|
||||
/obj/effect/countdown/clockworkgate/get_value()
|
||||
@@ -126,7 +120,7 @@
|
||||
|
||||
/obj/effect/countdown/transformer
|
||||
name = "transformer countdown"
|
||||
text_color = "#4C5866"
|
||||
color = "#4C5866"
|
||||
|
||||
/obj/effect/countdown/transformer/get_value()
|
||||
var/obj/machinery/transformer/T = attached_to
|
||||
|
||||
@@ -181,7 +181,7 @@
|
||||
else if(is_servant_of_ratvar(M) && prob(5))
|
||||
switch(pick("speech", "message", "emote"))
|
||||
if("speech")
|
||||
clockwork_say(M, "...[pick("Ratvar... lbhe yvtug tebjf qnex...", "Jurer ner lbh, znfgr-e?", "Ur yvrf ehfgv'at va Reebe...", "Chetr nyy hagehguf-naq... naq... fbzrguv'at...")]")
|
||||
clockwork_say(M, "...[text2ratvar(pick("Engine... your light grows dark...", "Where are you, master?", "He lies rusting in Error...", "Purge all untruths and... and... something..."))]")
|
||||
if("message")
|
||||
M << "<span class='boldwarning'>[pick("Ratvar's illumination of your mind has begun to flicker", "He lies rusting in Reebe, derelict and forgotten. And there he shall stay", \
|
||||
"You can't save him. Nothing can save him now", "It seems that Nar-Sie will triumph after all")].</span>"
|
||||
|
||||
Reference in New Issue
Block a user