bug fixes from dedicated testing

This commit is contained in:
2024-02-06 20:56:42 -08:00
parent 8a27abe6c5
commit c44247061a
8 changed files with 55 additions and 17 deletions

View File

@@ -1,12 +1,14 @@
#include "..\script_component.hpp"
if ( !hasInterface ) exitWith {};
[
"17th Battalion",
QUOTE(MODULE_CATEGORY_NAME),
"Create Resupply Box",
{
params [["_pos", [0,0,0], [[]], 3], ["_target", objNull, [objNull]]];
// get parent definition
private _supplyCratesCfg = call milsim_resupply_fnc_getSupplyCratesCfg;
private _supplyCratesCfg = call EFUNC(resupply,getSupplyCratesCfg);
// get the subclass names
private _boxTypesAvailable = _supplyCratesCfg call BIS_fnc_getCfgSubClasses;
@@ -36,11 +38,17 @@ if ( !hasInterface ) exitWith {};
_args params ["_pos", "_target", "_keysSorted"];
private _box = [_target, _typeOptionSelected, _pos] call milsim_resupply_fnc_createBox;
private _box = [_target, _typeOptionSelected, _pos] call EFUNC(resupply,createBox);
if (isNull _box) exitWith {
["Resupply Box", "WARNING: Failed to locate or create box!"] call BIS_fnc_curatorHint;
};
["Resupply Box", format["Created box from class %1", _typeOptionSelected]] call BIS_fnc_curatorHint;
[
"Resupply Box",
format[
"Created %1",
getText((call EFUNC(resupply,getSupplyCratesCfg)) >> _typeOptionSelected >> "displayName")
]
] call BIS_fnc_curatorHint;
},
{},
[_pos, _target]
@@ -50,7 +58,7 @@ if ( !hasInterface ) exitWith {};
[
"17th Battalion",
QUOTE(MODULE_CATEGORY_NAME),
"Grounds Cleanup",
{
params [["_pos", [0,0,0], [[]], 3], ["_target", objNull, [objNull]]];