Skip to content

Commit

Permalink
Fix overlays - 20 10 23
Browse files Browse the repository at this point in the history
  • Loading branch information
DrDuckedGoose committed Oct 20, 2023
1 parent 0634635 commit a376b0b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
//Do after for *flourish*
if(do_after(_user, 3 SECONDS))
//Reset overlays
head.carved_state = "face[rand(0, 8)]"
head.carved_overlay.icon_state = "face[rand(0, 8)]"
M.update_body_parts_head_only()
to_chat(_user, "<span class='notice'>You carve a face into [_source].</span>")
//Adjust the tongue
Expand Down
11 changes: 7 additions & 4 deletions code/modules/surgery/bodyparts/species_parts/misc_bodyparts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -515,13 +515,16 @@
is_dimorphic = FALSE
should_draw_greyscale = FALSE
item_flags = ISCARVABLE
///What state is our carved face
var/carved_state
///Carved overlay
var/image/carved_overlay

/obj/item/bodypart/head/pumpkin_man/Initialize(mapload)
. = ..()
carved_overlay = image('icons/mob/pumpkin_faces.dmi', "blank", -BODY_LAYER)

/obj/item/bodypart/head/pumpkin_man/get_limb_icon(dropped)
. = ..()
if(carved_state)
. += image('icons/mob/pumpkin_faces.dmi', carved_state, -BODY_LAYER)
. += carved_overlay

/obj/item/bodypart/chest/pumpkin_man
limb_id = "pumpkin_man"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/surgery/organs/tongue.dm
Original file line number Diff line number Diff line change
Expand Up @@ -375,5 +375,5 @@
if((message[1] != "*" || message[1] != "#") && !carved)
message = "..."
to_chat(owner, "<span class='warning'>Something is covering your mouth!</span>")
to_chat(owner, "<span class='notice'>Try carving your mouth open.</span>")
to_chat(owner, "<span class='notice'>Try carving your head.</span>")
speech_args[SPEECH_MESSAGE] = message
Binary file modified icons/mob/pumpkin_faces.dmi
Binary file not shown.

0 comments on commit a376b0b

Please sign in to comment.