NPC snippets overhaul, part 1. talk_tags.json
#77372
Open
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.
Summary
Infrastructure "NPC snippets overhaul"
Purpose of change
Some short snippets (
<very>
,<ill_die>
) could create strange sentences out of place. Or be used ambiguously (<swear>
). Or the snippet became a mishmash and lost its original meaning (okay
).Some snippets were rarely used or not used at all, hanging around as dead weight.
Some snippets, on the contrary, could be expanded or slightly reworked for a better result.
Describe the solution
Move talk_tags* to a separate folder (which is why PR counts so many changes).
Deprecate the following snippets:
<shitty>
,<dumb>
,<very>
,<really>
,<monster>
,<happy>
,<sad>
,<get_lost>
,<ill_kill_you>
,<ill_die>
,<move>
,<fuck_you>
<okay>
- in favor of<acknowledged>
<swear>
- renamed to<freaking>
to eliminate ambiguity, because the snippet was used both as an adjective and as a stand-alone curse word. Now it is used only as an adjective before a noun.The occurrences in the text of these snippets have been replaced, and the definition itself has been moved to a separate file in
data/json/obsoletion_and_migration_0.I/
. Just in case, so that simple replacement of snippets does not cause errors in third-party mods or anywhere else.Some snippets have been merged into one pool, creating a hierarchy. For example,
<general_danger_h>
uses snippets from<general_danger>
in addition to its own unique ones. Or<kill_player_h>
is now the same as<kill_npc_h>
.Some snippets have been split into multiple categories that will be concatenated to create more variations:
<heal_self>
,<kill_npc_h>
,<greet>
, noise warnings.<swear!>
is now a complete sentence:For crying out loud!
,Damn<punc…!>
,Are you kidding me?!
.3 new snippets with punctuation, chosen randomly:
<punc.!>
,<punc…!>
,<punc.…>
.Describe alternatives you've considered
Testing
Ummm... all these changes are split into 5 parts, but they should be tested together, merging separately will most likely not even allow the game to load the world. And it is possible that its will break the build, since one of the header files has a removed snippet, which was replaced in... part 5?
Wait, I actually created a patch of all the changes before breaking it, here it is:snip.zip. Nah, it's a bit outdated without a couple of minor fixes.Nothing much has changed from the player's point of view, but here are some screenshots:
Details
^^^All snippets, including deprecated ones^^^
Additional context
It would be fun to have snippet categories for factions instead neutral-friendly and hostile.