Horizon Official Technical Documentation
Attribute.cpp File Reference
+ Include dependency graph for Attribute.cpp:

Macros

#define ASPD_FROM_STATUS_EFFECTS   0
 
#define ASPD_FROM_SKILLS   0
 

Functions

template<class STATUS_COST_T , class STATUS_T >
void set_new_point_cost (std::shared_ptr< Horizon::Zone::Unit > unit, STATUS_COST_T *cost_t, STATUS_T *stat)
 

Macro Definition Documentation

◆ ASPD_FROM_SKILLS

#define ASPD_FROM_SKILLS   0

◆ ASPD_FROM_STATUS_EFFECTS

#define ASPD_FROM_STATUS_EFFECTS   0

Function Documentation

◆ set_new_point_cost()

template<class STATUS_COST_T , class STATUS_T >
void set_new_point_cost ( std::shared_ptr< Horizon::Zone::Unit unit,
STATUS_COST_T *  cost_t,
STATUS_T *  stat 
)
358{
359 if (unit == nullptr || stat == nullptr)
360 return;
361
362 int32_t new_cost = unit->status()->get_required_statpoints(stat->get_base(), stat->get_base() + 1);
363
364 cost_t->set_base(new_cost);
365}

Referenced by Horizon::Zone::Traits::AgilityPointCost::on_observable_changed(), Horizon::Zone::Traits::DexterityPointCost::on_observable_changed(), Horizon::Zone::Traits::IntelligencePointCost::on_observable_changed(), Horizon::Zone::Traits::LuckPointCost::on_observable_changed(), Horizon::Zone::Traits::StrengthPointCost::on_observable_changed(), and Horizon::Zone::Traits::VitalityPointCost::on_observable_changed().

+ Here is the caller graph for this function: