mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-20 05:34:22 +00:00
* feat: enemies now use weights on their attacks tested that 8 times out of 10, in close range, spiders did a web attack instead of a melee attack, vs the prior behavior of always following a pattern fixes #2002 * feedback
24 lines
654 B
C++
24 lines
654 B
C++
#pragma once
|
|
|
|
// Custom Classes
|
|
#include "CDTable.h"
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
struct CDObjectSkills {
|
|
uint32_t objectTemplate; //!< The LOT of the item
|
|
uint32_t skillID; //!< The Skill ID of the object
|
|
uint32_t castOnType; //!< ???
|
|
int32_t AICombatWeight; //!< ???
|
|
};
|
|
|
|
class CDObjectSkillsTable : public CDTable<CDObjectSkillsTable, std::vector<CDObjectSkills>> {
|
|
public:
|
|
void LoadValuesFromDatabase();
|
|
// Queries the table with a custom "where" clause
|
|
std::vector<CDObjectSkills> Query(std::function<bool(CDObjectSkills)> predicate);
|
|
std::vector<CDObjectSkills> Get(const LOT lot) const;
|
|
};
|
|
|