2021-03-13 22:55:16 +00:00
|
|
|
#pragma once
|
|
|
|
|
2021-03-17 19:07:40 +00:00
|
|
|
#include "core/Core.hpp"
|
|
|
|
#include "servers/CNShardServer.hpp"
|
2021-03-13 22:55:16 +00:00
|
|
|
#include "MobAI.hpp"
|
|
|
|
|
|
|
|
#include "JSON.hpp"
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <unordered_map>
|
|
|
|
#include <queue>
|
|
|
|
|
|
|
|
struct Bullet {
|
|
|
|
int pointDamage;
|
|
|
|
int groupDamage;
|
|
|
|
bool weaponBoost;
|
|
|
|
int bulletType;
|
|
|
|
};
|
|
|
|
|
2022-04-13 04:23:53 +00:00
|
|
|
|
|
|
|
|
2021-03-13 22:55:16 +00:00
|
|
|
namespace Combat {
|
|
|
|
extern std::map<int32_t, std::map<int8_t, Bullet>> Bullets;
|
|
|
|
|
|
|
|
void init();
|
|
|
|
|
|
|
|
void npcAttackPc(Mob *mob, time_t currTime);
|
2022-04-23 19:58:08 +00:00
|
|
|
void genQItemRolls(std::vector<Player*> players, std::map<int, int>& rolls);
|
2021-03-13 22:55:16 +00:00
|
|
|
}
|