122 .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data().toString() : "steel")); |
122 .arg((themeModel->rowCount() > 0) ? themeModel->index(rand() % themeModel->rowCount()).data().toString() : "steel")); |
123 HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString()); |
123 HWProto::addStringToBuffer(teamscfg, "eseed " + QUuid::createUuid().toString()); |
124 |
124 |
125 HWTeam team1; |
125 HWTeam team1; |
126 team1.setDifficulty(0); |
126 team1.setDifficulty(0); |
127 team1.setColor(QColor(colors[0])); |
127 team1.setColor(0); |
128 team1.setNumHedgehogs(4); |
128 team1.setNumHedgehogs(4); |
129 HWNamegen::teamRandomNames(team1,true); |
129 HWNamegen::teamRandomNames(team1,true); |
130 HWProto::addStringListToBuffer(teamscfg, |
130 HWProto::addStringListToBuffer(teamscfg, |
131 team1.teamGameConfig(100)); |
131 team1.teamGameConfig(100)); |
132 |
132 |
133 HWTeam team2; |
133 HWTeam team2; |
134 team2.setDifficulty(4); |
134 team2.setDifficulty(4); |
135 team2.setColor(QColor(colors[1])); |
135 team2.setColor(1); |
136 team2.setNumHedgehogs(4); |
136 team2.setNumHedgehogs(4); |
137 do |
137 do |
138 HWNamegen::teamRandomNames(team2,true); |
138 HWNamegen::teamRandomNames(team2,true); |
139 while(!team2.name().compare(team1.name()) || !team2.hedgehog(0).Hat.compare(team1.hedgehog(0).Hat)); |
139 while(!team2.name().compare(team1.name()) || !team2.hedgehog(0).Hat.compare(team1.hedgehog(0).Hat)); |
140 HWProto::addStringListToBuffer(teamscfg, |
140 HWProto::addStringListToBuffer(teamscfg, |