Skip to content

Commit

Permalink
Housekeeping
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellovell committed Oct 21, 2021
1 parent 095cbbd commit 2fd9a0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 2 additions & 2 deletions DeepMineMod/DeepMinePlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class DeepMinePlugin : BaseUnityPlugin

public static void ModLog(string text)
{
UnityEngine.Debug.Log("[Deep Mine Mod] " + text);
UnityEngine.Debug.Log("[Deep Mine Mod]: " + text);
}

// Awake is called once when both the game and the plug-in are loaded
Expand All @@ -30,7 +30,7 @@ void Awake()
HandleConfig();

ModLog("Successfully loaded Deep Mine Mod");
ModLog("Patching...");
ModLog("Attempting to patch");
var harmony = new Harmony("com.dl.deepmine");
harmony.PatchAll();
ModLog("Patched");
Expand Down
11 changes: 2 additions & 9 deletions DeepMineMod/Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,6 @@ static void Postfix(Mineables __instance, Mineables masterInstance, Vector3 posi
__instance.MinDropQuantity = 20;
__instance.MaxDropQuantity = 40;
}
//Debug.Log("Position: " + position.y + " new drop quantities: " + __instance.MinDropQuantity + " " + __instance.MaxDropQuantity);
//__instance.VeinSize =
//__instance.VeinSize = Math.Min(10, Math.Max(0, __instance.VeinSize));
//Debug.Log(__instance.Position + __instance.DisplayName);
}
}

Expand All @@ -83,12 +79,11 @@ static void Postfix(CursorVoxel __instance)
{
Type typeBoxCollider = __instance.GameObject.GetComponent("BoxCollider").GetType();
PropertyInfo prop = typeBoxCollider.GetProperty("size");
//prop.SetValue(__instance.GameObject.GetComponent("BoxCollider"), new Vector3(5, 5, 5), null);
}
}

/// <summary>
/// Prevents lava bedrock texture from spawning
/// Prevents lava bedrock texture from spawning, potentially has insidious effect but unclear from initial tests
/// </summary>
[HarmonyPatch(typeof(TerrainGeneration), "SetUpChunk", new Type[] { typeof(ChunkObject) })]
public class TerrainGeneration_SetUpChunk
Expand All @@ -112,8 +107,6 @@ public class WorldManager_SetWorldEnvironments
static void Prefix(TerrainGeneration __instance)
{
WorldManager.BedrockLevel = DeepMinePlugin.BedrockDepth;
//WorldManager.SizeOfWorld = -(int)DeepMinePlugin.BedrockDepth / 2;
//WorldManager.HalfSizeOfWorld = -(int)DeepMinePlugin.BedrockDepth / 4;
WorldManager.LavaLevel = DeepMinePlugin.BedrockDepth;
}
}
Expand Down Expand Up @@ -144,7 +137,7 @@ static void Prefix(MiningDrill __instance)
}

/// <summary>
/// Increasing drill speed
/// Alter GPR Range
/// </summary>
[HarmonyPatch(typeof(PortableGPR), "Awake")]
public class PortableGPR_Awake
Expand Down

0 comments on commit 2fd9a0c

Please sign in to comment.