]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix `ItemSlotSystem` popup Logic (#28856)
authorBrandon Li <48413902+aspiringLich@users.noreply.github.com>
Sat, 2 Nov 2024 01:33:26 +0000 (21:33 -0400)
committerGitHub <noreply@github.com>
Sat, 2 Nov 2024 01:33:26 +0000 (20:33 -0500)
commit26194e2f416b9496d7ae25a4302bedfab22e9574
treecb2f08ca6824998549d914cc11f60c658bc305ab
parent146ae8a6a6f5d80cedbf76373bb1887e6f5d9218
Fix `ItemSlotSystem` popup Logic (#28856)

* move popup call out of `CanInsert` into `OnInteractUsing`

* im stupid and `reason` is completely unnecessary

Signed-off-by: Brandon Li <sirbrandonthenerd@gmail.com>
* return early when `itemSlots.Slots.Count == 0`

* tweak logic for triggering popups

* change popup logic again

* Consolidate whitelist check

* Get any popup message not just last failed slot

* Apply suggestions from code review

Co-authored-by: chromiumboy <50505512+chromiumboy@users.noreply.github.com>
* yoink

Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
---------

Signed-off-by: Brandon Li <sirbrandonthenerd@gmail.com>
Co-authored-by: ShadowCommander <10494922+ShadowCommander@users.noreply.github.com>
Co-authored-by: chromiumboy <50505512+chromiumboy@users.noreply.github.com>
Content.Shared/Containers/ItemSlot/ItemSlotsSystem.cs