mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-01 10:11:37 +00:00
Push
This commit is contained in:
@@ -414,6 +414,7 @@ namespace DatabaseSchema {
|
||||
"bot_spell_settings",
|
||||
"bot_spells_entries",
|
||||
"bot_stances",
|
||||
"bot_stat_caps",
|
||||
"bot_timers"
|
||||
};
|
||||
}
|
||||
|
||||
@@ -471,3 +471,13 @@ bool PetType::IsValid(uint8 pet_type)
|
||||
{
|
||||
return pet_types.find(pet_type) != pet_types.end();
|
||||
}
|
||||
|
||||
std::string StatCap::GetName(uint8 stat_id)
|
||||
{
|
||||
return IsValid(stat_id) ? stat_caps[stat_id] : "UNKNOWN STAT CAP";
|
||||
}
|
||||
|
||||
bool StatCap::IsValid(uint8 stat_id)
|
||||
{
|
||||
return stat_caps.find(stat_id) != stat_caps.end();
|
||||
}
|
||||
|
||||
@@ -942,6 +942,34 @@ namespace StatCap {
|
||||
constexpr uint8 Stat = 19;
|
||||
constexpr uint8 Strikethrough = 20;
|
||||
constexpr uint8 StunResist = 21;
|
||||
|
||||
static std::map<uint8, std::string> stat_caps = {
|
||||
{ Accuracy, "Accuracy" },
|
||||
{ Attack, "Attack" },
|
||||
{ Avoidance, "Avoidance" },
|
||||
{ Clairvoyance, "Clairvoyance" },
|
||||
{ CombatEffects, "Combat Effects" },
|
||||
{ DamageShield, "Damage Shield" },
|
||||
{ DOTShielding, "Damage Over Time Shielding" },
|
||||
{ DSMitigation, "Damage Shield Mitigation" },
|
||||
{ EnduranceRegen, "Endurance Regen" },
|
||||
{ ExtraDamage, "Extra Damage" },
|
||||
{ Haste, "Haste" },
|
||||
{ HasteV3, "Haste V3" },
|
||||
{ HealAmount, "Heal Amount" },
|
||||
{ HealthRegen, "Health Regen" },
|
||||
{ ManaRegen, "Mana Regen" },
|
||||
{ QuiverHaste, "Quiver Haste" },
|
||||
{ Shielding, "Shielding" },
|
||||
{ SpellDamage, "Spell Damage" },
|
||||
{ SpellShielding, "Spell Shielding" },
|
||||
{ Stat, "Stat" },
|
||||
{ Strikethrough, "Strikethrough" },
|
||||
{ StunResist, "Stun Resist" }
|
||||
};
|
||||
|
||||
std::string GetName(uint8 stat_id);
|
||||
bool IsValid(uint8 stat_id);
|
||||
}
|
||||
|
||||
#endif /*COMMON_EMU_CONSTANTS_H*/
|
||||
|
||||
Reference in New Issue
Block a user