Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Console.WriteLine("encounter");
- gb.Hold(Joypad.B, gb.SYM["CalcMonStats"]);
- if (gb.CpuRead("wEnemyMonSpecies") == gb.Species["GRAVELER"].Id)
- {
- Console.WriteLine("Flaaffy Encounter");
- int dvs = gb.CpuRead("wEnemyMonDVs") << 8 | gb.CpuRead(gb.SYM["wEnemyMonDVs"] + 1);
- //int hp = (((dvs >> 9) & 8) | ((dvs >> 6) & 4) | ((dvs >> 3) & 2) | (dvs & 1)) & 0xf;
- int atk = (dvs >> 12) & 0xf;
- int def = (dvs >> 8) & 0xf;
- int spd = (dvs >> 4) & 0xf;
- int spc = dvs & 0xf;
- if (spc <= 15)
- {
- Console.WriteLine($"[{state.WastedFrames} cost] {state.Log}{edge.Action.LogString()} - 0x{dvs:x4}");
- continue;
- }
- else
- {
- continue;
- }
- }
- else
- {
- continue;
- }
- for (int i = 0; i < 2; i++)
- {
- for (int j = 0; j <= 2; j++)
- {
- mtMortar[3 + i, 21 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Right, NextTile = mtMortar[4 + i, 21 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[3 + i, 21 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Right | Action.A, NextTile = mtMortar[4 + i, 21 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[4 + i, 21 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Left, NextTile = mtMortar[3 + i, 21 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[4 + i, 21 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Left | Action.A, NextTile = mtMortar[3 + i, 21 + j], NextEdgeset = 0, Cost = 8 });
- }
- }
- for (int i = 0; i <= 2; i++)
- {
- for (int j = 0; j < 2; j++)
- {
- mtMortar[3 + i, 21 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Down, NextTile = mtMortar[3 + i, 22 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[3 + i, 21 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Down | Action.A, NextTile = mtMortar[3 + i, 22 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[3 + i, 22 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Up, NextTile = mtMortar[3 + i, 21 + j], NextEdgeset = 0, Cost = 8 });
- mtMortar[3 + i, 22 + j].AddEdge(0, new Edge<GscTile>() { Action = Action.Up | Action.A, NextTile = mtMortar[3 + i, 21 + j], NextEdgeset = 0, Cost = 8 });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment