How bbluesky123/mystiarecommendation works
MystiaRecommendation is a BepInEx IL2CPP plugin that recommends meal-and-drink combinations for rare guests. Game hooks capture guest orders and runtime budget; the plugin combines those inputs with owned recipes, stock, cookware, trends, and guest data to generate high- and low-price strategies (including fixed-quest-dish handling), then presents recommendations and tracks cooking, serving, and storage. The README documents capabilities beyond the sampled excerpts; those are represented at subsystem level where their implementation path is supported by the tree.
Main entry points: Plugin.cs Plugin orchestration · RecipeMatcher.cs Recommendation matching · CustomerPatch.cs Guest order hooks · RuntimeOrderTracker.cs Dish lifecycle tracker
Components 20
Game integration
- Plugin orchestration
Plugin.cs - Guest order hooks
Patches/CustomerPatch.cs - Cooking hooks
Patches/CookerPatch.cs - Plugin identity
MyPluginInfo.cs
Recommendation engine
- Plugin settings
Config/PluginConfig.cs - Guest data
Engine/CustomerDataEngine.cs - Budget rules
Engine/OrderBudgetContext.cs - Recommendation matching
Engine/RecipeMatcher.cs - Runtime state snapshot
Engine/GameStateCache.cs - JSON parser
Engine/SimpleJson.cs
Order tracking
- Dish lifecycle tracker
Engine/RuntimeOrderTracker.cs - Seat marker policy
Engine/SeatMarkerPolicy.cs
Presentation and data
- Overlay lifecycle
UI/GUIBehaviour.cs - Recommendation cards
UI/OverlayRenderer.cs - Guest records
Data/customers_rare.json - Recipe catalogue
Data/recipes.json - Beverage catalogue
Data/beverages.json - Ingredient catalogue
Data/ingredients.json
Other components
- Game runtime
- Player
Connections 29
- Game runtime → Guest order hooks: provides order events
README.md - Guest order hooks → Plugin orchestration: updates guest state
Patches/CustomerPatch.cs - Guest order hooks → Budget rules: reads order budget
Patches/CustomerPatch.cs - Plugin orchestration → Guest data: queries guest data
Plugin.cs - Plugin orchestration → Recommendation matching: orchestrates matching
Plugin.cs - Plugin orchestration → Plugin settings: uses settings
Plugin.cs - Plugin orchestration → Guest order hooks: registers hooks
Plugin.cs - Plugin orchestration → Cooking hooks: registers hooks
Plugin.cs - Plugin orchestration → Dish lifecycle tracker: coordinates tracking
Plugin.cs - Plugin orchestration → Overlay lifecycle: starts overlay
Plugin.cs - Guest data → JSON parser: parses records
Engine/CustomerDataEngine.cs - Recommendation matching → Guest data: uses guest preferences
Engine/RecipeMatcher.cs - Recommendation matching → Budget rules: filters by budget
Engine/RecipeMatcher.cs - Recommendation matching → Plugin settings: reads recommendation options
Engine/RecipeMatcher.cs - Recommendation matching → Plugin orchestration: uses recommendation state
Engine/RecipeMatcher.cs - Game runtime → Runtime state snapshot: supplies runtime state
- Plugin orchestration → Runtime state snapshot: captures snapshot
README.md - Guest records → Guest data: loads guest records
Engine/CustomerDataEngine.cs - Recipe catalogue → Recommendation matching: supplies recipes
README.md - Beverage catalogue → Recommendation matching: supplies beverages
README.md - Ingredient catalogue → Recommendation matching: supplies ingredients
README.md - Cooking hooks → Dish lifecycle tracker: reports cooking events
Patches/CookerPatch.cs - Dish lifecycle tracker → Plugin orchestration: updates recommendation status
Engine/RuntimeOrderTracker.cs - Dish lifecycle tracker → Seat marker policy: uses seat policy
Engine/RuntimeOrderTracker.cs - Overlay lifecycle → Recommendation cards: renders cards
UI/GUIBehaviour.cs - Overlay lifecycle → Plugin orchestration: reads active recommendations
UI/GUIBehaviour.cs - Recommendation cards → Plugin orchestration: displays recommendations
UI/OverlayRenderer.cs - Player → Recommendation cards: interacts with cards
README.md - Plugin orchestration → Plugin identity: uses identity constants
Plugin.cs