diff options
author | Bardur Arantsson <bardur@scientician.net> | 2011-02-22 18:50:36 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2012-03-29 19:59:22 +0200 |
commit | 452c05160f4f9afea287f83cf14379d550b6c779 (patch) | |
tree | 40685891dbcb5a6b2bd5297f62f30478b44fe5a6 /lib/core/s_aux.lua | |
parent | bdce1032586236e5a0cfae9ff4f29f8f3efe2bd8 (diff) |
Remove unused powers.lua functions.
Diffstat (limited to 'lib/core/s_aux.lua')
-rw-r--r-- | lib/core/s_aux.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/core/s_aux.lua b/lib/core/s_aux.lua index abd1269d..1cc74765 100644 --- a/lib/core/s_aux.lua +++ b/lib/core/s_aux.lua @@ -276,6 +276,14 @@ function get_power_name(s) end end +-- Get the level of a power +function get_level_power(s, max, min) + if not max then max = 50 end + if not min then min = 1 end + + return value_scale(s.get_current_level(), 50, max, min) +end + -- Changes the amount of power(mana, piety, whatever) for the spell function adjust_power(s, x) if check_affect(s, "piety", FALSE) then |