コード例 #1
0
            public DigEntry(ArtifactMap map, bool enabled) : base(6148, 2)
            {
                m_DisplayMap = map;

                if (!enabled)
                {
                    this.Flags |= CMEFlags.Disabled;
                }
            }
コード例 #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;
            }
コード例 #3
0
        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);
        }
コード例 #4
0
			public DigEntry( ArtifactMap map, bool enabled ) : base( 6148, 2 )
			{
				m_DisplayMap = map;

				if ( !enabled )
					this.Flags |= CMEFlags.Disabled;
			}
コード例 #5
0
			public OpenMapEntry( ArtifactMap map ) : base( 6150, 2 )
			{
				m_DisplayMap = map;
			}
コード例 #6
0
			public DecodeMapEntry( ArtifactMap map ) : base( 6147, 2 )
			{
				m_DisplayMap = map;
			}
コード例 #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;
			}
コード例 #8
0
			public DigTarget( ArtifactMap map ) : base( 6, true, TargetFlags.None )
			{
				m_DisplayMap = map;
			}
コード例 #9
0
 public OpenMapEntry(ArtifactMap map) : base(6150, 2)
 {
     m_DisplayMap = map;
 }
コード例 #10
0
 public DecodeMapEntry(ArtifactMap map) : base(6147, 2)
 {
     m_DisplayMap = map;
 }
コード例 #11
0
 public DigTarget(ArtifactMap map) : base(6, true, TargetFlags.None)
 {
     m_DisplayMap = map;
 }