Template:HPdice

From CrawlWiki
Revision as of 16:31, 29 September 2010 by Demos (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

({{{hd}}}*{{{min_hp}}}+{{{rand_hp}}}) to ({{{hd}}}*({{{min_hp}}}+{{{rand_hp}}})+{{{add_hp}}})


From mon-util.h, line 428:

// hpdice[4]: [0]=HD [1]=min_hp [2]=rand_hp [3]=add_hp
// min hp = [0]*[1]+[3] & max hp = [0]*([1]+[2])+[3])
// example: the Iron Golem, hpdice={15,7,4,0}
//      15*7 < hp < 15*(7+4),
//       105 < hp < 165
// hp will be around 135 each time.