View Single Post
Old February 6, 2019, 02:43   #41
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,422
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.


Quote:
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 online now   Reply With Quote