Skip to content

Commit

Permalink
icon instead of icon path
Browse files Browse the repository at this point in the history
  • Loading branch information
cuddleandtea committed Oct 2, 2023
1 parent 640cd54 commit c5af57c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packs/infinity/machinery/machines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
health_max = 300

/obj/machinery/disposal/small
icon = 'packs/infinity/icons/obj/machinery/disposal_small.dmi'
icon = icon
density = FALSE

/obj/machinery/disposal/small/on_update_icon()
Expand All @@ -35,18 +35,18 @@

// flush handle
if(flush)
AddOverlays(image('packs/infinity/icons/obj/machinery/disposal_small.dmi', "dispover-handle"))
AddOverlays(image(icon, "dispover-handle"))

// only handle is shown if no power
if(!is_powered() || mode == -1)
return

// check for items/vomit in disposal - occupied light
if(length(contents) > LAZYLEN(component_parts) || reagents.total_volume)
AddOverlays(image('packs/infinity/icons/obj/machinery/disposal_small.dmi', "dispover-full"))
AddOverlays(image(icon, "dispover-full"))

// charging and ready light
if(mode == 1)
AddOverlays(image('packs/infinity/icons/obj/machinery/disposal_small.dmi', "dispover-charge"))
AddOverlays(image(icon, "dispover-charge"))
else if(mode == 2)
AddOverlays(image('packs/infinity/icons/obj/machinery/disposal_small.dmi', "dispover-ready"))
AddOverlays(image(icon, "dispover-ready"))

0 comments on commit c5af57c

Please sign in to comment.