mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 21:18:37 +01:00
Fix sharpness-related issues (#44830)
Turned off energy weapons can no longer cut down trees, destroy wooden walls, harvest lavaland plants and make planks.
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
harvested = FALSE
|
||||
|
||||
/obj/structure/flora/ash/attackby(obj/item/W, mob/user, params)
|
||||
if(!harvested && needs_sharp_harvest && W.sharpness)
|
||||
if(!harvested && needs_sharp_harvest && W.is_sharp())
|
||||
user.visible_message("<span class='notice'>[user] starts to harvest from [src] with [W].</span>","<span class='notice'>You begin to harvest from [src] with [W].</span>")
|
||||
if(do_after(user, harvest_time, target = src))
|
||||
harvest(user)
|
||||
|
||||
Reference in New Issue
Block a user