Exemple #1
0
        public static void DumpMonsters()
        {
            DumpMonstersFiltered();

            var bkupArea = gbl.game_area;

            string filename = System.IO.Path.Combine(Logger.GetPath(), "Monster.html");

            if (System.IO.File.Exists(filename))
            {
                System.IO.File.Delete(filename);
            }
            DebugWriter dw = new DebugWriter(filename);

            dw.WriteLine("<html><body><table><tbody>");

            for (byte area = 1; area <= 6; area++)
            {
                gbl.game_area = area;
                for (int id = 0; id < 256; id++)
                {
                    Player p = ovr017.load_mob(id, false);
                    if (p != null)
                    {
                        ovr025.reclac_player_values(p);

                        //TxtDumpPlayer(p, area, id);
                        HtmlTableDumpPlayer(dw, p, area, id);
                    }
                }
            }

            dw.WriteLine("</tbody></table></body></html>");
            dw.Close();

            gbl.game_area = bkupArea;
        }
Exemple #2
0
        public static void DumpMonstersFiltered()
        {
            var bkupArea = gbl.game_area;

            string filename = System.IO.Path.Combine(Logger.GetPath(), "MonsterFiltered.txt");

            if (System.IO.File.Exists(filename))
            {
                System.IO.File.Delete(filename);
            }
            DebugWriter dw = new DebugWriter(filename);

            dw.WriteLine("GnomeVsManSizedGiant");
            DumpMonstersFilteredSub(dw, p => (p.field_14B & 2) != 0);
            dw.WriteLine("");

            dw.WriteLine("monsterType == 1");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.type_1));
            dw.WriteLine("");

            dw.WriteLine("monsterType == giant");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.giant));
            dw.WriteLine("");

            dw.WriteLine("monsterType == dragon");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.dragon));
            dw.WriteLine("");

            dw.WriteLine("monsterType == animated_dead");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.animated_dead));
            dw.WriteLine("");

            dw.WriteLine("monsterType == 9");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.type_9));
            dw.WriteLine("");

            dw.WriteLine("monsterType == fire");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.fire));
            dw.WriteLine("");

            dw.WriteLine("monsterType == 10");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.troll));
            dw.WriteLine("");

            dw.WriteLine("monsterType == 12");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.type_12));
            dw.WriteLine("");

            dw.WriteLine("monsterType == snake");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.snake));
            dw.WriteLine("");

            dw.WriteLine("monsterType == plant");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.plant));
            dw.WriteLine("");

            dw.WriteLine("monsterType == animal");
            DumpMonstersFilteredSub(dw, p => (p.monsterType == MonsterType.animal));
            dw.WriteLine("");

            dw.WriteLine("monsterType > type_1");
            DumpMonstersFilteredSub(dw, p => (p.monsterType > MonsterType.type_1));
            dw.WriteLine("");


            dw.Close();

            gbl.game_area = bkupArea;
        }