Skip to content

Conversation

@Pospelove
Copy link
Contributor

@Pospelove Pospelove commented Apr 13, 2025

Important

Remove ActiveMagicEffectsMap and related functionality from MpActor and other components.

  • Removal of ActiveMagicEffectsMap:
    • Deleted ActiveMagicEffectsMap.cpp and ActiveMagicEffectsMap.h.
    • Removed ActiveMagicEffectsMap usage from MpActor.cpp, MpActor.h, MpChangeForms.cpp, and MpChangeForms.h.
    • Removed ApplyMagicEffects, RemoveMagicEffect, RemoveAllMagicEffects, and ReapplyMagicEffects methods from MpActor.
  • Changes in AnimationSystem:
    • Commented out stamina rate modification logic in AnimationSystem.cpp.
  • Changes in EatItemEvent:
    • Commented out ApplyMagicEffects call in EatItemEvent.cpp.

This description was created by Ellipsis for cfcc18e. It will automatically update as commits are pushed.

@ellipsis-dev ellipsis-dev bot changed the title . refactor: remove ActiveMagicEffectsMap and related functionality Apr 13, 2025
Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Changes requested. Reviewed everything up to cfcc18e in 1 minute and 51 seconds

More details
  • Looked at 485 lines of code in 8 files
  • Skipped 0 files when reviewing.
  • Skipped posting 13 drafted comments based on config settings.
1. skymp5-server/cpp/server_guest_lib/ActiveMagicEffectsMap.cpp:1
  • Draft comment:
    Removed file ActiveMagicEffectsMap.cpp. Confirm that all calls to magic effects functions have been properly refactored and tests updated.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
2. skymp5-server/cpp/server_guest_lib/ActiveMagicEffectsMap.h:1
  • Draft comment:
    Removed ActiveMagicEffectsMap.h. Verify that no other modules rely on its interface.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
3. skymp5-server/cpp/server_guest_lib/AnimationSystem.cpp:25
  • Draft comment:
    Similarly, blockStop callback has commented out changes. Remove if no longer relevant.
  • Reason this comment was not posted:
    Marked as duplicate.
4. skymp5-server/cpp/server_guest_lib/EatItemEvent.cpp:46
  • Draft comment:
    The call to ApplyMagicEffects is commented out; if the magic effects system has been removed, remove this dead code.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
5. skymp5-server/cpp/server_guest_lib/ActiveMagicEffectsMap.cpp:1
  • Draft comment:
    Deleted ActiveMagicEffectsMap implementation. Confirm no remaining dependency on magic effects.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
6. skymp5-server/cpp/server_guest_lib/ActiveMagicEffectsMap.h:1
  • Draft comment:
    Removed ActiveMagicEffectsMap header. Ensure calls to magic effects in other modules are updated.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
7. skymp5-server/cpp/server_guest_lib/AnimationSystem.cpp:15
  • Draft comment:
    Block event lambdas now have commented out code for modifying stamina values. Remove commented code if no longer required.
  • Reason this comment was not posted:
    Marked as duplicate.
8. skymp5-server/cpp/server_guest_lib/MpActor.cpp:560
  • Draft comment:
    Removed magic effects processing functions (e.g. ReapplyMagicEffects, ApplyMagicEffect). Verify that no external code still depends on these.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
9. skymp5-server/cpp/server_guest_lib/MpChangeForms.cpp:43
  • Draft comment:
    Removed serialization of magic effects (the 'effects' field). Ensure backward compatibility with saved change forms if needed.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
10. skymp5-server/cpp/server_guest_lib/gamemode_events/EatItemEvent.cpp:46
  • Draft comment:
    Magic effects application call is commented out. Remove or replace if magic effects are no longer supported.
  • Reason this comment was not posted:
    Marked as duplicate.
11. skymp5-server/cpp/server_guest_lib/MpActor.h:28
  • Draft comment:
    Typographical error: The parameter name 'calbacks_' in the constructor on line 28 appears to be a typo. Consider renaming it to 'callbacks_' for clarity.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
12. skymp5-server/cpp/server_guest_lib/MpChangeForms.cpp:83
  • Draft comment:
    Consider revising the TODO comment on line 83 for clarity. Perhaps change "uncomment when add script vars save feature" to "uncomment when adding script vars save feature".
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.
13. skymp5-server/cpp/server_guest_lib/MpChangeForms.h:88
  • Draft comment:
    Consider using 'nonexistent' instead of 'unexisting' in the comment on equipmentDump. 'Nonexistent' is more common and clear to readers.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_XUz1vstqJWk7RFad


Want Ellipsis to fix these issues? Tag @ellipsis-dev in a comment. You can customize Ellipsis with 👍 / 👎 feedback, review rules, user-specific overrides, quiet mode, and more.

animationCallbacks = { {
"blockStart",
[this](MpActor* actor) {
// constexpr float newRate = 0.f;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented-out code inside blockStart callback remains. If magic effect modifications are removed permanently, consider deleting obsolete code instead of commenting it out.

Suggested change
// constexpr float newRate = 0.f;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant