Adjusts door repair to use a welding tool

This commit is contained in:
mwerezak
2014-12-25 14:28:42 -05:00
parent f297f7cd0a
commit 07debf9405
3 changed files with 65 additions and 15 deletions

View File

@@ -220,8 +220,12 @@
var/transfer = max(min(tamount, src.amount, initial(max_amount)), 0)
var/orig_amount = src.amount
if (transfer && src.use(transfer))
return new src.type(loc, transfer)
var/obj/item/stack/newstack = new src.type(loc, transfer)
if (prob(transfer/orig_amount * 100))
newstack.copy_evidences(src)
return newstack
return null
/obj/item/stack/proc/get_amount()