Basic lua packet api, and it works too. Exciting I must say.

This commit is contained in:
KimLS
2013-07-12 22:21:43 -07:00
parent da178c9fba
commit bdc83f4f37
7 changed files with 904 additions and 3 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ bool Lua_Mob::Attack(Lua_Mob other, int hand, bool from_riposte, bool is_striket
cur = opts["crit_flat"];
if(luabind::type(cur) != LUA_TNIL) {
try {
options.crit_flat = luabind::object_cast<int>(cur);
options.crit_flat = luabind::object_cast<float>(cur);
} catch(luabind::cast_failed) {
}
}