Skip to content

Commit

Permalink
tweak(vending): makes light beautiful
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyThorne authored Apr 23, 2024
1 parent c9d1163 commit 5dcfae7
Show file tree
Hide file tree
Showing 19 changed files with 32 additions and 6 deletions.
2 changes: 1 addition & 1 deletion code/game/machinery/vending/BODA.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

icon = 'icons/obj/machines/vending/sovietsoda.dmi'
icon_state = "sovietsoda"
light_color = COLOR_RED
light_color = "#FFDCA2"

vending_sound = SFX_VENDING_GENERIC

Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/vending/_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
set_light(0)
return FALSE

set_light(0.65, 0.1, 1, 2, light_color)
set_light(1, 0.5, 2, 3.5, light_color)
return TRUE

/obj/machinery/vending/Initialize(mapload)
Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/vending/boozeomat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

icon = 'icons/obj/machines/vending/boozeomat.dmi'
icon_state = "boozeomat"
light_color = "#69A6C6"

req_access = list(access_bar)

Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/vending/cigarette.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

icon = 'icons/obj/machines/vending/cigs.dmi'
icon_state = "cigs"
light_color = COLOR_RED
light_color = "#54A496"

vend_delay = 30
use_alt_icons = TRUE
Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/vending/coat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

icon = 'icons/obj/machines/vending/theater.dmi'
icon_state = "Theater"
light_color = "#CA7732"

vend_delay = 21
use_vend_state = TRUE
Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/vending/coffee.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

icon = 'icons/obj/machines/vending/coffee.dmi'
icon_state = "coffee"
light_color = COLOR_GREEN_GRAY

idle_power_usage = 211 WATTS //refrigerator - believe it or not, this is actually the average power consumption of a refrigerated vending machine according to NRCan.
vend_power_usage = 85 KILO WATTS //85 kJ to heat a 250 mL cup of coffee
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/vending/cola.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

icon = 'icons/obj/machines/vending/cola.dmi'
icon_state = "Cola_Machine"
light_color = COLOR_RED_GRAY
light_color = "#EC2F2F"

idle_power_usage = 211 WATTS //refrigerator - believe it or not, this is actually the average power consumption of a refrigerated vending machine according to NRCan.

Expand Down
7 changes: 7 additions & 0 deletions code/game/machinery/vending/engineering.dm
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
/obj/machinery/vending/tool
name = "YouTool"
desc = "Tools for tools."

icon_state = "tool"
icon = 'icons/obj/machines/vending/engi.dmi'
light_color = COLOR_GREEN_GRAY

use_vend_state = TRUE
gen_rand_amount = FALSE
vend_delay = 11
Expand Down Expand Up @@ -31,8 +34,11 @@
/obj/machinery/vending/engivend
name = "Engi-Vend"
desc = "Spare tool vending. What? Did you expect some witty description?"

icon_state = "engivend"
icon = 'icons/obj/machines/vending/engi.dmi'
light_color = "#6DBBBC"

use_vend_state = TRUE
vend_delay = 21
req_one_access = list(access_atmospherics, access_engine_equip)
Expand All @@ -59,6 +65,7 @@

icon = 'icons/obj/machines/vending/engi.dmi'
icon_state = "engi"
light_color = COLOR_GREEN_GRAY

req_one_access = list(access_atmospherics, access_engine_equip)

Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/vending/fashion.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

icon_state = "Theater"
icon = 'icons/obj/machines/vending/theater.dmi'
light_color = "#CA7732"

vend_delay = 15
vend_reply = "Absolutely smashing!"
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/vending/fitness.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

icon = 'icons/obj/machines/vending/fitness.dmi'
icon_state = "fitness"
light_color = COLOR_LIGHT_CYAN
light_color = "#EAEAEA"

vend_delay = 6
use_vend_state = TRUE
Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/vending/games.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

icon = 'icons/obj/machines/vending/games.dmi'
icon_state = "games"
light_color = "#57FFE4"

vend_delay = 15
product_slogans = "Escape to a fantasy world!;Fuel your gambling addiction!;Ruin your friendships!"
Expand Down
4 changes: 4 additions & 0 deletions code/game/machinery/vending/hydro.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
desc = "A plant nutrients vendor."
product_slogans = "Aren't you glad you don't have to fertilize the natural way?;Now with 50% less stink!;Plants are people too!"
product_ads = "We like plants!;Don't you want some?;The greenest thumbs ever.;We like big plants.;Soft soil..."

icon_state = "nutri"
icon = 'icons/obj/machines/vending/nutri.dmi'
light_color = "#6DBBBC"

use_vend_state = TRUE
gen_rand_amount = FALSE
vend_delay = 26
Expand Down Expand Up @@ -33,6 +36,7 @@

icon_state = "seeds"
icon = 'icons/obj/machines/vending/seeds.dmi'
light_color = "#7BB491"

vend_delay = 13
use_vend_state = TRUE
Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/vending/kitchen.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

icon_state = "dinnerware"
icon = 'icons/obj/machines/vending/dinnerware.dmi'
light_color = "#D6F1FF"

use_vend_state = TRUE
product_ads = "Mm, food stuffs!;Food and food accessories.;Get your plates!;You like forks?;I like forks.;Woo, utensils.;You don't really need these..."
Expand Down
4 changes: 3 additions & 1 deletion code/game/machinery/vending/medical.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

icon_state = "med"
icon = 'icons/obj/machines/vending/med.dmi'
light_color = COLOR_RED_LIGHT
light_color = "#EABBBB"

req_access = list(access_medical_equip)
idle_power_usage = 211 WATTS //refrigerator - believe it or not, this is actually the average power consumption of a refrigerated vending machine according to NRCan.
Expand Down Expand Up @@ -53,6 +53,7 @@

icon = 'icons/obj/machines/vending/wallmed.dmi'
icon_state = "wallmed"
light_color = "#EABBBB"

density = FALSE

Expand Down Expand Up @@ -84,6 +85,7 @@

icon = 'icons/obj/machines/vending/wallmed.dmi'
icon_state = "wallmed"
light_color = "#EABBBB"

density = FALSE

Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/vending/robotics.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

icon_state = "robotics"
icon = 'icons/obj/machines/vending/engi.dmi'
light_color = "#E4E4C6"

req_access = list(access_robotics)

Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/vending/security.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

icon = 'icons/obj/machines/vending/sec.dmi'
icon_state = "sec"
light_color = "#F75D5D"

vend_delay = 20
use_alt_icons = TRUE
Expand Down
4 changes: 4 additions & 0 deletions code/game/machinery/vending/snack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

icon = 'icons/obj/machines/vending/snack.dmi'
icon_state = "snack"
light_color = "#FF9900"

vend_delay = 25
use_vend_state = TRUE
Expand Down Expand Up @@ -96,8 +97,11 @@
desc = "A snack machine manufactured by Getmore Chocolate Corporation, specifically for hospitals."
product_slogans = "Try our new Hema-2-Gen bar!;Twice the health for half the price!"
product_ads = "The healthiest!;Award-winning chocolate bars!;Mmm! So good!;Oh my god it's so juicy!;Have a snack.;Snacks are good for you!;Have some more Getmore!;Best quality snacks straight from mars.;We love chocolate!;Try our new jerky!"

icon_state = "snackmed"
use_vend_state = TRUE
light_color = "#B8D4CB"

vend_delay = 25
component_types = list(/obj/item/vending_cartridge/medbay)
legal = list( /obj/item/reagent_containers/food/grown/apple = 10,
Expand Down
1 change: 1 addition & 0 deletions code/game/machinery/vending/wizard.dm
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

icon = 'icons/obj/machines/vending/theater.dmi'
icon_state = "MagiVend"
light_color = "#FDC145"

vend_delay = 15
vend_reply = "Have an enchanted evening!"
Expand Down
Binary file modified icons/obj/machines/vending/theater.dmi
Binary file not shown.

0 comments on commit 5dcfae7

Please sign in to comment.