examining the altar of gods as a ghost shows you some info (#59192)

This commit is contained in:
Fikou
2021-05-20 21:50:25 -07:00
committed by GitHub
parent 58c8d1f670
commit bf21e80b66
2 changed files with 24 additions and 1 deletions
-1
View File
@@ -2,7 +2,6 @@
GLOBAL_VAR(religion)
GLOBAL_VAR(deity)
GLOBAL_DATUM(religious_sect, /datum/religion_sect)
GLOBAL_VAR(favor)
//bible
GLOBAL_VAR(bible_name)
@@ -40,6 +40,21 @@
pushed_mob.forceMove(loc)
return ..()
/obj/structure/altar_of_gods/examine_more(mob/user)
if(!isobserver(user))
return ..()
. = list("<span class='notice'><i>You examine [src] closer, and note the following...</i></span>")
if(GLOB.religion)
. += list("<span class='notice'>Deity: [GLOB.deity].</span>")
. += list("<span class='notice'>Religion: [GLOB.religion].</span>")
. += list("<span class='notice'>Bible: [GLOB.bible_name].</span>")
if(GLOB.religious_sect)
. += list("<span class='notice'>Sect: [GLOB.religious_sect].</span>")
. += list("<span class='notice'>Favor: [GLOB.religious_sect.favor].</span>")
var/chaplains = get_chaplains()
if(isAdminObserver(user) && chaplains)
. += list("<span class='notice'>Chaplains: [chaplains].</span>")
/obj/structure/altar_of_gods/proc/reflect_sect_in_icons()
if(GLOB.religious_sect)
sect_to_altar = GLOB.religious_sect
@@ -49,6 +64,15 @@
icon_state = sect_to_altar.altar_icon_state
update_appearance() //Light the candles!
/obj/structure/altar_of_gods/proc/get_chaplains()
var/chaplain_string = ""
for(var/mob/living/carbon/human/potential_chap in GLOB.player_list)
if(potential_chap.key && potential_chap.mind?.assigned_role == "Chaplain")
if(chaplain_string)
chaplain_string += ", "
chaplain_string += "[potential_chap] ([potential_chap.key])"
return chaplain_string
/obj/item/ritual_totem
name = "ritual totem"
desc = "A wooden totem with strange carvings on it."