diff options
author | Bardur Arantsson <bardur@scientician.net> | 2012-04-07 15:56:19 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-04-07 17:49:18 +0200 |
commit | 838246d8d5d9febf38452f82692b25d7dc092ef3 (patch) | |
tree | d15859fe4087606b4f680eed3ed6193ce1e1f87a /src/lua_bind.c | |
parent | 203d42e75a02c68d7cda9ff85023910bd1a0a6f4 (diff) |
Lua: Remove add_new_power() Lua function
Diffstat (limited to 'src/lua_bind.c')
-rw-r--r-- | src/lua_bind.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/src/lua_bind.c b/src/lua_bind.c index df335dd3..fa88a7c1 100644 --- a/src/lua_bind.c +++ b/src/lua_bind.c @@ -77,33 +77,6 @@ void end_object(object_type *o_ptr) FREE(o_ptr, object_type); } -/* - * Powers - */ -s16b add_new_power(cptr name, cptr desc, cptr gain, cptr lose, byte level, byte cost, byte stat, byte diff) -{ - /* Increase the size */ - reinit_powers_type(power_max + 1); - - /* Copy the strings */ - C_MAKE(powers_type[power_max - 1].name, strlen(name) + 1, char); - strcpy(powers_type[power_max - 1].name, name); - C_MAKE(powers_type[power_max - 1].desc_text, strlen(desc) + 1, char); - strcpy(powers_type[power_max - 1].desc_text, desc); - C_MAKE(powers_type[power_max - 1].gain_text, strlen(gain) + 1, char); - strcpy(powers_type[power_max - 1].gain_text, gain); - C_MAKE(powers_type[power_max - 1].lose_text, strlen(lose) + 1, char); - strcpy(powers_type[power_max - 1].lose_text, lose); - - /* Copy the other stuff */ - powers_type[power_max - 1].level = level; - powers_type[power_max - 1].cost = cost; - powers_type[power_max - 1].stat = stat; - powers_type[power_max - 1].diff = diff; - - return (power_max - 1); -} - static char *lua_item_tester_fct; static bool_ lua_item_tester(object_type* o_ptr) { |