trycall() is a short docall() wrapper that is a no-op if the item is already identified or the player has called the object type already. For some reason, many calls to docall() did those same exact checks beforehand. This commit eliminates that redundancy by converting those calls into trycall(), which is now made extern rather than local to do.c. No behavior should be changed by this commit; I've checked that none of the affected places could take a different code path now that the oc_name_known and oc_uname checks are removed.
68 KiB
68 KiB