Maybe a little improvement to reduce CPU usage?
1. Replace in db/IFeedable.cs
Code:
ushort FeedPower { get; set; }
with:
Code:
int FeedPower { get; set; }
2. Replace in db/data/Descriptors.cs
Code:
public ushort FeedPower { get; set; }
with:
Code:
public int FeedPower { get; set; }
3. Add your command
Code:
internal class PetMaxCommand : Command
{
public PetMaxCommand()
: base("petmax", 1)
{
}
protected override bool Process(Player player, RealmTime time, string[] args)
{
if (player.Pet == null) return false;
player.Pet.Feed(new PetFoodNomNomNom());
player.Pet.UpdateCount++;
return true;
}
private class PetFoodNomNomNom : IFeedable
{
public int FeedPower { get; set; }
public PetFoodNomNomNom()
{
FeedPower = Int32.MaxValue;
}
}
}