mirror of
https://github.com/Hibiya615/TetoraKAScript.git
synced 2025-12-17 15:24:41 +08:00
添加销毁逻辑
This commit is contained in:
@@ -16,8 +16,6 @@ using ECommons.GameFunctions;
|
||||
using ECommons.MathHelpers;
|
||||
using System.Threading.Tasks;
|
||||
using FFXIVClientStructs.FFXIV.Client.Game.Character;
|
||||
using Lumina.Excel.Sheets;
|
||||
|
||||
|
||||
namespace A_Finale_Most_Formidable;
|
||||
|
||||
@@ -32,16 +30,7 @@ public class Formidable
|
||||
LV80 特殊Fate 绘制
|
||||
激斗畏惧装甲之秘密武器
|
||||
""";
|
||||
|
||||
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 +49,10 @@ public class Formidable
|
||||
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.AddCombatant, eventCondition: ["DataId:10868"])]
|
||||
@@ -240,6 +226,11 @@ public class Formidable
|
||||
accessory.Method.TTS("停止行动");
|
||||
}
|
||||
|
||||
[ScriptMethod(name: "地瓜死亡销毁", eventType: EventTypeEnum.Death, eventCondition: ["TargetDataId:10573"],userControl: false)]
|
||||
public void 地瓜死亡销毁(Event @event, ScriptAccessory accessory)
|
||||
{
|
||||
accessory.Method.RemoveDraw(".*");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user