Skip to content

Commit

Permalink
Base mood changes based on difficulty
Browse files Browse the repository at this point in the history
  • Loading branch information
MutantWafflez committed Jul 6, 2024
1 parent 68b0d34 commit c283c55
Showing 1 changed file with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ public sealed partial class TownNPCMoodModule : TownNPCModule {
public const float MaxMoodValue = 100f;
public const float MinMoodValue = 0f;

private const float BaseMoodValue = 50f;

private static readonly Regex TownNPCNameRegex = LoadNPCNameRegex();

private static Dictionary<string, MoodModifier> _moodModifiers;
Expand All @@ -39,6 +37,21 @@ public sealed partial class TownNPCMoodModule : TownNPCModule {
MaxMoodValue
);

private static float BaseMoodValue {
get {
float baseValue = 50f;
if (Main.expertMode) {
baseValue -= 5f;
}

if (Main.masterMode) {
baseValue -= 5f;
}

return baseValue;
}
}

public TownNPCMoodModule(NPC npc) : base(npc) {
_currentStaticMoodModifiers = [];
_currentDynamicMoodModifiers = [];
Expand Down

0 comments on commit c283c55

Please sign in to comment.