View Single Post
Old February 6, 2019, 02:43   #41
Pete Mack
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,999
Donated: $40
Pete Mack is on a distinguished road
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.

Originally Posted by t4nk View Post
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.
Pete Mack is offline   Reply With Quote