Method: Integer#level_to_xp
- Defined in:
- lib/nwn/twoda.rb
#level_to_xp ⇒ Object
Returns the amount of experience that this level resolves to. Depends on a set-up TwoDA::Cache, and reads from exptable.
14 15 16 |
# File 'lib/nwn/twoda.rb', line 14 def level_to_xp NWN::TwoDA.get('exptable').by_col("XP", self - 1).to_i end |