Пример #1
0
        protected override void ServerInitializeCharacterMob(ServerInitializeData data)
        {
            base.ServerInitializeCharacterMob(data);

            this.weaponPresets = new AiWeaponPresetList()
                                 .Add(new AiWeaponPreset(GetProtoEntity <ItemWeaponLizardFangs>()))
                                 .Add(new AiWeaponPreset(GetProtoEntity <ItemWeaponLizardPoison>()))
                                 .ToReadReadOnly();

            ServerMobWeaponHelper.TrySetWeapon(data.GameObject,
                                               this.weaponPresets[0].ProtoWeapon,
                                               rebuildWeaponsCacheNow: false);
        }
Пример #2
0
        protected override void ServerInitializeCharacterMob(ServerInitializeData data)
        {
            base.ServerInitializeCharacterMob(data);

            if (data.IsFirstTimeInit)
            {
                data.PrivateState.HoldPosition = data.GameObject.TilePosition;
            }

            data.PrivateState.DamageTracker = new ServerBossDamageTracker();

            this.weaponsListPrimary = new AiWeaponPresetList()
                                      .Add(new AiWeaponPreset(GetProtoEntity <ItemWeaponPragmiumQueenMelee>()))
                                      .Add(new AiWeaponPreset(GetProtoEntity <ItemWeaponPragmiumQueenRanged>()))
                                      .ToReadReadOnly();

            this.weaponsListNovaAttack = new AiWeaponPresetList()
                                         .Add(new AiWeaponPreset(GetProtoEntity <ItemWeaponPragmiumQueenNova>()))
                                         .ToReadReadOnly();

            ServerMobWeaponHelper.TrySetWeapon(data.GameObject,
                                               this.weaponsListPrimary[0].ProtoWeapon,
                                               rebuildWeaponsCacheNow: false);
        }