From 63e5e950ded97b23fb6c7447bcc3fe7cea41656e Mon Sep 17 00:00:00 2001 From: myondev Date: Sun, 8 Feb 2026 01:31:45 -0800 Subject: [PATCH] wow --- Assets/Scripts/Enemy.cs | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Enemy.cs b/Assets/Scripts/Enemy.cs index 15daf00..05eeace 100644 --- a/Assets/Scripts/Enemy.cs +++ b/Assets/Scripts/Enemy.cs @@ -1,5 +1,6 @@ using Core.Extensions; using UnityEngine; +using System.Collections.Generic; public class Enemy : Entity { @@ -14,8 +15,17 @@ public class Enemy : Entity public float strafePercent; private float xSign = -1f; private float ySign = 1f; - private void Start() + + [System.Serializable] + public class UpgradeDrop { + public AbilityUpgrade droppedUpgrade; + public float chance; + } + [Header("Drops")] + public List possibleDrops = new(); + private void Start() + { if (Random.Range(0f, 2f) > 1f) { xSign = -xSign; @@ -61,4 +71,9 @@ public class Enemy : Entity { Destroy(gameObject); } + + protected virtual void DropUpgrade() + { + float random; + } }