Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add trees #174

Merged
merged 3 commits into from
Oct 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 124 additions & 0 deletions modular_doppler/objects_and_structures/code/flora.dm
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
#define CITRUS_MIN_HARVEST_AMOUNT 0
#define CITRUS_MAX_HARVEST_AMOUNT 3


/**
* CITRUS TREES
*/

/obj/structure/flora/tree/citrus
name = "citrus tree"
desc = "A fruit tree."
icon = 'modular_doppler/objects_and_structures/icons/trees/citrus.dmi'
icon_state = "citrus_empty"
pixel_x = -48
pixel_y = -16

/obj/structure/flora/tree/citrus/plum
name = "citrus tree"
desc = "A fruit tree. This one is covered in juicy-looking plums."
icon_state = "citrus_1"
product_types = list(/obj/item/food/grown/plum = 1)
harvest_amount_low = CITRUS_MIN_HARVEST_AMOUNT
harvest_amount_high = CITRUS_MAX_HARVEST_AMOUNT
flora_flags = FLORA_HERBAL // Yeah, yeah.

/obj/structure/flora/tree/citrus/blue
name = "citrus tree"
desc = "A fruit tree. This one is covered in ripe-looking berries."
icon_state = "citrus_2"
product_types = list(/obj/item/food/grown/berries = 1)
harvest_amount_low = CITRUS_MIN_HARVEST_AMOUNT
harvest_amount_high = CITRUS_MAX_HARVEST_AMOUNT
flora_flags = FLORA_HERBAL

/obj/structure/flora/tree/citrus/lemon
name = "citrus tree"
desc = "A fruit tree. This one is covered in tart-looking lemons."
icon_state = "citrus_3"
product_types = list(/obj/item/food/grown/citrus/lemon = 1)
harvest_amount_low = CITRUS_MIN_HARVEST_AMOUNT
harvest_amount_high = CITRUS_MAX_HARVEST_AMOUNT
flora_flags = FLORA_HERBAL

/obj/structure/flora/tree/citrus/lime
name = "citrus tree"
desc = "A fruit tree. This one is covered in sharp-looking limes."
icon_state = "citrus_4"
product_types = list(/obj/item/food/grown/citrus/lime = 1)
harvest_amount_low = CITRUS_MIN_HARVEST_AMOUNT
harvest_amount_high = CITRUS_MAX_HARVEST_AMOUNT
flora_flags = FLORA_HERBAL


/**
* FICUS TREES
*/
/obj/structure/flora/tree/ficus
name = "ficus tree"
desc = "A ficus tree."
icon = 'modular_doppler/objects_and_structures/icons/trees/ficus.dmi'
icon_state = "ficus_alive"
pixel_x = -48
pixel_y = -16

/**
* PALM TREES
*/
/obj/structure/flora/tree/palm/doppler
icon = 'modular_doppler/objects_and_structures/icons/trees/palm.dmi'
icon_state = "palm_3"
pixel_x = -48
pixel_y = -16
// Need coconuts

/obj/structure/flora/tree/palm/doppler/style_random/Initialize(mapload)
. = ..()
icon_state = "palm[rand(1,3)]"
update_appearance()

/**
* SILKFLOSS TREES
*/
/obj/structure/flora/tree/silkfloss
name = "silkfloss tree"
desc = "A silkfloss tree."
icon = 'modular_doppler/objects_and_structures/icons/trees/silkfloss.dmi'
icon_state = "silk_1"
pixel_x = -48
pixel_y = -16

/obj/structure/flora/tree/silkfloss/full
desc = "A silkfloss tree. This one is heaving with berries on every branch!"
icon_state = "silk_2"

/obj/structure/flora/tree/silkfloss/half
desc = "A silkfloss tree. This one has a couple of berries on its branches!"
icon_state = "silk_3"

/obj/structure/flora/tree/silkfloss/style_random/Initialize(mapload)
. = ..()
icon_state = "silk_[rand(1,3)]"
update_appearance()


/**
* WILLOW TREES
*/
/obj/structure/flora/tree/willow
name = "willow tree"
desc = "A willow tree."
icon = 'modular_doppler/objects_and_structures/icons/trees/willow.dmi'
icon_state = "willow_1"
pixel_x = -48
pixel_y = -16

/obj/structure/flora/tree/willow/style_2
icon_state = "willow_2"

/obj/structure/flora/tree/willow/style_3
icon_state = "willow_3"

/obj/structure/flora/tree/willow/style_4
icon_state = "willow_4"

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -6953,6 +6953,7 @@
#include "modular_doppler\modular_weapons\manufacturer_examine\code\gun_company_additions.dm"
#include "modular_doppler\modular_weapons\manufacturer_examine\code\manufacturer_element.dm"
#include "modular_doppler\obj_flags_doppler\code\objs.dm"
#include "modular_doppler\objects_and_structures\code\flora.dm"
#include "modular_doppler\objects_and_structures\code\icemoon_tiles.dm"
#include "modular_doppler\objects_and_structures\code\mannequin.dm"
#include "modular_doppler\objects_and_structures\code\sauna_oven.dm"
Expand Down
Loading