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

Fix NPCs traits removal by purification #1673

Conversation

AngelicosPhosphoros
Copy link
Contributor

Summary

SUMMARY: Bugfixes "Stop purification from removal inherent traits of NPCs"

Purpose of change

Fixes #1670

Describe the solution

Replace set_mutation by toggle_trait at NPC generation.

Describe alternatives you've considered

I don't have alternatives.

Testing

Testing:

  1. Started new game
  2. Made friends with NPC
  3. Made NPC drink purifier, notice no changes in traits.
  4. Made NPC drink mutagen, notice new mutations.
  5. Made NPC drink purifier, notice removal of mutations but preservation of original traits.

Additional context

Would also file a new PR with removal of toggle_trait soon but it is harder to implement and test so this is fast bugfix.

Fixes cataclysmbnteam#1670

Testing:
1. Started new game
2. Made friends with NPC
3. Made NPC drink purifier, notice no changes in traits.
4. Made NPC drink mutagen, notice new mutations.
5. Made NPC drink purifier, notice removal of mutations but preservation of original traits.
@Coolthulhu Coolthulhu self-assigned this Jun 30, 2022
@Coolthulhu Coolthulhu merged commit c87f973 into cataclysmbnteam:upload Jun 30, 2022
joveeater pushed a commit to joveeater/Cataclysm-BN that referenced this pull request Jul 10, 2022
Fixes cataclysmbnteam#1670

Testing:
1. Started new game
2. Made friends with NPC
3. Made NPC drink purifier, notice no changes in traits.
4. Made NPC drink mutagen, notice new mutations.
5. Made NPC drink purifier, notice removal of mutations but preservation of original traits.
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.

NPCs lose their inherent traits if they drink purifier
2 participants