mirror of
https://github.com/Hibiya615/TetoraKAScript.git
synced 2025-12-21 01:04:50 +08:00
添加销毁逻辑
This commit is contained in:
@@ -14,7 +14,6 @@ using ECommons;
|
||||
using ECommons.DalamudServices;
|
||||
using ECommons.GameFunctions;
|
||||
using ECommons.MathHelpers;
|
||||
using Lumina.Excel.Sheets;
|
||||
|
||||
namespace TheHead_theTail_theWholeDamnedThing;
|
||||
|
||||
@@ -33,15 +32,6 @@ public class Archaeotania
|
||||
// Todo.
|
||||
// 龙卷前进方向线
|
||||
|
||||
public static string GetBNpcName(uint key)
|
||||
{
|
||||
var sheet = Svc.Data.GetExcelSheet<BNpcName>();
|
||||
if (sheet == null) return $"Invalid sheet: ({key})";
|
||||
var row = sheet.GetRow(key);
|
||||
|
||||
return row.Singular.ToString() ?? $"Invalid Rowid: ({key})";
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "迷失连线", eventType: EventTypeEnum.AddCombatant, eventCondition: ["DataId:regex:^758[67]$"])]
|
||||
public void 迷失连线(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
@@ -60,13 +50,10 @@ public class Archaeotania
|
||||
accessory.Method.SendDraw(DrawModeEnum.Imgui, DrawTypeEnum.Displacement, dp);
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "迷失连线销毁", eventType: EventTypeEnum.Death, userControl: false)]
|
||||
[ScriptMethod(name: "迷失连线销毁", eventType: EventTypeEnum.Death, eventCondition: ["TargetDataId:regex:^758[67]$"],userControl: false)]
|
||||
public void 迷失连线销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
if (@event.TargetName() == GetBNpcName(6737) || @event.TargetName() == GetBNpcName(6738))
|
||||
{
|
||||
accessory.Method.RemoveDraw("迷失连线");
|
||||
}
|
||||
accessory.Method.RemoveDraw("迷失连线");
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "文明毁灭(直线)", eventType: EventTypeEnum.StartCasting, eventCondition: ["ActionId:regex:^(16441|17089)$"])]
|
||||
@@ -106,7 +93,7 @@ public class Archaeotania
|
||||
dp.Color = new Vector4(1f, 0f, 0f, 1.2f);
|
||||
dp.Owner = @event.SourceId();
|
||||
dp.Scale = new Vector2(5f);
|
||||
dp.DestoryAt = long.MaxValue;
|
||||
dp.DestoryAt = 60000;
|
||||
accessory.Method.SendDraw(DrawModeEnum.Default, DrawTypeEnum.Circle, dp);
|
||||
}
|
||||
|
||||
@@ -116,6 +103,12 @@ public class Archaeotania
|
||||
accessory.Method.RemoveDraw("龙卷");
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "海呱死亡销毁", eventType: EventTypeEnum.Death, eventCondition: ["TargetDataId:10157"],userControl: false)]
|
||||
public void 海呱死亡销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
accessory.Method.RemoveDraw(".*");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user