Menu

Njorl's Saga Manager / News: Recent posts

New Update

The Saga Manager is now actually useful for creating Characters and Monsters.(Monsters must be treated as characters-Type as class and Monster name as race) There is no way to print yet, but someone could (I think) easily write a utility to print the XML file in a readable way. If you are interested in that or anything else please leave a comment. Noe that the program is remotely useful, I hope to see comments and questions.(the README sucks at this point)

Posted by Hrothgar 2007-09-10

Formula for bonus spells

Maybe none of you have ever wondered how a character's bonus spells could be calculated programmatically without needed a table with values filled in. I certainly have. Maybe some of you already knew what the formula was, in which case if you have any other such knowledge please share it. Either way, interested or not, here it is:(in C#)

public static int CalculateBonusSpells ( int mod, int spellLvl )
{
int newMod = mod - ( spellLvl - 1 );
if ( newMod > 0 )
{
int bonus;
if ( newMod % 4 != 0 )
{
bonus = newMod / 4 + 1;
}
else
{
bonus = newMod / 4;... read more

Posted by Hrothgar 2006-07-06
MongoDB Logo MongoDB