mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-05-09 22:41:39 +02:00
Fix initial value of EntityStat's percent.
This commit is contained in:
parent
2bf785cb93
commit
c3a1bc4503
@ -579,7 +579,7 @@ void Entity::_setup() {
|
||||
Ref<EntityClassData> cc = gets_entity_data()->get_entity_class_data();
|
||||
ERR_FAIL_COND(!cc.is_valid());
|
||||
|
||||
Ref<StatData> stat_data = _s_entity_data->get_stat_data();
|
||||
//Ref<StatData> stat_data = _s_entity_data->get_stat_data();
|
||||
|
||||
sets_ai(_s_entity_data->get_ai_instance());
|
||||
|
||||
|
@ -114,7 +114,7 @@ struct EntityStat {
|
||||
base = 0;
|
||||
base_calculated = 0;
|
||||
bonus = 0;
|
||||
percent = 0;
|
||||
percent = 100;
|
||||
|
||||
scurrent = 0;
|
||||
ccurrent = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user