Always get some skills please
This commit is contained in:
@@ -22,6 +22,8 @@ namespace CykaOfIndustry {
|
|||||||
static void hitpointsPerLevelMultiplier(StringBuilder sb, ref int HPGain) {
|
static void hitpointsPerLevelMultiplier(StringBuilder sb, ref int HPGain) {
|
||||||
if (Main.debugMode.Value)
|
if (Main.debugMode.Value)
|
||||||
Console.WriteLine("CykaOfQud: AddHitpoints: Old HP for level {0}", HPGain);
|
Console.WriteLine("CykaOfQud: AddHitpoints: Old HP for level {0}", HPGain);
|
||||||
|
if (HPGain == 0)
|
||||||
|
HPGain = 1;
|
||||||
HPGain = (int)(HPGain * Main.hitpointsPerLevelMultiplier.Value);
|
HPGain = (int)(HPGain * Main.hitpointsPerLevelMultiplier.Value);
|
||||||
if (Main.debugMode.Value)
|
if (Main.debugMode.Value)
|
||||||
Console.WriteLine("CykaOfQud: AddHitpoints: New HP for level {0}", HPGain);
|
Console.WriteLine("CykaOfQud: AddHitpoints: New HP for level {0}", HPGain);
|
||||||
@@ -32,6 +34,8 @@ namespace CykaOfIndustry {
|
|||||||
static void skillPointsPerLevelMultiplier(StringBuilder sb, ref int SPGain) {
|
static void skillPointsPerLevelMultiplier(StringBuilder sb, ref int SPGain) {
|
||||||
if (Main.debugMode.Value)
|
if (Main.debugMode.Value)
|
||||||
Console.WriteLine("CykaOfQud: AddSkillPoints: Old SP for level {0}", SPGain);
|
Console.WriteLine("CykaOfQud: AddSkillPoints: Old SP for level {0}", SPGain);
|
||||||
|
if (SPGain == 0)
|
||||||
|
SPGain = 1;
|
||||||
SPGain = (int)(SPGain * Main.skillPointsPerLevelMultiplier.Value);
|
SPGain = (int)(SPGain * Main.skillPointsPerLevelMultiplier.Value);
|
||||||
if (Main.debugMode.Value)
|
if (Main.debugMode.Value)
|
||||||
Console.WriteLine("CykaOfQud: AddSkillPoints: New SP for level {0}", SPGain);
|
Console.WriteLine("CykaOfQud: AddSkillPoints: New SP for level {0}", SPGain);
|
||||||
@@ -42,9 +46,11 @@ namespace CykaOfIndustry {
|
|||||||
static void mutationPointsPerLevelMultiplier(StringBuilder sb, ref int MPGain) {
|
static void mutationPointsPerLevelMultiplier(StringBuilder sb, ref int MPGain) {
|
||||||
if (Main.debugMode.Value)
|
if (Main.debugMode.Value)
|
||||||
Console.WriteLine("CykaOfQud: AddMutationPoints: Old MP for level {0}", MPGain);
|
Console.WriteLine("CykaOfQud: AddMutationPoints: Old MP for level {0}", MPGain);
|
||||||
|
if (MPGain == 0)
|
||||||
|
MPGain = 1;
|
||||||
MPGain = (int)(MPGain * Main.mutationPointsPerLevelMultiplier.Value);
|
MPGain = (int)(MPGain * Main.mutationPointsPerLevelMultiplier.Value);
|
||||||
if (Main.debugMode.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]
|
[HarmonyPrefix]
|
||||||
@@ -52,6 +58,8 @@ namespace CykaOfIndustry {
|
|||||||
static void attributePointsPerLevelMultiplier(StringBuilder sb, ref int APGain) {
|
static void attributePointsPerLevelMultiplier(StringBuilder sb, ref int APGain) {
|
||||||
if (Main.debugMode.Value)
|
if (Main.debugMode.Value)
|
||||||
Console.WriteLine("CykaOfQud: AddAttributePoints: Old AP for level {0}", APGain);
|
Console.WriteLine("CykaOfQud: AddAttributePoints: Old AP for level {0}", APGain);
|
||||||
|
if (APGain == 0)
|
||||||
|
APGain = 1;
|
||||||
APGain = (int)(APGain * Main.attributePointsPerLevelMultiplier.Value);
|
APGain = (int)(APGain * Main.attributePointsPerLevelMultiplier.Value);
|
||||||
if (Main.debugMode.Value)
|
if (Main.debugMode.Value)
|
||||||
Console.WriteLine("CykaOfQud: AddAttributePoints: New AP for level {0}", APGain);
|
Console.WriteLine("CykaOfQud: AddAttributePoints: New AP for level {0}", APGain);
|
||||||
@@ -62,6 +70,8 @@ namespace CykaOfIndustry {
|
|||||||
static void attributeBonusPerLevelMultiplier(StringBuilder sb, ref int ABGain) {
|
static void attributeBonusPerLevelMultiplier(StringBuilder sb, ref int ABGain) {
|
||||||
if (Main.debugMode.Value)
|
if (Main.debugMode.Value)
|
||||||
Console.WriteLine("CykaOfQud: AddAttributeBonus: Old AB for level {0}", ABGain);
|
Console.WriteLine("CykaOfQud: AddAttributeBonus: Old AB for level {0}", ABGain);
|
||||||
|
if (ABGain == 0)
|
||||||
|
ABGain = 1;
|
||||||
ABGain = (int)(ABGain * Main.attributeBonusPerLevelMultiplier.Value);
|
ABGain = (int)(ABGain * Main.attributeBonusPerLevelMultiplier.Value);
|
||||||
if (Main.debugMode.Value)
|
if (Main.debugMode.Value)
|
||||||
Console.WriteLine("CykaOfQud: AddAttributeBonus: New AB for level {0}", ABGain);
|
Console.WriteLine("CykaOfQud: AddAttributeBonus: New AB for level {0}", ABGain);
|
||||||
|
Reference in New Issue
Block a user