That is very much not in the usual design patterns model. For dice, it would be an interpreted mini-language. Same for the various case statements for melee types (CRUSH, HURT, SHATTER, etc.) By and large, separation of code and data is very much a usual design goal.
Quote:
Originally Posted by t4nk
Well, if I were modding Angband, I'd move quite a lot of that back to C - that is, a .c file, to be parsed and compiled by the C compiler... Especially stuff like dices.
|