i believe my pc has been set ablaze

This commit is contained in:
Sylvia 2026-03-28 01:28:23 -07:00
parent 24ab1b213e
commit c67146ea1a
10 changed files with 178 additions and 123 deletions

View file

@ -48,13 +48,13 @@ public class PlayerAbility : MonoBehaviour
}
}
public void AddUpgrade(AbilityUpgrade upgrade)
public void AddUpgrade(AbilityUpgrade upgrade, int amount)
{
if (!attachedUpgrades.ContainsKey(upgrade))
{
attachedUpgrades[upgrade] = 0;
}
attachedUpgrades[upgrade]++;
attachedUpgrades[upgrade] += amount;
upgrade.ApplyUpgrade(this);
}