mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-10 00:43:14 +00:00
* Changes the missing food icon test to cover ALL /obj's * Update implant.dm * Hopefully fixes all the failing integration tests! * Fixes more missing icons * Even more icon fixes * Hopefully that was all of them * Okay now SURELY that's all of them * I'm tired of this shit man * Hopefully that's all, for real this time! Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com> Co-authored-by: Zonespace <41448081+Zonespace27@users.noreply.github.com> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com> Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
115 lines
3.9 KiB
Plaintext
115 lines
3.9 KiB
Plaintext
|
|
/obj/item/kirbyplants
|
|
name = "potted plant"
|
|
//icon = 'icons/obj/flora/plants.dmi' // ORIGINAL
|
|
icon = 'modular_skyrat/modules/aesthetics/plants/plants.dmi' // SKYRAT EDIT CHANGE
|
|
icon_state = "plant-01"
|
|
desc = "A little bit of nature contained in a pot."
|
|
layer = ABOVE_MOB_LAYER
|
|
plane = GAME_PLANE_UPPER
|
|
w_class = WEIGHT_CLASS_HUGE
|
|
force = 10
|
|
throwforce = 13
|
|
throw_speed = 2
|
|
throw_range = 4
|
|
item_flags = NO_PIXEL_RANDOM_DROP
|
|
|
|
/// Can this plant be trimmed by someone with TRAIT_BONSAI
|
|
var/trimmable = TRUE
|
|
var/list/static/random_plant_states
|
|
/// Maximum icon state number - KEEP THIS UP TO DATE
|
|
var/random_state_cap = 43 // SKYRAT EDIT ADDITION
|
|
|
|
/obj/item/kirbyplants/Initialize(mapload)
|
|
. = ..()
|
|
AddComponent(/datum/component/tactical)
|
|
AddComponent(/datum/component/two_handed, require_twohands=TRUE, force_unwielded=10, force_wielded=10)
|
|
AddElement(/datum/element/beauty, 500)
|
|
|
|
/obj/item/kirbyplants/attackby(obj/item/I, mob/living/user, params)
|
|
. = ..()
|
|
if(trimmable && HAS_TRAIT(user,TRAIT_BONSAI) && isturf(loc) && I.get_sharpness())
|
|
to_chat(user,span_notice("You start trimming [src]."))
|
|
if(do_after(user,3 SECONDS,target=src))
|
|
to_chat(user,span_notice("You finish trimming [src]."))
|
|
change_visual()
|
|
|
|
/// Cycle basic plant visuals
|
|
/obj/item/kirbyplants/proc/change_visual()
|
|
if(!random_plant_states)
|
|
generate_states()
|
|
var/current = random_plant_states.Find(icon_state)
|
|
var/next = WRAP(current+1,1,length(random_plant_states))
|
|
icon_state = random_plant_states[next]
|
|
|
|
/obj/item/kirbyplants/random
|
|
icon = 'icons/obj/flora/_flora.dmi'
|
|
icon_state = "random_plant"
|
|
|
|
/obj/item/kirbyplants/random/Initialize(mapload)
|
|
. = ..()
|
|
//icon = 'icons/obj/flora/plants.dmi' // ORIGINAL
|
|
icon = 'modular_skyrat/modules/aesthetics/plants/plants.dmi' //SKYRAT EDIT CHANGE
|
|
if(!random_plant_states)
|
|
generate_states()
|
|
icon_state = pick(random_plant_states)
|
|
|
|
/obj/item/kirbyplants/proc/generate_states()
|
|
random_plant_states = list()
|
|
for(var/i in 1 to random_state_cap) //SKYRAT EDIT CHANGE - ORIGINAL: for(var/i in 1 to 25)
|
|
var/number
|
|
if(i < 10)
|
|
number = "0[i]"
|
|
else
|
|
number = "[i]"
|
|
random_plant_states += "plant-[number]"
|
|
random_plant_states += list("applebush", "monkeyplant") //SKYRAT EDIT CHANGE - ORIGINAL:random_plant_states += "applebush"
|
|
|
|
/obj/item/kirbyplants/dead
|
|
name = "RD's potted plant"
|
|
desc = "A gift from the botanical staff, presented after the RD's reassignment. There's a tag on it that says \"Y'all come back now, y'hear?\"\nIt doesn't look very healthy..."
|
|
icon_state = "plant-25"
|
|
trimmable = FALSE
|
|
|
|
//SKYRAT EDIT ADDITION START
|
|
/obj/item/kirbyplants/monkey
|
|
name = "monkey plant"
|
|
desc = "Something that seems to have been made by the Nanotrasen science division, one might call it an abomination. It's heads seem... alive."
|
|
icon_state = "monkeyplant"
|
|
trimmable = FALSE
|
|
//SKYRAT EDIT ADDITION END
|
|
|
|
/obj/item/kirbyplants/photosynthetic
|
|
name = "photosynthetic potted plant"
|
|
desc = "A bioluminescent plant."
|
|
icon_state = "plant-09"
|
|
light_color = COLOR_BRIGHT_BLUE
|
|
light_range = 3
|
|
|
|
/obj/item/kirbyplants/fullysynthetic
|
|
name = "plastic potted plant"
|
|
desc = "A fake, cheap looking, plastic tree. Perfect for people who kill every plant they touch."
|
|
icon_state = "plant-26"
|
|
custom_materials = (list(/datum/material/plastic = 8000))
|
|
trimmable = FALSE
|
|
|
|
/obj/item/kirbyplants/fullysynthetic/Initialize(mapload)
|
|
. = ..()
|
|
icon_state = "plant-[rand(26, 29)]"
|
|
|
|
/obj/item/kirbyplants/potty
|
|
name = "Potty the Potted Plant"
|
|
desc = "A secret agent staffed in the station's bar to protect the mystical cakehat."
|
|
icon_state = "potty"
|
|
trimmable = FALSE
|
|
|
|
/obj/item/kirbyplants/fern
|
|
name = "neglected fern"
|
|
desc = "An old botanical research sample collected on a long forgotten jungle planet."
|
|
icon_state = "fern"
|
|
trimmable = FALSE
|
|
|
|
/obj/item/kirbyplants/fern/Initialize(mapload)
|
|
. = ..()
|
|
AddElement(/datum/element/swabable, CELL_LINE_TABLE_ALGAE, CELL_VIRUS_TABLE_GENERIC, rand(2,4), 5)
|