Skip to content

Add no random chargen field. Apply it to GDS#85512

Open
Maleclypse wants to merge 5 commits intoCleverRaven:masterfrom
Maleclypse:Fix-weird-CHAOTIC_BAD-fields
Open

Add no random chargen field. Apply it to GDS#85512
Maleclypse wants to merge 5 commits intoCleverRaven:masterfrom
Maleclypse:Fix-weird-CHAOTIC_BAD-fields

Conversation

@Maleclypse
Copy link
Member

Summary

None

Purpose of change

Fix #85480

Describe the solution

Adjust starting trait to false and valid to true. Not sure how those got set backwards but blame chain is broken so not going to go search.

Describe alternatives you've considered

Testing

Additional context

@github-actions github-actions bot added [JSON] Changes (can be) made in JSON Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies <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 labels Feb 24, 2026
@akrieger
Copy link
Member

Is "valid": true the default? Looks like you just deleted the entire key.

@Maleclypse
Copy link
Member Author

Is "valid": true the default? Looks like you just deleted the entire key.

"valid": false, // Can be mutated ingame (default: true). Note that prerequisites can even mutate invalid mutations.

"starting_trait": true, // Can be selected at character creation (default: false)
So looks like I can delete both lines

@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Feb 24, 2026
@SariusSkelrets
Copy link
Contributor

Setting it as "starting_trait": false will prevent people to start with it. AFAIK the ability to pick it during chargen is intended as part of a challenge that doesn't require a precise scenario, letting it stack with other scenarios.

There should be a bool for a trait that can be picked at start but won't be granted by random starts. This way, it'll solve the issue of being far too harsh for random starts while not removing it from starting options altogether.

@github-actions github-actions bot removed the BasicBuildPassed This PR builds correctly, label assigned by github actions label Feb 24, 2026
@Maleclypse
Copy link
Member Author

Setting it as "starting_trait": false will prevent people to start with it. AFAIK the ability to pick it during chargen is intended as part of a challenge that doesn't require a precise scenario, letting it stack with other scenarios.

There should be a bool for a trait that can be picked at start but won't be granted by random starts. This way, it'll solve the issue of being far too harsh for random starts while not removing it from starting options altogether.

I agree with you but the closest was no random for NPCs and I don't have time to make the no random start json object.

@Maleclypse
Copy link
Member Author

There should be a bool for a trait that can be picked at start but won't be granted by random starts. This way, it'll solve the issue of being far too harsh for random starts while not removing it from starting options altogether.

trait_id Character::random_bad_trait()
{
    return get_random_trait( [this]( const mutation_branch & mb ) {
        return mb.points < 0 && ( mb.chargen_allow_npc || is_avatar() );
    } );
}

and here

bool chargen_allow_npc = true;

and here

optional( jo, was_loaded, "chargen_allow_npc", chargen_allow_npc, true );

would all need to be mirrored or edited. which shouldn't be hard but I really don't have time tonight to make the fix. despite how much I keep thinking 20 minute adventure in and out

@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 and removed astyled astyled PR, label is assigned by github actions labels Feb 26, 2026
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@github-actions github-actions bot added the astyled astyled PR, label is assigned by github actions label Feb 26, 2026
Co-authored-by: thaelina <thaelina@users.noreply.github.com>
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Feb 26, 2026
@Maleclypse Maleclypse changed the title Fix incorrect field settings for Downward Spiral Add no random chargen field. Apply it to GDS and Mar 1, 2026
@Maleclypse Maleclypse changed the title Add no random chargen field. Apply it to GDS and Add no random chargen field. Apply it to GDS Mar 1, 2026
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] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid Setting 'Genetic Downward Spiral' as an Initial Trait

4 participants