Sheet handling is much nicer now

- Nanotrasen fabrication machinery, such as those for space pods and
  exosuits, now have functional ID locks for their respective departments

- Research machinery and the fabricators now allow you to eject a custom
  amount of sheets, so you don't have to spam-click

- Splitting sheets by hand is now done by prompt
This commit is contained in:
Crazylemon64
2015-12-08 14:23:48 -08:00
parent 97f2f91843
commit 7efa8ed13f
4 changed files with 25 additions and 10 deletions
+4 -2
View File
@@ -196,9 +196,10 @@
/obj/item/stack/attack_hand(mob/user as mob)
if (user.get_inactive_hand() == src)
var/desired = input("How much?", "How much would you like to grab from the stack?", 1) as null|num
var/desired = input("How much would you like to grab from the stack?", "How much?", 1) as null|num
if(!desired)
return
desired = round(desired)
desired = max(1,min(desired,src.max_amount,src.amount))
var/obj/item/stack/F = new src.type( user, desired)
F.copy_evidences(src)
@@ -221,9 +222,10 @@
return 1
var/to_transfer as num
if (user.get_inactive_hand()==src)
var/desired = input("How much?", "How much would you like to grab from the stack?", 1) as null|num
var/desired = input("How much would you like to grab from the stack?", "How much?", 1) as null|num
if(!desired)
return
desired = round(desired)
to_transfer = max(1,min(desired,S.max_amount-S.amount,src.amount))
else
to_transfer = min(src.amount, S.max_amount-S.amount)