Allow creation of unit from WML with random traits.
This commit is contained in:
parent
ba818a025b
commit
04c2c25a7c
1 changed files with 3 additions and 0 deletions
|
@ -774,6 +774,9 @@ void unit::read(const game_data& data, const config& cfg)
|
|||
}
|
||||
|
||||
validate_side(side_);
|
||||
if(cfg["random_traits"] == "yes") {
|
||||
generate_traits();
|
||||
}
|
||||
|
||||
description_ = cfg["user_description"];
|
||||
if(cfg["generate_description"] == "yes") {
|
||||
|
|
Loading…
Add table
Reference in a new issue