mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 06:27:45 +00:00
cleanup cost subtraction code, won't be done inside action object
This commit is contained in:
parent
089712dd9d
commit
44a797db71
2 changed files with 0 additions and 23 deletions
|
@ -47,28 +47,6 @@ uint32_t Sapphire::Action::Action::getId() const
|
|||
return m_id;
|
||||
}
|
||||
|
||||
void Sapphire::Action::Action::subtractCostFromCaster()
|
||||
{
|
||||
if( !m_pSource->isPlayer() )
|
||||
return;
|
||||
|
||||
auto player = m_pSource->getAsPlayer();
|
||||
|
||||
switch( m_costType )
|
||||
{
|
||||
case Common::ActionCostType::MagicPoints:
|
||||
{
|
||||
|
||||
break;
|
||||
}
|
||||
case Common::ActionCostType::TacticsPoints:
|
||||
{
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Sapphire::Action::Action::setPos( Sapphire::Common::FFXIVARR_POSITION3 pos )
|
||||
{
|
||||
m_pos = pos;
|
||||
|
|
|
@ -86,7 +86,6 @@ namespace Sapphire::Action
|
|||
|
||||
void calculateActionCost();
|
||||
void calculateMPCost( uint8_t costArrayIndex );
|
||||
void subtractCostFromCaster();
|
||||
|
||||
/*!
|
||||
* @brief Some actions are capable of both healing and dealing damage. This identifies them.
|
||||
|
|
Loading…
Add table
Reference in a new issue