Was Messing Around Creating a new type of Paragon Creature that's stronger when I accidentally found both of these methods used in different cases. In the event a Champion became a Paragon there was a Line to ALWAYS make it drop a chest. Where if a stronger than normal creature became a paragon it had a Chance to also roll for a chest.
Just thought this would be helpful to anyone wanting to add edit or manipulate drops and chances for drops.
public override void OnDeath(Container c)
{
base.OnDeath(c);
if (IsParagon)
c.DropItem(new ParagonChest(Name, TreasureMapLevel));
if ( Paragon.ChestChance > Utility.RandomDouble() )
c.DropItem( new ParagonChest( Name, TreasureMapLevel ) );
}
Just thought this would be helpful to anyone wanting to add edit or manipulate drops and chances for drops.