Sanity Checking

This commit is contained in:
SoundScopes
2015-10-29 12:51:17 +00:00
parent 8f88ea9deb
commit 6a48a6ae43
+3 -1
View File
@@ -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].")
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].")