File tree Expand file tree Collapse file tree
scripts/scr_company_struct Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -181,14 +181,19 @@ function CompanyStruct(comp) constructor{
181181 ancient = unit;
182182 } else if (unit.role () == role_set[eROLE.Champion ]){
183183 champion = unit;
184- } else if (unit.role () == role_set[eROLE.Chaplain ]){
185- chaplain = unit;
186- } else if (unit.role () == role_set[eROLE.Apothecary ]){
187- apothecary = unit;
188- } else if (unit.role () == role_set[eROLE.Techmarine ]){
189- tech_marine = unit;
190- } else if (unit.role () == role_set[eROLE.Librarian ]){
191- lib = unit;
184+ } else {
185+ if (unit.IsSpecialist (" chap" )) {
186+ chaplain = unit;
187+ }
188+ if (unit.IsSpecialist (" apoth" )) {
189+ apothecary = unit;
190+ }
191+ if (unit.IsSpecialist (" forge" )) {
192+ tech_marine = unit;
193+ }
194+ if (unit.IsSpecialist (" lib" )) {
195+ lib = unit;
196+ }
192197 }
193198 }
194199 }
You can’t perform that action at this time.
0 commit comments