Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Mistlands update skills #762

Open
wants to merge 3 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ public class ExperienceConfiguration : ServerSyncConfig<ExperienceConfiguration>
public float unarmed { get; internal set; } = 0;
public float pickaxes { get; internal set; } = 0;
public float woodCutting { get; internal set; } = 0;
public float crossbows { get; internal set; } = 0;
public float jump { get; internal set; } = 0;
public float sneak { get; internal set; } = 0;
public float run { get; internal set; } = 0;
public float swim { get; internal set; } = 0;
public float fishing { get; internal set; } = 0;
public float ride { get; internal set; } = 0;

}
Expand Down
8 changes: 8 additions & 0 deletions ValheimPlus/GameClasses/Skills.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ private static void Prefix(ref Skills __instance, ref Skills.SkillType skillType
case SkillType.WoodCutting:
factor = Helper.applyModifierValue(factor, Configuration.Current.Experience.woodCutting);
break;
case SkillType.Crossbows:
factor = Helper.applyModifierValue(factor, Configuration.Current.Experience.crossbows);
break;
case SkillType.Jump:
factor = Helper.applyModifierValue(factor, Configuration.Current.Experience.jump);
break;
Expand All @@ -70,6 +73,9 @@ private static void Prefix(ref Skills __instance, ref Skills.SkillType skillType
case SkillType.Swim:
factor = Helper.applyModifierValue(factor, Configuration.Current.Experience.swim);
break;
case SkillType.Fishing:
factor = Helper.applyModifierValue(factor, Configuration.Current.Experience.fishing);
break;
case SkillType.Ride:
factor = Helper.applyModifierValue(factor, Configuration.Current.Experience.ride);
break;
Expand Down Expand Up @@ -117,10 +123,12 @@ public enum SkillType
Unarmed,
Pickaxes,
WoodCutting,
Crossbows,
Jump = 100,
Sneak,
Run,
Swim,
Fishing,
Ride = 110,
All = 999
}
Expand Down