-
Notifications
You must be signed in to change notification settings - Fork 250
Reworks bees and beehives. #4266
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
base: dev
Are you sure you want to change the base?
Changes from all commits
7dbdd8c
0993681
53fca3d
925e879
be2b0e0
bb16e71
5fe0242
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,14 +7,20 @@ | |
| var/dead = FALSE | ||
| var/sampled = FALSE | ||
| var/datum/seed/plant | ||
| var/harvestable | ||
| var/harvestable = 0 // Note that this is a counter, not a bool. | ||
| var/pollen = 0 | ||
|
|
||
| /obj/structure/flora/plant/large | ||
| opacity = TRUE | ||
| density = TRUE | ||
|
|
||
| /* Notes for future work moving logic off hydrotrays onto plants themselves: | ||
| /obj/structure/flora/plant/Process() | ||
| if(plant?.produces_pollen <= 0) | ||
| return PROCESS_KILL | ||
| if(pollen < MAX_POLLEN_PER_FLOWER) | ||
| pollen += plant.produces_pollen * POLLEN_PRODUCTION_MULT | ||
|
|
||
| /* Notes for future work moving logic off hydrotrays onto plants themselves: | ||
| // check our immediate environment | ||
| // ask our environment for available reagents | ||
| // process the reagents | ||
|
|
@@ -61,9 +67,13 @@ | |
| var/potency = plant.get_trait(TRAIT_POTENCY) | ||
| set_light(l_range = max(1, round(potency/10)), l_power = clamp(round(potency/30), 0, 1), l_color = plant.get_trait(TRAIT_BIOLUM_COLOUR)) | ||
| update_icon() | ||
| return ..() | ||
| . = ..() | ||
| if(plant?.produces_pollen && !is_processing) | ||
| START_PROCESSING(SSplants, src) | ||
|
|
||
| /obj/structure/flora/plant/Destroy() | ||
| if(is_processing) | ||
| STOP_PROCESSING(SSplants, src) | ||
| plant = null | ||
| . = ..() | ||
|
|
||
|
|
@@ -147,3 +157,24 @@ | |
| /obj/structure/flora/plant/random_mushroom/Initialize() | ||
| plant = pick(get_mushroom_variants()) | ||
| return ..() | ||
|
|
||
| /obj/structure/flora/plant/random_flower | ||
| name = "flower" | ||
| color = COLOR_PINK | ||
| icon_state = "flower5" | ||
| is_spawnable_type = TRUE | ||
|
|
||
| // Only contains roundstart plants, this is meant to be a mapping helper. | ||
| /obj/structure/flora/plant/random_flower/proc/get_flower_variants() | ||
| var/static/list/flower_variants | ||
| if(isnull(flower_variants)) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. noting that this will only ever contain roundstart plants, but that's probably desirable even if not explicitly made clear in the code
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I'll add a comment to make it clear. |
||
| flower_variants = list() | ||
| for(var/plant in SSplants.seeds) | ||
| var/datum/seed/seed = SSplants.seeds[plant] | ||
| if(!isnull(seed?.name) && seed.produces_pollen) | ||
| flower_variants |= seed.name | ||
| return flower_variants | ||
|
|
||
| /obj/structure/flora/plant/random_flower/Initialize() | ||
| plant = pick(get_flower_variants()) | ||
| return ..() | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,13 @@ | ||
| #define FRAME_RESERVE_COST 30 | ||
| #define SWARM_AGITATION_PER_FRAME 25 | ||
| #define FRAME_MATERIAL_COST 20 | ||
| #define SWARM_GROWTH_COST 10 | ||
| #define FRAME_FILL_MATERIAL_COST 5 | ||
| #define HIVE_REPAIR_MATERIAL_COST 5 | ||
|
|
||
| /decl/modpack/beekeeping | ||
| name = "Beekeeping Content" | ||
| name = "Beekeeping and Insects Content" | ||
|
|
||
| /datum/storage/hopper/industrial/centrifuge/New() | ||
| ..() | ||
| can_hold |= /obj/item/hive_frame | ||
|
|
This file was deleted.
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.
subtype no longer needed
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.
Subtype needed for MayMove/DoMove.