2021-03-17 21:28:24 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/Core.hpp"
|
2021-03-21 01:42:45 +00:00
|
|
|
#include "Entities.hpp"
|
2021-03-17 21:28:24 +00:00
|
|
|
|
|
|
|
struct EggType {
|
|
|
|
int dropCrateId;
|
|
|
|
int effectId;
|
|
|
|
int duration;
|
|
|
|
int regen;
|
|
|
|
};
|
|
|
|
|
|
|
|
namespace Eggs {
|
|
|
|
extern std::map<std::pair<CNSocket*, int32_t>, time_t> EggBuffs;
|
|
|
|
extern std::unordered_map<int, EggType> EggTypes;
|
|
|
|
|
|
|
|
void init();
|
|
|
|
|
|
|
|
/// returns -1 on fail
|
|
|
|
int eggBuffPlayer(CNSocket* sock, int skillId, int eggId, int duration);
|
2021-04-16 16:30:22 +00:00
|
|
|
void npcDataToEggData(int x, int y, int z, sNPCAppearanceData* npc, sShinyAppearanceData* egg);
|
2021-03-17 21:28:24 +00:00
|
|
|
}
|