diff --git a/code/_globalvars/religion.dm b/code/_globalvars/religion.dm index 988d55d777e..7b285a16d37 100644 --- a/code/_globalvars/religion.dm +++ b/code/_globalvars/religion.dm @@ -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) diff --git a/code/modules/religion/religion_structures.dm b/code/modules/religion/religion_structures.dm index cde8cddc64a..d1646fd2def 100644 --- a/code/modules/religion/religion_structures.dm +++ b/code/modules/religion/religion_structures.dm @@ -40,6 +40,21 @@ pushed_mob.forceMove(loc) return ..() +/obj/structure/altar_of_gods/examine_more(mob/user) + if(!isobserver(user)) + return ..() + . = list("You examine [src] closer, and note the following...") + if(GLOB.religion) + . += list("Deity: [GLOB.deity].") + . += list("Religion: [GLOB.religion].") + . += list("Bible: [GLOB.bible_name].") + if(GLOB.religious_sect) + . += list("Sect: [GLOB.religious_sect].") + . += list("Favor: [GLOB.religious_sect.favor].") + var/chaplains = get_chaplains() + if(isAdminObserver(user) && chaplains) + . += list("Chaplains: [chaplains].") + /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."