Skip to content

Commit f98592f

Browse files
committed
Combined specialists work with the new buttons
1 parent 99ed62a commit f98592f

1 file changed

Lines changed: 13 additions & 8 deletions

File tree

scripts/scr_company_struct/scr_company_struct.gml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)