happy now
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
|
|
||||||
/proc/choose_reagent_id(mob/user)
|
/proc/choose_reagent_id(mob/user)
|
||||||
var/chosen_id
|
var/chosen_id
|
||||||
switch(alert(user, "Choose a method.", "Add Reagents", "Search", "Choose from a list"))
|
switch(alert(user, "Choose a method.", "Add Reagents", "Search", "Choose from a list", "I'm feeling lucky"))
|
||||||
if("Search")
|
if("Search")
|
||||||
var/valid_id
|
var/valid_id
|
||||||
while(!valid_id)
|
while(!valid_id)
|
||||||
@@ -92,4 +92,6 @@
|
|||||||
to_chat(user, "<span class='warning'>A reagent with that ID doesn't exist!</span>")
|
to_chat(user, "<span class='warning'>A reagent with that ID doesn't exist!</span>")
|
||||||
if("Choose from a list")
|
if("Choose from a list")
|
||||||
chosen_id = input(user, "Choose a reagent to add.", "Choose a reagent.") as null|anything in subtypesof(/datum/reagent)
|
chosen_id = input(user, "Choose a reagent to add.", "Choose a reagent.") as null|anything in subtypesof(/datum/reagent)
|
||||||
|
if("I'm feeling lucky")
|
||||||
|
chosen_id = pick(subtypesof(/datum/reagent))
|
||||||
return chosen_id
|
return chosen_id
|
||||||
Reference in New Issue
Block a user