This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This script attempts to identify all CSS classes mentioned in HTML but not defined in the stylesheets. | |
In order to use it, just run it in the DevTools console (or add it to DevTools Snippets and run it from there). | |
Note that this script requires browser to support `fetch` and some ES6 features (fat arrow, Promises, Array.from, Set). You can transpile it to ES5 here: https://babeljs.io/repl/ . | |
Known limitations: | |
- it won't be able to take into account some external stylesheets (if CORS isn't set up) | |
- it will produce false negatives for classes that are mentioned in the comments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static async Task<bool> FastMoveFromDevice(int itemId) | |
{ | |
// get the generic control, regardless of whether we have a 4 or 5 slot device | |
var inventoryControlWrapper = MapDevice.InventoryControl; | |
// accessing the items works on both | |
var itemCount = inventoryControlWrapper.Inventory.Items.Count; | |
var item = inventoryControlWrapper.Inventory.FindItemById(itemId); | |
if (item == null) | |
{ | |
GlobalLog.Error($"[FastMoveFromDevice] Fail to find item {itemId} in Map Device."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Element ElementFromPath(string path) | |
{ | |
if (!path.StartsWith("root")) | |
{ | |
Log.Error("[ElementFromPath] Path must start with root: root.Children[1].Children[102]"); | |
return null; | |
} | |
path = path.Substring("root.".Length); | |
// remove tailing . | |
if (path.EndsWith(".")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<wpg:WpfPropertyGrid HelpVisible="False" Margin="5, 0, 0, 0" x:Name="PropertyGrid1" Width="350" Height="400"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using DreamPoeBot.Loki.Bot; | |
using DreamPoeBot.Loki.Common; | |
using HarmonyLib; | |
namespace kekslib | |
{ | |
public static partial class KeksTools | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// | |
/// </summary> | |
/// <param name="filename"></param> | |
/// <param name="data">LokiPoe.TerrainData.Layer0</param> | |
/// <param name="terrainSize">LokiPoe.TerrainData.Size</param> | |
/// <param name="bpr">LokiPoe.TerrainData.BytesPerRow</param> | |
public static void GeneratePng(string filename, ref byte[] data, Vector2i terrainSize, int bpr) | |
{ | |
Color TerrainColor(int v) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static partial class KeksTools | |
{ | |
[DllImport("kernel32.dll", SetLastError = true)] | |
static extern bool DebugActiveProcess(uint dwProcessId); | |
[DllImport("kernel32.dll", SetLastError = true)] | |
static extern bool DebugActiveProcessStop(uint dwProcessId); | |
private static bool WasHooked = false; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static FastMoveResult FastMoveFromInvNoAffinity(int itemLocalId) | |
{ | |
if (!LokiPoe.ProcessHookManager.IsEnabled) | |
{ | |
return FastMoveResult.ProcessHookManagerNotEnabled; | |
} | |
LokiPoe.ProcessHookManager.ClearAllKeyStates(); | |
var inventorySlotUiElement = LokiPoe.InGameState.InventoryUi.InventoryControl_Main.InventorySlotUiElement; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Automate the settings window for debugging | |
// e.a. automatically expand the Plugins section and select the plugin you are currently working on | |
public void Initialize() | |
{ | |
LokiPoe.OnGuiTick += OnGuiTickEvent; | |
} | |
private static void OnGuiTickEvent(object sender, GuiTickEventArgs e) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/runtime-win32.zip b/runtime-win32.zip | |
deleted file mode 100644 | |
index 2fd1fff6..00000000 | |
Binary files a/runtime-win32.zip and /dev/null differ | |
diff --git a/src/Classes/PassiveSpec.lua b/src/Classes/PassiveSpec.lua | |
index e34f723d..e4c8cce2 100644 | |
--- a/src/Classes/PassiveSpec.lua | |
+++ b/src/Classes/PassiveSpec.lua | |
@@ -13,6 +13,18 @@ local m_max = math.max | |
local m_floor = math.floor |
NewerOlder