mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
36 lines
630 B
C++
36 lines
630 B
C++
#ifndef ITEM_STAT_MODIFIER_H
|
|
#define ITEM_STAT_MODIFIER_H
|
|
|
|
#include "core/reference.h"
|
|
#include "../entities/stats/stat.h"
|
|
|
|
class ItemStatModifier : public Reference {
|
|
GDCLASS(ItemStatModifier, Reference);
|
|
|
|
public:
|
|
Stat::StatId get_stat_id();
|
|
void set_stat_id(Stat::StatId value);
|
|
|
|
float get_base_mod();
|
|
void set_base_mod(float value);
|
|
|
|
float get_bonus_mod();
|
|
void set_bonus_mod(float value);
|
|
|
|
float get_percent_mod();
|
|
void set_percent_mod(float value);
|
|
|
|
ItemStatModifier();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
private:
|
|
Stat::StatId _stat_id;
|
|
float _base_mod;
|
|
float _bonus_mod;
|
|
float _percent_mod;
|
|
};
|
|
|
|
#endif
|