11#if ( IL2CPPMELON )
22using S1ItemFramework = Il2CppScheduleOne . ItemFramework ;
3+ using S1CoreItemFramework = Il2CppScheduleOne . Core . Items . Framework ;
34using S1Registry = Il2CppScheduleOne . Registry ;
45#elif ( MONOMELON || MONOBEPINEX || IL2CPPBEPINEX )
56using S1ItemFramework = ScheduleOne . ItemFramework ;
7+ using S1CoreItemFramework = ScheduleOne . Core . Items . Framework ;
68using S1Registry = ScheduleOne . Registry ;
79#endif
810
@@ -30,11 +32,10 @@ internal BuildableItemDefinitionBuilder()
3032 _definition . StackLimit = 10 ;
3133 _definition . BasePurchasePrice = 10f ;
3234 _definition . ResellMultiplier = 0.5f ;
33- _definition . Category = S1ItemFramework . EItemCategory . Furniture ;
34- _definition . legalStatus = S1ItemFramework . ELegalStatus . Legal ;
35+ _definition . Category = S1CoreItemFramework . EItemCategory . Furniture ;
36+ _definition . legalStatus = S1CoreItemFramework . ELegalStatus . Legal ;
3537 _definition . AvailableInDemo = true ;
3638 _definition . UsableInFilters = true ;
37- _definition . LabelDisplayColor = Color . white ;
3839 _definition . BuildSoundType = S1ItemFramework . BuildableItemDefinition . EBuildSoundType . Wood ;
3940 }
4041
@@ -57,10 +58,8 @@ private void CopyPropertiesFrom(S1ItemFramework.BuildableItemDefinition source)
5758 _definition . Description = source . Description ;
5859 _definition . Category = source . Category ;
5960 _definition . StackLimit = source . StackLimit ;
60- _definition . Keywords = source . Keywords ;
6161 _definition . AvailableInDemo = source . AvailableInDemo ;
6262 _definition . UsableInFilters = source . UsableInFilters ;
63- _definition . LabelDisplayColor = source . LabelDisplayColor ;
6463 _definition . Icon = source . Icon ;
6564 _definition . legalStatus = source . legalStatus ;
6665 _definition . PickpocketDifficultyMultiplier = source . PickpocketDifficultyMultiplier ;
@@ -144,7 +143,7 @@ public BuildableItemDefinitionBuilder WithPricing(float basePurchasePrice, float
144143 /// <returns>The builder instance for fluent chaining.</returns>
145144 public BuildableItemDefinitionBuilder WithCategory ( ItemCategory category )
146145 {
147- _definition . Category = ( S1ItemFramework . EItemCategory ) category ;
146+ _definition . Category = ( S1CoreItemFramework . EItemCategory ) category ;
148147 return this ;
149148 }
150149
@@ -159,36 +158,14 @@ public BuildableItemDefinitionBuilder WithStackLimit(int limit)
159158 return this ;
160159 }
161160
162- /// <summary>
163- /// Sets keywords used for filtering and searching this item.
164- /// </summary>
165- /// <param name="keywords">Array of keywords.</param>
166- /// <returns>The builder instance for fluent chaining.</returns>
167- public BuildableItemDefinitionBuilder WithKeywords ( params string [ ] keywords )
168- {
169- _definition . Keywords = keywords ;
170- return this ;
171- }
172-
173- /// <summary>
174- /// Sets the color of the label displayed in UI.
175- /// </summary>
176- /// <param name="color">The color to use for the item label.</param>
177- /// <returns>The builder instance for fluent chaining.</returns>
178- public BuildableItemDefinitionBuilder WithLabelColor ( Color color )
179- {
180- _definition . LabelDisplayColor = color ;
181- return this ;
182- }
183-
184161 /// <summary>
185162 /// Sets the legal status of the item.
186163 /// </summary>
187164 /// <param name="status">Whether the item is legal or illegal.</param>
188165 /// <returns>The builder instance for fluent chaining.</returns>
189166 public BuildableItemDefinitionBuilder WithLegalStatus ( LegalStatus status )
190167 {
191- _definition . legalStatus = ( S1ItemFramework . ELegalStatus ) status ;
168+ _definition . legalStatus = ( S1CoreItemFramework . ELegalStatus ) status ;
192169 return this ;
193170 }
194171
0 commit comments