Skip to content

Commit

Permalink
Merge pull request #210 from 1653638943/master
Browse files Browse the repository at this point in the history
更新:更新插件代码、插件说明文件
  • Loading branch information
Controllerdestiny authored Jun 16, 2024
2 parents a71d57d + 5d0e408 commit c47c917
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions RealTime/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
- 版本:1.4.4.9
- 介绍:
- 会同步本地时间,每8秒同步一次,所以服务器内可能会有短暂的和本地时间不匹配的情况
- 并且血月和日食开启30分钟后自动结束,霜月、万圣节开启后59分钟自动结束
- 并且血月和日食开启20分钟后自动结束,霜月、万圣节开启后40分钟自动结束
- 渔夫任务和月相每24分钟刷新一次
- 由于夜晚不生成npc,所以老人和拜月教邪教徒每24分钟检测一次,如果不存在就召唤一个,召唤位置在地牢。
- 白天随机天气功能,15分钟更新一次
- 白天随机天气功能,24分钟更新一次
- 夜间npc入住功能
-事件发生时,使其强制开启PVP模式
-事件发生时,使其强制开启PVP模式!!!

## 更新日志

Expand All @@ -35,4 +35,4 @@ v2.2更新:新增夜间npc入住功能
```
## 反馈
- 共同维护的插件库:https://github.com/Controllerdestiny/TShockPlugin
- 国内社区trhub.cn 或 TShock官方群等
- 国内社区trhub.cn 或 TShock官方群等
8 changes: 4 additions & 4 deletions RealTime/RealTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class RealTime : TerrariaPlugin
public override string Author => "十七";
public override string Description => "同步现实时间";
public override string Name => "RealTime";
public override Version Version => new Version(2, 4, 0, 0);
public override Version Version => new Version(2, 4, 5, 0);
public RealTime(Main game) : base(game)
{
}
Expand Down Expand Up @@ -130,7 +130,7 @@ private void OnGameUpdate(EventArgs args)
if (Main.pumpkinMoon)
{
//万圣节开启瞬间
time = DateTime.Now + TimeSpan.FromMinutes(59);
time = DateTime.Now + TimeSpan.FromMinutes(40);
}
}
lastPumpkinMoon = Main.pumpkinMoon;
Expand Down Expand Up @@ -158,7 +158,7 @@ private void OnGameUpdate(EventArgs args)
if (Main.snowMoon)
{
//霜月开启瞬间
time = DateTime.Now + TimeSpan.FromMinutes(59);
time = DateTime.Now + TimeSpan.FromMinutes(40);
}
}
lastSnowMoon = Main.snowMoon;
Expand Down Expand Up @@ -205,7 +205,7 @@ private void OnGameUpdate(EventArgs args)
#endregion
#region npc生成、月相、天气、渔夫任务刷新
y++;
if (y == 54000)//npc生成 月相、天气、渔夫任务刷新
if (y == 86400)//npc生成 月相、天气、渔夫任务刷新
{
var AllNPCS = Main.npc.Where(n => n != null);
foreach (var TNPC in AllNPCS)
Expand Down

0 comments on commit c47c917

Please sign in to comment.