Files
Paradise/code/modules/hydroponics/grown/nettle.dm
Marm 51f870595e Nerfs Deathnettle (#18128)
* Nerfs Deathnettle (I hate plants)

* Update nettle.dm

Early returns are good apparently.

* Stage of grief: fear

Should fix errors?

* Update code/modules/hydroponics/grown/nettle.dm

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
2022-06-30 19:00:29 +01:00

113 lines
3.5 KiB
Plaintext

/obj/item/seeds/nettle
name = "pack of nettle seeds"
desc = "These seeds grow into nettles."
icon_state = "seed-nettle"
species = "nettle"
plantname = "Nettles"
product = /obj/item/grown/nettle/basic
lifespan = 30
endurance = 40 // tuff like a toiger
yield = 4
growthstages = 5
genes = list(/datum/plant_gene/trait/repeated_harvest, /datum/plant_gene/trait/plant_type/weed_hardy)
mutatelist = list(/obj/item/seeds/nettle/death)
reagents_add = list("wasabi" = 0.15)
/obj/item/seeds/nettle/death
name = "pack of death-nettle seeds"
desc = "These seeds grow into death-nettles."
icon_state = "seed-deathnettle"
species = "deathnettle"
plantname = "Death Nettles"
product = /obj/item/grown/nettle/death
endurance = 25
maturation = 8
yield = 2
genes = list(/datum/plant_gene/trait/repeated_harvest, /datum/plant_gene/trait/plant_type/weed_hardy, /datum/plant_gene/trait/stinging)
mutatelist = list()
reagents_add = list("facid" = 0.25, "sacid" = 0.25)
rarity = 20
/obj/item/grown/nettle //abstract type
name = "nettle"
desc = "It's probably <B>not</B> wise to touch it with bare hands..."
icon = 'icons/obj/items.dmi'
icon_state = "nettle"
damtype = "fire"
force = 15
hitsound = 'sound/weapons/bladeslice.ogg'
throwforce = 5
w_class = WEIGHT_CLASS_NORMAL // Two nettle/deathnettle fit in a pneumatic cannon. They fit in plant bags.
throw_speed = 1
throw_range = 3
origin_tech = "combat=3"
attack_verb = list("stung")
/obj/item/grown/nettle/suicide_act(mob/user)
user.visible_message("<span class='suicide'>[user] is eating some of [src]! It looks like [user.p_theyre()] trying to commit suicide.</span>")
return BRUTELOSS|TOXLOSS
/obj/item/grown/nettle/pickup(mob/living/user)
..()
if(!ishuman(user))
return FALSE
var/mob/living/carbon/human/H = user
if(H.gloves)
return FALSE
if(HAS_TRAIT(H, TRAIT_PIERCEIMMUNE))
return FALSE
var/organ = ((H.hand ? "l_":"r_") + "arm")
var/obj/item/organ/external/affecting = H.get_organ(organ)
if(affecting)
if(affecting.receive_damage(0, force))
H.UpdateDamageIcon()
to_chat(H, "<span class='userdanger'>The nettle burns your bare hand!</span>")
return TRUE
/obj/item/grown/nettle/afterattack(atom/A as mob|obj, mob/user,proximity)
if(!proximity)
return
if(force > 0)
force -= rand(1, (force / 3) + 1) // When you whack someone with it, leaves fall off
else
to_chat(usr, "All the leaves have fallen off the nettle from violent whacking.")
usr.unEquip(src)
qdel(src)
/obj/item/grown/nettle/basic
seed = /obj/item/seeds/nettle
/obj/item/grown/nettle/basic/add_juice()
..()
force = round((5 + seed.potency / 10), 1) // Maximum damage 15.
/obj/item/grown/nettle/death
seed = /obj/item/seeds/nettle/death
name = "deathnettle"
desc = "The <span class='danger'>glowing</span> nettle incites <span class='boldannounce'>rage</span> in you just from looking at it!"
icon_state = "deathnettle"
force = 25
throwforce = 10
origin_tech = "combat=5"
/obj/item/grown/nettle/death/add_juice()
..()
force = round((5 + seed.potency / 5), 1) // Maximum damage 25.
/obj/item/grown/nettle/death/pickup(mob/living/carbon/user)
if(..())
if(prob(50))
user.Weaken(10 SECONDS)
to_chat(user, "<span class='userdanger'>You are stunned by the Deathnettle when you try picking it up!</span>")
/obj/item/grown/nettle/death/attack(mob/living/carbon/M, mob/user)
..()
if(!isliving(M))
return
to_chat(M, "<span class='danger'>You flinch as you are struck by \the [src]!</span>")
add_attack_logs(user, M, "Hit with [src]")
M.AdjustEyeBlurry(force * 2) // Maximum duration 5 seconds per hit.