mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 11:34:19 +01:00
d030b8afb8
* e * stuff not in the stack folder * A * Update gift_wrappaper.dm * golg * dancing around SHOULD_NOT_SLEEP and storage still being legacy * Update asteroid_floors.dm * Update medical_packs.dm * Update medical_packs.dm
71 lines
2.2 KiB
Plaintext
71 lines
2.2 KiB
Plaintext
/obj/item/seeds/cotton
|
|
name = "pack of cotton seeds"
|
|
desc = "A pack of seeds that'll grow into a cotton plant. Assistants make good free labor if necessary."
|
|
icon_state = "seed-cotton"
|
|
species = "cotton"
|
|
plantname = "Cotton"
|
|
icon_harvest = "cotton-harvest"
|
|
product = /obj/item/grown/cotton
|
|
lifespan = 35
|
|
endurance = 25
|
|
maturation = 15
|
|
production = 1
|
|
yield = 2
|
|
potency = 50
|
|
growthstages = 3
|
|
icon_dead = "cotton-dead"
|
|
mutatelist = list(/obj/item/seeds/cotton/durathread)
|
|
|
|
/obj/item/grown/cotton
|
|
seed = /obj/item/seeds/cotton
|
|
name = "cotton bundle"
|
|
desc = "A fluffy bundle of cotton."
|
|
icon_state = "cotton"
|
|
w_class = WEIGHT_CLASS_TINY
|
|
throw_range = 3
|
|
attack_verb = list("pomfed")
|
|
var/cotton_type = /obj/item/stack/sheet/cotton
|
|
var/cotton_name = "raw cotton"
|
|
|
|
/obj/item/grown/cotton/activate_self(mob/user)
|
|
if(..())
|
|
return
|
|
|
|
user.show_message(SPAN_NOTICE("You pull some [cotton_name] out of [src]!"), 1)
|
|
var/seed_modifier = 0
|
|
if(seed)
|
|
seed_modifier = round(seed.potency / 25)
|
|
var/obj/item/stack/cotton = new cotton_type(user.loc, 1 + seed_modifier)
|
|
var/old_cotton_amount = cotton.amount
|
|
for(var/obj/item/stack/ST in user.loc)
|
|
if(ST != cotton && istype(ST, cotton_type) && ST.amount < ST.max_amount)
|
|
ST.item_interaction(cotton, user)
|
|
if(cotton.amount > old_cotton_amount)
|
|
to_chat(user, SPAN_NOTICE("You add the newly-formed [cotton_name] to the stack. It now contains [cotton.amount] [cotton_name]."))
|
|
qdel(src)
|
|
|
|
//reinforced mutated variant
|
|
/obj/item/seeds/cotton/durathread
|
|
name = "pack of durathread seeds"
|
|
desc = "A pack of seeds that'll grow into an extremely durable thread that could easily rival plasteel if woven properly."
|
|
icon_state = "seed-durathread"
|
|
species = "durathread"
|
|
plantname = "Durathread"
|
|
icon_harvest = "durathread-harvest"
|
|
product = /obj/item/grown/cotton/durathread
|
|
lifespan = 80
|
|
endurance = 50
|
|
mutatelist = list()
|
|
|
|
/obj/item/grown/cotton/durathread
|
|
seed = /obj/item/seeds/cotton/durathread
|
|
name = "durathread bundle"
|
|
desc = "A tough bundle of durathread, good luck unraveling this."
|
|
icon_state = "durathread"
|
|
force = 5
|
|
throwforce = 5
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
attack_verb = list("bashed", "battered", "bludgeoned", "whacked")
|
|
cotton_type = /obj/item/stack/sheet/cotton/durathread
|
|
cotton_name = "raw durathread"
|