forked from github/server
this equipment callback is never used in our lua scripts, and we want to use equipment less.
This commit is contained in:
parent
ac73052dc1
commit
7b1038b0b1
1 changed files with 0 additions and 18 deletions
|
@ -403,23 +403,6 @@ static int tolua_equipunit(lua_State * L)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int tolua_equipment_setitem(lua_State * L)
|
|
||||||
{
|
|
||||||
int result = -1;
|
|
||||||
const char *eqname = tolua_tostring(L, 1, 0);
|
|
||||||
const char *iname = tolua_tostring(L, 2, 0);
|
|
||||||
const char *value = tolua_tostring(L, 3, 0);
|
|
||||||
if (iname != NULL) {
|
|
||||||
const struct item_type *itype = it_find(iname);
|
|
||||||
if (itype != NULL) {
|
|
||||||
equipment_setitem(get_or_create_equipment(eqname), itype, value);
|
|
||||||
result = 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
lua_pushinteger(L, result);
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int tolua_spawn_braineaters(lua_State * L)
|
static int tolua_spawn_braineaters(lua_State * L)
|
||||||
{
|
{
|
||||||
float chance = (float)tolua_tonumber(L, 1, 0);
|
float chance = (float)tolua_tonumber(L, 1, 0);
|
||||||
|
@ -1036,7 +1019,6 @@ int tolua_bindings_open(lua_State * L, const dictionary *inifile)
|
||||||
tolua_function(L, TOLUA_CAST "set_turn", &tolua_set_turn);
|
tolua_function(L, TOLUA_CAST "set_turn", &tolua_set_turn);
|
||||||
tolua_function(L, TOLUA_CAST "get_turn", &tolua_get_turn);
|
tolua_function(L, TOLUA_CAST "get_turn", &tolua_get_turn);
|
||||||
tolua_function(L, TOLUA_CAST "get_season", tolua_get_season);
|
tolua_function(L, TOLUA_CAST "get_season", tolua_get_season);
|
||||||
tolua_function(L, TOLUA_CAST "equipment_setitem", tolua_equipment_setitem);
|
|
||||||
tolua_function(L, TOLUA_CAST "equip_unit", tolua_equipunit);
|
tolua_function(L, TOLUA_CAST "equip_unit", tolua_equipunit);
|
||||||
tolua_function(L, TOLUA_CAST "atoi36", tolua_atoi36);
|
tolua_function(L, TOLUA_CAST "atoi36", tolua_atoi36);
|
||||||
tolua_function(L, TOLUA_CAST "itoa36", tolua_itoa36);
|
tolua_function(L, TOLUA_CAST "itoa36", tolua_itoa36);
|
||||||
|
|
Loading…
Reference in a new issue