mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-28 10:01:58 +00:00
Blood drips icons are now in blood.dmi instead of drip.dmi (which only had the 5 drip sprites). Moved projectiles, guns, casings and ammo boxes to be in the right files. Please don't put your gun with its projectile, ammo casing and ammo box all the same file. I split growing.dmi into 5 smaller files so we don't get close to the 512 icon limit again. Each seed has a var to indicate which icon file to use when planted. Fixes code for heavy pulse laser projectile to be less awful.
84 lines
2.3 KiB
Plaintext
84 lines
2.3 KiB
Plaintext
// Corn
|
|
/obj/item/seeds/corn
|
|
name = "pack of corn seeds"
|
|
desc = "I don't mean to sound corny..."
|
|
icon_state = "seed-corn"
|
|
species = "corn"
|
|
plantname = "Corn Stalks"
|
|
product = /obj/item/weapon/reagent_containers/food/snacks/grown/corn
|
|
maturation = 8
|
|
oneharvest = 1
|
|
potency = 20
|
|
growthstages = 3
|
|
growing_icon = 'icons/obj/hydroponics/growing_vegetables.dmi'
|
|
icon_grow = "corn-grow" // Uses one growth icons set for all the subtypes
|
|
icon_dead = "corn-dead" // Same for the dead icon
|
|
mutatelist = list(/obj/item/seeds/corn/snapcorn)
|
|
reagents_add = list("cornoil" = 0.2, "vitamin" = 0.04, "nutriment" = 0.1)
|
|
|
|
/obj/item/weapon/reagent_containers/food/snacks/grown/corn
|
|
seed = /obj/item/seeds/corn
|
|
name = "ear of corn"
|
|
desc = "Needs some butter!"
|
|
icon_state = "corn"
|
|
cooked_type = /obj/item/weapon/reagent_containers/food/snacks/popcorn
|
|
filling_color = "#FFFF00"
|
|
trash = /obj/item/weapon/grown/corncob
|
|
bitesize_mod = 2
|
|
|
|
/obj/item/weapon/grown/corncob
|
|
name = "corn cob"
|
|
desc = "A reminder of meals gone by."
|
|
icon_state = "corncob"
|
|
item_state = "corncob"
|
|
w_class = 1
|
|
throwforce = 0
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
|
|
/obj/item/weapon/grown/corncob/attackby(obj/item/weapon/grown/W, mob/user, params)
|
|
..()
|
|
if(W.is_sharp())
|
|
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)
|
|
user.unEquip(src)
|
|
qdel(src)
|
|
return
|
|
|
|
// Snapcorn
|
|
/obj/item/seeds/corn/snapcorn
|
|
name = "pack of snapcorn seeds"
|
|
desc = "Oh snap!"
|
|
icon_state = "seed-snapcorn"
|
|
species = "snapcorn"
|
|
plantname = "Snapcorn Stalks"
|
|
product = /obj/item/weapon/grown/snapcorn
|
|
mutatelist = list()
|
|
rarity = 10
|
|
|
|
/obj/item/weapon/grown/snapcorn
|
|
seed = /obj/item/seeds/corn/snapcorn
|
|
name = "snap corn"
|
|
desc = "A cob with snap pops"
|
|
icon_state = "snapcorn"
|
|
item_state = "corncob"
|
|
w_class = 1
|
|
throwforce = 0
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
var/snap_pops = 1
|
|
|
|
/obj/item/weapon/grown/snapcorn/add_juice()
|
|
..()
|
|
snap_pops = max(round(seed.potency/8), 1)
|
|
|
|
/obj/item/weapon/grown/snapcorn/attack_self(mob/user)
|
|
..()
|
|
user << "<span class='notice'>You pick up a snap pops from the cob.</span>"
|
|
var/obj/item/toy/snappop/S = new /obj/item/toy/snappop(user.loc)
|
|
if(ishuman(user))
|
|
user.put_in_hands(S)
|
|
snap_pops -= 1
|
|
if(!snap_pops)
|
|
new /obj/item/weapon/grown/corncob(user.loc)
|
|
qdel(src) |