branchrust_reboot/main/qol_compost_uicancel
17 Commits over 0 Days - Infinitycph!
merge from main -> qol_compost_ui
Fix a 4 year old bug: being able to move items into the output of a furnace by splitting them into the output slots
- the reason I avoided it was you have to modify all the ItemFilter methods in the project and add a BasePlayer parameter
- this allows us to block the player moving items into the output of the furnace but keep the furnace able to move cooked items into it's output
Fix items that are both cookable and compostable (meat) using the lesser of the two times for composting instead of the correct time for each
Fix the composter showing "Furnace" in the loot panel title instead of "Composter"
Don't show the icon as burning when it's inside the composter
Fix item creation loop running for 0 amount (due to chance of creating fertilizer) so early exit if chance fails
Increase the smelt speed of the composter so it behaves the same as before when you were splitting stacks (same as furnaces were back in the day)
Fix composter set to only accept food from old prefab / item filter setup
Fix items that are compostable but don't produce any compost being allowed in the compost (because ItemModCompostable is used for bait value)
Fix the loot panel for the composter not working the editor
- OnValidate() was overwriting the offset of the inventory panel
Fix loot panel not predicting cook time for composting because it was only checking the ItemModCookable
Add the "automatically start cooking" code from the apartment stove to the BaseOven and enable it for the composter (so the composter automatically "cooks" items added into it)
Add prefab variant for composter loot panel (so we can remove / change the background icons for the composter inputs)
Change the composter prefab
Rewrite the hackweek composter UI to merge all of the composter code into normal cooking code
- move ItemModCookable -> CookableItemInfo so we can create a "cooking compost" component at runtime
- turn ItemModCompostable into an ItemMod
- convert Composter class from StorageContainre -> BaseOven