mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
Fixes several runtimes from the past few weeks, some additional material repath regressions, and the fact that if I shoot you with a stream of ionized deuterium particles, it doesn't riddle you with cancer. changes: - bugfix: "Fixes emergency shields runtiming when hit by thrown objects." - bugfix: "Fixes several stale global list runtimes." - bugfix: "Fixes several health percentage checks that could use unset initial health values." - bugfix: "Fixes additional materials regressions in INDRA code." - bugfix: "Fixes invalid fuel injector depletion math." - bugfix: "Makes accelerated particles apply radiation damage to living mobs they pass through."
85 lines
2.4 KiB
Plaintext
85 lines
2.4 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(MATERIAL_STEEL = 200)
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
amount_per_transfer_from_this = 10
|
|
possible_transfer_amounts = list(10,20,30,60)
|
|
volume = 60
|
|
unacidable = 0
|
|
atom_flags = ATOM_FLAG_OPEN_CONTAINER
|
|
fragile = 0
|
|
/// Name of the reagent responsible for colouring the paint.
|
|
var/paint_reagent = null
|
|
/// Used for colouring detective technicolor coat and hat.
|
|
var/paint_type = null
|
|
reagents_to_add = list(/singleton/reagent/paint = 4/5)
|
|
|
|
/obj/item/reagent_containers/glass/paint/Initialize()
|
|
reagents_to_add[paint_reagent] = 1/5
|
|
for(var/singleton/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()
|
|
ClearOverlays()
|
|
if(!is_open_container())
|
|
AddOverlays("paint_lid")
|
|
else if(reagents.total_volume)
|
|
var/image/I = image(icon, "paint_full")
|
|
I.color = reagents.get_color()
|
|
AddOverlays(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 = /singleton/reagent/crayon_dust/red
|
|
paint_type = "red"
|
|
|
|
/obj/item/reagent_containers/glass/paint/yellow
|
|
paint_reagent = /singleton/reagent/crayon_dust/yellow
|
|
paint_type = "yellow"
|
|
|
|
/obj/item/reagent_containers/glass/paint/green
|
|
paint_reagent = /singleton/reagent/crayon_dust/green
|
|
paint_type = "green"
|
|
|
|
/obj/item/reagent_containers/glass/paint/blue
|
|
paint_reagent = /singleton/reagent/crayon_dust/blue
|
|
paint_type = "blue"
|
|
|
|
/obj/item/reagent_containers/glass/paint/purple
|
|
paint_reagent = /singleton/reagent/crayon_dust/purple
|
|
paint_type = "purple"
|
|
|
|
/obj/item/reagent_containers/glass/paint/black
|
|
paint_reagent = /singleton/reagent/carbon
|
|
paint_type = "black"
|
|
|
|
/obj/item/reagent_containers/glass/paint/white
|
|
paint_reagent = /singleton/reagent/aluminum
|
|
paint_type = "white"
|