Remove borg-specific object_kind_{attr,char} and use the standard ones

Signed-off-by: Peter Denison <angband@marshadder.org>
Borg: switch to using struct object_kind * instead of k_idx (almost) throughout
Remove special check for Palantir, which a) no longer exists, and b) won't
  work now anyway, as artifact special kinds are dynamically created
Change kind ranges for gold into check for TV_GOLD, and remove K_MONEY_*

Signed-off-by: Peter Denison <angband@marshadder.org>
Borg: move player class and race from globals to where they are used

Signed-off-by: Peter Denison <angband@marshadder.org>
Allow borg to deal with new-style torches
Torches now have only radius 1 light, so don't require 2 until DL10
Torches disappear once they run out, so no need to swap out
Torches cannot be refuelled, so use the existing one until it runs out,
  provided we have another one to switch to
Use light PVAL now to work out light radius

Signed-off-by: Peter Denison <angband@marshadder.org>
Reward borg for carrying one more unit of fuel (6 not 5) so it bounces less

Signed-off-by: Peter Denison <angband@marshadder.org>
Use known 'no fuel' flag on light to see if we need to carry fuel or not

Signed-off-by: Peter Denison <angband@marshadder.org>
Use map_info() for borg's knowledge of the visible screen, not displayed screen glyphs

Signed-off-by: Peter Denison <angband@marshadder.org>
Remove obsolete %^s from borg - no need to replace with capitalisation

Signed-off-by: Peter Denison <angband@marshadder.org>
Fix borg squelch/kill item
The kill/squelch item sequence now concludes with a selection of item only
  or all of some grouping, instead of a confirmation. Adapt to this

Signed-off-by: Peter Denison <angband@marshadder.org>
Add missing values to borg.txt and set defaults whether or not the file exists
This means the default is used if the file doesn't have a particular entry

Signed-off-by: Peter Denison <angband@marshadder.org>
Borg: fixup borg_prepared() return code

Signed-off-by: Peter Denison <angband@marshadder.org>
Prevent borg interrupting its own resting or repeated commands

Signed-off-by: Peter Denison <angband@marshadder.org>
Borg: prevent crash on removal of 'take' struct

Signed-off-by: Peter Denison <angband@marshadder.org>
Borg: prevent crash on checking item with no inscription

Signed-off-by: Peter Denison <angband@marshadder.org>
Borg: prevent FPE by bracketing conditional divisor

Signed-off-by: Peter Denison <angband@marshadder.org>
Borg: add fix to get out of Inven mode if we're there accidentally

Signed-off-by: Peter Denison <angband@marshadder.org>
Borg: fix typo

Signed-off-by: Peter Denison <angband@marshadder.org>
Base borg knowledge only on known item flags, to prevent cheating

Signed-off-by: Peter Denison <angband@marshadder.org>
Fix borg targetting
Don't overwrite existing gained knowledge e.g. from missed shots with map
  information meaning 'no knowledge'
Now light radius is often only 1, treat ..@. and .@.. as corridors

Signed-off-by: Peter Denison <angband@marshadder.org>
Adjust borg's idea of quiver size down to MAX_STACK_SIZE (x2 for rangers)

Signed-off-by: Peter Denison <angband@marshadder.org>