More better logging
This commit is contained in:
@@ -11,37 +11,37 @@ namespace CykaOfIndustry {
|
||||
[HarmonyPatch(typeof(XRL.World.Parts.Experience), "HandleEvent")]
|
||||
static void xpMultiplier(ref AwardedXPEvent E) {
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: Old XP {0}", E.Amount);
|
||||
Console.WriteLine("CykaOfQud: AwardedXPEvent: Old XP {0}", E.Amount);
|
||||
E.Amount = (int)(E.Amount * Main.xpMultiplier.Value);
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: New XP {0}", E.Amount);
|
||||
Console.WriteLine("CykaOfQud: AwardedXPEvent: New XP {0}", E.Amount);
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(XRL.World.Parts.Leveler), "AddHitpoints")]
|
||||
static void hitpointsPerLevelMultiplier(StringBuilder sb, ref int HPGain) {
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: Old HP for level {0}", HPGain);
|
||||
Console.WriteLine("CykaOfQud: AddHitpoints: Old HP for level {0}", HPGain);
|
||||
HPGain = (int)(HPGain * Main.hitpointsPerLevelMultiplier.Value);
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: New HP for level {0}", HPGain);
|
||||
Console.WriteLine("CykaOfQud: AddHitpoints: New HP for level {0}", HPGain);
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(XRL.World.Parts.Leveler), "AddSkillPoints")]
|
||||
static void skillPointsPerLevelMultiplier(StringBuilder sb, ref int SPGain) {
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: Old SP for level {0}", SPGain);
|
||||
Console.WriteLine("CykaOfQud: AddSkillPoints: Old SP for level {0}", SPGain);
|
||||
SPGain = (int)(SPGain * Main.skillPointsPerLevelMultiplier.Value);
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: New SP for level {0}", SPGain);
|
||||
Console.WriteLine("CykaOfQud: AddSkillPoints: New SP for level {0}", SPGain);
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(XRL.World.Parts.Leveler), "AddMutationPoints")]
|
||||
static void mutationPointsPerLevelMultiplier(StringBuilder sb, ref int MPGain) {
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: Old MP for level {0}", MPGain);
|
||||
Console.WriteLine("CykaOfQud: AddMutationPoints: Old MP for level {0}", MPGain);
|
||||
MPGain = (int)(MPGain * Main.mutationPointsPerLevelMultiplier.Value);
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: New MP for level {0}", MPGain);
|
||||
@@ -51,20 +51,20 @@ namespace CykaOfIndustry {
|
||||
[HarmonyPatch(typeof(XRL.World.Parts.Leveler), "AddAttributePoints")]
|
||||
static void attributePointsPerLevelMultiplier(StringBuilder sb, ref int APGain) {
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: Old AP for level {0}", APGain);
|
||||
Console.WriteLine("CykaOfQud: AddAttributePoints: Old AP for level {0}", APGain);
|
||||
APGain = (int)(APGain * Main.attributePointsPerLevelMultiplier.Value);
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: New AP for level {0}", APGain);
|
||||
Console.WriteLine("CykaOfQud: AddAttributePoints: New AP for level {0}", APGain);
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(XRL.World.Parts.Leveler), "AddAttributeBonus")]
|
||||
static void attributeBonusPerLevelMultiplier(StringBuilder sb, ref int ABGain) {
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: Old AB for level {0}", ABGain);
|
||||
Console.WriteLine("CykaOfQud: AddAttributeBonus: Old AB for level {0}", ABGain);
|
||||
ABGain = (int)(ABGain * Main.attributeBonusPerLevelMultiplier.Value);
|
||||
if (Main.debugMode.Value)
|
||||
Console.WriteLine("CykaOfQud: New AB for level {0}", ABGain);
|
||||
Console.WriteLine("CykaOfQud: AddAttributeBonus: New AB for level {0}", ABGain);
|
||||
}
|
||||
}
|
||||
// [HarmonyPrefix]
|
||||
|
Reference in New Issue
Block a user