Big enough carrots get a chance to be turned into full-sized carrot swords instead of shivs (#79718)
## About The Pull Request A funny little interaction I came up with while sitting in a toilet. Since high potency carrots can be quite big, you could definetly cut more than a shiv out of them. A sword, for example. A bit of reward for making such a high-potency carrot in the first place.  ## Why It's Good For The Game Comedic purpose, and who knows, maybe someone will be a gimmick botany-knight based on these? ## Changelog 🆑 add: Adds a chance that, when sharpened, a sufficiently potent carrot will turn into a sword instead of a shiv. /🆑 --------- Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com> Co-authored-by: carlarctg <53100513+carlarctg@users.noreply.github.com>
@@ -113,6 +113,21 @@ for further reading, please see: https://github.com/tgstation/tgstation/pull/301
|
||||
throw_range = 5
|
||||
armour_penetration = 35
|
||||
|
||||
/obj/item/claymore/carrot
|
||||
name = "carrot sword"
|
||||
desc = "A full-sized carrot sword. Definitely \not\ good for the eyes, not anymore."
|
||||
icon_state = "carrot_sword"
|
||||
inhand_icon_state = "carrot_sword"
|
||||
worn_icon_state = "carrot_sword"
|
||||
flags_1 = NONE
|
||||
force = 19
|
||||
throwforce = 7
|
||||
throw_speed = 3
|
||||
throw_range = 7
|
||||
armour_penetration = 5
|
||||
block_chance = 10
|
||||
resistance_flags = NONE
|
||||
|
||||
/obj/item/claymore/highlander //ALL COMMENTS MADE REGARDING THIS SWORD MUST BE MADE IN ALL CAPS
|
||||
desc = "<b><i>THERE CAN BE ONLY ONE, AND IT WILL BE YOU!!!</i></b>\nActivate it in your hand to point to the nearest victim."
|
||||
flags_1 = CONDUCT_1
|
||||
|
||||
@@ -27,11 +27,17 @@
|
||||
|
||||
/obj/item/food/grown/carrot/attackby(obj/item/I, mob/user, params)
|
||||
if(I.get_sharpness())
|
||||
to_chat(user, span_notice("You sharpen the carrot into a shiv with [I]."))
|
||||
var/obj/item/knife/shiv/carrot/Shiv = new /obj/item/knife/shiv/carrot
|
||||
var/carrot_blade
|
||||
var/carrot_sword_chance = (max(0, seed.potency - 50) / 50)
|
||||
if (prob(carrot_sword_chance))
|
||||
carrot_blade = new /obj/item/claymore/carrot
|
||||
to_chat(user, span_notice("You sharpen the carrot into a sword with [I]."))
|
||||
else
|
||||
carrot_blade = new /obj/item/knife/shiv/carrot
|
||||
to_chat(user, span_notice("You sharpen the carrot into a shiv with [I]."))
|
||||
remove_item_from_storage(user)
|
||||
qdel(src)
|
||||
user.put_in_hands(Shiv)
|
||||
user.put_in_hands(carrot_blade)
|
||||
else
|
||||
return ..()
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 117 KiB After Width: | Height: | Size: 118 KiB |
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |