haha what if we didn't show secretcatchem
This commit is contained in:
@@ -34,8 +34,8 @@
|
||||
|
||||
var/datum/chemical_reaction/D = new path()
|
||||
var/list/reaction_ids = list()
|
||||
// store drinks separately for bartender cartridge
|
||||
if(D.id)
|
||||
// store recipes separately for bartender/chemistry cartridges
|
||||
if(D.id && !D.is_secret) // don't show things like secretcatchem or secret sauce
|
||||
var/datum/reagent/r = D.id
|
||||
if(ispath(D.id, /datum/reagent/consumable))
|
||||
GLOB.drink_reactions_list[initial(r.name)] = D
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
var/clear_conversion //bitflags for clear conversions; REACTION_CLEAR_IMPURE or REACTION_CLEAR_INVERSE
|
||||
var/PurityMin = 0.15 //If purity is below 0.15, it explodes too. Set to 0 to disable this.
|
||||
|
||||
var/is_secret = FALSE // If it should show in recipe searchers such as the bartender/chemistry PDA functions
|
||||
|
||||
|
||||
/datum/chemical_reaction/proc/on_reaction(datum/reagents/holder, multiplier, specialreact)
|
||||
set waitfor = FALSE
|
||||
|
||||
@@ -54,6 +54,8 @@ GLOBAL_LIST_INIT(food_reagents, build_reagents_to_food()) //reagentid = related
|
||||
var/max_result_reagents = 1
|
||||
var/list/possible_results = list()
|
||||
|
||||
is_secret = TRUE
|
||||
|
||||
/datum/chemical_reaction/randomized/proc/GenerateRecipe()
|
||||
created = world.time
|
||||
if(randomize_container)
|
||||
|
||||
Reference in New Issue
Block a user