mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-01-11 11:18:40 +00:00
48 lines
1.3 KiB
C++
48 lines
1.3 KiB
C++
/**
|
|
* Jingga
|
|
*
|
|
* @copyright Jingga
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
#ifndef TOS_MODELS_MOB_STATS_C
|
|
#define TOS_MODELS_MOB_STATS_C
|
|
|
|
#include "MobStats.h"
|
|
#include "../../stdlib/simd/SIMD_I32.h"
|
|
|
|
// Calculate whenever character points or items change
|
|
// 1. combine primary Item points with character points
|
|
// 2. combine secondary item points with character points
|
|
// 3. calculate semi static character values from points
|
|
|
|
// Calculated for every skill and then cached whenever that skill is used
|
|
inline
|
|
void calculate_modify_values(
|
|
const Skill* skill,
|
|
const SMobStatsTotal* mob_stats,
|
|
const SEquipmentStatsTotal* item_stats,
|
|
SecondaryStatsValues* modify_values
|
|
)
|
|
{
|
|
|
|
}
|
|
|
|
// @todo check what to do??
|
|
|
|
inline
|
|
void handle_character_fight_action(
|
|
const SecondaryStatsValues* modify_values,
|
|
const Skill* skill,
|
|
SecondaryStatsValues *mob_values,
|
|
int steps
|
|
)
|
|
{
|
|
// @todo not correct since the modify_value needs further modification in relation to the effected mob (e.g. defense consideration)
|
|
// but this means i also need the skill as parameter
|
|
int32_4_add((int32 *) modify_values, (int32 *) mob_values, (int32 *) mob_values, 10, steps);
|
|
f32_4_add((f32 *) (modify_values + 1), (f32 *) (mob_values + 1), (f32 *) (mob_values + 1), 10, steps);
|
|
}
|
|
|
|
#endif |