Change the admin message for prays to only show the deity if it's a chaplain/cultist (#20562)

* Change the deity to only appear if the pray comes from a chaplain

* Actually declares the var
This commit is contained in:
Leo
2016-09-18 08:32:54 -03:00
committed by oranges
parent 186d852bc5
commit a2d2c33f19
+4 -4
View File
@@ -20,13 +20,13 @@
var/image/cross = image('icons/obj/storage.dmi',"bible")
var/font_color = "purple"
var/prayer_type = "PRAYER"
var/deity = "Space Jesus" // y'all need space jesus by default
if (ticker && ticker.Bible_deity_name)
deity = ticker.Bible_deity_name
var/deity
if(usr.job == "Chaplain")
cross = image('icons/obj/storage.dmi',"kingyellow")
font_color = "blue"
prayer_type = "CHAPLAIN PRAYER"
if (ticker && ticker.Bible_deity_name)
deity = ticker.Bible_deity_name
else if(iscultist(usr))
cross = image('icons/obj/storage.dmi',"tome")
font_color = "red"
@@ -34,7 +34,7 @@
deity = "Nar-Sie"
msg = "<span class='adminnotice'>\icon[cross] \
<b><font color=[font_color]>[prayer_type] (to [deity]): </font>\
<b><font color=[font_color]>[prayer_type][deity ? " (to [deity])" : ""]: </font>\
[ADMIN_FULLMONTY(src)] [ADMIN_SC(src)]:</b> \
[msg]</span>"