Among us — Make a random NPC the Dragonlord #156
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This was a request by EMP_AnyAmountOfMoney, made in chat in a DiabeetusThe2nd stream. The following is accomplished:
Notes:
Now, this pull request has a large amount of code for the little it accomplishes. This is because most of the code is used to completely rebuild the NPC pointer tables and their content, which means it can now be very easy to change the number of NPCs in an area, as long as the total number of NPCs does not exceed the original one. I see at least two interesting uses for this:
In any case, this would of course require adjusments to this code, but I believe the bulk of the work has been done.
[Edit] Cleaner implementation can be found here and a prebuilt web app is available here. Notably, this makes this flag compatible with the Vendor Shuffle and Inn in Charlock flags, and the code is much cleaner.