mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
[MIRROR] Cleans up Generate Vintage Code for Unlabeled Wine [MDB IGNORE] (#19798)
* Cleans up Generate Vintage Code for Unlabeled Wine (#73912) ## About The Pull Request I should have done this or something similar in #70827 but I think I thought it was too out of scope. The gist is that we just get rid of a completely un-necessary var (since it's a macro now), as well as multi-line and alphabetize the lists present. simple really ## Why It's Good For The Game Save the time of having a var for something that already points to a macro, also multilined lists are swag ## Changelog nothing that concerns players * Cleans up Generate Vintage Code for Unlabeled Wine --------- Co-authored-by: san7890 <the@san7890.com>
This commit is contained in:
@@ -362,10 +362,23 @@
|
||||
desc = "There's no label on this wine bottle."
|
||||
|
||||
/obj/item/reagent_containers/cup/glass/bottle/wine/unlabeled/generate_vintage()
|
||||
var/current_year = CURRENT_STATION_YEAR
|
||||
var/year = rand(current_year-50,current_year)
|
||||
var/type = pick("Sparkling","Dry White","Sweet White","Rich White","Rose","Light Red","Medium Red","Bold Red","Dessert")
|
||||
var/origin = pick("Nanotrasen","Syndicate","Local")
|
||||
var/year = rand(CURRENT_STATION_YEAR - 50, CURRENT_STATION_YEAR)
|
||||
var/type = pick(
|
||||
"Bold Red",
|
||||
"Dessert",
|
||||
"Dry White",
|
||||
"Light Red",
|
||||
"Medium Red",
|
||||
"Rich White",
|
||||
"Rose",
|
||||
"Sparkling",
|
||||
"Sweet White",
|
||||
)
|
||||
var/origin = pick(
|
||||
"Local",
|
||||
"Nanotrasen",
|
||||
"Syndicate",
|
||||
)
|
||||
return "[year] [origin] [type]"
|
||||
|
||||
/obj/item/reagent_containers/cup/glass/bottle/absinthe
|
||||
|
||||
Reference in New Issue
Block a user