mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-28 20:27:46 +00:00
remove gain job resource
This commit is contained in:
parent
a6daa4ea8e
commit
b391bc4aad
4 changed files with 740 additions and 725 deletions
|
@ -441,12 +441,12 @@ void Action::Action::buildEffects()
|
|||
// we have a valid lut entry
|
||||
if( auto player = getSourceChara()->getAsPlayer() )
|
||||
{
|
||||
player->sendDebug( "type: {}, dpot: {} (dcpot: {}, ddpot: {}), hpot: {}, shpot: {}, ss: {}, ts: {}, gmp: {}, gjob: {}",
|
||||
player->sendDebug( "type: {}, dpot: {} (dcpot: {}, ddpot: {}), hpot: {}, shpot: {}, ss: {}, ts: {}, gmp: {}",
|
||||
m_actionData->attackType,
|
||||
m_lutEntry.damagePotency, m_lutEntry.damageComboPotency, m_lutEntry.damageDirectionalPotency,
|
||||
m_lutEntry.healPotency, m_lutEntry.selfHealPotency,
|
||||
m_lutEntry.selfStatus, m_lutEntry.targetStatus,
|
||||
m_lutEntry.gainMPPercentage, m_lutEntry.gainJobResource );
|
||||
m_lutEntry.gainMPPercentage );
|
||||
}
|
||||
|
||||
// when aoe, these effects are in the target whatever is hit first
|
||||
|
@ -789,7 +789,7 @@ Sapphire::Entity::CharaPtr Action::Action::getHitChara()
|
|||
bool Action::Action::hasValidLutEntry() const
|
||||
{
|
||||
return m_lutEntry.damagePotency != 0 || m_lutEntry.healPotency != 0 || m_lutEntry.selfHealPotency != 0 || m_lutEntry.selfStatus != 0 ||
|
||||
m_lutEntry.targetStatus != 0 || m_lutEntry.gainMPPercentage != 0 || m_lutEntry.gainJobResource != 0;
|
||||
m_lutEntry.targetStatus != 0 || m_lutEntry.gainMPPercentage != 0;
|
||||
}
|
||||
|
||||
Action::EffectBuilderPtr Action::Action::getEffectbuilder()
|
||||
|
|
|
@ -14,7 +14,7 @@ bool ActionLut::validEntryExists( uint16_t actionId )
|
|||
|
||||
// if all of these fields are 0, it's not 'valid' due to parse error or no useful data
|
||||
return entry.damagePotency != 0 || entry.healPotency != 0 || entry.selfHealPotency != 0 || entry.selfStatus != 0 ||
|
||||
entry.targetStatus != 0 || entry.gainMPPercentage != 0 || entry.gainJobResource != 0;
|
||||
entry.targetStatus != 0 || entry.gainMPPercentage != 0;
|
||||
}
|
||||
|
||||
const ActionEntry& ActionLut::getEntry( uint16_t actionId )
|
||||
|
|
|
@ -19,7 +19,6 @@ namespace Sapphire::World::Action
|
|||
uint32_t targetStatusDuration;
|
||||
uint16_t targetStatusParam;
|
||||
uint16_t gainMPPercentage;
|
||||
uint16_t gainJobResource;
|
||||
};
|
||||
|
||||
const uint32_t EffectTypeInvalid = 0;
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue