mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Adjusts door repair to use a welding tool
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user