2025-02-24 16:08:22 -05:00
|
|
|
|
package noppes.npcs.attribute;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
2025-02-24 20:07:32 -05:00
|
|
|
|
* ModAttributes registers the core attributes (both non–magic and magic–based).
|
2025-02-24 16:08:22 -05:00
|
|
|
|
*/
|
|
|
|
|
|
public class ModAttributes {
|
2025-02-26 12:51:22 -05:00
|
|
|
|
public static AttributeDefinition MAIN_ATTACK_FLAT;
|
|
|
|
|
|
public static AttributeDefinition MAIN_ATTACK_PERCENT;
|
|
|
|
|
|
public static AttributeDefinition HEALTH;
|
|
|
|
|
|
public static AttributeDefinition CRITICAL_CHANCE_PERCENT;
|
|
|
|
|
|
public static AttributeDefinition CRITICAL_DAMAGE_FLAT;
|
2025-02-24 16:08:22 -05:00
|
|
|
|
|
2025-02-26 12:51:22 -05:00
|
|
|
|
public static AttributeDefinition MAGIC_DAMAGE_FLAT;
|
|
|
|
|
|
public static AttributeDefinition MAGIC_DAMAGE_PERCENT;
|
|
|
|
|
|
public static AttributeDefinition MAGIC_DEFENSE_FLAT;
|
|
|
|
|
|
public static AttributeDefinition MAGIC_RESISTANCE_PERCENT;
|
2025-02-24 20:07:32 -05:00
|
|
|
|
|
2025-02-26 12:51:22 -05:00
|
|
|
|
public ModAttributes(){
|
2025-02-25 16:46:05 -05:00
|
|
|
|
MAIN_ATTACK_FLAT = AttributeController.registerAttribute(AttributeKeys.MAIN_ATTACK_FLAT, "Main Attack Damage", AttributeValueType.FLAT);
|
2025-02-24 20:07:32 -05:00
|
|
|
|
MAIN_ATTACK_PERCENT = AttributeController.registerAttribute(AttributeKeys.MAIN_ATTACK_PERCENT, "Main Attack Damage (%)", AttributeValueType.PERCENT);
|
|
|
|
|
|
HEALTH = AttributeController.registerAttribute(AttributeKeys.HEALTH, "Health", AttributeValueType.FLAT);
|
|
|
|
|
|
CRITICAL_CHANCE_PERCENT = AttributeController.registerAttribute(AttributeKeys.CRITICAL_CHANCE_PERCENT, "Critical Chance (%)", AttributeValueType.PERCENT);
|
2025-02-25 16:46:05 -05:00
|
|
|
|
CRITICAL_DAMAGE_FLAT = AttributeController.registerAttribute(AttributeKeys.CRITICAL_DAMAGE_FLAT, "Critical Damage Bonus", AttributeValueType.FLAT);
|
2025-02-24 20:07:32 -05:00
|
|
|
|
|
2025-02-25 16:46:05 -05:00
|
|
|
|
MAGIC_DAMAGE_FLAT = AttributeController.registerAttribute(AttributeKeys.MAGIC_DAMAGE_FLAT, "Magic Damage", AttributeValueType.MAGIC);
|
2025-02-24 20:07:32 -05:00
|
|
|
|
MAGIC_DAMAGE_PERCENT = AttributeController.registerAttribute(AttributeKeys.MAGIC_DAMAGE_PERCENT, "Magic Damage (%)", AttributeValueType.MAGIC);
|
2025-02-25 16:46:05 -05:00
|
|
|
|
MAGIC_DEFENSE_FLAT = AttributeController.registerAttribute(AttributeKeys.MAGIC_DEFENSE_FLAT, "Magic Defense", AttributeValueType.MAGIC);
|
2025-02-24 20:07:32 -05:00
|
|
|
|
MAGIC_RESISTANCE_PERCENT = AttributeController.registerAttribute(AttributeKeys.MAGIC_RESISTANCE_PERCENT, "Magic Resistance (%)", AttributeValueType.MAGIC);
|
2025-02-24 16:08:22 -05:00
|
|
|
|
}
|
|
|
|
|
|
}
|