Example #1
0
    /// <summary>
    /// ボスのパラメータを格納
    /// </summary>
    private static void BossData(CharaDataSet charaDataSet, int rowIdx, ICell valueCell)
    {
        BossData bossData = new BossData();

        if (valueCell.CellType == CellType.String)
        {
            string posCsv = valueCell.StringCellValue;
            if (!posCsv.Contains(","))
            {
                return;
            }

            string[] posArray = posCsv.Split(',');
            string   posx     = posArray[0].Replace("(", "");
            string   posy     = posArray[1].Replace(")", "");
            float    x        = float.Parse(posx);
            float    y        = float.Parse(posy);
            Vector2  pos      = new Vector2(x, y);
            bossData.translate_positions.Add(pos);
        }
        else
        {
            bossData.param = (float)valueCell.NumericCellValue;
        }

        charaDataSet.BossAdd(bossData);
    }
Example #2
0
    private void YesResults()
    {
        for (var i = 0; i < results.Count; i++)
        {
            var file = results[i];
            EditorGUILayout.BeginHorizontal();
            {
                EditorGUILayout.LabelField(Path.GetFileNameWithoutExtension(file));
                EditorGUILayout.Space();
                if (GUILayout.Button("Edit"))
                {
                    EditorGUIUtility.PingObject(AssetDatabase.LoadAssetAtPath(file, typeof(Object)));
                    currentBoss = (BossData)AssetDatabase.LoadAssetAtPath(file, typeof(Object));
                    initialized = false;
                    editingBoss = true;
                }

                if (GUILayout.Button("Delete"))
                {
                    if (EditorUtility.DisplayDialog("Are you sure you want to delete this?", "Delete " + file, "Confirm", "Cancel"))
                    {
                        AssetDatabase.DeleteAsset(file);
                        results.Remove(file);
                        SearchProject();
                    }
                }
            }
            EditorGUILayout.EndHorizontal();
        }
    }
Example #3
0
    public static BossData Load(TextAsset asset)
    {
        BossData bossData   = null;
        var      serializer = new XmlSerializer(typeof(BossData));

        using (var stream = new StringReader(asset.text))
        {
            bossData = serializer.Deserialize(stream) as BossData;
        }

        bossData.BossTypes = new Dictionary <int, BossType>();
        foreach (BossType type in bossData.BossTypeArray)
        {
            /*try
             * {*/
            bossData.BossTypes.Add(type.Id, type);

            /*}
             * catch (ArgumentException e)
             * {
             *  Debug.Log("ArgumentException: " + e.Message);
             * }*/
        }

        return(bossData);
    }
Example #4
0
        /// <summary>
        /// 获取野外Boss的字典
        /// </summary>
        /// <returns></returns>
        public static Dictionary <int, BossData> GetBossDictData()
        {
            Dictionary <int, BossData> dict = new Dictionary <int, BossData>();

            BossData bossData = null;
            Monster  monster  = null;

            for (int i = 0; i < BossList.Count; i++)
            {
                monster = BossList[i];

                string nextBirthTime = "";
                if (!monster.Alive)
                {
                    nextBirthTime = monster.MonsterZoneNode.GetNextBirthTimePoint();
                }

                bossData = new BossData()
                {
                    MonsterID       = monster.RoleID,
                    ExtensionID     = monster.MonsterInfo.ExtensionID,
                    KillMonsterName = monster.WhoKillMeName,
                    KillerOnline    = (null != GameManager.ClientMgr.FindClient(monster.WhoKillMeID)) ? 1 : 0,
                    NextTime        = nextBirthTime,
                };

                dict[bossData.ExtensionID] = bossData;
            }

            return(dict);
        }
Example #5
0
    public void SetBoss(BossData _data)
    {
        originHp  = _data.hp;
        monsterHp = originHp;

        //bossPattenNum = _data.pattenType;
        bossPattenNum = Random.Range(0, 2);

        deadColor = _data.deadColor;
        animator.runtimeAnimatorController = _data.runtimeAnimator;

        circleCollider.offset = _data.colliderOffset;
        circleCollider.radius = _data.radius;

        isDead = false;
        isUp   = false;
        isLeft = false;

        attackTime = _data.attackTime;

        originScale        = transform.localScale;
        transform.position = _data.createPos;
        originPos          = transform.position;

        hpText.text = monsterHp.ToString();

        SetPattenInit(bossPattenNum);
    }
Example #6
0
        // public IActionResult Index()
        // {
        //     ViewData["Dados"] = _repository.GetKilledYesterday();
        //     return View();
        // }

        public IActionResult Index()
        {
            var all   = _repository.GetAll();
            var names = all.GroupBy(x => x.BossName).Select(z => z.First().BossName).ToList();

            ICollection <BossData> bossData = new List <BossData>();

            foreach (var name in names)
            {
                var dates = all.Where(x => x.BossName == name).Select(x => x.KilledDate).ToList();

                Calculadora.Calcula(dates,
                                    out int IntervaloMaior,
                                    out int IntervaloMenor,
                                    out int IntervaloFrequente,
                                    out decimal IntervaloMedia,
                                    out int Registros,
                                    out DateTime? LastSee);

                var bossD = new BossData(name,
                                         LastSee,
                                         IntervaloMenor,
                                         IntervaloMaior,
                                         IntervaloMedia,
                                         IntervaloFrequente,
                                         Registros);
                bossData.Add(bossD);
            }

            ViewData["Dados"] = bossData;
            return(View());
        }
Example #7
0
    //puts the battles into a data structure that has a list of battles
    //each battle is a dictionary of char to float[], the char being the
    //key included in the battle, and the float[] being all the times that is pressed
    public void setNewBoss()
    {
        currentFightData = new List <Dictionary <char, float[]> >();
        if (currentBossNumber >= bossDatas.Count)
        {
            Debug.Log("game over");
        }

        BossData boss = bossDatas[currentBossNumber];

        currentBattleMeasureLengths = new List <int>();
        foreach (Battle battle in boss.fight)
        {
            //each battle is a dictionary
            //battle is a dictionary mapping the char to the corresponding times it is hit
            Dictionary <char, float[]> newBattle = new Dictionary <char, float[]>();
            foreach (Track track in battle.inputs)
            {
                try
                {
                    newBattle[track.key[0]] = track.data;
                }
                catch (Exception e) {
                    Debug.Log("cannot get key");
                }
            }
            currentBattleMeasureLengths.Add(battle.numMeasures);
            currentFightData.Add(newBattle);
        }
    }
    static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
    {
        foreach (string asset in importedAssets)
        {
            if (!filePath.Equals(asset))
            {
                continue;
            }

            BossData data = (BossData)AssetDatabase.LoadAssetAtPath(exportPath, typeof(BossData));
            if (data == null)
            {
                data = ScriptableObject.CreateInstance <BossData> ();
                AssetDatabase.CreateAsset((ScriptableObject)data, exportPath);
                data.hideFlags = HideFlags.NotEditable;
            }

            data.sheets.Clear();
            using (FileStream stream = File.Open(filePath, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) {
                IWorkbook book = null;
                if (Path.GetExtension(filePath) == ".xls")
                {
                    book = new HSSFWorkbook(stream);
                }
                else
                {
                    book = new XSSFWorkbook(stream);
                }

                foreach (string sheetName in sheetNames)
                {
                    ISheet sheet = book.GetSheet(sheetName);
                    if (sheet == null)
                    {
                        Debug.LogError("[QuestData] sheet not found:" + sheetName);
                        continue;
                    }

                    BossData.Sheet s = new BossData.Sheet();
                    s.name = sheetName;

                    for (int i = 1; i <= sheet.LastRowNum; i++)
                    {
                        IRow  row  = sheet.GetRow(i);
                        ICell cell = null;

                        BossData.Param p = new BossData.Param();

                        cell = row.GetCell(0); p.enemy_id = (int)(cell == null ? 0 : cell.NumericCellValue);
                        cell = row.GetCell(1); p.hp = (int)(cell == null ? 0 : cell.NumericCellValue);
                        s.list.Add(p);
                    }
                    data.sheets.Add(s);
                }
            }

            ScriptableObject obj = AssetDatabase.LoadAssetAtPath(exportPath, typeof(ScriptableObject)) as ScriptableObject;
            EditorUtility.SetDirty(obj);
        }
    }
Example #9
0
 public void Initialize(BossData spawnerData)
 {
     m_currentPhase = 0;
     m_pointValue   = spawnerData.PointValue;
     // Set bullet pattern
     m_bossPhases = spawnerData.BossPhases;
     base.Initialize(spawnerData.StartingLocation, m_bossPhases[m_currentPhase].StartingHealth, 0f);
 }
Example #10
0
    /// <summary>
    /// リストにデータを追加
    /// </summary>
    /// <param name="data"></param>
    public void BossAdd(BossData data)
    {
        if (boss_list == null)
        {
            return;
        }

        boss_list.Add(data);
    }
Example #11
0
        public async Task <IActionResult> SaveBoss([FromBody] BossData request)
        {
            var nameClaim = CurrentUserName;

            if (nameClaim == null)
            {
                return(Unauthorized());
            }

            if (!Guid.TryParse(request.Id, out var guid))
            {
                guid = Guid.Empty;
            }
            var boss = await _dataContext.Bosses.FirstOrDefaultAsync(entity => entity.Identifier == guid).ConfigureAwait(false);

            if (boss != null)
            {
                if (boss.UserName != nameClaim)
                {
                    return(Unauthorized());
                }
                boss.Data      = request.Data;
                boss.IsPrivate = request.IsPrivate;
            }
            else
            {
                boss = new BossEntity()
                {
                    Identifier = Guid.NewGuid(),
                    Name       = request.Name,
                    UserName   = request.UserName,
                    IsPrivate  = request.IsPrivate,
                    Data       = request.Data,
                    Reference  = request.Reference,
                    CreateDate = DateTimeOffset.UtcNow,
                    Game       = request.Game
                };
                await _dataContext.Bosses.AddAsync(boss);
            }
            boss.ModifiedDate = DateTimeOffset.UtcNow;

            await _dataContext.SaveChangesAsync().ConfigureAwait(false);

            return(Json(new BossData()
            {
                Id = boss.Identifier.ToString("N"),
                Name = boss.Name,
                UserName = boss.UserName,
                Data = "",
                IsPrivate = boss.IsPrivate,
                Reference = boss.Reference.GetValueOrDefault(),
                CreateDate = boss.CreateDate.GetValueOrDefault(),
                ModifiedDate = boss.ModifiedDate.GetValueOrDefault(),
                Game = boss.Game
            }));
        }
Example #12
0
    public BossActor(BossData boss, MonsterHandler handler, FloatingCombatTextInterface FCTInterface, BossBattleController controller)
    {
        this.boss         = boss;
        this.handler      = handler;
        this.Health       = boss.MaxHealth;
        this.FCTInterface = FCTInterface;
        this.controller   = controller;

        this.speed = boss.Speed;
    }
Example #13
0
        public CSVBuilder(ParsedLog log, SettingsContainer settings, Statistics statistics)
        {
            boss_data = log.getBossData();
            p_list    = log.getPlayerList();

            this.settings       = settings;
            HTMLHelper.settings = settings;

            this.statistics = statistics;
        }
Example #14
0
 void SetupLevel(int difficulty)
 {
     difficultyLevel = difficulty;
     bossData        = ResourceManager.LoadBossLevel(difficulty);
     if (bossData == null)
     {
         EndWith(false);
         return;
     }
     bossHealth.InitializeAndStart(bossData);
 }
 public ParsedLog(LogData log_data, BossData boss_data, AgentData agent_data, SkillData skill_data,
                  CombatData combat_data, MechanicData mech_data, List <Player> p_list, Boss boss)
 {
     this.log_data    = log_data;
     this.boss_data   = boss_data;
     this.agent_data  = agent_data;
     this.skill_data  = skill_data;
     this.combat_data = combat_data;
     this.mech_data   = mech_data;
     this.p_list      = p_list;
     this.boss        = boss;
 }
        public static BossData GetDefaultBossData(BossType type)
        {
            switch (type)
            {
            case BossType.Cloak:
                defaultBossData = new BossData(type, BossModels.CreepBossCloak.ToString(), 500, 0.5f, 15.0f,
                                               100, DamageModifierValuesForBoss());
                break;
            }

            return(defaultBossData);
        }
Example #17
0
    public LevelData(string jsonString)
    {
        JSONNode        jsonData  = SimpleJSON.JSON.Parse(jsonString);
        List <WaveData> wavesList = new List <WaveData>();

        foreach (JSONNode wave in jsonData["Waves"])
        {
            wavesList.Add(new WaveData(wave));
        }

        Waves = wavesList.ToArray();

        Boss = new BossData(jsonData["Boss"]);
    }
Example #18
0
    public override bool Use(Player player)
    {
        foreach (Ability effect in player.abilities)
        {
            effect.OnConsumeItem(player, this);
        }

        Vector2i  tilePos = MapManager.instance.GetMapTileAtPoint(player.Position);
        BossData  data    = new BossData(tilePos.x, tilePos.y, bossType);
        BossEnemy spawn   = MapManager.instance.AddBossEntity(data);

        spawn.SetHostility(Hostility.Friendly);

        return(true);
        //player.Inventory.RemoveItem(index);
    }
Example #19
0
 public void Init()
 {
     player2D = GameObject.FindWithTag("Player2D");
     player3D = GameObject.FindWithTag("Player3D");
     bossRailgun.SetActive(false);
     targetPlayer2D     = player2D.transform;
     targetPlayer3D     = player3D.transform;
     bossData           = GetComponent <BossData>();
     bossRotationSpeed  = 2f;
     warpPointNumber    = warpPoint.Length;
     nowPositionNumber  = 0;
     nextPositionNumber = 0;
     attackPattern      = 0;
     attackTime         = 0f;
     EffectFactory.Instance.Create("bosswarp", transform.position, transform.rotation);
     OnlineLevel.Instance.ChangeBossBGM();
 }
Example #20
0
    public void SetNewBoss(BossData boss)
    {
        CurrentBoss = boss;

        _bossStats.MaxHP          = boss.MaxHP;
        _bossStats.MaxMana        = boss.MaxMana;
        _bossStats.HPChargeRate   = boss.HPChargeRate;
        _bossStats.ManaChargeRate = boss.ManaChargeRate;

        _bossStats.HP   = _bossStats.MaxHP;
        _bossStats.Mana = _bossStats.MaxMana;

        NameText.text    = boss.Name;
        BossImage.sprite = boss.Picture;
        Deck             = boss.Deck;
        DrawTimeOut      = boss.CoolDown;
    }
Example #21
0
    int warpPointNumber; //ワープポイントの数

    #endregion Fields

    #region Methods

    public void Init()
    {
        player2D = GameObject.FindWithTag ("Player2D");
        player3D = GameObject.FindWithTag ("Player3D");
        bossRailgun.SetActive (false);
        targetPlayer2D = player2D.transform;
        targetPlayer3D = player3D.transform;
        bossData = GetComponent<BossData>();
        bossRotationSpeed = 2f;
        warpPointNumber = warpPoint.Length;
        nowPositionNumber = 0;
        nextPositionNumber = 0;
        attackPattern = 0;
        attackTime = 0f;
        EffectFactory.Instance.Create("bosswarp", transform.position, transform.rotation);
        OnlineLevel.Instance.ChangeBossBGM();
    }
Example #22
0
 void ShotBullet()
 {
     if (CheckHitRayWithTag(ray, "Enemy", 1.0f))
     {
         hitSound     = true;
         enemyDataNew = raycastHit.collider.gameObject.GetComponentInParent <EnemyDataNew>();
         enemyDataNew.EnemyDamage("NormalBullet");
     }
     else if (CheckHitRayWithTag(ray, "Boss", 1.0f))
     {
         hitSound = true;
         bossData = raycastHit.collider.gameObject.GetComponentInParent <BossData>();
         bossData.BossDamage("NormalBullet", "3D");
     }
     else
     {
         hitSound = false;
     }
 }
Example #23
0
        private void ButtonFailSave_Click(object sender, EventArgs e)
        {
            DialogResult result = MessageBox.Show($"This will change all non-golem, non-wvw, non-event Twitch message on fail to \"{textBoxFailMessage.Text}\".\nAre you sure?", "Confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);

            if (result.Equals(DialogResult.Yes))
            {
                Dictionary <int, BossData> BossesToChange = allBosses
                                                            .Where(x => !x.Value.Type.Equals(BossType.Golem))
                                                            .Where(x => !x.Value.Type.Equals(BossType.WvW))
                                                            .Where(x => !x.Value.Event)
                                                            .ToDictionary(x => x.Key, x => x.Value);
                foreach (int key in BossesToChange.Keys)
                {
                    BossData boss = allBosses[key];
                    boss.FailMsg = textBoxFailMessage.Text;
                }
                MessageBox.Show("All changes are saved.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }
Example #24
0
        private void CreateStats(BossType type, BossPropertiesXml properties)
        {
            BossData bossData = properties.Get(type);

            Name = bossData.Name;
            CreateStat("Hp", bossData.MaxHp);
            CreateStat("Speed", bossData.Speed);
            CreateStat("Resistance", bossData.Resistance);
            CreateStat("Gold", bossData.GoldReward);
            if (Player.Current != null)
            {
                ApplyBuff(new BuffEffect(Player.Current.Avatar.GetType().Name + "GoldMultiplier"));
            }

            State = new BossState();
            foreach (var modifier in bossData.TypeDamageModifier)
            {
                State.SetVulnerabilityWithValue(modifier.Key, modifier.Value);
            }
        }
        public FormEditBossData(FormBossData editLink, BossData data, int reservedId)
        {
            this.editLink = editLink;
            InitializeComponent();
            this.data              = data;
            this.reservedId        = reservedId;
            Icon                   = Properties.Resources.AppIcon;
            Text                   = (data == null) ? "Add a new boss" : $"{data.Name} ({data.BossId})";
            textBoxBossID.Text     = data?.BossId.ToString() ?? "";
            textBoxBossName.Text   = data?.Name ?? "";
            textBoxSuccessMsg.Text = data?.SuccessMsg ?? Properties.Settings.Default.BossTemplateSuccess;
            textBoxFailMsg.Text    = data?.FailMsg ?? Properties.Settings.Default.BossTemplateFail;
            textBoxIcon.Text       = data?.Icon ?? "";
            switch (data?.Type ?? BossType.None)
            {
            case BossType.Raid:
                radioButtonTypeRaid.Checked = true;
                break;

            case BossType.Fractal:
                radioButtonTypeFractal.Checked = true;
                break;

            case BossType.Strike:
                radioButtonTypeStrike.Checked = true;
                break;

            case BossType.Golem:
                radioButtonTypeGolem.Checked = true;
                break;

            case BossType.WvW:
                radioButtonTypeWvW.Checked = true;
                break;

            default:
                radioButtonTypeNone.Checked = true;
                break;
            }
            checkBoxEvent.Checked = data?.Event ?? false;
        }
    public BossEnemy AddBossEntity(BossData data)
    {
        BossPrototype proto = BossDatabase.GetBossPrototype(data.type);
        BossEnemy     temp  = null;

        switch (proto.bossType)
        {
        case BossType.CatBoss:
            temp = new CatBoss(proto);
            temp.Spawn(GetMapTilePosition(data.TilePosition));
            break;

        case BossType.LavaBoss:
            temp = new PhoenixBoss(proto);
            temp.Spawn(GetMapTilePosition(data.TilePosition));
            break;

        case BossType.SharkBoss:
            temp = new SharkBoss(proto);
            temp.Spawn(GetMapTilePosition(data.TilePosition));
            break;

        case BossType.HedgehogBoss:
            temp = new HedgehogBoss(proto);
            temp.Spawn(GetMapTilePosition(data.TilePosition));
            break;

        case BossType.TentacleBoss:
            temp = new TentacleBoss(proto);
            temp.Spawn(GetMapTilePosition(data.TilePosition));
            break;

        case BossType.VoidBoss:
            temp = new VoidBoss(proto);
            temp.Spawn(GetMapTilePosition(data.TilePosition));
            break;
        }

        return(temp);
    }
        //sub Parse methods
        /// <summary>
        /// Parses boss related data
        /// </summary>
        private void parseBossData(Stream stream)
        {
            using (var reader = CreateReader(stream))
            {
                // 12 bytes: arc build version
                var build_version = ParseHelper.getString(stream, 12);
                this.log_data = new LogData(build_version);

                // 1 byte: skip
                ParseHelper.safeSkip(stream, 1);

                // 2 bytes: boss instance ID
                ushort id = reader.ReadUInt16();

                // 1 byte: position
                ParseHelper.safeSkip(stream, 1);

                //Save
                // TempData["Debug"] = build_version +" "+ instid.ToString() ;
                this.boss_data = new BossData(id);
            }
        }
Example #28
0
 void ShotBullet()
 {
     if (CheckHitRayWithTag(ray, "Enemy", 1.0f))
     {
         hitSound = true;
         enemyDataNew = raycastHit.collider.gameObject.GetComponentInParent<EnemyDataNew>();
         enemyDataNew.EnemyDamage("NormalBullet");
     }
     else if (CheckHitRayWithTag(ray, "Boss", 1.0f))
     {
         hitSound = true;
         bossData = raycastHit.collider.gameObject.GetComponentInParent<BossData>();
         bossData.BossDamage("NormalBullet","3D");
     }
     else
     {
         hitSound = false;
     }
 }
Example #29
0
 void Awake()
 {
     bossData = GetComponent<BossData>();
 }
Example #30
0
 void OnEnable()
 {
     bossData = (BossData)target;
 }
Example #31
0
 public void Make(BossData p)
 {
     nID   = p.m_nID;
     nLoop = p.m_nFireLoop;
 }
 private void FormEditBossData_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (int.TryParse(textBoxBossID.Text, out int bossId))
     {
         if (textBoxBossName.Text.Trim() != "")
         {
             if (data == null)
             {
                 BossType type = BossType.None;
                 if (radioButtonTypeRaid.Checked)
                 {
                     type = BossType.Raid;
                 }
                 else if (radioButtonTypeFractal.Checked)
                 {
                     type = BossType.Fractal;
                 }
                 else if (radioButtonTypeStrike.Checked)
                 {
                     type = BossType.Strike;
                 }
                 else if (radioButtonTypeGolem.Checked)
                 {
                     type = BossType.Golem;
                 }
                 else if (radioButtonTypeWvW.Checked)
                 {
                     type = BossType.WvW;
                 }
                 allBosses[reservedId] = new BossData()
                 {
                     BossId     = bossId,
                     Name       = textBoxBossName.Text,
                     SuccessMsg = textBoxSuccessMsg.Text,
                     FailMsg    = textBoxFailMsg.Text,
                     Icon       = textBoxIcon.Text,
                     Type       = type,
                     Event      = checkBoxEvent.Checked
                 };
                 editLink.listViewBosses.Items.Add(new ListViewItem()
                 {
                     Name = reservedId.ToString(), Text = textBoxBossName.Text
                 });
             }
             else
             {
                 BossData boss = allBosses[reservedId];
                 boss.BossId     = bossId;
                 boss.Name       = textBoxBossName.Text;
                 boss.SuccessMsg = textBoxSuccessMsg.Text;
                 boss.FailMsg    = textBoxFailMsg.Text;
                 boss.Icon       = textBoxIcon.Text;
                 BossType type = BossType.None;
                 if (radioButtonTypeRaid.Checked)
                 {
                     type = BossType.Raid;
                 }
                 else if (radioButtonTypeFractal.Checked)
                 {
                     type = BossType.Fractal;
                 }
                 else if (radioButtonTypeStrike.Checked)
                 {
                     type = BossType.Strike;
                 }
                 else if (radioButtonTypeGolem.Checked)
                 {
                     type = BossType.Golem;
                 }
                 else if (radioButtonTypeWvW.Checked)
                 {
                     type = BossType.WvW;
                 }
                 boss.Type  = type;
                 boss.Event = checkBoxEvent.Checked;
                 editLink.listViewBosses.Items[editLink.listViewBosses.Items.IndexOfKey(reservedId.ToString())].Text = textBoxBossName.Text;
             }
         }
     }
 }
Example #33
0
 public BossComponentFactory(UnitEntity entity, BossData data) : base(entity, data)
 {
     _characterData = data;
 }
Example #34
0
 private void RefreshBossItemInfo(BossData data, MonsterInfo info, bool createActor = false)
 {
     GUIBossMapScene.BossItemInfo item = this.mBossItems[data.Slot - 1];
     if (info != null)
     {
         item.bossName.text = string.Format("[fd8e00]Lv{0}[-] {1}", info.Level, info.Name);
     }
     if (data.Slot == 5)
     {
         if (info != null)
         {
             item.hpSlider.gameObject.SetActive(true);
             item.bossBg.localPosition = new Vector3(190f, -35f, 0f);
         }
         else
         {
             item.hpSlider.gameObject.SetActive(false);
             item.bossBg.localPosition = new Vector3(190f, -14f, 0f);
         }
     }
     if (info != null && data.HealthPct > 0f)
     {
         item.slot.normalSprite = ((data.Slot != 5) ? "easy" : "hard");
     }
     else
     {
         item.slot.normalSprite = "Disable";
     }
     item.slot.gameObject.SetActive(info != null);
     item.bossBg.parent.gameObject.SetActive(info != null);
     if (info != null && createActor && data.Slot != 5)
     {
         if (item.bossActor != null)
         {
             UnityEngine.Object.DestroyImmediate(item.bossActor);
             item.bossActor = null;
         }
         GUIWorldMap.CreateWorldMapActorAsnc(info.ResLoc, string.Empty, base.transform, info.ScaleInUI * 1.25f, 180f, delegate(GameObject bossActor)
         {
             if (bossActor != null)
             {
                 bossActor.transform.localPosition = this.WORLD_BOSS_POS[data.Slot - 1];
                 bossActor.animation.clip = bossActor.animation.GetClip("std");
                 bossActor.animation.wrapMode = WrapMode.Loop;
                 bossActor.SetActive(true);
                 item.bossActor = bossActor;
             }
         });
         item.bossIcon.spriteName = Tools.GetPropertyIconWithBorder((EElementType)info.ElementType);
     }
 }