mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-07-21 04:33:16 +01:00
Sanity Checking
This commit is contained in:
@@ -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].")
|
||||
|
||||
Reference in New Issue
Block a user