Always get some skills please

This commit is contained in:
2024-12-09 17:25:29 +01:00
parent dd515529f9
commit dd3c227447

View File

@@ -22,6 +22,8 @@ namespace CykaOfIndustry {
static void hitpointsPerLevelMultiplier(StringBuilder sb, ref int HPGain) {
if (Main.debugMode.Value)
Console.WriteLine("CykaOfQud: AddHitpoints: Old HP for level {0}", HPGain);
if (HPGain == 0)
HPGain = 1;
HPGain = (int)(HPGain * Main.hitpointsPerLevelMultiplier.Value);
if (Main.debugMode.Value)
Console.WriteLine("CykaOfQud: AddHitpoints: New HP for level {0}", HPGain);
@@ -32,6 +34,8 @@ namespace CykaOfIndustry {
static void skillPointsPerLevelMultiplier(StringBuilder sb, ref int SPGain) {
if (Main.debugMode.Value)
Console.WriteLine("CykaOfQud: AddSkillPoints: Old SP for level {0}", SPGain);
if (SPGain == 0)
SPGain = 1;
SPGain = (int)(SPGain * Main.skillPointsPerLevelMultiplier.Value);
if (Main.debugMode.Value)
Console.WriteLine("CykaOfQud: AddSkillPoints: New SP for level {0}", SPGain);
@@ -42,9 +46,11 @@ namespace CykaOfIndustry {
static void mutationPointsPerLevelMultiplier(StringBuilder sb, ref int MPGain) {
if (Main.debugMode.Value)
Console.WriteLine("CykaOfQud: AddMutationPoints: Old MP for level {0}", MPGain);
if (MPGain == 0)
MPGain = 1;
MPGain = (int)(MPGain * Main.mutationPointsPerLevelMultiplier.Value);
if (Main.debugMode.Value)
Console.WriteLine("CykaOfQud: New MP for level {0}", MPGain);
Console.WriteLine("CykaOfQud: AddMutationPoints: New MP for level {0}", MPGain);
}
[HarmonyPrefix]
@@ -52,6 +58,8 @@ namespace CykaOfIndustry {
static void attributePointsPerLevelMultiplier(StringBuilder sb, ref int APGain) {
if (Main.debugMode.Value)
Console.WriteLine("CykaOfQud: AddAttributePoints: Old AP for level {0}", APGain);
if (APGain == 0)
APGain = 1;
APGain = (int)(APGain * Main.attributePointsPerLevelMultiplier.Value);
if (Main.debugMode.Value)
Console.WriteLine("CykaOfQud: AddAttributePoints: New AP for level {0}", APGain);
@@ -62,6 +70,8 @@ namespace CykaOfIndustry {
static void attributeBonusPerLevelMultiplier(StringBuilder sb, ref int ABGain) {
if (Main.debugMode.Value)
Console.WriteLine("CykaOfQud: AddAttributeBonus: Old AB for level {0}", ABGain);
if (ABGain == 0)
ABGain = 1;
ABGain = (int)(ABGain * Main.attributeBonusPerLevelMultiplier.Value);
if (Main.debugMode.Value)
Console.WriteLine("CykaOfQud: AddAttributeBonus: New AB for level {0}", ABGain);