Add Better Info Panel and Display Damage to Abilities

This commit is contained in:
Kam committed 2026-03-03 16:32:16 -05:00
1 parent d9f100d245
commit 6f6e080ee0
17 files changed
+226 -14

No files matched your search

@@ -302,6 +302,26 @@ public abstract class Ability implements IAbility, IAbilityAction {
return hasDamage();
}
// ── Display methods for inventory preview ──────────────────────
/** Base damage for preview display. Override in damaging types. */
public float getDisplayDamage() { return 0; }
/** True if getDisplayDamage() is damage-per-second (e.g., Hazard). */
public boolean isDisplayDamageDPS() { return false; }
/** Base barrier health for preview display. Override in barrier types. */
public float getDisplayBarrierHealth() { return 0; }
/** True if this ability reflects projectiles. */
public boolean isDisplayReflect() { return false; }
/** Reflection strength percentage (0-100). */
public float getDisplayReflectStrength() { return 0; }
/** True if this ability absorbs projectiles. */
public boolean isDisplayAbsorbing() { return false; }
/**
* Override to provide variant templates for this ability type.
* When a user creates this ability type, they will be shown a selection dialog