mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-22 05:17:38 +01:00
387cee9243
Extends and reworks how various extended information text (desc_info, desc_build, desc_upgrades) are handled to make object interactions and mechanics A.) much more clearly documented in-game and B.) much easier to support from the back-end. Almost certainly a candidate for test merge. Assembly/Disassembly instructions are noticeably sporadic, largely due to our current lack of a unified framework. That's a future thing I'd like to attack so that it can be handled programmatically, but for now I only targeted the biggest culprits as I came across them. --------- Signed-off-by: Batrachophreno <Batrochophreno@gmail.com>
37 lines
1.2 KiB
Plaintext
37 lines
1.2 KiB
Plaintext
/obj/effect/overlay/wallrot
|
|
name = "wallrot"
|
|
desc = "Ick..."
|
|
icon = 'icons/effects/wallrot.dmi'
|
|
icon_state = "wallrot"
|
|
anchored = TRUE
|
|
density = TRUE
|
|
layer = ABOVE_TILE_LAYER
|
|
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
|
|
|
|
/obj/effect/overlay/wallrot/Initialize(mapload, ...)
|
|
. = ..()
|
|
pixel_x += rand(-10, 10)
|
|
pixel_y += rand(-10, 10)
|
|
|
|
/obj/effect/overlay/wallrot/proc/scrape(var/mob/user)
|
|
var/obj/item/rot_sample/RS = new /obj/item/rot_sample(get_turf(src))
|
|
user.put_in_hands(RS)
|
|
qdel(src)
|
|
|
|
/obj/item/rot_sample
|
|
name = "rot sample"
|
|
desc = "A gross, wet, squishy piece of what may be a plant."
|
|
icon = 'icons/effects/wallrot.dmi'
|
|
icon_state = "rot_sample"
|
|
|
|
/obj/item/rot_sample/mechanics_hints(mob/user, distance, is_adjacent)
|
|
. += ..()
|
|
. += "This sample can be ground to retrieve reagents inside it."
|
|
|
|
/obj/item/rot_sample/Initialize(mapload)
|
|
. = ..()
|
|
create_reagents(15)
|
|
var/list/possible_reagents = list(/singleton/reagent/bicaridine, /singleton/reagent/kelotane, /singleton/reagent/dexalin, /singleton/reagent/mortaphenyl, /singleton/reagent/oculine, /singleton/reagent/peridaxon)
|
|
reagents.add_reagent(pick(possible_reagents), 15)
|
|
color = reagents.get_color()
|