spell refactor part - assets and prefabs

This commit is contained in:
2026-01-22 14:54:35 +01:00
parent 1beff44ada
commit 013dca60a5
36 changed files with 773 additions and 1034 deletions

View File

@@ -233,7 +233,16 @@ namespace Beyond {
if (m_currentItem.type == bItemType.QuantaPower || m_currentItem.type == bItemType.PowerScroll)
{
Player.Instance.Magic.SelectPowerBasedOnArea(currentIndex);
// --- FIX STARTS HERE ---
// Old logic: Player.Instance.Magic.SelectPowerBasedOnArea(currentIndex);
// New Logic: Directly tell the equipment area to select this slot.
// MagicAttacks automatically looks at whatever is equipped in this area.
if (equipArea != null)
{
equipArea.SetEquipSlot(currentIndex);
}
// --- FIX ENDS HERE ---
if (!InputNameToPress.IsNullOrWhitespace())
{
CrossPlatformInputManager.SetButtonDown(InputNameToPress);
@@ -263,5 +272,4 @@ namespace Beyond {
isLocked = false;
}
}
}
}