Add xp multiplier.. of some variety
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection.Emit;
|
||||
using CykaOfQud;
|
||||
using HarmonyLib;
|
||||
//using Mafi;
|
||||
//using Mafi.Collections.ImmutableCollections;
|
||||
@@ -28,18 +29,20 @@ using HarmonyLib;
|
||||
//using Mafi.Core.World.Entities;
|
||||
|
||||
namespace CykaOfIndustry {
|
||||
// [HarmonyPatch]
|
||||
// public class Patches {
|
||||
// [HarmonyPrefix]
|
||||
// [HarmonyPatch(typeof(ExcavatorProtoBuilder.ExcavatorProtoBuilderState), "SetCapacity")]
|
||||
// static void excavatorCapacityMultiplier(ref int quantity) {
|
||||
// if (Main.debugMode.Value)
|
||||
// Console.WriteLine("IndustrialCyka: Old excavator capacity {0}", quantity);
|
||||
// quantity *= Main.excavatorCapacityMultiplier.Value;
|
||||
// if (Main.debugMode.Value)
|
||||
// Console.WriteLine("IndustrialCyka: New excavator capacity {0}", quantity);
|
||||
// }
|
||||
//
|
||||
[HarmonyPatch]
|
||||
public class Patches {
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch(typeof(XRL.World.Parts.Leveler), "GetXPForLevel")]
|
||||
static int xpPerLevelMultiplier(ref int __result) {
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: Old XP for level {0}", __result);
|
||||
__result = (int)(__result * Main.xpPerLevelMultiplier.Value);
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: New XP for level {0}", __result);
|
||||
return __result;
|
||||
}
|
||||
|
||||
}
|
||||
// [HarmonyPrefix]
|
||||
// [HarmonyPatch(typeof(ExcavatorProtoBuilder.ExcavatorProtoBuilderState), "SetMinedThicknessByDistanceMeters")]
|
||||
// static void excavatorMiningAreaMultiplier(ref float[] thicknessMeters) {
|
||||
|
||||
Reference in New Issue
Block a user