From 6a48a6ae438fb2d27ed9f5b372ee006e63155f9b Mon Sep 17 00:00:00 2001 From: SoundScopes Date: Thu, 29 Oct 2015 12:51:17 +0000 Subject: [PATCH] Sanity Checking --- code/modules/reagents/Chemistry-Machinery.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/modules/reagents/Chemistry-Machinery.dm b/code/modules/reagents/Chemistry-Machinery.dm index 29484c06..7d9098d2 100644 --- a/code/modules/reagents/Chemistry-Machinery.dm +++ b/code/modules/reagents/Chemistry-Machinery.dm @@ -345,6 +345,7 @@ if(href_list["amount"]) var/id = href_list["add"] var/amount = text2num(href_list["amount"]) + amount = isgoodnumber(amount) //Sanity check hrefs people -Scopes R.trans_id_to(src, id, amount) else if (href_list["addcustom"]) @@ -359,6 +360,7 @@ if(href_list["amount"]) var/id = href_list["remove"] var/amount = text2num(href_list["amount"]) + amount = isgoodnumber(amount) //Sanity check hrefs people -Scopes if(mode) reagents.trans_id_to(beaker, id, amount) else @@ -1232,4 +1234,4 @@ target.apply_damage(10, HALLOSS) target.say("*scream") spawn(10) - user.visible_message("\red [user] stops the [src] and leaves [target] resting as they are.", "\red You turn the [src] off and let go of [target].") \ No newline at end of file + user.visible_message("\red [user] stops the [src] and leaves [target] resting as they are.", "\red You turn the [src] off and let go of [target].")