Full Version : Dropping blessed items on death
xmlspawner >>XMLSpawner Mods and Tips >>Dropping blessed items on death
<< Prev | Next >>
ArteGordon- 07-28-2006
By default, blessed items carried by creatures do not drop to their corpse on death.
I personally dont care for this behavior in basecreatures (it isnt like they have any reason to keep blessed items after death).
You can change this by simply adding this to your basecreature.cs

CODE
// ARTEGORDONMOD // allow equipped blessed items to drop into corpses public override DeathMoveResult GetParentMoveResultFor(Item item) { if (item.LootType == LootType.Blessed) return DeathMoveResult.MoveToCorpse;
return item.OnParentDeath(this);
}
// ARTEGORDONMOD
// allow blessed items to drop into corpses
public override DeathMoveResult GetInventoryMoveResultFor(Item item)
{
if (item.LootType == LootType.Blessed) return DeathMoveResult.MoveToCorpse;
return item.OnInventoryDeath(this);
}

Now all items in a creatures pack, even blessed items, will drop on death. The GetParentMoveResultFor mod will also allow equipped items that are blessed to be dropped.
Note, this will have no effect on players.
Hanse46- 03-11-2008
Does it matter where this is added?
ArteGordon- 03-11-2008
not really. You just have to make sure that you add it within the basecreature class definition, and not put it inside of another method or some other invalid spot.
If you put it in and dont get compiler errors, then it is fine.