This commit is contained in:
南沢响也
2025-04-06 05:24:07 +08:00
parent 7eebb57120
commit 3d84022e34
3 changed files with 170 additions and 6 deletions

View File

@@ -106,13 +106,9 @@ public class Tsukuyomi
public void 月读(Event @event, ScriptAccessory accessory)
{
if (@event.TargetId() != accessory.Data.Me) return;
string statusID = @event.StatusId.ToString();
if (System.Text.RegularExpressions.Regex.IsMatch(statusID, "^153[89]$"))
{
string color = statusID == "1538" ? "" : "";
var color = @event.StatusId == 1538 ? "" : "";
if (isText) accessory.Method.TextInfo($"吃{color}", duration: 2000, true);
if (isTTS) accessory.Method.EdgeTTS($"吃{color}");
}
}
[ScriptMethod(name: "月下缭乱(连续分摊)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:11259"])]