Skip to content

Commit

Permalink
Evil tabs removed in favor of valiant spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
teschnei committed Aug 9, 2014
1 parent 3ee57dc commit 55491f6
Show file tree
Hide file tree
Showing 2 changed files with 293 additions and 293 deletions.
172 changes: 86 additions & 86 deletions Deeps/Deeps.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,24 @@

enum REACTION
{
REACTION_NONE = 0x00,
REACTION_MISS = 0x01,
REACTION_PARRY = 0x03,
REACTION_BLOCK = 0x04,
REACTION_HIT = 0x08,
REACTION_EVADE = 0x09,
REACTION_HIT2 = 0x10,
REACTION_GUARD = 0x14
REACTION_NONE = 0x00,
REACTION_MISS = 0x01,
REACTION_PARRY = 0x03,
REACTION_BLOCK = 0x04,
REACTION_HIT = 0x08,
REACTION_EVADE = 0x09,
REACTION_HIT2 = 0x10,
REACTION_GUARD = 0x14
};

enum SPECEFFECT
{
SPECEFFECT_NONE = 0x00,
SPECEFFECT_BLOOD = 0x02,
SPECEFFECT_HIT = 0x10,
SPECEFFECT_RAISE = 0x11,
SPECEFFECT_RECOIL = 0x20,
SPECEFFECT_CRITICAL_HIT = 0x22
SPECEFFECT_NONE = 0x00,
SPECEFFECT_BLOOD = 0x02,
SPECEFFECT_HIT = 0x10,
SPECEFFECT_RAISE = 0x11,
SPECEFFECT_RECOIL = 0x20,
SPECEFFECT_CRITICAL_HIT = 0x22
};

/**
Expand All @@ -54,91 +54,91 @@ enum SPECEFFECT

struct damage_t
{
uint64_t total;
uint32_t max;
uint32_t min;
uint32_t count;

damage_t()
{
total = 0;
max = 0;
min = 0;
count = 0;
}
bool operator > (const damage_t& o) const
{
return (count > o.count);
}
uint32_t avg()
{
return count > 0 ? (total / count) : 0;
}
uint64_t total;
uint32_t max;
uint32_t min;
uint32_t count;

damage_t()
{
total = 0;
max = 0;
min = 0;
count = 0;
}
bool operator > (const damage_t& o) const
{
return (count > o.count);
}
uint32_t avg()
{
return count > 0 ? (total / count) : 0;
}
};

struct source_t
{
std::string name;
std::map<const char*, damage_t> damage;

source_t()
{

}

uint64_t total() const
{
uint64_t tot = 0;
for (auto d : damage)
{
tot += d.second.total;
}
return tot;
}

bool operator > (const source_t& o) const
{
return (total() > o.total());
}
std::string name;
std::map<const char*, damage_t> damage;

source_t()
{

}

uint64_t total() const
{
uint64_t tot = 0;
for (auto d : damage)
{
tot += d.second.total;
}
return tot;
}

bool operator > (const source_t& o) const
{
return (total() > o.total());
}
};

struct entitysources_t
{
std::string name;
std::string name;
uint32_t color;
std::map<uint32_t, source_t> sources;

uint64_t total() const
{
int64_t total = 0;
for (auto s : sources)
{
total += s.second.total();
}
return total;
}
bool operator == (const entitysources_t& o) const
{
return (total() == o.total());
}

bool operator > (const entitysources_t& o) const
{
return (total() > o.total());
}
std::map<uint32_t, source_t> sources;

uint64_t total() const
{
int64_t total = 0;
for (auto s : sources)
{
total += s.second.total();
}
return total;
}
bool operator == (const entitysources_t& o) const
{
return (total() == o.total());
}

bool operator > (const entitysources_t& o) const
{
return (total() > o.total());
}
};

std::map<uint32_t, entitysources_t> entities;
std::map<IFontObject*, std::string> clickMap;

static const std::vector<uint16_t> hitMessages = {1, 2, 77, 132, 157, 161, 163, 185, 187, 197, 227, 264, 281, 317, 352, 413, 522, 576, 577};
static const std::vector<uint16_t> hitMessages = { 1, 2, 77, 132, 157, 161, 163, 185, 187, 197, 227, 264, 281, 317, 352, 413, 522, 576, 577 };
static const std::vector<uint16_t> critMessages = { 67, 252, 265, 274, 353, 379 };
static const std::vector<uint16_t> missMessages = { 15, 85, 158, 188, 245, 284, 324, 354 };
static const std::vector<uint16_t> evadeMessages = { 14, 30, 31, 32, 33, 189, 248, 282, 283, 323, 355 };
static const std::vector<uint16_t> parryMessages = { 69, 70 };

static const std::vector<D3DCOLOR> Colors = { D3DCOLOR_ARGB(255, 12, 0, 155), D3DCOLOR_ARGB(255, 140, 0, 0), D3DCOLOR_ARGB(255, 255, 177, 32), D3DCOLOR_ARGB(255, 143, 143, 143),
D3DCOLOR_ARGB(255, 68, 68, 68), D3DCOLOR_ARGB(255, 255, 0, 0), D3DCOLOR_ARGB(255, 0, 164, 49), D3DCOLOR_ARGB(255, 198, 198, 0),
D3DCOLOR_ARGB(255, 68, 68, 68), D3DCOLOR_ARGB(255, 255, 0, 0), D3DCOLOR_ARGB(255, 0, 164, 49), D3DCOLOR_ARGB(255, 198, 198, 0),
D3DCOLOR_ARGB(255, 116, 0, 145), D3DCOLOR_ARGB(255, 165, 153, 10), D3DCOLOR_ARGB(255, 184, 128, 10), D3DCOLOR_ARGB(255, 224, 0, 230),
D3DCOLOR_ARGB(255, 234, 100, 0), D3DCOLOR_ARGB(255, 119, 0, 0), D3DCOLOR_ARGB(255, 130, 17, 255), D3DCOLOR_ARGB(255, 79, 196, 0),
D3DCOLOR_ARGB(255, 0, 16, 217), D3DCOLOR_ARGB(255, 136, 68, 0), D3DCOLOR_ARGB(255, 244, 98, 0), D3DCOLOR_ARGB(255, 15, 190, 220),
Expand Down Expand Up @@ -167,21 +167,21 @@ class Deeps : PluginBase
IDirect3DDevice8* m_Direct3DDevice;

private:
source_t* getDamageSource(entitysources_t* entityInfo, uint8_t actionType, uint16_t actionID);
bool updateDamageSource(source_t* source, uint16_t message, uint32_t damage);
source_t* getDamageSource(entitysources_t* entityInfo, uint8_t actionType, uint16_t actionID);
bool updateDamageSource(source_t* source, uint16_t message, uint32_t damage);
void repairBars(IFontObject* deepsBase, uint8_t size);
void report(char mode, int max);
uint16_t getIndex(std::function<bool(IEntity*, int)>);
uint32_t m_charInfo;
std::string m_sourceInfo;
uint16_t getIndex(std::function<bool(IEntity*, int)>);
uint32_t m_charInfo;
std::string m_sourceInfo;
uint8_t m_bars;

public:
/**
* @brief Constructor and deconstructor.
*/
Deeps(void);
virtual ~Deeps(void);
Deeps(void);
virtual ~Deeps(void);

/**
* @brief GetPluginData implementation.
Expand Down
Loading

0 comments on commit 55491f6

Please sign in to comment.