mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Adds a trailing comma to some lists, cleans up cargo cult static vars (#94770)
## About The Pull Request Tin, some global lists being kept in memory for no reason when all they are used for is initially picking a random reagent from a list. ## Changelog Nothing player-facing, just code janitoring.
This commit is contained in:
@@ -30,8 +30,9 @@
|
||||
name = "unlabeled bottle"
|
||||
desc = "A small bottle. You don't remember what you put in it."
|
||||
|
||||
/obj/item/reagent_containers/cup/bottle/alchemist_basic/add_initial_reagents()
|
||||
/// List of possible reagents we may pick from
|
||||
var/static/list/possible_reagents = list(
|
||||
var/list/possible_reagents = list(
|
||||
/datum/reagent/aluminium, // Basic chems
|
||||
/datum/reagent/bromine,
|
||||
/datum/reagent/carbon,
|
||||
@@ -63,7 +64,6 @@
|
||||
/datum/reagent/consumable/coffee,
|
||||
)
|
||||
|
||||
/obj/item/reagent_containers/cup/bottle/alchemist_basic/add_initial_reagents()
|
||||
var/our_reagent = pick(possible_reagents)
|
||||
reagents.add_reagent(our_reagent, 50)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user