I was woundering if this might solve my ranodm power scroll loot problem, im not at home right now and wont be for some days so i cant test this right now.
But if someone knows something about this, and ideas would be great.
But if someone knows something about this, and ideas would be great.
Code:
public override void GenerateLoot()
{
AddLoot( LootPack.FilthyRich, 3 );
AddLoot( LootPack.Gems, 5 );
if ( 0.03 > Utility.RandomDouble() )
PackItem( new TunicOfFire() );
if ( 0.10 > Utility.RandomDouble() )
PackItem( new PowerScroll(SkillName.SetValues( 0, m_PossibleSkillName[Utility.Random(m_PossibleSkillName.Length], (Utility.Random( 4 ) == 0 ? 120.0 : 115.0 : 110.0 : 105.0) );
}
private static SkillName[] m_PossibleSkillName = new SkillName[]
{
SkillName.Archery,
SkillName.Magery,
SkillName.Healing
};