Protolathe and Circuit Printer check for adjacency when adding sheets. (#8032)

This commit is contained in:
mikomyazaki
2020-01-17 11:50:00 +01:00
committed by Werner
parent 1d45184743
commit d96fd4cd83
3 changed files with 12 additions and 0 deletions
+3
View File
@@ -138,6 +138,9 @@ using metal and glass, it uses glass and reagents (usually sulphuric acid).
var/amount = round(input("How many sheets do you want to add?") as num)
if(!O)
return
if(!Adjacent(user))
to_chat(user, "<span class='notice'>\The [src] is too far away for you to insert this.</span>")
return
if(amount <= 0)//No negative numbers
return
if(amount > stack.get_amount())
+3
View File
@@ -132,6 +132,9 @@
var/amount = round(input("How many sheets do you want to add?") as num)//No decimals
if(!O)
return
if(!Adjacent(user))
to_chat(user, "<span class='notice'>\The [src] is too far away for you to insert this.</span>")
return
if(amount <= 0)//No negative numbers
return
if(amount > stack.get_amount())