Add config to use default or owner collection for housing retainers.

This commit is contained in:
Ottermandias 2022-06-17 16:18:08 +02:00
parent eff6c2e9af
commit abd1fd14f5
3 changed files with 9 additions and 0 deletions

View file

@ -27,6 +27,7 @@ public partial class Configuration : IPluginConfiguration
public bool UseCharacterCollectionInTryOn { get; set; } = true;
public bool UseOwnerNameForCharacterCollection { get; set; } = true;
public bool PreferNamedCollectionsOverOwners { get; set; } = true;
public bool UseDefaultCollectionForRetainers { get; set; } = false;
#if DEBUG
public bool DebugMode { get; set; } = true;

View file

@ -271,6 +271,10 @@ public unsafe partial class PathResolver
return Penumbra.CollectionManager.Default;
}
// Housing Retainers
if( Penumbra.Config.UseDefaultCollectionForRetainers && gameObject->ObjectKind == (byte) ObjectKind.EventNpc && gameObject->DataID == 1011832 )
return Penumbra.CollectionManager.Default;
string? actorName = null;
if( Penumbra.Config.PreferNamedCollectionsOverOwners )
{

View file

@ -75,6 +75,10 @@ public partial class ConfigWindow
"If you have a character collection set to a specific name for a companion or combat pet, prefer this collection over the owner's collection.\n"
+ "That is, if you have a 'Topaz Carbuncle' collection, it will use this one instead of the one for its owner.",
Penumbra.Config.PreferNamedCollectionsOverOwners, v => Penumbra.Config.PreferNamedCollectionsOverOwners = v );
Checkbox( "Use Default Collection for Housing Retainers",
"Housing Retainers use the name of their owner instead of their own, you can decide to let them use their owners character collection or the default collection.\n"
+ "It is not possible to make them have their own collection, since they have no connection to their actual name.",
Penumbra.Config.UseDefaultCollectionForRetainers, v => Penumbra.Config.UseDefaultCollectionForRetainers = v );
ImGui.Dummy( _window._defaultSpace );
DrawFolderSortType();
DrawAbsoluteSizeSelector();