|
1 | 1 | #if (IL2CPPMELON) |
2 | 2 | using S1ItemFramework = Il2CppScheduleOne.ItemFramework; |
| 3 | +using S1CoreItemFramework = Il2CppScheduleOne.Core.Items.Framework; |
3 | 4 | using S1Registry = Il2CppScheduleOne.Registry; |
4 | 5 | using S1Storage = Il2CppScheduleOne.Storage; |
5 | 6 | #elif (MONOMELON || MONOBEPINEX || IL2CPPBEPINEX) |
6 | 7 | using S1ItemFramework = ScheduleOne.ItemFramework; |
| 8 | +using S1CoreItemFramework = ScheduleOne.Core.Items.Framework; |
7 | 9 | using S1Registry = ScheduleOne.Registry; |
8 | 10 | using S1Storage = ScheduleOne.Storage; |
9 | 11 | #endif |
@@ -39,11 +41,10 @@ internal AdditiveDefinitionBuilder() |
39 | 41 | _definition.StackLimit = 10; |
40 | 42 | _definition.BasePurchasePrice = 10f; |
41 | 43 | _definition.ResellMultiplier = 0.5f; |
42 | | - _definition.Category = S1ItemFramework.EItemCategory.Agriculture; |
43 | | - _definition.legalStatus = S1ItemFramework.ELegalStatus.Legal; |
| 44 | + _definition.Category = S1CoreItemFramework.EItemCategory.Agriculture; |
| 45 | + _definition.legalStatus = S1CoreItemFramework.ELegalStatus.Legal; |
44 | 46 | _definition.AvailableInDemo = true; |
45 | 47 | _definition.UsableInFilters = true; |
46 | | - _definition.LabelDisplayColor = Color.white; |
47 | 48 |
|
48 | 49 | // Provide a minimal StoredItem placeholder so the field is never null in tooling/inspectors. |
49 | 50 | _storedItemPlaceholder = new GameObject("S1API_DefaultStoredItem"); |
@@ -82,10 +83,8 @@ private void CopyPropertiesFrom(S1ItemFramework.AdditiveDefinition source) |
82 | 83 | _definition.Description = source.Description; |
83 | 84 | _definition.Category = source.Category; |
84 | 85 | _definition.StackLimit = source.StackLimit; |
85 | | - _definition.Keywords = source.Keywords; |
86 | 86 | _definition.AvailableInDemo = source.AvailableInDemo; |
87 | 87 | _definition.UsableInFilters = source.UsableInFilters; |
88 | | - _definition.LabelDisplayColor = source.LabelDisplayColor; |
89 | 88 | _definition.Icon = source.Icon; |
90 | 89 | _definition.legalStatus = source.legalStatus; |
91 | 90 | _definition.PickpocketDifficultyMultiplier = source.PickpocketDifficultyMultiplier; |
@@ -116,7 +115,7 @@ public AdditiveDefinitionBuilder WithBasicInfo(string id, string name, string de |
116 | 115 | _definition.ID = id; |
117 | 116 | _definition.Name = name; |
118 | 117 | _definition.Description = description; |
119 | | - _definition.Category = (S1ItemFramework.EItemCategory)category; |
| 118 | + _definition.Category = (S1CoreItemFramework.EItemCategory)category; |
120 | 119 |
|
121 | 120 | var displayName = string.IsNullOrEmpty(name) ? id : name; |
122 | 121 | if (!string.IsNullOrEmpty(displayName)) |
@@ -164,25 +163,7 @@ public AdditiveDefinitionBuilder WithPricing(float basePurchasePrice, float rese |
164 | 163 | /// </summary> |
165 | 164 | public AdditiveDefinitionBuilder WithLegalStatus(LegalStatus status) |
166 | 165 | { |
167 | | - _definition.legalStatus = (S1ItemFramework.ELegalStatus)status; |
168 | | - return this; |
169 | | - } |
170 | | - |
171 | | - /// <summary> |
172 | | - /// Sets the color of the label displayed in UI. |
173 | | - /// </summary> |
174 | | - public AdditiveDefinitionBuilder WithLabelColor(Color color) |
175 | | - { |
176 | | - _definition.LabelDisplayColor = color; |
177 | | - return this; |
178 | | - } |
179 | | - |
180 | | - /// <summary> |
181 | | - /// Sets keywords used for filtering and searching this additive. |
182 | | - /// </summary> |
183 | | - public AdditiveDefinitionBuilder WithKeywords(params string[] keywords) |
184 | | - { |
185 | | - _definition.Keywords = keywords; |
| 166 | + _definition.legalStatus = (S1CoreItemFramework.ELegalStatus)status; |
186 | 167 | return this; |
187 | 168 | } |
188 | 169 |
|
|
0 commit comments