Skip to content

Commit 9e01e91

Browse files
authored
feat: Edit Breacher and Bike squads (#557)
1 parent 7f00046 commit 9e01e91

2 files changed

Lines changed: 30 additions & 62 deletions

File tree

scripts/scr_initialize_custom/scr_initialize_custom.gml

Lines changed: 24 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,115 +1997,83 @@ function scr_initialize_custom() {
19971997
}
19981998
if (scr_has_adv("Lightning Warriors")) {
19991999
variable_struct_set(st, "bikers", [
2000-
[roles.tactical, {
2000+
[roles.assault, {
20012001
"max": 9,
20022002
"min": 4,
20032003
"loadout": { //tactical marine
20042004
"required": {
2005-
"wep1": [wep1[100, 8], 6],
2006-
"wep2": [wep2[100, 8], 6],
2005+
"wep1": ["", max],
2006+
"wep2": ["Chainsword", max],
20072007
"mobi": ["Bike", max]
2008-
},
2009-
"option": {
2010-
"wep1": [
2011-
[
2012-
weapon_lists.special_weapons, 3
2013-
],
2014-
],
2015-
"wep2": [
2016-
[
2017-
weapon_lists.melee_weapons, 3
2018-
],
2019-
],
20202008
}
20212009
},
2022-
"role": $"{roles.tactical} Biker"
2010+
"role": $"Biker"
20232011
}],
20242012
[roles.sergeant, {
20252013
"max": 1,
20262014
"min": 1,
20272015
"loadout": { //sergeant
20282016
"required": {
2029-
"wep1": ["", 0],
2030-
"wep2": ["Chainsword", 1],
2017+
"wep1": ["", max],
2018+
"wep2": ["Chainsword", max],
20312019
"mobi": ["Bike", 1]
2032-
},
2033-
"option": {
2034-
"wep1": [
2035-
[
2036-
weapon_lists.pistols, 1
2037-
],
2038-
],
2039-
"wep2": [
2040-
[
2041-
weapon_lists.melee_weapons, 1
2042-
],
2043-
],
20442020
}
20452021
},
2046-
"role": $"{roles.tactical} Bike {roles.sergeant}"
2022+
"role": $"Biker {roles.sergeant}"
20472023
}, ],
20482024
["type_data", {
2049-
"display_data": $"{roles.tactical} Bike {squad_name}",
2025+
"display_data": $"Bike {squad_name}",
20502026
"class":["bike"],
2051-
"formation_options": ["tactical", "assault", "devastator", "scout"],
2027+
"formation_options": ["assault", "tactical"],
20522028
}]
20532029
])
20542030
}
20552031
if (scr_has_adv("Boarders")) {
20562032
variable_struct_set(st, "breachers", [
2057-
[roles.assault, {
2033+
[roles.tactical, {
20582034
"max": 9,
20592035
"min": 4,
2060-
"loadout": { //assault breacher marine
2036+
"loadout": { //tactical breacher marine
20612037
"required": {
2062-
"wep1":["Chainaxe", 4],
2038+
"wep1":[wep1[100, 8], 7],
20632039
"wep2":["Boarding Shield", max],
20642040
"armour":["MK3 Iron Armour", max],
2065-
"gear":["Plasma Bomb", 2],
2041+
"gear":["Plasma Bomb", max],
20662042
"mobi":["", max]
20672043
},
20682044
"option": {
20692045
"wep1": [
20702046
[
2071-
["Storm Bolter", "Combiflamer", "Meltagun"], 3,
2047+
["Flamer", "Grav-Gun", "Meltagun", "Lascutter"], 2,
20722048
],
2073-
[
2074-
["Power Axe", "Power Fist"], 2
2075-
]
2076-
20772049
]
20782050
}
20792051
},
2080-
"role": $"{roles.assault} Breacher"
2052+
"role": $"Breacher"
20812053
}],
20822054
[roles.sergeant, {
20832055
"max": 1,
20842056
"min": 1,
20852057
"loadout": { //sergeant
20862058
"required": {
2087-
"armour":["MK3 Iron Armour", 1],
2088-
"mobi": ["",1],
2089-
"gear": ["Plasma Bomb", 1]
2059+
"wep2":["Boarding Shield", max],
2060+
"armour":["MK3 Iron Armour", max],
2061+
"mobi": ["", max],
2062+
"gear": ["Plasma Bomb", max]
20902063
},
20912064
"option": {
20922065
"wep1": [
20932066
[
2094-
["Power Sword", "Power Axe", "Power Fist", "Thunder Hammer", "Chainsword"], 1
2067+
["Bolter", "Bolter", "Bolter", "Combiflamer"], 1
20952068
]
20962069
],
2097-
"wep2": [
2098-
[
2099-
["Boarding Shield", "Storm Bolter", "Meltagun"], 1
2100-
]
2101-
]
21022070
}
21032071
},
2104-
"role": $"{roles.assault} Breacher {roles.sergeant}"
2072+
"role": $"Breacher {roles.sergeant}"
21052073
}, ],
21062074
["type_data", {
2107-
"display_data": $"{roles.assault} Breacher {squad_name}",
2108-
"formation_options": ["tactical", "assault", "devastator", "scout"],
2075+
"display_data": $"Breacher {squad_name}",
2076+
"formation_options": ["tactical"],
21092077
}]
21102078
])
21112079
variable_struct_set(st,"assault_squad", [
@@ -2157,7 +2125,7 @@ function scr_initialize_custom() {
21572125
}],
21582126
["type_data", {
21592127
"display_data": $"{roles.assault} {squad_name}",
2160-
"formation_options": ["tactical", "assault", "devastator", "scout"],
2128+
"formation_options": ["assault"],
21612129
}]
21622130
])
21632131
}

scripts/scr_squads/scr_squads.gml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -651,14 +651,14 @@ function game_start_squads(){
651651
create_squad("command_squad", company);
652652
last_squad_count = array_length(obj_ini.squads);
653653
while (last_squad_count == array_length(obj_ini.squads)){ ///keep making tact squads for as long as there are enough tact marines
654-
if (scr_has_adv("Lightning Warriors")) {
654+
if (scr_has_adv("Boarders")) {
655655
last_squad_count = (array_length(obj_ini.squads) + 1);
656656
if(last_squad_count%2 == 0){
657657
create_squad("tactical_squad", company);
658658
}else{
659-
create_squad("bikers", company);
659+
create_squad("breachers", company);
660660
}
661-
}else{
661+
} else {
662662
last_squad_count = (array_length(obj_ini.squads) + 1);
663663
create_squad("tactical_squad", company);
664664
}
@@ -670,14 +670,14 @@ function game_start_squads(){
670670
}
671671
last_squad_count = array_length(obj_ini.squads);
672672
while (last_squad_count == array_length(obj_ini.squads)){
673-
if (scr_has_adv("Boarders")) {
673+
if (scr_has_adv("Lightning Warriors")) {
674674
last_squad_count = (array_length(obj_ini.squads) + 1);
675675
if(last_squad_count%2 == 0){
676676
create_squad("assault_squad", company);
677677
}else{
678-
create_squad("breachers", company);
678+
create_squad("bikers", company);
679679
}
680-
}else{
680+
} else {
681681
last_squad_count = (array_length(obj_ini.squads) + 1);
682682
create_squad("assault_squad", company);
683683
}

0 commit comments

Comments
 (0)