# Research:NPC insights

## Holy Insight mapping

Holy Insight provides textual descriptions of the target's stats and abilities. The mapping to numbers is based on the Holy Insight priests' wiki data, although with some corrections as the data isn't entirely correct.

For extremely poor we normally assume unset or zero.

Description Stats Skills
extremely poor 0 0
very poor 6-7 35-50
quite poor 8-9 50-66
below average 10-11 66-100
average 12-14 100-150
better than average 15-16 150-200
reasonably good 17-18 200-250
quite good 19-20 250-300
very good 21 300-350
extremely good 22 350-400
masterly 23+ 400+

## Weight and hit points formulae

Based on Hit Point Calculator, the formula for humans can be found below. It is quite probably the hit points part of this applies to all species; if we know their weight, we could probably calculate their hit points fairly precisely. Basic testing with small animals and pets suggests this might be true. Corpses weigh the same as live things, which can be confirmed by weighing (some) pets.

``` weight = 45.55 + 2.65 * floor((constitution + 3 * strength) / 4)

if (weight <= 32.5)
factor = floor(20 * weight)
elseif (weight <= 40)
factor = floor(65 + 18 * weight)
elseif (weight <= 47.5)
factor = floor(145 + 16 * weight)
elseif (weight <= 55)
factor = floor(240 + 14 * weight)
elseif (weight <= 62.5)
factor = floor(350 + 12 * weight)
elseif (weight <= 70)
factor = floor(475 + 10 * weight)
elseif (weight <= 77.5)
factor = floor(615 + 8 * weight)
elseif (weight <= 85)
factor = floor(770 + 6 * weight)
elseif (weight <= 92.5)
factor = floor(940 + 4 * weight)
elseif (weight <= 100)
factor = floor(1125 + 2 * weight)
else
factor = 1325
endif

hitpoints = floor(factor * (5 * (constitution + 15) + 2 * health) / 350)
```