Fix initial value of EntityStat's percent.

This commit is contained in:
Relintai 2020-05-02 23:52:21 +02:00
parent 2bf785cb93
commit c3a1bc4503
2 changed files with 2 additions and 2 deletions

View File

@ -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());

View File

@ -114,7 +114,7 @@ struct EntityStat {
base = 0;
base_calculated = 0;
bonus = 0;
percent = 0;
percent = 100;
scurrent = 0;
ccurrent = 0;