![]() |
#1 |
Knight
Join Date: May 2008
Location: Saratoga, California (in the midst of Silicon Valley)
Posts: 515
![]() |
Bug: !Heal too good
I'm playing the 3.1.0 beta, and potions of Healing are healing way too many HP. The offending code is in effects.c:
... case EF_CURE_FULL: { int amt = (p_ptr->mhp * 100) / 35; if (amt < 300) amt = 300; if (hp_player(amt)) *ident = TRUE; ... It's pretty clear that the author meant to say: int amt = (p_ptr->mhp * 35) / 100; but it seems that even better would be to use: if (heal_player(35, 300)) *ident = TRUE; |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Charisma! What is it good for? (Shopping) | PaulBlay | Vanilla | 20 | February 26, 2009 20:13 |
Talk about a good drop ... [NPP] | Pete Mack | AAR | 2 | January 26, 2009 15:14 |
Should arrows/shovels be 'good'? | ChodTheWacko | Vanilla | 4 | October 14, 2008 03:21 |
Question regarding good/great probability | ChodTheWacko | Vanilla | 4 | October 3, 2008 19:28 |
[FA] A Good Start! | Slonk | AAR | 0 | October 20, 2007 22:20 |