Added Chocolatiering.

This commit is contained in:
eos 2012-09-02 03:59:49 +00:00
parent af093655bc
commit a2e5f1ffd8
7 changed files with 389 additions and 16 deletions

View file

@ -4310,12 +4310,26 @@ namespace Server.Mobiles
treasureLevel = 0;
}
if ( !Summoned && !NoKillAwards && !IsBonded && treasureLevel >= 0 )
if ( !Summoned && !NoKillAwards && !IsBonded )
{
if ( m_Paragon && Paragon.ChestChance > Utility.RandomDouble() )
PackItem( new ParagonChest( this.Name, treasureLevel ) );
else if ( (Map == Map.Felucca || Map == Map.Trammel) && TreasureMap.LootChance >= Utility.RandomDouble() )
PackItem( new TreasureMap( treasureLevel, Map ) );
if ( treasureLevel >= 0 )
{
if ( m_Paragon && Paragon.ChestChance > Utility.RandomDouble() )
PackItem( new ParagonChest( this.Name, treasureLevel ) );
else if ( (Map == Map.Felucca || Map == Map.Trammel) && TreasureMap.LootChance >= Utility.RandomDouble() )
PackItem( new TreasureMap( treasureLevel, Map ) );
}
if ( m_Paragon && Paragon.ChocolateIngredientChance > Utility.RandomDouble() )
{
switch ( Utility.Random( 4 ) )
{
case 0: PackItem( new CocoaButter() ); break;
case 1: PackItem( new CocoaLiquor() ); break;
case 2: PackItem( new SackOfSugar() ); break;
case 3: PackItem( new Vanilla() ); break;
}
}
}
if ( !Summoned && !NoKillAwards && !m_HasGeneratedLoot )
@ -5509,4 +5523,4 @@ namespace Server.Mobiles
}
}
}
}
}