mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2024-11-05 06:50:04 +00:00
dd54668697
* FM, Taros and Boosts awards from killing mobs should be pretty accurate now. A temporary formula for adjusting player/mob level gap is implemented, but it will probably need to be adjusted in the future * Mobs now drop correct crates * Crates can be opened and give you correct items This includes regular mob crates, world boss crates, mission crates, IZ race crates, E.G.G.E.R.s, golden Eggs, and Event Crates. Keep in mind that neither IZ races or golden Eggs are implemented, but if you spawn such a crate it can be opened. * All data is read from a json file, for which I'm going to release a tool soon so it's easily adjustable * There is a new setting for enabling events, which enables dropping extra event crates These are Knishmas, Halloween and Easter
25 lines
688 B
C++
25 lines
688 B
C++
#pragma once
|
|
#include <map>
|
|
|
|
#include "contrib/JSON.hpp"
|
|
#include "NPCManager.hpp"
|
|
|
|
namespace TableData {
|
|
extern std::map<int32_t, std::vector<WarpLocation>> RunningSkywayRoutes;
|
|
extern std::map<int32_t, int> RunningNPCRotations;
|
|
extern std::map<int32_t, int> RunningNPCMapNumbers;
|
|
extern std::map<int32_t, BaseNPC*> RunningMobs;
|
|
|
|
void init();
|
|
void cleanup();
|
|
void loadGruntwork(int32_t*);
|
|
void flush();
|
|
|
|
int getItemType(int);
|
|
void loadPaths(int*);
|
|
void loadDrops();
|
|
void constructPathSkyway(nlohmann::json::iterator);
|
|
void constructPathSlider(nlohmann::json, int, int);
|
|
void constructPathNPC(nlohmann::json::iterator, int id=0);
|
|
}
|