βAdding New Drugs
How to add a new drug type to the system.
{ -- EXAMPLE
id = 'drug_id', -- unique identifier for the drug
name = 'Drug Name', -- name of the drug
description = 'Description of the drug', -- description of the drug
icon = 'fa-icon-name', -- FontAwesome icon (without the "fas" prefix)
color = 'blue', -- Valid colors: 'blue', 'pink', 'orange', 'green'
ingredients = { -- list of ingredients required to make the drug
-- Must have a minimum of 1 ingredient, no maximum amount
-- id: item name of the ingredient (string)
-- name: display name of the ingredient for UI (string)
-- amount: amount of the ingredient required (number)
{ id = 'ingredient_id1', name = 'Ingredient Name 1', amount = 1},
{ id = 'ingredient_id2', name = 'Ingredient Name 2', amount = 2},
{ id = 'ingredient_id3', name = 'Ingredient Name 3', amount = 3}
{ id = 'ingredient_id4', name = 'Ingredient Name 4', amount = 4}
{ id = 'ingredient_id5', name = 'Ingredient Name 5', amount = 5}
},
-- optional: define a custom ideal formula (must match number of ingredients)
-- if not provided, the server will generate this randomly on startup
idealMix = {40, 30, 30, 20, 10},
effects = 'Effects description for UI display' -- effects of the drug (string, for UI)
},

Last updated