View Single Post
Old November 15, 2013, 11:27   #4
Join Date: Apr 2009
Location: Pisa / DL0
Posts: 970
fph is on a distinguished road
Originally Posted by half View Post
This is fascinating. I'd be interested in somehow incorporating this into the game (perhaps as a cheat/debug feature, perhaps something else).
I'd love to see it included, too. I can easily provide a diff/patch file that you can apply to the Sil source.

There are some opportunities for refactoring the existing code while including this part; for instance, in Sil there are
* a function that makes a protection roll and returns the result
* two functions that compute min and max protection (for displaying)
I added
* a function that computes the probability distribution of the protection roll.
The four are independent, but probably they should be merged not to duplicate the logic. I can work on it and similar issues.
Dive fast, die young, leave a high-CHA corpse.
You read a scroll labeled 'lol gtfo' of Teleport Level.
fph is offline   Reply With Quote