<commit_before>// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
//	@file Name: fn_isObjectSaveable.sqf
//	@file Author: AgentRev

private ["_obj", "_class"];
_obj = _this;
_class = typeOf _obj;

#include "functions.sqf"

(alive _obj &&
{((_obj getVariable ["objectLocked", false] || {!isNil {_obj getVariable "A3W_objectID"} && {_savingMethod == "extDB" && ["A3W_extDB_SaveUnlockedObjects"] call isConfigOn}}) &&
   {(_baseSavingOn && {_class call _isSaveable}) ||
    (_boxSavingOn && {_class call _isBox}) ||
    (_staticWeaponSavingOn && {_class call _isStaticWeapon})}) ||
{_warchestSavingOn && {_obj call _isWarchest}} ||
{_beaconSavingOn && {_obj call _isBeacon}}})
<commit_msg>lil fix (by @AgentREV)<commit_after>// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
//	@file Name: fn_isObjectSaveable.sqf
//	@file Author: AgentRev

private ["_obj", "_class"];
_obj = _this;
_class = typeOf _obj;

#include "functions.sqf"

(alive _obj &&
{((_obj getVariable ["objectLocked", false] || {!isNil {_obj getVariable "A3W_objectID"} && {_savingMethod == "extDB"}) &&
   {(_baseSavingOn && {_class call _isSaveable}) ||
    (_boxSavingOn && {_class call _isBox}) ||
    (_staticWeaponSavingOn && {_class call _isStaticWeapon})}) ||
{_warchestSavingOn && {_obj call _isWarchest}} ||
{_beaconSavingOn && {_obj call _isBeacon}}})

{'fraction_non_alphanumeric': 0.3320290665176076, 'fraction_numerical': 0.008384572386808273, 'mean_word_length': 6.5210084033613445, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7313496', 'n_tokens_mistral': 570, 'n_tokens_neox': 539, 'n_words': 132}