equal
deleted
inserted
replaced
73 return; |
73 return; |
74 |
74 |
75 // the hat will influence which names the hogs get |
75 // the hat will influence which names the hogs get |
76 int kind = (rand()%(TypesHatnames.size())); |
76 int kind = (rand()%(TypesHatnames.size())); |
77 |
77 |
78 // pick team name based on hat |
|
79 team.setName(getRandomTeamName(kind)); |
|
80 team.setGrave(getRandomGrave()); |
78 team.setGrave(getRandomGrave()); |
81 team.setFort(getRandomFort()); |
79 team.setFort(getRandomFort()); |
82 team.setFlag(getRandomFlag()); |
80 team.setFlag(getRandomFlag()); |
83 team.setVoicepack(getRandomVoice()); |
81 team.setVoicepack(getRandomVoice()); |
84 |
82 |
135 |
133 |
136 // give each hedgehog a random name |
134 // give each hedgehog a random name |
137 HWNamegen::teamRandomHogName(team,i,dict); |
135 HWNamegen::teamRandomHogName(team,i,dict); |
138 } |
136 } |
139 |
137 |
|
138 // If using themed hats, use themed team name. |
|
139 // Otherwise, only use “generic” team names from the first team |
|
140 // in types.txt. |
|
141 if (randomMode == 0) |
|
142 team.setName(getRandomTeamName(kind)); |
|
143 else |
|
144 team.setName(getRandomTeamName(0)); |
|
145 |
140 } |
146 } |
141 |
147 |
142 // Set random hats for entire team |
148 // Set random hats for entire team |
143 void HWNamegen::teamRandomHats(HWTeam & team, bool withDLC) |
149 void HWNamegen::teamRandomHats(HWTeam & team, bool withDLC) |
144 { |
150 { |