mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-30 04:02:33 +00:00
Largely a port of https://github.com/Baystation12/Baystation12/pull/8038 (Credit to Zuhayr for his hard work on botany) Breakdown of the port: - Plant traits have been expanded drastically - You want a bio-luminescent tomato that explodes into a cloud of acid when thrown or stepped on? Or maybe a corn vine that entangles people and injects them with mannitol and it's harvests that can be used as a battery? Totally possible. - Adds new random seeds! Replaces the egg-plant seed in the exotic seeds crate from cargo with 2 of these. - Literally random, they have randomly generated stats, chemicals, and traits. Great for researching, and/or wasting cargo's supply points. - Plant analyzers can now print off the last scan they recorded, meaning you can distribute copies of the report to validate your claims of having the dankest weed on station. - Potatoes, carrots, watermelons, soybeans, and pumpkins can all be sliced/diced/carved with ANY sharp object, such as knives, hatchets, glass shards, and e-swords. - This should give the chef a bit more room to make it look like he actually is doing the work by slicing up fries by hand. The processor still also works. - New reagent: Wood Pulp - Currently has no use in recipes, but any plant with this reagent in it can be chopped into planks with a hatchet. Did someone order some Ambrosia Deus planks? - Also, vines with woodpulp are dense. You have been warned. Now onto the stuff I did in addition to the stuff from Bay. - Fixed typos where plasma was mistakenly called "phoron" in the port. (Sorry bay) - Replaced bay's botany mutation chances with our tiered mutation system. - Re-re-added tobacco, space tobacco, tea aspera, tea astra, coffee arabica, and coffee robusta. - Re-enabled the rolling of joints - Made it possible to hand-roll cigarettes from tobacco / space tobacco. (A requested / promised addition) - Just like with joints, it will inherit any chems in the tobacco, has the same reagent capacity as a joint, but looks and smokes like a cig (lasts as long as the cigarettes) with a different name/description to differentiate it from pre-made cigs. - Corn can now be juiced in the grinder, in addition to grinding it. Grinding corn will result in it's contained reagents (like corn starch), while juicing corn will result in corn oil. - Re-added the additional plant analyzer information when scanning trays (displays age, weed level, etc) Also cleaned up the recipes_microwave.dm file, removing the commented out recipes that were distributed to the other machines during the Kitchen Overhaul. Shortens the file a bit and makes it more readable. I probably forgot stuff, so I will add things as I remember them / they get pointed out.
240 lines
7.5 KiB
Plaintext
240 lines
7.5 KiB
Plaintext
/* Hydroponic stuff
|
|
* Contains:
|
|
* Sunflowers
|
|
* Nettle
|
|
* Deathnettle
|
|
* Corbcob
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
* SeedBag
|
|
*/
|
|
//uncomment when this is updated to match storage update
|
|
/*
|
|
/obj/item/weapon/seedbag
|
|
icon = 'icons/obj/hydroponics.dmi'
|
|
icon_state = "seedbag"
|
|
name = "Seed Bag"
|
|
desc = "A small satchel made for organizing seeds."
|
|
var/mode = 1; //0 = pick one at a time, 1 = pick all on tile
|
|
var/capacity = 500; //the number of seeds it can carry.
|
|
slot_flags = SLOT_BELT
|
|
w_class = 1
|
|
var/list/item_quants = list()
|
|
|
|
/obj/item/weapon/seedbag/attack_self(mob/user as mob)
|
|
user.machine = src
|
|
interact(user)
|
|
|
|
/obj/item/weapon/seedbag/verb/toggle_mode()
|
|
set name = "Switch Bagging Method"
|
|
set category = "Object"
|
|
|
|
mode = !mode
|
|
switch (mode)
|
|
if(1)
|
|
usr << "The bag now picks up all seeds in a tile at once."
|
|
if(0)
|
|
usr << "The bag now picks up one seed pouch at a time."
|
|
|
|
/obj/item/seeds/attackby(var/obj/item/O as obj, var/mob/user as mob, params)
|
|
..()
|
|
if (istype(O, /obj/item/weapon/seedbag))
|
|
var/obj/item/weapon/seedbag/S = O
|
|
if (S.mode == 1)
|
|
for (var/obj/item/seeds/G in locate(src.x,src.y,src.z))
|
|
if (S.contents.len < S.capacity)
|
|
S.contents += G;
|
|
if(S.item_quants[G.name])
|
|
S.item_quants[G.name]++
|
|
else
|
|
S.item_quants[G.name] = 1
|
|
else
|
|
user << "\blue The seed bag is full."
|
|
S.updateUsrDialog()
|
|
return
|
|
user << "\blue You pick up all the seeds."
|
|
else
|
|
if (S.contents.len < S.capacity)
|
|
S.contents += src;
|
|
if(S.item_quants[name])
|
|
S.item_quants[name]++
|
|
else
|
|
S.item_quants[name] = 1
|
|
else
|
|
user << "\blue The seed bag is full."
|
|
S.updateUsrDialog()
|
|
return
|
|
|
|
/obj/item/weapon/seedbag/interact(mob/user as mob)
|
|
|
|
var/dat = "<TT><b>Select an item:</b><br>"
|
|
|
|
if (contents.len == 0)
|
|
dat += "<font color = 'red'>No seeds loaded!</font>"
|
|
else
|
|
for (var/O in item_quants)
|
|
if(item_quants[O] > 0)
|
|
var/N = item_quants[O]
|
|
dat += "<FONT color = 'blue'><B>[capitalize(O)]</B>:"
|
|
dat += " [N] </font>"
|
|
dat += "<a href='byond://?src=\ref[src];vend=[O]'>Vend</A>"
|
|
dat += "<br>"
|
|
|
|
dat += "<br><a href='byond://?src=\ref[src];unload=1'>Unload All</A>"
|
|
dat += "</TT>"
|
|
user << browse("<HEAD><TITLE>Seedbag Supplies</TITLE></HEAD><TT>[dat]</TT>", "window=seedbag")
|
|
onclose(user, "seedbag")
|
|
return
|
|
|
|
/obj/item/weapon/seedbag/Topic(href, href_list)
|
|
if(..())
|
|
return
|
|
|
|
usr.machine = src
|
|
if ( href_list["vend"] )
|
|
var/N = href_list["vend"]
|
|
|
|
if(item_quants[N] <= 0) // Sanity check, there are probably ways to press the button when it shouldn't be possible.
|
|
return
|
|
|
|
item_quants[N] -= 1
|
|
for(var/obj/O in contents)
|
|
if(O.name == N)
|
|
O.loc = get_turf(src)
|
|
usr.put_in_hands(O)
|
|
break
|
|
|
|
else if ( href_list["unload"] )
|
|
item_quants.Cut()
|
|
for(var/obj/O in contents )
|
|
O.loc = get_turf(src)
|
|
|
|
src.updateUsrDialog()
|
|
return
|
|
|
|
/obj/item/weapon/seedbag/updateUsrDialog()
|
|
var/list/nearby = range(1, src)
|
|
for(var/mob/M in nearby)
|
|
if ((M.client && M.machine == src))
|
|
src.attack_self(M)
|
|
*/
|
|
/*
|
|
* Sunflower
|
|
*/
|
|
|
|
/obj/item/weapon/grown/sunflower/attack(mob/M as mob, mob/user as mob)
|
|
M << "<font color='green'><b> [user] smacks you with a sunflower!</font><font color='yellow'><b>FLOWER POWER<b></font>"
|
|
user << "<font color='green'> Your sunflower's </font><font color='yellow'><b>FLOWER POWER</b></font><font color='green'> strikes [M]</font>"
|
|
|
|
/*
|
|
* Sun/Novaflower
|
|
*/
|
|
/obj/item/weapon/grown/novaflower/attack(mob/M as mob, mob/user as mob)
|
|
M << "<font color='green'><b> [user] smacks you with a novaflower!</font><font color='yellow'><b>FLOWER POWER<b></font>"
|
|
user << "<font color='green'> Your novaflower's </font><font color='yellow'><b>FLOWER POWER</b></font><font color='green'> strikes [M]</font>"
|
|
|
|
/obj/item/weapon/grown/novaflower/attack(mob/living/carbon/M as mob, mob/user as mob)
|
|
if(!..()) return
|
|
if(istype(M, /mob/living))
|
|
M << "\red You are heated by the warmth of the of the [name]!"
|
|
M.bodytemperature += potency/2 * TEMPERATURE_DAMAGE_COEFFICIENT
|
|
|
|
/obj/item/weapon/grown/novaflower/pickup(mob/living/carbon/human/user as mob)
|
|
if(!user.gloves)
|
|
user << "\red The [name] burns your bare hand!"
|
|
user.adjustFireLoss(rand(1,5))
|
|
/*
|
|
/*
|
|
* Nettle
|
|
*/
|
|
/obj/item/weapon/grown/nettle/pickup(mob/living/carbon/human/user as mob)
|
|
if(!user.gloves)
|
|
user << "\red The nettle burns your bare hand!"
|
|
if(istype(user, /mob/living/carbon/human))
|
|
var/organ = ((user.hand ? "l_":"r_") + "arm")
|
|
var/obj/item/organ/external/affecting = user.get_organ(organ)
|
|
if(affecting.take_damage(0,force))
|
|
user.UpdateDamageIcon()
|
|
else
|
|
user.take_organ_damage(0,force)
|
|
|
|
/obj/item/weapon/grown/nettle/afterattack(atom/A as mob|obj, mob/user as mob, proximity)
|
|
if(!proximity) return
|
|
if(force > 0)
|
|
force -= rand(1,(force/3)+1) // When you whack someone with it, leaves fall off
|
|
playsound(loc, 'sound/weapons/bladeslice.ogg', 50, 1, -1)
|
|
else
|
|
usr << "All the leaves have fallen off the nettle from violent whacking."
|
|
del(src)
|
|
|
|
/obj/item/weapon/grown/nettle/changePotency(newValue) //-QualityVan
|
|
potency = newValue
|
|
force = round((5+potency/5), 1)
|
|
|
|
/*
|
|
* Deathnettle
|
|
*/
|
|
|
|
/obj/item/weapon/grown/deathnettle/pickup(mob/living/carbon/human/user as mob)
|
|
if(!user.gloves)
|
|
if(istype(user, /mob/living/carbon/human))
|
|
var/organ = ((user.hand ? "l_":"r_") + "arm")
|
|
var/obj/item/organ/external/affecting = user.get_organ(organ)
|
|
if(affecting.take_damage(0,force))
|
|
user.UpdateDamageIcon()
|
|
else
|
|
user.take_organ_damage(0,force)
|
|
if(prob(50))
|
|
user.Paralyse(5)
|
|
user << "\red You are stunned by the Deathnettle when you try picking it up!"
|
|
|
|
/obj/item/weapon/grown/deathnettle/attack(mob/living/carbon/M as mob, mob/user as mob)
|
|
if(!..()) return
|
|
if(istype(M, /mob/living))
|
|
M << "\red You are stunned by the powerful acid of the Deathnettle!"
|
|
|
|
M.attack_log += text("\[[time_stamp()]\] <font color='orange'>Had the [src.name] used on them by [user.name] ([user.ckey])</font>")
|
|
user.attack_log += text("\[[time_stamp()]\] <font color='red'>Used the [src.name] on [M.name] ([M.ckey])</font>")
|
|
msg_admin_attack("[user.name] ([user.ckey])[isAntag(user) ? "(ANTAG)" : ""] used the [src.name] on [M.name] ([M.ckey]) (<A HREF='?_src_=holder;adminplayerobservecoodjump=1;X=[user.x];Y=[user.y];Z=[user.z]'>JMP</a>)")
|
|
|
|
if(!iscarbon(user))
|
|
M.LAssailant = null
|
|
else
|
|
M.LAssailant = user
|
|
|
|
playsound(loc, 'sound/weapons/bladeslice.ogg', 50, 1, -1)
|
|
|
|
M.eye_blurry += force/7
|
|
if(prob(20))
|
|
M.Paralyse(force/6)
|
|
M.Weaken(force/15)
|
|
M.drop_item()
|
|
|
|
/obj/item/weapon/grown/deathnettle/afterattack(atom/A as mob|obj, mob/user as mob, proximity)
|
|
if(!proximity) return
|
|
if (force > 0)
|
|
force -= rand(1,(force/3)+1) // When you whack someone with it, leaves fall off
|
|
|
|
else
|
|
usr << "All the leaves have fallen off the deathnettle from violent whacking."
|
|
del(src)
|
|
|
|
/obj/item/weapon/grown/deathnettle/changePotency(newValue) //-QualityVan
|
|
potency = newValue
|
|
force = round((5+potency/2.5), 1)
|
|
|
|
|
|
/*
|
|
* Corncob
|
|
*/
|
|
/obj/item/weapon/corncob/attackby(obj/item/weapon/W as obj, mob/user as mob, params)
|
|
..()
|
|
if(istype(W, /obj/item/weapon/circular_saw) || istype(W, /obj/item/weapon/hatchet) || istype(W, /obj/item/weapon/kitchen/utensil/knife) || istype(W, /obj/item/weapon/kitchenknife) || istype(W, /obj/item/weapon/kitchenknife/ritual))
|
|
user << "<span class='notice'>You use [W] to fashion a pipe out of the corn cob!</span>"
|
|
new /obj/item/clothing/mask/cigarette/pipe/cobpipe (user.loc)
|
|
del(src)
|
|
return
|
|
*/ |