OpenFusion/src/Combat.hpp

30 lines
503 B
C++
Raw Normal View History

#pragma once
#include "core/Core.hpp"
#include "servers/CNShardServer.hpp"
#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-11 14:26:57 +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-11 14:26:57 +00:00
void genQItemRolls(Player* leader, std::map<int, int>& rolls);
}