-
Notifications
You must be signed in to change notification settings - Fork 739
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
Arsenal - Make ACE_asItem and ACE_isUnique apply to CfgWeapons #10366
Conversation
Seems like some part of this breaks painkillers, as they no longer appear in the arsenal in either the medical tab or misc items tab. I'll take another look in the morning |
Realized I should denote it here, but Grim might have had a different idea, and that I should remind him when 3.18.1 is being looked at |
4fabf5c
to
2f73da7
Compare
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Validate reports missing 161 {
162 _magazineMiscItems set [configName _x, nil];
163 } forEach (toString {_x call FUNC(isMiscItem)} configClasses _cfgMagazines); |
It's because of the code block. It's fine and the ; will actually make it not work |
it's |
Reading is hard |
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
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.
Spare Barrels and Painkillers aren't being shown under Misc Items, so this breaks magazines.
Though, ace_arsenal_fnc_isMiscItem
returns true for both.
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
Thought about this, maybe optional param for config for the item? I.e. ["someMag", configFile >> "CfgMagazines"] call ace_arsenal_fnc_isMiscItem; Saves the call to getItemConfig. It also would get around potentially getting the wrong config path back if there's same class names in different root classes |
Optimize for string and cache it, we make enough lookups for it to be worth it anyway. |
I might mess with it later tonight, no guarantee though |
Not fully fixed, as painkillers still show in the misc item tab instead of medical.
|
Test Mission with two arsenals. One full and one limited (there are placed comments with details) |
Open Zeus, go to props/empty side units, search for intel > place a document/photo |
More tests:
These could be in a test script if we cared enough (at least we can check if they're sorted into the right buckets, interface would still need manual checking) I guess @johnb432 ? |
Never even knew ACE handled these, TIL. |
They fall into the category of items this PR was made for, which is non-CBA, non-special, CfgWeapons misc items. Adding |
I'll add it to those classes then. Should they be modified in arsenal itself or another addon? I assume arsenal, but figured I'd check beforehand. |
Arsenal |
inb4 "the chemical detector you guys added doesn't do anything" |
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com> Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
When merged this pull request will:
simulation
/type
alone makes them work correctly, but they don't show as misc items since they do not inherit fromCBA_MiscItem
.IMPORTANT
Component - Add|Fix|Improve|Change|Make|Remove {changes}
.