punish v6.8.18.0
This commit is contained in:
commit
060278c1b7
317 changed files with 554155 additions and 0 deletions
|
@ -0,0 +1,51 @@
|
|||
using Dalamud.Game.ClientState.Objects.Types;
|
||||
using Questionable.Functions;
|
||||
using Questionable.Model.Questing;
|
||||
|
||||
namespace Questionable.Controller.CombatModules;
|
||||
|
||||
internal sealed class Mount147Module : ICombatModule
|
||||
{
|
||||
public const ushort MountId = 147;
|
||||
|
||||
private readonly EAction[] _actions = new EAction[1] { EAction.Trample };
|
||||
|
||||
private readonly GameFunctions _gameFunctions;
|
||||
|
||||
public Mount147Module(GameFunctions gameFunctions)
|
||||
{
|
||||
_gameFunctions = gameFunctions;
|
||||
}
|
||||
|
||||
public bool CanHandleFight(CombatController.CombatData combatData)
|
||||
{
|
||||
return _gameFunctions.GetMountId() == 147;
|
||||
}
|
||||
|
||||
public bool Start(CombatController.CombatData combatData)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool Stop()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Update(IGameObject gameObject)
|
||||
{
|
||||
EAction[] actions = _actions;
|
||||
foreach (EAction action in actions)
|
||||
{
|
||||
if (_gameFunctions.UseAction(gameObject, action, checkCanUse: false))
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool CanAttack(IBattleNpc target)
|
||||
{
|
||||
return target.DataId == 8593;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue