mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-19 18:17:52 +01:00
* refactor: Attack chain, initial setup. * migrate curtain to make dreamchecker happy * update thurible * don't call attacked_by separately for legacy attack chain * remove duplicate proc * condense similar code, put allowances for legacy code in new procs * update docs, include diagram source * add comment on how to update diagram * fix admonition * mindflayer updates * remove commented out code * clarify all steps * after_attack should be overridable * whoops * retrofit recent changes * duh, can't restrict this yet because of tool_acts * i hate ore bags with the fire of a thousand suns * return correct value for object attack logic * Various cleanups. We don't want to attempt to pull stuff out of `/obj/item/attackby`, because those pieces are part of the related objects' migrations, not `/obj/item` itself. Attempting to do this causes knockon effects where things expected to call e.g. `/obj/item/storage/attackby` in the call chain were not ferried over to the new item interaction code, because the related objects hadn't actually been migrated over yet. I've used refactoring /obj/vehicle as the example for migrating `attackby` methods instead. * simplify some argument names * fuck it * make it do the thing * Rename CI module call * Prove that CI works * improve test output * aaand fix it again * fix curtain tool interactions * fix compile error * fix compile error * Better docs, introduce migration plan tool.
63 lines
1.8 KiB
Plaintext
63 lines
1.8 KiB
Plaintext
// Pumpkin
|
|
/obj/item/seeds/pumpkin
|
|
name = "pack of pumpkin seeds"
|
|
desc = "These seeds grow into pumpkin vines."
|
|
icon_state = "seed-pumpkin"
|
|
species = "pumpkin"
|
|
plantname = "Pumpkin Vines"
|
|
product = /obj/item/food/grown/pumpkin
|
|
lifespan = 50
|
|
endurance = 40
|
|
growthstages = 3
|
|
growing_icon = 'icons/obj/hydroponics/growing_fruits.dmi'
|
|
icon_grow = "pumpkin-grow"
|
|
icon_dead = "pumpkin-dead"
|
|
genes = list(/datum/plant_gene/trait/repeated_harvest)
|
|
mutatelist = list(/obj/item/seeds/pumpkin/blumpkin)
|
|
reagents_add = list("vitamin" = 0.04, "plantmatter" = 0.2)
|
|
|
|
|
|
/obj/item/food/grown/pumpkin
|
|
seed = /obj/item/seeds/pumpkin
|
|
name = "pumpkin"
|
|
desc = "It's large and scary."
|
|
icon_state = "pumpkin"
|
|
filling_color = "#FFA500"
|
|
bitesize_mod = 2
|
|
tastes = list("pumpkin" = 1)
|
|
wine_power = 0.2
|
|
var/carved_type = /obj/item/clothing/head/hardhat/pumpkinhead
|
|
|
|
/obj/item/food/grown/pumpkin/attackby__legacy__attackchain(obj/item/W as obj, mob/user as mob, params)
|
|
if(W.sharp)
|
|
user.show_message("<span class='notice'>You carve a face into [src]!</span>", 1)
|
|
new carved_type(user.loc)
|
|
qdel(src)
|
|
return
|
|
else
|
|
return ..()
|
|
|
|
// Blumpkin
|
|
/obj/item/seeds/pumpkin/blumpkin
|
|
name = "pack of blumpkin seeds"
|
|
desc = "These seeds grow into blumpkin vines."
|
|
icon_state = "seed-blumpkin"
|
|
species = "blumpkin"
|
|
plantname = "Blumpkin Vines"
|
|
product = /obj/item/food/grown/pumpkin/blumpkin
|
|
mutatelist = list()
|
|
reagents_add = list("ammonia" = 0.2, "chlorine" = 0.1, "plasma" = 0.1, "plantmatter" = 0.2)
|
|
rarity = 20
|
|
|
|
|
|
/obj/item/food/grown/pumpkin/blumpkin
|
|
seed = /obj/item/seeds/pumpkin/blumpkin
|
|
name = "blumpkin"
|
|
desc = "The pumpkin's toxic sibling."
|
|
icon_state = "blumpkin"
|
|
filling_color = "#87CEFA"
|
|
bitesize_mod = 2
|
|
tastes = list("blumpkin" = 1)
|
|
wine_power = 0.5
|
|
carved_type = /obj/item/clothing/head/hardhat/pumpkinhead/blumpkin
|