mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-04-19 21:33:15 +02:00
Stat will be set dirty after deserialization now.
This commit is contained in:
parent
de25ec9dd5
commit
5ea15ab1c9
@ -4217,7 +4217,7 @@ void Entity::update(float delta) {
|
||||
s->apply_modifiers();
|
||||
|
||||
if (s->get_dirty()) {
|
||||
//send target is nout public
|
||||
//send target is not public
|
||||
s->setc_values(s->gets_current(), s->gets_max());
|
||||
s->set_dirty(false);
|
||||
}
|
||||
|
@ -473,6 +473,9 @@ void Stat::_from_dict(const Dictionary &dict) {
|
||||
|
||||
_modifiers.push_back(sm);
|
||||
}
|
||||
|
||||
_dirty = true;
|
||||
_dirty_mods = true;
|
||||
}
|
||||
|
||||
Stat::Stat() {
|
||||
|
Loading…
Reference in New Issue
Block a user