… | |
… | |
155 | else |
155 | else |
156 | return levels [min (level, settings.max_level)]; |
156 | return levels [min (level, settings.max_level)]; |
157 | } |
157 | } |
158 | |
158 | |
159 | /* This loads the experience table from the exp_table |
159 | /* This loads the experience table from the exp_table |
160 | * file. This tends to exit on any errors, since it |
160 | * file. |
161 | * populates the table as it goes along, so if there |
|
|
162 | * are errors, the table is likely in an inconsistent |
|
|
163 | * state. |
|
|
164 | */ |
161 | */ |
165 | void |
162 | void |
166 | init_experience () |
163 | init_experience () |
167 | { |
164 | { |
168 | int lastlevel = 0; |
165 | int lastlevel = 0; |