Skip to content

Commit

Permalink
Update to 0.1.6
Browse files Browse the repository at this point in the history
WoodCutting Overhaul added. Fixed minor bugs
  • Loading branch information
guiriguy committed Mar 29, 2021
1 parent b9f0604 commit a7eafab
Show file tree
Hide file tree
Showing 10 changed files with 653 additions and 195 deletions.
171 changes: 133 additions & 38 deletions Config/MoreSkills.Config.cs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Config/MoreSkills.Info.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ public static class PluginInfo

public const string Guid = "com.guiriguy.moreskills";

public const string Version = "0.1.5";
public const string Version = "0.1.6";
}
}
8 changes: 4 additions & 4 deletions ModSkills/NewSkills/Crafting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3422,11 +3422,11 @@ public static void Postfix()
}
}
}
}

MoreSkills_Instances._player.RaiseSkill((Skills.SkillType)MoreSkills_Config.CraftingSkill_Type, ((CraftSkillInc * MoreSkills_Config.CraftingSkillIncreaseMultiplier.Value)) / 10);
//Debug.LogError("EXP: " + CraftSkillInc);
CraftSkillInc = 0;
MoreSkills_Instances._player.RaiseSkill((Skills.SkillType)MoreSkills_Config.CraftingSkill_Type, ((CraftSkillInc * MoreSkills_Config.CraftingSkillIncreaseMultiplier.Value)) / 10);
//Debug.LogError("EXP: " + CraftSkillInc);
CraftSkillInc = 0;
}
}
}

Expand Down
4 changes: 2 additions & 2 deletions ModSkills/NewSkills/Hunting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ public static void Postfix(ref CharacterDrop __instance)
if (Chance)
drop.m_chance = MoreSkills_Config.BaseChanceDrakeFreezeGland.Value + ((1 - MoreSkills_Config.BaseChanceDrakeFreezeGland.Value) * level);
}
else if (drop.m_prefab.name == "TrophyDrake")
else if (drop.m_prefab.name == "TrophyHatchling")
{
if (MoreSkills_Config.EnableHuntingTrophyMod.Value)
{
Expand Down Expand Up @@ -2340,7 +2340,7 @@ public static void Postfix(ref CharacterDrop __instance)
{
if (MoreSkills_Instances._CDAttacker == MoreSkills_Instances._player.GetZDOID())
{
HuntIncrease += ((__instance.m_character.GetMaxHealth()) / 100) * __instance.m_character.GetLevel();
HuntIncrease += ((__instance.m_character.GetMaxHealth()) / 10) * __instance.m_character.GetLevel();
//Debug.LogWarning("Vida máx: " + __instance.m_character.GetMaxHealth() + " Nivel: " + __instance.m_character.GetLevel());
}

Expand Down
6 changes: 3 additions & 3 deletions ModSkills/NewSkills/Strength.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static void Postfix()
if (MoreSkills_Instances._player.IsEncumbered())
{
if (IncEncumbred < 0.10f)
IncEncumbred += ((MoreSkills_Instances._player.GetInventory().GetTotalWeight() / 40000) * MoreSkills_Config.StrengthSkillIncreaseMultiplier.Value);
IncEncumbred += ((MoreSkills_Instances._player.GetInventory().GetTotalWeight() / 20000) * MoreSkills_Config.StrengthSkillIncreaseMultiplier.Value);
else
{
MoreSkills_Instances._player.RaiseSkill((Skills.SkillType)MoreSkills_Config.StrengthSkill_Type, IncEncumbred);
Expand All @@ -54,7 +54,7 @@ public static void Postfix()
if (MoreSkills_Instances._player.IsRunning())
{
if (IncHalfnRunning < 0.10f)
IncHalfnRunning += ((MoreSkills_Instances._player.GetInventory().GetTotalWeight() / 80000) * MoreSkills_Config.StrengthSkillIncreaseMultiplier.Value);
IncHalfnRunning += ((MoreSkills_Instances._player.GetInventory().GetTotalWeight() / 40000) * MoreSkills_Config.StrengthSkillIncreaseMultiplier.Value);
else
{
MoreSkills_Instances._player.RaiseSkill((Skills.SkillType)MoreSkills_Config.StrengthSkill_Type, IncHalfnRunning);
Expand All @@ -64,7 +64,7 @@ public static void Postfix()
else
{
if (IncHalfnMoving < 0.10f)
IncHalfnMoving += ((MoreSkills_Instances._player.GetInventory().GetTotalWeight() / 120000) * MoreSkills_Config.StrengthSkillIncreaseMultiplier.Value);
IncHalfnMoving += ((MoreSkills_Instances._player.GetInventory().GetTotalWeight() / 60000) * MoreSkills_Config.StrengthSkillIncreaseMultiplier.Value);
else
{
MoreSkills_Instances._player.RaiseSkill((Skills.SkillType)MoreSkills_Config.StrengthSkill_Type, IncHalfnMoving);
Expand Down
Loading

0 comments on commit a7eafab

Please sign in to comment.