branchrust_reboot/main/farming2cancel
263 Commits over 91 Days - 0.12cph!
Grabbed spud models from new_plants
Increased planterbox slots and it now checks all inventory slots for fertilizer.
Tweaked UI loot panels.
Planter + Composter panel prefabs
Ground value calc changes.
Added PlanterBox ui to crosshair hud, shows current/max water ml levels when hovering a planterbox.
Serialize + show growth rate in UI.
More modifier/calc tests.
Sweet new farming setup save.
Hardiness genes now increase the ground modifier value for growables outside of planter boxes.
Implemented water gene functionality: water genes increase the amount of water required/consumed, currently by 20% per water gene.
Growth genes now boost growth speed. Currently +0.1 multiplier per growth gene.
Also calculate modifiers at post server load.
Refresh contained growables when fertilizer is added/removed from planterbox instead of just next tick.
Updated farming test save.
Plant ui now shows modifier values (placeholder).
Fixed a fertilizer bug with planters.
More modifier calculations/work.
Lights and planters now correctly update their plants.
Reworked more growth basics, exposed ground, light and water modifiers, protobuf.
More refactoring of farming1 stuff to be useable for new farming stuff.
Added gene type counting functions.
more composter prefab updates
Only generate plant display string when inspecting a plant for the first time, not on load.
▅▉▍▊▍▆ ▇▍▉▇ ▆▇▇█▊'▇ ▋▅▄█-▍ █▇▅▆▊ ▋▆▇█▇▅▊
Gene serialization and randomization improvements.
More composter prefab setup
Ceiling lights now check+refresh growables not plants. Fixes. Manifest.
Gene display string formatting refactoring/improvements.
Seed info panel fixed so longer genes don't wrap.
Only stack seeds with the same gene makeup.
Show gene makeup in the seed information panel.
Seeds transfer their genetic makeup when planted.
Seed genes experimenting.
Fixed a bug with encoding/decoding gene data to instancedata int.
GrowableGene display utils.
Added GrowableGeneEncoding utility class for storing multiple gene values into an int, ready for storage in item InstanceData.
Removed gene modifier value stuff for now.
Dominant gene calc fix.
Only crossbreed with the same species.
Gene replacement.
GrowableEntity attempts crossbreeding when entering the sapling stage (temp).
Fixed the neighbouring check including itself.
Dominant neighbouring gene calculation per slot.
Crossbreeding basics.
Added crossbreeding weighting to GrowableGeneProperties
Assigned generic.genes to existing plant types.
Gene types can now be weighted per type and also per gene slot.
Added generic.genes definition.
Added GrowableGeneProperties scriptable object for gene/slot weights data per plant (or generic) to PlantProperties.
Bit of refactoring ready to start using the new data for generation.
Added negative/positive colour-coded gene make-up display to plant info UI.
Initial basic gene random generation.
GrowableEntityGenes proto and serialization.
Bunch of GrowableGenetics boiler plate and some basic initial functionality.
Reduce default fertilizer production value for items. Composter description. GrowableEntity info display now displays when hovering a growable inside a planter, instead of the planter options.
Composter protobuf and serialization.
More composter wip. Merged from main.
Added FertilizerQuantity to ItemModCompostable so that different items can produce varying amounts of fertilizer. Composter checks an item is compostable and uses FertilizerQuantity to produce the correct amount.
Made a bunch of items compostable.
Added ItemModCompostable and Composter checks for it.