-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
Description
Issue:
Mobs with an S designation in tinyworld.mob should have the following format for the second line of stats according to the code in db.c:
%d %d %d %dd%d+%d %dd%d+%d
But at least a handful of them have:
%d %d %d %d %dd%d+%d
That is, the 4th stat is just a number instead of a die + bonus spec. This is causing random values to be read off the stack in db.c. It seems to work almost all of the time, shockingly, but I've seen it crash the game on occasion.
Possible fixes:
- Change the letter to one of the other specs (e.g. 'A', 'L', ...). These types expect a single number in that location. I'm not sure what else this would change.
- Change the code to deal with single numbers. We would need to decide what defaults make sense across the board.
- Change the stat blocks of the offending mobs. We would need to decide what the stats should be.
Affected mobs:
There are 141 mobs with the S designation and 36 of them have this problem:
grep -A 1 'S$' tinyworld.mob | grep -v 'S$' | grep -v -- '--' | grep ' [0-9]\+ [0-9]\+d[0-9]+[0-9]\+$' | wc -l
Reactions are currently unavailable