Skip to content

Commit

Permalink
secret recipes are now actually secret (tgstation#61715)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fikou committed Sep 28, 2021
1 parent 67e7261 commit 76c6754
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions code/modules/reagents/chemistry/recipes/special.dm
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,6 @@ GLOBAL_LIST_INIT(medicine_reagents, build_medicine_reagents())
///The one we actually end up displaying
var/recipe_id = null

/obj/item/paper/secretrecipe/examine(mob/user) //Extra secret
if(isobserver(user))
return list()
. = ..()

/obj/item/paper/secretrecipe/Initialize(mapload)
. = ..()

Expand All @@ -276,6 +271,17 @@ GLOBAL_LIST_INIT(medicine_reagents, build_medicine_reagents())
else
SSticker.OnRoundstart(CALLBACK(src,.proc/UpdateInfo))

/obj/item/paper/secretrecipe/ui_static_data(mob/living/user)
. = ..()
if(!istype(user) || user.stat == DEAD)
.["text"] = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, \
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. \
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris \
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in \
reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla \
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa \
qui officia deserunt mollit anim id est laborum."

/obj/item/paper/secretrecipe/proc/UpdateInfo()
var/datum/chemical_reaction/recipe = get_chemical_reaction(recipe_id)
if(!recipe)
Expand Down

0 comments on commit 76c6754

Please sign in to comment.