@@ -91,6 +91,24 @@ public static async Task CloneRoot(XivDependencyRoot Source, XivDependencyRoot D
91
91
newMetadata . Root = Destination . Info . ToFullRoot ( ) ;
92
92
var originalDestinationMetadata = await ItemMetadata . GetMetadata ( Destination ) ;
93
93
94
+ // Set 0 needs special handling.
95
+ if ( Source . Info . PrimaryType == XivItemType . equipment && Source . Info . PrimaryId == 0 )
96
+ {
97
+ var set1Root = new XivDependencyRoot ( Source . Info . PrimaryType , 1 , null , null , Source . Info . Slot ) ;
98
+ var set1Metadata = await ItemMetadata . GetMetadata ( set1Root ) ;
99
+
100
+ newMetadata . EqpEntry = set1Metadata . EqpEntry ;
101
+
102
+ if ( Source . Info . Slot == "met" )
103
+ {
104
+ newMetadata . GmpEntry = set1Metadata . GmpEntry ;
105
+ }
106
+ } else if ( Destination . Info . PrimaryType == XivItemType . equipment && Destination . Info . PrimaryId == 0 )
107
+ {
108
+ newMetadata . EqpEntry = null ;
109
+ newMetadata . GmpEntry = null ;
110
+ }
111
+
94
112
95
113
// Now figure out the path names for all of our new paths.
96
114
// These dictionarys map Old Path => New Path
@@ -143,13 +161,14 @@ public static async Task CloneRoot(XivDependencyRoot Source, XivDependencyRoot D
143
161
newMaterialPaths . Select ( x => x . Value ) ) . Union (
144
162
newAvfxPaths . Select ( x => x . Value ) ) . Union (
145
163
newTexturePaths . Select ( x => x . Value ) ) ;
146
-
147
164
var allFiles = new HashSet < string > ( ) ;
148
165
foreach ( var f in files )
149
166
{
150
167
allFiles . Add ( f ) ;
151
168
}
152
169
170
+ allFiles . Add ( Destination . Info . GetRootFile ( ) ) ;
171
+
153
172
if ( ProgressReporter != null )
154
173
{
155
174
ProgressReporter . Report ( "Getting modlist..." ) ;
0 commit comments