Basic mod setup only supports combat hooks for now I'll add a few more before i push this

This commit is contained in:
KimLS
2017-04-26 22:56:18 -07:00
parent 78a73cab85
commit 6d59baffaf
11 changed files with 2322 additions and 125 deletions
+4 -10
View File
@@ -31,15 +31,6 @@ namespace luabind {
}
}
class IgnoreDefaultException : std::exception {
public:
IgnoreDefaultException() { };
IgnoreDefaultException(const exception&) { };
IgnoreDefaultException& operator= (const exception&) { return *this; }
virtual ~IgnoreDefaultException() { }
virtual const char* what() const { return "Ignore Default Action"; }
};
class LuaParser : public QuestInterface {
public:
~LuaParser();
@@ -96,7 +87,10 @@ public:
}
//Mod Extensions
void DoAttack(Mob *self, Mob *other, DamageHitInfo &hit, ExtraAttackOptions *opts);
void MeleeMitigation(Mob *self, Mob *attacker, DamageHitInfo &hit, ExtraAttackOptions *opts, bool &ignoreDefault);
void ApplyDamageTable(Mob *self, DamageHitInfo &hit, bool &ignoreDefault);
bool AvoidDamage(Mob *self, Mob *other, DamageHitInfo &hit, bool &ignoreDefault);
bool CheckHitChance(Mob *self, Mob* other, DamageHitInfo &hit, bool &ignoreDefault);
private:
LuaParser();