private void SetCreatureHP(CreatureHelper.HPType hpType)
{
try
{
foreach (NWN2CreatureBlueprint creature in NWN2ToolsetMainForm.App.Module.Creatures)
CreatureHelper.SetCreatureHitPoints(creature, hpType);
foreach (NWN2GameArea area in NWN2ToolsetMainForm.App.Module.Areas.Values)
{
area.Demand();
foreach (NWN2CreatureInstance creature in area.Creatures)
CreatureHelper.SetCreatureHitPoints(creature, hpType);
area.LoadAllHookPoints();
area.OEISerialize();
area.Release();
}
}
catch (Exception exception)
{
MessageBox.Show(exception.ToString());
}
}