Skip to content

Commit

Permalink
Update microwave.dm (#1668)
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixRuin authored Feb 11, 2025
1 parent 69106e4 commit 5dcf0fe
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions code/modules/food_and_drinks/kitchen_machinery/microwave.dm
Original file line number Diff line number Diff line change
Expand Up @@ -163,26 +163,26 @@
//BLUEMOON FIX
if(ingredient_count > 90)// don't fuck around with byond overlays for too long, or byond overlays fuck you around.
break
//BLUEMOON FIX
var/image/ingredient_overlay = image(ingredient, src)

var/icon/ingredient_icon = icon(ingredient.icon, ingredient.icon_state)
if(ingredient.icon && ingredient.icon_state)
var/image/ingredient_overlay = image(ingredient, src)

ingredient_overlay.transform = ingredient_overlay.transform.Scale(
MICROWAVE_INGREDIENT_OVERLAY_SIZE / ingredient_icon.Width(),
MICROWAVE_INGREDIENT_OVERLAY_SIZE / ingredient_icon.Height(),
)
var/icon/ingredient_icon = icon(ingredient.icon, ingredient.icon_state)

ingredient_overlay.pixel_y = -4
ingredient_overlay.layer = FLOAT_LAYER
ingredient_overlay.plane = FLOAT_PLANE
ingredient_overlay.blend_mode = BLEND_INSET_OVERLAY
ingredient_overlay.pixel_x = ingredient_shifts[(ingredient_count % ingredient_shifts.len) + 1]
ingredient_overlay.transform = ingredient_overlay.transform.Scale(
MICROWAVE_INGREDIENT_OVERLAY_SIZE / ingredient_icon.Width(),
MICROWAVE_INGREDIENT_OVERLAY_SIZE / ingredient_icon.Height(),
)

ingredient_overlay.pixel_y = -4
ingredient_overlay.layer = FLOAT_LAYER
ingredient_overlay.plane = FLOAT_PLANE
ingredient_overlay.blend_mode = BLEND_INSET_OVERLAY
ingredient_overlay.pixel_x = ingredient_shifts[(ingredient_count % ingredient_shifts.len) + 1]
. += ingredient_overlay
//BLUEMOON FIX
ingredient_count += 1

. += ingredient_overlay

var/border_icon_state
var/door_icon_state

Expand Down

0 comments on commit 5dcf0fe

Please sign in to comment.