diff --git a/code/datums/vending/stored_item.dm b/code/datums/vending/stored_item.dm index 23d06c909a..1f5d613b8a 100644 --- a/code/datums/vending/stored_item.dm +++ b/code/datums/vending/stored_item.dm @@ -3,6 +3,7 @@ */ /datum/stored_item var/item_name = "name" //Name of the item(s) displayed + var/item_desc var/item_path = null var/amount = 0 var/list/instances //What items are actually stored diff --git a/code/modules/economy/vending.dm b/code/modules/economy/vending.dm index 9c2106adc0..36adfb6392 100644 --- a/code/modules/economy/vending.dm +++ b/code/modules/economy/vending.dm @@ -360,6 +360,7 @@ GLOBAL_LIST_EMPTY(vending_products) listed_products.Add(list(list( "key" = key, "name" = I.item_name, + "desc" = I.item_desc, "price" = I.price, "color" = I.display_color, "isatom" = ispath(I.item_path, /atom), diff --git a/code/modules/nifsoft/nif_softshop.dm b/code/modules/nifsoft/nif_softshop.dm index 5cfae594c4..836ab61233 100644 --- a/code/modules/nifsoft/nif_softshop.dm +++ b/code/modules/nifsoft/nif_softshop.dm @@ -94,6 +94,7 @@ product.price = initial(NS.cost) product.amount = 10 product.category = category + product.item_desc = initial(NS.desc) product_records.Add(product) diff --git a/tgui/packages/tgui/interfaces/Vending.js b/tgui/packages/tgui/interfaces/Vending.js index 6e60dd8c1e..68542215a9 100644 --- a/tgui/packages/tgui/interfaces/Vending.js +++ b/tgui/packages/tgui/interfaces/Vending.js @@ -1,7 +1,7 @@ import { classes } from 'common/react'; import { Fragment } from 'inferno'; import { useBackend } from '../backend'; -import { Box, Button, Section, Table, LabeledList } from '../components'; +import { Box, Button, Section, Table, Tooltip, LabeledList } from '../components'; import { Window } from '../layouts'; const VendingRow = (props, context) => { @@ -28,7 +28,12 @@ const VendingRow = (props, context) => { ) || null}