forked from tgstation/tgstation
-
Notifications
You must be signed in to change notification settings - Fork 38
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
add trees #174
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/style_3 | ||
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/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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should probably the palm basetype.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh?