Skip to content

Commit

Permalink
Hotfix 0.1.9.5
Browse files Browse the repository at this point in the history
Hotfix 0.1.9.5:
- Fixed Game Crash when Taming all Levels under Master.
- Fixed Null Log report when not close enought to the tame.
- Added Message on the top left corner for: When you are not the tamer. When you get far away from the tame, and when you get close again.
  • Loading branch information
guiriguy committed Apr 5, 2021
1 parent c3e201c commit 5ccefab
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 22 deletions.
8 changes: 4 additions & 4 deletions Config/TamingConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ public void Awake()
if (EnableAllTamableCompatibility.Value)
{
//Boar
BoarLevelUnlock = base.Config.Bind<float>("3. CreatureLevels: AllTamableCompatibility", "Boar Master Level", 0f, "The level at which you are a Master taming this creature. You tame the creature in 2 minutes time");
BoarLevelUnlock = base.Config.Bind<float>("3. CreatureLevels: AllTamableCompatibility", "Boar Master Level", 0f, "The level at which you know how to tame this creature.");
BoarLevelTamer = base.Config.Bind<float>("3. CreatureLevels: AllTamableCompatibility", "Boar Tamer Level", 5f, "The level at which you are good at taming this creature. Reduces the amount of time by half");
BoarLevelMaster = base.Config.Bind<float>("3. CreatureLevels: AllTamableCompatibility", "Boar Unlock Level", 15f, "The level at which you know how to tame this creature.");
BoarLevelMaster = base.Config.Bind<float>("3. CreatureLevels: AllTamableCompatibility", "Boar Unlock Level", 15f, "The level at which you are a Master taming this creature. You tame the creature in 2 minutes time.");
//Wolf
WolfLevelUnlock = base.Config.Bind<float>("3. CreatureLevels: AllTamableCompatibility", "Wolf Unlock Level", 10f, "The level at which you know how to tame this creature.");
WolfLevelTamer = base.Config.Bind<float>("3. CreatureLevels: AllTamableCompatibility", "Wolf Tamer Level", 20f, "The level at which you are good at taming this creature. Reduces the amount of time by half");
Expand All @@ -50,9 +50,9 @@ public void Awake()
else
{
//Boar
BoarLevelUnlock = base.Config.Bind<float>("3. CreatureLevels: Defaults", "Boar Master Level", 0f, "The level at which you are a Master taming this creature. You tame the creature in 2 minutes time");
BoarLevelUnlock = base.Config.Bind<float>("3. CreatureLevels: Defaults", "Boar Unlock Level", 0f, "The level at which you know how to tame this creature.");
BoarLevelTamer = base.Config.Bind<float>("3. CreatureLevels: Defaults", "Boar Tamer Level", 10f, "The level at which you are good at taming this creature. Reduces the amount of time by half");
BoarLevelMaster = base.Config.Bind<float>("3. CreatureLevels: Defaults", "Boar Unlock Level", 40f, "The level at which you know how to tame this creature.");
BoarLevelMaster = base.Config.Bind<float>("3. CreatureLevels: Defaults", "Boar Master Level", 40f, "The level at which you are a Master taming this creature. You tame the creature in 2 minutes time.");
//Wolf
WolfLevelUnlock = base.Config.Bind<float>("3. CreatureLevels: Defaults", "Wolf Unlock Level", 10f, "The level at which you know how to tame this creature.");
WolfLevelTamer = base.Config.Bind<float>("3. CreatureLevels: Defaults", "Wolf Tamer Level", 30f, "The level at which you are good at taming this creature. Reduces the amount of time by half");
Expand Down
3 changes: 2 additions & 1 deletion ModSkills/NewSkills/Hunting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ public static void Postfix(ref CharacterDrop __instance)
if (Chance)
drop.m_chance = vChance + ((1 - vChance) * level);

Debug.Log("Updated mob: " + __instance.name.Replace("(Clone)", "") + " Level: " + __instance.m_character.GetLevel() + " Item: " + drop.m_prefab.name.Replace("(UnityEngine.GameObject)", "") + " Min: " + drop.m_amountMin + " Max: " + drop.m_amountMax + " Chance: " + drop.m_chance);
//Debug.Log("Updated mob: " + __instance.name.Replace("(Clone)", "") + " Level: " + __instance.m_character.GetLevel() + " Item: " + drop.m_prefab.name.Replace("(UnityEngine.GameObject)", "") + " Min: " + drop.m_amountMin + " Max: " + drop.m_amountMax + " Chance: " + drop.m_chance);
}
}
Debug.Log("[MoreSkills Hunting]: Updated mob's loot: " + __instance.name.Replace("(Clone)", "") + " Level: " + __instance.m_character.GetLevel());
}
}
}
Expand Down
Loading

0 comments on commit 5ccefab

Please sign in to comment.