Skip to content
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

Common - Use canAdd for FUNC(addToInventory) #9830

Merged
merged 3 commits into from
Oct 15, 2024

Conversation

LinkIsGrim
Copy link
Contributor

@LinkIsGrim LinkIsGrim commented Mar 6, 2024

When merged this pull request will:

  • Title.

Works alright, and arsenal already uses it on containers. This is faster and takes allowedSlots into account.

IMPORTANT

  • If the contribution affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
  • Development Guidelines are read, understood and applied.
  • Title of this PR uses our standard template Component - Add|Fix|Improve|Change|Make|Remove {changes}.

@johnb432
Copy link
Contributor

johnb432 commented Mar 6, 2024

Shouldn't we be using the 2.18 syntax everywhere, including individual container checks?

I can't get a clear picture from the discord messages related to the changes (https://discord.com/channels/105462288051380224/108187245529268224/1193267882751176785) and the wiki page (https://community.bistudio.com/wiki/canAdd), but the feeling I'm getting is that we should.

EDIT: No, above isn't a concern.

@johnb432 johnb432 self-requested a review June 6, 2024 12:01
@johnb432 johnb432 added the kind/optimization Release Notes: **IMPROVED:** label Oct 13, 2024
@johnb432 johnb432 added this to the 3.18.2 milestone Oct 13, 2024
@PabstMirror PabstMirror merged commit fa647c8 into master Oct 15, 2024
3 of 4 checks passed
@PabstMirror PabstMirror deleted the common-addToInventory-use-canAdd branch October 15, 2024 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/optimization Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants