mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Add colors to pill bottles and patch packs (#25650)
* Add colors to pill bottles and patch packs * Tweak chem master colors * Make patch pack overlay lighter * Deduplicate code and update colors * Fix linter * Move proc --------- Co-authored-by: Arthri <41360489+a@users.noreply.github.com>
This commit is contained in:
@@ -440,7 +440,8 @@
|
||||
|
||||
/obj/item/storage/box/pillbottles/populate_contents()
|
||||
for(var/I in 1 to 7)
|
||||
new /obj/item/storage/pill_bottle(src)
|
||||
var/obj/item/storage/pill_bottle/P = new /obj/item/storage/pill_bottle(src)
|
||||
P.apply_wrapper_color(I)
|
||||
|
||||
/obj/item/storage/box/patch_packs
|
||||
name = "box of patch packs"
|
||||
@@ -449,7 +450,8 @@
|
||||
|
||||
/obj/item/storage/box/patch_packs/populate_contents()
|
||||
for(var/I in 1 to 7)
|
||||
new /obj/item/storage/pill_bottle/patch_pack(src)
|
||||
var/obj/item/storage/pill_bottle/P = new /obj/item/storage/pill_bottle/patch_pack(src)
|
||||
P.apply_wrapper_color(I)
|
||||
|
||||
/obj/item/storage/box/bodybags
|
||||
name = "body bags"
|
||||
|
||||
@@ -357,6 +357,11 @@
|
||||
else
|
||||
return ..()
|
||||
|
||||
/obj/item/storage/pill_bottle/proc/apply_wrapper_color(color_number)
|
||||
var/static/list/colors = list(COLOR_RED, COLOR_ORANGE, COLOR_YELLOW, COLOR_GREEN, COLOR_CYAN_BLUE, COLOR_VIOLET, COLOR_PURPLE)
|
||||
wrapper_color = colors[(color_number - 1) % length(colors) + 1]
|
||||
apply_wrap()
|
||||
|
||||
/obj/item/storage/pill_bottle/patch_pack
|
||||
name = "patch pack"
|
||||
desc = "It's a container for storing medical patches."
|
||||
|
||||
Reference in New Issue
Block a user