Exemplo n.º 1
0
            public DigEntry(ArtifactMap map, bool enabled) : base(6148, 2)
            {
                m_DisplayMap = map;

                if (!enabled)
                {
                    this.Flags |= CMEFlags.Disabled;
                }
            }
Exemplo n.º 2
0
            public DigTimer(Mobile from, ArtifactMap artifactMap, Point3D location, Map map) : base(TimeSpan.Zero, TimeSpan.FromSeconds(1.0))
            {
                m_From        = from;
                m_ArtifactMap = artifactMap;

                m_Location   = location;
                m_DisplayMap = map;

                m_NextSkillTime  = from.NextSkillTime;
                m_NextSpellTime  = from.NextSpellTime;
                m_NextActionTime = from.NextActionTime;
                m_LastMoveTime   = from.LastMoveTime;

                Priority = TimerPriority.TenMS;
            }
        public override void OnItemLifted(Mobile from, Item item)
        {
            if (m_Spawn)  //if it's allowed to spawn let it else don't.
            {
                bool notYetLifted = !m_Lifted.Contains(item);

                from.RevealingAction();

                if (notYetLifted)
                {
                    m_Lifted.Add(item);

                    if (0.1 >= Utility.RandomDouble())   // 10% chance to spawn a new monster
                    {
                        ArtifactMap.Spawn(m_ArtifactLevel, GetWorldLocation(), Map, from, false);
                    }
                }
            }

            base.OnItemLifted(from, item);
        }
Exemplo n.º 4
0
			public DigEntry( ArtifactMap map, bool enabled ) : base( 6148, 2 )
			{
				m_DisplayMap = map;

				if ( !enabled )
					this.Flags |= CMEFlags.Disabled;
			}
Exemplo n.º 5
0
			public OpenMapEntry( ArtifactMap map ) : base( 6150, 2 )
			{
				m_DisplayMap = map;
			}
Exemplo n.º 6
0
			public DecodeMapEntry( ArtifactMap map ) : base( 6147, 2 )
			{
				m_DisplayMap = map;
			}
Exemplo n.º 7
0
			public DigTimer( Mobile from, ArtifactMap artifactMap, Point3D location, Map map ) : base( TimeSpan.Zero, TimeSpan.FromSeconds( 1.0 ) )
			{
				m_From = from;
				m_ArtifactMap = artifactMap;

				m_Location = location;
				m_DisplayMap = map;

				m_NextSkillTime = from.NextSkillTime;
				m_NextSpellTime = from.NextSpellTime;
				m_NextActionTime = from.NextActionTime;
				m_LastMoveTime = from.LastMoveTime;

				Priority = TimerPriority.TenMS;
			}
Exemplo n.º 8
0
			public DigTarget( ArtifactMap map ) : base( 6, true, TargetFlags.None )
			{
				m_DisplayMap = map;
			}
Exemplo n.º 9
0
 public OpenMapEntry(ArtifactMap map) : base(6150, 2)
 {
     m_DisplayMap = map;
 }
Exemplo n.º 10
0
 public DecodeMapEntry(ArtifactMap map) : base(6147, 2)
 {
     m_DisplayMap = map;
 }
Exemplo n.º 11
0
 public DigTarget(ArtifactMap map) : base(6, true, TargetFlags.None)
 {
     m_DisplayMap = map;
 }