-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streamline has_trait_flag behavior (#2911)
* Streamline has_trait_flag behavior * Start work on it * Update type_id.h * Update the thing * Commit latest fixes * Update flag_trait.h * Commit what I have for now * style(autofix.ci): automated formatting * Update condition.cpp * And that should be the basics of the code * style(autofix.ci): automated formatting * Start up the JSON work next * Update flags_mutation.json * Update JSON_FLAGS.md * style(autofix.ci): automated formatting * Update flags_mutation.json * Update string_id_null_ids.cpp * Apply suggestions from code review Co-authored-by: Olanti <[email protected]> * Do some of the suggested things * Work on part of the requests * Add the validation thingy * refactor: extract `trait_flag_str_id` for `PRED` * refactor: remove `conflicts` usage Co-authored-by: olanti-p <[email protected]> * refactor: extract other trait flag ids Co-authored-by: olanti-p <[email protected]> * style(autofix.ci): automated formatting --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Olanti <[email protected]> Co-authored-by: scarf <[email protected]>
- Loading branch information
1 parent
87a04bc
commit dc43e23
Showing
22 changed files
with
430 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
[ | ||
{ | ||
"id": "BG_SURVIVAL_STORY", | ||
"//": "This trait flag is used in dialogue JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "CANNIBAL", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_black", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_blond", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_brown", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_crewcut", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_fro", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_gray", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_long", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_medium", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_mohawk", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_red", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_short", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "hair_white", | ||
"//": "This trait flag is used by cosmetic trait JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "mycus", | ||
"//": "This trait flag is used in dialogue JSON, with no hardcode usage at present.", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "MUTATION_THRESHOLD", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "NEED_ACTIVE_TO_MELEE", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "NO_THIRST", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "NO_RADIATION", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "NON_THRESH", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "PSYCHOPATH", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "PRED1", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "PRED2", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "PRED3", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "PRED4", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "SAPIOVORE", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "SILENT_SPELL", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "SUBTLE_SPELL", | ||
"type": "mutation_flag" | ||
}, | ||
{ | ||
"id": "UNARMED_BONUS", | ||
"type": "mutation_flag" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.