TrimLevel(int, int)
ある秘術呪文スクロールの有効な上限を返します。
int TrimLevel( int nScroll, int nLevel );
Parameters
nScroll
nLevel
Description
ある秘術呪文スクロールの有効な上限を返します。
Requirements
#include "nw_o2_coninclude"
Version
1.22
Example
// 1.24 source for this funciton int TrimLevel(int nScroll, int nLevel) { int nMax = 5; switch (nLevel) { case 0: nMax = 4; break; case 1: nMax = 13; break; case 2: nMax = 21; break; case 3: nMax = 15; break; case 4: nMax = 17; break; case 5: nMax = 13; break; case 6: nMax = 14; break; case 7: nMax = 8; break; case 8: nMax = 9; break; case 9: nMax = 12; break; } if (nScroll > nMax) nScroll = nMax; return nScroll; }
See Also
categories: | Spells Functions |
author: Tom Cassiotis, JP team: Rainie
Send comments on this topic.