[Interactions] Pulver now swaps, slots and combines items

This commit is contained in:
Michal Pikulski
2025-09-04 14:24:28 +02:00
parent 0caf0d5209
commit 05a8a5445f
13 changed files with 612 additions and 4 deletions

View File

@@ -276,6 +276,12 @@ public class FollowerController : MonoBehaviour
var pickup = hit.GetComponent<Pickup>();
if (pickup != null)
{
var slotBehavior = pickup.GetComponent<SlotItemBehavior>();
if (slotBehavior != null)
{
// Slot item: do not destroy or swap, just return to player
break;
}
if (justCombined)
{
// Combination: just destroy the pickup, don't spawn anything