Vendors - Product Ads?

How, what and why to code in BYOND.
Post Reply
Cuboos
Joined: Fri Jun 13, 2014 5:34 am
Byond Username: Cuboos

Vendors - Product Ads?

Post by Cuboos » #214587

Code: Select all

/obj/machinery/vending/dinnerware
	name = "\improper Plasteel Chef's Dinnerware Vendor"
	desc = "A kitchen and restaurant equipment vendor"
	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..."
	icon_state = "dinnerware"
	products = list(/obj/item/weapon/storage/bag/tray = 8,/obj/item/weapon/kitchen/fork = 6,/obj/item/weapon/kitchen/knife = 6,/obj/item/weapon/kitchen/rollingpin = 2,/obj/item/weapon/reagent_containers/food/drinks/drinkingglass = 8,/obj/item/clothing/suit/apron/chef = 2,/obj/item/weapon/reagent_containers/food/condiment/pack/ketchup = 5,/obj/item/weapon/reagent_containers/food/condiment/pack/hotsauce = 5,/obj/item/weapon/reagent_containers/food/condiment/saltshaker = 5,/obj/item/weapon/reagent_containers/food/condiment/peppermill = 5,/obj/item/weapon/reagent_containers/glass/bowl = 20)
	contraband = list(/obj/item/weapon/kitchen/rollingpin = 2, /obj/item/weapon/kitchen/knife/butcher = 2)
/obj/machinery/vending/sovietsoda
	name = "\improper BODA"
	desc = "Old sweet water vending machine"
	icon_state = "sovietsoda"
	product_ads = "For Tsar and Country.;Have you fulfilled your nutrition quota today?;Very nice!;We are simple people, for this is all we eat.;If there is a person, there is a problem. If there is no person, then there is no problem."
	products = list(/obj/item/weapon/reagent_containers/food/drinks/drinkingglass/filled/soda = 30)
	contraband = list(/obj/item/weapon/reagent_containers/food/drinks/drinkingglass/filled/cola = 20)
Coderbus was too busy talking about other stuff to answer these question. Vendors contain a list called produc_ads that don't do anything. I've checked through the whole code and nothing calls them. I noticed this when i was working on some sounds for them. They aren't the phrases they say in world, those are under "produc_slogans". I'm not sure what to do with them, they seem to do nothing but bloat the code. Should i figure out a way to implement them? comment them out? delete them entirely? They seem redundant.
Image
/TG/ First and Only Sound guy
The only Dev unanimously loved least hated.
User avatar
Remie Richards
Joined: Thu Apr 17, 2014 7:11 pm
Byond Username: CrimsonVision
Location: England, UK, Earth, Sol, Milky Way, Local Group, Virgo Supercluster, Known Universe
Contact:

Re: Vendors - Product Ads?

Post by Remie Richards » #214598

supposed to appear in the UI.
私は完璧
Cuboos
Joined: Fri Jun 13, 2014 5:34 am
Byond Username: Cuboos

Re: Vendors - Product Ads?

Post by Cuboos » #214599

Remie Richards wrote:supposed to appear in the UI.
I checked, it doesn't.
Image
/TG/ First and Only Sound guy
The only Dev unanimously loved least hated.
User avatar
Remie Richards
Joined: Thu Apr 17, 2014 7:11 pm
Byond Username: CrimsonVision
Location: England, UK, Earth, Sol, Milky Way, Local Group, Virgo Supercluster, Known Universe
Contact:

Re: Vendors - Product Ads?

Post by Remie Richards » #214600

Cuboos wrote:
Remie Richards wrote:supposed to appear in the UI.
I checked, it doesn't.
Read what I said.
I never said it appears in the UI, just that it's supposed to, that's clear enough from the comment on the definition.
all you need to do is split it into a list like how slogans is split, and then pick one each time the UI opens and style it nicely.
it's a black browser UI so it's just HTML.
私は完璧
User avatar
oranges
Code Maintainer
Joined: Tue Apr 15, 2014 9:16 pm
Byond Username: Optimumtact
Github Username: optimumtact
Location: #CHATSHITGETBANGED

Re: Vendors - Product Ads?

Post by oranges » #214618

You like forks?;I like forks.

No way we can't have this in our code, absolutely disgusting
User avatar
iamgoofball
Github User
Joined: Fri Apr 18, 2014 5:50 pm
Byond Username: Iamgoofball
Github Username: Iamgoofball

Re: Vendors - Product Ads?

Post by iamgoofball » #214671

oranges wrote:You like forks?;I like forks.

No way we can't have this in our code, absolutely disgusting
It already is
Cuboos
Joined: Fri Jun 13, 2014 5:34 am
Byond Username: Cuboos

Re: Vendors - Product Ads?

Post by Cuboos » #214820

Remie Richards wrote:
Cuboos wrote:
Remie Richards wrote:supposed to appear in the UI.
I checked, it doesn't.
Read what I said.
I never said it appears in the UI, just that it's supposed to, that's clear enough from the comment on the definition.
all you need to do is split it into a list like how slogans is split, and then pick one each time the UI opens and style it nicely.
it's a black browser UI so it's just HTML.
Oh. I guess i'll add them then, must have been removed when they were updated to TGUI.
Image
/TG/ First and Only Sound guy
The only Dev unanimously loved least hated.
User avatar
MisterPerson
Board Moderator
Joined: Tue Apr 15, 2014 4:26 pm
Byond Username: MisterPerson

Re: Vendors - Product Ads?

Post by MisterPerson » #214875

oranges wrote:You like forks?;I like forks.

No way we can't have this in our code, absolutely disgusting
Just because some of the existing forks are bad doesn't mean all forks are bad. You're a hateful forkist, but that doesn't mean we all are. Some of my best codebases happen to be forks. What do you have to say about that? #notallforks
I code for the code project and moderate the code sections of the forums.

Feedback is dumb and it doesn't matter
User avatar
ShadowDimentio
Joined: Thu May 08, 2014 3:15 am
Byond Username: David273

Re: Vendors - Product Ads?

Post by ShadowDimentio » #214997

#Forkwarnow
Spoiler:
"Clowns are different you can't trust those shifty fucks you never know what they're doing or if they're willing to eat a dayban for some cheap yuks."
-Not-Dorsidarf

"The amount of people is the amount of times the sound is played... on top of itself. And with sybil populations on the shuttle..."
-Remie Richards

"I just spent all fucking day playing fallen london and sunless sea and obsessing over how creepy the fucking dawn machine is and only just clocked now that your avatar is the fucking dawn machine. Nobody vote for this disgusting new sequence blasphemer he wants to kill the gods"
-Stickymayhem

"Drank a cocktail of orange Gatorade and mint mouthwash on accident. Pretty sure I'm going to die, I am on the verge of vomit. It was nice knowing you guys"
-PKPenguin321

"You're too late, you will have to fetch them from the top of my tower, built by zombies, slaves, zombie slaves and garitho's will to live!"
-Armhulen

"This is like being cooked alive in a microwave oven which utilises the autistic end of the light spectrum to cook you."
-DarkFNC

"Penguins are the second race to realise 2D>3D"
-Anonmare

"Paul Blart mall cops if they all had ambitions of joining the Waffen-SS"
-Anonmare

"These logs could kill a dragon much less a man"
-Armhulenn

">7 8 6
WHAT MADNESS IS THIS? POETIC ANARCHY!"
-Wyzack

"We didn't kick one goofball out only to have another one come in like a fucking revolving door"
-Kraseo

"There's a difference between fucking faggots and being a fucking faggot."
-Anonmare

"You guys splitting the 20 bucks cost to hire your ex again?"
-lntigracy

"Wew. Congrats. It's been actual years since anyone tried to make fun of me for being divorced. You caught me, I'm tilted. Here is your trophy."
-Timbrewolf

"I prefer my coffees to run dry too *snorts a line of maxwell house*"
-Super Aggro Crag

"You don't have an evil bone in your body, unless togopal comes for a sleepover"
-Bluespace

">Paying over a $1000 for a lump of silicon and plastic
Lol"
-Anonmare

"Then why did you get that boob job?"
-DrPillzRedux

"You take that back you colonial mongrel"
-Docprofsmith

"I don't care whether or not someone with an IQ 3 standard deviations below my own thinks they enjoy Wizard rounds."
-Malkraz
User avatar
The Ultimate Chimera
Joined: Wed Feb 03, 2016 6:31 am
Byond Username: The Ultimate Chimera
Location: The Lifeweb

Re: Vendors - Product Ads?

Post by The Ultimate Chimera » #215586

I was hoping this was going to be poster ads for the vending machines. Rip my dreams.
Your sins are not to be forgiven. Pain and regrets are waiting for you.
Post Reply

Who is online

Users browsing this forum: No registered users