mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 02:57:48 +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.
81 lines
2.3 KiB
Plaintext
81 lines
2.3 KiB
Plaintext
/obj/item/seeds/comfrey
|
|
name = "pack of comfrey seeds"
|
|
desc = "These seeds grow into comfrey."
|
|
icon_state = "seed-lettuce"
|
|
species = "cabbage"
|
|
plantname = "Comfrey"
|
|
product = /obj/item/food/grown/comfrey
|
|
yield = 2
|
|
maturation = 3
|
|
growthstages = 1
|
|
growing_icon = 'icons/obj/hydroponics/growing_vegetables.dmi'
|
|
reagents_add = list("styptic_powder" = 0.1)
|
|
|
|
/obj/item/food/grown/comfrey
|
|
seed = /obj/item/seeds/comfrey
|
|
name = "comfrey leaf"
|
|
desc = "Mash to turn into a poultice."
|
|
icon_state = "tea_astra_leaves"
|
|
color = "#378C61"
|
|
tastes = list("comfrey" = 1)
|
|
bitesize_mod = 2
|
|
|
|
/obj/item/food/grown/comfrey/attack_self__legacy__attackchain(mob/user)
|
|
var/obj/item/stack/medical/bruise_pack/comfrey/C = new(get_turf(user))
|
|
C.heal_brute = seed.potency
|
|
to_chat(user, "<span class='notice'>You mash [src] into a poultice.</span>")
|
|
user.drop_item()
|
|
qdel(src)
|
|
|
|
/obj/item/seeds/aloe
|
|
name = "pack of aloe seeds"
|
|
desc = "These seeds grow into aloe vera plant."
|
|
icon_state = "seed-ambrosiavulgaris"
|
|
species = "ambrosiavulgaris"
|
|
plantname = "Aloe Vera Plant"
|
|
product = /obj/item/food/grown/aloe
|
|
yield = 2
|
|
icon_dead = "ambrosia-dead"
|
|
reagents_add = list("silver_sulfadiazine" = 0.1)
|
|
|
|
/obj/item/food/grown/aloe
|
|
seed = /obj/item/seeds/aloe
|
|
name = "aloe leaf"
|
|
desc = "Mash to turn into a poultice."
|
|
icon_state = "ambrosiavulgaris"
|
|
color = "#4CC5C7"
|
|
tastes = list("aloe" = 1)
|
|
bitesize_mod = 2
|
|
|
|
/obj/item/food/grown/aloe/attack_self__legacy__attackchain(mob/user)
|
|
var/obj/item/stack/medical/ointment/aloe/A = new(get_turf(user))
|
|
A.heal_burn = seed.potency
|
|
to_chat(user, "<span class='notice'>You mash [src] into a poultice.</span>")
|
|
user.drop_item()
|
|
qdel(src)
|
|
|
|
// mint
|
|
/obj/item/seeds/mint
|
|
name = "pack of mint seeds"
|
|
desc = "These seeds grow into mint plants."
|
|
icon_state = "seed-mint"
|
|
species = "mint"
|
|
plantname = "Mint Plant"
|
|
product = /obj/item/food/grown/mint
|
|
lifespan = 20
|
|
maturation = 4
|
|
production = 5
|
|
yield = 5
|
|
growthstages = 3
|
|
icon_dead = "mint-dead"
|
|
reagents_add = list("mint" = 0.03, "plantmatter" = 0.03)
|
|
|
|
/obj/item/food/grown/mint
|
|
seed = /obj/item/seeds/mint
|
|
name = "mint leaves"
|
|
desc = "Process for mint. Distill for menthol. No need to experi-mint." //haha
|
|
icon_state = "mint"
|
|
tastes = list("mint" = 1)
|
|
filling_color = "#A7EE9F"
|
|
distill_reagent = "menthol"
|