File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ void AttributeBuffContext::merge()
316316 const Dictionary &diff = get_diff ();
317317 PackedStringArray affected_attributes = diff.keys ();
318318
319- for (int i = 0 ; i < affected_attributes.size (); i++) {
319+ for (int64_t i = 0 ; i < affected_attributes.size (); i++) {
320320 const String &attribute_name = affected_attributes[i];
321321 const Ref<AttributeDiff> attribute_diff = diff[attribute_name];
322322 const Ref<RuntimeAttribute> runtime_attribute = attribute_container->get_runtime_attribute_by_name (attribute_name);
Original file line number Diff line number Diff line change @@ -23,13 +23,17 @@ namespace octod::gameplay::attributes
2323 class AttributeOperation ;
2424 class RuntimeAttribute ;
2525
26- class AttributeDiff : public RefCounted
26+ class AttributeDiff final : public RefCounted
2727 {
2828 GDCLASS (AttributeDiff, RefCounted)
2929
3030 public:
3131 String attribute_name;
3232
33+ double remaining_duration = 0.0 ;
34+
35+ bool time_based = false ;
36+
3337 [[nodiscard]] bool did_change () const ;
3438
3539 [[nodiscard]] float get_buff () const ;
You can’t perform that action at this time.
0 commit comments