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 inheritance for fake_spell #34301

Merged
merged 2 commits into from
Sep 29, 2019

Conversation

KorGgenT
Copy link
Member

Summary

SUMMARY: Bugfixes "extra_effects now properly inherit their spell level"

Purpose of change

brought to my attention in https://github.com/KorGgenT/Cataclysm-DDA/issues/83, though improperly characterized as AOE only. What happened was fake_spell was always cast at level 0, no matter what.

Describe the solution

did some shuffling around in fake_spell::get_spell() such that its output level is always below the max, above the minimum, and uses the parent spell's level to determine.

@KorGgenT KorGgenT added <Bugfix> This is a fix for a bug (or closes open issue) Mods: Magiclysm Anything to do with the Magiclysm mod [C++] Changes (can be) made in C++. Previously named `Code` labels Sep 28, 2019
@ZhilkinSerg ZhilkinSerg merged commit 6bdb737 into CleverRaven:master Sep 29, 2019
@KorGgenT KorGgenT deleted the fake-spell-fix branch September 29, 2019 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Mods: Magiclysm Anything to do with the Magiclysm mod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants