Skip to content

Use Character Pool Class#1

Open
nightninja54 wants to merge 5 commits into
Favid:mainfrom
nightninja54:main
Open

Use Character Pool Class#1
nightninja54 wants to merge 5 commits into
Favid:mainfrom
nightninja54:main

Conversation

@nightninja54

Copy link
Copy Markdown

When generating a soldier from the character pool, check and use the designated Character's class.

If a selected class does not have a character pool match, generate a new soldier.

When generating a soldier from the character pool, check and use the designated Character's class
`LOG("RandomlyChooseCharacter adding to RandomCharacterOptions");
RandomCharacterOptions.AddItem(Character.GetFullName());
`LOG("Searching for Character with Class: " $ ClassName);
if(ClassName == Character.GetSoldierClassTemplateName()) {

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Curly brackets should be on new lines
  2. I don't like the side-effect where, if there aren't any characters with the given class, then the soldier will end up being fully randomly generated. I think that if it can't find a character with the given class, it should just randomly choose a character. And then if it can't find a character, it should be randomly generated.


// Start with the default squad - 4 random soldiers at the start, with others joining at missions 2 and 4
Soldier.bRandomlyGeneratedCharacter = true;
Soldier.bRandomCharacter = true;

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please revert the changes to this file - I would prefer that randomly generated characters be the default.

@nightninja54

Copy link
Copy Markdown
Author

Noted! I'll follow up here, thanks for review :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants