add some extra assets FX and SFX

This commit is contained in:
Robii Aragon
2026-03-29 23:03:14 -07:00
parent 6ef3eb1535
commit 24dc66a81e
10142 changed files with 2535978 additions and 36608 deletions

View File

@@ -749,8 +749,16 @@ public class pickUpObject : MonoBehaviour
}
}
playerInventoryManager.setCurrentPickupGameObject (gameObject);
inventoryAmountPicked = playerInventoryManager.tryToPickUpObject (inventoryObjectManager.inventoryObjectInfo);
if (ignoreMessagesAndDestroyPickupActiveState) {
removePickupFromLevel ();
return false;
}
if (showDebugPrint) {
print ("pickup amount " + inventoryAmountPicked);
}
@@ -763,7 +771,11 @@ public class pickUpObject : MonoBehaviour
return true;
} else {
playerInventoryManager.showInventoryFullMessage ();
if (!playerInventoryManager.isIgnoreMaximumObjectAmountActive () && inventoryObjectManager.inventoryObjectInfo.setMaximumObjectAmount) {
playerInventoryManager.showMaxObjectAmountReachedMessage (inventoryObjectManager.inventoryObjectInfo.Name);
} else {
playerInventoryManager.showInventoryFullMessage ();
}
}
} else {
playerInventoryManager.showInventoryFullMessage ();
@@ -772,6 +784,13 @@ public class pickUpObject : MonoBehaviour
return false;
}
bool ignoreMessagesAndDestroyPickupActiveState;
public void setIgnoreMessagesAndDestroyPickupActiveState (bool state)
{
ignoreMessagesAndDestroyPickupActiveState = state;
}
public void setDurabilityInfo (bool state, float newDurabilityAmount, float newMaxDurabilityAmount)
{
useDurability = state;