the scarlet police have me at gun point

This commit is contained in:
Sylvia 2026-03-06 02:22:51 -08:00
parent b964c9b617
commit d6da52fd69
54 changed files with 674 additions and 55 deletions

View file

@ -5,8 +5,8 @@ public class AbilityUpgrade : ScriptableObject
[Header("Identification")]
public string upgradeName;
public Sprite upgradeIcon;
[Header("Stats")]
public PlayerAbility thisPlayerAbility;
[Header("Stats")]
[SerializeField] private string hi; //never use this lol it's just for the header
public void ApplyUpgrade(PlayerAbility abilityToUpgrade)
{

View file

@ -1,11 +0,0 @@
using UnityEngine;
public class AttackSpeedUpgrade : AbilityUpgrade
{
[SerializeField] private float speedUpgradeAmount;
protected override void UpgradeEffects(PlayerAbility abilityToUpgrade)
{
thisPlayerAbility.cooldown *= speedUpgradeAmount;
}
}

View file

@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 8cf716a335ed64e9c9c64a9e934acbd8

View file

@ -0,0 +1,13 @@
using System;
using UnityEngine;
[CreateAssetMenu(fileName = "Cooldown Upgrade", menuName = "AbilityUpgrades/CooldownUpgrade")]
public class CooldownUpgrade : AbilityUpgrade
{
[SerializeField] private float cooldownDifference;
protected override void UpgradeEffects(PlayerAbility abilityToUpgrade)
{
abilityToUpgrade.cooldown = abilityToUpgrade.baseCooldown * ((float)Math.Pow(cooldownDifference, abilityToUpgrade.attachedUpgrades[this])); //almost forgot my math there...
}
}

View file

@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: e80971b6dc38dd3bf84fc18ed9696f15

View file

@ -5,6 +5,7 @@ public class ProjectileCountUpgrade : AbilityUpgrade
{
protected override void UpgradeEffects(PlayerAbility abilityToUpgrade)
{
abilityToUpgrade.projectileCount++; //idk how this will work for the stacking.
abilityToUpgrade.projectileCount =
abilityToUpgrade.baseProjectileCount + abilityToUpgrade.attachedUpgrades[this];
}
}