mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
Change things -Wcatch-value complains about to references
This commit is contained in:
parent
baf4cc62eb
commit
139b6c34e5
@ -165,7 +165,7 @@ class EQEmuConfig
|
|||||||
fconfig >> _config->_root;
|
fconfig >> _config->_root;
|
||||||
_config->parse_config();
|
_config->parse_config();
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
@ -32,7 +32,7 @@ EQ::JsonConfigFile EQ::JsonConfigFile::Load(
|
|||||||
try {
|
try {
|
||||||
ifs >> ret.m_root;
|
ifs >> ret.m_root;
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ std::string EQ::JsonConfigFile::GetVariableString(
|
|||||||
return m_root[title][parameter].asString();
|
return m_root[title][parameter].asString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ int EQ::JsonConfigFile::GetVariableInt(
|
|||||||
return m_root[title][parameter].asInt();
|
return m_root[title][parameter].asInt();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ bool EQ::JsonConfigFile::GetVariableBool(
|
|||||||
return m_root[title][parameter].asBool();
|
return m_root[title][parameter].asBool();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ double EQ::JsonConfigFile::GetVariableDouble(
|
|||||||
return m_root[title][parameter].asDouble();
|
return m_root[title][parameter].asDouble();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
return default_value;
|
return default_value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -61,7 +61,7 @@ EQ::Net::WebsocketServer::WebsocketServer(const std::string &addr, int port)
|
|||||||
auto &connection = iter->second;
|
auto &connection = iter->second;
|
||||||
connection->GetWebsocketConnection()->ping("keepalive");
|
connection->GetWebsocketConnection()->ping("keepalive");
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
iter->second->GetTCPConnection()->Disconnect();
|
iter->second->GetTCPConnection()->Disconnect();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -157,7 +157,7 @@ void EQ::Net::WebsocketServer::DispatchEvent(WebsocketSubscriptionEvent evt, Jso
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -190,7 +190,7 @@ Json::Value EQ::Net::WebsocketServer::Login(WebsocketServerConnection *connectio
|
|||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
throw WebsocketException("Unable to process login request");
|
throw WebsocketException("Unable to process login request");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -212,7 +212,7 @@ Json::Value EQ::Net::WebsocketServer::Subscribe(WebsocketServerConnection *conne
|
|||||||
catch (WebsocketException &ex) {
|
catch (WebsocketException &ex) {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
throw WebsocketException("Unable to process unsubscribe request");
|
throw WebsocketException("Unable to process unsubscribe request");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -234,7 +234,7 @@ Json::Value EQ::Net::WebsocketServer::Unsubscribe(WebsocketServerConnection *con
|
|||||||
catch (WebsocketException &ex) {
|
catch (WebsocketException &ex) {
|
||||||
throw ex;
|
throw ex;
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
throw WebsocketException("Unable to process unsubscribe request");
|
throw WebsocketException("Unable to process unsubscribe request");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -24,7 +24,7 @@ void WebInterface::OnCall(uint16 opcode, EQ::Net::Packet &p)
|
|||||||
std::stringstream ss(json_str);
|
std::stringstream ss(json_str);
|
||||||
ss >> root;
|
ss >> root;
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
SendError("Could not parse request");
|
SendError("Could not parse request");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -40,7 +40,7 @@ void WebInterface::OnCall(uint16 opcode, EQ::Net::Packet &p)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
SendError("Invalid request: method not supplied");
|
SendError("Invalid request: method not supplied");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -49,7 +49,7 @@ void WebInterface::OnCall(uint16 opcode, EQ::Net::Packet &p)
|
|||||||
try {
|
try {
|
||||||
params = root["params"];
|
params = root["params"];
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
params = nullptr;
|
params = nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -57,7 +57,7 @@ void WebInterface::OnCall(uint16 opcode, EQ::Net::Packet &p)
|
|||||||
try {
|
try {
|
||||||
id = root["id"].asString();
|
id = root["id"].asString();
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
id = "";
|
id = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ void WebInterface::Send(const Json::Value &value)
|
|||||||
p.PutString(0, ss.str());
|
p.PutString(0, ss.str());
|
||||||
m_connection->Send(ServerOP_WebInterfaceCall, p);
|
m_connection->Send(ServerOP_WebInterfaceCall, p);
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
//Log error
|
//Log error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -116,7 +116,7 @@ void WebInterface::SendEvent(const Json::Value &value)
|
|||||||
p.PutString(0, ss.str());
|
p.PutString(0, ss.str());
|
||||||
m_connection->Send(ServerOP_WebInterfaceEvent, p);
|
m_connection->Send(ServerOP_WebInterfaceEvent, p);
|
||||||
}
|
}
|
||||||
catch (std::exception) {
|
catch (std::exception &) {
|
||||||
//Log error
|
//Log error
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1397,7 +1397,7 @@ void Lua_Client::QuestReward(Lua_Mob target, luabind::adl::object reward) {
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
copper = luabind::object_cast<uint32>(cur);
|
copper = luabind::object_cast<uint32>(cur);
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1405,7 +1405,7 @@ void Lua_Client::QuestReward(Lua_Mob target, luabind::adl::object reward) {
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
silver = luabind::object_cast<uint32>(cur);
|
silver = luabind::object_cast<uint32>(cur);
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1413,7 +1413,7 @@ void Lua_Client::QuestReward(Lua_Mob target, luabind::adl::object reward) {
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
gold = luabind::object_cast<uint32>(cur);
|
gold = luabind::object_cast<uint32>(cur);
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1421,7 +1421,7 @@ void Lua_Client::QuestReward(Lua_Mob target, luabind::adl::object reward) {
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
platinum = luabind::object_cast<uint32>(cur);
|
platinum = luabind::object_cast<uint32>(cur);
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1429,7 +1429,7 @@ void Lua_Client::QuestReward(Lua_Mob target, luabind::adl::object reward) {
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
itemid = luabind::object_cast<uint32>(cur);
|
itemid = luabind::object_cast<uint32>(cur);
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1437,7 +1437,7 @@ void Lua_Client::QuestReward(Lua_Mob target, luabind::adl::object reward) {
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
exp = luabind::object_cast<uint32>(cur);
|
exp = luabind::object_cast<uint32>(cur);
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1445,7 +1445,7 @@ void Lua_Client::QuestReward(Lua_Mob target, luabind::adl::object reward) {
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
faction = luabind::object_cast<bool>(cur);
|
faction = luabind::object_cast<bool>(cur);
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -571,7 +571,7 @@ void lua_task_selector(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
cur_value = luabind::object_cast<int>(cur);
|
cur_value = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
count = i - 1;
|
count = i - 1;
|
||||||
@ -601,7 +601,7 @@ void lua_enable_task(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
cur_value = luabind::object_cast<int>(cur);
|
cur_value = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
count = i - 1;
|
count = i - 1;
|
||||||
@ -628,7 +628,7 @@ void lua_disable_task(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
cur_value = luabind::object_cast<int>(cur);
|
cur_value = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
count = i - 1;
|
count = i - 1;
|
||||||
@ -1156,7 +1156,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
spawn2_id = luabind::object_cast<uint32>(cur);
|
spawn2_id = luabind::object_cast<uint32>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1167,7 +1167,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
spawngroup_id = luabind::object_cast<uint32>(cur);
|
spawngroup_id = luabind::object_cast<uint32>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1178,7 +1178,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
x = luabind::object_cast<float>(cur);
|
x = luabind::object_cast<float>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1189,7 +1189,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
y = luabind::object_cast<float>(cur);
|
y = luabind::object_cast<float>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1200,7 +1200,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
z = luabind::object_cast<float>(cur);
|
z = luabind::object_cast<float>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1211,7 +1211,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
heading = luabind::object_cast<float>(cur);
|
heading = luabind::object_cast<float>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1222,7 +1222,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
respawn = luabind::object_cast<uint32>(cur);
|
respawn = luabind::object_cast<uint32>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1233,7 +1233,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
variance = luabind::object_cast<uint32>(cur);
|
variance = luabind::object_cast<uint32>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -1244,7 +1244,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
timeleft = luabind::object_cast<uint32>(cur);
|
timeleft = luabind::object_cast<uint32>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1252,7 +1252,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
grid = luabind::object_cast<uint32>(cur);
|
grid = luabind::object_cast<uint32>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1260,7 +1260,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
condition_id = luabind::object_cast<int>(cur);
|
condition_id = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1268,7 +1268,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
condition_min_value = luabind::object_cast<int>(cur);
|
condition_min_value = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1276,7 +1276,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
enabled = luabind::object_cast<bool>(cur);
|
enabled = luabind::object_cast<bool>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1284,7 +1284,7 @@ void lua_add_spawn_point(luabind::adl::object table) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
animation = luabind::object_cast<int>(cur);
|
animation = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1399,7 +1399,7 @@ void lua_update_zone_header(std::string type, std::string value) {
|
|||||||
try { \
|
try { \
|
||||||
npc_type->name = luabind::object_cast<c_type>(cur); \
|
npc_type->name = luabind::object_cast<c_type>(cur); \
|
||||||
} \
|
} \
|
||||||
catch(luabind::cast_failed) { \
|
catch(luabind::cast_failed &) { \
|
||||||
npc_type->size = default_value; \
|
npc_type->size = default_value; \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
@ -1415,7 +1415,7 @@ void lua_update_zone_header(std::string type, std::string value) {
|
|||||||
std::string tmp = luabind::object_cast<std::string>(cur); \
|
std::string tmp = luabind::object_cast<std::string>(cur); \
|
||||||
strncpy(npc_type->name, tmp.c_str(), str_length); \
|
strncpy(npc_type->name, tmp.c_str(), str_length); \
|
||||||
} \
|
} \
|
||||||
catch(luabind::cast_failed) { \
|
catch(luabind::cast_failed &) { \
|
||||||
strncpy(npc_type->name, default_value, str_length); \
|
strncpy(npc_type->name, default_value, str_length); \
|
||||||
} \
|
} \
|
||||||
} \
|
} \
|
||||||
|
|||||||
@ -113,7 +113,7 @@ bool Lua_Mob::Attack(Lua_Mob other, int hand, bool from_riposte, bool is_striket
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
options.armor_pen_flat = luabind::object_cast<int>(cur);
|
options.armor_pen_flat = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ bool Lua_Mob::Attack(Lua_Mob other, int hand, bool from_riposte, bool is_striket
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
options.crit_flat = luabind::object_cast<float>(cur);
|
options.crit_flat = luabind::object_cast<float>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ bool Lua_Mob::Attack(Lua_Mob other, int hand, bool from_riposte, bool is_striket
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
options.damage_flat = luabind::object_cast<int>(cur);
|
options.damage_flat = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,7 +137,7 @@ bool Lua_Mob::Attack(Lua_Mob other, int hand, bool from_riposte, bool is_striket
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
options.hate_flat = luabind::object_cast<int>(cur);
|
options.hate_flat = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -145,7 +145,7 @@ bool Lua_Mob::Attack(Lua_Mob other, int hand, bool from_riposte, bool is_striket
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
options.armor_pen_percent = luabind::object_cast<float>(cur);
|
options.armor_pen_percent = luabind::object_cast<float>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ bool Lua_Mob::Attack(Lua_Mob other, int hand, bool from_riposte, bool is_striket
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
options.crit_percent = luabind::object_cast<float>(cur);
|
options.crit_percent = luabind::object_cast<float>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -161,7 +161,7 @@ bool Lua_Mob::Attack(Lua_Mob other, int hand, bool from_riposte, bool is_striket
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
options.damage_percent = luabind::object_cast<float>(cur);
|
options.damage_percent = luabind::object_cast<float>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ bool Lua_Mob::Attack(Lua_Mob other, int hand, bool from_riposte, bool is_striket
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
options.hate_percent = luabind::object_cast<float>(cur);
|
options.hate_percent = luabind::object_cast<float>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -785,7 +785,7 @@ void Lua_Mob::QuestSay(Lua_Client client, const char *message, luabind::adl::obj
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
journal_opts.speak_mode = static_cast<Journal::SpeakMode>(luabind::object_cast<int>(cur));
|
journal_opts.speak_mode = static_cast<Journal::SpeakMode>(luabind::object_cast<int>(cur));
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -793,7 +793,7 @@ void Lua_Mob::QuestSay(Lua_Client client, const char *message, luabind::adl::obj
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
journal_opts.journal_mode = static_cast<Journal::Mode>(luabind::object_cast<int>(cur));
|
journal_opts.journal_mode = static_cast<Journal::Mode>(luabind::object_cast<int>(cur));
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -801,7 +801,7 @@ void Lua_Mob::QuestSay(Lua_Client client, const char *message, luabind::adl::obj
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
journal_opts.language = luabind::object_cast<int>(cur);
|
journal_opts.language = luabind::object_cast<int>(cur);
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -809,7 +809,7 @@ void Lua_Mob::QuestSay(Lua_Client client, const char *message, luabind::adl::obj
|
|||||||
if (luabind::type(cur) != LUA_TNIL) {
|
if (luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
journal_opts.message_type = luabind::object_cast<int>(cur);
|
journal_opts.message_type = luabind::object_cast<int>(cur);
|
||||||
} catch (luabind::cast_failed) {
|
} catch (luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1568,7 +1568,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
race = luabind::object_cast<int>(cur);
|
race = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1576,7 +1576,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
gender = luabind::object_cast<int>(cur);
|
gender = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1584,7 +1584,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
texture = luabind::object_cast<int>(cur);
|
texture = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1592,7 +1592,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
helmtexture = luabind::object_cast<int>(cur);
|
helmtexture = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1600,7 +1600,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
haircolor = luabind::object_cast<int>(cur);
|
haircolor = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1608,7 +1608,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
beardcolor = luabind::object_cast<int>(cur);
|
beardcolor = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1616,7 +1616,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
eyecolor1 = luabind::object_cast<int>(cur);
|
eyecolor1 = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1624,7 +1624,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
eyecolor2 = luabind::object_cast<int>(cur);
|
eyecolor2 = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1632,7 +1632,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
hairstyle = luabind::object_cast<int>(cur);
|
hairstyle = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1640,7 +1640,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
luclinface = luabind::object_cast<int>(cur);
|
luclinface = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1648,7 +1648,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
beard = luabind::object_cast<int>(cur);
|
beard = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1656,7 +1656,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
aa_title = luabind::object_cast<int>(cur);
|
aa_title = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1664,7 +1664,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
drakkin_heritage = luabind::object_cast<int>(cur);
|
drakkin_heritage = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1672,7 +1672,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
drakkin_tattoo = luabind::object_cast<int>(cur);
|
drakkin_tattoo = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1680,7 +1680,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
drakkin_details = luabind::object_cast<int>(cur);
|
drakkin_details = luabind::object_cast<int>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1688,7 +1688,7 @@ void Lua_Mob::SendIllusionPacket(luabind::adl::object illusion) {
|
|||||||
if(luabind::type(cur) != LUA_TNIL) {
|
if(luabind::type(cur) != LUA_TNIL) {
|
||||||
try {
|
try {
|
||||||
size = luabind::object_cast<float>(cur);
|
size = luabind::object_cast<float>(cur);
|
||||||
} catch(luabind::cast_failed) {
|
} catch(luabind::cast_failed &) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user