Merge pull request #19390 from PKPenguin321/patch-5

Replace istype with is_sharp
This commit is contained in:
oranges
2016-07-20 20:15:23 +12:00
committed by GitHub
+2 -2
View File
@@ -24,7 +24,7 @@
bitesize_mod = 2
/obj/item/weapon/reagent_containers/food/snacks/grown/carrot/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/kitchen/knife) || istype(I, /obj/item/weapon/hatchet))
if(I.is_sharp())
user << "<span class='notice'>You sharpen the carrot into a shiv with [I].</span>"
var/obj/item/weapon/kitchen/knife/carrotshiv/Shiv = new /obj/item/weapon/kitchen/knife/carrotshiv
if(!remove_item_from_storage(user))
@@ -100,4 +100,4 @@
name = "red beet"
desc = "You can't beat red beet."
icon_state = "redbeet"
bitesize_mod = 2
bitesize_mod = 2