suppress obsolete restore_attrib()
moveloop() has been calling restore_attrib() every turn, and restore_attrib() loops through all six characteristics every time to check for ones that have temporary adjustments timing out. But ATIME(characteristic) is never set anywhere and no time outs would occur. So delete the call to restore_attrib() from moveloop(). This leaves that no-longer-called routine in place and updates it to handle Wounded_legs properly in case it ever does get used. Also, add a comment about "restore ability" not fixing temporarily lost characteristics due to hunger or wounded legs. And update unfixable_trouble_count() to check for those so that restore ability won't say "you feel great" when it fails to fix them.
This commit is contained in:
@@ -322,7 +322,6 @@ moveloop_core(void)
|
||||
u.udg_cnt = rn1(200, 50);
|
||||
}
|
||||
}
|
||||
restore_attrib();
|
||||
/* XXX This should be recoded to use something like regions - a list of
|
||||
* things that are active and need to be handled that is dynamically
|
||||
* maintained and not a list of special cases. */
|
||||
|
||||
Reference in New Issue
Block a user