summaryrefslogtreecommitdiff
path: root/lib/core/player.lua
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-06-11 20:44:03 +0200
committerBardur Arantsson <bardur@scientician.net>2012-06-19 18:36:20 +0200
commit4dfd1e9255f421093ecf444fff7c76a9434d8fe1 (patch)
tree9cb397ecbe5964b57eae5ad330119027152794b8 /lib/core/player.lua
parentf71485a5448f1e978101f9033f34875a96c88880 (diff)
Lua: Remove dead code from 'player.lua'
Diffstat (limited to 'lib/core/player.lua')
-rw-r--r--lib/core/player.lua31
1 files changed, 0 insertions, 31 deletions
diff --git a/lib/core/player.lua b/lib/core/player.lua
index 65406de2..deec2e21 100644
--- a/lib/core/player.lua
+++ b/lib/core/player.lua
@@ -10,38 +10,7 @@ function skill(i)
return s_info[i + 1]
end
--- Sart a lasting spell
-function player.start_lasting_spell(spl)
- player.music_extra = -spl
-end
-
--- stat mods
-function player.modify_stat(stat, inc)
- player.stat_add[1 + stat] = player.stat_add[1 + stat] + inc
-end
-
--- powers mods
-function player.add_power(pow)
- player.powers[1 + pow] = TRUE
-end
-
-- easier inventory access
function player.inventory(i)
return player.inventory_real[i + 1]
end
-
-
--- Return the coordinates of the player whether in wild or not
-function player.get_wild_coord()
- if player.wild_mode == TRUE then
- return player.py, player.px
- else
- return player.wilderness_y, player.wilderness_x
- end
-end
-
-
--- Subraces
-function subrace(racem)
- return race_mod_info[racem + 1]
-end