Skip to content

Commit d95c388

Browse files
committed
chore: forgot to commit those
1 parent 0163da3 commit d95c388

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/attribute_buff.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

src/attribute_buff.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)