Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spell_level_adjustment does not account for spells whose traits are calculated using the math function #66641

Closed
Standing-Storm opened this issue Jul 3, 2023 · 2 comments · Fixed by #70128
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Help Wanted Not particularly urgent or easy (see Good First Issue for this), but help is appreciated with this! Mechanics: Enchantments / Spells Enchantments and spells (S2 - Confirmed) Bug that's been confirmed to exist

Comments

@Standing-Storm
Copy link
Contributor

Describe the bug

Trying to make holding on to a matrix crystal enhance psionic powers the way Mind over Matter lore suggests it should. However, it looks like math only calculates based on the original level of the power, totally ignoring spell_level_adjustment.

Dev version of Mom:
MindOverMatter.zip

Attach save file

Roundup-trimmed.tar.gz

Steps to reproduce

  1. Open the spellbook, notice range and damage on Fountain of Flames level 2
  2. Wield a strange crystal, red
  3. Open the spellbook, Fountain of Flames is now level 6 (+4) but the range and damage are the same.

Expected behavior

spell_level_adjustment and math properly work together

Screenshots

Power level 2:
image

Power level 6, holding crystal, same damage and range (casting time, which does not use the math function, is properly updated):
image

Versions and configuration

  • OS: Windows
    • OS Version: 10.0.19045.3086 (22H2)
  • Game Version: 10875c2 [64-bit]
  • Graphics Version: Tiles
  • Game Language: English [en]
  • Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Portal Storms Ignore NPCs [personal_portal_storms],
    Slowdown Fungal Growth [no_fungal_growth],
    No Rail Stations [No_Rail_Stations],
    Mind Over Matter [mindovermatter]
    ]

Additional context

No response

@Standing-Storm Standing-Storm added the (S1 - Need confirmation) Report waiting on confirmation of reproducibility label Jul 3, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@github-actions github-actions bot added the stale Closed for lack of activity, but still valid. label Aug 2, 2023
@andrei8l
Copy link
Contributor

andrei8l commented Aug 3, 2023

/confirmed but title is a backwards and this is not specifically a math problem

This line

return me_chr_const->magic->get_spell( spell_name ).get_level();

should probably use get_effective_level() instead

@github-actions github-actions bot added (S2 - Confirmed) Bug that's been confirmed to exist and removed (S1 - Need confirmation) Report waiting on confirmation of reproducibility stale Closed for lack of activity, but still valid. labels Aug 3, 2023
@NetSysFire NetSysFire added [C++] Changes (can be) made in C++. Previously named `Code` Mechanics: Enchantments / Spells Enchantments and spells Help Wanted Not particularly urgent or easy (see Good First Issue for this), but help is appreciated with this! labels Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Help Wanted Not particularly urgent or easy (see Good First Issue for this), but help is appreciated with this! Mechanics: Enchantments / Spells Enchantments and spells (S2 - Confirmed) Bug that's been confirmed to exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants