Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Help: fixed unit section such as the Walking Corpse's not generating
I didn't realize that is_valid_id was only meant to check IDs provided in the help config and not IDs generated dynamically; the latter are always correct. Granted, the old code did actually call its analogous codepath for race and era generation, but it did not for unit sections. My refactor made it so this check happened *any* time a section was created, regardless of its source. To rectify that, I moved ID validation for sections into the static section generation loop like for topics. I also moved the topic id validation prior to the ToD generation, tweaked the invalid id message, and renamed a variable for clarity and consistency.
- Loading branch information