bountyeq / bounty

Bounty Board issue tracker
0 stars 0 forks source link

legacy combat system #6

Open xackery opened 4 years ago

xackery commented 4 years ago

7:00 PM] Xackery: for those wanting to nerd out on combat revamp:

zone/lua_parser.cpp search for mod. you can see examples in utils/mods/ [7:03 PM] Xackery: looks like on the start of each function, it adds a hook like so: void Mob::MeleeMitigation(Mob attacker, DamageHitInfo &hit, ExtraAttackOptions opts) {

ifdef LUA_EQEMU

bool ignoreDefault = false;
LuaParser::Instance()->MeleeMitigation(this, attacker, hit, opts, ignoreDefault);

if (ignoreDefault) {
    return;
}

endif

[7:05 PM] Xackery: the way it's coded, I could see it being used to extend spell logic

xackery commented 4 years ago

Ali has a pending PR https://github.com/EQEmu/Server/pull/1118 for spell related, he's basically helping out with the mod system