Skip to content

Commit

Permalink
Gives candles a new animation (tgstation#58881)
Browse files Browse the repository at this point in the history
Gives burning candles and altar candles a more fluid and good-looking animation.
  • Loading branch information
Greniza authored May 6, 2021
1 parent 8bfecd2 commit e65acbf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions code/modules/religion/religion_structures.dm
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
. = ..()
AddComponent(/datum/component/religious_tool, ALL, FALSE, CALLBACK(src, .proc/reflect_sect_in_icons))

/obj/structure/altar_of_gods/update_overlays()
. = ..()
if(icon_state == initial(icon_state))
return
. += "convertaltarcandle"

/obj/structure/altar_of_gods/attack_hand(mob/living/user, list/modifiers)
if(!Adjacent(user) || !user.pulling)
return ..()
Expand All @@ -43,6 +49,7 @@
icon = sect_to_altar.altar_icon
if(sect_to_altar.altar_icon_state)
icon_state = sect_to_altar.altar_icon_state
update_appearance() //Light the candles!

/obj/item/ritual_totem
name = "ritual totem"
Expand Down
Binary file modified icons/obj/candle.dmi
Binary file not shown.
Binary file modified icons/obj/hand_of_god_structures.dmi
Binary file not shown.

0 comments on commit e65acbf

Please sign in to comment.