57 lines
2.0 KiB
C#
57 lines
2.0 KiB
C#
|
|
using CustomSettingsAndLayouts;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using Easter2025.Customs.RestaurantSettings.Decorators;
|
||
|
|
using Easter2025.Utilies;
|
||
|
|
using Kitchen;
|
||
|
|
using KitchenData;
|
||
|
|
using KitchenLib.Customs;
|
||
|
|
using KitchenLib.References;
|
||
|
|
using KitchenLib.Utils;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace Easter2025.Customs.RestaurantSettings
|
||
|
|
{
|
||
|
|
public class Easter2025GardenSetting : CustomRestaurantSetting
|
||
|
|
{
|
||
|
|
public override string UniqueNameID => "Easter2025GardenSetting";
|
||
|
|
public override WeatherMode WeatherMode => WeatherMode.None;
|
||
|
|
|
||
|
|
public override List<IDecorationConfiguration> Decorators => new List<IDecorationConfiguration>
|
||
|
|
{
|
||
|
|
new EasterDecorator.DecorationsConfiguration
|
||
|
|
{
|
||
|
|
Cobblestone = GDOReferences.EggCobblestone,
|
||
|
|
Ground = GDOReferences.EasterGround,
|
||
|
|
BorderSpacing = 1,
|
||
|
|
Scatters = new List<EasterDecorator.DecorationsConfiguration.Scatter>
|
||
|
|
{
|
||
|
|
new()
|
||
|
|
{
|
||
|
|
Appliance = GDOReferences.EasterTree,
|
||
|
|
Probability = 0.05f
|
||
|
|
},
|
||
|
|
new()
|
||
|
|
{
|
||
|
|
Appliance = GDOReferences.EggPile,
|
||
|
|
Probability = 0.05f
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
};
|
||
|
|
|
||
|
|
public override UnlockPack UnlockPack { get; protected set; }
|
||
|
|
|
||
|
|
public override Unlock StartingUnlock => GDOReferences.DishPlasticEggs;
|
||
|
|
public override GameObject Prefab => Mod.Bundle.LoadAsset<GameObject>("EasterSettingSnowglobe").AssignMaterialsByNames();
|
||
|
|
public override bool AlwaysLight => true;
|
||
|
|
|
||
|
|
public override List<(Locale, BasicInfo)> InfoList => CenteralLang.RestaurantSettings.Easter2025GardenSetting;
|
||
|
|
|
||
|
|
|
||
|
|
public override void OnRegister(RestaurantSetting gameDataObject)
|
||
|
|
{
|
||
|
|
base.OnRegister(gameDataObject);
|
||
|
|
Registry.GrantCustomSetting(gameDataObject);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|