Include Happy Birthday content files with mod. Also added in support for Chinese and other messages to be loaded from .json files.
This commit is contained in:
parent
3931ba81b8
commit
0862d7559d
|
@ -11,7 +11,6 @@ namespace Omegasis.HappyBirthday
|
||||||
|
|
||||||
public Dictionary<string, string> spouseBirthdayWishes;
|
public Dictionary<string, string> spouseBirthdayWishes;
|
||||||
|
|
||||||
// TODO: Make this.
|
|
||||||
public Dictionary<string, string> defaultSpouseBirthdayWishes = new Dictionary<string, string>()
|
public Dictionary<string, string> defaultSpouseBirthdayWishes = new Dictionary<string, string>()
|
||||||
{
|
{
|
||||||
["Alex"] = "",
|
["Alex"] = "",
|
||||||
|
@ -28,7 +27,7 @@ namespace Omegasis.HappyBirthday
|
||||||
["Penny"] = "",
|
["Penny"] = "",
|
||||||
};
|
};
|
||||||
|
|
||||||
/// <summary>Used to contain</summary>
|
/// <summary>Used to contain birthday wishes should the mod not find any available.</summary>
|
||||||
public Dictionary<string, string> defaultBirthdayWishes = new Dictionary<string, string>()
|
public Dictionary<string, string> defaultBirthdayWishes = new Dictionary<string, string>()
|
||||||
{
|
{
|
||||||
["Robin"] = "Hey @, happy birthday! I'm glad you choose this town to move here to. ",
|
["Robin"] = "Hey @, happy birthday! I'm glad you choose this town to move here to. ",
|
||||||
|
@ -66,6 +65,76 @@ namespace Omegasis.HappyBirthday
|
||||||
["Krobus"] = "I have heard that it is tradition to give a gift to others on their birthday. In that case, happy birthday @."
|
["Krobus"] = "I have heard that it is tradition to give a gift to others on their birthday. In that case, happy birthday @."
|
||||||
};
|
};
|
||||||
|
|
||||||
|
public BirthdayMessages()
|
||||||
|
{
|
||||||
|
createBirthdayGreetings();
|
||||||
|
loadTranslationStrings();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public Dictionary<StardewValley.LocalizedContentManager.LanguageCode, Dictionary<string, string>> translatedStrings = new Dictionary<StardewValley.LocalizedContentManager.LanguageCode, Dictionary<string, string>>()
|
||||||
|
{
|
||||||
|
[StardewValley.LocalizedContentManager.LanguageCode.de] = new Dictionary<string, string>()
|
||||||
|
{
|
||||||
|
["Mail:birthdayMom"] = "",
|
||||||
|
["Mail:birthdayDad"] = "",
|
||||||
|
["Happy Birthday: Star Message"] = "",
|
||||||
|
["Happy Birthday: Farmhand Birthday Message"] = ""
|
||||||
|
},
|
||||||
|
[StardewValley.LocalizedContentManager.LanguageCode.en] = new Dictionary<string, string>()
|
||||||
|
{
|
||||||
|
["Mail:birthdayMom"] = "Dear @,^ Happy birthday sweetheart. It's been amazing watching you grow into the kind, hard working person that I've always dreamed that you would become. I hope you continue to make many more fond memories with the ones you love. ^ Love, Mom ^ P.S. Here's a little something that I made for you. %item object 221 1 %%",
|
||||||
|
["Mail:birthdayDad"] = "Dear @,^ Happy birthday kiddo. It's been a little quiet around here on your birthday since you aren't around, but your mother and I know that you are making both your grandpa and us proud. We both know that living on your own can be tough but we believe in you one hundred percent, just keep following your dreams.^ Love, Dad ^ P.S. Here's some spending money to help you out on the farm. Good luck! %item money 5000 5001 %%",
|
||||||
|
["Happy Birthday: Star Message"] = "It's your birthday today! Happy birthday!",
|
||||||
|
["Happy Birthday: Farmhand Birthday Message"] = "It's @'s birthday! Happy birthday to them!"
|
||||||
|
},
|
||||||
|
[StardewValley.LocalizedContentManager.LanguageCode.es] = new Dictionary<string, string>()
|
||||||
|
{
|
||||||
|
["Mail:birthdayMom"] = "",
|
||||||
|
["Mail:birthdayDad"] = "",
|
||||||
|
["Happy Birthday: Star Message"] = "",
|
||||||
|
["Happy Birthday: Farmhand Birthday Message"] = ""
|
||||||
|
},
|
||||||
|
[StardewValley.LocalizedContentManager.LanguageCode.ja] = new Dictionary<string, string>()
|
||||||
|
{
|
||||||
|
["Mail:birthdayMom"] = "",
|
||||||
|
["Mail:birthdayDad"] = "",
|
||||||
|
["Happy Birthday: Star Message"] = "",
|
||||||
|
["Happy Birthday: Farmhand Birthday Message"] = ""
|
||||||
|
},
|
||||||
|
[StardewValley.LocalizedContentManager.LanguageCode.pt] = new Dictionary<string, string>()
|
||||||
|
{
|
||||||
|
["Mail:birthdayMom"] = "",
|
||||||
|
["Mail:birthdayDad"] = "",
|
||||||
|
["Happy Birthday: Star Message"] = "",
|
||||||
|
["Happy Birthday: Farmhand Birthday Message"] = ""
|
||||||
|
},
|
||||||
|
[StardewValley.LocalizedContentManager.LanguageCode.ru] = new Dictionary<string, string>()
|
||||||
|
{
|
||||||
|
["Mail:birthdayMom"] = "",
|
||||||
|
["Mail:birthdayDad"] = "",
|
||||||
|
["Happy Birthday: Star Message"] = "",
|
||||||
|
["Happy Birthday: Farmhand Birthday Message"] = ""
|
||||||
|
},
|
||||||
|
[StardewValley.LocalizedContentManager.LanguageCode.th] = new Dictionary<string, string>()
|
||||||
|
{
|
||||||
|
["Mail:birthdayMom"] = "",
|
||||||
|
["Mail:birthdayDad"] = "",
|
||||||
|
["Happy Birthday: Star Message"] = "",
|
||||||
|
["Happy Birthday: Farmhand Birthday Message"] = ""
|
||||||
|
},
|
||||||
|
[StardewValley.LocalizedContentManager.LanguageCode.zh] = new Dictionary<string, string>()
|
||||||
|
{
|
||||||
|
["Mail:birthdayMom"] = "亲爱的@,^ 生日快乐宝贝。看着你成长成为一个善良努力的人,就如我一直梦想着你成为的样子,我感到十分欣喜。我希望你能继续跟你爱的人制造更多美好的回忆。 ^ 爱你的,妈妈 ^ 附言:这是我给你做的一点小礼物。 %item object 221 1 %%",
|
||||||
|
["Mail:birthdayDad"] = "亲爱的@,^ 生日快乐孩子。你生日的这天没有你,我们这儿还挺寂寞的,但我和你妈妈都知道你让我们和你爷爷感到骄傲。我们知道你一个人生活可能会很艰难,但我们百分百相信你能做到,所以继续追求你的梦想吧。^ 爱你的,爸爸 ^ 附言:这是能在农场上帮到你的一些零用钱。祝你好运! %item money 5000 5001 %%",
|
||||||
|
["Happy Birthday: Star Message"] = "今天是你的生日!生日快乐!",
|
||||||
|
["Happy Birthday: Farmhand Birthday Message"] = ""
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>Used to load all of the default birthday greetings.</summary>
|
/// <summary>Used to load all of the default birthday greetings.</summary>
|
||||||
public void createBirthdayGreetings()
|
public void createBirthdayGreetings()
|
||||||
{
|
{
|
||||||
|
@ -144,5 +213,48 @@ namespace Omegasis.HappyBirthday
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static string GetTranslatedString(string key)
|
||||||
|
{
|
||||||
|
StardewValley.LocalizedContentManager.LanguageCode code = HappyBirthday.Config.translationInfo.translationCodes[HappyBirthday.Config.translationInfo.currentTranslation];
|
||||||
|
string value= HappyBirthday.Instance.messages.translatedStrings[code][key];
|
||||||
|
if (string.IsNullOrEmpty(value))
|
||||||
|
{
|
||||||
|
return GetEnglishMessageString(key);
|
||||||
|
}
|
||||||
|
else return value;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string GetEnglishMessageString(string key)
|
||||||
|
{
|
||||||
|
StardewValley.LocalizedContentManager.LanguageCode code = StardewValley.LocalizedContentManager.LanguageCode.en;
|
||||||
|
return HappyBirthday.Instance.messages.translatedStrings[code][key];
|
||||||
|
}
|
||||||
|
|
||||||
|
public void loadTranslationStrings()
|
||||||
|
{
|
||||||
|
|
||||||
|
//Non-english logic for creating templates.
|
||||||
|
foreach (var translation in HappyBirthday.Config.translationInfo.translationCodes)
|
||||||
|
{
|
||||||
|
|
||||||
|
StardewValley.LocalizedContentManager.LanguageCode code = translation.Value;
|
||||||
|
|
||||||
|
string basePath = Path.Combine(HappyBirthday.ModHelper.DirectoryPath, "Content", "Dialogue", translation.Key);
|
||||||
|
if (!Directory.Exists(basePath))
|
||||||
|
Directory.CreateDirectory(basePath);
|
||||||
|
string stringsFile = Path.Combine("Content", "Dialogue", translation.Key, HappyBirthday.Config.translationInfo.getjsonForTranslation("TranslatedStrings", translation.Key));
|
||||||
|
|
||||||
|
|
||||||
|
if (!File.Exists(Path.Combine(HappyBirthday.ModHelper.DirectoryPath, stringsFile)))
|
||||||
|
{
|
||||||
|
HappyBirthday.ModHelper.Data.WriteJsonFile<Dictionary<string, string>>(stringsFile, this.translatedStrings[code]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
this.translatedStrings[code] = HappyBirthday.ModHelper.Data.ReadJsonFile<Dictionary<string, string>>(stringsFile);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"Robin": "",
|
||||||
|
"Demetrius": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Linus": "",
|
||||||
|
"Pierre": "",
|
||||||
|
"Caroline": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Alex": "",
|
||||||
|
"George": "",
|
||||||
|
"Evelyn": "",
|
||||||
|
"Lewis": "",
|
||||||
|
"Clint": "",
|
||||||
|
"Penny": "",
|
||||||
|
"Pam": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Jas": "",
|
||||||
|
"Vincent": "",
|
||||||
|
"Jodi": "",
|
||||||
|
"Kent": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Marnie": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Gus": "",
|
||||||
|
"Dwarf": "",
|
||||||
|
"Wizard": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sandy": "",
|
||||||
|
"Willy": "",
|
||||||
|
"Krobus": ""
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"Alex": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Penny": ""
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"Mail:birthdayMom": "",
|
||||||
|
"Mail:birthdayDad": "",
|
||||||
|
"Happy Birthday: Star Message": "",
|
||||||
|
"Happy Birthday: Farmhand Birthday Message": ""
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"Robin": "嘿,@,生日快乐!我很高兴你选择搬到这里来。",
|
||||||
|
"Demetrius": "生日快乐@!记得偶尔要抽出时间来好好享受一下。$h",
|
||||||
|
"Maru": "生日快乐@。我本来想给我做个永恒不灭的蜡烛,但是好像行不通。也许明年再给你吧?$h",
|
||||||
|
"Sebastian": "生日快乐@。又是平静的一年。",
|
||||||
|
"Linus": "生日快乐@。谢谢你在你生日的这天依旧来看我。这让我很开心。",
|
||||||
|
"Pierre": "嘿@,生日快乐!希望你的下一年会更好!",
|
||||||
|
"Caroline": "生日快乐@。谢谢你为这个社区做的一切。我相信你的父母一定都很为你骄傲。$h",
|
||||||
|
"Abigail": "生日快乐@!希望之后的一年我们可以一起去更多的地方冒险!$h",
|
||||||
|
"Alex": "哟@,生日快乐!也许这会是你有生以来最棒的一年。$h",
|
||||||
|
"George": "等你到我的年纪,生日就像其他的日子一样来去匆匆。不过还是祝你生日快乐,@。",
|
||||||
|
"Evelyn": "生日快乐@。你成长成为了一个优秀的人,我相信你还会继续成长的。",
|
||||||
|
"Lewis": "生日快乐@!我很感激你为这个小镇做的一切,我相信你爷爷也会为你骄傲的。",
|
||||||
|
"Clint": "嘿生日快乐@。我相信接下来对你来说会是很棒的一年。",
|
||||||
|
"Penny": "生日快乐@。希望你这一年都能得到所有的祝福。",
|
||||||
|
"Pam": "生日快乐孩子。我们应该一起去喝一杯,庆祝你生命的又一年。",
|
||||||
|
"Emily": "我今天感受到了很多关于你的正能量,所以一定是你的生日到了。生日快乐@!$h",
|
||||||
|
"Haley": "生日快乐@。希望你今年能收到些很棒的礼物!$h",
|
||||||
|
"Jas": "生日快乐@。希望你过个愉快的生日。",
|
||||||
|
"Vincent": "嘿@,你是来玩的……哦今天是你的生日?生日快乐!",
|
||||||
|
"Jodi": "你好啊@。听说今天是你的生日。既然如此,祝你生日快乐!$h",
|
||||||
|
"Kent": "乔迪告诉我今天是你的生日,@。生日快乐,记得要珍惜每一天。",
|
||||||
|
"Sam": "哟@,生日快乐!有机会我们来给你办个生日派对吧!$h",
|
||||||
|
"Leah": "嘿@,生日快乐!我们今晚去酒吧庆祝一下吧!$h",
|
||||||
|
"Shane": "生日快乐@。继续努力工作,我相信你接下来的这一年会更好。",
|
||||||
|
"Marnie": "你好@。今天大家都在谈论你的生日,我也想跟你说一声生日快乐,那么,生日快乐!$h",
|
||||||
|
"Elliott": "真是美好的一天不是吗,@?尤其今天是你的生日。我本想给你写一首诗,但我觉得简单的才是最好的,生日快乐。$h",
|
||||||
|
"Gus": "嘿@,生日快乐!希望你今天过得愉快,酒吧永远都欢迎你!",
|
||||||
|
"Dwarf": "生日快乐@。我希望我给你的东西是人类可以接受的。",
|
||||||
|
"Wizard": "有精灵告诉我今天是你的生日。这么说,生日快乐@。希望你下一年辉煌灿烂!",
|
||||||
|
"Harvey": "嘿@,生日快乐!有空记得到我这来做检查,这能让你多活很多年!",
|
||||||
|
"Sandy": "你好啊@。我听说今天是你的生日,我可不想让你觉得被冷落了。生日快乐!",
|
||||||
|
"Willy": "哎@,生日快乐。看到你让我想起了我曾经一个人漂在海上的日子。继续享受青春吧年轻人。$h",
|
||||||
|
"Krobus": "我听说在别人生日的时候送一份礼物是传统。那么,生日快乐@。"
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"Alex": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Penny": ""
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"Mail:birthdayMom": "亲爱的@,^ 生日快乐宝贝。看着你成长成为一个善良努力的人,就如我一直梦想着你成为的样子,我感到十分欣喜。我希望你能继续跟你爱的人制造更多美好的回忆。 ^ 爱你的,妈妈 ^ 附言:这是我给你做的一点小礼物。 %item object 221 1 %%",
|
||||||
|
"Mail:birthdayDad": "亲爱的@,^ 生日快乐孩子。你生日的这天没有你,我们这儿还挺寂寞的,但我和你妈妈都知道你让我们和你爷爷感到骄傲。我们知道你一个人生活可能会很艰难,但我们百分百相信你能做到,所以继续追求你的梦想吧。^ 爱你的,爸爸 ^ 附言:这是能在农场上帮到你的一些零用钱。祝你好运! %item money 5000 5001 %%",
|
||||||
|
"Happy Birthday: Star Message": "今天是你的生日!生日快乐!",
|
||||||
|
"Happy Birthday: Farmhand Birthday Message": ""
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"Robin": "Hey @, happy birthday! I'm glad you choose this town to move here to. ",
|
||||||
|
"Demetrius": "Happy birthday @! Make sure you take some time off today to enjoy yourself. $h",
|
||||||
|
"Maru": "Happy birthday @. I tried to make you an everlasting candle for you, but sadly that didn't work out. Maybe next year right? $h",
|
||||||
|
"Sebastian": "Happy birthday @. Here's to another year of chilling. ",
|
||||||
|
"Linus": "Happy birthday @. Thanks for visiting me even on your birthday. It makes me really happy. ",
|
||||||
|
"Pierre": "Hey @, happy birthday! Hopefully this next year for you will be a great one! ",
|
||||||
|
"Caroline": "Happy birthday @. Thank you for all that you've done for our community. I'm sure your parents must be proud of you.$h",
|
||||||
|
"Abigail": "Happy birthday @! Hopefully this year we can go on even more adventures together $h!",
|
||||||
|
"Alex": "Yo @, happy birthday! Maybe this will be your best year yet.$h",
|
||||||
|
"George": "When you get to my age birthdays come and go. Still happy birthday @.",
|
||||||
|
"Evelyn": "Happy birthday @. You have grown up to be such a fine individual and I'm sure you'll continue to grow. ",
|
||||||
|
"Lewis": "Happy birthday @! I'm thankful for what you have done for the town and I'm sure your grandfather would be proud of you.",
|
||||||
|
"Clint": "Hey happy birthday @. I'm sure this year is going to be great for you.",
|
||||||
|
"Penny": "Happy birthday @. May you enjoy all of life's blessings this year. ",
|
||||||
|
"Pam": "Happy birthday kid. We should have a drink to celebrate another year of life for you! $h",
|
||||||
|
"Emily": "I'm sensing a strong positive life energy about you, so it must be your birthday. Happy birthday @!$h",
|
||||||
|
"Haley": "Happy birthday @. Hopefully this year you'll get some good presents!$h",
|
||||||
|
"Jas": "Happy birthday @. I hope you have a good birthday.",
|
||||||
|
"Vincent": "Hey @ have you come to pl...oh it's your birthday? Happy birthday! ",
|
||||||
|
"Jodi": "Hello there @. Rumor has it that today is your birthday. In that case, happy birthday!$h",
|
||||||
|
"Kent": "Jodi told me that it was your birthday today @. Happy birthday and make sure to cherish every single day.",
|
||||||
|
"Sam": "Yo @ happy birthday! We'll have to have a birthday jam session for you some time!$h ",
|
||||||
|
"Leah": "Hey @ happy birthday! We should go to the saloon tonight and celebrate!$h ",
|
||||||
|
"Shane": "Happy birthday @. Keep working hard and I'm sure this next year for you will be a great one.",
|
||||||
|
"Marnie": "Hello there @. Everyone is talking about your birthday today and I wanted to make sure that I wished you a happy birthday as well, so happy birthday! $h ",
|
||||||
|
"Elliott": "What a wonderful day isn't it @? Especially since today is your birthday. I tried to make you a poem but I feel like the best way of putting it is simply, happy birthday. $h ",
|
||||||
|
"Gus": "Hey @ happy birthday! Hopefully you enjoy the rest of the day and make sure you aren't a stranger at the saloon!",
|
||||||
|
"Dwarf": "Happy birthday @. I hope that what I got you is acceptable for humans as well. ",
|
||||||
|
"Wizard": "The spirits told me that today is your birthday. In that case happy birthday @. May your year shine bright! ",
|
||||||
|
"Harvey": "Hey @, happy birthday! Make sure to come in for a checkup some time to make sure you live many more years! ",
|
||||||
|
"Sandy": "Hello there @. I heard that today was your birthday and I didn't want you feeling left out, so happy birthday!",
|
||||||
|
"Willy": "Aye @ happy birthday. Looking at you reminds me of ye days when I was just a guppy swimming out to sea. Continue to enjoy them youngin.$h",
|
||||||
|
"Krobus": "I have heard that it is tradition to give a gift to others on their birthday. In that case, happy birthday @."
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"Alex": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Penny": ""
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"Mail:birthdayMom": "Dear @,^ Happy birthday sweetheart. It's been amazing watching you grow into the kind, hard working person that I've always dreamed that you would become. I hope you continue to make many more fond memories with the ones you love. ^ Love, Mom ^ P.S. Here's a little something that I made for you. %item object 221 1 %%",
|
||||||
|
"Mail:birthdayDad": "Dear @,^ Happy birthday kiddo. It's been a little quiet around here on your birthday since you aren't around, but your mother and I know that you are making both your grandpa and us proud. We both know that living on your own can be tough but we believe in you one hundred percent, just keep following your dreams.^ Love, Dad ^ P.S. Here's some spending money to help you out on the farm. Good luck! %item money 5000 5001 %%",
|
||||||
|
"Happy Birthday: Star Message": "It's your birthday today! Happy birthday!",
|
||||||
|
"Happy Birthday: Farmhand Birthday Message": "It's @'s birthday! Happy birthday to them!"
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"Robin": "",
|
||||||
|
"Demetrius": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Linus": "",
|
||||||
|
"Pierre": "",
|
||||||
|
"Caroline": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Alex": "",
|
||||||
|
"George": "",
|
||||||
|
"Evelyn": "",
|
||||||
|
"Lewis": "",
|
||||||
|
"Clint": "",
|
||||||
|
"Penny": "",
|
||||||
|
"Pam": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Jas": "",
|
||||||
|
"Vincent": "",
|
||||||
|
"Jodi": "",
|
||||||
|
"Kent": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Marnie": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Gus": "",
|
||||||
|
"Dwarf": "",
|
||||||
|
"Wizard": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sandy": "",
|
||||||
|
"Willy": "",
|
||||||
|
"Krobus": ""
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"Alex": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Penny": ""
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"Mail:birthdayMom": "",
|
||||||
|
"Mail:birthdayDad": "",
|
||||||
|
"Happy Birthday: Star Message": "",
|
||||||
|
"Happy Birthday: Farmhand Birthday Message": ""
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"Robin": "",
|
||||||
|
"Demetrius": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Linus": "",
|
||||||
|
"Pierre": "",
|
||||||
|
"Caroline": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Alex": "",
|
||||||
|
"George": "",
|
||||||
|
"Evelyn": "",
|
||||||
|
"Lewis": "",
|
||||||
|
"Clint": "",
|
||||||
|
"Penny": "",
|
||||||
|
"Pam": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Jas": "",
|
||||||
|
"Vincent": "",
|
||||||
|
"Jodi": "",
|
||||||
|
"Kent": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Marnie": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Gus": "",
|
||||||
|
"Dwarf": "",
|
||||||
|
"Wizard": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sandy": "",
|
||||||
|
"Willy": "",
|
||||||
|
"Krobus": ""
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"Alex": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Penny": ""
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"Mail:birthdayMom": "",
|
||||||
|
"Mail:birthdayDad": "",
|
||||||
|
"Happy Birthday: Star Message": "",
|
||||||
|
"Happy Birthday: Farmhand Birthday Message": ""
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"Robin": "",
|
||||||
|
"Demetrius": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Linus": "",
|
||||||
|
"Pierre": "",
|
||||||
|
"Caroline": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Alex": "",
|
||||||
|
"George": "",
|
||||||
|
"Evelyn": "",
|
||||||
|
"Lewis": "",
|
||||||
|
"Clint": "",
|
||||||
|
"Penny": "",
|
||||||
|
"Pam": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Jas": "",
|
||||||
|
"Vincent": "",
|
||||||
|
"Jodi": "",
|
||||||
|
"Kent": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Marnie": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Gus": "",
|
||||||
|
"Dwarf": "",
|
||||||
|
"Wizard": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sandy": "",
|
||||||
|
"Willy": "",
|
||||||
|
"Krobus": ""
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"Alex": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Penny": ""
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"Mail:birthdayMom": "",
|
||||||
|
"Mail:birthdayDad": "",
|
||||||
|
"Happy Birthday: Star Message": "",
|
||||||
|
"Happy Birthday: Farmhand Birthday Message": ""
|
||||||
|
}
|
|
@ -0,0 +1,35 @@
|
||||||
|
{
|
||||||
|
"Robin": "",
|
||||||
|
"Demetrius": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Linus": "",
|
||||||
|
"Pierre": "",
|
||||||
|
"Caroline": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Alex": "",
|
||||||
|
"George": "",
|
||||||
|
"Evelyn": "",
|
||||||
|
"Lewis": "",
|
||||||
|
"Clint": "",
|
||||||
|
"Penny": "",
|
||||||
|
"Pam": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Jas": "",
|
||||||
|
"Vincent": "",
|
||||||
|
"Jodi": "",
|
||||||
|
"Kent": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Marnie": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Gus": "",
|
||||||
|
"Dwarf": "",
|
||||||
|
"Wizard": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sandy": "",
|
||||||
|
"Willy": "",
|
||||||
|
"Krobus": ""
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"Alex": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Penny": ""
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"Mail:birthdayMom": "",
|
||||||
|
"Mail:birthdayDad": "",
|
||||||
|
"Happy Birthday: Star Message": "",
|
||||||
|
"Happy Birthday: Farmhand Birthday Message": ""
|
||||||
|
}
|
|
@ -0,0 +1,38 @@
|
||||||
|
{
|
||||||
|
"Universal_Love_Gift": "74 1 446 1 204 1 446 5 773 1",
|
||||||
|
"Universal_Like_Gift": "-2 3 -7 1 -26 2 -75 5 -80 3 72 1 220 1 221 1 395 1 613 1 634 1 635 1 636 1 637 1 638 1 724 1 233 1 223 1 465 20 -79 5",
|
||||||
|
"Universal_Neutral_Gift": "194 1 262 5 -74 5 -75 3 334 5 335 1 390 20 388 20 -81 5 -79 3",
|
||||||
|
"Robin": " BestGifts/224 1 426 1 636 1/GoodGift/-6 5 -79 5 424 1 709 1/NeutralGift//",
|
||||||
|
"Demetrius": " Best Gifts/207 1 232 1 233 1 400 1/Good Gifts/-5 3 -79 5 422 1/NeutralGift/-4 3/",
|
||||||
|
"Maru": " BestGift/72 1 197 1 190 1 215 1 222 1 243 1 336 1 337 1 400 1 787 1/Good Gift/-260 1 62 1 64 1 66 1 68 1 70 1 334 1 335 1 725 1 726 1/NeutralGift/",
|
||||||
|
"Sebastian": " Best/84 1 227 1 236 1 575 1 305 1 /Good/267 1 276 1/Neutral/-4 3/",
|
||||||
|
"Linus": " Best/88 1 90 1 234 1 242 1 280 1/Good/-5 3 -6 5 -79 5 -81 10/Neutral/-4 3/",
|
||||||
|
"Pierre": " Best/202 1/Good/-5 3 -6 5 -7 1 18 1 22 1 402 1 418 1 259 1/Neutral//",
|
||||||
|
"Caroline": " Best/213 1 593 1/Good/-7 1 18 1 402 1 418 1/Neutral// ",
|
||||||
|
"Abigail": " Best/66 1 128 1 220 1 226 1 276 1 611 1/Good//Neutral// ",
|
||||||
|
"Alex": " Best/201 1 212 1 662 1 664 1/Good/-5 3/Neutral// ",
|
||||||
|
"George": " Best/20 1 205 1/Good/18 1 195 1 199 1 200 1 214 1 219 1 223 1 231 1 233 1/Neutral// ",
|
||||||
|
"Evelyn": " Best/72 1 220 1 239 1 284 1 591 1 595 1/Good/-6 5 18 1 402 1 418 1/Neutral// ",
|
||||||
|
"Lewis": " Best/200 1 208 1 235 1 260 1/Good/-80 5 24 1 88 1 90 1 192 1 258 1 264 1 272 1 274 1 278 1/Neutral// ",
|
||||||
|
"Clint": " Best/60 1 62 1 64 1 66 1 68 1 70 1 336 1 337 1 605 1 649 1 749 1 337 5/Good/334 20 335 10 336 5/Neutral// ",
|
||||||
|
"Penny": " Best/60 1 376 1 651 1 72 1 164 1 218 1 230 1 244 1 254 1/Good/-6 5 20 1 22 1/Neutral// ",
|
||||||
|
"Pam": " Best/24 1 90 1 199 1 208 1 303 1 346 1/Good/-6 5 -75 5 -79 5 18 1 227 1 228 1 231 1 232 1 233 1 234 1 235 1 236 1 238 1 402 1 418 1/Neutral/-4 3/ ",
|
||||||
|
"Emily": " Best/60 1 62 1 64 1 66 1 68 1 70 1 241 1 428 1 440 1 /Good/18 1 82 1 84 1 86 1 196 1 200 1 207 1 230 1 235 1 402 1 418 1/Neutral// ",
|
||||||
|
"Haley": " Best/221 1 421 1 610 1 88 1 /Good/18 1 60 1 62 1 64 1 70 1 88 1 222 1 223 1 232 1 233 1 234 1 402 1 418 1 /Neutral// ",
|
||||||
|
"Jas": " Best/221 1 595 1 604 1 /Good/18 1 60 1 64 1 70 1 88 1 232 1 233 1 234 1 222 1 223 1 340 1 344 1 402 1 418 1 /Neutral// ",
|
||||||
|
"Vincent": " Best/221 1 398 1 612 1 /Good/18 1 60 1 64 1 70 1 88 1 232 1 233 1 234 1 222 1 223 1 340 1 344 1 402 1 418 1 /Neutral// ",
|
||||||
|
"Jodi": " Best/72 1 200 1 211 1 214 1 220 1 222 1 225 1 231 1 /Good/-5 3 -6 5 -79 5 18 1 402 1 418 1 /Neutral// ",
|
||||||
|
"Kent": " Best/607 1 649 1 /Good/-5 3 -79 5 18 1 402 1 418 1 /Neutral// ",
|
||||||
|
"Sam": " Best/90 1 206 1 655 1 658 1 562 1 731 1/Good/167 1 210 1 213 1 220 1 223 1 224 1 228 1 232 1 233 1 239 1 -5 3/Neutral// ",
|
||||||
|
"Leah": " Best/196 1 200 1 348 1 606 1 651 1 650 1 426 1 430 1 /Good/-5 3 -6 5 -79 5 -81 10 18 1 402 1 406 1 408 1 418 1 86 1 /Neutral// ",
|
||||||
|
"Shane": " Best/206 1 215 1 260 1 346 1 /Good/-5 3 -79 5 303 1 /Neutral// ",
|
||||||
|
"Marnie": " Best/72 1 221 1 240 1 608 1 /Good/-5 3 -6 5 402 1 418 1 /Neutral// ",
|
||||||
|
"Elliott": " Best/715 1 732 1 218 1 444 1 /Good/727 1 728 1 -79 5 60 1 80 1 82 1 84 1 149 1 151 1 346 1 348 1 728 1 /Neutral/-4 3 / ",
|
||||||
|
"Gus": " Best/72 1 213 1 635 1 729 1 /Good/348 1 303 1 -7 1 18 1 /Neutral// ",
|
||||||
|
"Dwarf": " Best/60 1 62 1 64 1 66 1 68 1 70 1 749 1 /Good/82 1 84 1 86 1 96 1 97 1 98 1 99 1 121 1 122 1 /Neutral/-28 20 / ",
|
||||||
|
"Wizard": " Best/107 1 155 1 422 1 769 1 768 1 /Good/-12 3 72 1 82 1 84 1/Neutral// ",
|
||||||
|
"Harvey": " Best/348 1 237 1 432 1 395 1 342 1 /Good/-81 10 -79 5 -7 1 402 1 418 1 422 1 436 1 438 1 442 1 444 1 422 1 /Neutral// ",
|
||||||
|
"Sandy": " Best/18 1 402 1 418 1 /Good/-75 5 -79 5 88 1 428 1 436 1 438 1 440 1 /Neutral// ",
|
||||||
|
"Willy": " Best/72 1 143 1 149 1 154 1 276 1 337 1 698 1 /Good/66 1 336 1 340 1 699 1 707 1 /Neutral/-4 3 / ",
|
||||||
|
"Krobus": " Best/72 1 16 1 276 1 337 1 305 1 /Good/66 1 336 1 340 1 /Neutral// "
|
||||||
|
}
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"Universal_Gifts": "74 1 446 1 204 1 446 5 773 1",
|
||||||
|
"Alex": "",
|
||||||
|
"Elliott": "",
|
||||||
|
"Harvey": "",
|
||||||
|
"Sam": "",
|
||||||
|
"Sebastian": "",
|
||||||
|
"Shane": "",
|
||||||
|
"Abigail": "",
|
||||||
|
"Emily": "",
|
||||||
|
"Haley": "",
|
||||||
|
"Leah": "",
|
||||||
|
"Maru": "",
|
||||||
|
"Penny": ""
|
||||||
|
}
|
|
@ -10,12 +10,13 @@ namespace Omegasis.HappyBirthday.Framework
|
||||||
|
|
||||||
public static void SendBirthdayMessageToOtherPlayers()
|
public static void SendBirthdayMessageToOtherPlayers()
|
||||||
{
|
{
|
||||||
HUDMessage message = new HUDMessage("It's " + Game1.player.Name + "'s birthday! Happy birthday to them!", 1);
|
string str = BirthdayMessages.GetTranslatedString("Happy Birthday: Farmhand Birthday Message");
|
||||||
|
str.Replace("@", Game1.player.name);
|
||||||
|
HUDMessage message = new HUDMessage(str, 1);
|
||||||
|
|
||||||
foreach (KeyValuePair<long, Farmer> f in Game1.otherFarmers)
|
foreach (KeyValuePair<long, Farmer> f in Game1.otherFarmers)
|
||||||
{
|
{
|
||||||
HappyBirthday.ModHelper.Multiplayer.SendMessage<string>(message.message, FSTRING_SendBirthdayMessageToOthers, new string[] { HappyBirthday.ModHelper.Multiplayer.ModID }, new long[] { f.Key });
|
HappyBirthday.ModHelper.Multiplayer.SendMessage<string>(message.message, FSTRING_SendBirthdayMessageToOthers, new string[] { HappyBirthday.ModHelper.Multiplayer.ModID }, new long[] { f.Key });
|
||||||
//ModdedUtilitiesNetworking.ModCore.multiplayer.sendMessage(FSTRING_SendBirthdayMessageToOthers, ModdedUtilitiesNetworking.Framework.Extentions.StrardewValleyExtentions.MessagesExtentions.HUDMessageIconIdentifier, message, ModdedUtilitiesNetworking.Framework.Enums.MessageTypes.messageTypes.SendToSpecific, f);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,15 +25,12 @@ namespace Omegasis.HappyBirthday.Framework
|
||||||
foreach (KeyValuePair<long, Farmer> f in Game1.otherFarmers)
|
foreach (KeyValuePair<long, Farmer> f in Game1.otherFarmers)
|
||||||
{
|
{
|
||||||
HappyBirthday.ModHelper.Multiplayer.SendMessage<KeyValuePair<long, PlayerData>>(new KeyValuePair<long, PlayerData>(Game1.player.uniqueMultiplayerID, HappyBirthday.PlayerBirthdayData), FSTRING_SendBirthdayInfoToOthers, new string[] { HappyBirthday.ModHelper.Multiplayer.ModID }, new long[] { f.Key });
|
HappyBirthday.ModHelper.Multiplayer.SendMessage<KeyValuePair<long, PlayerData>>(new KeyValuePair<long, PlayerData>(Game1.player.uniqueMultiplayerID, HappyBirthday.PlayerBirthdayData), FSTRING_SendBirthdayInfoToOthers, new string[] { HappyBirthday.ModHelper.Multiplayer.ModID }, new long[] { f.Key });
|
||||||
//ModdedUtilitiesNetworking.ModCore.multiplayer.sendMessage(FSTRING_SendBirthdayMessageToOthers, ModdedUtilitiesNetworking.Framework.Extentions.StrardewValleyExtentions.MessagesExtentions.HUDMessageIconIdentifier, message, ModdedUtilitiesNetworking.Framework.Enums.MessageTypes.messageTypes.SendToSpecific, f);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void SendBirthdayInfoToConnectingPlayer(long id)
|
public static void SendBirthdayInfoToConnectingPlayer(long id)
|
||||||
{
|
{
|
||||||
HappyBirthday.ModHelper.Multiplayer.SendMessage<KeyValuePair<long, PlayerData>>(new KeyValuePair<long, PlayerData>(Game1.player.uniqueMultiplayerID, HappyBirthday.PlayerBirthdayData), FSTRING_SendBirthdayInfoToOthers, new string[] { HappyBirthday.ModHelper.Multiplayer.ModID }, new long[] { id });
|
HappyBirthday.ModHelper.Multiplayer.SendMessage<KeyValuePair<long, PlayerData>>(new KeyValuePair<long, PlayerData>(Game1.player.uniqueMultiplayerID, HappyBirthday.PlayerBirthdayData), FSTRING_SendBirthdayInfoToOthers, new string[] { HappyBirthday.ModHelper.Multiplayer.ModID }, new long[] { id });
|
||||||
//ModdedUtilitiesNetworking.ModCore.multiplayer.sendMessage(FSTRING_SendBirthdayMessageToOthers, ModdedUtilitiesNetworking.Framework.Extentions.StrardewValleyExtentions.MessagesExtentions.HUDMessageIconIdentifier, message, ModdedUtilitiesNetworking.Framework.Enums.MessageTypes.messageTypes.SendToSpecific, f);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,6 +65,7 @@ namespace Omegasis.HappyBirthday
|
||||||
|
|
||||||
Dictionary<long, PlayerData> othersBirthdays;
|
Dictionary<long, PlayerData> othersBirthdays;
|
||||||
|
|
||||||
|
public static HappyBirthday Instance;
|
||||||
|
|
||||||
/*********
|
/*********
|
||||||
** Public methods
|
** Public methods
|
||||||
|
@ -73,6 +74,9 @@ namespace Omegasis.HappyBirthday
|
||||||
/// <param name="helper">Provides simplified APIs for writing mods.</param>
|
/// <param name="helper">Provides simplified APIs for writing mods.</param>
|
||||||
public override void Entry(IModHelper helper)
|
public override void Entry(IModHelper helper)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Instance = this;
|
||||||
|
|
||||||
//helper.Content.AssetLoaders.Add(new PossibleGifts());
|
//helper.Content.AssetLoaders.Add(new PossibleGifts());
|
||||||
Config = helper.ReadConfig<ModConfig>();
|
Config = helper.ReadConfig<ModConfig>();
|
||||||
|
|
||||||
|
@ -91,7 +95,6 @@ namespace Omegasis.HappyBirthday
|
||||||
|
|
||||||
this.messages = new BirthdayMessages();
|
this.messages = new BirthdayMessages();
|
||||||
this.giftManager = new GiftManager();
|
this.giftManager = new GiftManager();
|
||||||
this.messages.createBirthdayGreetings();
|
|
||||||
this.isDailyQuestBoard = false;
|
this.isDailyQuestBoard = false;
|
||||||
|
|
||||||
ModHelper.Events.Multiplayer.ModMessageReceived += this.Multiplayer_ModMessageReceived;
|
ModHelper.Events.Multiplayer.ModMessageReceived += this.Multiplayer_ModMessageReceived;
|
||||||
|
@ -99,6 +102,8 @@ namespace Omegasis.HappyBirthday
|
||||||
ModHelper.Events.Multiplayer.PeerDisconnected += this.Multiplayer_PeerDisconnected;
|
ModHelper.Events.Multiplayer.PeerDisconnected += this.Multiplayer_PeerDisconnected;
|
||||||
|
|
||||||
this.othersBirthdays = new Dictionary<long, PlayerData>();
|
this.othersBirthdays = new Dictionary<long, PlayerData>();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Get whether this instance can edit the given asset.</summary>
|
/// <summary>Get whether this instance can edit the given asset.</summary>
|
||||||
|
@ -113,8 +118,12 @@ namespace Omegasis.HappyBirthday
|
||||||
public void Edit<T>(IAssetData asset)
|
public void Edit<T>(IAssetData asset)
|
||||||
{
|
{
|
||||||
IDictionary<string, string> data = asset.AsDictionary<string, string>().Data;
|
IDictionary<string, string> data = asset.AsDictionary<string, string>().Data;
|
||||||
data["birthdayMom"] = "Dear @,^ Happy birthday sweetheart. It's been amazing watching you grow into the kind, hard working person that I've always dreamed that you would become. I hope you continue to make many more fond memories with the ones you love. ^ Love, Mom ^ P.S. Here's a little something that I made for you. %item object 221 1 %%";
|
|
||||||
data["birthdayDad"] = "Dear @,^ Happy birthday kiddo. It's been a little quiet around here on your birthday since you aren't around, but your mother and I know that you are making both your grandpa and us proud. We both know that living on your own can be tough but we believe in you one hundred percent, just keep following your dreams.^ Love, Dad ^ P.S. Here's some spending money to help you out on the farm. Good luck! %item money 5000 5001 %%";
|
string momMail = BirthdayMessages.GetTranslatedString("Mail:birthdayMom");
|
||||||
|
string dadMail = BirthdayMessages.GetTranslatedString("Mail:birthdayDad");
|
||||||
|
|
||||||
|
data["birthdayMom"] = momMail;
|
||||||
|
data["birthdayDad"] = dadMail;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -353,7 +362,9 @@ namespace Omegasis.HappyBirthday
|
||||||
// set up birthday
|
// set up birthday
|
||||||
if (this.IsBirthday())
|
if (this.IsBirthday())
|
||||||
{
|
{
|
||||||
Messages.ShowStarMessage("It's your birthday today! Happy birthday!");
|
string starMessage = BirthdayMessages.GetTranslatedString("Happy Birthday: Star Message");
|
||||||
|
|
||||||
|
Messages.ShowStarMessage(starMessage);
|
||||||
MultiplayerSupport.SendBirthdayMessageToOtherPlayers();
|
MultiplayerSupport.SendBirthdayMessageToOtherPlayers();
|
||||||
|
|
||||||
|
|
||||||
|
@ -386,7 +397,7 @@ namespace Omegasis.HappyBirthday
|
||||||
//Check if npc name is spouse's name. If no spouse then add in generic dialogue.
|
//Check if npc name is spouse's name. If no spouse then add in generic dialogue.
|
||||||
if (this.messages.spouseBirthdayWishes.ContainsKey(npc.Name) && Game1.player.isMarried())
|
if (this.messages.spouseBirthdayWishes.ContainsKey(npc.Name) && Game1.player.isMarried())
|
||||||
{
|
{
|
||||||
this.Monitor.Log("Spouse Checks out");
|
//this.Monitor.Log("Spouse Checks out");
|
||||||
//Check to see if spouse message exists.
|
//Check to see if spouse message exists.
|
||||||
if (!string.IsNullOrEmpty(this.messages.spouseBirthdayWishes[npc.Name]))
|
if (!string.IsNullOrEmpty(this.messages.spouseBirthdayWishes[npc.Name]))
|
||||||
{
|
{
|
||||||
|
|
|
@ -94,6 +94,50 @@
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<None Include="Content\Dialogue\Brazillian Portuguese\BirthdayWishes.pt-BR.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\Brazillian Portuguese\SpouseBirthdayWishes.pt-BR.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\Chinese\BirthdayWishes.zh-CN.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\Chinese\SpouseBirthdayWishes.zh-CN.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\English\BirthdayWishes.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\English\SpouseBirthdayWishes.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\German\BirthdayWishes.de-DE.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\German\SpouseBirthdayWishes.de-DE.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\Japanese\BirthdayWishes.ja-JP.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\Japanese\SpouseBirthdayWishes.ja-JP.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\Russian\BirthdayWishes.ru-RU.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\Russian\SpouseBirthdayWishes.ru-RU.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\Spanish\BirthdayWishes.es-ES.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Dialogue\Spanish\SpouseBirthdayWishes.es-ES.json">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
|
<None Include="Content\Gifts\BirthdayGifts.json" />
|
||||||
|
<None Include="Content\Gifts\SpouseBirthdayGifts.json" />
|
||||||
<None Include="manifest.json" />
|
<None Include="manifest.json" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -27,7 +27,8 @@ namespace Revitalize
|
||||||
// -rugs
|
// -rugs
|
||||||
// -tables
|
// -tables
|
||||||
// -lamps
|
// -lamps
|
||||||
// -chairs
|
// -chairs (done)
|
||||||
|
// -benches
|
||||||
// -dressers/other storage containers
|
// -dressers/other storage containers
|
||||||
// -fun interactables
|
// -fun interactables
|
||||||
// -More crafting tables
|
// -More crafting tables
|
||||||
|
|
Loading…
Reference in New Issue