Rom 2.4 codebase (QuickMUD)
I've stumbled across a bit of a problem that I can't seem to narrow down involving interactions of races and classes. Perhaps someone has come across the same problem and might have suggestions as to either fixing, or working around it?
I've added/changed numerous races (to a total of 9 playable) with stock values, and it worked normally. I then added two new classes and set everything to generic stock values, and it worked as well. A third addition was the inclusion of a 6th attribute for stats, which I named appearance.
In const.c, I have changed all of my races to include the new stat, as well as the new classes.
{
"human", "Human", 0, {100, 100, 100, 100, 100, 100},
{""},
{10, 10, 10, 10, 10, 10}, {15, 15, 15, 15, 15, 15}, SIZE_MEDIUM
},
^^^^ The MUD works normally with this. The problem lies in the next portion. My MUD will be running on a system that uses lower stats than D&D, and starting characters will begin with "1" in each stat (to be increased immediately after creation with additional options), with a maximum defined between "5" and "10" (based upon race. Humans max at "5", vampires max at "10", and others in between).
I changed the race statistic line to this:
{1, 1, 1, 1, 1, 1}, {5, 5, 5, 5, 5, 5}, SIZE_MEDIUM
Upon compiling, I recieve no errors. If I create as a human mage, it creates as normal. However, if I create as a human cleric, the MUD crashes. After repeated tweaking, I have narrowed it down to apparently the MUD doesn't like the starting stats to be "1". Can anyone give me some info or suggestions? I have looked all over the code, and am unsure what to do next. Thanks in advance. |