mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 15:00:06 +00:00
31 lines
568 B
C++
31 lines
568 B
C++
|
#pragma once
|
||
|
|
||
|
#include "CNProtocol.hpp"
|
||
|
#include "CNShared.hpp"
|
||
|
#include "CNShardServer.hpp"
|
||
|
#include "NPC.hpp"
|
||
|
#include "MobAI.hpp"
|
||
|
|
||
|
#include "JSON.hpp"
|
||
|
|
||
|
#include <map>
|
||
|
#include <unordered_map>
|
||
|
#include <queue>
|
||
|
|
||
|
struct Bullet {
|
||
|
int pointDamage;
|
||
|
int groupDamage;
|
||
|
bool weaponBoost;
|
||
|
int bulletType;
|
||
|
};
|
||
|
|
||
|
namespace Combat {
|
||
|
extern std::map<int32_t, std::map<int8_t, Bullet>> Bullets;
|
||
|
|
||
|
void init();
|
||
|
|
||
|
void npcAttackPc(Mob *mob, time_t currTime);
|
||
|
int hitMob(CNSocket *sock, Mob *mob, int damage);
|
||
|
void killMob(CNSocket *sock, Mob *mob);
|
||
|
}
|