2019-01-06 15:21:06 +08:00
using StardewModdingAPI ;
2018-12-30 18:00:05 +08:00
namespace Omegasis.HappyBirthday.Framework
2017-08-06 03:51:44 +08:00
{
/// <summary>The mod configuration.</summary>
2018-09-19 09:04:38 +08:00
public class ModConfig
2017-08-06 03:51:44 +08:00
{
/// <summary>The key which shows the menu.</summary>
2019-01-06 15:21:06 +08:00
public SButton KeyBinding { get ; set ; } = SButton . O ;
2018-09-19 09:04:38 +08:00
2018-12-30 18:00:05 +08:00
/// <summary>The minimum amount of friendship needed to get a birthday gift.</summary>
2018-09-19 09:04:38 +08:00
public int minNeutralFriendshipGiftLevel = 3 ;
2018-12-30 18:00:05 +08:00
/// <summary>The max amount of friendship needed to get a neutral gift from an npc.</summary>
2018-09-19 09:04:38 +08:00
public int maxNeutralFriendshipGiftLevel = 4 ;
/// <summary>
///The minimum amount of friendship to get a like gift from an npc.
/// </summary>
public int minLikeFriendshipLevel = 5 ;
2018-12-30 18:00:05 +08:00
/// <summary>The max amount of friendship needed to get a liked gift from an npc.</summary>
2018-09-19 09:04:38 +08:00
public int maxLikeFriendshipLevel = 6 ;
2018-12-30 18:00:05 +08:00
/// <summary>The minimum amount of friendship needed to get a loved gift from an npc.</summary>
2018-09-19 09:04:38 +08:00
public int minLoveFriendshipLevel = 7 ;
2018-12-30 18:00:05 +08:00
/// <summary>The minimum amount of friendship needed to get a happy birthday greeting from an npc.</summary>
public int minimumFriendshipLevelForBirthdayWish = 2 ;
2018-09-19 09:04:38 +08:00
2019-12-11 09:16:25 +08:00
public bool autoSetTranslation { get ; set ; } = true ;
2018-12-30 18:00:05 +08:00
/// <summary>Handles different translations of files.</summary>
2018-09-19 09:04:38 +08:00
public TranslationInfo translationInfo ;
2018-12-30 18:00:05 +08:00
/// <summary>Whether or not to load from the old BirthdayGifts.xnb located in StardewValley/Data or from the new BirthdayGifts.json located in the mod directory.</summary>
2018-12-06 09:16:28 +08:00
public bool useLegacyBirthdayFiles ;
2019-12-11 09:16:25 +08:00
2018-12-30 18:00:05 +08:00
/// <summary>Construct an instance.</summary>
2018-09-19 09:04:38 +08:00
public ModConfig ( )
{
this . translationInfo = new TranslationInfo ( ) ;
2018-12-06 09:16:28 +08:00
this . useLegacyBirthdayFiles = true ;
2018-09-19 09:04:38 +08:00
}
2017-08-06 03:51:44 +08:00
}
}