-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathXLBDish.cs
74 lines (69 loc) · 2.95 KB
/
XLBDish.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
using IngredientLib.Ingredient.Items;
namespace KitchenXLB.Mains
{
public class XLBDish : CustomDish
{
public override string UniqueNameID => "xlb_dish";
public override Unlock.RewardLevel ExpReward => Unlock.RewardLevel.Small;
public override bool IsUnlockable => true;
public override UnlockGroup UnlockGroup => UnlockGroup.Dish;
public override CardType CardType => CardType.Default;
public override DishCustomerChange CustomerMultiplier => DishCustomerChange.SmallDecrease;
public override int MinimumFranchiseTier => 0;
public override bool IsSpecificFranchiseTier => false;
public override float SelectionBias => 0;
public override GameObject IconPrefab => Mod.Bundle.LoadAsset<GameObject>("xlb_icon");
public override GameObject DisplayPrefab => Mod.Bundle.LoadAsset<GameObject>("xlb_icon");
public override DishType Type => DishType.Base;
public override bool IsAvailableAsLobbyOption => true;
public override bool DestroyAfterModUninstall => false;
public override Dictionary<Locale, string> Recipe => new()
{
{ Locale.English, "Knead flour (or add water) to create dough, add chopped meat and portioned XLB soup (meat soup add ice). Fold once and then cook. Plate, and serve." }
};
public override List<(Locale, UnlockInfo)> InfoList => new()
{
(Locale.English, LocalisationUtils.CreateUnlockInfo("XLB", "Adds XLB as a main dish", "Love me a good doughnut!"))
};
public override HashSet<Process> RequiredProcesses => new()
{
GetGDO<Process>(ProcessReferences.Chop),
GetGDO<Process>(ProcessReferences.Knead),
GetGDO<Process>(ProcessReferences.Cook)
};
public override HashSet<Item> MinimumIngredients => new()
{
/* GetGDO<Item>(ItemReferences.Plate),*/
GetGDO<Item>(ItemReferences.Flour),
GetGDO<Item>(ItemReferences.Meat),
GetGDO<Item>(ItemReferences.Pot),
GetGDO<Item>(ItemReferences.Onion),
GetCastedGDO<Item, Ice>()
};
public override List<string> StartingNameSet => new()
{
"Steamy Bites",
"Dragon's XLB",
"The Bao Bar",
"Bao Bliss",
"Bao Bistro",
"Bao & Beyond",
"Bao Bonanza"
};
public override List<Dish.MenuItem> ResultingMenuItems => new()
{
new()
{
Item = GetCastedGDO<Item, PlatedXLB>(),
DynamicMenuType = DynamicMenuType.Static,
Phase = MenuPhase.Main,
Weight = 1
}
};
public override void OnRegister(Dish gdo)
{
IconPrefab.ApplyMaterialToChildGame("basket", "XLB - \"BasketDark\"");
IconPrefab.ApplyMaterialToChildGame("baos", "XLB - \"BaoDark\"");
}
}
}