private static void AddLootItem(Creature creature, int itemID, int percentage) { if (RandomNumberGenerator.NumberBetween(1, 100) <= percentage) { creature.AddItemToInventory(ItemFactory.CreateGameItem(itemID)); } }