-
Notifications
You must be signed in to change notification settings - Fork 44
feat: Multi-part missions and governor profiles #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
099a82e
f16c686
07a1896
177caab
89b1272
70adfbb
d0f4a88
23f9296
d94a5af
6731588
ee55baf
cc7e43b
d885358
3cc8af0
6a17fd0
e5474a5
fe1edb7
d29e9d1
b7e6510
303267f
ef1ecbb
49d3d02
31b863e
6c157e9
9f0747c
d8abe16
6b22193
03b9e6e
0bfe7aa
03d54db
2f8b517
5f1c21b
8251a5b
64e0da0
3038c4a
b8db208
f1d9aa3
f6c9fd5
9332887
e99120d
505e114
f050edb
00ba73b
4d2196e
9d53e7c
9d0ca6f
b11e11e
0f9feca
ed3586b
c604fcc
b70b3af
9fad197
ed92e56
b6fe4ae
e988e31
c2bb821
b1d8c00
23ad288
76883e8
0727d44
167fd35
27b3ce9
c012ae7
6cb2b0e
879e7e9
14a6172
ed7e94a
7143267
9437c65
2a72168
72750d8
d25aa4d
1bdc68a
d639572
d74b450
07d9899
f799fde
a49eea2
58ef484
b686fe9
ff2c0df
07ab623
5056797
8b2c0e1
5b9bb21
5ddf5f6
411efa4
c2f65c3
d4e2558
ff67aef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -6,11 +6,12 @@ if ((menu == 1) && (managing > 0)) { | |||||||||||||||||||||||
| // vehicle types | ||||||||||||||||||||||||
| var rhi = 0, pre = 0, lrad = 0, lspi = 0, whi = 0, unit; | ||||||||||||||||||||||||
| // non chapter units | ||||||||||||||||||||||||
| otha = 0; | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| var manz = 0, vanz = 0, stahp = 0; | ||||||||||||||||||||||||
| sel_promoting = 1; | ||||||||||||||||||||||||
| for (var f = 0; f < array_length(display_unit); f++) { | ||||||||||||||||||||||||
| otha=0; | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| var manz=0,vanz=0,stahp=0; | ||||||||||||||||||||||||
| sel_promoting=1; | ||||||||||||||||||||||||
| var _roles = active_roles(); | ||||||||||||||||||||||||
| for(var f=0; f<array_length(display_unit); f++){ | ||||||||||||||||||||||||
| // cooldown=8; | ||||||||||||||||||||||||
| if (man_sel[f] == 1) { | ||||||||||||||||||||||||
| if (man[f] == "man") { | ||||||||||||||||||||||||
|
|
@@ -31,49 +32,28 @@ if ((menu == 1) && (managing > 0)) { | |||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| // sets up count for the marines | ||||||||||||||||||||||||
| if (man[f] == "man") { | ||||||||||||||||||||||||
| manz += 1; | ||||||||||||||||||||||||
| if (unit.role() == obj_ini.role[100][5]) { | ||||||||||||||||||||||||
| cap += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][15]) { | ||||||||||||||||||||||||
| apo += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][14]) { | ||||||||||||||||||||||||
| chap += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][17]) { | ||||||||||||||||||||||||
| lib += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][16]) { | ||||||||||||||||||||||||
| tech += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][6]) { | ||||||||||||||||||||||||
| drea += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == $"Venerable {obj_ini.role[100][6]}") { | ||||||||||||||||||||||||
| vdrea += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][11]) { | ||||||||||||||||||||||||
| bear += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][8]) { | ||||||||||||||||||||||||
| tct += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][10]) { | ||||||||||||||||||||||||
| assa += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][9]) { | ||||||||||||||||||||||||
| dev += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][12]) { | ||||||||||||||||||||||||
| sco += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][2]) { | ||||||||||||||||||||||||
| hon += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][3]) { | ||||||||||||||||||||||||
| ve += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][4]) { | ||||||||||||||||||||||||
| ter += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][18]) { | ||||||||||||||||||||||||
| sgt++; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][19]) { | ||||||||||||||||||||||||
| vet_sgt++; | ||||||||||||||||||||||||
| } else if (unit.role() == "Codiciery") { | ||||||||||||||||||||||||
| codi += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == "Lexicanum") { | ||||||||||||||||||||||||
| lexi += 1; | ||||||||||||||||||||||||
| } else if (unit.role() == obj_ini.role[100][eROLE.ANCIENT]) { | ||||||||||||||||||||||||
| champ += 1; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (man[f]=="man"){ | ||||||||||||||||||||||||
| manz+=1; | ||||||||||||||||||||||||
| if (unit.role()==_roles[5]) { cap+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[15]) { apo+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[14]) { chap+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[17]) { lib+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[16]) { tech+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[6]) { drea+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==$"Venerable {_roles[6]}"){ vdrea+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[11]) { bear+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[8]) { tct+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[10]) { assa+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[9]) { dev+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[12]) { sco+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[2]) { hon+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[3]) { ve+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[4]) { ter+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[18]) { sgt++;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[19]) { vet_sgt++;} | ||||||||||||||||||||||||
| else if (unit.role()=="Codiciery") { codi+=1;} | ||||||||||||||||||||||||
| else if (unit.role()=="Lexicanum") { lexi+=1;} | ||||||||||||||||||||||||
| else if (unit.role()==_roles[eROLE.ANCIENT]) { champ+=1;} | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| // sets up count for the vehicles | ||||||||||||||||||||||||
| // TODO This needs to be extended to accomodate the selection text like the man ones | ||||||||||||||||||||||||
|
|
@@ -100,26 +80,25 @@ if ((menu == 1) && (managing > 0)) { | |||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| selecting_dudes = ""; | ||||||||||||||||||||||||
| // Infantry text | ||||||||||||||||||||||||
| if (cap > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(cap) + " " + string(obj_ini.role[100][5]); | ||||||||||||||||||||||||
| if (cap > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (chap > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(chap) + " " + string(obj_ini.role[100][14]); | ||||||||||||||||||||||||
| if (chap > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (champ > 0) { | ||||||||||||||||||||||||
| selecting_dudes += $"{champ} {obj_ini.role[100][eROLE.ANCIENT]}"; | ||||||||||||||||||||||||
| if (chap > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| if (cap>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(cap)+" "+string(_roles[5]); | ||||||||||||||||||||||||
| if (cap>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (chap>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(chap)+" "+string(_roles[14]); | ||||||||||||||||||||||||
| if (chap>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (champ>0){ | ||||||||||||||||||||||||
| selecting_dudes+=$"{champ} {_roles[eROLE.ANCIENT]}"; | ||||||||||||||||||||||||
| if (chap>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (apo>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(apo)+" "+string(_roles[15]); | ||||||||||||||||||||||||
| if (apo>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (apo > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(apo) + " " + string(obj_ini.role[100][15]); | ||||||||||||||||||||||||
|
|
@@ -142,26 +121,20 @@ if ((menu == 1) && (managing > 0)) { | |||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (lexi > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(lexi) + " Lexicanum"; | ||||||||||||||||||||||||
| if (lexi > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| if (bear>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(bear)+" "+string(_roles[11]); | ||||||||||||||||||||||||
| if (bear>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (bear > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(bear) + " " + string(obj_ini.role[100][11]); | ||||||||||||||||||||||||
| if (bear > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| if (hon>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(hon)+" "+string(_roles[2]); | ||||||||||||||||||||||||
| if (hon>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (hon > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(hon) + " " + string(obj_ini.role[100][2]); | ||||||||||||||||||||||||
| if (hon > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| if (tech>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(tech)+" "+string(_roles[16]); | ||||||||||||||||||||||||
| if (tech>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (tech > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(tech) + " " + string(obj_ini.role[100][16]); | ||||||||||||||||||||||||
|
|
@@ -170,69 +143,46 @@ if ((menu == 1) && (managing > 0)) { | |||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (ter > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(ter) + " Terminator"; | ||||||||||||||||||||||||
| if (ter > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (ve > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(ve) + " " + string(obj_ini.role[100][3]); | ||||||||||||||||||||||||
| if (ve > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (tct > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(tct) + " " + string(obj_ini.role[100][8]); | ||||||||||||||||||||||||
| if (tct > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (dev > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(dev) + " " + string(obj_ini.role[100][9]); | ||||||||||||||||||||||||
| if (dev > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (assa > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(assa) + " " + string(obj_ini.role[100][eROLE.ASSAULT]); | ||||||||||||||||||||||||
| if (sgt > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (sco > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(sco) + " " + string(obj_ini.role[100][12]); | ||||||||||||||||||||||||
| if (sco > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (drea > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(drea) + " " + string(obj_ini.role[100][6]); | ||||||||||||||||||||||||
| if (drea > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (sgt > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(sgt) + " " + string(obj_ini.role[100][18]); | ||||||||||||||||||||||||
| if (sgt > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (vet_sgt > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(vet_sgt) + " " + string(obj_ini.role[100][19]); | ||||||||||||||||||||||||
| if (vet_sgt > 1) { | ||||||||||||||||||||||||
| selecting_dudes += "s"; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| selecting_dudes += ", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (ve>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(ve)+" "+string(_roles[3]); | ||||||||||||||||||||||||
| if (ve>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (tct>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(tct)+" "+string(_roles[8]); | ||||||||||||||||||||||||
| if (tct>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (dev>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(dev)+" "+string(_roles[9]); | ||||||||||||||||||||||||
| if (dev>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (assa>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(assa)+" "+string(_roles[eROLE.ASSAULT]); | ||||||||||||||||||||||||
| if (sgt>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
Comment on lines
161
to
165
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Logic corruption in Assault pluralisation, Tech-Priest. The Machine Spirit perceives another transcription error. The block assembles text for 🔧 Proposed correction if (assa>0){
selecting_dudes+=string(assa)+" "+string(_roles[eROLE.Assault]);
- if (sgt>1) then selecting_dudes+="s";
+ if (assa>1) then selecting_dudes+="s";
selecting_dudes+=", ";
}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||
| if (sco>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(sco)+" "+string(_roles[12]); | ||||||||||||||||||||||||
| if (sco>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (drea>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(drea)+" "+string(_roles[6]); | ||||||||||||||||||||||||
| if (drea>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (sgt>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(sgt)+" "+string(_roles[18]); | ||||||||||||||||||||||||
| if (sgt>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (vet_sgt>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(vet_sgt)+" "+string(_roles[19]); | ||||||||||||||||||||||||
| if (vet_sgt>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| // Vehicle text | ||||||||||||||||||||||||
| if (lrad > 0) { | ||||||||||||||||||||||||
| selecting_dudes += string(lrad) + " Land Raider"; | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic corruption in Ancient pluralisation, Tech-Priest.
The Machine Spirit detects a transcription error. The block assembles text for
champ(Ancient count), yet line 77 inspectschap(Chaplain count) for pluralisation. This shall produce incorrect grammar when multiple Ancients are selected.🔧 Proposed correction
if (champ>0){ selecting_dudes+=$"{champ} {_roles[eROLE.Ancient]}"; - if (chap>1) then selecting_dudes+="s"; + if (champ>1) then selecting_dudes+="s"; selecting_dudes+=", "; }🤖 Prompt for AI Agents