mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-28 02:52:01 +00:00
83 lines
2.3 KiB
Plaintext
83 lines
2.3 KiB
Plaintext
//NEVER USE THIS IT SUX -PETETHEGOAT
|
|
//THE GOAT WAS RIGHT - RKF
|
|
|
|
/obj/item/reagent_containers/glass/paint
|
|
desc = "It's a paint bucket."
|
|
name = "paint bucket"
|
|
icon = 'icons/obj/items.dmi'
|
|
icon_state = "paint_empty"
|
|
item_state = "paintcan"
|
|
matter = list(DEFAULT_WALL_MATERIAL = 200)
|
|
w_class = ITEMSIZE_NORMAL
|
|
amount_per_transfer_from_this = 10
|
|
possible_transfer_amounts = list(10,20,30,60)
|
|
volume = 60
|
|
unacidable = 0
|
|
flags = OPENCONTAINER
|
|
fragile = 0
|
|
var/paint_reagent = null //name of the reagent responsible for colouring the paint
|
|
var/paint_type = null //used for colouring detective technicolor coat and hat
|
|
reagents_to_add = list(/decl/reagent/paint = 4/5)
|
|
|
|
/obj/item/reagent_containers/glass/paint/Initialize()
|
|
reagents_to_add[paint_reagent] = 1/5
|
|
for(var/decl/reagent/R in reagents_to_add)
|
|
reagents_to_add[R] *= volume
|
|
. = ..()
|
|
reagents.handle_reactions()
|
|
if(paint_type && length(paint_type) > 0)
|
|
name = paint_type + " " + name
|
|
update_icon()
|
|
|
|
/obj/item/reagent_containers/glass/paint/update_icon()
|
|
cut_overlays()
|
|
if(!is_open_container())
|
|
add_overlay("paint_lid")
|
|
else if(reagents.total_volume)
|
|
var/image/I = image(icon, "paint_full")
|
|
I.color = reagents.get_color()
|
|
add_overlay(I)
|
|
|
|
/obj/item/reagent_containers/glass/paint/on_reagent_change()
|
|
update_icon()
|
|
|
|
/obj/item/reagent_containers/glass/paint/pickup(mob/user)
|
|
..()
|
|
update_icon()
|
|
|
|
/obj/item/reagent_containers/glass/paint/dropped(mob/user)
|
|
..()
|
|
update_icon()
|
|
|
|
/obj/item/reagent_containers/glass/paint/attack_hand()
|
|
..()
|
|
update_icon()
|
|
|
|
/obj/item/reagent_containers/glass/paint/red
|
|
paint_reagent = /decl/reagent/crayon_dust/red
|
|
paint_type = "red"
|
|
|
|
/obj/item/reagent_containers/glass/paint/yellow
|
|
paint_reagent = /decl/reagent/crayon_dust/yellow
|
|
paint_type = "yellow"
|
|
|
|
/obj/item/reagent_containers/glass/paint/green
|
|
paint_reagent = /decl/reagent/crayon_dust/green
|
|
paint_type = "green"
|
|
|
|
/obj/item/reagent_containers/glass/paint/blue
|
|
paint_reagent = /decl/reagent/crayon_dust/blue
|
|
paint_type = "blue"
|
|
|
|
/obj/item/reagent_containers/glass/paint/purple
|
|
paint_reagent = /decl/reagent/crayon_dust/purple
|
|
paint_type = "purple"
|
|
|
|
/obj/item/reagent_containers/glass/paint/black
|
|
paint_reagent = /decl/reagent/carbon
|
|
paint_type = "black"
|
|
|
|
/obj/item/reagent_containers/glass/paint/white
|
|
paint_reagent = /decl/reagent/aluminum
|
|
paint_type = "white"
|