mirror of
https://github.com/Karaka-Management/cOMS.git
synced 2026-02-08 06:48:41 +00:00
47 lines
1.2 KiB
C
47 lines
1.2 KiB
C
/**
|
|
* Jingga
|
|
*
|
|
* @copyright Jingga
|
|
* @license OMS License 2.0
|
|
* @version 1.0.0
|
|
* @link https://jingga.app
|
|
*/
|
|
#ifndef TOS_MODELS_EQUIPMENT_H
|
|
#define TOS_MODELS_EQUIPMENT_H
|
|
|
|
#include "../../stdlib/Types.h"
|
|
|
|
#include "../mob/MobStats.h"
|
|
#include "../mob/skill/StatsTarget.h"
|
|
|
|
// @todo when to use points and when to use values?
|
|
|
|
struct Equipment {
|
|
byte type;
|
|
char* name;
|
|
};
|
|
|
|
struct SEquipmentStatsPoints {
|
|
// Item requirements
|
|
PrimaryStatsPoints requirements;
|
|
|
|
// Item stats
|
|
// items cannot have stats like str, they can only modify primary stats of chars (see below)
|
|
SecondaryStatsPoints secondary_item;
|
|
|
|
// Modifies the char stats
|
|
// @todo A character cannot do for example fire damage (only items and skills can do that)
|
|
// This means these stats are unused and just use up memory
|
|
PrimaryStatsPoints primary_char_add;
|
|
PrimaryStatsRelPoints primary_char_mul;
|
|
|
|
SecondaryStatsPoints secondary_char_add;
|
|
SecondaryStatsRelPoints secondary_char_mul;
|
|
|
|
// Modifies the skills
|
|
// only modifies skills that have these stats != 0
|
|
SecondaryStatsPoints secondary_skill_add;
|
|
SecondaryStatsRelPoints secondary_skill_mul;
|
|
};
|
|
|
|
#endif |