diff --git a/data/auras/aura.cpp b/data/auras/aura.cpp index a912f61..ddcb307 100644 --- a/data/auras/aura.cpp +++ b/data/auras/aura.cpp @@ -928,7 +928,11 @@ String Aura::_get_description(const int class_level, const int character_level) if (pos == str.size() - 1) break; +#if GODOT4 + char32_t o = str[pos + 1]; +#else CharType o = str[pos + 1]; +#endif if (o == '#' || o == '$' || o == '%') { int nsp = str.find_char(' ', pos + 1); diff --git a/data/spells/spell.cpp b/data/spells/spell.cpp index 0c6e85d..701554e 100644 --- a/data/spells/spell.cpp +++ b/data/spells/spell.cpp @@ -738,7 +738,11 @@ String Spell::_get_description(const int class_level, const int character_level) if (pos == str.size() - 1) break; +#if GODOT4 + char32_t o = str[pos + 1]; +#else CharType o = str[pos + 1]; +#endif if (o == '#' || o == '$' || o == '%') { int nsp = str.find_char(' ', pos + 1); diff --git a/defines.h b/defines.h index 7cf46c0..1640f9a 100644 --- a/defines.h +++ b/defines.h @@ -38,6 +38,7 @@ #define POOL_STRING_ARRAY PACKED_STRING_ARRAY #define POOL_INT_ARRAY PACKED_INT32_ARRAY +#define POOL_REAL_ARRAY PACKED_FLOAT32_ARRAY #define Spatial Node3D diff --git a/entities/resources/entity_resource.cpp b/entities/resources/entity_resource.cpp index 2884cba..8bf02ca 100644 --- a/entities/resources/entity_resource.cpp +++ b/entities/resources/entity_resource.cpp @@ -26,6 +26,8 @@ SOFTWARE. #include "../../singletons/ess.h" #include "../entity.h" +#include "../../defines.h" + int EntityResource::get_id() const { return _id; }