CORE dashboard + a lot of changes

This commit is contained in:
2026-06-22 20:09:15 +02:00
parent 19d6bd934a
commit 89fa0b23b2
101 changed files with 1525 additions and 177 deletions
@@ -5,14 +5,16 @@ using RPGCore.BackpackEquipment.ObjectModules.UnitBackpack.Events;
using RPGCore.BackpackEquipment.Objects;
using RPGCore.Core;
using RPGCore.Core.Objects;
using RPGCoreCommon.Helpers.PropertyAttributeDrawers;
using UnityEngine;
namespace RPGCore.BackpackEquipment.ObjectModules.UnitBackpack
{
[RequireComponent(typeof(UnitObject))]
[RequireComponent(typeof(ContentModule))]
[DisallowMultipleComponent]
[ObjectModule(
name: "[Inventory] Backpack",
description: "Requires <b>ContentModule</b> to work. Simple backpack that can be attached to <b>UnitObject</b>."
)]
public sealed class UnitBackpackModule : ObjectModule<UnitObject>, IContentOwner
{
// TODO: implementacja stackowania tutaj
@@ -53,7 +55,7 @@ namespace RPGCore.BackpackEquipment.ObjectModules.UnitBackpack
bool IContentOwner.Add(ItemObject item, int index)
{
if (index < 0) index = Array.IndexOf(_items, false);
if (index < 0) index = Array.IndexOf(_items, null);
if (index < 0) return false;
if (isLimited && index >= itemsLimit) return false;