Please sign in to comment.
Fix return value from npc::scan_new_items()
npc::scan_new_items() was supposed to return true if some action was taken, but the logic was reversed, because npc::wield_better_weapon() returns true if a weapon was wielded. The upshot was that NPCs were being charged for the time to equip a weapon when they got new items but *didn't* equip a weapon. Rearrange the logic to make more sense.
- Loading branch information...