diff options
author | Bardur Arantsson <bardur@scientician.net> | 2011-02-27 18:57:30 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-03-29 21:16:16 +0200 |
commit | 13664a125f4304824268e1e5203ea72670a5c5ad (patch) | |
tree | 0272480b928cad3964dc007f533401285d936d21 | |
parent | b09c86b9828d931638b48864a65658a20d2ad864 (diff) |
Remove unused Lua functions for body modification
-rw-r--r-- | lib/core/player.lua | 5 | ||||
-rw-r--r-- | lib/mods/theme/core/player.lua | 5 | ||||
-rw-r--r-- | src/player.pkg | 6 | ||||
-rw-r--r-- | src/types.h | 2 | ||||
-rw-r--r-- | src/xtra1.c | 7 |
5 files changed, 1 insertions, 24 deletions
diff --git a/lib/core/player.lua b/lib/core/player.lua index 3017d94f..16878228 100644 --- a/lib/core/player.lua +++ b/lib/core/player.lua @@ -133,8 +133,3 @@ function subrace_add_power(subrace, power) end return nil end - --- Body parts -function player.add_body_part(part, nb) - player.extra_body_parts[part + 1] = player.extra_body_parts[part + 1] + nb -end diff --git a/lib/mods/theme/core/player.lua b/lib/mods/theme/core/player.lua index 3017d94f..16878228 100644 --- a/lib/mods/theme/core/player.lua +++ b/lib/mods/theme/core/player.lua @@ -133,8 +133,3 @@ function subrace_add_power(subrace, power) end return nil end - --- Body parts -function player.add_body_part(part, nb) - player.extra_body_parts[part + 1] = player.extra_body_parts[part + 1] + nb -end diff --git a/src/player.pkg b/src/player.pkg index f6717476..dfdced26 100644 --- a/src/player.pkg +++ b/src/player.pkg @@ -1766,12 +1766,6 @@ struct player_type */ byte body_parts[28]; - /** @structvar extra_body_parts[BODY_MAX] - * @brief Number - * @note Various body modifiers - */ - s16b extra_body_parts[BODY_MAX]; - /** @structvar powers_mod[POWER_MAX_INIT] * @brief Boolean * @note Intrinsinc powers diff --git a/src/types.h b/src/types.h index 26b8b21d..e619c182 100644 --- a/src/types.h +++ b/src/types.h @@ -1822,8 +1822,6 @@ struct player_type bool_ disembodied; /* Is the player in a body ? */ byte body_parts[INVEN_TOTAL - INVEN_WIELD]; /* Which body parts does he have ? */ - s16b extra_body_parts[BODY_MAX]; /* Various body modifiers */ - /* Astral */ bool_ astral; /* We started at the bottom ? */ diff --git a/src/xtra1.c b/src/xtra1.c index 2109af4d..933bc265 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -2116,16 +2116,11 @@ void calc_body() } } - /* Do we need more parts ? ;) */ - for (i = 0; i < BODY_MAX; i++) - p_ptr->extra_body_parts[i] = 0; - process_hooks(HOOK_BODY_PARTS, "()"); - for (i = 0; i < BODY_MAX; i++) { int b; - b = bp[i] + cp_ptr->body_parts[i] + p_ptr->extra_body_parts[i]; + b = bp[i] + cp_ptr->body_parts[i]; if (b < 0) b = 0; if (b > max_body_part[i]) b = max_body_part[i]; |