Thread: Angband 4.2.0
View Single Post
Old September 23, 2019, 23:03   #148
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,841
Donated: $60
Nick will become famous soon enough
Quote:
Originally Posted by Pete Mack View Post
Mystery expressions in class.txt

Minor healing spell has effect
Code:
dice:$B+m$M
expr:B:PLAYER_LEVEL:+ 10
expr:M:PLAYER_LEVEL:/ 4
What is 'm' in dice expression?
Something similar happens in teleport, but there the expression is M$M

It'd be nice if the comments included the entire expression language.
It's the maximum of the "enchantment bonus", a random number weighted by depth. More detailed description is in z-rand.c; agreed, something in the comments would be good.
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote