mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 14:19:49 +00:00
Add Better Info Panel and Display Damage to Abilities
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user