mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-02-22 17:18:12 +01:00
Implemented _from_dict in StatModifier. Stats seems to work properly now.
This commit is contained in:
parent
fdecd5b733
commit
8ce7742d14
@ -68,6 +68,11 @@ Dictionary StatModifier::_to_dict() {
|
||||
}
|
||||
void StatModifier::_from_dict(const Dictionary &dict) {
|
||||
ERR_FAIL_COND(dict.empty());
|
||||
|
||||
_id = dict.get("id", 0);
|
||||
_base_mod = dict.get("base_mod", 0);
|
||||
_bonus_mod = dict.get("bonus_mod", 0);
|
||||
_percent_mod = dict.get("percent_mod", 0);
|
||||
}
|
||||
|
||||
StatModifier::StatModifier() {
|
||||
|
Loading…
Reference in New Issue
Block a user