修复二仇顺劈绘制错误

This commit is contained in:
南沢响也
2025-03-12 01:42:59 +08:00
parent f573dc709b
commit c56dd0c865

View File

@@ -17,16 +17,39 @@ using ECommons.MathHelpers;
namespace Emanation; namespace Emanation;
[ScriptType(guid: "214f8fbd-ad04-430f-8bba-fd7319581780", name: "吉祥天女歼灭战", territorys: [719], [ScriptType(guid: "214f8fbd-ad04-430f-8bba-fd7319581780", name: "吉祥天女歼灭战", territorys: [719],
version: "0.0.0.1", author: "Tetora", note: noteStr)] version: "0.0.0.2", author: "Tetora", note: noteStr)]
public class Emanation public class Emanation
{ {
const string noteStr = const string noteStr =
""" """
v0.0.0.1: v0.0.0.2:
LV70 LV70
"""; """;
public static class IbcHelper
{
public static IBattleChara? GetById(uint id)
{
return (IBattleChara?)Svc.Objects.SearchByEntityId(id);
}
public static IBattleChara? GetMe()
{
return Svc.ClientState.LocalPlayer;
}
public static IGameObject? GetFirstByDataId(uint dataId)
{
return Svc.Objects.Where(x => x.DataId == dataId).FirstOrDefault();
}
public static IEnumerable<IGameObject?> GetByDataId(uint dataId)
{
return Svc.Objects.Where(x => x.DataId == dataId);
}
}
[ScriptMethod(name: "元气刷新提示", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^93(47|74)$"])] [ScriptMethod(name: "元气刷新提示", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^93(47|74)$"])]
public void (Event @event, ScriptAccessory accessory) public void (Event @event, ScriptAccessory accessory)
{ {
@@ -59,14 +82,22 @@ public class Emanation
public void (Event @event, ScriptAccessory accessory) public void (Event @event, ScriptAccessory accessory)
{ {
var dp = accessory.Data.GetDefaultDrawProperties(); var dp = accessory.Data.GetDefaultDrawProperties();
dp.Name = "光之波动";
dp.Owner = @event.SourceId(); var Lakshmis = Svc.Objects.Where(x => x.DataId == 7712);
dp.TargetObject = @event.TargetId(); foreach (var Lakshmi in Lakshmis)
dp.Color = accessory.Data.DefaultDangerColor; {
dp.Scale = new Vector2(40); if (Lakshmi.IsTargetable)
dp.Radian = 125f.DegToRad(); {
dp.DestoryAt = 5400; dp.Owner = Lakshmi.EntityId;
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Fan, dp); }
}
dp.Name = "光之波动";
dp.TargetObject = @event.TargetId();
dp.Color = accessory.Data.DefaultDangerColor;
dp.Scale = new Vector2(40);
dp.Radian = 125f.DegToRad();
dp.DestoryAt = 5400;
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Fan, dp);
} }
[ScriptMethod(name: "光之瀑布(分摊)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:9361"])] [ScriptMethod(name: "光之瀑布(分摊)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:9361"])]