mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge pull request #13658 from Heroman3003/stackruntime
fixes runtime with stack dna transfer
This commit is contained in:
@@ -333,7 +333,10 @@
|
|||||||
if (prob(transfer/orig_amount * 100))
|
if (prob(transfer/orig_amount * 100))
|
||||||
transfer_fingerprints_to(S)
|
transfer_fingerprints_to(S)
|
||||||
if(blood_DNA)
|
if(blood_DNA)
|
||||||
S.blood_DNA |= blood_DNA
|
if(S.blood_DNA)
|
||||||
|
S.blood_DNA |= blood_DNA
|
||||||
|
else
|
||||||
|
S.blood_DNA = blood_DNA.Copy()
|
||||||
return transfer
|
return transfer
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
w_class = ITEMSIZE_SMALL
|
w_class = ITEMSIZE_SMALL
|
||||||
var/repair_amount = 5
|
var/repair_amount = 5
|
||||||
var/repair_time = 40
|
var/repair_time = 40
|
||||||
|
|
||||||
/obj/item/weapon/whetstone/attackby(obj/item/I, mob/user)
|
/obj/item/weapon/whetstone/attackby(obj/item/I, mob/user)
|
||||||
if(istype(I, /obj/item/stack/material))
|
if(istype(I, /obj/item/stack/material))
|
||||||
var/obj/item/stack/material/M = I
|
var/obj/item/stack/material/M = I
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
. += "There [uses == 1 ? "is" : "are"] [uses] [material] [uses == 1 ? src.material.sheet_singular_name : src.material.sheet_plural_name] left for use."
|
. += "There [uses == 1 ? "is" : "are"] [uses] [material] [uses == 1 ? src.material.sheet_singular_name : src.material.sheet_plural_name] left for use."
|
||||||
|
|
||||||
/obj/item/weapon/material/sharpeningkit/Initialize()
|
/obj/item/weapon/material/sharpeningkit/New()
|
||||||
. = ..()
|
. = ..()
|
||||||
setrepair()
|
setrepair()
|
||||||
|
|
||||||
@@ -74,4 +74,4 @@
|
|||||||
to_chat(user, "There's not enough spare sheets to sharpen [M]. You need [M.w_class*2] [M.material.sheet_plural_name].")
|
to_chat(user, "There's not enough spare sheets to sharpen [M]. You need [M.w_class*2] [M.material.sheet_plural_name].")
|
||||||
return
|
return
|
||||||
else
|
else
|
||||||
to_chat(user, "You can't sharpen [W] with [src]!")
|
to_chat(user, "You can't sharpen [W] with [src]!")
|
||||||
|
|||||||
Reference in New Issue
Block a user