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

Remove debug message in add_profession_items() causing basic build failure #77922

Merged

Conversation

ShnitzelX2
Copy link
Contributor

Summary

Bugfixes "remove debug message in add_profession_items()"

Purpose of change

In #77334, I assumed that for NPC generation, failing to wear/store initial profession items in add_profession_items() was a problem. If any equipment couldn't be put on the NPC, a debugmsg would fire.

It turns out that Magiclysm (which is included in the Basic Build test CI) includes species as hobbies, some of which can't equip certain professions' items -- this is fine, but add_profession_items still gives a warning for e.g. a LIZARDFOLK not being able to wear cleats.

Describe the solution

Removes the debugmsg for failure to equip an NPC with all initial profession equipment in add_profession_items().

Describe alternatives you've considered

Ideally there'd be a return type for wear_item clothing that distinguishes between "can't wear because of overlap" vs. "can't wear because of biology", but I'm content just fixing the CI here.

Testing

Generated a Lizardfolk Football Player in Magiclysm, noted missing equipment but no debugmsg

Removing the debugmsg makes sure it cannot possibly show up again, but make sure basic build passes on this PR

Additional context

Apologies, I didn't know Magiclysm was in the CI, nor have I tried playing Magiclysm (yet)

unintended magiclysm conflicts cause it to trigger rarely
@github-actions github-actions bot 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 <Bugfix> This is a fix for a bug (or closes open issue) astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Nov 17, 2024
@Night-Pryanik Night-Pryanik merged commit d8d1242 into CleverRaven:master Nov 17, 2024
21 of 28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions <Bugfix> This is a fix for a bug (or closes open issue) [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 json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants