This commit is contained in:
Ottermandias 2023-06-20 18:54:33 +02:00
parent d1d369a56b
commit 65ce391051
19 changed files with 757 additions and 158 deletions

View file

@ -45,11 +45,9 @@ public class ItemManager : IDisposable
RestrictedGear.Dispose();
}
public (bool, CharacterArmor) ResolveRestrictedGear(CharacterArmor armor, EquipSlot slot, Race race, Gender gender)
=> _config.UseRestrictedGearProtection ? RestrictedGear.ResolveRestricted(armor, slot, race, gender) : (false, armor);
public static uint NothingId(EquipSlot slot)
=> uint.MaxValue - 128 - (uint)slot.ToSlot();

View file

@ -51,9 +51,10 @@ public static class ServiceManager
private static IServiceCollection AddEvents(this IServiceCollection services)
=> services.AddSingleton<VisorStateChanged>()
.AddSingleton<UpdatedSlot>()
.AddSingleton<SlotUpdating>()
.AddSingleton<DesignChanged>()
.AddSingleton<StateChanged>();
.AddSingleton<StateChanged>()
.AddSingleton<WeaponLoading>();
private static IServiceCollection AddData(this IServiceCollection services)
=> services.AddSingleton<IdentifierService>()
@ -75,7 +76,8 @@ public static class ServiceManager
.AddSingleton<DesignFileSystem>();
private static IServiceCollection AddState(this IServiceCollection services)
=> services.AddSingleton<StateManager>();
=> services.AddSingleton<StateManager>()
.AddSingleton<StateListener>();
private static IServiceCollection AddUi(this IServiceCollection services)
=> services.AddSingleton<DebugTab>()
@ -88,7 +90,8 @@ public static class ServiceManager
.AddSingleton<CustomizationDrawer>()
.AddSingleton<DesignFileSystemSelector>()
.AddSingleton<DesignPanel>()
.AddSingleton<DesignTab>();
.AddSingleton<DesignTab>()
.AddSingleton<PenumbraChangedItemTooltip>();
private static IServiceCollection AddApi(this IServiceCollection services)
=> services.AddSingleton<CommandService>();