Skip to content

Commit d53f0b9

Browse files
authored
fix: Rhino missing HK missile armament (Adeptus-Dominus#472)
1 parent b9cd8c7 commit d53f0b9

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

scripts/scr_get_item_names/scr_get_item_names.gml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,15 @@ function push_rhino_weapons_item_names(_item_names) {
262262
_item_names[@ index++] = "HK Missile"; // 5
263263
}
264264

265+
function push_rhino_side_item_names(_item_names) {
266+
var item_count = 1;
267+
var initial_size = array_length(_item_names);
268+
array_resize(_item_names, initial_size + item_count);
269+
270+
var index = initial_size;
271+
_item_names[@ index++] = "HK Missile";
272+
}
273+
265274
/// @description This function appends the list of predator turret weapons to the given list.
266275
/// @param {array} _item_names - The list to append to.
267276
/// @returns {void}
@@ -545,6 +554,7 @@ function get_slot_name(_role, _slot) {
545554
case eROLE.Rhino:
546555
switch (_slot) {
547556
case 1: return "Weapon";
557+
case 2: return "Side";
548558
case 4: return "Upgrade";
549559
case 5: return "Accessory";
550560
default: return "Unknown";
@@ -845,9 +855,9 @@ function scr_get_item_names(_item_names, _role, _slot, _engagement, _include_com
845855
get_none_or_any_item_names(_item_names, _with_none_if_not_skip, false);
846856
switch (_slot) {
847857
case 1: push_rhino_weapons_item_names(_item_names); break;
858+
case 2: push_rhino_side_item_names(_item_names); break;
848859
case 4: push_tank_upgrade_item_names(_item_names, false); break;
849860
case 5: push_tank_accessory_item_names(_item_names, false, false); break;
850-
case 2:
851861
case 3:
852862
// Rhino doesn't have these slots, but empty lists are shown in the UI
853863
break;

0 commit comments

Comments
 (0)