-
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
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 | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,6 +10,7 @@ if (menu==1) and (managing>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){ | ||||||||||||||||||||||||
|
|
@@ -25,26 +26,26 @@ if (menu==1) and (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++;} | ||||||||||||||||||||||||
| 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()==obj_ini.role[100][eROLE.Ancient]) { champ+=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 | ||||||||||||||||||||||||
|
|
@@ -62,22 +63,22 @@ if (menu==1) and (managing>0){ | |||||||||||||||||||||||
| selecting_dudes=""; | ||||||||||||||||||||||||
| // Infantry text | ||||||||||||||||||||||||
| if (cap>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(cap)+" "+string(obj_ini.role[100][5]); | ||||||||||||||||||||||||
| selecting_dudes+=string(cap)+" "+string(_roles[5]); | ||||||||||||||||||||||||
| if (cap>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (chap>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(chap)+" "+string(obj_ini.role[100][14]); | ||||||||||||||||||||||||
| selecting_dudes+=string(chap)+" "+string(_roles[14]); | ||||||||||||||||||||||||
| if (chap>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (champ>0){ | ||||||||||||||||||||||||
| selecting_dudes+=$"{champ} {obj_ini.role[100][eROLE.Ancient]}"; | ||||||||||||||||||||||||
| selecting_dudes+=$"{champ} {_roles[eROLE.Ancient]}"; | ||||||||||||||||||||||||
| if (chap>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (apo>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(apo)+" "+string(obj_ini.role[100][15]); | ||||||||||||||||||||||||
| selecting_dudes+=string(apo)+" "+string(_roles[15]); | ||||||||||||||||||||||||
| if (apo>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
@@ -97,17 +98,17 @@ if (menu==1) and (managing>0){ | |||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (bear>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(bear)+" "+string(obj_ini.role[100][11]); | ||||||||||||||||||||||||
| selecting_dudes+=string(bear)+" "+string(_roles[11]); | ||||||||||||||||||||||||
| if (bear>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (hon>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(hon)+" "+string(obj_ini.role[100][2]); | ||||||||||||||||||||||||
| selecting_dudes+=string(hon)+" "+string(_roles[2]); | ||||||||||||||||||||||||
| if (hon>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (tech>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(tech)+" "+string(obj_ini.role[100][16]); | ||||||||||||||||||||||||
| selecting_dudes+=string(tech)+" "+string(_roles[16]); | ||||||||||||||||||||||||
| if (tech>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
@@ -117,42 +118,42 @@ if (menu==1) and (managing>0){ | |||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (ve>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(ve)+" "+string(obj_ini.role[100][3]); | ||||||||||||||||||||||||
| selecting_dudes+=string(ve)+" "+string(_roles[3]); | ||||||||||||||||||||||||
| if (ve>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (tct>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(tct)+" "+string(obj_ini.role[100][8]); | ||||||||||||||||||||||||
| selecting_dudes+=string(tct)+" "+string(_roles[8]); | ||||||||||||||||||||||||
| if (tct>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (dev>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(dev)+" "+string(obj_ini.role[100][9]); | ||||||||||||||||||||||||
| selecting_dudes+=string(dev)+" "+string(_roles[9]); | ||||||||||||||||||||||||
| if (dev>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (assa>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(assa)+" "+string(obj_ini.role[100][eROLE.Assault]); | ||||||||||||||||||||||||
| selecting_dudes+=string(assa)+" "+string(_roles[eROLE.Assault]); | ||||||||||||||||||||||||
| if (sgt>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
Comment on lines
135
to
139
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(obj_ini.role[100][12]); | ||||||||||||||||||||||||
| selecting_dudes+=string(sco)+" "+string(_roles[12]); | ||||||||||||||||||||||||
| if (sco>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (drea>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(drea)+" "+string(obj_ini.role[100][6]); | ||||||||||||||||||||||||
| selecting_dudes+=string(drea)+" "+string(_roles[6]); | ||||||||||||||||||||||||
| if (drea>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
| if (sgt>0){ | ||||||||||||||||||||||||
| selecting_dudes+=string(sgt)+" "+string(obj_ini.role[100][18]); | ||||||||||||||||||||||||
| 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(obj_ini.role[100][19]); | ||||||||||||||||||||||||
| selecting_dudes+=string(vet_sgt)+" "+string(_roles[19]); | ||||||||||||||||||||||||
| if (vet_sgt>1) then selecting_dudes+="s"; | ||||||||||||||||||||||||
| selecting_dudes+=", "; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,6 @@ | ||
| global.name_generator = new NameGenerator(); | ||
|
|
||
| var _star_arrays = []; | ||
| ds_map_values_to_array(global.star_sprites,_star_arrays); | ||
|
|
||
| for (var i=0;i<array_length(_star_arrays);i++){ | ||
| if (sprite_exists(_star_arrays[i])){ | ||
| sprite_delete(_star_arrays[i]); | ||
| } | ||
| } | ||
| empty_ds_map(global.star_sprites); | ||
|
|
||
| ds_map_clear(global.star_sprites); | ||
| empty_ds_map(global.en_fleet_sprites); |
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