This commit is contained in:
myondev 2026-02-08 01:31:45 -08:00
parent e30de274c8
commit 63e5e950de

View file

@ -1,5 +1,6 @@
using Core.Extensions; using Core.Extensions;
using UnityEngine; using UnityEngine;
using System.Collections.Generic;
public class Enemy : Entity public class Enemy : Entity
{ {
@ -14,6 +15,15 @@ public class Enemy : Entity
public float strafePercent; public float strafePercent;
private float xSign = -1f; private float xSign = -1f;
private float ySign = 1f; private float ySign = 1f;
[System.Serializable]
public class UpgradeDrop
{
public AbilityUpgrade droppedUpgrade;
public float chance;
}
[Header("Drops")]
public List<UpgradeDrop> possibleDrops = new();
private void Start() private void Start()
{ {
if (Random.Range(0f, 2f) > 1f) if (Random.Range(0f, 2f) > 1f)
@ -61,4 +71,9 @@ public class Enemy : Entity
{ {
Destroy(gameObject); Destroy(gameObject);
} }
protected virtual void DropUpgrade()
{
float random;
}
} }