mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-27 17:53:01 +00:00
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
78 lines
2.1 KiB
Plaintext
78 lines
2.1 KiB
Plaintext
//NEVER USE THIS IT SUX -PETETHEGOAT
|
|
//THE GOAT WAS RIGHT - RKF
|
|
|
|
var/global/list/cached_icons = list()
|
|
|
|
/obj/item/reagent_containers/glass/paint
|
|
desc = "It's a paint bucket."
|
|
name = "paint bucket"
|
|
icon = 'icons/obj/items.dmi'
|
|
icon_state = "paint_neutral"
|
|
item_state = "paintcan"
|
|
matter = list(MAT_STEEL = 200)
|
|
w_class = ITEMSIZE_NORMAL
|
|
amount_per_transfer_from_this = 10
|
|
possible_transfer_amounts = list(10,20,30,60)
|
|
volume = 60
|
|
unacidable = FALSE
|
|
flags = OPENCONTAINER
|
|
var/paint_type = "red"
|
|
|
|
/obj/item/reagent_containers/glass/paint/afterattack(turf/simulated/target, mob/user, proximity)
|
|
if(!proximity) return
|
|
if(istype(target) && reagents.total_volume > 5)
|
|
user.visible_message(span_warning("\The [target] has been splashed with something by [user]!"))
|
|
reagents.trans_to_turf(target, 5)
|
|
else
|
|
return ..()
|
|
|
|
/obj/item/reagent_containers/glass/paint/Initialize()
|
|
.=..()
|
|
if(paint_type)
|
|
reagents.add_reagent(REAGENT_ID_PAINT, volume, paint_type)
|
|
|
|
/obj/item/reagent_containers/glass/paint/red
|
|
icon_state = "paint_red"
|
|
paint_type = "#FF0000"
|
|
|
|
/obj/item/reagent_containers/glass/paint/yellow
|
|
icon_state = "paint_yellow"
|
|
paint_type = "#FFFF00"
|
|
|
|
/obj/item/reagent_containers/glass/paint/green
|
|
icon_state = "paint_green"
|
|
paint_type = "#00FF00"
|
|
|
|
/obj/item/reagent_containers/glass/paint/blue
|
|
icon_state = "paint_blue"
|
|
paint_type = "#0000FF"
|
|
|
|
/obj/item/reagent_containers/glass/paint/violet
|
|
icon_state = "paint_violet"
|
|
paint_type = "#FF00FF"
|
|
|
|
/obj/item/reagent_containers/glass/paint/black
|
|
icon_state = "paint_black"
|
|
paint_type = "#000000"
|
|
|
|
/obj/item/reagent_containers/glass/paint/grey
|
|
icon_state = "paint_neutral"
|
|
paint_type = "#808080"
|
|
|
|
/obj/item/reagent_containers/glass/paint/orange
|
|
icon_state = "paint_orange"
|
|
paint_type = "#FFA500"
|
|
|
|
/obj/item/reagent_containers/glass/paint/purple
|
|
icon_state = "paint_purple"
|
|
paint_type = "#A500FF"
|
|
|
|
/obj/item/reagent_containers/glass/paint/cyan
|
|
icon_state = "paint_cyan"
|
|
paint_type = "#00FFFF"
|
|
|
|
/obj/item/reagent_containers/glass/paint/white
|
|
name = "paint remover bucket"
|
|
icon_state = "paint_white"
|
|
paint_type = "#FFFFFF"
|