Skip to content

Commit

Permalink
[MIRROR] Fixes a glassblowing runtime (#4763)
Browse files Browse the repository at this point in the history
* Fixes a glassblowing runtime (#4060)

* [MIRROR] Fixes a glassblowing runtime

---------

Co-authored-by: Bloop <[email protected]>
Co-authored-by: StealsThePRs <[email protected]>
  • Loading branch information
3 people authored Jul 28, 2024
1 parent f8209f5 commit 550067d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions modular_nova/modules/primitive_production/code/glassblowing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@

/obj/item/glassblowing/molten_glass/examine(mob/user)
. = ..()
. += get_examine_message(src)
var/message = get_examine_message(src)
if(message)
. += message

/obj/item/glassblowing/molten_glass/pickup(mob/living/user)
if(!istype(user))
Expand Down Expand Up @@ -116,7 +118,9 @@
var/obj/item/glassblowing/molten_glass/glass = glass_ref.resolve()
if(!glass)
return
. += get_examine_message(glass)
var/message = get_examine_message(glass)
if(message)
. += message


/**
Expand All @@ -132,6 +136,8 @@
/obj/item/glassblowing/proc/get_examine_message(obj/item/glassblowing/molten_glass/glass)
if(COOLDOWN_FINISHED(glass, remaining_heat))
. += span_warning("The glass has cooled down and will require reheating to modify! ")
if(!length(glass.steps_remaining))
return
if(glass.steps_remaining[STEP_BLOW])
. += "The glass requires [glass.steps_remaining[STEP_BLOW]] more blowing actions! "
if(glass.steps_remaining[STEP_SPIN])
Expand Down

0 comments on commit 550067d

Please sign in to comment.