Skip to content

Commit

Permalink
update PCT
Browse files Browse the repository at this point in the history
  • Loading branch information
xhabit committed Jul 2, 2024
1 parent b2f287b commit 4f04a4c
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
6 changes: 6 additions & 0 deletions XIVSlothComboX/Combos/CustomComboPreset.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3364,6 +3364,12 @@ [Variant] [VariantParent(WHM_ST_MainCombo, WHM_AoE_DPS)] [CustomComboInfo("Rampa
#endregion

#region PICTOMANCER

[ReplaceSkill(All.Repose)]
[CustomComboInfo("自定义循环",
"自定义循环",
PCT.JobID, -10, "", "")]
PCT_Advanced_CustomMode = 210000,

[CustomComboInfo("一键模式 - 单目标", "将1替换为一键单目标连击。", PCT.JobID)]
PCT_ST_EasyMode = 21000,
Expand Down
46 changes: 46 additions & 0 deletions XIVSlothComboX/Combos/PvE/PCT.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,52 @@ public static class Config

}


internal class PCT_ST_Custom : CustomCombo
{
protected internal override CustomComboPreset Preset { get; } = CustomComboPreset.PCT_Advanced_CustomMode;

protected override uint Invoke(uint actionID, uint lastComboMove, float comboTime, byte level)
{
if (actionID is All.Sleep)
{
if (CustomTimelineIsEnable())
{
var seconds = CombatEngageDuration().TotalSeconds;

foreach (var customAction in 药品轴)
{
if (customAction.UseTimeStart < seconds && seconds < customAction.UseTimeEnd)
{
Useitem(customAction.ActionId);
}
}


foreach (var customAction in 时间轴)
{
if (customAction.ActionId.ActionReady() && customAction.UseTimeStart < seconds && seconds < customAction.UseTimeEnd)
{
return customAction.ActionId;
}
}


int index = ActionWatching.CustomList.Count;
if (index < 序列轴.Count)
{
var newActionId = 序列轴[index].ActionId;
return newActionId;
}
}
}


return actionID;
}
}


internal class PCT_ST_EasyMode : CustomCombo
{
protected internal override CustomComboPreset Preset => CustomComboPreset.PCT_ST_EasyMode;
Expand Down
19 changes: 19 additions & 0 deletions XIVSlothComboX/Window/Functions/UserConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,26 @@ internal static void Draw(CustomComboPreset preset, bool enabled)
UserConfig.DrawSliderInt(1, 100, SAM.Config.SAM_VariantCure, "HP% to be at or under", 200);

#endregion


// ====================================================================================

#region PICTOMANCER

if (preset is CustomComboPreset.PCT_Advanced_CustomMode)
{
List<CustomTimeline> customTimelineList =
PluginConfiguration.CustomTimelineList.FindAll(CustomTimeline => CustomTimeline.JobId == PCT.JobID);


for (var i = 0; i < customTimelineList.Count; i++)
{
CustomTimeline customTimeline = customTimelineList[i];
UserConfig.DrawCustom(customTimeline, customTimelineList);
}
}
#endregion

// ====================================================================================

#region SCHOLAR
Expand Down

0 comments on commit 4f04a4c

Please sign in to comment.