mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-28 01:51:46 +00:00
## About The Pull Request Melee attack chain now has a list passed along with it, `attack_modifiers`, which you can stick force modifiers to change the resulting attack This is basically a soft implementation of damage packets until a more definitive pr, but one that only applies to item attack chain, and not unarmed attacks. This change was done to facilitate a baton refactor - batons no longer hack together their own attack chain, and are now integrated straight into the real attack chain. This refactor itself was done because batons don't send any attack signals, which has been annoying in the past (for swing combat). ## Changelog 🆑 Melbert refactor: Batons have been refactored again. Baton stuns now properly count as an attack, when before it was a nothing. Report any oddities, particularly in regards to harmbatonning vs normal batonning. refactor: The method of adjusting item damage mid-attack has been refactored - some affected items include the Nullblade and knives. Report any strange happenings with damage numbers. refactor: A few objects have been moved to the new interaction chain - records consoles, mawed crucible, alien weeds and space vines, hedges, restaurant portals, and some mobs - to name a few. fix: Spears only deal bonus damage against secure lockers, not all closet types (including crates) /🆑
126 lines
4.0 KiB
Plaintext
126 lines
4.0 KiB
Plaintext
// Corn
|
|
/obj/item/seeds/corn
|
|
name = "corn seed pack"
|
|
desc = "I don't mean to sound corny..."
|
|
icon_state = "seed-corn"
|
|
species = "corn"
|
|
plantname = "Corn Stalks"
|
|
product = /obj/item/food/grown/corn
|
|
maturation = 8
|
|
potency = 20
|
|
instability = 50 //Corn used to be wheatgrass, before being cultivated for generations.
|
|
growthstages = 3
|
|
growing_icon = 'icons/obj/service/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, /obj/item/seeds/corn/pepper)
|
|
reagents_add = list(/datum/reagent/consumable/nutriment/fat/oil/corn = 0.2, /datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
|
|
|
|
/obj/item/food/grown/corn
|
|
seed = /obj/item/seeds/corn
|
|
name = "ear of corn"
|
|
desc = "Needs some butter!"
|
|
icon_state = "corn"
|
|
trash_type = /obj/item/grown/corncob
|
|
bite_consumption_mod = 2
|
|
foodtypes = VEGETABLES
|
|
grind_results = list(/datum/reagent/consumable/cornmeal = 0, /datum/reagent/consumable/nutriment/fat/oil/corn = 0)
|
|
juice_typepath = /datum/reagent/consumable/corn_starch
|
|
tastes = list("corn" = 1)
|
|
distill_reagent = /datum/reagent/consumable/ethanol/whiskey
|
|
|
|
/obj/item/food/grown/corn/make_bakeable()
|
|
AddComponent(/datum/component/bakeable, /obj/item/food/oven_baked_corn, rand(15 SECONDS, 25 SECONDS), TRUE, TRUE)
|
|
|
|
/obj/item/food/grown/corn/make_microwaveable()
|
|
AddElement(/datum/element/microwavable, /obj/item/food/popcorn)
|
|
|
|
/obj/item/grown/corncob
|
|
seed = /obj/item/seeds/corn
|
|
name = "corn cob"
|
|
desc = "A reminder of meals gone by."
|
|
icon_state = "corncob"
|
|
inhand_icon_state = null
|
|
w_class = WEIGHT_CLASS_TINY
|
|
throwforce = 0
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
grind_results = list(/datum/reagent/cellulose = 10) //really partially hemicellulose
|
|
|
|
/obj/item/grown/corncob/attackby(obj/item/grown/W, mob/user, list/modifiers, list/attack_modifiers)
|
|
if(W.get_sharpness())
|
|
to_chat(user, span_notice("You use [W] to fashion a pipe out of the corn cob!"))
|
|
new /obj/item/cigarette/pipe/cobpipe (user.loc)
|
|
qdel(src)
|
|
else
|
|
return ..()
|
|
|
|
// Snapcorn
|
|
/obj/item/seeds/corn/snapcorn
|
|
name = "snapcorn seed pack"
|
|
desc = "Oh snap!"
|
|
icon_state = "seed-snapcorn"
|
|
species = "snapcorn"
|
|
plantname = "Snapcorn Stalks"
|
|
product = /obj/item/grown/snapcorn
|
|
mutatelist = null
|
|
rarity = 10
|
|
|
|
/obj/item/grown/snapcorn
|
|
seed = /obj/item/seeds/corn/snapcorn
|
|
name = "snap corn"
|
|
desc = "A cob with snap pops."
|
|
icon_state = "snapcorn"
|
|
inhand_icon_state = null
|
|
w_class = WEIGHT_CLASS_TINY
|
|
throwforce = 0
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
var/snap_pops = 1
|
|
|
|
/obj/item/grown/snapcorn/add_juice()
|
|
..()
|
|
snap_pops = max(round(seed.potency/8), 1)
|
|
|
|
/obj/item/grown/snapcorn/attack_self(mob/user)
|
|
..()
|
|
to_chat(user, span_notice("You pick a snap pop from the cob."))
|
|
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/grown/corncob/snap(user.loc)
|
|
qdel(src)
|
|
|
|
/obj/item/grown/corncob/snap
|
|
seed = /obj/item/seeds/corn/snapcorn
|
|
name = "snap corn cob"
|
|
desc = "A reminder of pranks gone by."
|
|
|
|
//Pepper-corn - Heh funny.
|
|
/obj/item/seeds/corn/pepper
|
|
name = "pepper-corn seed pack"
|
|
desc = "If Peter picked a pack of pepper-corn..."
|
|
icon_state = "seed-peppercorn"
|
|
species = "peppercorn"
|
|
plantname = "Pepper-Corn Stalks"
|
|
product = /obj/item/food/grown/peppercorn
|
|
mutatelist = null
|
|
reagents_add = list(/datum/reagent/consumable/blackpepper = 0.2, /datum/reagent/consumable/nutriment/vitamin = 0.04, /datum/reagent/consumable/nutriment = 0.1)
|
|
|
|
/obj/item/food/grown/peppercorn
|
|
seed = /obj/item/seeds/corn/pepper
|
|
name = "ear of pepper-peppercorn"
|
|
desc = "This dusty monster needs god..."
|
|
icon_state = "peppercorn"
|
|
trash_type = /obj/item/grown/corncob/pepper
|
|
foodtypes = VEGETABLES
|
|
grind_results = list(/datum/reagent/consumable/blackpepper = 0)
|
|
tastes = list("pepper" = 1, "sneezing" = 1)
|
|
|
|
/obj/item/grown/corncob/pepper
|
|
seed = /obj/item/seeds/corn/pepper
|
|
name = "pepper corn cob"
|
|
desc = "A reminder of genetic abominations gone by."
|