1
Fork 0
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:
NotAdam 2019-02-09 18:01:39 +11:00
parent c3e7043560
commit d8a1c751fd
3 changed files with 14 additions and 0 deletions

View file

@ -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)?

View file

@ -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

View file

@ -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;