Пример #1
0
        /// <summary>
        /// Initialize a new PC with default values.
        /// </summary>
        public PC()
        {
            ++NumPc;
            Prompt         = "&+g<%hhp %mm %vmv>\r\n<&n%D %B&+g>&n ";
            Score          = 0.0;
            PageLength     = 25;
            IsSwitched     = false;
            Speaking       = 0;
            ActionFlags[0] = PLAYER_CAST_TICK.Vector | PLAYER_TELL.Vector | PLAYER_SHOUT.Vector |
                             PLAYER_PROMPT.Vector | PLAYER_COMBINE.Vector | PLAYER_MAP.Vector |
                             PLAYER_PAGER.Vector | PLAYER_AUTOWRAP.Vector | PLAYER_COLOR.Vector | PLAYER_VICIOUS.Vector;
            HitpointModifier = 0;
            GuildRank        = 0;
            Train            = 0;
            Frags            = 0;
            PlayerKills      = 0;
            PlayerDeaths     = 0;
            MobKills         = 0;
            MobDeaths        = 0;
            FirstaidTimer    = 0;
            CreationTime     = new DateTime(); // Creation time, actual.
            Created          = new ItemStatus();
            Destroyed        = new ItemStatus();
            Birthdate        = new DateTime(); // Creation time used for age calculations.  Unlike creation time, it can change.
            OriginalHome     = StaticRooms.GetRoomNumber("ROOM_NUMBER_START");
            CurrentHome      = StaticRooms.GetRoomNumber("ROOM_NUMBER_START");
            Height           = 60 + MUDMath.Dice(2, 10);
            Weight           = 15 + (Height * 2);
            RaceStrMod       = 0;
            RaceIntMod       = 0;
            RaceWisMod       = 0;
            RaceDexMod       = 0;
            RaceConMod       = 0;
            RaceAgiMod       = 0;
            RaceChaMod       = 0;
            RacePowMod       = 0;
            RaceLukMod       = 0;
            MaxStrMod        = 0;
            MaxIntMod        = 0;
            MaxWisMod        = 0;
            MaxDexMod        = 0;
            MaxConMod        = 0;
            MaxAgiMod        = 0;
            MaxChaMod        = 0;
            MaxPowMod        = 0;
            MaxLukMod        = 0;
            AggressiveLevel  = -1;
            Tradition        = 0;
            SkillPoints      = 0;
            Chi                 = 0;
            MaxChi              = 0;
            Stance              = String.Empty;
            LastRentLocation    = 0;
            LostHp              = 0;
            MonkRestriction     = 0;
            IsWieldingTwohanded = false;
            Editing             = SocketConnection.EditState.none;
            Security            = 0;
            int count;

            SpellAptitude = new SerializableDictionary <String, Int32>();
            SkillAptitude = new SerializableDictionary <String, Int32>();
            SongAptitude  = new SerializableDictionary <String, Int32>();
            MonkAptitude  = new SerializableDictionary <String, Int32>();

            LanguageAptitude = new int[Race.MAX_LANG];
            for (count = 0; count < Race.MAX_LANG; ++count)
            {
                LanguageAptitude[count] = 0;
            }
            TrophyData = new TrophyData[Limits.MAX_LEVEL];
            for (count = 0; count < Limits.MAX_LEVEL; ++count)
            {
                TrophyData[count] = new TrophyData();
                TrophyData[count].MobIndexNumber = 0;
                TrophyData[count].NumberKilled   = 0;
            }
            Thirst        = 48;
            Hunger        = 48;
            Drunk         = 0;
            Bank          = new Coins();
            Bank.Copper   = 0;
            Bank.Silver   = 0;
            Bank.Gold     = 0;
            Bank.Platinum = 0;
        }
Пример #2
0
        /// <summary>
        /// Initialize a new PC with default values.
        /// </summary>
        public PC()
        {
            ++NumPc;
            Prompt = "&+g<%hhp %mm %vmv>\r\n<&n%D %B&+g>&n ";
            Score = 0.0;
            PageLength = 25;
            IsSwitched = false;
            Speaking = 0;
            ActionFlags[0] = PLAYER_CAST_TICK.Vector | PLAYER_TELL.Vector | PLAYER_SHOUT.Vector |
                PLAYER_PROMPT.Vector | PLAYER_COMBINE.Vector | PLAYER_MAP.Vector |
                PLAYER_PAGER.Vector | PLAYER_AUTOWRAP.Vector | PLAYER_COLOR.Vector | PLAYER_VICIOUS.Vector;
            HitpointModifier = 0;
            GuildRank = 0;
            Train = 0;
            Frags = 0;
            PlayerKills = 0;
            PlayerDeaths = 0;
            MobKills = 0;
            MobDeaths = 0;
            FirstaidTimer = 0;
            CreationTime = new DateTime(); // Creation time, actual.
            Created = new ItemStatus();
            Destroyed = new ItemStatus();
            Birthdate = new DateTime(); // Creation time used for age calculations.  Unlike creation time, it can change.
            OriginalHome = StaticRooms.GetRoomNumber("ROOM_NUMBER_START");
            CurrentHome = StaticRooms.GetRoomNumber("ROOM_NUMBER_START");
            Height = 60 + MUDMath.Dice( 2, 10 );
            Weight = 15 + ( Height * 2 );
            RaceStrMod = 0;
            RaceIntMod = 0;
            RaceWisMod = 0;
            RaceDexMod = 0;
            RaceConMod = 0;
            RaceAgiMod = 0;
            RaceChaMod = 0;
            RacePowMod = 0;
            RaceLukMod = 0;
            MaxStrMod = 0;
            MaxIntMod = 0;
            MaxWisMod = 0;
            MaxDexMod = 0;
            MaxConMod = 0;
            MaxAgiMod = 0;
            MaxChaMod = 0;
            MaxPowMod = 0;
            MaxLukMod = 0;
            AggressiveLevel = -1;
            Tradition = 0;
            SkillPoints = 0;
            Chi = 0;
            MaxChi = 0;
            Stance = String.Empty;
            LastRentLocation = 0;
            LostHp = 0;
            MonkRestriction = 0;
            IsWieldingTwohanded = false;
            Editing = SocketConnection.EditState.none;
            Security = 0;
            int count;

            SpellAptitude = new SerializableDictionary<String, Int32>();
            SkillAptitude = new SerializableDictionary<String, Int32>();
            SongAptitude = new SerializableDictionary<String, Int32>();
            MonkAptitude = new SerializableDictionary<String, Int32>();

            LanguageAptitude = new int[Race.MAX_LANG];
            for (count = 0; count < Race.MAX_LANG; ++count)
            {
                LanguageAptitude[ count ] = 0;
            }
            TrophyData = new TrophyData[ Limits.MAX_LEVEL ];
            for( count = 0; count < Limits.MAX_LEVEL; ++count )
            {
                TrophyData[ count ] = new TrophyData();
                TrophyData[ count ].MobIndexNumber = 0;
                TrophyData[ count ].NumberKilled = 0;
            }
            Thirst = 48;
            Hunger = 48;
            Drunk = 0;
            Bank = new Coins();
            Bank.Copper = 0;
            Bank.Silver = 0;
            Bank.Gold = 0;
            Bank.Platinum = 0;
        }