2020-08-23 17:14:54 +00:00
|
|
|
#pragma once
|
2020-08-20 15:43:37 +00:00
|
|
|
|
2020-09-15 14:46:52 +00:00
|
|
|
#include <set>
|
|
|
|
#include <vector>
|
|
|
|
|
2020-12-01 18:58:34 +00:00
|
|
|
#include "Player.hpp"
|
2021-03-17 19:07:40 +00:00
|
|
|
#include "servers/CNShardServer.hpp"
|
2020-08-20 15:43:37 +00:00
|
|
|
|
2020-09-25 05:35:27 +00:00
|
|
|
struct NanoData {
|
|
|
|
int style;
|
|
|
|
};
|
|
|
|
|
2020-10-24 20:28:35 +00:00
|
|
|
struct NanoTuning {
|
|
|
|
int reqItemCount;
|
|
|
|
int reqItems;
|
|
|
|
};
|
|
|
|
|
2021-03-16 22:29:13 +00:00
|
|
|
namespace Nanos {
|
2020-09-25 05:35:27 +00:00
|
|
|
extern std::map<int32_t, NanoData> NanoTable;
|
2020-10-24 20:28:35 +00:00
|
|
|
extern std::map<int32_t, NanoTuning> NanoTunings;
|
2020-08-20 15:43:37 +00:00
|
|
|
void init();
|
2020-09-15 14:46:52 +00:00
|
|
|
|
2020-08-22 18:02:08 +00:00
|
|
|
// Helper methods
|
2020-11-08 00:26:44 +00:00
|
|
|
void addNano(CNSocket* sock, int16_t nanoID, int16_t slot, bool spendfm=false);
|
2020-11-29 18:06:11 +00:00
|
|
|
void summonNano(CNSocket* sock, int slot, bool silent = false);
|
2020-11-08 00:26:44 +00:00
|
|
|
int nanoStyle(int nanoID);
|
2020-11-23 23:42:34 +00:00
|
|
|
bool getNanoBoost(Player* plr);
|
2020-08-20 15:43:37 +00:00
|
|
|
}
|