skyrim-multiplayer / skymp

Multiplayer Mod & TypeScript SDK for Skyrim Special Edition
Other
221 stars 75 forks source link

feat: add (MGEF & SPEL) reverse and calculation for spell damage to server side #2193

Closed Darkwood9612 closed 3 weeks ago

Darkwood9612 commented 4 weeks ago

Add (MGEF & SPEL) reverse and calculation for spell damage to server side


[!IMPORTANT] Add server-side spell damage calculation and update related data structures and logic for MGEF and SPEL records.

  • Behavior:
    • Implement spell damage calculation in TES5SpellDamageFormulaImpl::CalculateDamage() in TES5DamageFormula.cpp.
    • Update ActionListener::OnSpellCast() in ActionListener.cpp to log spell damage.
  • Data Structures:
    • Add Flags enum to MGEF and SpellFlags, CastType, Delivery, SPITData, EFIT, Effect structs to SPEL in MGEF.h and SPEL.h.
    • Update MGEF::GetData() and SPEL::GetData() in MGEF.cpp and SPEL.cpp to handle new data structures.
  • Logic:
    • Modify MpActor::ApplyMagicEffect() in MpActor.cpp to handle new spell types and effects.
    • Update MpActor::ApplyMagicEffects() in MpActor.cpp to apply multiple effects.
  • Misc:
    • Fix logging message in ActionListener::OnSpellCast() in ActionListener.cpp to include damage value.

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

Pospelove commented 3 weeks ago

Починить компиляцию на линуксе и ок