mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
跨年的时候也会说新年祝福
This commit is contained in:
parent
e93177b688
commit
00a920d354
@ -1792,44 +1792,13 @@ namespace VPet_Simulator.Windows
|
||||
}
|
||||
#if NewYear
|
||||
//仅新年功能
|
||||
Main.TimeHandle += NewYearHandle;
|
||||
if (DateTime.Now < new DateTime(2024, 2, 18))
|
||||
{
|
||||
Task.Run(() =>
|
||||
{
|
||||
Thread.Sleep(5000);
|
||||
string sayny;
|
||||
switch (DateTime.Now.Day)
|
||||
{
|
||||
default:
|
||||
case 9:
|
||||
sayny = "除夕除夕,燃炮祭祖,贴春联,换窗花,主人来一起吃年夜饭!一起包饺砸!{0}祝主人新年快乐!饺子饺子饺饺子!".Translate(GameSavesData.GameSave.Name);
|
||||
break;
|
||||
case 10:
|
||||
sayny = "初一初一,开门炮仗,主人~恭喜发财,红包拿来~".Translate();
|
||||
break;
|
||||
case 11:
|
||||
sayny = "初二初二,回娘家去,左手一只鸡,右手一只鸭,一起回家吧主人~".Translate();
|
||||
break;
|
||||
case 12:
|
||||
sayny = "初三初三,晚起早睡,不待客,过年辛苦了主人,好好休息吧~".Translate();
|
||||
break;
|
||||
case 13:
|
||||
sayny = "初四初四,接五路,迎灶神,吃折箩,恭迎灶神爷!绝对不是肚子饿了!".Translate();
|
||||
break;
|
||||
case 14:
|
||||
sayny = "初五初五,赶五穷!拿扫帚把垃圾清扫出去!把脏东西都赶出去!今日宜,清屏工作。".Translate();
|
||||
break;
|
||||
case 15:
|
||||
sayny = "初六初六,送穷鬼,辞旧迎新,送走旧日贫穷困苦,迎接新一年!诶诶,别赶我啊。".Translate();
|
||||
break;
|
||||
case 16:
|
||||
sayny = "初七初七,登高出游,戴人胜,人胜是一种头饰,又叫彩胜,华胜,从晋朝开始有剪彩为花、剪彩戴在头发上哦。主人我好看吗~".Translate();
|
||||
break;
|
||||
case 17:
|
||||
sayny = "初八初八,放生祈福,拜谷神,今天是假期最后一天了,和主人过年很开心哦,最后~主人~您还有许多事需要处理,现在还不能休息哦~".Translate();
|
||||
break;
|
||||
}
|
||||
Main.SayRnd(sayny);
|
||||
NewYearSay();
|
||||
});
|
||||
}
|
||||
#endif
|
||||
@ -1858,6 +1827,56 @@ namespace VPet_Simulator.Windows
|
||||
//}
|
||||
|
||||
}
|
||||
#if NewYear
|
||||
int newyearsay = 0;
|
||||
private void NewYearHandle(Main main)
|
||||
{
|
||||
if (DateTime.Now.Hour == 0 && newyearsay != DateTime.Now.Day)
|
||||
{//跨时间
|
||||
NewYearSay();
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 新年说
|
||||
/// </summary>
|
||||
private void NewYearSay()
|
||||
{
|
||||
newyearsay = DateTime.Now.Day;
|
||||
string sayny;
|
||||
switch (newyearsay)
|
||||
{
|
||||
default:
|
||||
case 9:
|
||||
sayny = "除夕除夕,燃炮祭祖,贴春联,换窗花,主人来一起吃年夜饭!一起包饺砸!{0}祝主人新年快乐!饺子饺子饺饺子!".Translate(GameSavesData.GameSave.Name);
|
||||
break;
|
||||
case 10:
|
||||
sayny = "初一初一,开门炮仗,主人~恭喜发财,红包拿来~".Translate();
|
||||
break;
|
||||
case 11:
|
||||
sayny = "初二初二,回娘家去,左手一只鸡,右手一只鸭,一起回家吧主人~".Translate();
|
||||
break;
|
||||
case 12:
|
||||
sayny = "初三初三,晚起早睡,不待客,过年辛苦了主人,好好休息吧~".Translate();
|
||||
break;
|
||||
case 13:
|
||||
sayny = "初四初四,接五路,迎灶神,吃折箩,恭迎灶神爷!绝对不是肚子饿了!".Translate();
|
||||
break;
|
||||
case 14:
|
||||
sayny = "初五初五,赶五穷!拿扫帚把垃圾清扫出去!把脏东西都赶出去!今日宜,清屏工作。".Translate();
|
||||
break;
|
||||
case 15:
|
||||
sayny = "初六初六,送穷鬼,辞旧迎新,送走旧日贫穷困苦,迎接新一年!诶诶,别赶我啊。".Translate();
|
||||
break;
|
||||
case 16:
|
||||
sayny = "初七初七,登高出游,戴人胜,人胜是一种头饰,又叫彩胜,华胜,从晋朝开始有剪彩为花、剪彩戴在头发上哦。主人我好看吗~".Translate();
|
||||
break;
|
||||
case 17:
|
||||
sayny = "初八初八,放生祈福,拜谷神,今天是假期最后一天了,和主人过年很开心哦,最后~主人~您还有许多事需要处理,现在还不能休息哦~".Translate();
|
||||
break;
|
||||
}
|
||||
Main.SayRnd(sayny);
|
||||
}
|
||||
#endif
|
||||
/// <summary>
|
||||
/// 显示捏脸情况
|
||||
/// </summary>
|
||||
|
Loading…
Reference in New Issue
Block a user