@Override
	public boolean tick(Tickable ticking, int tickID)
	{
		if(!super.tick(ticking,tickID))
			return false;
		if((tickID==Tickable.TICKID_MOB)&&(ticking instanceof MOB))
		{
			if((CMLib.dice().rollPercentage()>99)&&(((MOB)ticking).numItems()<9))
			{
				final Item I=CMClass.getItem("GenFoodResource");
				I.setName(_("an egg"));
				I.setDisplayText(_("an egg has been left here."));
				I.setMaterial(RawMaterial.RESOURCE_EGGS);
				I.setDescription(_("It looks like a chicken egg!"));
				I.basePhyStats().setWeight(1);
				CMLib.materials().addEffectsToResource(I);
				((MOB)ticking).addItem((Item)I.copyOf());
			}
			if((((MOB)ticking).numItems()>5)
			&&(((MOB)ticking).location()!=null)
			&&(((MOB)ticking).location().findItem(null,"an egg")==null))
			{
				final Item I=((MOB)ticking).findItem("an egg");
				if(I!=null)
				{
					((MOB)ticking).location().show(((MOB)ticking),null,CMMsg.MSG_NOISYMOVEMENT,_("<S-NAME> lay(s) an egg."));
					I.removeFromOwnerContainer();
					I.executeMsg((MOB)ticking,CMClass.getMsg((MOB)ticking,I,null,CMMsg.TYP_ROOMRESET,null));
					((MOB)ticking).location().addItem(I,ItemPossessor.Expire.Resource);
					((MOB)ticking).location().recoverRoomStats();
				}
			}
		}
		return true;
	}