adding in some needed packages

This commit is contained in:
reisenlol 2026-01-02 01:31:54 -08:00
parent 9e739f5dc8
commit aba5310742
No known key found for this signature in database
1012 changed files with 494191 additions and 1 deletions

View file

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 99721a9f0c03ff24c9539ba21af6d530
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View file

@ -0,0 +1,30 @@
using Core.Extensions;
using UnityEngine;
namespace Bremsengine
{
public class UnitDamageScaler : MonoBehaviour
{
#region Boring stuff
private void ResetOnAwake()
{
storedDamageScale = -1f;
}
private float buildPower => storedDamageScale <= 0f ? storedDamageScale = (power.Max(100f) * 0.01f).Max(1f) : storedDamageScale;
float storedDamageScale = -1f;
#endregion
[SerializeField] private float power = 100f;
public float ExternalDamageScale = 1f;
public float DamageScale => buildPower * ExternalDamageScale;
public void AddPower(float power) => this.power += power;
private void Awake()
{
ResetOnAwake();
}
public float Rebuild()
{
storedDamageScale = -1f;
return buildPower;
}
}
}

View file

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