Skip to content

Commit

Permalink
- Update luck skill name and behavior for the new one
Browse files Browse the repository at this point in the history
  • Loading branch information
agilbert1412 committed Dec 4, 2024
1 parent bd85e51 commit 4bb9d56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class ArchipelagoSkillNames

public class ArchipelagoSkillIds
{
public const string LUCK = "Luck";
public const string LUCK = "moonslime.Luck";
public const string BINNING = "drbirbdev.Binning";
public const string MAGIC = "spacechase0.Magic";
public const string ARCHAEOLOGY = "moonslime.Archaeology";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ public void RegisterUnlocks(IDictionary<string, Func<ReceivedItem, LetterAttachm

private LetterAttachment SendProgressiveLuckLevel(ReceivedItem receivedItem)
{
foreach (var farmer in Game1.getAllFarmers())
{
var experienceForLevelUp = farmer.GetExperienceToNextLevel(Skill.Luck);
farmer.AddExperience(Skill.Luck, experienceForLevelUp);
farmer.luckLevel.Value++;
farmer.newLevels.Add(new Point((int)Skill.Luck, farmer.luckLevel.Value));
}
ReceiveAPLevel(ArchipelagoSkillIds.LUCK);
return new LetterInformationAttachment(receivedItem);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static class SkillInjections
private static readonly Dictionary<Skill, string> _skillToModName = new()
{
{ Skill.Magic, ModNames.MAGIC }, { Skill.Binning, ModNames.BINNING }, { Skill.Cooking, ModNames.COOKING },
{ Skill.Archaeology, ModNames.ARCHAEOLOGY }, { Skill.Socializing, ModNames.SOCIALIZING },
{ Skill.Archaeology, ModNames.ARCHAEOLOGY }, { Skill.Socializing, ModNames.SOCIALIZING }, { Skill.Luck, ModNames.LUCK },
};

private static ILogger _logger;
Expand Down

0 comments on commit 4bb9d56

Please sign in to comment.