Beispiel #1
0
        public static GameRolePlayGroupMonsterInformations GetActorInformations(MapRecord map, MonsterGroup group)
        {
            var random               = new AsyncRandom();
            var firstMonster         = group.Monsters[0];
            var firstMonsterTemplate = MonsterRecord.GetMonster(firstMonster.MonsterId);
            var light = new MonsterInGroupLightInformations(firstMonsterTemplate.Id, (sbyte)random.Next(1, 6));
            List <MonsterInGroupInformations> monstersinGroup = new List <MonsterInGroupInformations>();

            for (int i = 1; i < group.Monsters.Count; i++)
            {
                var mob      = group.Monsters[i];
                var template = MonsterRecord.GetMonster(mob.MonsterId);
                monstersinGroup.Add(new MonsterInGroupInformations(mob.MonsterId, mob.ActualGrade, template.RealLook.ToEntityLook()));
            }
            var staticInfos = new GroupMonsterStaticInformations(light, monstersinGroup);

            return(new GameRolePlayGroupMonsterInformations(group.MonsterGroupId, firstMonsterTemplate.RealLook.ToEntityLook(),
                                                            new EntityDispositionInformations((short)group.CellId, 3), false, false, false, staticInfos, group.AgeBonus, 0, 0));
        }
 List <GameRolePlayGroupMonsterInformations> GetMonsters()
 {
     return(MonsterGroup.GetActorsInformations(Record, MonstersGroups));
 }