mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
Port current /tg/ lighting system
This commit is contained in:
@@ -182,7 +182,7 @@
|
||||
update_icon()
|
||||
|
||||
/obj/item/weapon/reagent_containers/glass/beaker/update_icon()
|
||||
overlays.Cut()
|
||||
cut_overlays()
|
||||
|
||||
if(reagents.total_volume)
|
||||
var/image/filling = image('icons/obj/reagentfillings.dmi', src, "[icon_state]10")
|
||||
@@ -198,11 +198,10 @@
|
||||
if(91 to INFINITY) filling.icon_state = "[icon_state]100"
|
||||
|
||||
filling.color = reagents.get_color()
|
||||
overlays += filling
|
||||
add_overlay(filling)
|
||||
|
||||
if (!is_open_container())
|
||||
var/image/lid = image(icon, src, "lid_[initial(icon_state)]")
|
||||
overlays += lid
|
||||
add_overlay("lid_[initial(icon_state)]")
|
||||
|
||||
/obj/item/weapon/reagent_containers/glass/beaker/large
|
||||
name = "large beaker"
|
||||
@@ -309,10 +308,9 @@
|
||||
return ..()
|
||||
|
||||
/obj/item/weapon/reagent_containers/glass/bucket/update_icon()
|
||||
overlays.Cut()
|
||||
cut_overlays()
|
||||
if (!is_open_container())
|
||||
var/image/lid = image(icon, src, "lid_[initial(icon_state)]")
|
||||
overlays += lid
|
||||
add_overlay("lid_[initial(icon_state)]")
|
||||
|
||||
obj/item/weapon/reagent_containers/glass/bucket/wood
|
||||
desc = "An old wooden bucket."
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
/obj/item/weapon/reagent_containers/spray/chemsprayer/hosed/update_icon()
|
||||
..()
|
||||
|
||||
overlays.Cut()
|
||||
cut_overlays()
|
||||
|
||||
if(!hose_overlay)
|
||||
hose_overlay = new icon(icon, "[icon_state]+hose")
|
||||
|
||||
@@ -232,7 +232,7 @@
|
||||
return
|
||||
/* VOREStation Edit - See syringes_vr.dm
|
||||
/obj/item/weapon/reagent_containers/syringe/update_icon()
|
||||
overlays.Cut()
|
||||
cut_overlays()
|
||||
|
||||
if(mode == SYRINGE_BROKEN)
|
||||
icon_state = "broken"
|
||||
@@ -246,7 +246,7 @@
|
||||
injoverlay = "draw"
|
||||
if (SYRINGE_INJECT)
|
||||
injoverlay = "inject"
|
||||
overlays += injoverlay
|
||||
add_overlay(injoverlay)
|
||||
icon_state = "[rounded_vol]"
|
||||
item_state = "syringe_[rounded_vol]"
|
||||
|
||||
@@ -256,7 +256,7 @@
|
||||
filling.icon_state = "syringe[rounded_vol]"
|
||||
|
||||
filling.color = reagents.get_color()
|
||||
overlays += filling
|
||||
add_overlay(filling)
|
||||
*/
|
||||
/obj/item/weapon/reagent_containers/syringe/proc/syringestab(mob/living/carbon/target as mob, mob/living/carbon/user as mob)
|
||||
if(istype(target, /mob/living/carbon/human))
|
||||
|
||||
Reference in New Issue
Block a user