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

Using "cancels" makes traits mutually exclusive at character creation #36198

Merged
merged 4 commits into from
Dec 18, 2019

Conversation

Fris0uman
Copy link
Contributor

Summary

SUMMARY: Mods "Makes Made Of Sugar trait exclusive with appropriate traits"

Purpose of change

The "cancels" entry was only working one way: If A cancels B you can't take B and then take A but you can take A and then B.
Now if A cancels B if you have A you can't take B, and if you have B you can't take A.

Use this to make Made of Sugar incompatible with mutating traits, thirst traits, and food traits.

Describe the solution

Add a check to look through my_mutation and then through each "cancels" entry to search for the candidate mutation

Describe alternatives you've considered

Testing

Load the game
image

Additional context

The most impactfull thing here is the change to how "cancels" works but this is also a sweet cataclysm fix so I don't which of these aspects should show up in the summary.

@ZhilkinSerg ZhilkinSerg added [C++] Changes (can be) made in C++. Previously named `Code` Character / World Generation Issues and enhancements concerning stages of creating a character or a world Mods Issues related to mods or modding Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies labels Dec 18, 2019
@ZhilkinSerg ZhilkinSerg merged commit 572b78f into CleverRaven:master Dec 18, 2019
@Fris0uman Fris0uman deleted the sweet_fix branch December 18, 2019 08:33
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` Character / World Generation Issues and enhancements concerning stages of creating a character or a world Mods Issues related to mods or modding Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants