Skip to content

Commit 0370e69

Browse files
committed
feat: cleanup + fix docs
1 parent 3d46450 commit 0370e69

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

COTL_API/CustomInventory/Patches/CustomItemRefineryPatches.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ public static void UIRefineryMenuController_Show(ref UIMenuBase __instance)
5454

5555
[HarmonyPostfix]
5656
[HarmonyPatch(typeof(RefineryInfoCard), nameof(RefineryInfoCard.Configure))]
57-
public static void RefineryInfoCard_Configure(ref RefineryInfoCard __instance, ref RefineryItem config) {
57+
public static void RefineryInfoCard_Configure(ref RefineryInfoCard __instance, ref RefineryItem config)
58+
{
5859
var itemtype = config.Type;
5960
if (!CustomItemList.TryGetValue(itemtype, out var value)) return;
6061

COTL_API/CustomObjectives/CustomObjectiveManager.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,14 @@ public static CustomObjective PerformRitual(UpgradeSystem.Type ritual, int targe
166166
}
167167

168168
/// <param name="category">The category of structure to place.</param>
169+
/// <param name="type">The type of structure to place.</param>
169170
/// <param name="target">The target amount to complete the objective.</param>
170171
/// <param name="expireDuration">How long the player has to complete the objective.</param>
171172
/// <returns>Returns a CustomObjective object.</returns>
172-
public static CustomObjective PlaceStructure(StructureBrain.Categories category,Objectives_PlaceStructure.DecorationType deco, int target, float expireDuration)
173+
public static CustomObjective PlaceStructure(StructureBrain.Categories category,
174+
Objectives_PlaceStructure.DecorationType type, int target, float expireDuration)
173175
{
174-
Objectives_PlaceStructure q = new(GroupId, category, deco , target, expireDuration);
176+
Objectives_PlaceStructure q = new(GroupId, category, type, target, expireDuration);
175177
return WorkMagic(q.ID, DefaultQuestText, q);
176178
}
177179

0 commit comments

Comments
 (0)