mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
min -> max (#22165)
This commit is contained in:
committed by
MadmanMartian
parent
ced5d4a70e
commit
3f759dafa6
@@ -103,7 +103,7 @@
|
|||||||
return
|
return
|
||||||
playsound(loc, 'sound/items/hammer_strike.ogg', 50, 1)
|
playsound(loc, 'sound/items/hammer_strike.ogg', 50, 1)
|
||||||
if(istype(A,/obj/item/weapon/hammer))
|
if(istype(A,/obj/item/weapon/hammer))
|
||||||
strikes+=min(1, round(A.quality/2))
|
strikes+=max(1, round(A.quality/2))
|
||||||
else if(istype(A,/obj/item/weapon/storage/toolbox))
|
else if(istype(A,/obj/item/weapon/storage/toolbox))
|
||||||
strikes+=0.25
|
strikes+=0.25
|
||||||
if(strikes == strikes_required)
|
if(strikes == strikes_required)
|
||||||
@@ -128,4 +128,4 @@
|
|||||||
if(mat)
|
if(mat)
|
||||||
result.dorfify(mat, strikes>strikes_required?(strikes/strikes_required):0)
|
result.dorfify(mat, strikes>strikes_required?(strikes/strikes_required):0)
|
||||||
result.forceMove(get_turf(src))
|
result.forceMove(get_turf(src))
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|||||||
Reference in New Issue
Block a user