mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-28 07:07:45 +00:00
add (some) cost types and cost data to action obj
This commit is contained in:
parent
c3e7043560
commit
d8a1c751fd
3 changed files with 14 additions and 0 deletions
|
@ -538,6 +538,14 @@ namespace Sapphire::Common
|
|||
Unaspected = 7 // Doesn't imply magical unaspected damage - could be unaspected physical
|
||||
};
|
||||
|
||||
enum ActionCostType : uint8_t
|
||||
{
|
||||
MagicPoints = 3,
|
||||
TacticsPoints = 5,
|
||||
ClassGaugeWAR = 22,
|
||||
AetherflowStack = 30,
|
||||
};
|
||||
|
||||
enum class ActionType : int8_t
|
||||
{
|
||||
WeaponOverride = -1, // Needs more investigation (takes the damage type of the equipped weapon)?
|
||||
|
|
|
@ -30,6 +30,9 @@ Sapphire::Action::Action::Action( Entity::CharaPtr caster, uint32_t actionId,
|
|||
m_startTime( 0 )
|
||||
{
|
||||
m_castTime = static_cast< uint32_t >( action->cast100ms ) * 100;
|
||||
|
||||
m_costType = static_cast< Common::ActionCostType >( action->costType );
|
||||
m_cost = action->cost;
|
||||
}
|
||||
|
||||
uint32_t Sapphire::Action::Action::getId() const
|
||||
|
|
|
@ -79,6 +79,9 @@ namespace Sapphire::Action
|
|||
uint32_t m_id;
|
||||
Common::HandleActionType m_type;
|
||||
|
||||
Common::ActionCostType m_costType;
|
||||
uint16_t m_cost;
|
||||
|
||||
uint64_t m_startTime;
|
||||
uint32_t m_castTime;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue