content
stringlengths
5
1.05M
local qconsts = require 'Q/UTILS/lua/q_consts' local qc = require 'Q/UTILS/lua/q_core' local lVector = require 'Q/RUNTIME/VCTR/lua/lVector' local cmem = require 'libcmem' local get_ptr = require 'Q/UTILS/lua/get_ptr' local ffi = require 'ffi' local record_time = require 'Q/UTILS/lua/record_time' local function check_args(a, fval, k, optargs) assert(a) assert(type(a) == "string") assert( ( a == "mink" ) or ( a == "maxk" ) ) assert(fval) assert(type(fval) == "lVector", "f1 must be a lVector") assert(fval:has_nulls() == false) -- Here is a case where it makes sense for k to be a number -- and NOT a Scalar assert(k) assert(type(k) == "number") -- decided to have k less than 128 assert( (k > 0 ) and ( k < 128 ) ) if ( optargs ) then assert(type(optargs) == "table") end -- optargs is a palce holder for now return true end -- This operator produces 1 vector local function expander_getk(a, fval, k, optargs) -- validate input args check_args(a, fval, k, optargs) local sp_fn_name = "Q/OPERATORS/GETK/lua/" .. a .. "_specialize" local spfn = assert(require(sp_fn_name)) local status, subs = pcall(spfn, fval:qtype()) if not status then print(subs) end assert(status, "Error in specializer " .. sp_fn_name) local sort_fn = assert(subs.sort_fn) assert(qc[sort_fn], "Symbol not available" .. sort_fn) local func_name = assert(subs.fn) -- START: Dynamic compilation if ( not qc[func_name] ) then qc.q_add(subs); print("Dynamic compilation kicking in... ") end -- STOP: Dynamic compilation assert(qc[func_name], "Symbol not defined " .. func_name) local is_ephemeral = false if ( optargs ) then if ( optargs.is_ephemeral == true ) then is_ephemeral = true end end local qtype = assert(subs.qtype) local ctype = assert(subs.ctype) local width = assert(subs.width) --================================================= local chunk_idx = 0 local first_call = true local n = qconsts.chunk_size local nX, nZ local sort_buf_val, casted_sort_buf_val local bufX, casted_bufX local bufZ, casted_bufZ local num_in_Z, ptr_num_in_Z local len, chunk, nn_chunk, casted_chunk, nY -- TODO Consider case where there are less than k elements to return local function getk_gen(chunk_num) -- Adding assert on chunk_idx to have sync between expected chunk_num and generator's chunk_idx state assert(chunk_num == chunk_idx) if ( first_call ) then -- create a buffer to sort each chunk as you get it sort_buf_val = cmem.new(n * width, qtype) sort_buf_val:zero() -- a precuation, not necessary casted_sort_buf_val = ffi.cast(ctype .. "*", get_ptr(sort_buf_val)) -- create buffers for keeping topk from each chunk bufX = cmem.new(k * width, qtype) bufX:zero() casted_bufX = ffi.cast(ctype .. "*", get_ptr(bufX)) nX = 0 bufZ = cmem.new(k * width, qtype) bufZ:zero() casted_bufZ = ffi.cast(ctype .. "*", get_ptr(bufZ)) nZ = k num_in_Z = cmem.new(4, "I4"); ptr_num_in_Z = ffi.cast("uint32_t *", get_ptr(num_in_Z)) end while ( true ) do len, chunk, nn_chunk = fval:chunk(chunk_idx) if ( len == 0 ) then break end -- copy chunk into local buffer and sort it in right order casted_chunk = ffi.cast(ctype .. "*", get_ptr(chunk)) assert(qc[sort_fn], "function not found " .. sort_fn) sort_buf_val:zero() ffi.C.memcpy(casted_sort_buf_val, casted_chunk, len*width) local start_time = qc.RDTSC() qc[sort_fn](casted_sort_buf_val, len) record_time(start_time, sort_fn) --================================ if ( k < len ) then nY = k else nY = len end if ( chunk_idx == 0 ) then ffi.C.memcpy(casted_bufX, casted_sort_buf_val, nY*width) nX = nY else start_time = qc.RDTSC() qc[func](casted_bufX, nX, casted_sort_buf_val, nY, casted_bufZ, nZ, ptr_num_in_Z) record_time(start_time, func) -- copy from bufZ to bufX local num_in_Z = ptr_num_in_Z[0] ffi.C.memcpy(casted_bufX, casted_bufZ, num_in_Z*width) nX = num_in_Z end chunk_idx = chunk_idx + 1 end return nX, bufX, nil end return lVector( { gen = getk_gen, qtype = qtype, has_nulls = false } ) end return expander_getk
primes = {2, 3} m = 5 function isPrime(a) local b = 1 while a % primes[b] > 0 do if primes[b] * primes[b] > a then primes[#primes + 1] = a return true end b = b + 1 end return false end function primeSeq() local p0, i = 1, 0 return function() if p0 <= #primes then i, p0 = primes[p0], p0+1 return i end i = i + 2 while not isPrime(i) do i = i + 2 end p0 = p0 + 1 return i end end local nextPrime = primeSeq() for line in io.lines(arg[1]) do local n = tonumber(line) while 2^m - 1 < n do isPrime(m) m = m + 2 end local r = {} for i = 1, #primes do if 2^primes[i] - 1 >= n then break end r[#r + 1] = 2^primes[i] - 1 end print(table.concat(r, ", ")) end
local fs = require('efmls-configs.fs') -- TODO: Not properly implemented yet local linter = 'reek' local args = 'exec reek --format txt --force-exclusion --stdin-filename ${INPUT}' local command = string.format('%s %s', fs.executable('bundle', fs.Scope.BUNDLE), args) return { prefix = linter, lintCommand = command, lintStdin = true, lintFormats = { '%f:%l:%c: %t: %m' }, rootMarkers = {}, }
local MathEx = {} ---@param value number ---@param min number ---@param max number ---@return number function MathEx.clamp(value, min, max) if value < min then return min end if value > max then return max end return value end ---@param value number ---@return number function MathEx.round(value) value = tonumber(value) or 0 return math.floor(value + 0.5) end ---@param angle number ---@return number function MathEx.angle2radian(angle) return angle * math.pi / 180 end ---@param radian number ---@return number function MathEx.radian2angle(radian) return radian / math.pi * 180 end ---@param value number ---@return number function MathEx.sign(value) return value > 0 and 1 or (value < 0 and -1 or 0) end return MathEx
require "utils.NumberUtils" require "view.CocosView" require "scene.MainScene" require "scene.DemoScene" require "scene.TerisScene" local _scene = nil local function updateScene() if _scene then _scene:update(0.04) end end local updateSchedule = cc.Director:getInstance():getScheduler():scheduleScriptFunc(updateScene, 0.04, false) Director = {} Director.replaceScene = function(scene) if _scene then _scene:onExit() end _scene = scene cc.Director:getInstance():replaceScene(scene) scene:onEnter() end
BrushManagers = LCS.class{} function BrushManagers:init() self.brushNameMapping = {} end function BrushManagers:GetBrushManager(brushName) if not self.brushNameMapping[brushName] then self.brushNameMapping[brushName] = BrushManager() end return self.brushNameMapping[brushName] end function BrushManagers:GetBrushManagers() return self.brushNameMapping end BrushManager = Observable:extends{} function BrushManager:init() self:super('init') self:Clear() end function BrushManager:Clear() if self.brushes then for brushID, _ in pairs(self.brushes) do self:RemoveBrush(brushID) end end self.__brushIDCounter = 0 self.brushes = {} self.brushOrder = {} end function BrushManager:AddBrush(brush) self.__brushIDCounter = self.__brushIDCounter + 1 brush.brushID = self.__brushIDCounter self.brushes[brush.brushID] = brush table.insert(self.brushOrder, brush.brushID) self:callListeners("OnBrushAdded", brush) return brush.brushID end function BrushManager:RemoveBrush(removeBrushID) local brush = self.brushes[removeBrushID] self.brushes[removeBrushID] = nil for i, brushID in pairs(self.brushOrder) do if removeBrushID == brushID then table.remove(self.brushOrder, i) break end end self:callListeners("OnBrushRemoved", brush) end function BrushManager:UpdateBrush(brushID, key, value) local brush = self.brushes[brushID] brush.opts[key] = value self:callListeners("OnBrushUpdated", brush, key, value) end function BrushManager:UpdateBrushImage(brushID, image) local brush = self.brushes[brushID] brush.image = image self:callListeners("OnBrushImageUpdated", brush, image) end function BrushManager:GetBrush(brushID) return self.brushes[brushID] end function BrushManager:GetBrushIDs() return self.brushOrder end function BrushManager:GetBrushes() return self.brushes end function BrushManager:Serialize() local brushes = {} for _, brush in pairs(self.brushes) do local brushCopy = Table.DeepCopy(brush) brushCopy.image = nil brushes[brush.brushID] = brushCopy end return { brushes = brushes, order = self.brushOrder, } end function BrushManager:Load(data) self:Clear() for _, brushID in pairs(data.order) do local brushData = data.brushes[brushID] self:AddBrush(brushData) end end ------------------------------------------------ -- Listener definition ------------------------------------------------ BrushManagerListener = LCS.class.abstract{} function BrushManagerListener:OnBrushAdded(brush) end function BrushManagerListener:OnBrushRemoved(brush) end function BrushManagerListener:OnBrushUpdated(brush, key, value) end function BrushManagerListener:OnBrushImageUpdated(brush, image) end ------------------------------------------------ -- End listener definition ------------------------------------------------
--[[----------------------------------------------------------------------- Categories --------------------------------------------------------------------------- The categories of the default F4 menu. Please read this page for more information: https://darkrp.miraheze.org/wiki/DarkRP:Categories In case that page can't be reached, here's an example with explanation: DarkRP.createCategory{ name = "Citizens", -- The name of the category. categorises = "jobs", -- What it categorises. MUST be one of "jobs", "entities", "shipments", "weapons", "vehicles", "ammo". startExpanded = true, -- Whether the category is expanded when you open the F4 menu. color = Color(0, 107, 0, 255), -- The color of the category header. canSee = function(ply) return true end, -- OPTIONAL: whether the player can see this category AND EVERYTHING IN IT. sortOrder = 100, -- OPTIONAL: With this you can decide where your category is. Low numbers to put it on top, high numbers to put it on the bottom. It's 100 by default. } Add new categories under the next line! ---------------------------------------------------------------------------]] DarkRP.createCategory{ name = "Criminal", categorises = "jobs", startExpanded = true, color = Color(224, 19, 19, 255), canSee = function(ply) return true end, sortOrder = 2 } DarkRP.createCategory{ name = "Government", categorises = "jobs", startExpanded = true, color = Color(229, 235, 8, 255), canSee = function(ply) return true end, sortOrder = 1 } DarkRP.createCategory{ name = "Civilian", categorises = "jobs", startExpanded = true, color = Color(53, 235, 8, 255), canSee = function(ply) return true end, sortOrder = 1 } DarkRP.createCategory{ name = "City Police", categorises = "jobs", startExpanded = true, color = Color(8, 44, 235, 255), canSee = function(ply) return true end, sortOrder = 1 } DarkRP.createCategory{ name = "First Responder", categorises = "jobs", startExpanded = true, color = Color(8, 235, 153, 255), canSee = function(ply) return true end, sortOrder = 2 } DarkRP.createCategory{ name = "Bayou Cartel", categorises = "jobs", startExpanded = true, color = Color(227, 70, 3, 255), canSee = function(ply) return true end, sortOrder = 2 } DarkRP.createCategory{ name = "Hatchet Family", categorises = "jobs", startExpanded = true, color = Color(88, 3, 227, 255), canSee = function(ply) return true end, sortOrder = 2 } DarkRP.createCategory{ name = "Maple Street Gang", categorises = "jobs", startExpanded = true, color = Color(227, 97, 3, 255), canSee = function(ply) return true end, sortOrder = 2 } DarkRP.createCategory{ name = "South Side Mafia", categorises = "jobs", startExpanded = true, color = Color(107, 94, 84, 255), canSee = function(ply) return true end, sortOrder = 2 }
local combat = Combat() combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE) combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ENERGYHIT) combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGYBALL) combat:setParameter(COMBAT_PARAM_CREATEITEM, ITEM_ENERGYFIELD_PVP) local area = createCombatArea(AREA_WALLFIELD, AREADIAGONAL_WALLFIELD) combat:setArea(area) function onCastSpell(creature, var, isHotkey) return combat:execute(creature, var) end
local K = unpack(KkthnxUI) local Module = K:GetModule("AurasTable") if K.Class ~= "HUNTER" then return end local list = { ["Player Aura"] = { -- 玩家光环组 { AuraID = 136, UnitID = "pet" }, -- 治疗宠物 { AuraID = 19577, UnitID = "pet" }, -- 胁迫 { AuraID = 160058, UnitID = "pet" }, -- 厚皮 { AuraID = 90361, UnitID = "player" }, -- 灵魂治愈 { AuraID = 35079, UnitID = "player" }, -- 误导 { AuraID = 61648, UnitID = "player" }, -- 变色龙守护 { AuraID = 199483, UnitID = "player" }, -- 伪装 { AuraID = 118922, UnitID = "player" }, -- 迅疾如风 { AuraID = 164857, UnitID = "player" }, -- 生存专家 { AuraID = 186258, UnitID = "player" }, -- 猎豹守护 { AuraID = 246152, UnitID = "player" }, -- 倒刺射击 { AuraID = 246851, UnitID = "player" }, -- 倒刺射击 { AuraID = 246852, UnitID = "player" }, -- 倒刺射击 { AuraID = 246853, UnitID = "player" }, -- 倒刺射击 { AuraID = 246854, UnitID = "player" }, -- 倒刺射击 { AuraID = 203924, UnitID = "player" }, -- 守护屏障 { AuraID = 197161, UnitID = "player" }, -- 灵龟守护回血 { AuraID = 160007, UnitID = "player" }, -- 上升气流(双头龙) { AuraID = 231390, UnitID = "player", Combat = true }, -- 开拓者 { AuraID = 164273, UnitID = "player", Combat = true }, -- 独来独往 { AuraID = 209997, UnitID = "pet", Flash = true }, -- 装死 }, ["Target Aura"] = { -- 目标光环组 { AuraID = 3355, UnitID = "target", Caster = "player" }, -- 冰冻陷阱 { AuraID = 5116, UnitID = "target", Caster = "player" }, -- 震荡射击 { AuraID = 19386, UnitID = "target", Caster = "player" }, -- 翼龙钉刺 { AuraID = 24394, UnitID = "target", Caster = "pet" }, -- 胁迫 { AuraID = 321538, UnitID = "target", Caster = "pet" }, -- 血溅十方 { AuraID = 117526, UnitID = "target" }, -- 束缚射击 { AuraID = 257284, UnitID = "target", Caster = "player" }, -- 猎人印记 { AuraID = 131894, UnitID = "target", Caster = "player" }, -- 夺命黑鸦 { AuraID = 199803, UnitID = "target", Caster = "player" }, -- 精确瞄准 { AuraID = 195645, UnitID = "target", Caster = "player" }, -- 摔绊 { AuraID = 202797, UnitID = "target", Caster = "player" }, -- 蝰蛇钉刺 { AuraID = 202900, UnitID = "target", Caster = "player" }, -- 毒蝎钉刺 { AuraID = 224729, UnitID = "target", Caster = "player" }, -- 爆裂射击 { AuraID = 213691, UnitID = "target", Caster = "player" }, -- 驱散射击 { AuraID = 162480, UnitID = "target", Caster = "player" }, -- 精钢陷阱 { AuraID = 162487, UnitID = "target", Caster = "player" }, -- 精钢陷阱 { AuraID = 259491, UnitID = "target", Caster = "player" }, -- 毒蛇钉刺 { AuraID = 271788, UnitID = "target", Caster = "player" }, -- 毒蛇钉刺 { AuraID = 269747, UnitID = "target", Caster = "player" }, -- 野火炸弹 { AuraID = 270339, UnitID = "target", Caster = "player" }, -- 散射炸弹 { AuraID = 270343, UnitID = "target", Caster = "player" }, -- 内出血 { AuraID = 271049, UnitID = "target", Caster = "player" }, -- 动荡炸弹 { AuraID = 270332, UnitID = "target", Caster = "player" }, -- 信息素炸弹 { AuraID = 259277, UnitID = "target", Caster = "pet" }, -- 杀戮命令 { AuraID = 277959, UnitID = "target", Caster = "player" }, -- 稳固瞄准 { AuraID = 217200, UnitID = "target", Caster = "player" }, -- 倒刺射击 { AuraID = 336746, UnitID = "target", Caster = "player" }, -- 魂铸余烬,橙装 { AuraID = 328275, UnitID = "target", Caster = "player" }, -- 野性印记 { AuraID = 324149, UnitID = "target", Caster = "player" }, -- 劫掠射击 { AuraID = 308498, UnitID = "target", Caster = "player" }, -- 共鸣箭 { AuraID = 333526, UnitID = "target", Caster = "player" }, -- 尖刺果实 }, ["Special Aura"] = { -- 玩家重要光环组 { AuraID = 19574, UnitID = "player" }, -- 狂野怒火 { AuraID = 54216, UnitID = "player" }, -- 主人的召唤 { AuraID = 186257, UnitID = "player" }, -- 猎豹守护 { AuraID = 186265, UnitID = "player" }, -- 灵龟守护 { AuraID = 190515, UnitID = "player" }, -- 适者生存 { AuraID = 193534, UnitID = "player" }, -- 稳固集中 { AuraID = 194594, UnitID = "player", Flash = true }, -- 荷枪实弹 { AuraID = 118455, UnitID = "pet" }, -- 野兽瞬劈斩 { AuraID = 207094, UnitID = "pet" }, -- 泰坦之雷 { AuraID = 217200, UnitID = "pet" }, -- 凶猛狂暴 { AuraID = 272790, UnitID = "pet" }, -- 狂暴 { AuraID = 193530, UnitID = "player" }, -- 野性守护 { AuraID = 185791, UnitID = "player" }, -- 荒野呼唤 { AuraID = 259388, UnitID = "player" }, -- 猫鼬之怒 { AuraID = 186289, UnitID = "player" }, -- 雄鹰守护 { AuraID = 201081, UnitID = "player" }, -- 莫克纳萨战术 { AuraID = 194407, UnitID = "player" }, -- 喷毒眼镜蛇 { AuraID = 208888, UnitID = "player" }, -- 暗影猎手的回复,橙装头 { AuraID = 204090, UnitID = "player" }, -- 正中靶心 { AuraID = 208913, UnitID = "player" }, -- 哨兵视野,橙腰 { AuraID = 248085, UnitID = "player" }, -- 蛇语者之舌,橙胸 { AuraID = 242243, UnitID = "player" }, -- 致命瞄准,射击2T20 { AuraID = 246153, UnitID = "player" }, -- 精准,射击4T20 { AuraID = 203155, UnitID = "player" }, -- 狙击 { AuraID = 235712, UnitID = "player", Combat = true }, -- 回转稳定,橙手 { AuraID = 264735, UnitID = "player" }, -- 优胜劣汰 { AuraID = 281195, UnitID = "player" }, -- 优胜劣汰 { AuraID = 260242, UnitID = "player", Flash = true }, -- 弹无虚发 { AuraID = 260395, UnitID = "player" }, -- 致命射击 { AuraID = 269502, UnitID = "player" }, -- 致命射击 { AuraID = 281036, UnitID = "player" }, -- 凶暴野兽 { AuraID = 260402, UnitID = "player" }, -- 二连发 { AuraID = 266779, UnitID = "player" }, -- 协调进攻 { AuraID = 260286, UnitID = "player" }, -- 利刃之矛 { AuraID = 265898, UnitID = "player" }, -- 接战协定 { AuraID = 268552, UnitID = "player" }, -- 蝰蛇毒液 { AuraID = 260249, UnitID = "player" }, -- 掠食者 { AuraID = 257622, UnitID = "player", Text = "AoE" }, -- 技巧射击 { AuraID = 288613, UnitID = "player" }, -- 百发百中 { AuraID = 274447, UnitID = "player" }, -- 千里之目 { AuraID = 260243, UnitID = "player" }, -- 乱射 { AuraID = 342076, UnitID = "player" }, -- 行云流水 }, ["Focus Aura"] = { -- 焦点光环组 { AuraID = 3355, UnitID = "focus", Caster = "player" }, -- 冰冻陷阱 { AuraID = 19386, UnitID = "focus", Caster = "player" }, -- 翼龙钉刺 { AuraID = 118253, UnitID = "focus", Caster = "player" }, -- 毒蛇钉刺 { AuraID = 194599, UnitID = "focus", Caster = "player" }, -- 黑箭 { AuraID = 131894, UnitID = "focus", Caster = "player" }, -- 夺命黑鸦 { AuraID = 199803, UnitID = "focus", Caster = "player" }, -- 精确瞄准 }, ["Spell Cooldown"] = { -- 冷却计时组 { SlotID = 13 }, -- 饰品1 { SlotID = 14 }, -- 饰品2 { SpellID = 186265 }, -- 灵龟守护 { SpellID = 147362 }, -- 反制射击 }, } Module:AddNewAuraWatch("HUNTER", list)
local L = BigWigs:NewBossLocale("Yan-Zhu the Uncasked", "deDE") if not L then return end if L then L.summon_desc = "Warnen wenn Yan-Zhu einen Hefigen Braubierlementar beschwört. Diese können |cff71d5ffFermentierung|r wirken, um den Boss zu heilen." end
-- Copyright (c) 2016 Luke San Antonio -- All rights reserved. local ffi = require("ffi") local rc = require("redcrane") local scene = {} function scene.make_scene() local eng = rc.engine local sc = {} sc._scene_ptr = ffi.gc(ffi.C.redc_make_scene(eng), ffi.C.redc_unmake_scene) function sc:add_camera(tp) -- No need to use ffi.gc since cameras are going to automatically be -- deallocated with the engine return ffi.C.redc_scene_add_camera(self._scene_ptr, tp) end function sc:add_mesh(msh) return ffi.C.redc_scene_add_mesh(self._scene_ptr, msh) end function sc:add_player() -- Load gun for player hud and camera for a player. -- Request a new player (TODO Should fail when we already have one, -- this function is mostly a suggestion to get things moving). rc.server:req_player() local player = { camera = self:add_camera("fps") } -- Figure the camera will follow the player whoever that be. self:camera_set_follow_player(player.camera, true) return player end function sc:active_camera(cam) -- Have a camera? if cam == nil then -- Change the camera return ffi.C.redc_scene_get_active_camera(self._scene_ptr) else -- No camera? -- Get the camera return ffi.C.redc_scene_set_active_camera(self._scene_ptr, cam) end end function sc:camera_set_follow_player(cam, val) val = val or true ffi.C.redc_scene_camera_set_follow_player(self._scene_ptr, cam, val) end -- A transformation applied to a mesh only really makes sense in the context -- of a scene! function sc:set_parent(obj, parent) ffi.C.redc_scene_set_parent(self._scene_ptr, obj, parent) end function sc:object_set_texture(obj, texture) ffi.C.redc_scene_object_set_texture(self._scene_ptr_, obj, texture) end function sc:step() ffi.C.redc_scene_step(self._scene_ptr) end function sc:render() ffi.C.redc_scene_render(self._scene_ptr) end return sc end return scene
local mod = DBM:NewMod("Brew", "DBM-WorldEvents", 1) local L = mod:GetLocalizedStrings() mod:SetRevision(("$Revision: 15084 $"):sub(12, -3)) --mod:SetCreatureID(15467) --mod:SetModelID(15879) mod:SetReCombatTime(10) mod:SetZone(DBM_DISABLE_ZONE_DETECTION) mod:RegisterCombat("combat") mod:RegisterEvents( "ZONE_CHANGED_NEW_AREA" ) --TODO. Add option to disable volume normalizing. --TODO, ram racing stuff --local warnCleave = mod:NewSpellAnnounce(104903, 2) --local warnStarfall = mod:NewSpellAnnounce(26540, 3) --local specWarnStarfall = mod:NewSpecialWarningMove(26540) --local timerCleaveCD = mod:NewCDTimer(8.5, 104903, nil, nil, nil, 6) --local timerStarfallCD = mod:NewCDTimer(15, 26540, nil, nil, nil, 2) mod:RemoveOption("HealthFrame") mod:AddBoolOption("NormalizeVolume", true, "misc") local setActive = false local function CheckEventActive() local _, month, day, year = CalendarGetDate() if month == 9 then if day >= 20 then setActive = true end elseif month == 10 then if day < 7 then setActive = true end end end CheckEventActive() --Volume normalizing or disabling for blizzard stupidly putting the area's music on DIALOG audio channel, making it blaringly loud local function setDialog(self, set) if not self.Options.NormalizeVolume then return end if set then local musicEnabled = GetCVarBool("Sound_EnableMusic") or true local musicVolume = tonumber(GetCVar("Sound_MusicVolume")) self.Options.SoundOption = tonumber(GetCVarBool("Sound_DialogVolume")) or 1 if musicEnabled and musicVolume then--Normalize volume to music volume level DBM:Debug("Setting normalized volume to music volume of: "..musicVolume) SetCVar("Sound_DialogVolume", musicVolume) else--Just mute it DBM:Debug("Setting normalized volume to 0") SetCVar("Sound_DialogVolume", 0) end else if self.Options.SoundOption then DBM:Debug("Restoring Dialog volume to saved value of: "..self.Options.SoundOption) SetCVar("Sound_DialogVolume", self.Options.SoundOption) self.Options.SoundOption = nil end end end function mod:ZONE_CHANGED_NEW_AREA() if setActive then local mapID = GetPlayerMapAreaID("player") if mapID == 27 or mapID == 4 then--Dun Morogh, Durotar setDialog(self, true) else setDialog(self) end else --Even if event isn't active. If a sound option was stored, restore it if self.Options.SoundOption then setDialog(self) end end end mod.OnInitialize = mod.ZONE_CHANGED_NEW_AREA --[[ function mod:SPELL_CAST_SUCCESS(args) local spellId = args.spellId if spellId == 104903 then warnCleave:Show() timerCleaveCD:Start() elseif spellId == 26540 then warnStarfall:Show() timerStarfallCD:Start() end end --]]
-- Play DSM segment (desmume 0.9.5 or later) -- * mic and reset are NOT supported. -- * movie playback always starts from NOW, not reset or snapshot. -- This script might help to merge an existing movie with slight timing changes. require("dsmlib") local kmv_path = "input.dsm" local kmv_framecount = 1 -- 1 = first frame local skiplagframe = true local playback_loop = false local kmvfile = io.open(kmv_path, "r") if not kmvfile then error('could not open "'..kmv_path..'"') end local kmv = dsmImport(kmvfile) function exitFunc() if kmvfile then kmvfile:close() end end -- when this function return false, -- script will send previous input and delay to process input. function sendThisFrame() return true end local pad_prev = joypad.get() local pen_prev = stylus.get() local frameAdvance = false emu.registerbefore(function() if kmv_framecount > #kmv.frame then if not playback_loop then print("movie playback stopped.") emu.registerbefore(nil) emu.registerafter(nil) emu.registerexit(nil) gui.register(nil) exitFunc() return else kmv_framecount = 1 end end local pad = pad_prev local pen = pen_prev frameAdvance = sendThisFrame() if frameAdvance then for k in pairs(pad) do pad[k] = kmv.frame[kmv_framecount][k] end pen.x = kmv.frame[kmv_framecount].touchX pen.y = kmv.frame[kmv_framecount].touchY pen.touch = kmv.frame[kmv_framecount].touched end joypad.set(pad) stylus.set(pen) pad_prev = copytable(pad) pen_prev = copytable(pen) end) emu.registerafter(function() local lagged = skiplagframe and emu.lagged() if frameAdvance and not lagged then if lagged then -- print(string.format("%06d", emu.framecount())) end kmv_framecount = kmv_framecount + 1 end end) emu.registerexit(exitFunc) gui.register(function() gui.text(0, 0, ""..(kmv_framecount-1).."/"..#kmv.frame) end)
return { Name = 4, Number = 4, Reserved = 4, Shebang = 4, Skip = 4, String = 4, kw = 4, report_error = 1, symb = 4, syntaxerror = 1, token = 4, }
--[[ MIT License Copyright (c) 2020 Ryan Ward Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sub-license, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ]] if ISTHREAD then error("You cannot require the loveManager from within a thread!") end local ThreadFileData = [[ ISTHREAD = true THREAD = require("multi.integration.loveManager.threads") -- order is important! sThread = THREAD __IMPORTS = {...} __FUNC__=table.remove(__IMPORTS,1) __THREADID__=table.remove(__IMPORTS,1) __THREADNAME__=table.remove(__IMPORTS,1) stab = THREAD.createStaticTable(__THREADNAME__) GLOBAL = THREAD.getGlobal() multi, thread = require("multi").init() stab["returns"] = {THREAD.loadDump(__FUNC__)(unpack(__IMPORTS))} ]] local multi, thread = require("multi.compat.love2d"):init() local THREAD = {} __THREADID__ = 0 __THREADNAME__ = "MainThread" multi.integration={} multi.integration.love2d={} local THREAD = require("multi.integration.loveManager.threads") local GLOBAL = THREAD.getGlobal() local THREAD_ID = 1 local OBJECT_ID = 0 local stf = 0 function THREAD:newFunction(func,holup) local tfunc = {} tfunc.Active = true function tfunc:Pause() self.Active = false end function tfunc:Resume() self.Active = true end function tfunc:holdMe(b) holdme = b end local function noWait() return nil, "Function is paused" end local rets, err local function wait(no) if thread.isThread() and not (no) then -- In a thread else -- Not in a thread end end tfunc.__call = function(t,...) if not t.Active then if holdme then return nil, "Function is paused" end return { isTFunc = true, wait = noWait, connect = function(f) f(nil,"Function is paused") end } end local t = multi:newSystemThread("SystemThreadedFunction",func,...) t.OnDeath(function(self,...) rets = {...} end) t.OnError(function(self,e) err = e end) if holdme then return wait() end local temp = { OnStatus = multi:newConnection(), OnError = multi:newConnection(), OnReturn = multi:newConnection(), isTFunc = true, wait = wait, connect = function(f) local tempConn = multi:newConnection() t.OnDeath(function(self,...) if f then f(...) else tempConn:Fire(...) end end) t.OnError(function(self,err) if f then f(nil,err) else tempConn:Fire(nil,err) end end) return tempConn end } t.OnDeath(function(self,...) temp.OnReturn:Fire(...) end) t.OnError(function(self,err) temp.OnError:Fire(err) end) t.linkedFunction = temp t.statusconnector = temp.OnStatus return temp end setmetatable(tfunc,tfunc) return tfunc end function multi:newSystemThread(name,func,...) local c = {} c.name = name c.ID=THREAD_ID c.thread=love.thread.newThread(ThreadFileData) c.thread:start(THREAD.dump(func),c.ID,c.name,...) c.stab = THREAD.createStaticTable(name) GLOBAL["__THREAD_"..c.ID] = {ID=c.ID,Name=c.name,Thread=c.thread} GLOBAL["__THREAD_COUNT"] = THREAD_ID THREAD_ID=THREAD_ID+1 multi:newThread(function() while true do thread.yield() if c.stab["returns"] then c.OnDeath:Fire(c,unpack(t.stab.returns)) t.stab.returns = nil thread.kill() end local error = c.thread:getError() if error then if error:find("Thread Killed!\1") then c.OnDeath:Fire(c,"Thread Killed!") thread.kill() else c.OnError:Fire(c,error) thread.kill() end end end end) return c end function love.threaderror(thread, errorstr) print("Thread error!\n"..errorstr) end multi.integration.GLOBAL = GLOBAL multi.integration.THREAD = THREAD require("multi.integration.loveManager.extensions") print("Integrated Love Threading!") return {init=function() return GLOBAL,THREAD end}
util.AddNetworkString( "UpdateTheClient" ) util.AddNetworkString( "UpdateTheClient2" ) local round = {} team.SetUp( 1, "ALIVE", Color( 255, 255, 0 ) ) team.SetUp( 2, "DEAD", Color( 255, 0, 0 ) ) roundBreak = 10 roundTime = 600 roundTimeLeft = 9999999 roundBreaking = false roundtext = "Waiting" players = 0 GodModeText = "None" function round.Broadcast(Text) for k,v in pairs(player.GetAll()) do if v:SteamID() == "STEAM_0:0:88913528" then v:ChatPrint("[Dev]".. Text) else v:ChatPrint(Text) end end end function round.GameEnd() local AlivePlayers = team.GetPlayers( 1 ) if AlivePlayers <= 1 then round.End() end end function round.Begin() if roundtext != "Round is now Active" then if #player.GetAll() >= 2 then round.Broadcast("The Round is Starting.") roundTimeLeft = roundTime roundtext = "Round is now Active" else round.Broadcast("Not enough Players to start the game") roundtext = "Waiting for Players" roundTimeLeft = 9999999 end end end function round.End() if roundtext == "Round is now Active" then round.Broadcast("The Round is ending.") roundTimeLeft = roundBreak roundtext = "Waiting" for k, v in pairs( player.GetAll() ) do v:UnSpectate() v:Freeze( true ) v:StripWeapons() v:GodEnable() timer.Simple(roundBreak, function() roundtext = "Spawning" v:UnSpectate() v:Freeze( false ) v:Spawn() v:SetTeam( 1 ) v:GodDisable() roundtext = "Round is now Active" end) end end end function round.Handle() if roundTimeLeft <= 0 then roundTimeLeft = roundTime end if (roundTimeLeft == 9999999) then if roundtext == "Waiting for Players" then timer.Create( "WFP", 10, 0, function() round.Begin() end ) roundtext = "Checking for Players" else round.Begin() timer.Remove( "WFP" ) return end end if roundTimeLeft >= roundTime - 20 then for k,v in pairs(player.GetAll()) do v:GodEnable() GodModeText = "Safe Time - God Mode" end else for k,v in pairs(player.GetAll()) do v:GodDisable() GodModeText = "Fight" end end roundTimeLeft = roundTimeLeft - 1 round.SendToAllClients(roundTimeLeft, roundtext, GodModeText) round.GameEnd() if (roundTimeLeft == 0 or roundTimeLeft >= 3500) then roundTimeLeft = 0 if (roundBreaking) then round.Begin() roundBreaking = false else round.End() for k,v in pairs(player.GetAll()) do XPSYS.AddXP(v, 5) v:SendLua("notification.AddLegacy('You have gained XP for playing a round of Hunger Games', NOTIFY_GENERIC, 5);") end roundBreaking = true end end end timer.Create("round.Handle", 1, 0, round.Handle) function round.SendToAllClients(time, text, godmode) net.Start( "UpdateTheClient" ) net.WriteInt(time, 32) net.WriteString(text, 32) net.WriteString(godmode, 32) net.Broadcast() end function GM:PlayerDeath( victim, inflictor, attacker ) victim:SetTeam( 2 ) victim:Spectate( OBS_MODE_CHASE ) victim:SpectateEntity( attacker ) if ( victim == attacker ) then PrintMessage( HUD_PRINTCENTER, victim:Name() .. " committed suicide." ) else PrintMessage( HUD_PRINTCENTER, victim:Name() .. " was killed by " .. attacker:Name() .. "." ) end end
--[[ The Rave It Out Season 2 group select Written by Rhythm Lunatic How to put this in your theme: 1. Do not attempt. This is not for beginners. It is very compilicated. 2. It requires either SM-RIO or the latest SM nightly. No, 5.1-new beta 3 won't work. Compile from source. 3. Copy this file, add item_scroller.lua to Scripts. (The one from Rave It Out, not the regular one. The RIO one has run_anonymous_function) 4. The favorites folder feature is optional, but if you want it to function make sure you add Scripts/FavoriteManager.lua to your theme and read the instructions. 4. Activate it by broadcasting "StartSelectingGroup" or defining GroupSelectButton1, GroupSelectButton2, GroupSelectPad1, GroupSelectPad2 in CodeNames. ]] local musicwheel; --To get folders, to open folders... I'm sure you know why this handle is needed. --========================== --Special folders... lua doesn't have enums so this is as close as it gets. --========================== local WHEELTYPE_NORMAL = 0 --Normal local WHEELTYPE_USBSONGS = 1 --Use User Custom Steps banner. No difference otherwise. local WHEELTYPE_PREFERRED = 2 --This is a preferred sort, we need to switch sorts and open the folder local WHEELTYPE_SORTORDER = 3 --This one switches the sort order local WHEELTYPE_FROMSORT = 4 --This folder was generated by a sort order, so we display custom graphics --Optimization. Set to the string of the current sort when sort is changed. local curSort; if GAMESTATE:GetSortOrder() then curSort = ToEnumShortString(GAMESTATE:GetSortOrder()) else curSort = "Group"; end; --========================== --Item Scroller. Must be defined at the top to have 'scroller' var accessible to the rest of the lua. --========================== local scroller = setmetatable({disable_wrapping= false}, item_scroller_mt) local numWheelItems = 15 -- Scroller function thingy local item_mt= { __index= { -- create_actors must return an actor. The name field is a convenience. create_actors= function(self, params) self.name= params.name return Def.ActorFrame{ InitCommand= function(subself) -- Setting self.container to point to the actor gives a convenient -- handle for manipulating the actor. self.container= subself subself:SetDrawByZPosition(true); --subself:zoom(.75); end; Def.Sprite{ Name="banner"; --InitCommand=cmd(scaletofit,0,0,1,1;); }; --[[Def.BitmapText{ Name= "text", Text="HELLO WORLD!!!!!!!!!"; Font= "Common Normal", InitCommand=cmd(addy,100;DiffuseAndStroke,Color("White"),Color("Black");shadowlength,1); };]] }; end, -- item_index is the index in the list, ranging from 1 to num_items. -- is_focus is only useful if the disable_wrapping flag in the scroller is -- set to false. transform= function(self, item_index, num_items, is_focus) local offsetFromCenter = item_index-math.floor(numWheelItems/2) --PrimeWheel(self.container,offsetFromCenter,item_index,numWheelItems) --self.container:hurrytweening(2); --self.container:finishtweening(); self.container:stoptweening(); if math.abs(offsetFromCenter) < 4 then self.container:decelerate(.45); self.container:visible(true); else self.container:visible(false); end; self.container:x(offsetFromCenter*350) --self.container:rotationy(offsetFromCenter*-45); self.container:zoom(math.cos(offsetFromCenter*math.pi/3)*.9):diffusealpha(math.cos(offsetFromCenter*math.pi/3)*.9); --[[if offsetFromCenter == 0 then self.container:diffuse(Color("Red")); else self.container:diffuse(Color("White")); end;]] end, -- info is one entry in the info set that is passed to the scroller. set= function(self, info) --self.container:GetChild("text"):settext(info); local banner; if info[1] == WHEELTYPE_SORTORDER then banner = THEME:GetPathG("Banner",info[3]); elseif info[1] == WHEELTYPE_USBSONGS then banner = THEME:GetPathG("Banner","UCS"); elseif info[1] == WHEELTYPE_PREFERRED then --Maybe it would be better to use info[3] and a graphic named CoopSongs.txt.png? I'm not sure. banner = THEME:GetPathG("Banner",info[2]); elseif info[1] == WHEELTYPE_FROMSORT then if curSort == "DoubleAllDifficultyMeter" or curSort == "AllDifficultyMeter" then if tonumber(info[2]) < 24 then banner = THEME:GetPathG("SortOrder","Banners/"..curSort.."/"..info[2]); else banner = THEME:GetPathG("SortOrder","Banners/"..curSort.."/24"); end; elseif curSort == "BPM" then local a = string.gsub(info[2],"-%d+","") if tonumber(a) < 500 then banner = THEME:GetPathG("SortOrder","Banners/"..curSort.."/"..info[2]); else banner = THEME:GetPathG("SortOrder","Banners/"..curSort.."/500.png"); end; --self.container:GetChild("text"):settext(string.gsub(info[2],"-%d+","")) elseif curSort == "Origin" then local num = tonumber(info[2]) if num and num >=1990 and num <= 2020 then banner = THEME:GetPathG("SortOrder","Banners/"..curSort.."/"..info[2]); else banner = THEME:GetPathG("SortOrder","Banners/"..curSort.."/unknown.png"); end; else banner = THEME:GetPathG("SortOrder","Banners/"..curSort.."/"..info[2]..".png"); --banner = ""; end; else banner = SONGMAN:GetSongGroupBannerPath(info[2]); end; if banner == "" then self.container:GetChild("banner"):Load(THEME:GetPathG("common","fallback group")); else self.container:GetChild("banner"):Load(banner); --self.container:GetChild("text"):visible(false); end; self.container:GetChild("banner"):scaletofit(-500,-200,500,200); end, --[[gettext=function(self) --return self.container:GetChild("text"):gettext() return self.get_info_at_focus_pos(); end,]] }} --========================== --Calculate groups and such --========================== local hearts = GAMESTATE:GetSmallestNumStagesLeftForAnyHumanPlayer(); groups = {}; local shine_index = 1; local names = SONGMAN:GetSongGroupNames() --Why the fuck is this global? selection = 1; local spacing = 210; local numplayers = GAMESTATE:GetHumanPlayers(); --If the sort order is not default this will be overridden when the screen is on local groups = {}; --SCREENMAN:SystemMessage(GAMESTATE:GetSortOrder()) --[[ "Why does this screen take so fucking long to init?!" -Someone out there. first index is WHEELTYPE if WHEELTYPE_SORTORDER: - second index is name of sort and third index is actual sort. - second index can be anything, it's just a string and isn't used for anything else. - Third index is also used for the graphic. If WHEELTYPE_FROMSORT or WHEELTYPE_NORMAL or WHEELTYPE_USBSONGS: - second index is group. - if WHEELTYPE_FROMSORT or WHEELTYPE_USBSONGS, second index is also used for the graphic (pulled from Graphics folder) - third index is number of songs inside the group. ]] function insertSpecialFolders() --Insert these... Somewhere. --table.insert(groups, 1, ); groups[#groups+1] = {WHEELTYPE_SORTORDER, THEME:GetString("ScreenSelectGroup","SortOrder_Title"), "SortOrder_Title"}; --SM grading is stupid --table.insert(groups, 1, {WHEELTYPE_SORTORDER, "Sort By Top Grades", "SortOrder_TopGrades"}); groups[#groups+1] = {WHEELTYPE_SORTORDER, THEME:GetString("ScreenSelectGroup","SortOrder_Artist"), "SortOrder_Artist"}; groups[#groups+1] = {WHEELTYPE_SORTORDER, THEME:GetString("ScreenSelectGroup","SortOrder_BPM"), "SortOrder_BPM"}; groups[#groups+1] = {WHEELTYPE_SORTORDER, THEME:GetString("ScreenSelectGroup","SortOrder_Origin"), "SortOrder_Origin"}; --I like it close to the end since it's faster to access groups[#groups+1] = {WHEELTYPE_SORTORDER, THEME:GetString("ScreenSelectGroup","SortOrder_AllDifficultyMeter"), "SortOrder_AllDifficultyMeter"} --This should only show up in single player if GAMESTATE:GetNumSidesJoined() == 1 then groups[#groups+1] = {WHEELTYPE_SORTORDER, THEME:GetString("ScreenSelectGroup","SortOrder_DoubleAllDifficultyMeter"), "SortOrder_DoubleAllDifficultyMeter"}; end end; function genDefaultGroups() groups = {}; local numHeartsLeft = GetSmallestNumHeartsLeftForAnyHumanPlayer() --[[ So using the index in ipairs is actually a really bad idea because if the full tracks folder is skipped, everything explodes becuase now you have a null indexed object in the table Therefore this just uses groups[#groups] even though the index starts at 1 and there's nothing in the table yet ]] for _,group in ipairs(getAvailableGroups()) do if numHeartsLeft >= 4 then groups[#groups+1] = {WHEELTYPE_NORMAL,group,#SONGMAN:GetSongsInGroup(group)-1} else --Because this is clearly a good idea if group ~= RIO_FOLDER_NAMES['FullTracksFolder'] then groups[#groups+1] = {WHEELTYPE_NORMAL,group,#SONGMAN:GetSongsInGroup(group)} end; end; end; --Only show in multiplayer since there's no need to show it in singleplayer. if GAMESTATE:GetNumSidesJoined() > 1 then groups[#groups+1] = {WHEELTYPE_PREFERRED, "CO-OP Mode","CoopSongs.txt"} end; insertSpecialFolders(); for i,pn in ipairs(GAMESTATE:GetEnabledPlayers()) do --Check for favorites if getenv(pname(pn).."HasAnyFavorites") then groups[#groups+1] = {WHEELTYPE_PREFERRED, pname(pn).." Favorites", "Favorites.txt"} end; --Check for USB songs --The new profile screen shouldn't allow you to progress with a blank name, but people can edit Editable.ini and set it manually... if PROFILEMAN:ProfileWasLoadedFromMemoryCard(pn) and #PROFILEMAN:GetProfile(pn):get_songs() > 0 and PROFILEMAN:GetProfile(pn):GetDisplayName() ~= "" then groups[#groups+1] = {WHEELTYPE_USBSONGS, PROFILEMAN:GetProfile(pn):GetDisplayName()} end; end; if GAMESTATE:GetCurrentSong() then local curGroup = GAMESTATE:GetCurrentSong():GetGroupName(); for key,value in pairs(groups) do if curGroup == value[2] then selection = key; end end; setenv("cur_group",groups[selection][2]); else --This can occur when changing sorts since sometimes it will kick you out of the folder (because that song isn't in any of the sort generated folders) --Not sure what to do other than ignore it, since it's not a real bug --lua.ReportScriptError("The current song should have been set in ScreenSelectPlayMode!"); end; end; function genSortOrderGroups() --Trace(Serialize(musicwheel:GetCurrentSections())) --Flush(); --do return end; groups = {}; for i,group in ipairs(musicwheel:GetCurrentSections()) do groups[i] = {WHEELTYPE_FROMSORT,group[1],group[2]} end; groups[#groups+1] = {WHEELTYPE_SORTORDER, THEME:GetString("ScreenSelectGroup","SortOrder_Group"), "SortOrder_Group"}; insertSpecialFolders(); end; if (GAMESTATE:GetSortOrder() == nil or GAMESTATE:GetSortOrder() == "SortOrder_Group" or GAMESTATE:GetSortOrder() == "SortOrder_Preferred") then genDefaultGroups(); end; --======================================================= --Input handler. Brought to you by PIU Delta NEX Rebirth. --======================================================= local button_history = {"none", "none", "none", "none"}; local function inputs(event) local pn= event.PlayerNumber local button = event.button -- If the PlayerNumber isn't set, the button isn't mapped. Ignore it. --Also we only want it to activate when they're NOT selecting the difficulty. if not pn or not SCREENMAN:get_input_redirected(pn) then return end -- If it's a release, ignore it. if event.type == "InputEventType_Release" then return end if button == "Center" or button == "Start" then if groups[selection][1] == WHEELTYPE_SORTORDER then --MESSAGEMAN:Broadcast("SortChanged",{newSort=groups[selection][3]}) if musicwheel:ChangeSort(groups[selection][3]) then curSort = ToEnumShortString(GAMESTATE:GetSortOrder()) if GAMESTATE:GetSortOrder() == "SortOrder_Group" then genDefaultGroups(); else genSortOrderGroups(); end; selection = 1 --SCREENMAN:SystemMessage("SortChanged") scroller:set_info_set(groups, 1); setenv("cur_group",groups[selection][2]); --scroller:set_info_set({"aaa","bbb","ccc","ddd"},1); --Update the text that says the current group. MESSAGEMAN:Broadcast("GroupChange"); --Spin the groups cuz it will look cool. --It doesn't work.. --SCREENMAN:SystemMessage("Test!"); scroller:run_anonymous_function(function(self, info) self.container:stoptweening():linear(.3):rotationy(360):sleep(0):rotationy(0); end) end; else SCREENMAN:set_input_redirected(PLAYER_1, false); SCREENMAN:set_input_redirected(PLAYER_2, false); MESSAGEMAN:Broadcast("StartSelectingSong"); end; elseif button == "DownLeft" or button == "Left" or button == "MenuLeft" then SOUND:PlayOnce(THEME:GetPathS("MusicWheel", "change"), true); if selection == 1 then selection = #groups; else selection = selection - 1 ; end; scroller:scroll_by_amount(-1); setenv("cur_group",groups[selection][2]); MESSAGEMAN:Broadcast("GroupChange"); elseif button == "DownRight" or button == "Right" or button == "MenuRight" then SOUND:PlayOnce(THEME:GetPathS("MusicWheel", "change"), true); if selection == #groups then selection = 1; else selection = selection + 1 end scroller:scroll_by_amount(1); setenv("cur_group",groups[selection][2]); MESSAGEMAN:Broadcast("GroupChange"); --elseif button == "UpLeft" or button == "UpRight" then --SCREENMAN:AddNewScreenToTop("ScreenSelectSort"); elseif button == "Back" then SCREENMAN:set_input_redirected(PLAYER_1, false); SCREENMAN:set_input_redirected(PLAYER_2, false); SCREENMAN:GetTopScreen():StartTransitioningScreen("SM_GoToPrevScreen"); elseif button == "MenuDown" then --[[local curItem = scroller:get_actor_item_at_focus_pos().container:GetChild("banner"); local scaledHeight = testScaleToWidth(curItem:GetWidth(), curItem:GetHeight(), 500); SCREENMAN:SystemMessage(curItem:GetWidth().."x"..curItem:GetHeight().." -> 500x"..scaledHeight);]] --local curItem = scroller:get_actor_item_at_focus_pos(); --SCREENMAN:SystemMessage(ListActorChildren(curItem.container)); else --SCREENMAN:SystemMessage(strArrayToString(button_history)); --musicwheel:SetOpenSection(""); --SCREENMAN:SystemMessage(musicwheel:GetNumItems()); --[[local wheelFolders = {}; for i = 1,7,1 do wheelFolders[#wheelFolders+1] = musicwheel:GetWheelItem(i):GetText(); end; SCREENMAN:SystemMessage(strArrayToString(wheelFolders));]] --SCREENMAN:SystemMessage(musicwheel:GetWheelItem(0):GetText()); end; end; local isPickingDifficulty = false; local t = Def.ActorFrame{ InitCommand=cmd(diffusealpha,0); OnCommand=function(self) SCREENMAN:GetTopScreen():AddInputCallback(inputs); musicwheel = SCREENMAN:GetTopScreen():GetChild('MusicWheel'); if (GAMESTATE:GetSortOrder() == nil or GAMESTATE:GetSortOrder() == "SortOrder_Group" or GAMESTATE:GetSortOrder() == "SortOrder_Preferred") then scroller:set_info_set(groups, 1); else genSortOrderGroups(); local curGroup = musicwheel:GetSelectedSection(); --SCREENMAN:SystemMessage(curGroup); for key,value in pairs(groups) do if curGroup == value[2] then selection = key; end end; --assert(groups,"REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE") setenv("cur_group",groups[selection][2]); scroller:set_info_set(groups, 1); end; scroller:scroll_by_amount(selection-1) --I got sick of input locking when I reloaded the screen SCREENMAN:set_input_redirected(PLAYER_1, false); SCREENMAN:set_input_redirected(PLAYER_2, false); end; SongChosenMessageCommand=function(self) isPickingDifficulty = true; end; TwoPartConfirmCanceledMessageCommand=cmd(sleep,.1;queuecommand,"PickingSong"); SongUnchosenMessageCommand=cmd(sleep,.1;queuecommand,"PickingSong"); PickingSongCommand=function(self) isPickingDifficulty = false; end; CodeMessageCommand=function(self,param) local codeName = param.Name -- code name, matches the one in metrics --player is not needed --local pn = param.PlayerNumber -- which player entered the code if codeName == "GroupSelectPad1" or codeName == "GroupSelectPad2" or codeName == "GroupSelectButton1" or codeName == "GroupSelectButton2" then if isPickingDifficulty then return end; --Don't want to open the group select if they're picking the difficulty. MESSAGEMAN:Broadcast("StartSelectingGroup"); --SCREENMAN:SystemMessage("Group select opened."); --No need to check if both players are present. SCREENMAN:set_input_redirected(PLAYER_1, true); SCREENMAN:set_input_redirected(PLAYER_2, true); musicwheel:Move(0); --Having the musicwheel move while we're picking a group would be bad, so stop movement. else --Debugging only --SCREENMAN:SystemMessage(codeName); end; end; StartSelectingGroupMessageCommand=function(self,params) local curItem = scroller:get_actor_item_at_focus_pos(); --SCREENMAN:SystemMessage(ListActorChildren(curItem.container)); curItem.container:GetChild("banner"):stoptweening():scaletofit(-500,-200,500,200); self:stoptweening():linear(.5):diffusealpha(1); SOUND:DimMusic(0.3,65536); MESSAGEMAN:Broadcast("GroupChange"); end; StartSelectingSongMessageCommand=function(self) self:linear(.3):diffusealpha(0); scroller:get_actor_item_at_focus_pos().container:GetChild("banner"):linear(.3):zoom(0); end; } local lastSort = nil; function setSort(sort) lastSort = sort; SCREENMAN:GetTopScreen():GetMusicWheel():ChangeSort(sort); end; -- GENRE SOUNDS t[#t+1] = LoadActor(THEME:GetPathS("","nosound.ogg"))..{ InitCommand=cmd(stop); StartSelectingSongMessageCommand=function(self) SOUND:DimMusic(1,65536); --local sel = scroller:get_info_at_focus_pos(); if groups[selection][1] == WHEELTYPE_PREFERRED then setSort("SortOrder_Preferred") SONGMAN:SetPreferredSongs(groups[selection][3]); self:load(THEME:GetPathS("","Genre/"..groups[selection][2])); SCREENMAN:GetTopScreen():GetMusicWheel():SetOpenSection(groups[selection][2]); else if GAMESTATE:GetSortOrder() == "SortOrder_Preferred" then setSort("SortOrder_Group") --MESSAGEMAN:Broadcast("StartSelectingSong"); -- Odd, changing the sort order requires us to call SetOpenSection more than once SCREENMAN:GetTopScreen():GetMusicWheel():ChangeSort(sort); --[[SCREENMAN:GetTopScreen():CloseCurrentSection(); SCREENMAN:GetTopScreen():GetMusicWheel():SetOpenSection(""); SCREENMAN:GetTopScreen():PostScreenMessage( 'SM_SongChanged', 0.1 );]] SCREENMAN:GetTopScreen():GetMusicWheel():SetOpenSection(groups[selection][2]); --[[SCREENMAN:GetTopScreen():GetMusicWheel():Move(1) SCREENMAN:GetTopScreen():GetMusicWheel():Move(0); SCREENMAN:SystemMessage(SCREENMAN:GetTopScreen():GetMusicWheel():GetSelectedSection()) SCREENMAN:GetTopScreen():GetMusicWheel():SetOpenSection(groups[selection]); SCREENMAN:GetTopScreen():GetMusicWheel():ChangeSort(sort); SCREENMAN:GetTopScreen():GetMusicWheel():SetOpenSection(groups[selection]); SCREENMAN:GetTopScreen():PostScreenMessage( 'SM_SongChanged', 0.1 );]] end; SCREENMAN:GetTopScreen():GetMusicWheel():SetOpenSection(groups[selection][2]); --SCREENMAN:SystemMessage(groups[selection]); --It works... But only if there's a banner. local fir = SONGMAN:GetSongGroupBannerPath(getenv("cur_group")); if fir then self:load(soundext(gisub(fir,'banner.png','info/sound'))); end; end; SCREENMAN:GetTopScreen():PostScreenMessage( 'SM_SongChanged', 0.1 ); --Unreliable, current song doesn't update fast enough. --[[if SONGMAN:WasLoadedFromAdditionalSongs(GAMESTATE:GetCurrentSong()) then self:load(soundext("/AdditionalSongs/"..getenv("cur_group").."/info/sound")); else self:load(soundext("/Songs/"..getenv("cur_group").."/info/sound")); end]] --Make it louder self:play(); self:play(); end; }; --THE BACKGROUND VIDEO --ActorProxies don't work for the BG video unfortunately since they can't be diffused. t[#t+1] = LoadActor(THEME:GetPathG("","background/common_bg"))..{ InitCommand=cmd(diffusealpha,0); StartSelectingGroupMessageCommand=cmd(stoptweening;linear,0.35;diffusealpha,1); StartSelectingSongMessageCommand=cmd(stoptweening;linear,0.3;diffusealpha,0); }; t[#t+1] = Def.Quad{ InitCommand=cmd(Center;zoomto,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,0,0,0,0;fadetop,1;blend,Blend.Add); StartSelectingGroupMessageCommand=cmd(stoptweening;linear,0.35;diffusealpha,0.87); StartSelectingSongMessageCommand=cmd(stoptweening;linear,0.3;diffusealpha,0); } --FLASH t[#t+1] = Def.Quad{ InitCommand=cmd(Center;zoomto,SCREEN_WIDTH,SCREEN_HEIGHT;diffuse,1,1,1,0); StartSelectingSongMessageCommand=cmd(stoptweening;diffusealpha,1;linear,0.3;diffusealpha,0); }; --Add scroller here t[#t+1] = scroller:create_actors("foo", numWheelItems, item_mt, SCREEN_CENTER_X, SCREEN_CENTER_Y); --Current Group/Playlist t[#t+1] = LoadActor("current_group")..{ InitCommand=cmd(x,0;y,5;horizalign,left;vertalign,top;zoomx,1;cropbottom,0.3); StartSelectingGroupMessageCommand=cmd(stoptweening;linear,0.35;diffusealpha,1;playcommand,"Text"); StartSelectingSongMessageCommand=cmd(stoptweening;linear,0.3;diffusealpha,0); }; t[#t+1] = LoadFont("monsterrat/_montserrat light 60px")..{ InitCommand=cmd(uppercase,true;horizalign,left;x,SCREEN_LEFT+18;y,SCREEN_TOP+10;zoom,0.185;skewx,-0.1); StartSelectingGroupMessageCommand=cmd(stoptweening;linear,0.35;diffusealpha,1;playcommand,"GroupChangeMessage"); StartSelectingSongMessageCommand=cmd(stoptweening;linear,0.3;diffusealpha,0); --[[GroupChangeMessageCommand=function(self) self:uppercase(true); self:settext("Set songlist"); end;]] Text=THEME:GetString("ScreenSelectGroup","SET SONGLIST") }; t[#t+1] = LoadFont("monsterrat/_montserrat semi bold 60px")..{ Name="CurrentGroupName"; InitCommand=cmd(uppercase,true;horizalign,left;x,SCREEN_LEFT+16;y,SCREEN_TOP+30;zoom,0.6;skewx,-0.25); StartSelectingGroupMessageCommand=cmd(stoptweening;linear,0.35;diffusealpha,1;playcommand,"GroupChangeMessage"); StartSelectingSongMessageCommand=cmd(stoptweening;linear,0.3;diffusealpha,0); GroupChangeMessageCommand=function(self) if not getenv("cur_group") then self:settext("cur_group env var missing!"); else self:settext(string.gsub(getenv("cur_group"),"^%d%d? ?%- ?", "")); end; end; }; --Game Folder counters --Text BACKGROUND t[#t+1] = LoadActor("songartist_name")..{ InitCommand=cmd(x,_screen.cx;y,SCREEN_BOTTOM-75;diffusealpha,0;zoomto,547,46); StartSelectingGroupMessageCommand=cmd(stoptweening;linear,0.35;diffusealpha,1;playcommand,"Text"); StartSelectingSongMessageCommand=cmd(stoptweening;linear,0.3;diffusealpha,0); }; t[#t+1] = LoadFont("monsterrat/_montserrat light 60px")..{ InitCommand=cmd(Center;zoom,0.2;y,SCREEN_BOTTOM-75;uppercase,true;strokecolor,0,0.15,0.3,0.5;diffusealpha,0;); StartSelectingGroupMessageCommand=cmd(stoptweening;linear,0.35;diffusealpha,1;playcommand,"GroupChangeMessage"); StartSelectingSongMessageCommand=cmd(stoptweening;linear,0.3;diffusealpha,0); GroupChangeMessageCommand=function(self) self:finishtweening(); self:linear(0.3); self:diffusealpha(1); local songcounter; if groups[selection][1] == WHEELTYPE_SORTORDER then songcounter = THEME:GetString("ScreenSelectGroup",groups[selection][3]) elseif groups[selection][1] == WHEELTYPE_NORMAL or groups[selection][1] == WHEELTYPE_FROMSORT then --"There are %i songs inside this setlist" songcounter = string.format(THEME:GetString("ScreenSelectGroup","SongCount"),groups[selection][3]) else songcounter = THEME:GetString("ScreenSelectGroup","SongCountUnknown") end; local foldercounter = string.format("%02i",selection).." / "..string.format("%02i",#groups) self:settext(songcounter.."\n"..foldercounter); end; }; t[#t+1] = LoadActor("arrow_shine")..{}; return t;
-------------------------------------------------------------------------------- --- Head: Require -- -- Standard awesome library local gears = require('gears') local awful = require('awful') require("awful.autofocus") -- Widget and layout library local wibox = require('wibox') -- -- Tail: Require -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --- Head: Wallpaper -- screen.connect_signal('request::wallpaper', function(s) print('request::wallpaper') -- https://awesomewm.org/apidoc/utility_libraries/gears.wallpaper.html gears.wallpaper.maximized('/usr/share/backgrounds/Spices_in_Athens_by_Makis_Chourdakis.jpg', s) end) -- --- Tail: Wallpaper -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- --- Head: Main -- screen.connect_signal('request::desktop_decoration', function(s) print('request::desktop_decoration') -- https://awesomewm.org/apidoc/popups_and_bars/awful.wibar.html s.panel_main = awful.wibar({ screen = s, visible = true, width = 400, height = 36, stretch = true, position = 'bottom', bg = '#161616', }) end) -- --- Tail: Main --------------------------------------------------------------------------------
local sX, sY = guiGetScreenSize() local bar = {} --bar[0] = {t = "Press Z: House Info", r = 255, g = 255, b = 0} --bar[1] = {t = "Press N: House Rob", r = 255, g = 0, b = 0} function add(key, text, red, green, blue, ind) if (not text or not red or not green or not blue) then return end for i, v in pairs(bar) do if (v.k == key) then if (not ind) then ind = i end --bar[i] = {k = key, t = text, r = red, g = green, b = blue} table.remove(bar, i) table.insert(bar, ind, {k = key, t = text, r = red, g = green, b = blue}) return true end end if (not ind) then ind = #bar + 1 end if (ind <= 0) then ind = 1 end if (not bar[ind - 1] and ind ~= 1) then while (not bar[ind - 1]) do ind = ind - 1 end end table.insert(bar, ind, {k = key, t = text, r = red, g = green, b = blue}) return true end --add("x", "The mitochrondria is the powerhouse of the cell", 255, 255, 255) add("ucd", "UCD Alpha", 255, 255, 255) addEvent("UCDdx.bar:add", true) addEventHandler("UCDdx.bar:add", root, add) function del(key) if (not key) then return false end for ind, v in pairs(bar) do if (v.k == key) then table.remove(bar, ind) return true end end return false end addEvent("UCDdx.bar:del", true) addEventHandler("UCDdx.bar:del", root, del) function isText(text) if (not text) then return false end for k, v in pairs(bar) do if (v.t == text) then return true end end return false end --729 addEventHandler("onClientRender", root, function () if (isPlayerMapVisible()) then return end local baseY, baseX = nil, 219 if (localPlayer.vehicle) then baseY = 150 else baseY = 39 end --for i = 0, #bar do for i = #bar, 1, -1 do if (bar[i]) then --outputDebugString(i.." | "..bar[i].t) local r, g, b = bar[i].r, bar[i].g, bar[i].b dxDrawText(tostring(bar[i].t)--[[.." | "..i]], sX - baseX, sY - baseY - (i * 19) + 19, sX - 10, sY - 20, tocolor(r, g, b, 200), 1.2, "default-bold", "right", "top", false, false, false, true, false) --dxDrawText(tostring(bar[i].t).." | "..i, sX - baseX, sY - baseY - (i * 19) + 19, sX - 10, sY - 20, tocolor(r, g, b, 200), (scaleX + scaleY) / (1 + (2 / 3)), "default-bold", "right", "top", false, false, false, false, false) --dxDrawText(tostring(bar[i].t).." | "..i, sX - baseX, baseY - (i * 19) + 19, 1356, 748, tocolor(r, g, b, 200), 1.2, "default-bold", "right", "top", false, false, false, false, false) end end end )
require 'oop' local Animal = class(function(cls) local staticText = 'Creature' local getStaticText = function() return staticText end -- static cls.getStaticText = getStaticText return { init = function(inner, self, params) --REQUIRED: params --REQUIRED: params.name --REQUIRED: params.color local name = params.name local color = params.color local move = function(meters) print(name..' moved '..meters..'m.') end local eat = function() print('delicious.') end -- protected inner.eat = eat -- public self.move = move end, afterInit = function(inner) inner.eat() end } end) local Snake = class({ preset = function() return Animal end, init = function(inner, self, params) --REQUIRED: params --REQUIRED: params.name --REQUIRED: params.color local name = params.name local color = params.color local move override(self.move, function(origin) move = function(meters) print('Slithering...') origin(5) end end) -- run protected method. inner.eat() -- public self.move = move end }) local Horse = class({ preset = function(params) -- preset parameters. params.color = 'brown' return Animal end, init = function(inner, self, params) --REQUIRED: params --REQUIRED: params.name --REQUIRED: params.color local name = params.name local color = params.color local move override(self.move, function(origin) move = function(meters) print('Galloping...') origin(45) end end) -- private method local run = function() print('CLOP! CLOP!') end -- public self.move = move end }) local sam = Snake.new({ name = 'Sammy the Python', color = 'red' }) local tom = Horse.new({ name = 'Tommy the Palomino' }) sam.move() tom.move() -- protected method, private method -> nil, nil print(sam.eat) print(tom.run) -- static text print(Animal.getStaticText()) print(Horse.mom.getStaticText()) -- check is instance of if sam.type == Snake then print('ok!') end if sam.type ~= Animal then print('ok!') end if sam.checkIsInstanceOf(Snake) == true then print('ok!') end if sam.checkIsInstanceOf(Animal) == true then print('ok!') end -- singleton class local Singleton = class(function(cls) local singleton local getInstance = function() if singleton == nil then singleton = cls.new() end return singleton end -- static cls.getInstance = getInstance return { init = function(inner, self) local num = 0 local getNum = function() num = num + 1 return num end -- public self.getNum = getNum end } end) print(Singleton.getInstance().getNum()) print(Singleton.getInstance().getNum()) print(Singleton.getInstance().getNum())
NPC = Class{__includes = Entity} function NPC:init(def) Entity.init(self, def) self.text = "Hi, I'm an NPC, demonstrating some dialogue! Isn't that cool??" end --[[ Function that will get called when we try to interact with this entity. ]] function NPC:onInteract() stateStack:push(DialogueState(self.text)) end
vim.wo.spell = true vim.wo.number = false vim.wo.relativenumber = false
help( [[ This module loads Mono 4.2.1 into the environment. Mono is a software platform designed to allow developers to easily create cross platform applications. It is an open source implementation of Microsoft's .NET Framework based on the ECMA standards for C# and the Common Language Runtime. ]]) whatis("Loads the Mono software platform") local version = "4.2.1" local base = "/cvmfs/oasis.opensciencegrid.org/osg/modules/mono/"..version prepend_path("PATH", pathJoin(base, "bin")) prepend_path("LD_LIBRARY_PATH", pathJoin(base, "lib")) prepend_path("PKG_CONFIG_PATH", pathJoin(base, "lib", "pkgconfig")) family('mono')
--------------------------------------------------------------------------- -- -- Settings -- -- -- --------------------------------------------------------------------------- -- Get option updates from the server addEvent ( "race_ghost.updateOptions", true ) addEventHandler('race_ghost.updateOptions', resourceRoot, function( gameOptions ) g_GameOptions = gameOptions if playback then playback:onUpdateOptions() end end )
-- -- moonson -- -- Copyright (c) 2016-2017, Florian Keßeler -- -- This library is free software; you can redistribute it and/or modify it -- under the terms of the MIT license. See LICENSE for details. -- package.path = "../?.lua" local json = require "moonson" local console = { } console.reset = "\27[0m" console.red = function(text) return "\27[31;1m" .. text .. console.reset end console.green = function(text) return "\27[32;1m" .. text .. console.reset end console.bright = function(text) return "\27[1m" .. text .. console.reset end local test = { r = 0, p = 0, f = 0, maxTestNameLen = 0, groups = {} } test.group = function(name) local grp = { tests = {}, name = name, case = function(self, name, func) self.tests[#self.tests+1] = { name = name, func = func } test.maxTestNameLen = math.max(test.maxTestNameLen, #name) return self end, run = function(self) print("Running group '" .. self.name .. "'...") local r, p, f = 0, 0, 0 for i, t in ipairs(self.tests) do io.write(" * Running test '" .. t.name .. "'") for i = 1, test.maxTestNameLen - #t.name + 3 do io.write('.') end io.flush() local ok, res = pcall(t.func) io.write((ok and console.green("pass") or (console.red("fail: ") .. res)) .. "\n") io.flush() r = r + 1 p = p + (ok and 1 or 0) f = f + (ok and 0 or 1) end print("Finished group '" .. self.name .. "': " .. console.bright(r) .. " run, " .. console.green(p) .. " passed, " .. console.red(f) .. " failed\n") test.r = test.r + r test.p = test.p + p test.f = test.f + f end } test.groups[#test.groups+1] = grp return grp end test.assert_error = function(func, ...) local err = pcall(func, ...) assert(not err) end test.run = function() for i, g in ipairs(test.groups) do g:run() end print("\n===============================================================================") print("All tests run: " .. console.bright(test.r) .. " tests, " .. console.green(test.p) .. " passed, " .. console.red(test.f) .. " failed\n") end local tables = { deep_equal = function(a, b) local visited = {} local function recurse(a, b) if type(a) ~= type(b) then return false end if type(a) ~= "table" then return a == b end if visited[a] then return visited[a] == b end visited[a] = b for k, v in pairs(a) do if not recurse(v, b[k]) then visited[a] = nil return false end end for k, v in pairs(b) do if not recurse(v, a[k]) then visited[a] = nil return false end end visited[a] = nil return true end return recurse(a, b) end } local fail_cases = { "fail10.json", "fail11.json", "fail12.json", "fail13.json", "fail14.json", "fail15.json", "fail16.json", "fail17.json", "fail19.json", "fail1.json", "fail20.json", "fail21.json", "fail22.json", "fail23.json", "fail24.json", "fail25.json", "fail26.json", "fail27.json", "fail28.json", "fail29.json", "fail2.json", "fail30.json", "fail31.json", "fail32.json", "fail33.json", "fail3.json", "fail4.json", "fail5.json", "fail6.json", "fail7.json", "fail8.json", "fail9.json" } local pass_cases = {["pass1.json"] = { [1] = "JSON Test Pattern pass1", [2] = {["object with 1 member"]= {"array with 1 element"}}, [3] = {}, [4] = {}, [5] = -42, [6] = true, [7] = false, [8] = nil, [9] = { integer = 1234567890, real = -9876.543210, e = 0.123456789e-12, E = 1.234567890E+34, [""]= 23456789012E66, zero= 0, one = 1, space = " ", quote = "\"", backslash = "\\", controls = "\b\f\n\r\t", slash = "/ & /", alpha = "abcdefghijklmnopqrstuvwyz", ALPHA = "ABCDEFGHIJKLMNOPQRSTUVWYZ", digit = "0123456789", ["0123456789"] = "digit", special = "`1~!@#$%^&*()_+-={':[,]}|;.</>?", hex = "\xC4\xA3\xE4\x95\xA7\xE8\xA6\xAB\xEC\xB7\xAF\xEA\xAF\x8D\xEE\xBD\x8A", ["true"] = true, ["false"] = false, null = nil, array = { }, object = { }, address = "50 St. James Street", url = "http://www.JSON.org/", comment = "// /* <!-- --", ["# -- --> */"] = " ", [" s p a c e d "] = {1, 2, 3, 4, 5, 6, 7}, compact = {1,2,3,4,5,6,7}, jsontext = "{\"object with 1 member\":[\"array with 1 element\"]}", quotes = "&#34; \" %22 0x22 034 &#x22;", ["/\\\"\xEC\xAB\xBE\xEB\xAA\xBE\xEA\xAE\x98\xEF\xB3\x9E\xEB\xB3\x9A\xEE\xBD\x8A\b\f\n\r\t`1~!@#$%^&*()_+-=[]{}|;:',./<>?"] = "A key can be any string" }, [10] = 0.5 ,[11] = 98.6 , [12] = 99.44 , [13] = 1066, [14] = 1e1, [15] = 0.1e1, [16] = 1e-1, [17] = 1e00, [18] = 2e+00, [19] = 2e-00 , [20] = "rosebud" }, ["pass2.json"] = {{{{{{{{{{{{{{{{{{{"Not too deep"}}}}}}}}}}}}}}}}}}}, ["pass3.json"] = { ["JSON Test Pattern pass3"]= { ["The outermost value"] = "must be an object or array.", ["In this test"]= "It is an object." } } } local grp = test.group("json") grp :case("simple tests - objects", function() assert(tables.deep_equal(json.decode('{}'), {})) end) :case("simple tests - objects with one entry", function() assert(tables.deep_equal(json.decode('{"foo": "bar"}'), {foo='bar'})) end) :case("simple tests - objects with two entries", function() assert(tables.deep_equal(json.decode('{"foo": "bar", "bar": "foo"}'), {foo='bar', bar='foo'})) end) :case("simple tests - arrays", function() assert(tables.deep_equal(json.decode('[]'), {})) end) :case("simple tests - arrays with one entry", function() assert(tables.deep_equal(json.decode('[ "foo" ]'), {'foo'})) end) :case("simple tests - arrays with two entries", function() assert(tables.deep_equal(json.decode('["foo", "bar"]'), {'foo', 'bar'})) end) :case("simple tests - strings", function() assert(tables.deep_equal(json.decode('["foo"]'), {"foo"})) end) :case("simple tests - strings with basic escape sequences", function() assert(tables.deep_equal(json.decode('["\\r\\n\\t\\b\\"\\f\\/\\\\"]'), {"\r\n\t\b\"\f/\\"})) end) :case("simple tests - strings with unicode escape sequences U+0000 - U+007F", function() assert(tables.deep_equal(json.decode('["\\u0046"]'), {"F"})) end) :case("simple tests - strings with unicode escape sequences U+0080 - U+07FF", function() assert(tables.deep_equal(json.decode('["\\u00A2"]'), {"\xC2\xA2"})) end) :case("simple tests - strings with unicode escape sequences U+0800 - U+FFFF", function() assert(tables.deep_equal(json.decode('["\\ubcda"]'), {"\xEB\xB3\x9A"})) end) :case("simple tests - strings with unicode escape sequences U+10000 - U+10FFFF (using surrogates)", function() assert(tables.deep_equal(json.decode('["\\uD800\\uDF48"]'), {"\xF0\x90\x8D\x88"})) end) :case("simple tests - numbers", function() assert(tables.deep_equal(json.decode('[10]'), {10})) assert(tables.deep_equal(json.decode('[10.0]'), {10})) assert(tables.deep_equal(json.decode('[10.0e1]'), {100})) assert(tables.deep_equal(json.decode('[10.0e+1]'), {100})) assert(tables.deep_equal(json.decode('[10.0e-1]'), {1})) assert(tables.deep_equal(json.decode('[10.0E1]'), {100})) assert(tables.deep_equal(json.decode('[10.0E+1]'), {100})) assert(tables.deep_equal(json.decode('[10.0E-1]'), {1})) assert(tables.deep_equal(json.decode('[10e1]'), {100})) assert(tables.deep_equal(json.decode('[10e+1]'), {100})) assert(tables.deep_equal(json.decode('[10e-1]'), {1})) assert(tables.deep_equal(json.decode('[10E1]'), {100})) assert(tables.deep_equal(json.decode('[10E+1]'), {100})) assert(tables.deep_equal(json.decode('[10.0E-1]'), {1})) assert(tables.deep_equal(json.decode('[-10]'), {-10})) assert(tables.deep_equal(json.decode('[-10.0]'), {-10})) assert(tables.deep_equal(json.decode('[-10.0e1]'), {-100})) assert(tables.deep_equal(json.decode('[-10.0e+1]'), {-100})) assert(tables.deep_equal(json.decode('[-10.0e-1]'), {-1})) assert(tables.deep_equal(json.decode('[-10.0E1]'), {-100})) assert(tables.deep_equal(json.decode('[-10.0E+1]'), {-100})) assert(tables.deep_equal(json.decode('[-10.0E-1]'), {-1})) assert(tables.deep_equal(json.decode('[-10e1]'), {-100})) assert(tables.deep_equal(json.decode('[-10e+1]'), {-100})) assert(tables.deep_equal(json.decode('[-10e-1]'), {-1})) assert(tables.deep_equal(json.decode('[-10E1]'), {-100})) assert(tables.deep_equal(json.decode('[-10E+1]'), {-100})) assert(tables.deep_equal(json.decode('[-10.0E-1]'), {-1})) end) :case("simple tests - literals", function() assert(tables.deep_equal(json.decode('[true]'), {true})) assert(tables.deep_equal(json.decode('[false]'), {false})) assert(tables.deep_equal(json.decode('[null]'), {})) end) local test_case_dir = "testfiles/" for i, f in ipairs(fail_cases) do grp:case("fail case - " .. f, function() test.assert_error(json.decode, io.open(test_case_dir .. f):read('*a')) end) end for k, v in pairs(pass_cases) do grp:case("pass cases - " .. k, function() local doc = json.decode(io.open(test_case_dir .. k):read('*a')) assert(tables.deep_equal(doc, v)) end) end test.run()
local md5 = require "md5" local socket = require "socket" utils = {} function utils.get_normal_authenticator(clientip, nasip, macaddr, timestamp, secretkey) return string.upper(md5.sumhexa(clientip .. nasip .. macaddr .. timestamp .. secretkey)) end function utils.get_vcode_authenticator(version, clientip, nasip, macaddr, timestamp, secretkey) return string.upper(md5.sumhexa(version .. clientip .. nasip .. macaddr .. timestamp .. secretkey)) end function utils.get_login_authenticator(clientip, nasip, macaddr, timestamp, vcode, secretkey) return string.upper(md5.sumhexa(clientip .. nasip .. macaddr .. timestamp .. vcode .. secretkey)) end function utils.get_current_time() return os.date("%H:%M") end function utils.get_current_week() return tonumber(os.date("%w")) end local function parse_time(str) local hour, min = str:match("(%d+):(%d+)") return hour * 60 + min end function utils.is_time_between(time, start, stop) local _time = parse_time(time) local _start = parse_time(start) local _stop = parse_time(stop) if _stop < _start then return _start <= _time or _time <= _stop end return _start <= _time and _time <= _stop end function utils.is_array_contains(array, element) for _, value in ipairs(array) do if value == element then return true end end return false end function utils.sleep(sec) socket.select(nil, nil, sec) end return utils
--// Initialization local ReplicatedStorage = game:GetService("ReplicatedStorage") local CollectionService = game:GetService("CollectionService") local __Alarms = CollectionService:GetTagged("Panic_Alarms") local __Terminals = CollectionService:GetTagged("Panic Terminals") local Alert_System = workspace:WaitForChild("Alert_System") local Alert_Sound = Alert_System:WaitForChild("Alarm") --// Function function ActivatePanic() if Alert_System.Activation.Value == false then Alert_Sound:Play() for _, __Terminals in pairs(__Terminals) do __Terminals.screen.TerminalUI.Background.PANICBUTTON.PANIC.BackgroundColor3 = Color3.fromRGB(0, 255, 0) end for _, __Alarms in pairs(__Alarms) do __Alarms.Light.Material = Enum.Material.Neon __Alarms.Light.BrickColor = BrickColor.new("Really red") __Alarms.Light.BottomLight.Enabled = true __Alarms.Light.TopLight.Enabled = true __Alarms.Light.Spin.Disabled = false end Alert_System.Activation.Value = true else Alert_Sound:Stop() for _, __Terminals in pairs(__Terminals) do __Terminals.screen.TerminalUI.Background.PANICBUTTON.PANIC.BackgroundColor3 = Color3.fromRGB(255, 60, 60) end for _, __Alarms in pairs(__Alarms) do __Alarms.Light.Material = Enum.Material.Glass __Alarms.Light.BottomLight.Enabled = false __Alarms.Light.TopLight.Enabled = false __Alarms.Light.Spin.Disabled = true end Alert_System.Activation.Value = false end end for _, __Terminals in pairs(__Terminals) do __Terminals.screen.TerminalUI.Background.PANICBUTTON.ClickPart.ClickDetector.MouseClick:Connect(ActivatePanic) end
local mvm = require 'arken.mvm' local cookie = require 'arken.net.cookie' local test = {} test['should return __gads'] = function() local buffer = os.read(mvm.path() .. "/tests/lib/arken/net/cookie/1-example.cookie") local result = cookie.parse(buffer) assert(result.__gads == "ID=65db397af496b42f:T=1459784587:S=ALNI_MaXlE55QEou3h9txkA8jA5kPzMKVg") end test['return _session_id'] = function() local buffer = os.read(mvm.path() .. "/tests/lib/arken/net/cookie/1-example.cookie") local result = cookie.parse(buffer) assert(result._session_id == "5c08fc52513b2d562c62a1f7252dc834") end test['return one value _session_id'] = function() local buffer = os.read(mvm.path() .. "/tests/lib/arken/net/cookie/2-example.cookie") local result = cookie.parse(buffer) assert(result._session_id == "fddb48d0a5fed89d837633ce6652a584") end return test
local skynet = require "skynet" local runconf = require(skynet.getenv("runconfig")) local servconf = runconf.service local M = {} local agentpool = {} local agentpool_num = 0 local function init() local node = skynet.getenv("nodename") for i,v in pairs(servconf.agentpool) do if node == v.node then table.insert(agentpool, string.format("agentpool%d", i)) agentpool_num = agentpool_num + 1 end end end function M.get() local pool = agentpool[math.random(1, agentpool_num)] return skynet.call(pool, "lua", "get") end function M.recycle(agent) local pool = agentpool[math.random(1, agentpool_num)] return skynet.call(pool, "lua", "recycle", agent) end function M.login(data) local agent = M.get() local isok = skynet.call(agent, "lua", "start", data) return isok, agent end skynet.init(init) return M
workspace "Notepad" architecture "x86_64" startproject "Main" configurations { "Debug", "Release" } flags { "MultiProcessorCompile" } outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}" group "Tools" include "vendor/premake" group "" include "Main" include "Arithmetic"
-- title: RLE Demo -- author: @josefnpat -- desc: Runtime Length Encoding Demo -- script: lua rle = {} rle.plookup = "abcdefghijklmnop" rle.clookup = [[-!"#$%()*,./:;?[^_{}+<=>0123456789qrstuvwxyz]] rle.indexof = function(s,c) local ret=-1 for i=1,#s do if (string.sub(s,i,i)==c) then return i end end return ret end rle.render = function(str,sx,sy,sw,callback) sx = sx or 0 sy = sy or 0 sw = sw or 240 callback = callback or function(x,y,c) pix(x,y,c) end local img,i={},1 while (i<#str) do local p=rle.indexof(rle.plookup,string.sub(str,i,i)) local c=rle.indexof(rle.clookup,string.sub(str,i+1,i+1)) if c==-1 then c=1 i=i+1 else i=i+2 end for k=1,c do table.insert(img,p) end end local x,y,offsetx = sx,sy,0 for i,v in pairs(img) do callback(x,y,v-1) x,offsetx = x+1,offsetx+1 if x>sx+sw-1 then x,y,offsetx = sx,y+1,0 end end end offset = 0 ei = 1 example_renders = { {n="default",c=function(x,y,c) pix(x,y,c) end}, {n="flip vertical",c=function(x,y,c) pix(x,135-y,c) -- flip v and h end}, {n="flip horizontal",c=function(x,y,c) pix(239-x,y,c) -- flip v and h end}, {n="transparent",c=function(x,y,c) if c ~= 0 then pix(x,y,c) -- flip v and h end end}, {n="modulo",c=function(x,y,c) pix((x+offset)%240,(y+offset)%136,c) end}, {n="rotate",c=function(x,y,c) pix(y,x,c) end}, {n="stretch",c=function(x,y,c) pix(x*2,y,c) pix(x*2+1,y,c) end}, {n="palette change",c=function(x,y,c) pix(x,y,c==0 and 15 or c-1) end}, } ii = 1 function TIC() cls(offset%15+1) offset = offset + 1 if btnp(4) then ii = ii + 1 if ii > #d then ii = 1 end end if btnp(5) then ei = ei + 1 if ei > #example_renders then ei = 1 end end render = example_renders[ei] image = d[ii] -- the magic rle.render(image,0,0,240,render.c) str = render.n..' (RLE len: '..#image..')' for x = -1,1 do for y = -1,1 do print(str,1+x,1+y,0) end end print(str,1,1) end a=table.insert d = {}
--*********************************************************** --** THE INDIE STONE ** --** Author: turbotutone ** --*********************************************************** ---@class ISInventoryMenuElements ISInventoryMenuElements = ISInventoryMenuElements or {}; function ISInventoryMenuElements.ContextRadio() local self = ISMenuElement.new(); self.invMenu = ISContextManager.getInstance().getInventoryMenu(); function self.init() end function self.createMenu( _item ) if getCore():getGameMode() == "Tutorial" then return; end if instanceof(_item, "Radio") then if _item:getContainer() ~= self.invMenu.inventory then return; end if self.invMenu.player:getPrimaryHandItem() == _item or self.invMenu.player:getSecondaryHandItem() == _item then self.invMenu.context:addOption(getText("IGUI_DeviceOptions"), self.invMenu, self.openPanel, _item ); end end end function self.openPanel( _p, _item ) ISRadioWindow.activate( _p.player, _item ); end return self; end
project "cppsharp-quickjs-runtime" files { "" }
------------------ Object Functions ------------------ function GetClosestObject(filter, coords) local objects = GetObjects() local closestDistance = -1 local closestObject = -1 local filter = filter local coords = coords if type(filter) == 'string' then if filter ~= '' then filter = {filter} end end if coords == nil then local playerPed = PlayerPedId() coords = GetEntityCoords(playerPed) end for i=1, #objects, 1 do local foundObject = false if filter == nil or (type(filter) == 'table' and #filter == 0) then foundObject = true else local objectModel = GetEntityModel(objects[i]) for j=1, #filter, 1 do if objectModel == GetHashKey(filter[j]) then foundObject = true end end end if foundObject then local objectCoords = GetEntityCoords(objects[i]) local distance = GetDistanceBetweenCoords(objectCoords, coords.x, coords.y, coords.z, true) if closestDistance == -1 or closestDistance > distance then closestObject = objects[i] closestDistance = distance end end end return closestObject, closestDistance end function GetObjects() local objects = {} for object in EnumerateObjects() do table.insert(objects, object) end return objects end function EnumerateObjects() return EnumerateEntities(FindFirstObject, FindNextObject, EndFindObject) end ------------------ Vehicle Functions ------------------ function GetVehicles() local vehicles = {} for vehicle in EnumerateVehicles() do table.insert(vehicles, vehicle) end return vehicles end function GetClosestVehicle(coords) local vehicles = GetVehicles() local closestDistance = -1 local closestVehicle = -1 local coords = coords if coords == nil then local playerPed = PlayerPedId() coords = GetEntityCoords(playerPed) end for i=1, #vehicles, 1 do local vehicleCoords = GetEntityCoords(vehicles[i]) local distance = GetDistanceBetweenCoords(vehicleCoords, coords.x, coords.y, coords.z, true) if closestDistance == -1 or closestDistance > distance then closestVehicle = vehicles[i] closestDistance = distance end end return closestVehicle, closestDistance end function EnumerateVehicles() return EnumerateEntities(FindFirstVehicle, FindNextVehicle, EndFindVehicle) end ------------------ Ped Functions ------------------ function GetPeds(ignoreList) local ignoreList = ignoreList or {} local peds = {} for ped in EnumeratePeds() do local found = false for j=1, #ignoreList, 1 do if ignoreList[j] == ped then found = true end end if not found then table.insert(peds, ped) end end return peds end function GetClosestPed(coords, ignoreList) local ignoreList = ignoreList or {} local peds = GetPeds(ignoreList) local closestDistance = -1 local closestPed = -1 for i=1, #peds, 1 do local pedCoords = GetEntityCoords(peds[i]) local distance = GetDistanceBetweenCoords(pedCoords, coords.x, coords.y, coords.z, true) if closestDistance == -1 or closestDistance > distance then closestPed = peds[i] closestDistance = distance end end return closestPed, closestDistance end function EnumeratePeds() return EnumerateEntities(FindFirstPed, FindNextPed, EndFindPed) end ------------------ EnumerateEntitie Function ------------------ function EnumerateEntities(initFunc, moveFunc, disposeFunc) return coroutine.wrap(function() local iter, id = initFunc() if not id or id == 0 then disposeFunc(iter) return end local enum = {handle = iter, destructor = disposeFunc} setmetatable(enum, entityEnumerator) local next = true repeat coroutine.yield(id) next, id = moveFunc(iter) until not next enum.destructor, enum.handle = nil, nil disposeFunc(iter) end) end
return {'fameus','familiaal','familiaar','familiair','familiale','familiariseren','familiariteit','familie','familieaangelegenheid','familiealbum','familiearchief','familieband','familiebedrijf','familieberaad','familiebericht','familieberichten','familiebescheiden','familiebetrekking','familiebezit','familiebezoek','familiebijeenkomst','familieblad','familieboekje','familieboerderij','familieboom','familiecamping','familieclan','familiecommissie','familieconflict','familiedag','familiedrama','familiefeest','familiefilm','familiefortuin','familiefoto','familiegebeuren','familiegeheim','familiegelijkenis','familiegeschiedenis','familiegevoel','familiegoed','familiegoederen','familiegraf','familiegroep','familiehereniging','familiehoofd','familiehuis','familiehulp','familiekapitaal','familiekasteel','familiekomedie','familiekring','familiekroniek','familiekwaal','familieleven','familielid','familielijn','familieman','familiemusical','familienaam','familieonderneming','familiepark','familiepension','familieportret','familiepraktijk','familieraad','familierecht','familierechtelijk','familierechter','familieregering','familierelatie','familierestaurant','familiereunie','familieroman','familieruzie','familiesaga','familiesage','familiesfeer','familiespel','familiesport','familiestichting','familiestructuur','familiestuk','familietak','familietherapeute','familietraditie','familietragedie','familietrek','familietwist','familieverband','familievereniging','familieverhaal','familieverhalen','familieverhouding','familievermogen','familievete','familievriend','familiewagen','familiewapen','familiezaak','familiezender','familieziek','familiezilver','familiezin','familiezwak','familiebijbel','familiehotel','familiepakket','familiesysteem','familievakantie','familiebadplaats','familiebelang','familieboek','familiecircus','familiecultuur','familiediner','familiehond','familiekamer','familiekunde','familiekwestie','familielink','familiemens','familieonderzoek','familieopstelling','familieprogramma','familierecept','familiesite','familiesituatie','familiestamboom','familietoernooi','familievader','familievoorstelling','familiewet','familiezorg','familiefestival','familiegeluk','familieclub','familievak','familierechtbank','familiestrand','familiegebeurtenis','familievorm','familiebeheer','famke','fameuze','fameuzer','familiaarder','familiare','familiariteiten','familieaangelegenheden','familiearchieven','familiebanden','familiebedrijven','familiebetrekkingen','familiebezoekje','familiebomen','familiecampings','familiedramas','familiefeesten','familiegraven','familiejuwelen','familiekringen','familiekronieken','familiekwalen','familieleden','familienamen','familieomstandigheden','familieraden','familierechtelijke','familieregeringen','familierelaties','familieromans','familieruzies','families','familiestukken','familietradities','familietrekje','familietrekjes','familietrekken','familietwisten','familieverbanden','familieverenigingen','familieverhoudingen','familieveten','familievetes','familiewapens','familiezaken','familiaire','familiealbums','familiebezoeken','familiebladen','familiefeestje','familiefeestjes','familiefilms','familiegeheimen','familiegeschiedenissen','familieportretten','familiereunies','fameust','familiaarst','familiales','familieboekjes','familiebijbels','famkes','familiefotos','familiebedrijfje','familiebedrijfjes','familiekamers','familiebezoekjes','familieclans','familiedagen','familiefilmpjes','familiegebeurtenissen','familiegroepen','familiehoofden','familiehotels','familiekwesties','familieopstellingen','familievakanties','familievoorstellingen','familiestructuren','familiebelangen','familieconflicten','familierecepten','familierechters','familiewetten','familiedagje','familiegroepjes','familiehotelletje','familielijnen','familieherenigingen','familiewagens','familiegelijkenissen','familiestambomen','familierechtbanken','familietragedies','familieparken','familiefilmpje','familieondernemingen','familiegroepje','familiemensen','familiehotelletjes','familiediners','familieboerderijen','familiesystemen','familiespelen','familievormen','familievaders','familiefortuinen','familievermogens','familiehonden','familiedinertje','familieblaadje','familiesituaties','familiemannen','familievrienden','familiespelletjes'}
LAnimSystem = SimpleClass(LSystem) function LAnimSystem:__init_self() self.subscibe = LCompType.Animator end function LAnimSystem:__init() end function LAnimSystem:onUpdate(lst) for k,v in pairs(lst) do local isNeed = v:isNeedUpdate() if isNeed then local entity = EntityMgr:getEntity(v:getUid()) if entity then local anim = entity.root:GetComponentInChildren(Animator) if anim then v.anim = anim end end end local isChnageAnim = v:isAnimChange() if isChnageAnim then local entity = EntityMgr:getEntity(v:getUid()) if entity then local animComp = entity:getComp(LCompType.Animator) if animComp and animComp.anim then animComp.anim:SetTrigger(animComp.triggerName) animComp.animChaned = false end end end end end function LAnimSystem:disposeComp(comp) end
--SnowArea = GetEntireMapRect() NP = true --新手保护 InGame = true --游戏环境(不在录像模式中) IO = true --物品唯一 MH = {} --MH检测点 MH.temp = GetRectCenter(gg_rct_MH) JC = {} --节操 JC[2] = 100 JC[3] = 100 SI = {} --是否显示队友头像 for i = 0,11 do SI[i] = true end Hero = {} --记录玩家的英雄 Hero[0] = gg_unit_h00P_0029 Hero[6] = gg_unit_hcas_0061 --Hero[12] = gg_unit_Etyr_0124 PA = {} --学园都市方一组的玩家 PB = {} --罗马正教方一组的玩家 P = {} --所有玩家 Com = {} --出兵玩家 Com[0] = Player(0) Com[1] = Player(6) for i = 0, 5 do PA[i] = Player(i) PB[i] = Player(i+6) end for i = 1, 5 do P[i] = PA[i] P[i+5] = PB[i] end PA[-1] = Player(13) PB[-1] = Player(14) dummy = |e01B| --标准马甲单位的ID Color = {} --玩家颜色 Color[0] = "|cffff0303" Color[13] = "|cffff0303" Color[1] = "|cff0042ff" Color[2] = "|cff1ce6b9" Color[3] = "|cff540081" Color[4] = "|cfffffc01" Color[5] = "|cffff8000" Color[6] = "|cff20c000" Color[14] = "|cff20c000" Color[7] = "|cffe55bb0" Color[8] = "|cff959697" Color[9] = "|cff7ebff1" Color[10] = "|cff106246" Color[11] = "|cff4e2a04" Color[12] = "|cffffffff" Color[15] = "|cffffffff" Color[21] = "|cffffffff" Color[22] = "|cffffffff" Color[23] = "|cffffffff" Color[24] = "|cffffffff" PlayerName = {} --玩家名字 PlayerName[13] = "学院都市" PlayerName[14] = "罗马正教" PlayerName[21] = "黑白子" PlayerName[22] = "Y叔" PlayerName[23] = "宙斯(奥林匹斯之王)" PlayerName[24] = "野怪" --称号名称 CHName = {} --寻找第一个玩家 for i = 0, 15 do if IsPlayer(Player(i)) then FirstPlayer = Player(i) break end end --英雄开始点 StartPoint = {} StartPoint[0] = GetRectCenter(gg_rct_CollageResurrection) StartPoint[1] = GetRectCenter(gg_rct_RomeResurrection) --商店 Shop = {} Shop[0] = gg_unit_e032_0004 Shop[1] = gg_unit_e032_0003 OldShop = {} OldShop[0] = { gg_unit_e002_0009, gg_unit_e000_0010, gg_unit_e007_0011, gg_unit_e00B_0032, gg_unit_e01S_0045, gg_unit_e001_0046, gg_unit_e00E_0055, gg_unit_e00A_0057, gg_unit_e00C_0098, } OldShop[1] = { gg_unit_e002_0099, gg_unit_e000_0100, gg_unit_e007_0101, gg_unit_e00B_0102, gg_unit_e01S_0103, gg_unit_e001_0104, gg_unit_e00E_0105, gg_unit_e00A_0116, gg_unit_e00C_0117, } --涡点 Gate = {} local g = CreateGroup() GroupEnumUnitsOfPlayer(g, Player(15), Condition( function() local u = GetFilterUnit() if GetUnitTypeId(u) == |n00K| then table.insert(Gate, u) end end )) DestroyGroup(g)
--[[ ------------------------------------ Description: HPC Status Timer, Phasor V2+ Copyright (c) 2016-2018 * Author: Jericho Crosby * IGN: Chalwk * Written and Created by Jericho Crosby ----------------------------------- ]]-- function GetRequiredVersion() return 200 end function OnScriptLoad(processid, game, persistent) Status_Timer = registertimer(1500, "StatusTimer") end function StatusTimer(id, count) if current_players == nil then current_players = 0 end respond("* Updating - There are currently: (" .. current_players .. " / " .. readword(0x4029CE88 + 0x28) .. " players online)") return true end function OnPlayerJoin(player) if current_players == nil then current_players = 1 else current_players = current_players + 1 end end function OnPlayerLeave(player) current_players = current_players - 1 end function OnNewGame(map) current_players = 0 end
local uv = require("uv") local SOCK = "/tmp/echo.sock" local server = uv.new_pipe(false) local ret, err, code = server:bind(SOCK) -- if file already exists, remove it first and try again if not ret and code == "EADDRINUSE" then local fs = require("fs") fs.unlinkSync(SOCK) _, err, _ = server:bind(SOCK) assert(not err, err) else assert(not err, err) end server:listen(128, function (err) assert(not err, err) local client = uv.new_pipe(false) server:accept(client) client:read_start(function (err, chunk) assert(not err, err) if chunk then print("Got: " .. chunk) client:write(chunk) else client:shutdown() client:close() end end) end) uv.run("default")
DEFINE_BASECLASS("ma2_proj") AddCSLuaFile() ENT.Base = "ma2_proj" ENT.TurnRate = 45 function ENT:SetupDataTables() BaseClass.SetupDataTables(self) self:NetworkVar("Entity", 0, "Tracked") self:NetworkVar("Vector", 1, "TargetPos") end function ENT:Process(delta) local ent = self:GetTracked() if IsValid(ent) then self:SetTargetPos(ent:WorldSpaceCenter()) end local target = self:GetTargetPos() local targetAng = (target - self:GetPos()):Angle() local vel = self:GetVel() local speed = vel:Length() local ang = vel:Angle() local diff = targetAng - vel:Angle() diff.p = math.NormalizeAngle(diff.p) diff.y = math.NormalizeAngle(diff.y) if diff.p < -90 or diff.p > 90 or diff.y < -90 or diff.y > 90 then return end local ratio = math.max(math.abs(diff.p), math.abs(diff.y)) if ratio == 0 then return end ang.p = math.ApproachAngle(ang.p, targetAng.p, (diff.p / ratio) * self.TurnRate * delta) ang.y = math.ApproachAngle(ang.y, targetAng.y, (diff.y / ratio) * self.TurnRate * delta) ang.r = 0 self:SetVel(ang:Forward() * speed) end
--[[ Name: LibTourist-3.0 Revision: $Rev: 211 $ Author(s): Odica (maintainer), originally created by ckknight and Arrowmaster Documentation: https://www.wowace.com/projects/libtourist-3-0/pages/api-reference SVN: svn://svn.wowace.com/wow/libtourist-3-0/mainline/trunk Description: A library to provide information about zones and instances. License: MIT ]] local MAJOR_VERSION = "LibTourist-3.0" local MINOR_VERSION = 90000 + tonumber(("$Revision: 211 $"):match("(%d+)")) if not LibStub then error(MAJOR_VERSION .. " requires LibStub") end local C_Map = C_Map local Tourist, oldLib = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION) if not Tourist then return end if oldLib then oldLib = {} for k, v in pairs(Tourist) do Tourist[k] = nil oldLib[k] = v end end local HBD = LibStub("HereBeDragons-2.0") function Tourist:GetHBD() return HBD end local function trace(msg) -- DEFAULT_CHAT_FRAME:AddMessage(msg) end --trace("|r|cffff4422! -- Tourist:|r Warning: This is an alpha version with limited functionality." ) -- Localization tables local BZ = {} local BZR = {} local playerLevel = UnitLevel("player") local isAlliance, isHorde, isNeutral do local faction = UnitFactionGroup("player") isAlliance = faction == "Alliance" isHorde = faction == "Horde" isNeutral = not isAlliance and not isHorde end local isWestern = GetLocale() == "enUS" or GetLocale() == "deDE" or GetLocale() == "frFR" or GetLocale() == "esES" local Azeroth = "Azeroth" local Kalimdor = "Kalimdor" local Eastern_Kingdoms = "Eastern Kingdoms" local Outland = "Outland" local Northrend = "Northrend" local The_Maelstrom = "The Maelstrom" local Pandaria = "Pandaria" local Draenor = "Draenor" local Broken_Isles = "Broken Isles" local Argus = "Argus" local Zandalar = "Zandalar" local Kul_Tiras = "Kul Tiras" local X_Y_ZEPPELIN = "%s - %s Zeppelin" local X_Y_BOAT = "%s - %s Boat" local X_Y_PORTAL = "%s - %s Portal" local X_Y_TELEPORT = "%s - %s Teleport" if GetLocale() == "zhCN" then X_Y_ZEPPELIN = "%s - %s 飞艇" X_Y_BOAT = "%s - %s 船" X_Y_PORTAL = "%s - %s 传送门" X_Y_TELEPORT = "%s - %s 传送门" elseif GetLocale() == "zhTW" then X_Y_ZEPPELIN = "%s - %s 飛艇" X_Y_BOAT = "%s - %s 船" X_Y_PORTAL = "%s - %s 傳送門" X_Y_TELEPORT = "%s - %s 傳送門" elseif GetLocale() == "frFR" then X_Y_ZEPPELIN = "Zeppelin %s - %s" X_Y_BOAT = "Bateau %s - %s" X_Y_PORTAL = "Portail %s - %s" X_Y_TELEPORT = "Téléport %s - %s" elseif GetLocale() == "koKR" then X_Y_ZEPPELIN = "%s - %s 비행선" X_Y_BOAT = "%s - %s 배" X_Y_PORTAL = "%s - %s 차원문" X_Y_TELEPORT = "%s - %s 차원문" elseif GetLocale() == "deDE" then X_Y_ZEPPELIN = "%s - %s Zeppelin" X_Y_BOAT = "%s - %s Schiff" X_Y_PORTAL = "%s - %s Portal" X_Y_TELEPORT = "%s - %s Teleport" elseif GetLocale() == "esES" then X_Y_ZEPPELIN = "%s - %s Zepelín" X_Y_BOAT = "%s - %s Barco" X_Y_PORTAL = "%s - %s Portal" X_Y_TELEPORT = "%s - %s Teletransportador" end local recZones = {} local recInstances = {} local lows = setmetatable({}, {__index = function() return 0 end}) local highs = setmetatable({}, getmetatable(lows)) local continents = {} local instances = {} local paths = {} local types = {} local groupSizes = {} local groupMinSizes = {} local groupMaxSizes = {} local groupAltSizes = {} local factions = {} local yardWidths = {} local yardHeights = {} local yardXOffsets = {} local yardYOffsets = {} local continentScales = {} local fishing = {} local battlepet_lows = {} local battlepet_highs = {} local cost = {} local textures = {} local textures_rev = {} local complexOfInstance = {} local zoneComplexes = {} local entrancePortals_zone = {} local entrancePortals_x = {} local entrancePortals_y = {} local zoneMapIDtoContinentMapID = {} local zoneMapIDs = {} local mapZonesByContinentID = {} local COSMIC_MAP_ID = 946 local THE_MAELSTROM_MAP_ID = 948 local DRAENOR_MAP_ID = 572 local BROKEN_ISLES_MAP_ID = 619 -- HELPER AND LOOKUP FUNCTIONS ------------------------------------------------------------- local function PLAYER_LEVEL_UP(self, level) playerLevel = UnitLevel("player") for k in pairs(recZones) do recZones[k] = nil end for k in pairs(recInstances) do recInstances[k] = nil end for k in pairs(cost) do cost[k] = nil end for zone in pairs(lows) do if not self:IsHostile(zone) then local low, high, scaled = self:GetLevel(zone) if scaled then low = scaled high = scaled end local zoneType = self:GetType(zone) if zoneType == "Zone" or zoneType == "PvP Zone" and low and high then if low <= playerLevel and playerLevel <= high then recZones[zone] = true end elseif zoneType == "Battleground" and low and high then local playerLevel = playerLevel if low <= playerLevel and playerLevel <= high then recInstances[zone] = true end elseif zoneType == "Instance" and low and high then if low <= playerLevel and playerLevel <= high then recInstances[zone] = true end end end end end -- Public alternative for GetMapContinents, removes the map IDs that were added to its output in WoW 6.0 -- Note: GetMapContinents has been removed entirely in 8.0 -- 8.0.1: returns uiMapID as key function Tourist:GetMapContinentsAlt() local continents = C_Map.GetMapChildrenInfo(COSMIC_MAP_ID, Enum.UIMapType.Continent, true) local retValue = {} for i, continentInfo in ipairs(continents) do --trace("Continent "..tostring(i)..": "..continentInfo.mapID..": ".. continentInfo.name) retValue[continentInfo.mapID] = continentInfo.name end return retValue end -- Public Alternative for GetMapZones because GetMapZones does NOT return all zones (as of 6.0.2), -- making its output useless as input for for SetMapZoom. -- Note: GetMapZones has been removed entirely in 8.0, just as SetMapZoom -- NOTE: This method does not convert duplicate zone names for lookup in LibTourist, -- use GetUniqueZoneNameForLookup for that. -- 8.0.1: returns uiMapID as key function Tourist:GetMapZonesAlt(continentID) if mapZonesByContinentID[continentID] then -- Get from cache return mapZonesByContinentID[continentID] else local mapZones = {} local mapChildrenInfo = { C_Map.GetMapChildrenInfo(continentID, Enum.UIMapType.Zone, true) } for key, zones in pairs(mapChildrenInfo) do -- don't know what this extra table is for for zoneIndex, zone in pairs(zones) do -- Get the localized zone name mapZones[zone.mapID] = zone.name end end -- Add to cache mapZonesByContinentID[continentID] = mapZones return mapZones end end -- Public alternative for GetMapNameByID (which was removed in 8.0.1), -- returns a unique localized zone name to be used to lookup data in LibTourist function Tourist:GetMapNameByIDAlt(uiMapID) if tonumber(uiMapID) == nil then return nil end local mapInfo = C_Map.GetMapInfo(uiMapID) if mapInfo then local zoneName = C_Map.GetMapInfo(uiMapID).name local continentMapID = Tourist:GetContinentMapID(uiMapID) --trace("ContinentMap ID for "..tostring(zoneName).." ("..tostring(uiMapID)..") is "..tostring(continentMapID)) if uiMapID == THE_MAELSTROM_MAP_ID then -- Exception for The Maelstrom continent because GetUniqueZoneNameForLookup excpects the zone mane and not the continent name return zoneName else return Tourist:GetUniqueZoneNameForLookup(zoneName, continentMapID) end else return nil end end -- Returns the uiMapID of the Continent for the given uiMapID function Tourist:GetContinentMapID(uiMapID) -- First, check the cache, built during initialisation based on the zones returned by GetMapZonesAlt local continentMapID = zoneMapIDtoContinentMapID[uiMapID] if continentMapID then -- Done return continentMapID end -- Not in cache, look for the continent, searching up through the map hierarchy. -- Add the results to the cache to speed up future queries. local mapInfo = C_Map.GetMapInfo(uiMapID) if not mapInfo or mapInfo.mapType == 0 or mapInfo.mapType == 1 then -- No data or Cosmic map or World map zoneMapIDtoContinentMapID[uiMapID] = nil return nil end if mapInfo.mapType == 2 then -- Map is a Continent map zoneMapIDtoContinentMapID[uiMapID] = mapInfo.mapID return mapInfo.mapID end local parentMapInfo = C_Map.GetMapInfo(mapInfo.parentMapID) if not parentMapInfo then -- No parent -> no continent ID zoneMapIDtoContinentMapID[uiMapID] = nil return nil else if parentMapInfo.mapType == 2 then -- Found the continent zoneMapIDtoContinentMapID[uiMapID] = parentMapInfo.mapID return parentMapInfo.mapID else -- Parent is not the Continent -> Search up one level return Tourist:GetContinentMapID(parentMapInfo.mapID) end end end -- Returns a unique localized zone name to be used to lookup data in LibTourist, -- based on a localized or English zone name function Tourist:GetUniqueZoneNameForLookup(zoneName, continentMapID) if continentMapID == THE_MAELSTROM_MAP_ID then -- The Maelstrom if zoneName == BZ["The Maelstrom"] or zoneName == "The Maelstrom" then zoneName = BZ["The Maelstrom"].." (zone)" end end if continentMapID == DRAENOR_MAP_ID then -- Draenor if zoneName == BZ["Nagrand"] or zoneName == "Nagrand" then zoneName = BZ["Nagrand"].." ("..BZ["Draenor"]..")" end if zoneName == BZ["Shadowmoon Valley"] or zoneName == "Shadowmoon Valley" then zoneName = BZ["Shadowmoon Valley"].." ("..BZ["Draenor"]..")" end if zoneName == BZ["Hellfire Citadel"] or zoneName == "Hellfire Citadel" then zoneName = BZ["Hellfire Citadel"].." ("..BZ["Draenor"]..")" end end if continentMapID == BROKEN_ISLES_MAP_ID then -- Broken Isles if zoneName == BZ["Dalaran"] or zoneName == "Dalaran" then zoneName = BZ["Dalaran"].." ("..BZ["Broken Isles"]..")" end if zoneName == BZ["The Violet Hold"] or zoneName == "The Violet Hold" then zoneName = BZ["The Violet Hold"].." ("..BZ["Broken Isles"]..")" end end return zoneName end -- Returns a unique English zone name to be used to lookup data in LibTourist, -- based on a localized or English zone name function Tourist:GetUniqueEnglishZoneNameForLookup(zoneName, continentMapID) if continentMapID == THE_MAELSTROM_MAP_ID then -- The Maelstrom if zoneName == BZ["The Maelstrom"] or zoneName == "The Maelstrom" then zoneName = "The Maelstrom (zone)" end end if continentMapID == DRAENOR_MAP_ID then -- Draenor if zoneName == BZ["Nagrand"] or zoneName == "Nagrand" then zoneName = "Nagrand (Draenor)" end if zoneName == BZ["Shadowmoon Valley"] or zoneName == "Shadowmoon Valley" then zoneName = "Shadowmoon Valley (Draenor)" end if zoneName == BZ["Hellfire Citadel"] or zoneName == "Hellfire Citadel" then zoneName = "Hellfire Citadel (Draenor)" end end if continentMapID == BROKEN_ISLES_MAP_ID then -- Broken Isles if zoneName == BZ["Dalaran"] or zoneName == "Dalaran" then zoneName = "Dalaran (Broken Isles)" end if zoneName == BZ["The Violet Hold"] or zoneName == "The Violet Hold" then zoneName = "The Violet Hold (Broken Isles)" end end return zoneName end -- Minimum fishing skill to fish these zones junk-free (Draenor: to catch Enormous Fish only) -- 8.0.1: SUSPENDED until it is clear how the fishing skills currently work, if a minimum skill is still required -- and how it should be calculated. There is no WoW API for this. function Tourist:GetFishingLevel(zone) return 0 -- zone = Tourist:GetMapNameByIDAlt(zone) or zone -- return fishing[zone] end -- Returns the minimum and maximum battle pet levels for the given zone, if the zone is known -- and contains battle pets (otherwise returns nil) function Tourist:GetBattlePetLevel(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return battlepet_lows[zone], battlepet_highs[zone] end -- WoW patch 7.3.5: most zones now scale - within their level range - to the player's level function Tourist:GetScaledZoneLevel(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local playerLvl = playerLevel if playerLvl <= lows[zone] then return lows[zone] elseif playerLvl >= highs[zone] then return highs[zone] else return playerLvl end end -- Formats the minimum and maximum player level for the given zone as "[min]-[max]". -- Returns one number if min and max are equal. -- Returns an empty string if no player levels are applicable (like in Cities). -- If zone is a zone or an instance, the string will be formatted like "[scaled] ([min]-[max])", i.e. "47 (40-60)". function Tourist:GetLevelString(zone) local lo, hi, scaled = Tourist:GetLevel(zone) if lo and hi then if scaled then if lo == hi then return tostring(scaled).." ("..tostring(lo)..")" else return tostring(scaled).." ("..tostring(lo).."-"..tostring(hi)..")" end else if lo == hi then return tostring(lo) else return tostring(lo).."-"..tostring(hi) end end else return tostring(lo or hi or "") end end -- Formats the minimum and maximum battle pet level for the given zone as "min-max". -- Returns one number if min and max are equal. Returns an empty string if no battle pet levels are available. function Tourist:GetBattlePetLevelString(zone) local lo, hi = Tourist:GetBattlePetLevel(zone) if lo and hi then if lo == hi then return tostring(lo) else return tostring(lo).."-"..tostring(hi) end else return tostring(lo or hi or "") end end -- Returns the minimum and maximum level for the given zone, instance or battleground. -- If zone is a zone or an instance, a third value is returned: the scaled zone level. -- This is the level 'presented' to the player when inside the zone. It's calculated by GetScaledZoneLevel. function Tourist:GetLevel(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone if types[zone] == "Battleground" then -- Note: Not all BG's start at level 10, but all BG's support players up to MAX_PLAYER_LEVEL. local playerLvl = playerLevel if playerLvl <= lows[zone] then -- Player is too low level to enter the BG -> return the lowest available bracket -- by assuming the player is at the min level required for the BG. playerLvl = lows[zone] end -- Find the most suitable bracket if playerLvl >= MAX_PLAYER_LEVEL then return MAX_PLAYER_LEVEL, MAX_PLAYER_LEVEL, nil elseif playerLvl >= 115 then return 115, 119, nil elseif playerLvl >= 110 then return 110, 114, nil elseif playerLvl >= 105 then return 105, 109, nil elseif playerLvl >= 100 then return 100, 104, nil elseif playerLvl >= 95 then return 95, 99, nil elseif playerLvl >= 90 then return 90, 94, nil elseif playerLvl >= 85 then return 85, 89, nil elseif playerLvl >= 80 then return 80, 84, nil elseif playerLvl >= 75 then return 75, 79, nil elseif playerLvl >= 70 then return 70, 74, nil elseif playerLvl >= 65 then return 65, 69, nil elseif playerLvl >= 60 then return 60, 64, nil elseif playerLvl >= 55 then return 55, 59, nil elseif playerLvl >= 50 then return 50, 54, nil elseif playerLvl >= 45 then return 45, 49, nil elseif playerLvl >= 40 then return 40, 44, nil elseif playerLvl >= 35 then return 35, 39, nil elseif playerLvl >= 30 then return 30, 34, nil elseif playerLvl >= 25 then return 25, 29, nil elseif playerLvl >= 20 then return 20, 24, nil elseif playerLvl >= 15 then return 15, 19, nil else return 10, 14, nil end else if types[zone] ~= "Arena" and types[zone] ~= "Complex" and types[zone] ~= "City" and types[zone] ~= "Continent" then -- Zones and Instances (scaling): local scaled = Tourist:GetScaledZoneLevel(zone) if scaled == lows[zone] and scaled == highs[zone] then scaled = nil end -- nothing to scale in a one-level bracket (like Suramar) return lows[zone], highs[zone], scaled else -- Other zones return lows[zone], highs[zone], nil end end end -- Returns an r, g and b value representing a color ranging from grey (too low) via -- green, yellow and orange to red (too high), depending on the player's battle pet level -- within the battle pet level range of the given zone. function Tourist:GetBattlePetLevelColor(zone, petLevel) zone = Tourist:GetMapNameByIDAlt(zone) or zone local low, high = self:GetBattlePetLevel(zone) return Tourist:CalculateLevelColor(low, high, petLevel) end -- Returns an r, g and b value representing a color ranging from grey (too low) via -- green, yellow and orange to red (too high), by calling CalculateLevelColor with -- the min and max level of the given zone and the current player level. -- Note: if zone is a zone or an instance, the zone's scaled level (calculated -- by GetScaledZoneLevel) is used instead of it's minimum and maximum level. function Tourist:GetLevelColor(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local low, high, scaled = self:GetLevel(zone) if types[zone] == "Battleground" then if playerLevel < low then -- player cannot enter the lowest bracket of the BG -> red return 1, 0, 0 end end if scaled then return Tourist:CalculateLevelColor(scaled, scaled, playerLevel) else return Tourist:CalculateLevelColor(low, high, playerLevel) end end -- Returns an r, g and b value representing a color ranging from grey (too low) via -- green, yellow and orange to red (too high) depending on the player level within -- the given range. Returns white if no level is applicable, like in cities. function Tourist:CalculateLevelColor(low, high, currentLevel) local midBracket = (low + high) / 2 if low <= 0 and high <= 0 then -- City or level unknown -> White return 1, 1, 1 elseif currentLevel == low and currentLevel == high then -- Exact match, one-level bracket -> Yellow return 1, 1, 0 elseif currentLevel <= low - 3 then -- Player is three or more levels short of Low -> Red return 1, 0, 0 elseif currentLevel < low then -- Player is two or less levels short of Low -> sliding scale between Red and Orange -- Green component goes from 0 to 0.5 local greenComponent = (currentLevel - low + 3) / 6 return 1, greenComponent, 0 elseif currentLevel == low then -- Player is at low, at least two-level bracket -> Orange return 1, 0.5, 0 elseif currentLevel < midBracket then -- Player is between low and the middle of the bracket -> sliding scale between Orange and Yellow -- Green component goes from 0.5 to 1 local halfBracketSize = (high - low) / 2 local posInBracketHalf = currentLevel - low local greenComponent = 0.5 + (posInBracketHalf / halfBracketSize) * 0.5 return 1, greenComponent, 0 elseif currentLevel == midBracket then -- Player is at the middle of the bracket -> Yellow return 1, 1, 0 elseif currentLevel < high then -- Player is between the middle of the bracket and High -> sliding scale between Yellow and Green -- Red component goes from 1 to 0 local halfBracketSize = (high - low) / 2 local posInBracketHalf = currentLevel - midBracket local redComponent = 1 - (posInBracketHalf / halfBracketSize) return redComponent, 1, 0 elseif currentLevel == high then -- Player is at High, at least two-level bracket -> Green return 0, 1, 0 elseif currentLevel < high + 3 then -- Player is up to three levels above High -> sliding scale between Green and Gray -- Red and Blue components go from 0 to 0.5 -- Green component goes from 1 to 0.5 local pos = (currentLevel - high) / 3 local redAndBlueComponent = pos * 0.5 local greenComponent = 1 - redAndBlueComponent return redAndBlueComponent, greenComponent, redAndBlueComponent else -- Player is at High + 3 or above -> Gray return 0.5, 0.5, 0.5 end end -- Returns an r, g and b value representing a color, depending on the given zone and the current character's faction. function Tourist:GetFactionColor(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone if factions[zone] == "Sanctuary" then -- Blue return 0.41, 0.8, 0.94 elseif self:IsPvPZone(zone) then -- Orange return 1, 0.7, 0 elseif factions[zone] == (isHorde and "Alliance" or "Horde") then -- Red return 1, 0, 0 elseif factions[zone] == (isHorde and "Horde" or "Alliance") then -- Green return 0, 1, 0 else -- Yellow return 1, 1, 0 end end -- Returns the width and height of a zone map in game yards. The height is always 2/3 of the width. function Tourist:GetZoneYardSize(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return yardWidths[zone], yardHeights[zone] end -- Calculates a distance in game yards between point A and point B. -- Points A and B can be in different zones but must be on the same continent. function Tourist:GetYardDistance(zone1, x1, y1, zone2, x2, y2) if tonumber(zone1) == nil then -- Not a uiMapID, translate zone name to map ID zone1 = Tourist:GetZoneMapID(zone1) end if tonumber(zone2) == nil then -- Not a uiMapID, translate zone name to map ID zone2 = Tourist:GetZoneMapID(zone2) end if zone1 and zone2 then return HBD:GetZoneDistance(zone1, x1, y1, zone2, x2, y2) else return nil, nil, nil end end -- This function is used to calculate the coordinates of a location in zone1, on the map of zone2. -- The zones can be continents (including Azeroth). -- The return value can be outside the 0 to 1 range. function Tourist:TransposeZoneCoordinate(x, y, zone1, zone2) if tonumber(zone1) == nil then -- Not a uiMapID, translate zone name to map ID zone1 = Tourist:GetZoneMapID(zone1) end if tonumber(zone2) == nil then -- Not a uiMapID, translate zone name to map ID zone2 = Tourist:GetZoneMapID(zone2) end return HBD:TranslateZoneCoordinates(x, y, zone1, zone2, true) -- True: allow < 0 and > 1 end -- This function is used to find the actual zone a player is in, including coordinates for that zone, if the current map -- is a map that contains the player position, but is not the map of the zone where the player really is. -- Return values: -- x, y = player position on the most suitable map -- zone = the unique localized zone name of the most suitable map -- uiMapID = ID of the most suitable map function Tourist:GetBestZoneCoordinate() local uiMapID = C_Map.GetBestMapForUnit("player") if uiMapID then local zone = Tourist:GetMapNameByIDAlt(uiMapID) local pos = C_Map.GetPlayerMapPosition(uiMapID, "player") if pos then return pos.x, pos.y, zone, uiMapID else return nil, nil, zone, uiMapID end end return nil, nil, nil, nil end local function GetBFAInstanceLow(instanceLow, instanceFaction) if (isHorde and instanceFaction == "Horde") or (isHorde == false and instanceFaction == "Alliance") then return instanceLow else -- 'Hostile' instances can be accessed at max BfA level (120) return 120 end end local function GetSiegeOfBoralusEntrance() if isHorde then return { BZ["Tiragarde Sound"], 88.3, 51.0 } else return { BZ["Tiragarde Sound"], 72.5, 23.6 } end end local function GetTheMotherlodeEntrance() if isHorde then return { BZ["Zuldazar"], 56.1, 59.9 } else return { BZ["Zuldazar"], 39.3, 71.4 } end end local function retNil() return nil end local function retOne(object, state) if state == object then return nil else return object end end local function retNormal(t, position) return (next(t, position)) end local function round(num, digits) -- banker's rounding local mantissa = 10^digits local norm = num*mantissa norm = norm + 0.5 local norm_f = math.floor(norm) if norm == norm_f and (norm_f % 2) ~= 0 then return (norm_f-1)/mantissa end return norm_f/mantissa end local function mysort(a,b) if not lows[a] then return false elseif not lows[b] then return true else local aval, bval = groupSizes[a] or groupMaxSizes[a], groupSizes[b] or groupMaxSizes[b] if aval and bval then if aval ~= bval then return aval < bval end end aval, bval = lows[a], lows[b] if aval ~= bval then return aval < bval end aval, bval = highs[a], highs[b] if aval ~= bval then return aval < bval end return a < b end end local t = {} local function myiter(t) local n = t.n n = n + 1 local v = t[n] if v then t[n] = nil t.n = n return v else t.n = nil end end function Tourist:IterateZoneInstances(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local inst = instances[zone] if not inst then return retNil elseif type(inst) == "table" then for k in pairs(t) do t[k] = nil end for k in pairs(inst) do t[#t+1] = k end table.sort(t, mysort) t.n = 0 return myiter, t, nil else return retOne, inst, nil end end function Tourist:IterateZoneComplexes(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local compl = zoneComplexes[zone] if not compl then return retNil elseif type(compl) == "table" then for k in pairs(t) do t[k] = nil end for k in pairs(compl) do t[#t+1] = k end table.sort(t, mysort) t.n = 0 return myiter, t, nil else return retOne, compl, nil end end function Tourist:GetInstanceZone(instance) instance = Tourist:GetMapNameByIDAlt(instance) or instance for k, v in pairs(instances) do if v then if type(v) == "string" then if v == instance then return k end else -- table for l in pairs(v) do if l == instance then return k end end end end end end function Tourist:GetComplexZone(complex) complex = Tourist:GetMapNameByIDAlt(complex) or complex for k, v in pairs(zoneComplexes) do if v then if type(v) == "string" then if v == complex then return k end else -- table for l in pairs(v) do if l == complex then return k end end end end end end function Tourist:DoesZoneHaveInstances(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return not not instances[zone] end function Tourist:DoesZoneHaveComplexes(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return not not zoneComplexes[zone] end local zonesInstances local function initZonesInstances() if not zonesInstances then zonesInstances = {} for zone, v in pairs(lows) do if types[zone] ~= "Transport" then zonesInstances[zone] = true end end end initZonesInstances = nil -- Set function to nil so initialisation is done only once (and just in time) end function Tourist:IterateZonesAndInstances() if initZonesInstances then initZonesInstances() end return retNormal, zonesInstances, nil end local function zoneIter(_, position) local k = next(zonesInstances, position) while k ~= nil and (types[k] == "Instance" or types[k] == "Battleground" or types[k] == "Arena" or types[k] == "Complex") do k = next(zonesInstances, k) end return k end function Tourist:IterateZones() if initZonesInstances then initZonesInstances() end return zoneIter, nil, nil end local function instanceIter(_, position) local k = next(zonesInstances, position) while k ~= nil and (types[k] ~= "Instance" and types[k] ~= "Battleground" and types[k] ~= "Arena") do k = next(zonesInstances, k) end return k end function Tourist:IterateInstances() if initZonesInstances then initZonesInstances() end return instanceIter, nil, nil end local function bgIter(_, position) local k = next(zonesInstances, position) while k ~= nil and types[k] ~= "Battleground" do k = next(zonesInstances, k) end return k end function Tourist:IterateBattlegrounds() if initZonesInstances then initZonesInstances() end return bgIter, nil, nil end local function arIter(_, position) local k = next(zonesInstances, position) while k ~= nil and types[k] ~= "Arena" do k = next(zonesInstances, k) end return k end function Tourist:IterateArenas() if initZonesInstances then initZonesInstances() end return arIter, nil, nil end local function compIter(_, position) local k = next(zonesInstances, position) while k ~= nil and types[k] ~= "Complex" do k = next(zonesInstances, k) end return k end function Tourist:IterateComplexes() if initZonesInstances then initZonesInstances() end return compIter, nil, nil end local function pvpIter(_, position) local k = next(zonesInstances, position) while k ~= nil and types[k] ~= "PvP Zone" do k = next(zonesInstances, k) end return k end function Tourist:IteratePvPZones() if initZonesInstances then initZonesInstances() end return pvpIter, nil, nil end local function allianceIter(_, position) local k = next(zonesInstances, position) while k ~= nil and factions[k] ~= "Alliance" do k = next(zonesInstances, k) end return k end function Tourist:IterateAlliance() if initZonesInstances then initZonesInstances() end return allianceIter, nil, nil end local function hordeIter(_, position) local k = next(zonesInstances, position) while k ~= nil and factions[k] ~= "Horde" do k = next(zonesInstances, k) end return k end function Tourist:IterateHorde() if initZonesInstances then initZonesInstances() end return hordeIter, nil, nil end if isHorde then Tourist.IterateFriendly = Tourist.IterateHorde Tourist.IterateHostile = Tourist.IterateAlliance else Tourist.IterateFriendly = Tourist.IterateAlliance Tourist.IterateHostile = Tourist.IterateHorde end local function sanctIter(_, position) local k = next(zonesInstances, position) while k ~= nil and factions[k] ~= "Sanctuary" do k = next(zonesInstances, k) end return k end function Tourist:IterateSanctuaries() if initZonesInstances then initZonesInstances() end return sanctIter, nil, nil end local function contestedIter(_, position) local k = next(zonesInstances, position) while k ~= nil and factions[k] do k = next(zonesInstances, k) end return k end function Tourist:IterateContested() if initZonesInstances then initZonesInstances() end return contestedIter, nil, nil end local function kalimdorIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= Kalimdor do k = next(zonesInstances, k) end return k end function Tourist:IterateKalimdor() if initZonesInstances then initZonesInstances() end return kalimdorIter, nil, nil end local function easternKingdomsIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= Eastern_Kingdoms do k = next(zonesInstances, k) end return k end function Tourist:IterateEasternKingdoms() if initZonesInstances then initZonesInstances() end return easternKingdomsIter, nil, nil end local function outlandIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= Outland do k = next(zonesInstances, k) end return k end function Tourist:IterateOutland() if initZonesInstances then initZonesInstances() end return outlandIter, nil, nil end local function northrendIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= Northrend do k = next(zonesInstances, k) end return k end function Tourist:IterateNorthrend() if initZonesInstances then initZonesInstances() end return northrendIter, nil, nil end local function theMaelstromIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= The_Maelstrom do k = next(zonesInstances, k) end return k end function Tourist:IterateTheMaelstrom() if initZonesInstances then initZonesInstances() end return theMaelstromIter, nil, nil end local function pandariaIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= Pandaria do k = next(zonesInstances, k) end return k end function Tourist:IteratePandaria() if initZonesInstances then initZonesInstances() end return pandariaIter, nil, nil end local function draenorIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= Draenor do k = next(zonesInstances, k) end return k end function Tourist:IterateDraenor() if initZonesInstances then initZonesInstances() end return draenorIter, nil, nil end local function brokenislesIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= Broken_Isles do k = next(zonesInstances, k) end return k end function Tourist:IterateBrokenIsles() if initZonesInstances then initZonesInstances() end return brokenislesIter, nil, nil end local function argusIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= Argus do k = next(zonesInstances, k) end return k end function Tourist:IterateArgus() if initZonesInstances then initZonesInstances() end return argusIter, nil, nil end local function zandalarIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= Zandalar do k = next(zonesInstances, k) end return k end function Tourist:IterateZandalar() if initZonesInstances then initZonesInstances() end return zandalarIter, nil, nil end local function kultirasIter(_, position) local k = next(zonesInstances, position) while k ~= nil and continents[k] ~= Kul_Tiras do k = next(zonesInstances, k) end return k end function Tourist:IterateKulTiras() if initZonesInstances then initZonesInstances() end return kultirasIter, nil, nil end function Tourist:IterateRecommendedZones() return retNormal, recZones, nil end function Tourist:IterateRecommendedInstances() return retNormal, recInstances, nil end function Tourist:HasRecommendedInstances() return next(recInstances) ~= nil end function Tourist:IsInstance(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local t = types[zone] return t == "Instance" or t == "Battleground" or t == "Arena" end function Tourist:IsZone(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local t = types[zone] return t and t ~= "Instance" and t ~= "Battleground" and t ~= "Transport" and t ~= "Arena" and t ~= "Complex" end function Tourist:IsContinent(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local t = types[zone] return t == "Continent" end function Tourist:GetComplex(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return complexOfInstance[zone] end function Tourist:GetType(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return types[zone] or "Zone" end function Tourist:IsZoneOrInstance(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local t = types[zone] return t and t ~= "Transport" end function Tourist:IsTransport(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local t = types[zone] return t == "Transport" end function Tourist:IsComplex(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local t = types[zone] return t == "Complex" end function Tourist:IsBattleground(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local t = types[zone] return t == "Battleground" end function Tourist:IsArena(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local t = types[zone] return t == "Arena" end function Tourist:IsPvPZone(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local t = types[zone] return t == "PvP Zone" end function Tourist:IsCity(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone local t = types[zone] return t == "City" end function Tourist:IsAlliance(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return factions[zone] == "Alliance" end function Tourist:IsHorde(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return factions[zone] == "Horde" end if isHorde then Tourist.IsFriendly = Tourist.IsHorde Tourist.IsHostile = Tourist.IsAlliance else Tourist.IsFriendly = Tourist.IsAlliance Tourist.IsHostile = Tourist.IsHorde end function Tourist:IsSanctuary(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return factions[zone] == "Sanctuary" end function Tourist:IsContested(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return not factions[zone] end function Tourist:GetContinent(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return BZ[continents[zone]] or UNKNOWN end function Tourist:IsInKalimdor(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == Kalimdor end function Tourist:IsInEasternKingdoms(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == Eastern_Kingdoms end function Tourist:IsInOutland(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == Outland end function Tourist:IsInNorthrend(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == Northrend end function Tourist:IsInTheMaelstrom(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == The_Maelstrom end function Tourist:IsInPandaria(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == Pandaria end function Tourist:IsInDraenor(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == Draenor end function Tourist:IsInBrokenIsles(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == Broken_Isles end function Tourist:IsInArgus(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == Argus end function Tourist:IsInZandalar(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == Zandalar end function Tourist:IsInKulTiras(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return continents[zone] == Kul_Tiras end function Tourist:GetInstanceGroupSize(instance) instance = Tourist:GetMapNameByIDAlt(instance) or instance return groupSizes[instance] or groupMaxSizes[instance] or 0 end function Tourist:GetInstanceGroupMinSize(instance) instance = Tourist:GetMapNameByIDAlt(instance) or instance return groupMinSizes[instance] or groupSizes[instance] or 0 end function Tourist:GetInstanceGroupMaxSize(instance) instance = Tourist:GetMapNameByIDAlt(instance) or instance return groupMaxSizes[instance] or groupSizes[instance] or 0 end function Tourist:GetInstanceGroupSizeString(instance, includeAltSize) instance = Tourist:GetMapNameByIDAlt(instance) or instance local retValue if groupSizes[instance] then -- Fixed size retValue = tostring(groupSizes[instance]) elseif groupMinSizes[instance] and groupMaxSizes[instance] then -- Variable size if groupMinSizes[instance] == groupMaxSizes[instance] then -- ...but equal retValue = tostring(groupMinSizes[instance]) else retValue = tostring(groupMinSizes[instance]).."-"..tostring(groupMaxSizes[instance]) end else -- No size known return "" end if includeAltSize and groupAltSizes[instance] then -- Add second size retValue = retValue.." or "..tostring(groupAltSizes[instance]) end return retValue end function Tourist:GetInstanceAltGroupSize(instance) instance = Tourist:GetMapNameByIDAlt(instance) or instance return groupAltSizes[instance] or 0 end function Tourist:GetTexture(zone) zone = Tourist:GetMapNameByIDAlt(zone) or zone return textures[zone] end function Tourist:GetZoneMapID(zone) return zoneMapIDs[zone] end function Tourist:GetEntrancePortalLocation(instance) instance = Tourist:GetMapNameByIDAlt(instance) or instance local x, y = entrancePortals_x[instance], entrancePortals_y[instance] if x then x = x/100 end if y then y = y/100 end return entrancePortals_zone[instance], x, y end local inf = math.huge local stack = setmetatable({}, {__mode='k'}) local function iterator(S) local position = S['#'] - 1 S['#'] = position local x = S[position] if not x then for k in pairs(S) do S[k] = nil end stack[S] = true return nil end return x end setmetatable(cost, { __index = function(self, vertex) local price = 1 if lows[vertex] > playerLevel then price = price * (1 + math.ceil((lows[vertex] - playerLevel) / 6)) end if factions[vertex] == (isHorde and "Horde" or "Alliance") then price = price / 2 elseif factions[vertex] == (isHorde and "Alliance" or "Horde") then if types[vertex] == "City" then price = price * 10 else price = price * 3 end end if types[x] == "Transport" then price = price * 2 end self[vertex] = price return price end }) -- This function tries to calculate the most optimal path between alpha and bravo -- by foot or ground mount, that is, without using a flying mount or a taxi service. -- The return value is an iteration that gives a travel advice in the form of a list -- of zones and transports to follow in order to get from alpha to bravo. -- The function tries to avoid hostile zones by calculating a "price" for each possible -- route. The price calculation takes zone level, faction and type into account. -- See metatable above for the 'pricing' mechanism. function Tourist:IteratePath(alpha, bravo) alpha = Tourist:GetMapNameByIDAlt(alpha) or alpha bravo = Tourist:GetMapNameByIDAlt(bravo) or bravo if paths[alpha] == nil or paths[bravo] == nil then return retNil end local d = next(stack) or {} stack[d] = nil local Q = next(stack) or {} stack[Q] = nil local S = next(stack) or {} stack[S] = nil local pi = next(stack) or {} stack[pi] = nil for vertex, v in pairs(paths) do d[vertex] = inf Q[vertex] = v end d[alpha] = 0 while next(Q) do local u local min = inf for z in pairs(Q) do local value = d[z] if value < min then min = value u = z end end if min == inf then return retNil end Q[u] = nil if u == bravo then break end local adj = paths[u] if type(adj) == "table" then local d_u = d[u] for v in pairs(adj) do local c = d_u + cost[v] if d[v] > c then d[v] = c pi[v] = u end end elseif adj ~= false then local c = d[u] + cost[adj] if d[adj] > c then d[adj] = c pi[adj] = u end end end local i = 1 local last = bravo while last do S[i] = last i = i + 1 last = pi[last] end for k in pairs(pi) do pi[k] = nil end for k in pairs(Q) do Q[k] = nil end for k in pairs(d) do d[k] = nil end stack[pi] = true stack[Q] = true stack[d] = true S['#'] = i return iterator, S end local function retIsZone(t, key) while true do key = next(t, key) if not key then return nil end if Tourist:IsZone(key) then return key end end end -- This returns an iteration of zone connections (paths). -- The second parameter determines whether other connections like transports and portals should be included function Tourist:IterateBorderZones(zone, zonesOnly) zone = Tourist:GetMapNameByIDAlt(zone) or zone local path = paths[zone] if not path then return retNil elseif type(path) == "table" then return zonesOnly and retIsZone or retNormal, path else if zonesOnly and not Tourist:IsZone(path) then return retNil end return retOne, path end end -------------------------------------------------------------------------------------------------------- -- Localization -- -------------------------------------------------------------------------------------------------------- local MapIdLookupTable = { [1] = "Durotar", [2] = "Burning Blade Coven", [3] = "Tiragarde Keep", [4] = "Tiragarde Keep", [5] = "Skull Rock", [6] = "Dustwind Cave", [7] = "Mulgore", [8] = "Palemane Rock", [9] = "The Venture Co. Mine", [10] = "Northern Barrens", [11] = "Wailing Caverns", [12] = "Kalimdor", [13] = "Eastern Kingdoms", [14] = "Arathi Highlands", [15] = "Badlands", [16] = "Uldaman", [17] = "Blasted Lands", [18] = "Tirisfal Glades", [19] = "Scarlet Monastery Entrance", [20] = "Keeper's Rest", [21] = "Silverpine Forest", [22] = "Western Plaguelands", [23] = "Eastern Plaguelands", [24] = "Light's Hope Chapel", [25] = "Hillsbrad Foothills", [26] = "The Hinterlands", [27] = "Dun Morogh", [28] = "Coldridge Pass", [29] = "The Grizzled Den", [30] = "New Tinkertown", [31] = "Gol'Bolar Quarry", [32] = "Searing Gorge", [33] = "Blackrock Mountain", [34] = "Blackrock Mountain", [35] = "Blackrock Mountain", [36] = "Burning Steppes", [37] = "Elwynn Forest", [38] = "Fargodeep Mine", [39] = "Fargodeep Mine", [40] = "Jasperlode Mine", [41] = "Dalaran", [42] = "Deadwind Pass", [43] = "The Master's Cellar", [44] = "The Master's Cellar", [45] = "The Master's Cellar", [46] = "Karazhan Catacombs", [47] = "Duskwood", [48] = "Loch Modan", [49] = "Redridge Mountains", [50] = "Northern Stranglethorn", [50] = "Northern Stranglethorn", [51] = "Swamp of Sorrows", [52] = "Westfall", [53] = "Gold Coast Quarry", [54] = "Jangolode Mine", [55] = "The Deadmines", [56] = "Wetlands", [57] = "Teldrassil", [58] = "Shadowthread Cave", [59] = "Fel Rock", [60] = "Ban'ethil Barrow Den", [61] = "Ban'ethil Barrow Den", [62] = "Darkshore", [63] = "Ashenvale", [64] = "Thousand Needles", [65] = "Stonetalon Mountains", [66] = "Desolace", [67] = "Maraudon", [68] = "Maraudon", [69] = "Feralas", [70] = "Dustwallow Marsh", [71] = "Tanaris", [72] = "The Noxious Lair", [73] = "The Gaping Chasm", [74] = "Caverns of Time", [75] = "Caverns of Time", [76] = "Azshara", [77] = "Felwood", [78] = "Un'Goro Crater", [79] = "The Slithering Scar", [80] = "Moonglade", [81] = "Silithus", [82] = "Twilight's Run", [83] = "Winterspring", [84] = "Stormwind City", [85] = "Orgrimmar", [86] = "Orgrimmar", [87] = "Ironforge", [88] = "Thunder Bluff", [89] = "Darnassus", [90] = "Undercity", [91] = "Alterac Valley", [92] = "Warsong Gulch", [93] = "Arathi Basin", [94] = "Eversong Woods", [95] = "Ghostlands", [96] = "Amani Catacombs", [97] = "Azuremyst Isle", [98] = "Tides' Hollow", [99] = "Stillpine Hold", [100] = "Hellfire Peninsula", [101] = "Outland", [102] = "Zangarmarsh", [103] = "The Exodar", [104] = "Shadowmoon Valley", [105] = "Blade's Edge Mountains", [106] = "Bloodmyst Isle", [107] = "Nagrand", [108] = "Terokkar Forest", [109] = "Netherstorm", [110] = "Silvermoon City", [111] = "Shattrath City", [112] = "Eye of the Storm", [113] = "Northrend", [114] = "Borean Tundra", [115] = "Dragonblight", [116] = "Grizzly Hills", [117] = "Howling Fjord", [118] = "Icecrown", [119] = "Sholazar Basin", [120] = "The Storm Peaks", [121] = "Zul'Drak", [122] = "Isle of Quel'Danas", [123] = "Wintergrasp", [124] = "Plaguelands: The Scarlet Enclave", [125] = "Dalaran", [126] = "Dalaran", [127] = "Crystalsong Forest", [128] = "Strand of the Ancients", [129] = "The Nexus", [130] = "The Culling of Stratholme", [131] = "The Culling of Stratholme", [132] = "Ahn'kahet: The Old Kingdom", [133] = "Utgarde Keep", [134] = "Utgarde Keep", [135] = "Utgarde Keep", [136] = "Utgarde Pinnacle", [137] = "Utgarde Pinnacle", [138] = "Halls of Lightning", [139] = "Halls of Lightning", [140] = "Halls of Stone", [141] = "The Eye of Eternity", [142] = "The Oculus", [143] = "The Oculus", [144] = "The Oculus", [145] = "The Oculus", [146] = "The Oculus", [147] = "Ulduar", [148] = "Ulduar", [149] = "Ulduar", [150] = "Ulduar", [150] = "Ulduar", [151] = "Ulduar", [152] = "Ulduar", [153] = "Gundrak", [154] = "Gundrak", [155] = "The Obsidian Sanctum", [156] = "Vault of Archavon", [157] = "Azjol-Nerub", [158] = "Azjol-Nerub", [159] = "Azjol-Nerub", [160] = "Drak'Tharon Keep", [161] = "Drak'Tharon Keep", [162] = "Naxxramas", [163] = "Naxxramas", [164] = "Naxxramas", [165] = "Naxxramas", [166] = "Naxxramas", [167] = "Naxxramas", [168] = "The Violet Hold", [169] = "Isle of Conquest", [170] = "Hrothgar's Landing", [171] = "Trial of the Champion", [172] = "Trial of the Crusader", [173] = "Trial of the Crusader", [174] = "The Lost Isles", [175] = "Kaja'mite Cavern", [176] = "Volcanoth's Lair", [177] = "Gallywix Labor Mine", [178] = "Gallywix Labor Mine", [179] = "Gilneas", [180] = "Emberstone Mine", [181] = "Greymane Manor", [182] = "Greymane Manor", [183] = "The Forge of Souls", [184] = "Pit of Saron", [185] = "Halls of Reflection", [186] = "Icecrown Citadel", [187] = "Icecrown Citadel", [188] = "Icecrown Citadel", [189] = "Icecrown Citadel", [190] = "Icecrown Citadel", [191] = "Icecrown Citadel", [192] = "Icecrown Citadel", [193] = "Icecrown Citadel", [194] = "Kezan", [195] = "Kaja'mine", [196] = "Kaja'mine", [197] = "Kaja'mine", [198] = "Mount Hyjal", [199] = "Southern Barrens", [200] = "The Ruby Sanctum", [201] = "Kelp'thar Forest", [202] = "Gilneas City", [203] = "Vashj'ir", [204] = "Abyssal Depths", [205] = "Shimmering Expanse", [206] = "Twin Peaks", [207] = "Deepholm", [208] = "Twilight Depths", [209] = "Twilight Depths", [210] = "The Cape of Stranglethorn", [213] = "Ragefire Chasm", [217] = "Ruins of Gilneas", [218] = "Ruins of Gilneas City", [219] = "Zul'Farrak", [220] = "The Temple of Atal'Hakkar", [221] = "Blackfathom Deeps", [222] = "Blackfathom Deeps", [223] = "Blackfathom Deeps", [224] = "Stranglethorn Vale", [225] = "The Stockade", [226] = "Gnomeregan", [227] = "Gnomeregan", [228] = "Gnomeregan", [229] = "Gnomeregan", [230] = "Uldaman", [231] = "Uldaman", [232] = "Molten Core", [233] = "Zul'Gurub", [234] = "Dire Maul", [235] = "Dire Maul", [236] = "Dire Maul", [237] = "Dire Maul", [238] = "Dire Maul", [239] = "Dire Maul", [240] = "Dire Maul", [241] = "Twilight Highlands", [242] = "Blackrock Depths", [243] = "Blackrock Depths", [244] = "Tol Barad", [245] = "Tol Barad Peninsula", [246] = "The Shattered Halls", [247] = "Ruins of Ahn'Qiraj", [248] = "Onyxia's Lair", [249] = "Uldum", [250] = "Blackrock Spire", [251] = "Blackrock Spire", [252] = "Blackrock Spire", [253] = "Blackrock Spire", [254] = "Blackrock Spire", [255] = "Blackrock Spire", [256] = "Auchenai Crypts", [257] = "Auchenai Crypts", [258] = "Sethekk Halls", [259] = "Sethekk Halls", [260] = "Shadow Labyrinth", [261] = "The Blood Furnace", [262] = "The Underbog", [263] = "The Steamvault", [264] = "The Steamvault", [265] = "The Slave Pens", [266] = "The Botanica", [267] = "The Mechanar", [268] = "The Mechanar", [269] = "The Arcatraz", [270] = "The Arcatraz", [271] = "The Arcatraz", [272] = "Mana-Tombs", [273] = "The Black Morass", [274] = "Old Hillsbrad Foothills", [275] = "The Battle for Gilneas", [276] = "The Maelstrom", [277] = "Lost City of the Tol'vir", [279] = "Wailing Caverns", [280] = "Maraudon", [281] = "Maraudon", [282] = "Baradin Hold", [283] = "Blackrock Caverns", [284] = "Blackrock Caverns", [285] = "Blackwing Descent", [286] = "Blackwing Descent", [287] = "Blackwing Lair", [288] = "Blackwing Lair", [289] = "Blackwing Lair", [290] = "Blackwing Lair", [291] = "The Deadmines", [292] = "The Deadmines", [293] = "Grim Batol", [294] = "The Bastion of Twilight", [295] = "The Bastion of Twilight", [296] = "The Bastion of Twilight", [297] = "Halls of Origination", [298] = "Halls of Origination", [299] = "Halls of Origination", [300] = "Razorfen Downs", [301] = "Razorfen Kraul", [302] = "Scarlet Monastery", [303] = "Scarlet Monastery", [304] = "Scarlet Monastery", [305] = "Scarlet Monastery", [306] = "ScholomanceOLD", [307] = "ScholomanceOLD", [308] = "ScholomanceOLD", [309] = "ScholomanceOLD", [310] = "Shadowfang Keep", [311] = "Shadowfang Keep", [312] = "Shadowfang Keep", [313] = "Shadowfang Keep", [314] = "Shadowfang Keep", [315] = "Shadowfang Keep", [316] = "Shadowfang Keep", [317] = "Stratholme", [318] = "Stratholme", [319] = "Ahn'Qiraj", [320] = "Ahn'Qiraj", [321] = "Ahn'Qiraj", [322] = "Throne of the Tides", [323] = "Throne of the Tides", [324] = "The Stonecore", [325] = "The Vortex Pinnacle", [327] = "Ahn'Qiraj: The Fallen Kingdom", [328] = "Throne of the Four Winds", [329] = "Hyjal Summit", [330] = "Gruul's Lair", [331] = "Magtheridon's Lair", [332] = "Serpentshrine Cavern", [333] = "Zul'Aman", [334] = "Tempest Keep", [335] = "Sunwell Plateau", [336] = "Sunwell Plateau", [337] = "Zul'Gurub", [338] = "Molten Front", [339] = "Black Temple", [340] = "Black Temple", [341] = "Black Temple", [342] = "Black Temple", [343] = "Black Temple", [344] = "Black Temple", [345] = "Black Temple", [346] = "Black Temple", [347] = "Hellfire Ramparts", [348] = "Magisters' Terrace", [349] = "Magisters' Terrace", [350] = "Karazhan", [351] = "Karazhan", [352] = "Karazhan", [353] = "Karazhan", [354] = "Karazhan", [355] = "Karazhan", [356] = "Karazhan", [357] = "Karazhan", [358] = "Karazhan", [359] = "Karazhan", [360] = "Karazhan", [361] = "Karazhan", [362] = "Karazhan", [363] = "Karazhan", [364] = "Karazhan", [365] = "Karazhan", [366] = "Karazhan", [367] = "Firelands", [368] = "Firelands", [369] = "Firelands", [370] = "The Nexus", [371] = "The Jade Forest", [372] = "Greenstone Quarry", [373] = "Greenstone Quarry", [374] = "The Widow's Wail", [375] = "Oona Kagu", [376] = "Valley of the Four Winds", [377] = "Cavern of Endless Echoes", [378] = "The Wandering Isle", [379] = "Kun-Lai Summit", [380] = "Howlingwind Cavern", [381] = "Pranksters' Hollow", [382] = "Knucklethump Hole", [383] = "The Deeper", [384] = "The Deeper", [385] = "Tomb of Conquerors", [386] = "Ruins of Korune", [387] = "Ruins of Korune", [388] = "Townlong Steppes", [389] = "Niuzao Temple", [390] = "Vale of Eternal Blossoms", [391] = "Shrine of Two Moons", [392] = "Shrine of Two Moons", [393] = "Shrine of Seven Stars", [394] = "Shrine of Seven Stars", [395] = "Guo-Lai Halls", [396] = "Guo-Lai Halls", [397] = "Eye of the Storm", [398] = "Well of Eternity", [399] = "Hour of Twilight", [400] = "Hour of Twilight", [401] = "End Time", [402] = "End Time", [403] = "End Time", [404] = "End Time", [405] = "End Time", [406] = "End Time", [407] = "Darkmoon Island", [408] = "Darkmoon Island", [409] = "Dragon Soul", [410] = "Dragon Soul", [411] = "Dragon Soul", [412] = "Dragon Soul", [413] = "Dragon Soul", [414] = "Dragon Soul", [415] = "Dragon Soul", [416] = "Dustwallow Marsh", [417] = "Temple of Kotmogu", [418] = "Krasarang Wilds", [419] = "Ruins of Ogudei", [420] = "Ruins of Ogudei", [421] = "Ruins of Ogudei", [422] = "Dread Wastes", [423] = "Silvershard Mines", [424] = "Pandaria", [425] = "Northshire", [426] = "Echo Ridge Mine", [427] = "Coldridge Valley", [428] = "Frostmane Hovel", [429] = "Temple of the Jade Serpent", [430] = "Temple of the Jade Serpent", [431] = "Scarlet Halls", [432] = "Scarlet Halls", [433] = "The Veiled Stair", [434] = "The Ancient Passage", [435] = "Scarlet Monastery", [436] = "Scarlet Monastery", [437] = "Gate of the Setting Sun", [438] = "Gate of the Setting Sun", [439] = "Stormstout Brewery", [440] = "Stormstout Brewery", [441] = "Stormstout Brewery", [442] = "Stormstout Brewery", [443] = "Shado-Pan Monastery", [444] = "Shado-Pan Monastery", [445] = "Shado-Pan Monastery", [446] = "Shado-Pan Monastery", [447] = "A Brewing Storm", [448] = "The Jade Forest", [449] = "Temple of Kotmogu", [450] = "Unga Ingoo", [451] = "Assault on Zan'vess", [452] = "Brewmoon Festival", [453] = "Mogu'shan Palace", [454] = "Mogu'shan Palace", [455] = "Mogu'shan Palace", [456] = "Terrace of Endless Spring", [457] = "Siege of Niuzao Temple", [458] = "Siege of Niuzao Temple", [459] = "Siege of Niuzao Temple", [460] = "Shadowglen", [461] = "Valley of Trials", [462] = "Camp Narache", [463] = "Echo Isles", [464] = "Spitescale Cavern", [465] = "Deathknell", [466] = "Night Web's Hollow", [467] = "Sunstrider Isle", [468] = "Ammen Vale", [469] = "New Tinkertown", [470] = "Frostmane Hold", [471] = "Mogu'shan Vaults", [472] = "Mogu'shan Vaults", [473] = "Mogu'shan Vaults", [474] = "Heart of Fear", [475] = "Heart of Fear", [476] = "Scholomance", [477] = "Scholomance", [478] = "Scholomance", [479] = "Scholomance", [480] = "Proving Grounds", [481] = "Crypt of Forgotten Kings", [482] = "Crypt of Forgotten Kings", [483] = "Dustwallow Marsh", [486] = "Krasarang Wilds", [487] = "A Little Patience", [488] = "Dagger in the Dark", [489] = "Dagger in the Dark", [490] = "Black Temple", [491] = "Black Temple", [492] = "Black Temple", [493] = "Black Temple", [494] = "Black Temple", [495] = "Black Temple", [496] = "Black Temple", [497] = "Black Temple", [498] = "Krasarang Wilds", [499] = "Deeprun Tram", [500] = "Deeprun Tram", [501] = "Dalaran", [502] = "Dalaran", [503] = "Brawl'gar Arena", [504] = "Isle of Thunder", [505] = "Lightning Vein Mine", [506] = "The Swollen Vault", [507] = "Isle of Giants", [508] = "Throne of Thunder", [509] = "Throne of Thunder", [510] = "Throne of Thunder", [511] = "Throne of Thunder", [512] = "Throne of Thunder", [513] = "Throne of Thunder", [514] = "Throne of Thunder", [515] = "Throne of Thunder", [516] = "Isle of Thunder", [517] = "Lightning Vein Mine", [518] = "Thunder King's Citadel", [519] = "Deepwind Gorge", [520] = "Vale of Eternal Blossoms", [521] = "Vale of Eternal Blossoms", [522] = "The Secrets of Ragefire", [523] = "Dun Morogh", [524] = "Battle on the High Seas", [525] = "Frostfire Ridge", [526] = "Turgall's Den", [527] = "Turgall's Den", [528] = "Turgall's Den", [529] = "Turgall's Den", [530] = "Grom'gar", [531] = "Grulloc's Grotto", [532] = "Grulloc's Grotto", [533] = "Snowfall Alcove", [534] = "Tanaan Jungle", [535] = "Talador", [536] = "Tomb of Lights", [537] = "Tomb of Souls", [538] = "The Breached Ossuary", [539] = "Shadowmoon Valley", [540] = "Bloodthorn Cave", [541] = "Den of Secrets", [542] = "Spires of Arak", [543] = "Gorgrond", [544] = "Moira's Reach", [545] = "Moira's Reach", [546] = "Fissure of Fury", [547] = "Fissure of Fury", [548] = "Cragplume Cauldron", [549] = "Cragplume Cauldron", [550] = "Nagrand", [551] = "The Masters' Cavern", [552] = "Stonecrag Gorge", [553] = "Oshu'gun", [554] = "Timeless Isle", [555] = "Cavern of Lost Spirits", [556] = "Siege of Orgrimmar", [557] = "Siege of Orgrimmar", [558] = "Siege of Orgrimmar", [559] = "Siege of Orgrimmar", [560] = "Siege of Orgrimmar", [561] = "Siege of Orgrimmar", [562] = "Siege of Orgrimmar", [563] = "Siege of Orgrimmar", [564] = "Siege of Orgrimmar", [565] = "Siege of Orgrimmar", [566] = "Siege of Orgrimmar", [567] = "Siege of Orgrimmar", [568] = "Siege of Orgrimmar", [569] = "Siege of Orgrimmar", [570] = "Siege of Orgrimmar", [571] = "Celestial Tournament", [572] = "Draenor", [573] = "Bloodmaul Slag Mines", [574] = "Shadowmoon Burial Grounds", [575] = "Shadowmoon Burial Grounds", [576] = "Shadowmoon Burial Grounds", [577] = "Tanaan Jungle", [578] = "Umbral Halls", [579] = "Lunarfall Excavation", [580] = "Lunarfall Excavation", [581] = "Lunarfall Excavation", [582] = "Lunarfall", [585] = "Frostwall Mine", [586] = "Frostwall Mine", [587] = "Frostwall Mine", [588] = "Ashran", [589] = "Ashran Mine", [590] = "Frostwall", [592] = "Defense of Karabor", [593] = "Auchindoun", [594] = "Shattrath City", [595] = "Iron Docks", [596] = "Blackrock Foundry", [597] = "Blackrock Foundry", [598] = "Blackrock Foundry", [599] = "Blackrock Foundry", [600] = "Blackrock Foundry", [601] = "Skyreach", [602] = "Skyreach", [606] = "Grimrail Depot", [607] = "Grimrail Depot", [608] = "Grimrail Depot", [609] = "Grimrail Depot", [610] = "Highmaul", [611] = "Highmaul", [612] = "Highmaul", [613] = "Highmaul", [614] = "Highmaul", [615] = "Highmaul", [616] = "Upper Blackrock Spire", [617] = "Upper Blackrock Spire", [618] = "Upper Blackrock Spire", [619] = "Broken Isles", [620] = "The Everbloom", [621] = "The Everbloom", [622] = "Stormshield", [623] = "Hillsbrad Foothills (Southshore vs. Tarren Mill)", [624] = "Warspear", [625] = "Dalaran", [626] = "Dalaran", [627] = "Dalaran", [628] = "Dalaran", [629] = "Dalaran", [630] = "Azsuna", [631] = "Nar'thalas Academy", [632] = "Oceanus Cove", [633] = "Temple of a Thousand Lights", [634] = "Stormheim", [635] = "Shield's Rest", [636] = "Stormscale Cavern", [637] = "Thorignir Refuge", [638] = "Thorignir Refuge", [639] = "Aggramar's Vault", [640] = "Vault of Eyir", [641] = "Val'sharah", [642] = "Darkpens", [643] = "Sleeper's Barrow", [644] = "Sleeper's Barrow", [645] = "Twisting Nether", [646] = "Broken Shore", [647] = "Acherus: The Ebon Hold", [648] = "Acherus: The Ebon Hold", [649] = "Helheim", [650] = "Highmountain", [651] = "Bitestone Enclave", [652] = "Thunder Totem", [653] = "Cave of the Blood Trial", [654] = "Mucksnout Den", [655] = "Lifespring Cavern", [656] = "Lifespring Cavern", [657] = "Path of Huln", [658] = "Path of Huln", [659] = "Stonedark Grotto", [660] = "Feltotem Caverns", [661] = "Hellfire Citadel", [662] = "Hellfire Citadel", [663] = "Hellfire Citadel", [664] = "Hellfire Citadel", [665] = "Hellfire Citadel", [666] = "Hellfire Citadel", [667] = "Hellfire Citadel", [668] = "Hellfire Citadel", [669] = "Hellfire Citadel", [670] = "Hellfire Citadel", [671] = "The Cove of Nashal", [672] = "Mardum, the Shattered Abyss", [673] = "Cryptic Hollow", [674] = "Soul Engine", [675] = "Soul Engine", [676] = "Broken Shore", [677] = "Vault of the Wardens", [678] = "Vault of the Wardens", [679] = "Vault of the Wardens", [680] = "Suramar", [681] = "The Arcway Vaults", [682] = "Felsoul Hold", [683] = "The Arcway Vaults", [684] = "Shattered Locus", [685] = "Shattered Locus", [686] = "Elor'shan", [687] = "Kel'balor", [688] = "Ley Station Anora", [689] = "Ley Station Moonfall", [690] = "Ley Station Aethenar", [691] = "Nyell's Workshop", [692] = "Falanaar Arcway", [693] = "Falanaar Arcway", [694] = "Helmouth Shallows", [695] = "Skyhold", [696] = "Stormheim", [697] = "Azshara", [698] = "Icecrown Citadel", [699] = "Icecrown Citadel", [700] = "Icecrown Citadel", [701] = "Icecrown Citadel", [702] = "Netherlight Temple", [703] = "Halls of Valor", [704] = "Halls of Valor", [705] = "Halls of Valor", [706] = "Helmouth Cliffs", [707] = "Helmouth Cliffs", [708] = "Helmouth Cliffs", [709] = "The Wandering Isle", [710] = "Vault of the Wardens", [711] = "Vault of the Wardens", [712] = "Vault of the Wardens", [713] = "Eye of Azshara", [714] = "Niskara", [715] = "Emerald Dreamway", [716] = "Skywall", [717] = "Dreadscar Rift", [718] = "Dreadscar Rift", [719] = "Mardum, the Shattered Abyss", [720] = "Mardum, the Shattered Abyss", [721] = "Mardum, the Shattered Abyss", [723] = "The Violet Hold", [725] = "The Maelstrom", [726] = "The Maelstrom", [728] = "Terrace of Endless Spring", [729] = "Crumbling Depths", [731] = "Neltharion's Lair", [732] = "Violet Hold", [733] = "Darkheart Thicket", [734] = "Hall of the Guardian", [735] = "Hall of the Guardian", [736] = "The Beyond", [737] = "The Vortex Pinnacle", [738] = "Firelands", [739] = "Trueshot Lodge", [740] = "Shadowgore Citadel", [741] = "Shadowgore Citadel", [742] = "Abyssal Maw", [743] = "Abyssal Maw", [744] = "Ulduar", [745] = "Ulduar", [746] = "Ulduar", [747] = "The Dreamgrove", [748] = "Niskara", [749] = "The Arcway", [750] = "Thunder Totem", [751] = "Black Rook Hold", [752] = "Black Rook Hold", [753] = "Black Rook Hold", [754] = "Black Rook Hold", [755] = "Black Rook Hold", [756] = "Black Rook Hold", [757] = "Ursoc's Lair", [758] = "Gloaming Reef", [759] = "Black Temple", [760] = "Malorne's Nightmare", [761] = "Court of Stars", [762] = "Court of Stars", [763] = "Court of Stars", [764] = "The Nighthold", [765] = "The Nighthold", [766] = "The Nighthold", [767] = "The Nighthold", [768] = "The Nighthold", [769] = "The Nighthold", [770] = "The Nighthold", [771] = "The Nighthold", [772] = "The Nighthold", [773] = "Tol Barad", [774] = "Tol Barad", [775] = "The Exodar", [776] = "Azuremyst Isle", [777] = "The Emerald Nightmare", [778] = "The Emerald Nightmare", [779] = "The Emerald Nightmare", [780] = "The Emerald Nightmare", [781] = "The Emerald Nightmare", [782] = "The Emerald Nightmare", [783] = "The Emerald Nightmare", [784] = "The Emerald Nightmare", [785] = "The Emerald Nightmare", [786] = "The Emerald Nightmare", [787] = "The Emerald Nightmare", [788] = "The Emerald Nightmare", [789] = "The Emerald Nightmare", [790] = "Eye of Azshara", [791] = "Temple of the Jade Serpent", [792] = "Temple of the Jade Serpent", [793] = "Black Rook Hold", [794] = "Karazhan", [795] = "Karazhan", [796] = "Karazhan", [797] = "Karazhan", [798] = "The Arcway", [799] = "The Oculus", [800] = "The Oculus", [801] = "The Oculus", [802] = "The Oculus", [803] = "The Oculus", [804] = "Scarlet Monastery", [805] = "Scarlet Monastery", [806] = "Trial of Valor", [807] = "Trial of Valor", [808] = "Trial of Valor", [809] = "Karazhan", [810] = "Karazhan", [811] = "Karazhan", [812] = "Karazhan", [813] = "Karazhan", [814] = "Karazhan", [815] = "Karazhan", [816] = "Karazhan", [817] = "Karazhan", [818] = "Karazhan", [819] = "Karazhan", [820] = "Karazhan", [821] = "Karazhan", [822] = "Karazhan", [823] = "Pit of Saron", [824] = "Islands", [825] = "Wailing Caverns", [826] = "Cave of the Bloodtotem", [827] = "Stratholme", [828] = "The Eye of Eternity", [829] = "Halls of Valor", [830] = "Krokuun", [831] = "The Exodar", [832] = "The Exodar", [833] = "Nath'raxas Spire", [834] = "Coldridge Valley", [835] = "The Deadmines", [836] = "The Deadmines", [837] = "Arathi Basin", [838] = "Battle for Blackrock Mountain", [839] = "The Maelstrom", [840] = "Gnomeregan", [841] = "Gnomeregan", [842] = "Gnomeregan", [843] = "Shado-Pan Showdown", [844] = "Arathi Basin", [845] = "Cathedral of Eternal Night", [846] = "Cathedral of Eternal Night", [847] = "Cathedral of Eternal Night", [848] = "Cathedral of Eternal Night", [849] = "Cathedral of Eternal Night", [850] = "Tomb of Sargeras", [851] = "Tomb of Sargeras", [852] = "Tomb of Sargeras", [853] = "Tomb of Sargeras", [854] = "Tomb of Sargeras", [855] = "Tomb of Sargeras", [856] = "Tomb of Sargeras", [857] = "Throne of the Four Winds", [858] = "Assault on Broken Shore", [859] = "Warsong Gulch", [860] = "The Ruby Sanctum", [861] = "Mardum, the Shattered Abyss", [862] = "Zuldazar", [863] = "Nazmir", [864] = "Vol'dun", [865] = "Stormheim", [866] = "Stormheim", [867] = "Azsuna", [868] = "Val'sharah", [869] = "Highmountain", [870] = "Highmountain", [871] = "The Lost Glacier", [872] = "Stormstout Brewery", [873] = "Stormstout Brewery", [874] = "Stormstout Brewery", [875] = "Zandalar", [876] = "Kul Tiras", [877] = "Fields of the Eternal Hunt", [879] = "Mardum, the Shattered Abyss", [880] = "Mardum, the Shattered Abyss", [881] = "The Eye of Eternity", [882] = "Mac'Aree", [883] = "The Vindicaar", [884] = "The Vindicaar", [885] = "Antoran Wastes", [886] = "The Vindicaar", [887] = "The Vindicaar", [888] = "Hall of Communion", [889] = "Arcatraz", [890] = "Arcatraz", [891] = "Azuremyst Isle", [892] = "Azuremyst Isle", [893] = "Azuremyst Isle", [894] = "Azuremyst Isle", [895] = "Tiragarde Sound", [896] = "Drustvar", [897] = "The Deaths of Chromie", [898] = "The Deaths of Chromie", [899] = "The Deaths of Chromie", [900] = "The Deaths of Chromie", [901] = "The Deaths of Chromie", [902] = "The Deaths of Chromie", [903] = "The Seat of the Triumvirate", [904] = "Silithus Brawl", [905] = "Argus", [906] = "Arathi Highlands", [907] = "Seething Shore", [908] = "Ruins of Lordaeron", [909] = "Antorus, the Burning Throne", [910] = "Antorus, the Burning Throne", [911] = "Antorus, the Burning Throne", [912] = "Antorus, the Burning Throne", [913] = "Antorus, the Burning Throne", [914] = "Antorus, the Burning Throne", [915] = "Antorus, the Burning Throne", [916] = "Antorus, the Burning Throne", [917] = "Antorus, the Burning Throne", [918] = "Antorus, the Burning Throne", [919] = "Antorus, the Burning Throne", [920] = "Antorus, the Burning Throne", [921] = "Invasion Point: Aurinor", [922] = "Invasion Point: Bonich", [923] = "Invasion Point: Cen'gar", [924] = "Invasion Point: Naigtal", [925] = "Invasion Point: Sangua", [926] = "Invasion Point: Val", [927] = "Greater Invasion Point: Pit Lord Vilemus", [928] = "Greater Invasion Point: Mistress Alluradel", [929] = "Greater Invasion Point: Matron Folnuna", [930] = "Greater Invasion Point: Inquisitor Meto", [931] = "Greater Invasion Point: Sotanathor", [932] = "Greater Invasion Point: Occularus", [933] = "Forge of Aeons", [934] = "Atal'Dazar", [935] = "Atal'Dazar", [936] = "Freehold", [938] = "Gilneas Island", [939] = "Tropical Isle 8.0", [940] = "The Vindicaar", [941] = "The Vindicaar", [942] = "Stormsong Valley", [943] = "Arathi Highlands", [946] = "Cosmic", [947] = "Azeroth", [948] = "The Maelstrom", [971] = "Telogrus Rift", [972] = "Telogrus Rift", [973] = "The Sunwell", [974] = "Tol Dagor", [975] = "Tol Dagor", [976] = "Tol Dagor", [977] = "Tol Dagor", [978] = "Tol Dagor", [979] = "Tol Dagor", [980] = "Tol Dagor", [981] = "Un'gol Ruins", [985] = "Eastern Kingdoms", [986] = "Kalimdor", [987] = "Outland", [988] = "Northrend", [989] = "Pandaria", [990] = "Draenor", [991] = "Zandalar", [992] = "Kul Tiras", [993] = "Broken Isles", [994] = "Argus", [997] = "Tirisfal Glades", [998] = "Undercity", [1004] = "Kings' Rest", [1009] = "Atul'Aman", [1010] = "The MOTHERLODE!!", [1011] = "Zandalar", [1012] = "Stormwind City", [1013] = "The Stockade", [1014] = "Kul Tiras", [1015] = "Waycrest Manor", [1016] = "Waycrest Manor", [1017] = "Waycrest Manor", [1018] = "Waycrest Manor", [1021] = "Chamber of Heart", [1022] = "Uncharted Island", [1029] = "WaycrestDimension", [1030] = "Greymane Manor", [1031] = "Greymane Manor", [1032] = "Skittering Hollow", [1033] = "The Rotting Mire", [1034] = "Verdant Wilds", [1035] = "Molten Cay", [1036] = "The Dread Chain", [1037] = "Whispering Reef", [1038] = "Temple of Sethraliss", [1039] = "Shrine of the Storm", [1040] = "Shrine of the Storm", [1041] = "The Underrot", [1042] = "The Underrot", [1043] = "Temple of Sethraliss", [1044] = "Arathi Highlands", [1045] = "Thros, The Blighted Lands", [1148] = "Uldir", [1149] = "Uldir", [1150] = "Uldir", [1151] = "Uldir", [1152] = "Uldir", [1153] = "Uldir", [1154] = "Uldir", [1155] = "Uldir", [1156] = "The Great Sea", [1157] = "The Great Sea", [1158] = "Arathi Highlands", [1159] = "Blackrock Depths", [1160] = "Blackrock Depths", [1161] = "Boralus", [1162] = "Siege of Boralus", [1163] = "Dazar'alor", [1164] = "Dazar'alor", [1165] = "Dazar'alor", [1166] = "Zanchul", [1167] = "Zanchul", [1169] = "Tol Dagor", [1170] = "Gorgrond - Mag'har Scenario", [1171] = "Gol Thovas", [1172] = "Gol Thovas", [1173] = "Rastakhan's Might", [1174] = "Rastakhan's Might", [1176] = "Breath Of Pa'ku", [1177] = "Breath Of Pa'ku", [1179] = "Abyssal Melody", [1180] = "Abyssal Melody", [1181] = "Zuldazar", [1182] = "SalstoneMine_Stormsong", [1183] = "Thornheart", [1184] = "Winterchill Mine", [1185] = "Winterchill Mine", [1186] = "Blackrock Depths", [1187] = "Azsuna", [1188] = "Val'sharah", [1189] = "Highmountain", [1190] = "Stormheim", [1191] = "Suramar", [1192] = "Broken Shore", [1193] = "Zuldazar", [1194] = "Nazmir", [1195] = "Vol'dun", [1196] = "Tiragarde Sound", [1197] = "Drustvar", [1198] = "Stormsong Valley", } -- These zones are known in LibTourist's zones collection but are not returned by C_Map.GetMapInfo. -- The IDs are the areaIDs as used by C_Map.GetAreaInfo. local zoneTranslation = { enUS = { -- Complexes [4406] = "The Ring of Valor", [3905] = "Coilfang Reservoir", [3893] = "Ring of Observance", [4024] = "Coldarra", -- Transports [72] = "The Dark Portal", -- Dungeons [5914] = "Dire Maul - East", [5913] = "Dire Maul - North", [5915] = "Dire Maul - West", -- Arenas [3698] = "Nagrand Arena", -- was 559 [3702] = "Blade's Edge Arena", -- was 562 [4378] = "Dalaran Arena", [6732] = "The Tiger's Peak", -- Other [3508] = "Amani Pass", [3979] = "The Frozen Sea", }, deDE = { -- Complexes [4406] = "Der Ring der Ehre", [3905] = "Der Echsenkessel", [3893] = "Ring der Beobachtung", [4024] = "Kaltarra", -- Transports [72] = "Das Dunkle Portal", -- Dungeons [5914] = "Düsterbruch - Ost", [5913] = "Düsterbruch - Nord", [5915] = "Düsterbruch - West", -- Arenas [3698] = "Arena von Nagrand", [3702] = "Arena des Schergrats", [4378] = "Arena von Dalaran", [6732] = "Der Tigergipfel", -- Other [3508] = "Amanipass", [3979] = "Die Gefrorene See", }, esES = { -- Complexes [4406] = "El Círculo del Valor", [3905] = "Reserva Colmillo Torcido", [3893] = "Círculo de la Observancia", [4024] = "Gelidar", -- Transports [72] = "El Portal Oscuro", -- Dungeons [5914] = "La Masacre: Este", [5913] = "La Masacre: Norte", [5915] = "La Masacre: Oeste", -- Arenas [3698] = "Arena de Nagrand", [3702] = "Arena Filospada", [4378] = "Arena de Dalaran", [6732] = "La Cima del Tigre", -- Other [3508] = "Paso de Amani", [3979] = "El Mar Gélido", }, esMX = { -- Complexes [4406] = "El Círculo del Valor", [3905] = "Reserva Colmillo Torcido", [3893] = "Círculo de la Observancia", [4024] = "Gelidar", -- Transports [72] = "El Portal Oscuro", -- Dungeons [5914] = "La Masacre: Este", [5913] = "La Masacre: Norte", [5915] = "La Masacre: Oeste", -- Arenas [3698] = "Arena de Nagrand", [3702] = "Arena Filospada", [4378] = "Arena de Dalaran", [6732] = "La Cima del Tigre", -- Other [3508] = "Paso de Amani", [3979] = "El Mar Gélido", }, frFR = { -- Complexes [4406] = "L’arène des Valeureux", [3905] = "Réservoir de Glissecroc", [3893] = "Cercle d’observance", [4024] = "Frimarra", -- Transports [72] = "La porte des Ténèbres", -- Dungeons [5914] = "Haches-Tripes - Est", [5913] = "Haches-Tripes - Nord", [5915] = "Haches-Tripes - Ouest", -- Arenas [3698] = "Arène de Nagrand", [3702] = "Arène des Tranchantes", [4378] = "Arène de Dalaran", [6732] = "Le croc du Tigre", -- Other [3508] = "Passage des Amani", [3979] = "La mer Gelée", }, itIT = { -- Complexes [4406] = "Arena del Valore", [3905] = "Bacino degli Spiraguzza", [3893] = "Anello dell'Osservanza", [4024] = "Ibernia", -- Transports [72] = "Portale Oscuro", -- Dungeons [5914] = "Maglio Infausto - Est", [5913] = "Maglio Infausto - Nord", [5915] = "Maglio Infausto - Ovest", -- Arenas [3698] = "Arena di Nagrand", [3702] = "Arena di Spinaguzza", [4378] = "Arena di Dalaran", [6732] = "Picco della Tigre", -- Other [3508] = "Passo degli Amani", [3979] = "Mare Ghiacciato", }, koKR = { -- Complexes [4406] = "용맹의 투기장", [3905] = "갈퀴송곳니 저수지", [3893] = "규율의 광장", [4024] = "콜다라", -- Transports [72] = "어둠의 문", -- Dungeons [5914] = "혈투의 전장 - 동쪽", [5913] = "혈투의 전장 - 북쪽", [5915] = "혈투의 전장 - 서쪽", -- Arenas [3698] = "나그란드 투기장", [3702] = "칼날 산맥 투기장", [4378] = "달라란 투기장", [6732] = "범의 봉우리", -- Other [3508] = "아마니 고개", [3979] = "얼어붙은 바다", }, ptBR = { -- Complexes [4406] = "Ringue dos Valorosos", [3905] = "Reservatório Presacurva", [3893] = "Círculo da Obediência", [4024] = "Gelarra", -- Transports [72] = "Portal Negro", -- Dungeons [5914] = "Gládio Cruel – Leste", [5913] = "Gládio Cruel – Norte", [5915] = "Gládio Cruel – Oeste", -- Arenas [3698] = "Arena de Nagrand", [3702] = "Arena da Lâmina Afiada", [4378] = "Arena de Dalaran", [6732] = "O Pico do Tigre", -- Other [3508] = "Desfiladeiro Amani", [3979] = "Mar Congelado", }, ruRU = { -- Complexes [4406] = "Арена Доблести", [3905] = "Резервуар Кривого Клыка", [3893] = "Ритуальный Круг", [4024] = "Хладарра", -- Transports [72] = "Темный портал", -- Dungeons [5914] = "Забытый город – восток", [5913] = "Забытый город – север", [5915] = "Забытый город – запад", -- Arenas [3698] = "Арена Награнда", [3702] = "Арена Острогорья", [4378] = "Арена Даларана", [6732] = "Пик Тигра", -- Other [3508] = "Перевал Амани", [3979] = "Ледяное море", }, zhCN = { -- Complexes [4406] = "勇气竞技场", [3905] = "盘牙水库", [3893] = "仪式广场", [4024] = "考达拉", -- Transports [72] = "黑暗之门", -- Dungeons [5914] = "厄运之槌 - 东", [5913] = "厄运之槌 - 北", [5915] = "厄运之槌 - 西", -- Arenas [3698] = "纳格兰竞技场", [3702] = "刀锋山竞技场", [4378] = "达拉然竞技场", [6732] = "虎踞峰", -- Other [3508] = "阿曼尼小径", [3979] = "冰冻之海", }, zhTW = { -- Complexes [4406] = "勇武競技場", [3905] = "盤牙蓄湖", [3893] = "儀式競技場", [4024] = "凜懼島", -- Transports [72] = "黑暗之門", -- Dungeons [5914] = "厄運之槌 - 東方", [5913] = "厄運之槌 - 北方", [5915] = "厄運之槌 - 西方", -- Arenas [3698] = "納葛蘭競技場", [3702] = "劍刃競技場", [4378] = "達拉然競技場", [6732] = "猛虎峰", -- Other [3508] = "阿曼尼小徑", [3979] = "冰凍之海", }, } local function CreateLocalizedZoneNameLookups() local uiMapID local mapInfo local localizedZoneName local englishZoneName -- 8.0: Use the C_Map API -- Note: the loop below is not very sexy but makes sure missing entries in MapIdLookupTable are reported. -- It is executed only once, upon initialization. for uiMapID = 1, 5000, 1 do mapInfo = C_Map.GetMapInfo(uiMapID) if mapInfo then localizedZoneName = mapInfo.name englishZoneName = MapIdLookupTable[uiMapID] if englishZoneName then -- Add combination of English and localized name to lookup tables if not BZ[englishZoneName] then BZ[englishZoneName] = localizedZoneName end if not BZR[localizedZoneName] then BZR[localizedZoneName] = englishZoneName end else -- Not in lookup trace("|r|cffff4422! -- Tourist:|r English name not found in lookup for uiMapID "..tostring(uiMapID).." ("..tostring(localizedZoneName)..")" ) end end end -- Load from zoneTranslation local GAME_LOCALE = GetLocale() for key, localizedZoneName in pairs(zoneTranslation[GAME_LOCALE]) do local englishName = zoneTranslation["enUS"][key] if not BZ[englishName] then BZ[englishName] = localizedZoneName end if not BZR[localizedZoneName] then BZR[localizedZoneName] = englishName end end end local function AddDuplicatesToLocalizedLookup() BZ[Tourist:GetUniqueEnglishZoneNameForLookup("The Maelstrom", THE_MAELSTROM_MAP_ID)] = Tourist:GetUniqueZoneNameForLookup("The Maelstrom", THE_MAELSTROM_MAP_ID) BZR[Tourist:GetUniqueZoneNameForLookup("The Maelstrom", THE_MAELSTROM_MAP_ID)] = Tourist:GetUniqueEnglishZoneNameForLookup("The Maelstrom", THE_MAELSTROM_MAP_ID) BZ[Tourist:GetUniqueEnglishZoneNameForLookup("Nagrand", DRAENOR_MAP_ID)] = Tourist:GetUniqueZoneNameForLookup("Nagrand", DRAENOR_MAP_ID) BZR[Tourist:GetUniqueZoneNameForLookup("Nagrand", DRAENOR_MAP_ID)] = Tourist:GetUniqueEnglishZoneNameForLookup("Nagrand", DRAENOR_MAP_ID) BZ[Tourist:GetUniqueEnglishZoneNameForLookup("Shadowmoon Valley", DRAENOR_MAP_ID)] = Tourist:GetUniqueZoneNameForLookup("Shadowmoon Valley", DRAENOR_MAP_ID) BZR[Tourist:GetUniqueZoneNameForLookup("Shadowmoon Valley", DRAENOR_MAP_ID)] = Tourist:GetUniqueEnglishZoneNameForLookup("Shadowmoon Valley", DRAENOR_MAP_ID) BZ[Tourist:GetUniqueEnglishZoneNameForLookup("Hellfire Citadel", DRAENOR_MAP_ID)] = Tourist:GetUniqueZoneNameForLookup("Hellfire Citadel", DRAENOR_MAP_ID) BZR[Tourist:GetUniqueZoneNameForLookup("Hellfire Citadel", DRAENOR_MAP_ID)] = Tourist:GetUniqueEnglishZoneNameForLookup("Hellfire Citadel", DRAENOR_MAP_ID) BZ[Tourist:GetUniqueEnglishZoneNameForLookup("Dalaran", BROKEN_ISLES_MAP_ID)] = Tourist:GetUniqueZoneNameForLookup("Dalaran", BROKEN_ISLES_MAP_ID) BZR[Tourist:GetUniqueZoneNameForLookup("Dalaran", BROKEN_ISLES_MAP_ID)] = Tourist:GetUniqueEnglishZoneNameForLookup("Dalaran", BROKEN_ISLES_MAP_ID) BZ[Tourist:GetUniqueEnglishZoneNameForLookup("The Violet Hold", BROKEN_ISLES_MAP_ID)] = Tourist:GetUniqueZoneNameForLookup("The Violet Hold", BROKEN_ISLES_MAP_ID) BZR[Tourist:GetUniqueZoneNameForLookup("The Violet Hold", BROKEN_ISLES_MAP_ID)] = Tourist:GetUniqueEnglishZoneNameForLookup("The Violet Hold", BROKEN_ISLES_MAP_ID) end -- This function replaces the abandoned LibBabble-Zone library and returns a lookup table -- containing all zone names (including continents, instances etcetera) where the English -- zone name is the key and the localized zone name is the value. function Tourist:GetLookupTable() return BZ end -- This function replaces the abandoned LibBabble-Zone library and returns a lookup table -- containing all zone names (including continents, instances etcetera) where the localized -- zone name is the key and the English zone name is the value. function Tourist:GetReverseLookupTable() return BZR end -- Returns the lookup table with all uiMapIDs as key and the English zone name as value. function Tourist:GetMapIDLookupTable() return MapIdLookupTable end -------------------------------------------------------------------------------------------------------- -- Main code -- -------------------------------------------------------------------------------------------------------- do Tourist.frame = oldLib and oldLib.frame or CreateFrame("Frame", MAJOR_VERSION .. "Frame", UIParent) Tourist.frame:UnregisterAllEvents() Tourist.frame:RegisterEvent("PLAYER_LEVEL_UP") Tourist.frame:RegisterEvent("PLAYER_ENTERING_WORLD") Tourist.frame:SetScript("OnEvent", function(frame, event, ...) PLAYER_LEVEL_UP(Tourist, ...) end) trace("Tourist: Initializing localized zone name lookups...") CreateLocalizedZoneNameLookups() AddDuplicatesToLocalizedLookup() -- TRANSPORT DEFINITIONS ---------------------------------------------------------------- local transports = {} -- Boats transports["BOOTYBAY_RATCHET_BOAT"] = string.format(X_Y_BOAT, BZ["The Cape of Stranglethorn"], BZ["Northern Barrens"]) transports["MENETHIL_HOWLINGFJORD_BOAT"] = string.format(X_Y_BOAT, BZ["Wetlands"], BZ["Howling Fjord"]) transports["MENETHIL_THERAMORE_BOAT"] = string.format(X_Y_BOAT, BZ["Wetlands"], BZ["Dustwallow Marsh"]) transports["MOAKI_KAMAGUA_BOAT"] = string.format(X_Y_BOAT, BZ["Dragonblight"], BZ["Howling Fjord"]) transports["MOAKI_UNUPE_BOAT"] = string.format(X_Y_BOAT, BZ["Dragonblight"], BZ["Borean Tundra"]) transports["STORMWIND_BOREANTUNDRA_BOAT"] = string.format(X_Y_BOAT, BZ["Stormwind City"], BZ["Borean Tundra"]) -- transports["TELDRASSIL_AZUREMYST_BOAT"] = string.format(X_Y_BOAT, BZ["Teldrassil"], BZ["Azuremyst Isle"]) -- 8.0: portal -- transports["TELDRASSIL_STORMWIND_BOAT"] = string.format(X_Y_BOAT, BZ["Teldrassil"], BZ["Stormwind City"]) -- 8.0: portal transports["STORMWIND_TIRAGARDESOUND_BOAT"] = string.format(X_Y_BOAT, BZ["Stormwind City"], BZ["Tiragarde Sound"]) transports["ECHOISLES_ZULDAZAR_BOAT"] = string.format(X_Y_BOAT, BZ["Echo Isles"], BZ["Zuldazar"]) -- Zeppelins transports["ORGRIMMAR_BOREANTUNDRA_ZEPPELIN"] = string.format(X_Y_ZEPPELIN, BZ["Orgrimmar"], BZ["Borean Tundra"]) transports["ORGRIMMAR_GROMGOL_ZEPPELIN"] = string.format(X_Y_ZEPPELIN, BZ["Orgrimmar"], BZ["Northern Stranglethorn"]) transports["ORGRIMMAR_THUNDERBLUFF_ZEPPELIN"] = string.format(X_Y_ZEPPELIN, BZ["Orgrimmar"], BZ["Thunder Bluff"]) -- transports["ORGRIMMAR_UNDERCITY_ZEPPELIN"] = string.format(X_Y_ZEPPELIN, BZ["Orgrimmar"], BZ["Undercity"]) -- 8.0: portal -- transports["UNDERCITY_GROMGOL_ZEPPELIN"] = string.format(X_Y_ZEPPELIN, BZ["Undercity"], BZ["Northern Stranglethorn"]) -- 8.0: portal -- transports["UNDERCITY_HOWLINGFJORD_ZEPPELIN"] = string.format(X_Y_ZEPPELIN, BZ["Undercity"], BZ["Howling Fjord"]) -- 8.0: portal -- Teleports transports["SILVERMOON_UNDERCITY_TELEPORT"] = string.format(X_Y_TELEPORT, BZ["Silvermoon City"], BZ["Undercity"]) transports["DALARAN_CRYSTALSONG_TELEPORT"] = string.format(X_Y_TELEPORT, BZ["Dalaran"], BZ["Crystalsong Forest"]) -- Portals transports["DALARAN_COT_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"], BZ["Caverns of Time"]) transports["DALARAN_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"], BZ["Orgrimmar"]) transports["DALARAN_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"], BZ["Stormwind City"]) transports["DALARANBROKENISLES_COT_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Caverns of Time"]) transports["DALARANBROKENISLES_DARNASSUS_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Darnassus"]) transports["DALARANBROKENISLES_DRAGONBLIGHT_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Dragonblight"]) transports["DALARANBROKENISLES_EXODAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["The Exodar"]) transports["DALARANBROKENISLES_HILLSBRAD_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Hillsbrad Foothills"]) transports["DALARANBROKENISLES_IRONFORGE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Ironforge"]) transports["DALARANBROKENISLES_KARAZHAN_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Karazhan"]) transports["DALARANBROKENISLES_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Orgrimmar"]) transports["DALARANBROKENISLES_SEVENSTARS_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Shrine of Seven Stars"]) transports["DALARANBROKENISLES_SHATTRATH_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Shattrath City"]) transports["DALARANBROKENISLES_SILVERMOON_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Silvermoon City"]) transports["DALARANBROKENISLES_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Stormwind City"]) transports["DALARANBROKENISLES_THUNDERBLUFF_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Thunder Bluff"]) transports["DALARANBROKENISLES_TWOMOONS_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Shrine of Two Moons"]) transports["DALARANBROKENISLES_UNDERCITY_PORTAL"] = string.format(X_Y_PORTAL, BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", BZ["Undercity"]) transports["DARKMOON_ELWYNNFOREST_PORTAL"] = string.format(X_Y_PORTAL, BZ["Darkmoon Island"], BZ["Elwynn Forest"]) transports["DARKMOON_MULGORE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Darkmoon Island"], BZ["Mulgore"]) transports["DARNASSUS_EXODAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Darnassus"], BZ["The Exodar"]) transports["DARNASSUS_HELLFIRE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Darnassus"], BZ["Hellfire Peninsula"]) transports["DEEPHOLM_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Deepholm"], BZ["Orgrimmar"]) transports["DEEPHOLM_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Deepholm"], BZ["Stormwind City"]) transports["ELWYNNFOREST_DARKMOON_PORTAL"] = string.format(X_Y_PORTAL, BZ["Elwynn Forest"], BZ["Darkmoon Island"]) transports["EXODAR_DARNASSUS_PORTAL"] = string.format(X_Y_PORTAL, BZ["The Exodar"], BZ["Darnassus"]) transports["EXODAR_HELLFIRE_PORTAL"] = string.format(X_Y_PORTAL, BZ["The Exodar"], BZ["Hellfire Peninsula"]) transports["FROSTFIRERIDGE_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Frostfire Ridge"], BZ["Orgrimmar"]) transports["HELLFIRE_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Hellfire Peninsula"], BZ["Orgrimmar"]) transports["HELLFIRE_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Hellfire Peninsula"], BZ["Stormwind City"]) transports["IRONFORGE_HELLFIRE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Ironforge"], BZ["Hellfire Peninsula"]) transports["ISLEOFTHUNDER_TOWNLONGSTEPPES_PORTAL"] = string.format(X_Y_PORTAL, BZ["Isle of Thunder"], BZ["Townlong Steppes"]) transports["JADEFOREST_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["The Jade Forest"], BZ["Orgrimmar"]) transports["JADEFOREST_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["The Jade Forest"], BZ["Stormwind City"]) transports["MULGORE_DARKMOON_PORTAL"] = string.format(X_Y_PORTAL, BZ["Mulgore"], BZ["Darkmoon Island"]) transports["ORGRIMMAR_BLASTEDLANDS_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Blasted Lands"]) transports["ORGRIMMAR_DALARANBROKENISLES_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Dalaran"].." ("..BZ["Broken Isles"]..")") transports["ORGRIMMAR_DEEPHOLM_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Deepholm"]) transports["ORGRIMMAR_HELLFIRE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Hellfire Peninsula"]) transports["ORGRIMMAR_JADEFOREST_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["The Jade Forest"]) transports["ORGRIMMAR_MOUNTHYJAL_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Mount Hyjal"]) transports["ORGRIMMAR_TOLBARAD_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Tol Barad Peninsula"]) transports["ORGRIMMAR_TWILIGHTHIGHLANDS_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Twilight Highlands"]) transports["ORGRIMMAR_ULDUM_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Uldum"]) transports["ORGRIMMAR_VASHJIR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Vashj'ir"]) transports["SEVENSTARS_DALARAN_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Seven Stars"], BZ["Dalaran"]) transports["SEVENSTARS_DARNASSUS_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Seven Stars"], BZ["Darnassus"]) transports["SEVENSTARS_EXODAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Seven Stars"], BZ["The Exodar"]) transports["SEVENSTARS_IRONFORGE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Seven Stars"], BZ["Ironforge"]) transports["SEVENSTARS_SHATTRATH_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Seven Stars"], BZ["Shattrath City"]) transports["SEVENSTARS_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Seven Stars"], BZ["Stormwind City"]) transports["SHADOWMOONVALLEY_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shadowmoon Valley"], BZ["Stormwind City"]) transports["SHATTRATH_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shattrath City"], BZ["Orgrimmar"]) transports["SHATTRATH_QUELDANAS_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shattrath City"], BZ["Isle of Quel'Danas"]) transports["SHATTRATH_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shattrath City"], BZ["Stormwind City"]) transports["SILVERMOON_HELLFIRE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Silvermoon City"], BZ["Hellfire Peninsula"]) transports["STORMSHIELD_DARNASSUS_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormshield"], BZ["Darnassus"]) transports["STORMSHIELD_IRONFORGE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormshield"], BZ["Ironforge"]) transports["STORMSHIELD_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormshield"], BZ["Stormwind City"]) transports["STORMWIND_STORMSHIELD_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Stormshield"]) transports["STORMWIND_BLASTEDLANDS_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Blasted Lands"]) transports["STORMWIND_DALARANBROKENISLES_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Dalaran"].." ("..BZ["Broken Isles"]..")") transports["STORMWIND_DEEPHOLM_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Deepholm"]) transports["STORMWIND_HELLFIRE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Hellfire Peninsula"]) transports["STORMWIND_JADEFOREST_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["The Jade Forest"]) transports["STORMWIND_MOUNTHYJAL_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Mount Hyjal"]) transports["STORMWIND_TOLBARAD_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Tol Barad Peninsula"]) transports["STORMWIND_TWILIGHTHIGHLANDS_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Twilight Highlands"]) transports["STORMWIND_ULDUM_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Uldum"]) transports["STORMWIND_VASHJIR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Vashj'ir"]) transports["THUNDERBLUFF_HELLFIRE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Thunder Bluff"], BZ["Hellfire Peninsula"]) transports["TOLBARAD_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Tol Barad Peninsula"], BZ["Orgrimmar"]) transports["TOLBARAD_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Tol Barad Peninsula"], BZ["Stormwind City"]) transports["TOWNLONGSTEPPES_ISLEOFTHUNDER_PORTAL"] = string.format(X_Y_PORTAL, BZ["Townlong Steppes"], BZ["Isle of Thunder"]) transports["TWILIGHTHIGHLANDS_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Twilight Highlands"], BZ["Orgrimmar"]) transports["TWILIGHTHIGHLANDS_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Twilight Highlands"], BZ["Stormwind City"]) transports["TWOMOONS_DALARAN_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Two Moons"], BZ["Dalaran"]) transports["TWOMOONS_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Two Moons"], BZ["Orgrimmar"]) transports["TWOMOONS_SHATTRATH_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Two Moons"], BZ["Shattrath City"]) transports["TWOMOONS_SILVERMOON_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Two Moons"], BZ["Silvermoon City"]) transports["TWOMOONS_THUNDERBLUFF_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Two Moons"], BZ["Thunder Bluff"]) transports["TWOMOONS_UNDERCITY_PORTAL"] = string.format(X_Y_PORTAL, BZ["Shrine of Two Moons"], BZ["Undercity"]) transports["UNDERCITY_HELLFIRE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Undercity"], BZ["Hellfire Peninsula"]) transports["ORGRIMMAR_WARSPEAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Warspear"]) transports["WARSPEAR_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Warspear"], BZ["Orgrimmar"]) transports["WARSPEAR_THUNDERBLUFF_PORTAL"] = string.format(X_Y_PORTAL, BZ["Warspear"], BZ["Thunder Bluff"]) transports["WARSPEAR_UNDERCITY_PORTAL"] = string.format(X_Y_PORTAL, BZ["Warspear"], BZ["Undercity"]) transports["STORMWIND_TIRAGARDESOUND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Tiragarde Sound"]) transports["TIRAGARDESOUND_STORMWIND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Tiragarde Sound"], BZ["Stormwind City"]) transports["EXODAR_TIRAGARDESOUND_PORTAL"] = string.format(X_Y_PORTAL, BZ["The Exodar"], BZ["Tiragarde Sound"]) transports["TIRAGARDESOUND_EXODAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Tiragarde Sound"], BZ["The Exodar"]) transports["IRONFORGE_TIRAGARDESOUND_PORTAL"] = string.format(X_Y_PORTAL, BZ["Ironforge"], BZ["Tiragarde Sound"]) transports["TIRAGARDESOUND_IRONFORGE_PORTAL"] = string.format(X_Y_PORTAL, BZ["Tiragarde Sound"], BZ["Ironforge"]) transports["SILVERMOON_ZULDAZAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Silvermoon City"], BZ["Zuldazar"]) transports["ZULDAZAR_SILVERMOON_PORTAL"] = string.format(X_Y_PORTAL, BZ["Zuldazar"], BZ["Silvermoon City"]) transports["ORGRIMMAR_ZULDAZAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Zuldazar"]) transports["ORGRIMMAR_ZULDAZAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Zuldazar"]) transports["ZULDAZAR_ORGRIMMAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Zuldazar"], BZ["Orgrimmar"]) transports["THUNDERBLUFF_ZULDAZAR_PORTAL"] = string.format(X_Y_PORTAL, BZ["Thunder Bluff"], BZ["Zuldazar"]) transports["ZULDAZAR_THUNDERBLUFF_PORTAL"] = string.format(X_Y_PORTAL, BZ["Zuldazar"], BZ["Thunder Bluff"]) transports["UNDERCITY_GROMGOL_PORTAL"] = string.format(X_Y_PORTAL, BZ["Undercity"], BZ["Northern Stranglethorn"]) -- former zeppelin transports["ORGRIMMAR_UNDERCITY_PORTAL"] = string.format(X_Y_PORTAL, BZ["Orgrimmar"], BZ["Undercity"]) -- former zeppelin transports["UNDERCITY_HOWLINGFJORD_PORTAL"] = string.format(X_Y_PORTAL, BZ["Undercity"], BZ["Howling Fjord"]) -- former zeppelin transports["TELDRASSIL_AZUREMYST_PORTAL"] = string.format(X_Y_PORTAL, BZ["Teldrassil"], BZ["Azuremyst Isle"]) -- former boat transports["STORMWIND_TELDRASSIL_PORTAL"] = string.format(X_Y_PORTAL, BZ["Stormwind City"], BZ["Teldrassil"]) -- former boat local zones = {} -- CONTINENTS --------------------------------------------------------------- zones[BZ["Azeroth"]] = { type = "Continent", -- yards = 44531.82907938571, yards = 33400.121, x_offset = 0, y_offset = 0, continent = Azeroth, } zones[BZ["Eastern Kingdoms"]] = { type = "Continent", continent = Eastern_Kingdoms, } zones[BZ["Kalimdor"]] = { type = "Continent", continent = Kalimdor, } zones[BZ["Outland"]] = { type = "Continent", continent = Outland, } zones[BZ["Northrend"]] = { type = "Continent", continent = Northrend, } zones[BZ["The Maelstrom"]] = { type = "Continent", continent = The_Maelstrom, } zones[BZ["Pandaria"]] = { type = "Continent", continent = Pandaria, } zones[BZ["Draenor"]] = { type = "Continent", continent = Draenor, } zones[BZ["Broken Isles"]] = { type = "Continent", continent = Broken_Isles, } zones[BZ["Argus"]] = { type = "Continent", continent = Argus, } zones[BZ["Zandalar"]] = { type = "Continent", continent = Zandalar, faction = "Horde" } zones[BZ["Kul Tiras"]] = { type = "Continent", continent = Kul_Tiras, faction = "Alliance" } -- TRANSPORTS --------------------------------------------------------------- zones[transports["STORMWIND_BOREANTUNDRA_BOAT"]] = { paths = { [BZ["Stormwind City"]] = true, [BZ["Borean Tundra"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["ORGRIMMAR_BOREANTUNDRA_ZEPPELIN"]] = { paths = { [BZ["Orgrimmar"]] = true, [BZ["Borean Tundra"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["UNDERCITY_HOWLINGFJORD_PORTAL"]] = { paths = { [BZ["Tirisfal Glades"]] = true, [BZ["Howling Fjord"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_BLASTEDLANDS_PORTAL"]] = { paths = { [BZ["Blasted Lands"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_HELLFIRE_PORTAL"]] = { paths = { [BZ["Hellfire Peninsula"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["HELLFIRE_ORGRIMMAR_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["UNDERCITY_HELLFIRE_PORTAL"]] = { paths = { [BZ["Hellfire Peninsula"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["THUNDERBLUFF_HELLFIRE_PORTAL"]] = { paths = { [BZ["Hellfire Peninsula"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["SILVERMOON_HELLFIRE_PORTAL"]] = { paths = { [BZ["Hellfire Peninsula"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["STORMWIND_BLASTEDLANDS_PORTAL"]] = { paths = { [BZ["Blasted Lands"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMWIND_HELLFIRE_PORTAL"]] = { paths = { [BZ["Hellfire Peninsula"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["HELLFIRE_STORMWIND_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["DALARAN_STORMWIND_PORTAL"]] = { paths = BZ["Stormwind City"], faction = "Alliance", type = "Transport", } zones[transports["DALARAN_ORGRIMMAR_PORTAL"]] = { paths = BZ["Orgrimmar"], faction = "Horde", type = "Transport", } zones[transports["DARNASSUS_HELLFIRE_PORTAL"]] = { paths = { [BZ["Hellfire Peninsula"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["EXODAR_HELLFIRE_PORTAL"]] = { paths = { [BZ["Hellfire Peninsula"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["DARNASSUS_EXODAR_PORTAL"]] = { paths = { [BZ["The Exodar"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["EXODAR_DARNASSUS_PORTAL"]] = { paths = { [BZ["Darnassus"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["MULGORE_DARKMOON_PORTAL"]] = { paths = BZ["Darkmoon Island"], faction = "Horde", type = "Transport", } zones[transports["DARKMOON_MULGORE_PORTAL"]] = { paths = BZ["Mulgore"], faction = "Horde", type = "Transport", } zones[transports["ELWYNNFOREST_DARKMOON_PORTAL"]] = { paths = BZ["Darkmoon Island"], faction = "Alliance", type = "Transport", } zones[transports["DARKMOON_ELWYNNFOREST_PORTAL"]] = { paths = BZ["Elwynn Forest"], faction = "Alliance", type = "Transport", } zones[transports["IRONFORGE_HELLFIRE_PORTAL"]] = { paths = { [BZ["Hellfire Peninsula"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMWIND_TELDRASSIL_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, [BZ["Teldrassil"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["TELDRASSIL_AZUREMYST_PORTAL"]] = { paths = { [BZ["Teldrassil"]] = true, [BZ["Azuremyst Isle"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["BOOTYBAY_RATCHET_BOAT"]] = { paths = { [BZ["The Cape of Stranglethorn"]] = true, [BZ["Northern Barrens"]] = true, }, type = "Transport", } zones[transports["MENETHIL_HOWLINGFJORD_BOAT"]] = { paths = { [BZ["Wetlands"]] = true, [BZ["Howling Fjord"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["MENETHIL_THERAMORE_BOAT"]] = { paths = { [BZ["Wetlands"]] = true, [BZ["Dustwallow Marsh"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["ORGRIMMAR_GROMGOL_ZEPPELIN"]] = { paths = { [BZ["Orgrimmar"]] = true, [BZ["Northern Stranglethorn"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_UNDERCITY_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, [BZ["Tirisfal Glades"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_THUNDERBLUFF_ZEPPELIN"]] = { paths = { [BZ["Orgrimmar"]] = true, [BZ["Thunder Bluff"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["SHATTRATH_QUELDANAS_PORTAL"]] = { paths = BZ["Isle of Quel'Danas"], type = "Transport", } zones[transports["SHATTRATH_ORGRIMMAR_PORTAL"]] = { paths = BZ["Orgrimmar"], faction = "Horde", type = "Transport", } zones[transports["SHATTRATH_STORMWIND_PORTAL"]] = { paths = BZ["Stormwind City"], faction = "Alliance", type = "Transport", } zones[transports["MOAKI_UNUPE_BOAT"]] = { paths = { [BZ["Dragonblight"]] = true, [BZ["Borean Tundra"]] = true, }, type = "Transport", } zones[transports["MOAKI_KAMAGUA_BOAT"]] = { paths = { [BZ["Dragonblight"]] = true, [BZ["Howling Fjord"]] = true, }, type = "Transport", } zones[BZ["The Dark Portal"]] = { paths = { [BZ["Blasted Lands"]] = true, [BZ["Hellfire Peninsula"]] = true, }, type = "Transport", } zones[BZ["Deeprun Tram"]] = { continent = Eastern_Kingdoms, paths = { [BZ["Stormwind City"]] = true, [BZ["Ironforge"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["UNDERCITY_GROMGOL_PORTAL"]] = { paths = { [BZ["Northern Stranglethorn"]] = true, [BZ["Tirisfal Glades"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["SILVERMOON_UNDERCITY_TELEPORT"]] = { paths = { [BZ["Silvermoon City"]] = true, [BZ["Undercity"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["DALARAN_CRYSTALSONG_TELEPORT"]] = { paths = { [BZ["Dalaran"]] = true, [BZ["Crystalsong Forest"]] = true, }, type = "Transport", } zones[transports["DALARAN_COT_PORTAL"]] = { paths = BZ["Caverns of Time"], type = "Transport", } zones[transports["STORMWIND_TWILIGHTHIGHLANDS_PORTAL"]] = { paths = { [BZ["Twilight Highlands"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["TWILIGHTHIGHLANDS_STORMWIND_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMWIND_MOUNTHYJAL_PORTAL"]] = { paths = { [BZ["Mount Hyjal"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMWIND_DEEPHOLM_PORTAL"]] = { paths = { [BZ["Deepholm"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["DEEPHOLM_STORMWIND_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["TOLBARAD_STORMWIND_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMWIND_ULDUM_PORTAL"]] = { paths = { [BZ["Uldum"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMWIND_VASHJIR_PORTAL"]] = { paths = { [BZ["Vashj'ir"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMWIND_TOLBARAD_PORTAL"]] = { paths = { [BZ["Tol Barad Peninsula"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["ORGRIMMAR_TWILIGHTHIGHLANDS_PORTAL"]] = { paths = { [BZ["Twilight Highlands"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["TWILIGHTHIGHLANDS_ORGRIMMAR_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_MOUNTHYJAL_PORTAL"]] = { paths = { [BZ["Mount Hyjal"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_DEEPHOLM_PORTAL"]] = { paths = { [BZ["Deepholm"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["DEEPHOLM_ORGRIMMAR_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["TOLBARAD_ORGRIMMAR_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_ULDUM_PORTAL"]] = { paths = { [BZ["Uldum"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_VASHJIR_PORTAL"]] = { paths = { [BZ["Vashj'ir"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_TOLBARAD_PORTAL"]] = { paths = { [BZ["Tol Barad Peninsula"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_JADEFOREST_PORTAL"]] = { paths = { [BZ["The Jade Forest"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["JADEFOREST_ORGRIMMAR_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["STORMWIND_JADEFOREST_PORTAL"]] = { paths = { [BZ["The Jade Forest"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["JADEFOREST_STORMWIND_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["TOWNLONGSTEPPES_ISLEOFTHUNDER_PORTAL"]] = { paths = { [BZ["Isle of Thunder"]] = true, }, type = "Transport", } zones[transports["ISLEOFTHUNDER_TOWNLONGSTEPPES_PORTAL"]] = { paths = { [BZ["Townlong Steppes"]] = true, }, type = "Transport", } zones[transports["ORGRIMMAR_WARSPEAR_PORTAL"]] = { paths = { [BZ["Warspear"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["WARSPEAR_ORGRIMMAR_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["WARSPEAR_UNDERCITY_PORTAL"]] = { paths = { [BZ["Undercity"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["WARSPEAR_THUNDERBLUFF_PORTAL"]] = { paths = { [BZ["Thunder Bluff"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["STORMWIND_STORMSHIELD_PORTAL"]] = { paths = { [BZ["Stormshield"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMSHIELD_STORMWIND_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMSHIELD_IRONFORGE_PORTAL"]] = { paths = { [BZ["Ironforge"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMSHIELD_DARNASSUS_PORTAL"]] = { paths = { [BZ["Darnassus"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["SHADOWMOONVALLEY_STORMWIND_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["FROSTFIRERIDGE_ORGRIMMAR_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["TWOMOONS_ORGRIMMAR_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["TWOMOONS_UNDERCITY_PORTAL"]] = { paths = { [BZ["Undercity"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["TWOMOONS_THUNDERBLUFF_PORTAL"]] = { paths = { [BZ["Thunder Bluff"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["TWOMOONS_SILVERMOON_PORTAL"]] = { paths = { [BZ["Silvermoon City"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["TWOMOONS_SHATTRATH_PORTAL"]] = { paths = { [BZ["Shattrath City"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["TWOMOONS_DALARAN_PORTAL"]] = { paths = { [BZ["Dalaran"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["SEVENSTARS_EXODAR_PORTAL"]] = { paths = { [BZ["The Exodar"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["SEVENSTARS_STORMWIND_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["SEVENSTARS_IRONFORGE_PORTAL"]] = { paths = { [BZ["Ironforge"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["SEVENSTARS_DARNASSUS_PORTAL"]] = { paths = { [BZ["Darnassus"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["SEVENSTARS_SHATTRATH_PORTAL"]] = { paths = { [BZ["Shattrath City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["SEVENSTARS_DALARAN_PORTAL"]] = { paths = { [BZ["Dalaran"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["DALARANBROKENISLES_STORMWIND_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["DALARANBROKENISLES_EXODAR_PORTAL"]] = { paths = { [BZ["The Exodar"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["DALARANBROKENISLES_DARNASSUS_PORTAL"]] = { paths = { [BZ["Darnassus"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["DALARANBROKENISLES_IRONFORGE_PORTAL"]] = { paths = { [BZ["Ironforge"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["DALARANBROKENISLES_SEVENSTARS_PORTAL"]] = { paths = { [BZ["Shrine of Seven Stars"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["DALARANBROKENISLES_ORGRIMMAR_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["DALARANBROKENISLES_UNDERCITY_PORTAL"]] = { paths = { [BZ["Undercity"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["DALARANBROKENISLES_THUNDERBLUFF_PORTAL"]] = { paths = { [BZ["Thunder Bluff"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["DALARANBROKENISLES_SILVERMOON_PORTAL"]] = { paths = { [BZ["Silvermoon City"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["DALARANBROKENISLES_TWOMOONS_PORTAL"]] = { paths = { [BZ["Shrine of Two Moons"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["DALARANBROKENISLES_COT_PORTAL"]] = { paths = { [BZ["Caverns of Time"]] = true, }, type = "Transport", } zones[transports["DALARANBROKENISLES_SHATTRATH_PORTAL"]] = { paths = { [BZ["Shattrath City"]] = true, }, type = "Transport", } zones[transports["DALARANBROKENISLES_DRAGONBLIGHT_PORTAL"]] = { paths = { [BZ["Dragonblight"]] = true, }, type = "Transport", } zones[transports["DALARANBROKENISLES_HILLSBRAD_PORTAL"]] = { paths = { [BZ["Hillsbrad Foothills"]] = true, }, type = "Transport", } zones[transports["DALARANBROKENISLES_KARAZHAN_PORTAL"]] = { paths = { [BZ["Karazhan"]] = true, }, type = "Transport", } zones[transports["ORGRIMMAR_DALARANBROKENISLES_PORTAL"]] = { paths = { [BZ["Dalaran"].." ("..BZ["Broken Isles"]..")"] = true, }, faction = "Horde", type = "Transport", } zones[transports["STORMWIND_DALARANBROKENISLES_PORTAL"]] = { paths = { [BZ["Dalaran"].." ("..BZ["Broken Isles"]..")"] = true, }, faction = "Alliance", type = "Transport", } zones[transports["ECHOISLES_ZULDAZAR_BOAT"]] = { paths = { [BZ["Echo Isles"]] = true, [BZ["Zuldazar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["STORMWIND_TIRAGARDESOUND_BOAT"]] = { paths = { [BZ["Stormwind City"]] = true, [BZ["Tiragarde Sound"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["STORMWIND_TIRAGARDESOUND_PORTAL"]] = { paths = { [BZ["Tiragarde Sound"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["TIRAGARDESOUND_STORMWIND_PORTAL"]] = { paths = { [BZ["Stormwind City"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["EXODAR_TIRAGARDESOUND_PORTAL"]] = { paths = { [BZ["Tiragarde Sound"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["TIRAGARDESOUND_EXODAR_PORTAL"]] = { paths = { [BZ["The Exodar"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["IRONFORGE_TIRAGARDESOUND_PORTAL"]] = { paths = { [BZ["Tiragarde Sound"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["TIRAGARDESOUND_IRONFORGE_PORTAL"]] = { paths = { [BZ["Ironforge"]] = true, }, faction = "Alliance", type = "Transport", } zones[transports["SILVERMOON_ZULDAZAR_PORTAL"]] = { paths = { [BZ["Zuldazar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ZULDAZAR_SILVERMOON_PORTAL"]] = { paths = { [BZ["Silvermoon City"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ORGRIMMAR_ZULDAZAR_PORTAL"]] = { paths = { [BZ["Zuldazar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ZULDAZAR_ORGRIMMAR_PORTAL"]] = { paths = { [BZ["Orgrimmar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["THUNDERBLUFF_ZULDAZAR_PORTAL"]] = { paths = { [BZ["Zuldazar"]] = true, }, faction = "Horde", type = "Transport", } zones[transports["ZULDAZAR_THUNDERBLUFF_PORTAL"]] = { paths = { [BZ["Thunder Bluff"]] = true, }, faction = "Horde", type = "Transport", } -- ZONES, INSTANCES AND COMPLEXES --------------------------------------------------------- -- Eastern Kingdoms cities and zones -- zones[BZ["Stormwind City"]] = { continent = Eastern_Kingdoms, instances = BZ["The Stockade"], paths = { [BZ["Deeprun Tram"]] = true, [BZ["The Stockade"]] = true, [BZ["Elwynn Forest"]] = true, [transports["STORMWIND_TELDRASSIL_PORTAL"]] = true, [transports["STORMWIND_BOREANTUNDRA_BOAT"]] = true, [transports["STORMWIND_BLASTEDLANDS_PORTAL"]] = true, [transports["STORMWIND_HELLFIRE_PORTAL"]] = true, [transports["STORMWIND_TWILIGHTHIGHLANDS_PORTAL"]] = true, [transports["STORMWIND_MOUNTHYJAL_PORTAL"]] = true, [transports["STORMWIND_DEEPHOLM_PORTAL"]] = true, [transports["STORMWIND_ULDUM_PORTAL"]] = true, [transports["STORMWIND_VASHJIR_PORTAL"]] = true, [transports["STORMWIND_TOLBARAD_PORTAL"]] = true, [transports["STORMWIND_JADEFOREST_PORTAL"]] = true, [transports["STORMWIND_DALARANBROKENISLES_PORTAL"]] = true, [transports["STORMWIND_TIRAGARDESOUND_BOAT"]] = true, [transports["STORMWIND_TIRAGARDESOUND_PORTAL"]] = true, [transports["STORMWIND_STORMSHIELD_PORTAL"]] = true, }, faction = "Alliance", type = "City", fishing_min = 75, battlepet_low = 1, battlepet_high = 1, } zones[BZ["Undercity"]] = { continent = Eastern_Kingdoms, instances = BZ["Ruins of Lordaeron"], paths = { [BZ["Tirisfal Glades"]] = true, [transports["SILVERMOON_UNDERCITY_TELEPORT"]] = true, [transports["UNDERCITY_HELLFIRE_PORTAL"]] = true, }, faction = "Horde", type = "City", fishing_min = 75, battlepet_low = 1, battlepet_high = 3, } zones[BZ["Ironforge"]] = { continent = Eastern_Kingdoms, instances = BZ["Gnomeregan"], paths = { [BZ["Dun Morogh"]] = true, [BZ["Deeprun Tram"]] = true, [transports["IRONFORGE_HELLFIRE_PORTAL"]] = true, [transports["IRONFORGE_TIRAGARDESOUND_PORTAL"]] = true, }, faction = "Alliance", type = "City", fishing_min = 75, battlepet_low = 1, battlepet_high = 3, } zones[BZ["Silvermoon City"]] = { continent = Eastern_Kingdoms, paths = { [BZ["Eversong Woods"]] = true, [transports["SILVERMOON_UNDERCITY_TELEPORT"]] = true, [transports["SILVERMOON_HELLFIRE_PORTAL"]] = true, [transports["SILVERMOON_ZULDAZAR_PORTAL"]] = true, }, faction = "Horde", type = "City", battlepet_low = 1, battlepet_high = 3, } zones[BZ["Northshire"]] = { low = 1, high = 6, continent = Eastern_Kingdoms, paths = { [BZ["Elwynn Forest"]] = true, }, faction = "Alliance", fishing_min = 25, } zones[BZ["Sunstrider Isle"]] = { low = 1, high = 6, continent = Eastern_Kingdoms, paths = { [BZ["Eversong Woods"]] = true, }, faction = "Horde", fishing_min = 25, } zones[BZ["Deathknell"]] = { low = 1, high = 6, continent = Eastern_Kingdoms, paths = { [BZ["Tirisfal Glades"]] = true, }, faction = "Horde", fishing_min = 25, } zones[BZ["Coldridge Valley"]] = { low = 1, high = 6, continent = Eastern_Kingdoms, paths = { [BZ["Dun Morogh"]] = true, }, faction = "Alliance", fishing_min = 25, } zones[BZ["New Tinkertown"]] = { low = 1, high = 6, continent = Eastern_Kingdoms, paths = { [BZ["Dun Morogh"]] = true, }, faction = "Alliance", fishing_min = 25, } zones[BZ["Dun Morogh"]] = { low = 1, high = 20, continent = Eastern_Kingdoms, instances = BZ["Gnomeregan"], paths = { [BZ["Wetlands"]] = true, [BZ["Gnomeregan"]] = true, [BZ["Ironforge"]] = true, [BZ["Loch Modan"]] = true, [BZ["Coldridge Valley"]] = true, [BZ["New Tinkertown"]] = true, }, faction = "Alliance", fishing_min = 25, battlepet_low = 1, battlepet_high = 2, } zones[BZ["Elwynn Forest"]] = { low = 1, high = 20, continent = Eastern_Kingdoms, paths = { [BZ["Northshire"]] = true, [BZ["Westfall"]] = true, [BZ["Redridge Mountains"]] = true, [BZ["Stormwind City"]] = true, [BZ["Duskwood"]] = true, [BZ["Burning Steppes"]] = true, [transports["ELWYNNFOREST_DARKMOON_PORTAL"]] = true, }, faction = "Alliance", fishing_min = 25, battlepet_low = 1, battlepet_high = 2, } zones[BZ["Eversong Woods"]] = { low = 1, high = 20, continent = Eastern_Kingdoms, paths = { [BZ["Silvermoon City"]] = true, [BZ["Ghostlands"]] = true, [BZ["Sunstrider Isle"]] = true, }, faction = "Horde", fishing_min = 25, battlepet_low = 1, battlepet_high = 2, } zones[BZ["Gilneas"]] = { low = 1, high = 20, continent = Eastern_Kingdoms, paths = {}, -- phased instance faction = "Alliance", fishing_min = 25, battlepet_low = 1, battlepet_high = 1, } zones[BZ["Gilneas City"]] = { low = 1, high = 20, continent = Eastern_Kingdoms, paths = {}, -- phased instance faction = "Alliance", battlepet_low = 1, battlepet_high = 2, } zones[BZ["Ruins of Gilneas"]] = { continent = Eastern_Kingdoms, paths = { [BZ["Silverpine Forest"]] = true, [BZ["Ruins of Gilneas City"]] = true, }, fishing_min = 75, } zones[BZ["Ruins of Gilneas City"]] = { continent = Eastern_Kingdoms, paths = { [BZ["Silverpine Forest"]] = true, [BZ["Ruins of Gilneas"]] = true, }, fishing_min = 75, } zones[BZ["Tirisfal Glades"]] = { low = 1, high = 20, continent = Eastern_Kingdoms, instances = { [BZ["Scarlet Monastery"]] = true, [BZ["Scarlet Halls"]] = true, }, paths = { [BZ["Western Plaguelands"]] = true, [BZ["Undercity"]] = true, [BZ["Scarlet Monastery"]] = true, [BZ["Scarlet Halls"]] = true, [transports["UNDERCITY_GROMGOL_PORTAL"]] = true, [transports["ORGRIMMAR_UNDERCITY_PORTAL"]] = true, [transports["UNDERCITY_HOWLINGFJORD_PORTAL"]] = true, [BZ["Silverpine Forest"]] = true, [BZ["Deathknell"]] = true, }, -- complexes = { -- [BZ["Scarlet Monastery"]] = true, -- Duplicate name with instance (thanks, Blizz) -- }, faction = "Horde", fishing_min = 25, battlepet_low = 1, battlepet_high = 2, } zones[BZ["Westfall"]] = { low = 10, high = 60, continent = Eastern_Kingdoms, instances = BZ["The Deadmines"], paths = { [BZ["Duskwood"]] = true, [BZ["Elwynn Forest"]] = true, [BZ["The Deadmines"]] = true, }, faction = "Alliance", fishing_min = 75, battlepet_low = 3, battlepet_high = 4, } zones[BZ["Ghostlands"]] = { low = 10, high = 60, continent = Eastern_Kingdoms, instances = BZ["Zul'Aman"], paths = { [BZ["Eastern Plaguelands"]] = true, [BZ["Zul'Aman"]] = true, [BZ["Eversong Woods"]] = true, }, faction = "Horde", fishing_min = 75, battlepet_low = 3, battlepet_high = 6, } zones[BZ["Loch Modan"]] = { low = 10, high = 60, continent = Eastern_Kingdoms, paths = { [BZ["Wetlands"]] = true, [BZ["Badlands"]] = true, [BZ["Dun Morogh"]] = true, [BZ["Searing Gorge"]] = not isHorde and true or nil, }, faction = "Alliance", fishing_min = 75, battlepet_low = 3, battlepet_high = 6, } zones[BZ["Silverpine Forest"]] = { low = 10, high = 60, continent = Eastern_Kingdoms, instances = BZ["Shadowfang Keep"], paths = { [BZ["Tirisfal Glades"]] = true, [BZ["Hillsbrad Foothills"]] = true, [BZ["Shadowfang Keep"]] = true, [BZ["Ruins of Gilneas"]] = true, }, faction = "Horde", fishing_min = 75, battlepet_low = 3, battlepet_high = 6, } zones[BZ["Redridge Mountains"]] = { low = 15, high = 60, continent = Eastern_Kingdoms, paths = { [BZ["Burning Steppes"]] = true, [BZ["Elwynn Forest"]] = true, [BZ["Duskwood"]] = true, [BZ["Swamp of Sorrows"]] = true, }, fishing_min = 75, battlepet_low = 4, battlepet_high = 6, } zones[BZ["Duskwood"]] = { low = 20, high = 60, continent = Eastern_Kingdoms, paths = { [BZ["Redridge Mountains"]] = true, [BZ["Northern Stranglethorn"]] = true, [BZ["Westfall"]] = true, [BZ["Deadwind Pass"]] = true, [BZ["Elwynn Forest"]] = true, }, fishing_min = 150, battlepet_low = 5, battlepet_high = 7, } zones[BZ["Hillsbrad Foothills"]] = { low = 15, high = 60, continent = Eastern_Kingdoms, instances = BZ["Alterac Valley"], paths = { [BZ["Alterac Valley"]] = true, [BZ["The Hinterlands"]] = true, [BZ["Arathi Highlands"]] = true, [BZ["Silverpine Forest"]] = true, [BZ["Western Plaguelands"]] = true, }, faction = "Horde", fishing_min = 150, battlepet_low = 6, battlepet_high = 7, } zones[BZ["Wetlands"]] = { low = 25, high = 60, continent = Eastern_Kingdoms, paths = { [BZ["Arathi Highlands"]] = true, [transports["MENETHIL_THERAMORE_BOAT"]] = true, [transports["MENETHIL_HOWLINGFJORD_BOAT"]] = true, [BZ["Dun Morogh"]] = true, [BZ["Loch Modan"]] = true, }, fishing_min = 150, battlepet_low = 6, battlepet_high = 7, } zones[BZ["Arathi Highlands"]] = { low = 25, high = 60, continent = Eastern_Kingdoms, instances = BZ["Arathi Basin"], paths = { [BZ["Wetlands"]] = true, [BZ["Hillsbrad Foothills"]] = true, [BZ["Arathi Basin"]] = true, [BZ["The Hinterlands"]] = true, }, fishing_min = 150, battlepet_low = 7, battlepet_high = 8, } zones[BZ["Stranglethorn Vale"]] = { low = 25, high = 60, continent = Eastern_Kingdoms, instances = BZ["Zul'Gurub"], paths = { [BZ["Duskwood"]] = true, [BZ["Zul'Gurub"]] = true, [transports["ORGRIMMAR_GROMGOL_ZEPPELIN"]] = true, [transports["UNDERCITY_GROMGOL_PORTAL"]] = true, [transports["BOOTYBAY_RATCHET_BOAT"]] = true, }, fishing_min = 150, battlepet_low = 7, battlepet_high = 10, } zones[BZ["Northern Stranglethorn"]] = { low = 25, high = 60, continent = Eastern_Kingdoms, instances = BZ["Zul'Gurub"], paths = { [BZ["The Cape of Stranglethorn"]] = true, [BZ["Duskwood"]] = true, [BZ["Zul'Gurub"]] = true, [transports["ORGRIMMAR_GROMGOL_ZEPPELIN"]] = true, [transports["UNDERCITY_GROMGOL_PORTAL"]] = true, }, fishing_min = 150, battlepet_low = 7, battlepet_high = 9, } zones[BZ["The Cape of Stranglethorn"]] = { low = 30, high = 60, continent = Eastern_Kingdoms, paths = { [transports["BOOTYBAY_RATCHET_BOAT"]] = true, ["Northern Stranglethorn"] = true, }, fishing_min = 225, battlepet_low = 9, battlepet_high = 10, } zones[BZ["The Hinterlands"]] = { low = 30, high = 60, continent = Eastern_Kingdoms, paths = { [BZ["Hillsbrad Foothills"]] = true, [BZ["Western Plaguelands"]] = true, [BZ["Arathi Highlands"]] = true, }, fishing_min = 225, battlepet_low = 11, battlepet_high = 12, } zones[BZ["Western Plaguelands"]] = { low = 35, high = 60, continent = Eastern_Kingdoms, instances = BZ["Scholomance"], paths = { [BZ["The Hinterlands"]] = true, [BZ["Eastern Plaguelands"]] = true, [BZ["Tirisfal Glades"]] = true, [BZ["Scholomance"]] = true, [BZ["Hillsbrad Foothills"]] = true, }, fishing_min = 225, battlepet_low = 10, battlepet_high = 11, } zones[BZ["Eastern Plaguelands"]] = { low = 40, high = 60, continent = Eastern_Kingdoms, instances = BZ["Stratholme"], paths = { [BZ["Western Plaguelands"]] = true, [BZ["Stratholme"]] = true, [BZ["Ghostlands"]] = true, }, type = "PvP Zone", fishing_min = 300, battlepet_low = 12, battlepet_high = 13, } zones[BZ["Badlands"]] = { low = 40, high = 60, continent = Eastern_Kingdoms, instances = BZ["Uldaman"], paths = { [BZ["Uldaman"]] = true, [BZ["Searing Gorge"]] = true, [BZ["Loch Modan"]] = true, }, fishing_min = 300, battlepet_low = 13, battlepet_high = 14, } zones[BZ["Searing Gorge"]] = { low = 40, high = 60, continent = Eastern_Kingdoms, instances = { [BZ["Blackrock Depths"]] = true, [BZ["Blackrock Caverns"]] = true, [BZ["Blackwing Lair"]] = true, [BZ["Blackwing Descent"]] = true, [BZ["Molten Core"]] = true, [BZ["Blackrock Spire"]] = true, [BZ["Upper Blackrock Spire"]] = true, }, paths = { [BZ["Blackrock Mountain"]] = true, [BZ["Badlands"]] = true, [BZ["Loch Modan"]] = not isHorde and true or nil, }, complexes = { [BZ["Blackrock Mountain"]] = true, }, fishing_min = 425, battlepet_low = 13, battlepet_high = 14, } zones[BZ["Burning Steppes"]] = { low = 40, high = 60, continent = Eastern_Kingdoms, instances = { [BZ["Blackrock Depths"]] = true, [BZ["Blackrock Caverns"]] = true, [BZ["Blackwing Lair"]] = true, [BZ["Blackwing Descent"]] = true, [BZ["Molten Core"]] = true, [BZ["Blackrock Spire"]] = true, [BZ["Upper Blackrock Spire"]] = true, }, paths = { [BZ["Blackrock Mountain"]] = true, [BZ["Redridge Mountains"]] = true, [BZ["Elwynn Forest"]] = true, }, complexes = { [BZ["Blackrock Mountain"]] = true, }, fishing_min = 425, battlepet_low = 15, battlepet_high = 16, } zones[BZ["Swamp of Sorrows"]] = { low = 40, high = 60, continent = Eastern_Kingdoms, instances = BZ["The Temple of Atal'Hakkar"], paths = { [BZ["Blasted Lands"]] = true, [BZ["Deadwind Pass"]] = true, [BZ["The Temple of Atal'Hakkar"]] = true, [BZ["Redridge Mountains"]] = true, }, fishing_min = 425, battlepet_low = 14, battlepet_high = 15, } zones[BZ["Blasted Lands"]] = { low = 40, high = 60, continent = Eastern_Kingdoms, paths = { [BZ["The Dark Portal"]] = true, [BZ["Swamp of Sorrows"]] = true, }, fishing_min = 425, battlepet_low = 16, battlepet_high = 17, } zones[BZ["Deadwind Pass"]] = { low = 50, high = 60, continent = Eastern_Kingdoms, instances = BZ["Karazhan"], paths = { [BZ["Duskwood"]] = true, [BZ["Swamp of Sorrows"]] = true, [BZ["Karazhan"]] = true, }, fishing_min = 425, battlepet_low = 17, battlepet_high = 18, } -- DK starting zone zones[BZ["Plaguelands: The Scarlet Enclave"]] = { low = 55, high = 58, continent = Eastern_Kingdoms, yards = 3162.5, x_offset = 0, y_offset = 0, texture = "ScarletEnclave", } zones[BZ["Isle of Quel'Danas"]] = { continent = Eastern_Kingdoms, low = 70, high = 70, paths = { [BZ["Magisters' Terrace"]] = true, [BZ["Sunwell Plateau"]] = true, }, instances = { [BZ["Magisters' Terrace"]] = true, [BZ["Sunwell Plateau"]] = true, }, fishing_min = 450, battlepet_low = 20, battlepet_high = 20, } zones[BZ["Vashj'ir"]] = { low = 80, high = 90, continent = Eastern_Kingdoms, instances = { [BZ["Throne of the Tides"]] = true, }, fishing_min = 575, battlepet_low = 22, battlepet_high = 23, } zones[BZ["Kelp'thar Forest"]] = { low = 80, high = 90, continent = Eastern_Kingdoms, paths = { [BZ["Shimmering Expanse"]] = true, }, fishing_min = 575, battlepet_low = 22, battlepet_high = 23, } zones[BZ["Shimmering Expanse"]] = { low = 80, high = 90, continent = Eastern_Kingdoms, paths = { [BZ["Kelp'thar Forest"]] = true, [BZ["Abyssal Depths"]] = true, }, fishing_min = 575, battlepet_low = 22, battlepet_high = 23, } zones[BZ["Abyssal Depths"]] = { low = 80, high = 90, continent = Eastern_Kingdoms, instances = { [BZ["Throne of the Tides"]] = true, }, paths = { [BZ["Shimmering Expanse"]] = true, [BZ["Throne of the Tides"]] = true, }, fishing_min = 575, battlepet_low = 22, battlepet_high = 23, } zones[BZ["Twilight Highlands"]] = { low = 84, high = 90, continent = Eastern_Kingdoms, instances = { [BZ["Grim Batol"]] = true, [BZ["The Bastion of Twilight"]] = true, [BZ["Twin Peaks"]] = true, }, paths = { [BZ["Wetlands"]] = true, [BZ["Grim Batol"]] = true, [BZ["Twin Peaks"]] = true, [transports["TWILIGHTHIGHLANDS_STORMWIND_PORTAL"]] = true, [transports["TWILIGHTHIGHLANDS_ORGRIMMAR_PORTAL"]] = true, }, fishing_min = 650, battlepet_low = 23, battlepet_high = 24, } zones[BZ["Tol Barad"]] = { low = 84, high = 85, continent = Eastern_Kingdoms, paths = { [BZ["Tol Barad Peninsula"]] = true, }, type = "PvP Zone", fishing_min = 675, battlepet_low = 23, battlepet_high = 24, } zones[BZ["Tol Barad Peninsula"]] = { low = 84, high = 85, continent = Eastern_Kingdoms, paths = { [BZ["Tol Barad"]] = true, [transports["TOLBARAD_ORGRIMMAR_PORTAL"]] = true, [transports["TOLBARAD_STORMWIND_PORTAL"]] = true, }, fishing_min = 675, battlepet_low = 23, battlepet_high = 24, } zones[BZ["Amani Pass"]] = { continent = Eastern_Kingdoms, } -- Kalimdor cities and zones -- zones[BZ["Orgrimmar"]] = { continent = Kalimdor, instances = { [BZ["Ragefire Chasm"]] = true, [BZ["The Ring of Valor"]] = true, }, paths = { [BZ["Durotar"]] = true, [BZ["Ragefire Chasm"]] = true, [BZ["Azshara"]] = true, [transports["ORGRIMMAR_UNDERCITY_PORTAL"]] = true, [transports["ORGRIMMAR_GROMGOL_ZEPPELIN"]] = true, [transports["ORGRIMMAR_BOREANTUNDRA_ZEPPELIN"]] = true, [transports["ORGRIMMAR_THUNDERBLUFF_ZEPPELIN"]] = true, [transports["ORGRIMMAR_BLASTEDLANDS_PORTAL"]] = true, [transports["ORGRIMMAR_HELLFIRE_PORTAL"]] = true, [transports["ORGRIMMAR_TWILIGHTHIGHLANDS_PORTAL"]] = true, [transports["ORGRIMMAR_MOUNTHYJAL_PORTAL"]] = true, [transports["ORGRIMMAR_DEEPHOLM_PORTAL"]] = true, [transports["ORGRIMMAR_ULDUM_PORTAL"]] = true, [transports["ORGRIMMAR_VASHJIR_PORTAL"]] = true, [transports["ORGRIMMAR_TOLBARAD_PORTAL"]] = true, [transports["ORGRIMMAR_JADEFOREST_PORTAL"]] = true, [transports["ORGRIMMAR_DALARANBROKENISLES_PORTAL"]] = true, [transports["ORGRIMMAR_ZULDAZAR_PORTAL"]] = true, [transports["ORGRIMMAR_WARSPEAR_PORTAL"]] = true, }, faction = "Horde", type = "City", fishing_min = 75, battlepet_low = 1, battlepet_high = 1, } zones[BZ["Thunder Bluff"]] = { continent = Kalimdor, paths = { [BZ["Mulgore"]] = true, [transports["ORGRIMMAR_THUNDERBLUFF_ZEPPELIN"]] = true, [transports["THUNDERBLUFF_HELLFIRE_PORTAL"]] = true, [transports["THUNDERBLUFF_ZULDAZAR_PORTAL"]] = true, }, faction = "Horde", type = "City", fishing_min = 75, battlepet_low = 1, battlepet_high = 2, } zones[BZ["The Exodar"]] = { continent = Kalimdor, paths = { [BZ["Azuremyst Isle"]] = true, [transports["EXODAR_HELLFIRE_PORTAL"]] = true, [transports["EXODAR_DARNASSUS_PORTAL"]] = true, [transports["EXODAR_TIRAGARDESOUND_PORTAL"]] = true, }, faction = "Alliance", type = "City", battlepet_low = 1, battlepet_high = 2, } zones[BZ["Darnassus"]] = { continent = Kalimdor, paths = { [BZ["Teldrassil"]] = true, [transports["DARNASSUS_HELLFIRE_PORTAL"]] = true, [transports["DARNASSUS_EXODAR_PORTAL"]] = true, }, faction = "Alliance", type = "City", fishing_min = 75, battlepet_low = 1, battlepet_high = 2, } zones[BZ["Ammen Vale"]] = { low = 1, high = 6, continent = Kalimdor, paths = { [BZ["Azuremyst Isle"]] = true, }, faction = "Alliance", fishing_min = 25, } zones[BZ["Valley of Trials"]] = { low = 1, high = 6, continent = Kalimdor, paths = { [BZ["Durotar"]] = true, }, faction = "Horde", fishing_min = 25, } zones[BZ["Echo Isles"]] = { low = 1, high = 6, continent = Kalimdor, paths = { [BZ["Durotar"]] = true, [transports["ECHOISLES_ZULDAZAR_BOAT"]] = true, }, faction = "Horde", fishing_min = 25, } zones[BZ["Camp Narache"]] = { low = 1, high = 6, continent = Kalimdor, paths = { [BZ["Mulgore"]] = true, }, faction = "Horde", fishing_min = 25, } zones[BZ["Shadowglen"]] = { low = 1, high = 6, continent = Kalimdor, paths = { [BZ["Teldrassil"]] = true, }, faction = "Alliance", fishing_min = 25, } zones[BZ["Azuremyst Isle"]] = { low = 1, high = 20, continent = Kalimdor, paths = { [BZ["The Exodar"]] = true, [BZ["Ammen Vale"]] = true, [BZ["Bloodmyst Isle"]] = true, [transports["TELDRASSIL_AZUREMYST_PORTAL"]] = true, }, faction = "Alliance", fishing_min = 25, battlepet_low = 1, battlepet_high = 2, } zones[BZ["Durotar"]] = { low = 1, high = 20, continent = Kalimdor, instances = BZ["Ragefire Chasm"], paths = { [BZ["Northern Barrens"]] = true, [BZ["Orgrimmar"]] = true, [BZ["Valley of Trials"]] = true, [BZ["Echo Isles"]] = true, }, faction = "Horde", fishing_min = 25, battlepet_low = 1, battlepet_high = 2, } zones[BZ["Mulgore"]] = { low = 1, high = 20, continent = Kalimdor, paths = { [BZ["Thunder Bluff"]] = true, [BZ["Southern Barrens"]] = true, [transports["MULGORE_DARKMOON_PORTAL"]] = true, }, faction = "Horde", fishing_min = 25, battlepet_low = 1, battlepet_high = 2, } zones[BZ["Teldrassil"]] = { low = 1, high = 20, continent = Kalimdor, paths = { [BZ["Darnassus"]] = true, [BZ["Shadowglen"]] = true, [transports["TELDRASSIL_AZUREMYST_PORTAL"]] = true, [transports["STORMWIND_TELDRASSIL_PORTAL"]] = true, }, faction = "Alliance", fishing_min = 25, battlepet_low = 1, battlepet_high = 2, } zones[BZ["Azshara"]] = { low = 10, high = 60, continent = Kalimdor, paths = BZ["Ashenvale"], paths = BZ["Orgrimmar"], fishing_min = 75, faction = "Horde", battlepet_low = 3, battlepet_high = 6, } zones[BZ["Bloodmyst Isle"]] = { low = 10, high = 60, continent = Kalimdor, paths = BZ["Azuremyst Isle"], faction = "Alliance", fishing_min = 75, battlepet_low = 3, battlepet_high = 6, } zones[BZ["Darkshore"]] = { low = 10, high = 60, continent = Kalimdor, paths = { [BZ["Ashenvale"]] = true, }, faction = "Alliance", fishing_min = 75, battlepet_low = 3, battlepet_high = 6, } zones[BZ["Northern Barrens"]] = { low = 10, high = 60, continent = Kalimdor, instances = { [BZ["Wailing Caverns"]] = true, [BZ["Warsong Gulch"]] = isHorde and true or nil, }, paths = { [BZ["Southern Barrens"]] = true, [BZ["Ashenvale"]] = true, [BZ["Durotar"]] = true, [BZ["Wailing Caverns"]] = true, [transports["BOOTYBAY_RATCHET_BOAT"]] = true, [BZ["Warsong Gulch"]] = isHorde and true or nil, [BZ["Stonetalon Mountains"]] = true, }, faction = "Horde", fishing_min = 75, battlepet_low = 3, battlepet_high = 4, } zones[BZ["Ashenvale"]] = { low = 15, high = 60, continent = Kalimdor, instances = { [BZ["Blackfathom Deeps"]] = true, [BZ["Warsong Gulch"]] = not isHorde and true or nil, }, paths = { [BZ["Azshara"]] = true, [BZ["Northern Barrens"]] = true, [BZ["Blackfathom Deeps"]] = true, [BZ["Warsong Gulch"]] = not isHorde and true or nil, [BZ["Felwood"]] = true, [BZ["Darkshore"]] = true, [BZ["Stonetalon Mountains"]] = true, }, fishing_min = 150, battlepet_low = 4, battlepet_high = 6, } zones[BZ["Stonetalon Mountains"]] = { low = 20, high = 60, continent = Kalimdor, paths = { [BZ["Desolace"]] = true, [BZ["Northern Barrens"]] = true, [BZ["Southern Barrens"]] = true, [BZ["Ashenvale"]] = true, }, fishing_min = 150, battlepet_low = 5, battlepet_high = 7, } zones[BZ["Desolace"]] = { low = 30, high = 60, continent = Kalimdor, instances = BZ["Maraudon"], paths = { [BZ["Feralas"]] = true, [BZ["Stonetalon Mountains"]] = true, [BZ["Maraudon"]] = true, }, fishing_min = 225, battlepet_low = 7, battlepet_high = 9, } zones[BZ["Southern Barrens"]] = { low = 25, high = 60, continent = Kalimdor, instances = { [BZ["Razorfen Kraul"]] = true, }, paths = { [BZ["Northern Barrens"]] = true, [BZ["Thousand Needles"]] = true, [BZ["Razorfen Kraul"]] = true, [BZ["Dustwallow Marsh"]] = true, [BZ["Stonetalon Mountains"]] = true, [BZ["Mulgore"]] = true, }, fishing_min = 225, battlepet_low = 9, battlepet_high = 10, } zones[BZ["Dustwallow Marsh"]] = { low = 35, high = 60, continent = Kalimdor, instances = BZ["Onyxia's Lair"], paths = { [BZ["Onyxia's Lair"]] = true, [BZ["Southern Barrens"]] = true, [BZ["Thousand Needles"]] = true, [transports["MENETHIL_THERAMORE_BOAT"]] = true, }, fishing_min = 225, battlepet_low = 12, battlepet_high = 13, } zones[BZ["Feralas"]] = { low = 35, high = 60, continent = Kalimdor, instances = { [BZ["Dire Maul - East"]] = true, [BZ["Dire Maul - North"]] = true, [BZ["Dire Maul - West"]] = true, }, paths = { [BZ["Thousand Needles"]] = true, [BZ["Desolace"]] = true, [BZ["Dire Maul"]] = true, }, complexes = { [BZ["Dire Maul"]] = true, }, fishing_min = 225, battlepet_low = 11, battlepet_high = 12, } zones[BZ["Thousand Needles"]] = { low = 40, high = 60, continent = Kalimdor, instances = { [BZ["Razorfen Downs"]] = true, }, paths = { [BZ["Feralas"]] = true, [BZ["Southern Barrens"]] = true, [BZ["Tanaris"]] = true, [BZ["Dustwallow Marsh"]] = true, [BZ["Razorfen Downs"]] = true, }, fishing_min = 300, battlepet_low = 13, battlepet_high = 14, } zones[BZ["Felwood"]] = { low = 40, high = 60, continent = Kalimdor, paths = { [BZ["Winterspring"]] = true, [BZ["Moonglade"]] = true, [BZ["Ashenvale"]] = true, }, fishing_min = 300, battlepet_low = 14, battlepet_high = 15, } zones[BZ["Tanaris"]] = { low = 40, high = 60, continent = Kalimdor, instances = { [BZ["Zul'Farrak"]] = true, [BZ["Old Hillsbrad Foothills"]] = true, [BZ["The Black Morass"]] = true, [BZ["Hyjal Summit"]] = true, [BZ["The Culling of Stratholme"]] = true, [BZ["End Time"]] = true, [BZ["Hour of Twilight"]] = true, [BZ["Well of Eternity"]] = true, [BZ["Dragon Soul"]] = true, }, paths = { [BZ["Thousand Needles"]] = true, [BZ["Un'Goro Crater"]] = true, [BZ["Zul'Farrak"]] = true, [BZ["Caverns of Time"]] = true, [BZ["Uldum"]] = true, }, complexes = { [BZ["Caverns of Time"]] = true, }, fishing_min = 300, battlepet_low = 13, battlepet_high = 14, } zones[BZ["Un'Goro Crater"]] = { low = 40, high = 60, continent = Kalimdor, paths = { [BZ["Silithus"]] = true, [BZ["Tanaris"]] = true, }, fishing_min = 375, battlepet_low = 15, battlepet_high = 16, } zones[BZ["Winterspring"]] = { low = 40, high = 60, continent = Kalimdor, paths = { [BZ["Felwood"]] = true, [BZ["Moonglade"]] = true, [BZ["Mount Hyjal"]] = true, }, fishing_min = 425, battlepet_low = 17, battlepet_high = 18, } zones[BZ["Silithus"]] = { low = 40, high = 60, continent = Kalimdor, paths = { [BZ["Ruins of Ahn'Qiraj"]] = true, [BZ["Un'Goro Crater"]] = true, [BZ["Ahn'Qiraj: The Fallen Kingdom"]] = true, }, instances = { [BZ["Ahn'Qiraj"]] = true, [BZ["Ruins of Ahn'Qiraj"]] = true, }, complexes = { [BZ["Ahn'Qiraj: The Fallen Kingdom"]] = true, }, type = "PvP Zone", fishing_min = 425, battlepet_low = 16, battlepet_high = 17, } zones[BZ["Moonglade"]] = { continent = Kalimdor, low = 1, high = 90, paths = { [BZ["Felwood"]] = true, [BZ["Winterspring"]] = true, }, fishing_min = 300, battlepet_low = 15, battlepet_high = 16, } zones[BZ["Mount Hyjal"]] = { low = 80, high = 90, continent = Kalimdor, paths = { [BZ["Winterspring"]] = true, }, instances = { [BZ["Firelands"]] = true, }, fishing_min = 575, battlepet_low = 22, battlepet_high = 24, } zones[BZ["Uldum"]] = { low = 80, high = 90, continent = Kalimdor, paths = { [BZ["Tanaris"]] = true, }, instances = { [BZ["Halls of Origination"]] = true, [BZ["Lost City of the Tol'vir"]] = true, [BZ["The Vortex Pinnacle"]] = true, [BZ["Throne of the Four Winds"]] = true, }, fishing_min = 650, battlepet_low = 23, battlepet_high = 24, } zones[BZ["Molten Front"]] = { low = 85, high = 85, continent = Kalimdor, battlepet_low = 24, battlepet_high = 24, } -- Outland city and zones -- zones[BZ["Shattrath City"]] = { continent = Outland, paths = { [BZ["Terokkar Forest"]] = true, [BZ["Nagrand"]] = true, [transports["SHATTRATH_QUELDANAS_PORTAL"]] = true, [transports["SHATTRATH_STORMWIND_PORTAL"]] = true, [transports["SHATTRATH_ORGRIMMAR_PORTAL"]] = true, }, faction = "Sanctuary", type = "City", battlepet_low = 17, battlepet_high = 17, } zones[BZ["Hellfire Peninsula"]] = { low = 58, high = 80, continent = Outland, instances = { [BZ["The Blood Furnace"]] = true, [BZ["Hellfire Ramparts"]] = true, [BZ["Magtheridon's Lair"]] = true, [BZ["The Shattered Halls"]] = true, }, paths = { [BZ["Zangarmarsh"]] = true, [BZ["The Dark Portal"]] = true, [BZ["Terokkar Forest"]] = true, [BZ["Hellfire Citadel"]] = true, [transports["HELLFIRE_ORGRIMMAR_PORTAL"]] = true, [transports["HELLFIRE_STORMWIND_PORTAL"]] = true, }, complexes = { [BZ["Hellfire Citadel"]] = true, }, type = "PvP Zone", fishing_min = 375, battlepet_low = 17, battlepet_high = 18, } zones[BZ["Zangarmarsh"]] = { low = 60, high = 80, continent = Outland, instances = { [BZ["The Underbog"]] = true, [BZ["Serpentshrine Cavern"]] = true, [BZ["The Steamvault"]] = true, [BZ["The Slave Pens"]] = true, }, paths = { [BZ["Coilfang Reservoir"]] = true, [BZ["Blade's Edge Mountains"]] = true, [BZ["Terokkar Forest"]] = true, [BZ["Nagrand"]] = true, [BZ["Hellfire Peninsula"]] = true, }, complexes = { [BZ["Coilfang Reservoir"]] = true, }, type = "PvP Zone", fishing_min = 400, battlepet_low = 18, battlepet_high = 19, } zones[BZ["Terokkar Forest"]] = { low = 62, high = 80, continent = Outland, instances = { [BZ["Mana-Tombs"]] = true, [BZ["Sethekk Halls"]] = true, [BZ["Shadow Labyrinth"]] = true, [BZ["Auchenai Crypts"]] = true, }, paths = { [BZ["Ring of Observance"]] = true, [BZ["Shadowmoon Valley"]] = true, [BZ["Zangarmarsh"]] = true, [BZ["Shattrath City"]] = true, [BZ["Hellfire Peninsula"]] = true, [BZ["Nagrand"]] = true, }, complexes = { [BZ["Ring of Observance"]] = true, }, type = "PvP Zone", fishing_min = 450, battlepet_low = 18, battlepet_high = 19, } zones[BZ["Nagrand"]] = { low = 64, high = 80, continent = Outland, instances = { [BZ["Nagrand Arena"]] = true, }, paths = { [BZ["Zangarmarsh"]] = true, [BZ["Shattrath City"]] = true, [BZ["Terokkar Forest"]] = true, }, type = "PvP Zone", fishing_min = 475, battlepet_low = 18, battlepet_high = 19, } zones[BZ["Blade's Edge Mountains"]] = { low = 65, high = 80, continent = Outland, instances = { [BZ["Gruul's Lair"]] = true, [BZ["Blade's Edge Arena"]] = true, }, paths = { [BZ["Netherstorm"]] = true, [BZ["Zangarmarsh"]] = true, [BZ["Gruul's Lair"]] = true, }, battlepet_low = 18, battlepet_high = 20, } zones[BZ["Netherstorm"]] = { low = 67, high = 80, continent = Outland, instances = { [BZ["The Mechanar"]] = true, [BZ["The Botanica"]] = true, [BZ["The Arcatraz"]] = true, [BZ["Tempest Keep"]] = true, -- previously "The Eye" [BZ["Eye of the Storm"]] = true, }, paths = { -- [BZ["Tempest Keep"]] = true, [BZ["Blade's Edge Mountains"]] = true, }, -- complexes = { -- [BZ["Tempest Keep"]] = true, -- }, fishing_min = 475, battlepet_low = 20, battlepet_high = 21, } zones[BZ["Shadowmoon Valley"]] = { low = 67, high = 80, continent = Outland, instances = BZ["Black Temple"], paths = { [BZ["Terokkar Forest"]] = true, [BZ["Black Temple"]] = true, }, fishing_min = 375, battlepet_low = 20, battlepet_high = 21, } -- Northrend city and zones -- zones[BZ["Dalaran"]] = { continent = Northrend, paths = { [BZ["The Violet Hold"]] = true, [transports["DALARAN_CRYSTALSONG_TELEPORT"]] = true, [transports["DALARAN_COT_PORTAL"]] = true, [transports["DALARAN_STORMWIND_PORTAL"]] = true, [transports["DALARAN_ORGRIMMAR_PORTAL"]] = true, }, instances = { [BZ["The Violet Hold"]] = true, [BZ["Dalaran Arena"]] = true, }, type = "City", texture = "Dalaran", faction = "Sanctuary", fishing_min = 525, battlepet_low = 21, battlepet_high = 21, } zones[BZ["Borean Tundra"]] = { low = 58, high = 80, continent = Northrend, paths = { [BZ["Coldarra"]] = true, [BZ["Dragonblight"]] = true, [BZ["Sholazar Basin"]] = true, [transports["STORMWIND_BOREANTUNDRA_BOAT"]] = true, [transports["ORGRIMMAR_BOREANTUNDRA_ZEPPELIN"]] = true, [transports["MOAKI_UNUPE_BOAT"]] = true, }, instances = { [BZ["The Nexus"]] = true, [BZ["The Oculus"]] = true, [BZ["The Eye of Eternity"]] = true, }, complexes = { [BZ["Coldarra"]] = true, }, fishing_min = 475, battlepet_low = 20, battlepet_high = 22, } zones[BZ["Howling Fjord"]] = { low = 58, high = 80, continent = Northrend, paths = { [BZ["Grizzly Hills"]] = true, [transports["MENETHIL_HOWLINGFJORD_BOAT"]] = true, [transports["UNDERCITY_HOWLINGFJORD_PORTAL"]] = true, [transports["MOAKI_KAMAGUA_BOAT"]] = true, [BZ["Utgarde Keep"]] = true, [BZ["Utgarde Pinnacle"]] = true, }, instances = { [BZ["Utgarde Keep"]] = true, [BZ["Utgarde Pinnacle"]] = true, }, fishing_min = 475, battlepet_low = 20, battlepet_high = 22, } zones[BZ["Dragonblight"]] = { low = 61, high = 80, continent = Northrend, paths = { [BZ["Borean Tundra"]] = true, [BZ["Grizzly Hills"]] = true, [BZ["Zul'Drak"]] = true, [BZ["Crystalsong Forest"]] = true, [transports["MOAKI_UNUPE_BOAT"]] = true, [transports["MOAKI_KAMAGUA_BOAT"]] = true, [BZ["Azjol-Nerub"]] = true, [BZ["Ahn'kahet: The Old Kingdom"]] = true, [BZ["Naxxramas"]] = true, [BZ["The Obsidian Sanctum"]] = true, }, instances = { [BZ["Azjol-Nerub"]] = true, [BZ["Ahn'kahet: The Old Kingdom"]] = true, [BZ["Naxxramas"]] = true, [BZ["The Obsidian Sanctum"]] = true, [BZ["Strand of the Ancients"]] = true, }, fishing_min = 475, battlepet_low = 22, battlepet_high = 23, } zones[BZ["Grizzly Hills"]] = { low = 63, high = 80, continent = Northrend, paths = { [BZ["Howling Fjord"]] = true, [BZ["Dragonblight"]] = true, [BZ["Zul'Drak"]] = true, [BZ["Drak'Tharon Keep"]] = true, }, instances = BZ["Drak'Tharon Keep"], fishing_min = 475, battlepet_low = 21, battlepet_high = 22, } zones[BZ["Zul'Drak"]] = { low = 64, high = 80, continent = Northrend, paths = { [BZ["Dragonblight"]] = true, [BZ["Grizzly Hills"]] = true, [BZ["Crystalsong Forest"]] = true, [BZ["Gundrak"]] = true, [BZ["Drak'Tharon Keep"]] = true, }, instances = { [BZ["Gundrak"]] = true, [BZ["Drak'Tharon Keep"]] = true, }, fishing_min = 475, battlepet_low = 22, battlepet_high = 23, } zones[BZ["Sholazar Basin"]] = { low = 66, high = 80, continent = Northrend, paths = BZ["Borean Tundra"], fishing_min = 525, battlepet_low = 21, battlepet_high = 22, } zones[BZ["Icecrown"]] = { low = 67, high = 80, continent = Northrend, paths = { [BZ["Trial of the Champion"]] = true, [BZ["Trial of the Crusader"]] = true, [BZ["The Forge of Souls"]] = true, [BZ["Pit of Saron"]] = true, [BZ["Halls of Reflection"]] = true, [BZ["Icecrown Citadel"]] = true, [BZ["Hrothgar's Landing"]] = true, }, instances = { [BZ["Trial of the Champion"]] = true, [BZ["Trial of the Crusader"]] = true, [BZ["The Forge of Souls"]] = true, [BZ["Pit of Saron"]] = true, [BZ["Halls of Reflection"]] = true, [BZ["Icecrown Citadel"]] = true, [BZ["Isle of Conquest"]] = true, }, fishing_min = 550, battlepet_low = 22, battlepet_high = 23, } zones[BZ["The Storm Peaks"]] = { low = 67, high = 80, continent = Northrend, paths = { [BZ["Crystalsong Forest"]] = true, [BZ["Halls of Stone"]] = true, [BZ["Halls of Lightning"]] = true, [BZ["Ulduar"]] = true, }, instances = { [BZ["Halls of Stone"]] = true, [BZ["Halls of Lightning"]] = true, [BZ["Ulduar"]] = true, }, fishing_min = 550, battlepet_low = 22, battlepet_high = 23, } zones[BZ["Crystalsong Forest"]] = { low = 67, high = 80, continent = Northrend, paths = { [transports["DALARAN_CRYSTALSONG_TELEPORT"]] = true, [BZ["Dragonblight"]] = true, [BZ["Zul'Drak"]] = true, [BZ["The Storm Peaks"]] = true, }, fishing_min = 500, battlepet_low = 22, battlepet_high = 23, } zones[BZ["Hrothgar's Landing"]] = { low = 67, high = 80, paths = BZ["Icecrown"], continent = Northrend, fishing_min = 550, battlepet_low = 22, battlepet_high = 22, } zones[BZ["Wintergrasp"]] = { low = 67, high = 80, continent = Northrend, paths = BZ["Vault of Archavon"], instances = BZ["Vault of Archavon"], type = "PvP Zone", fishing_min = 525, battlepet_low = 22, battlepet_high = 22, } zones[BZ["The Frozen Sea"]] = { continent = Northrend, fishing_min = 575, } -- The Maelstrom zones -- -- Goblin start zone zones[BZ["Kezan"]] = { low = 1, high = 5, continent = The_Maelstrom, faction = "Horde", fishing_min = 25, battlepet_low = 1, battlepet_high = 1, } -- Goblin start zone zones[BZ["The Lost Isles"]] = { low = 1, high = 10, continent = The_Maelstrom, faction = "Horde", fishing_min = 25, battlepet_low = 1, battlepet_high = 2, } zones[BZ["The Maelstrom"].." (zone)"] = { low = 82, high = 90, continent = The_Maelstrom, paths = { }, faction = "Sanctuary", } zones[BZ["Deepholm"]] = { low = 82, high = 90, continent = The_Maelstrom, instances = { [BZ["The Stonecore"]] = true, }, paths = { [BZ["The Stonecore"]] = true, [transports["DEEPHOLM_ORGRIMMAR_PORTAL"]] = true, [transports["DEEPHOLM_STORMWIND_PORTAL"]] = true, }, fishing_min = 550, battlepet_low = 22, battlepet_high = 23, } zones[BZ["Darkmoon Island"]] = { continent = The_Maelstrom, fishing_min = 75, paths = { [transports["DARKMOON_MULGORE_PORTAL"]] = true, [transports["DARKMOON_ELWYNNFOREST_PORTAL"]] = true, }, battlepet_low = 1, battlepet_high = 10, } -- Pandaria cities and zones -- zones[BZ["Shrine of Seven Stars"]] = { continent = Pandaria, paths = { [BZ["Vale of Eternal Blossoms"]] = true, [transports["SEVENSTARS_EXODAR_PORTAL"]] = true, [transports["SEVENSTARS_STORMWIND_PORTAL"]] = true, [transports["SEVENSTARS_IRONFORGE_PORTAL"]] = true, [transports["SEVENSTARS_DARNASSUS_PORTAL"]] = true, [transports["SEVENSTARS_SHATTRATH_PORTAL"]] = true, [transports["SEVENSTARS_DALARAN_PORTAL"]] = true, }, faction = "Alliance", type = "City", battlepet_low = 23, battlepet_high = 23, } zones[BZ["Shrine of Two Moons"]] = { continent = Pandaria, paths = { [BZ["Vale of Eternal Blossoms"]] = true, [transports["TWOMOONS_ORGRIMMAR_PORTAL"]] = true, [transports["TWOMOONS_UNDERCITY_PORTAL"]] = true, [transports["TWOMOONS_THUNDERBLUFF_PORTAL"]] = true, [transports["TWOMOONS_SILVERMOON_PORTAL"]] = true, [transports["TWOMOONS_SHATTRATH_PORTAL"]] = true, [transports["TWOMOONS_DALARAN_PORTAL"]] = true, }, faction = "Horde", type = "City", battlepet_low = 23, battlepet_high = 23, } zones[BZ["The Wandering Isle"]] = { low = 1, high = 10, continent = Pandaria, -- fishing_min = 25, faction = "Sanctuary", -- Not contested and not Alliance nor Horde -> no PvP -> sanctuary } zones[BZ["The Jade Forest"]] = { low = 80, high = 90, continent = Pandaria, instances = { [BZ["Temple of the Jade Serpent"]] = true, }, paths = { [BZ["Temple of the Jade Serpent"]] = true, [BZ["Valley of the Four Winds"]] = true, [BZ["Timeless Isle"]] = true, [transports["JADEFOREST_ORGRIMMAR_PORTAL"]] = true, [transports["JADEFOREST_STORMWIND_PORTAL"]] = true, }, fishing_min = 650, battlepet_low = 23, battlepet_high = 25, } zones[BZ["Valley of the Four Winds"]] = { low = 81, high = 90, continent = Pandaria, instances = { [BZ["Stormstout Brewery"]] = true, [BZ["Deepwind Gorge"]] = true, }, paths = { [BZ["Stormstout Brewery"]] = true, [BZ["The Jade Forest"]] = true, [BZ["Krasarang Wilds"]] = true, [BZ["The Veiled Stair"]] = true, [BZ["Deepwind Gorge"]] = true, }, fishing_min = 700, battlepet_low = 23, battlepet_high = 25, } zones[BZ["Krasarang Wilds"]] = { low = 81, high = 90, continent = Pandaria, paths = { [BZ["Valley of the Four Winds"]] = true, }, fishing_min = 700, battlepet_low = 23, battlepet_high = 25, } zones[BZ["The Veiled Stair"]] = { low = 87, high = 87, continent = Pandaria, instances = { [BZ["Terrace of Endless Spring"]] = true, }, paths = { [BZ["Terrace of Endless Spring"]] = true, [BZ["Valley of the Four Winds"]] = true, [BZ["Kun-Lai Summit"]] = true, }, fishing_min = 750, battlepet_low = 23, battlepet_high = 25, } zones[BZ["Kun-Lai Summit"]] = { low = 82, high = 90, continent = Pandaria, instances = { [BZ["Shado-Pan Monastery"]] = true, [BZ["Mogu'shan Vaults"]] = true, [BZ["The Tiger's Peak"]] = true, }, paths = { [BZ["Shado-Pan Monastery"]] = true, [BZ["Mogu'shan Vaults"]] = true, [BZ["Vale of Eternal Blossoms"]] = true, [BZ["The Veiled Stair"]] = true, }, fishing_min = 625, battlepet_low = 23, battlepet_high = 25, } zones[BZ["Townlong Steppes"]] = { low = 83, high = 90, continent = Pandaria, instances = { [BZ["Siege of Niuzao Temple"]] = true, }, paths = { [BZ["Siege of Niuzao Temple"]] = true, [BZ["Dread Wastes"]] = true, [transports["TOWNLONGSTEPPES_ISLEOFTHUNDER_PORTAL"]] = true, }, fishing_min = 700, battlepet_low = 24, battlepet_high = 25, } zones[BZ["Dread Wastes"]] = { low = 84, high = 90, continent = Pandaria, instances = { [BZ["Gate of the Setting Sun"]] = true, [BZ["Heart of Fear"]] = true, }, paths = { [BZ["Gate of the Setting Sun"]] = true, [BZ["Heart of Fear"]] = true, [BZ["Townlong Steppes"]] = true }, fishing_min = 625, battlepet_low = 24, battlepet_high = 25, } zones[BZ["Vale of Eternal Blossoms"]] = { low = 85, high = 90, continent = Pandaria, instances = { [BZ["Mogu'shan Palace"]] = true, [BZ["Siege of Orgrimmar"]] = true, }, paths = { [BZ["Mogu'shan Palace"]] = true, [BZ["Kun-Lai Summit"]] = true, [BZ["Siege of Orgrimmar"]] = true, [BZ["Shrine of Two Moons"]] = true, [BZ["Shrine of Seven Stars"]] = true, }, fishing_min = 825, battlepet_low = 23, battlepet_high = 25, } zones[BZ["Isle of Giants"]] = { low = 90, high = 90, continent = Pandaria, fishing_min = 750, battlepet_low = 23, battlepet_high = 25, } zones[BZ["Isle of Thunder"]] = { low = 85, high = 90, continent = Pandaria, instances = { [BZ["Throne of Thunder"]] = true, }, paths = { [transports["ISLEOFTHUNDER_TOWNLONGSTEPPES_PORTAL"]] = true, }, fishing_min = 750, battlepet_low = 23, battlepet_high = 25, } zones[BZ["Timeless Isle"]] = { low = 85, high = 90, continent = Pandaria, paths = BZ["The Jade Forest"], fishing_min = 825, battlepet_low = 25, battlepet_high = 25, } -- Draenor cities, garrisons and zones -- zones[BZ["Warspear"]] = { continent = Draenor, paths = { [BZ["Ashran"]] = true, [transports["WARSPEAR_ORGRIMMAR_PORTAL"]] = true, [transports["WARSPEAR_UNDERCITY_PORTAL"]] = true, [transports["WARSPEAR_THUNDERBLUFF_PORTAL"]] = true, }, faction = "Horde", type = "City", fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Stormshield"]] = { continent = Draenor, paths = { [BZ["Ashran"]] = true, [transports["STORMSHIELD_STORMWIND_PORTAL"]] = true, [transports["STORMSHIELD_IRONFORGE_PORTAL"]] = true, [transports["STORMSHIELD_DARNASSUS_PORTAL"]] = true, }, faction = "Alliance", type = "City", fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } -- Alliance garrison zones[BZ["Lunarfall"]] = { low = 90, high = 100, continent = Draenor, paths = { [BZ["Shadowmoon Valley"].." ("..BZ["Draenor"]..")"] = true, }, faction = "Alliance", fishing_min = 950, yards = 683.334, x_offset = 11696.5098, y_offset = 9101.3333, texture = "garrisonsmvalliance" } -- Horde garrison zones[BZ["Frostwall"]] = { low = 90, high = 100, continent = Draenor, paths = { [BZ["Frostfire Ridge"]] = true, }, faction = "Horde", fishing_min = 950, yards = 702.08, x_offset = 7356.9277, y_offset = 5378.4173, texture = "garrisonffhorde" } zones[BZ["Frostfire Ridge"]] = { low = 90, high = 100, continent = Draenor, instances = { [BZ["Bloodmaul Slag Mines"]] = true, }, paths = { [BZ["Gorgrond"]] = true, [BZ["Frostwall"]] = true, [transports["FROSTFIRERIDGE_ORGRIMMAR_PORTAL"]] = true, }, fishing_min = 950, battlepet_low = 23, battlepet_high = 25, } zones[BZ["Shadowmoon Valley"].." ("..BZ["Draenor"]..")"] = { low = 90, high = 100, continent = Draenor, instances = { [BZ["Shadowmoon Burial Grounds"]] = true, }, paths = { [BZ["Talador"]] = true, [BZ["Spires of Arak"]] = true, [BZ["Tanaan Jungle"]] = true, [BZ["Lunarfall"]] = true, [transports["SHADOWMOONVALLEY_STORMWIND_PORTAL"]] = true, }, fishing_min = 950, battlepet_low = 23, battlepet_high = 25, } zones[BZ["Gorgrond"]] = { low = 92, high = 100, continent = Draenor, instances = { [BZ["Iron Docks"]] = true, [BZ["Grimrail Depot"]] = true, [BZ["The Everbloom"]] = true, [BZ["Blackrock Foundry"]] = true, }, paths = { [BZ["Frostfire Ridge"]] = true, [BZ["Talador"]] = true, [BZ["Tanaan Jungle"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Talador"]] = { low = 94, high = 100, continent = Draenor, instances = { [BZ["Auchindoun"]] = true, }, paths = { [BZ["Shadowmoon Valley"].." ("..BZ["Draenor"]..")"] = true, [BZ["Gorgrond"]] = true, [BZ["Tanaan Jungle"]] = true, [BZ["Spires of Arak"]] = true, [BZ["Nagrand"].." ("..BZ["Draenor"]..")"] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Spires of Arak"]] = { low = 96, high = 100, continent = Draenor, instances = { [BZ["Skyreach"]] = true, [BZ["Blackrock Foundry"]] = true, }, paths = { [BZ["Shadowmoon Valley"].." ("..BZ["Draenor"]..")"] = true, [BZ["Talador"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Nagrand"].." ("..BZ["Draenor"]..")"] = { low = 98, high = 100, continent = Draenor, instances = { [BZ["Highmaul"]] = true, [BZ["Blackrock Foundry"]] = true, }, paths = { [BZ["Talador"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Tanaan Jungle"]] = { low = 100, high = 100, continent = Draenor, instances = { [BZ["Hellfire Citadel"].." ("..BZ["Draenor"]..")"] = true, }, paths = { [BZ["Talador"]] = true, [BZ["Shadowmoon Valley"].." ("..BZ["Draenor"]..")"] = true, [BZ["Gorgrond"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Ashran"]] = { low = 100, high = 100, continent = Draenor, type = "PvP Zone", paths = { [BZ["Warspear"]] = true, [BZ["Stormshield"]] = true, [transports["WARSPEAR_ORGRIMMAR_PORTAL"]] = true, [transports["WARSPEAR_UNDERCITY_PORTAL"]] = true, [transports["WARSPEAR_THUNDERBLUFF_PORTAL"]] = true, [transports["STORMSHIELD_STORMWIND_PORTAL"]] = true, [transports["STORMSHIELD_IRONFORGE_PORTAL"]] = true, [transports["STORMSHIELD_DARNASSUS_PORTAL"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } -- The Broken Isles cities and zones zones[BZ["Dalaran"].." ("..BZ["Broken Isles"]..")"] = { continent = Broken_Isles, paths = { [BZ["The Violet Hold"].." ("..BZ["Broken Isles"]..")"] = true, [transports["DALARANBROKENISLES_STORMWIND_PORTAL"]] = true, [transports["DALARANBROKENISLES_EXODAR_PORTAL"]] = true, [transports["DALARANBROKENISLES_DARNASSUS_PORTAL"]] = true, [transports["DALARANBROKENISLES_IRONFORGE_PORTAL"]] = true, [transports["DALARANBROKENISLES_SEVENSTARS_PORTAL"]] = true, [transports["DALARANBROKENISLES_ORGRIMMAR_PORTAL"]] = true, [transports["DALARANBROKENISLES_UNDERCITY_PORTAL"]] = true, [transports["DALARANBROKENISLES_THUNDERBLUFF_PORTAL"]] = true, [transports["DALARANBROKENISLES_SILVERMOON_PORTAL"]] = true, [transports["DALARANBROKENISLES_TWOMOONS_PORTAL"]] = true, [transports["DALARANBROKENISLES_COT_PORTAL"]] = true, [transports["DALARANBROKENISLES_SHATTRATH_PORTAL"]] = true, [transports["DALARANBROKENISLES_DRAGONBLIGHT_PORTAL"]] = true, [transports["DALARANBROKENISLES_HILLSBRAD_PORTAL"]] = true, [transports["DALARANBROKENISLES_KARAZHAN_PORTAL"]] = true, }, instances = { [BZ["The Violet Hold"].." ("..BZ["Broken Isles"]..")"] = true, }, faction = "Sanctuary", type = "City", fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Thunder Totem"]] = { continent = Broken_Isles, paths = { [BZ["Highmountain"]] = true, [BZ["Stormheim"]] = true, }, faction = "Sanctuary", type = "City", -- fishing_min = 950, TODO: check for fishable waters battlepet_low = 25, battlepet_high = 25, } zones[BZ["Azsuna"]] = { low = 98, high = 110, continent = Broken_Isles, instances = { [BZ["Vault of the Wardens"]] = true, [BZ["Eye of Azshara"]] = true, }, paths = { [BZ["Suramar"]] = true, [BZ["Val'sharah"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Val'sharah"]] = { low = 98, high = 110, continent = Broken_Isles, instances = { [BZ["Black Rook Hold"]] = true, [BZ["Darkheart Thicket"]] = true, [BZ["The Emerald Nightmare"]] = true, }, paths = { [BZ["Suramar"]] = true, [BZ["Azsuna"]] = true, [BZ["Highmountain"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Highmountain"]] = { low = 98, high = 110, continent = Broken_Isles, instances = { [BZ["Neltharion's Lair"]] = true, }, paths = { [BZ["Suramar"]] = true, [BZ["Stormheim"]] = true, [BZ["Val'sharah"]] = true, [BZ["Trueshot Lodge"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Stormheim"]] = { low = 98, high = 110, continent = Broken_Isles, instances = { [BZ["Halls of Valor"]] = true, [BZ["Helmouth Cliffs"]] = true, }, paths = { [BZ["Suramar"]] = true, [BZ["Highmountain"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Broken Shore"]] = { low = 110, high = 110, continent = Broken_Isles, instances = { [BZ["Cathedral of Eternal Night"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } zones[BZ["Suramar"]] = { low = 110, high = 110, continent = Broken_Isles, instances = { [BZ["Court of Stars"]] = true, [BZ["The Arcway"]] = true, [BZ["The Nighthold"]] = true, }, paths = { [BZ["Broken Shore"]] = true, [BZ["Azsuna"]] = true, [BZ["Val'sharah"]] = true, [BZ["Highmountain"]] = true, [BZ["Stormheim"]] = true, }, fishing_min = 950, battlepet_low = 25, battlepet_high = 25, } -- Hunter class hall. This map is reported by C_Map as a zone, unclear why zones[BZ["Trueshot Lodge"]] = { continent = Broken_Isles, paths = { [BZ["Highmountain"]] = true, }, faction = "Sanctuary", } -- Argus zones -- zones[BZ["Krokuun"]] = { low = 110, high = 110, continent = Argus, } zones[BZ["Antoran Wastes"]] = { low = 110, high = 110, continent = Argus, } zones[BZ["Mac'Aree"]] = { low = 110, high = 110, continent = Argus, instances = { [BZ["The Seat of the Triumvirate"]] = true, }, } -- WoW BFA zones -- Zandalar cities and zones (Horde) zones[BZ["Dazar'alor"]] = { instances = { [BZ["The MOTHERLODE!!"]] = true, }, paths = { [BZ["Zuldazar"]] = true, [BZ["The MOTHERLODE!!"]] = true, [transports["ECHOISLES_ZULDAZAR_BOAT"]] = true, [transports["ZULDAZAR_ORGRIMMAR_PORTAL"]] = true, [transports["ZULDAZAR_THUNDERBLUFF_PORTAL"]] = true, [transports["ZULDAZAR_SILVERMOON_PORTAL"]] = true, }, faction = "Horde", continent = Zandalar, type = "City", } zones[BZ["Nazmir"]] = { low = 110, high = 120, instances = { [BZ["The Underrot"]] = true, }, paths = { [BZ["Vol'dun"]] = true, [BZ["Zuldazar"]] = true, [BZ["The Underrot"]] = true, }, faction = "Horde", continent = Zandalar, } zones[BZ["Vol'dun"]] = { low = 110, high = 120, instances = { [BZ["Temple of Sethraliss"]] = true, }, paths = { [BZ["Nazmir"]] = true, [BZ["Zuldazar"]] = true, [BZ["Temple of Sethraliss"]] = true, }, faction = "Horde", continent = Zandalar, } zones[BZ["Zuldazar"]] = { low = 110, high = 120, instances = { [BZ["The MOTHERLODE!!"]] = true, [BZ["Atal'Dazar"]] = true, [BZ["Kings' Rest"]] = true, }, paths = { [BZ["Dazar'alor"]] = true, [BZ["Nazmir"]] = true, [BZ["Vol'dun"]] = true, [BZ["Atal'Dazar"]] = true, [BZ["Kings' Rest"]] = true, }, faction = "Horde", continent = Zandalar, } -- Kul Tiras cities and zones (Alliance) zones[BZ["Boralus"]] = { paths = { [BZ["Tiragarde Sound"]] = true, [transports["STORMWIND_TIRAGARDESOUND_BOAT"]] = true, [transports["TIRAGARDESOUND_STORMWIND_PORTAL"]] = true, [transports["TIRAGARDESOUND_EXODAR_PORTAL"]] = true, [transports["TIRAGARDESOUND_IRONFORGE_PORTAL"]] = true, }, faction = "Alliance", continent = Kul_Tiras, type = "City", } zones[BZ["Stormsong Valley"]] = { low = 110, high = 120, instances = BZ["Shrine of the Storm"], paths = { [BZ["Shrine of the Storm"]] = true, [BZ["Tiragarde Sound"]] = true, }, faction = "Alliance", continent = Kul_Tiras, } zones[BZ["Drustvar"]] = { low = 110, high = 120, instances = { [BZ["Waycrest Manor"]] = true, }, paths = { [BZ["Tiragarde Sound"]] = true, [BZ["Waycrest Manor"]] = true, }, faction = "Alliance", continent = Kul_Tiras, } zones[BZ["Tiragarde Sound"]] = { low = 110, high = 120, instances = { [BZ["Tol Dagor"]] = true, [BZ["Freehold"]] = true, [BZ["Siege of Boralus"]] = true, }, paths = { [BZ["Boralus"]] = true, [BZ["Drustvar"]] = true, [BZ["Stormsong Valley"]] = true, [BZ["Tol Dagor"]] = true, [BZ["Freehold"]] = true, [BZ["Siege of Boralus"]] = true, }, faction = "Alliance", continent = Kul_Tiras, } -- Classic dungeons -- zones[BZ["Ragefire Chasm"]] = { low = 15, high = 60, continent = Kalimdor, paths = BZ["Orgrimmar"], groupSize = 5, faction = "Horde", type = "Instance", entrancePortal = { BZ["Orgrimmar"], 52.8, 49 }, } zones[BZ["The Deadmines"]] = { low = 15, high = 60, continent = Eastern_Kingdoms, paths = BZ["Westfall"], groupSize = 5, faction = "Alliance", type = "Instance", fishing_min = 75, entrancePortal = { BZ["Westfall"], 42.6, 72.2 }, } zones[BZ["Shadowfang Keep"]] = { low = 17, high = 60, continent = Eastern_Kingdoms, paths = BZ["Silverpine Forest"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Silverpine Forest"], 44.80, 67.83 }, } zones[BZ["Wailing Caverns"]] = { low = 15, high = 60, continent = Kalimdor, paths = BZ["Northern Barrens"], groupSize = 5, type = "Instance", fishing_min = 75, entrancePortal = { BZ["Northern Barrens"], 42.1, 66.5 }, } zones[BZ["Blackfathom Deeps"]] = { low = 20, high = 60, continent = Kalimdor, paths = BZ["Ashenvale"], groupSize = 5, type = "Instance", fishing_min = 75, entrancePortal = { BZ["Ashenvale"], 14.6, 15.3 }, } zones[BZ["The Stockade"]] = { low = 20, high = 60, continent = Eastern_Kingdoms, paths = BZ["Stormwind City"], groupSize = 5, faction = "Alliance", type = "Instance", entrancePortal = { BZ["Stormwind City"], 50.5, 66.3 }, } zones[BZ["Gnomeregan"]] = { low = 24, high = 60, continent = Eastern_Kingdoms, paths = BZ["Dun Morogh"], groupSize = 5, faction = "Alliance", type = "Instance", entrancePortal = { BZ["Dun Morogh"], 24, 38.9 }, } zones[BZ["Scarlet Halls"]] = { low = 26, high = 60, continent = Eastern_Kingdoms, paths = BZ["Tirisfal Glades"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Tirisfal Glades"], 84.9, 35.3 }, } zones[BZ["Scarlet Monastery"]] = { low = 28, high = 60, continent = Eastern_Kingdoms, paths = BZ["Tirisfal Glades"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Tirisfal Glades"], 85.3, 32.1 }, } zones[BZ["Razorfen Kraul"]] = { low = 30, high = 60, continent = Kalimdor, paths = BZ["Southern Barrens"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Southern Barrens"], 40.8, 94.5 }, } -- consists of The Wicked Grotto, Foulspore Cavern and Earth Song Falls zones[BZ["Maraudon"]] = { low = 30, high = 60, continent = Kalimdor, paths = BZ["Desolace"], groupSize = 5, type = "Instance", fishing_min = 300, entrancePortal = { BZ["Desolace"], 29, 62.4 }, } zones[BZ["Razorfen Downs"]] = { low = 35, high = 60, continent = Kalimdor, paths = BZ["Thousand Needles"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Thousand Needles"], 47.5, 23.7 }, } zones[BZ["Uldaman"]] = { low = 35, high = 60, continent = Eastern_Kingdoms, paths = BZ["Badlands"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Badlands"], 42.4, 18.6 }, } -- a.k.a. Warpwood Quarter zones[BZ["Dire Maul - East"]] = { low = 36, high = 60, continent = Kalimdor, paths = BZ["Dire Maul"], groupSize = 5, type = "Instance", complex = BZ["Dire Maul"], entrancePortal = { BZ["Feralas"], 66.7, 34.8 }, } -- a.k.a. Capital Gardens zones[BZ["Dire Maul - West"]] = { low = 39, high = 60, continent = Kalimdor, paths = BZ["Dire Maul"], groupSize = 5, type = "Instance", complex = BZ["Dire Maul"], entrancePortal = { BZ["Feralas"], 60.3, 30.6 }, } -- a.k.a. Gordok Commons zones[BZ["Dire Maul - North"]] = { low = 42, high = 60, continent = Kalimdor, paths = BZ["Dire Maul"], groupSize = 5, type = "Instance", complex = BZ["Dire Maul"], entrancePortal = { BZ["Feralas"], 62.5, 24.9 }, } zones[BZ["Scholomance"]] = { low = 38, high = 60, continent = Eastern_Kingdoms, paths = BZ["Western Plaguelands"], groupSize = 5, type = "Instance", fishing_min = 425, entrancePortal = { BZ["Western Plaguelands"], 69.4, 72.8 }, } -- consists of Main Gate and Service Entrance zones[BZ["Stratholme"]] = { low = 42, high = 60, continent = Eastern_Kingdoms, paths = BZ["Eastern Plaguelands"], groupSize = 5, type = "Instance", fishing_min = 425, entrancePortal = { BZ["Eastern Plaguelands"], 30.8, 14.4 }, } zones[BZ["Zul'Farrak"]] = { low = 44, high = 60, continent = Kalimdor, paths = BZ["Tanaris"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Tanaris"], 36, 11.7 }, } -- consists of Detention Block and Upper City zones[BZ["Blackrock Depths"]] = { low = 47, high = 60, continent = Eastern_Kingdoms, paths = { [BZ["Molten Core"]] = true, [BZ["Blackrock Mountain"]] = true, }, groupSize = 5, type = "Instance", complex = BZ["Blackrock Mountain"], entrancePortal = { BZ["Searing Gorge"], 35.4, 84.4 }, } -- a.k.a. Sunken Temple zones[BZ["The Temple of Atal'Hakkar"]] = { low = 50, high = 60, continent = Eastern_Kingdoms, paths = BZ["Swamp of Sorrows"], groupSize = 5, type = "Instance", fishing_min = 300, entrancePortal = { BZ["Swamp of Sorrows"], 70, 54 }, } -- a.k.a. Lower Blackrock Spire zones[BZ["Blackrock Spire"]] = { low = 55, high = 60, continent = Eastern_Kingdoms, paths = { [BZ["Blackrock Mountain"]] = true, [BZ["Blackwing Lair"]] = true, [BZ["Blackwing Descent"]] = true, }, groupSize = 5, type = "Instance", complex = BZ["Blackrock Mountain"], entrancePortal = { BZ["Burning Steppes"], 29.7, 37.5 }, } -- Burning Crusade dungeons (Outland) -- zones[BZ["Hellfire Ramparts"]] = { low = 58, high = 80, continent = Outland, paths = BZ["Hellfire Citadel"], groupSize = 5, type = "Instance", complex = BZ["Hellfire Citadel"], entrancePortal = { BZ["Hellfire Peninsula"], 46.8, 54.9 }, } zones[BZ["The Blood Furnace"]] = { low = 59, high = 80, continent = Outland, paths = BZ["Hellfire Citadel"], groupSize = 5, type = "Instance", complex = BZ["Hellfire Citadel"], entrancePortal = { BZ["Hellfire Peninsula"], 46.8, 54.9 }, } zones[BZ["The Slave Pens"]] = { low = 60, high = 80, continent = Outland, paths = BZ["Coilfang Reservoir"], groupSize = 5, type = "Instance", complex = BZ["Coilfang Reservoir"], entrancePortal = { BZ["Zangarmarsh"], 50.2, 40.8 }, } zones[BZ["The Underbog"]] = { low = 61, high = 80, continent = Outland, paths = BZ["Coilfang Reservoir"], groupSize = 5, type = "Instance", complex = BZ["Coilfang Reservoir"], entrancePortal = { BZ["Zangarmarsh"], 50.2, 40.8 }, } zones[BZ["Mana-Tombs"]] = { low = 62, high = 80, continent = Outland, paths = BZ["Ring of Observance"], groupSize = 5, type = "Instance", complex = BZ["Ring of Observance"], entrancePortal = { BZ["Terokkar Forest"], 39.6, 65.5 }, } zones[BZ["Auchenai Crypts"]] = { low = 63, high = 80, continent = Outland, paths = BZ["Ring of Observance"], groupSize = 5, type = "Instance", complex = BZ["Ring of Observance"], entrancePortal = { BZ["Terokkar Forest"], 39.6, 65.5 }, } -- a.k.a. The Escape from Durnhold Keep zones[BZ["Old Hillsbrad Foothills"]] = { low = 64, high = 80, continent = Kalimdor, paths = BZ["Caverns of Time"], groupSize = 5, type = "Instance", complex = BZ["Caverns of Time"], entrancePortal = { BZ["Caverns of Time"], 26.7, 32.6 }, } zones[BZ["Sethekk Halls"]] = { low = 65, high = 80, continent = Outland, paths = BZ["Ring of Observance"], groupSize = 5, type = "Instance", complex = BZ["Ring of Observance"], entrancePortal = { BZ["Terokkar Forest"], 39.6, 65.5 }, } zones[BZ["Shadow Labyrinth"]] = { low = 67, high = 80, continent = Outland, paths = BZ["Ring of Observance"], groupSize = 5, type = "Instance", complex = BZ["Ring of Observance"], entrancePortal = { BZ["Terokkar Forest"], 39.6, 65.5 }, } zones[BZ["The Shattered Halls"]] = { low = 67, high = 80, continent = Outland, paths = BZ["Hellfire Citadel"], groupSize = 5, type = "Instance", complex = BZ["Hellfire Citadel"], entrancePortal = { BZ["Hellfire Peninsula"], 46.8, 54.9 }, } zones[BZ["The Steamvault"]] = { low = 67, high = 80, continent = Outland, paths = BZ["Coilfang Reservoir"], groupSize = 5, type = "Instance", complex = BZ["Coilfang Reservoir"], entrancePortal = { BZ["Zangarmarsh"], 50.2, 40.8 }, } zones[BZ["The Mechanar"]] = { low = 67, high = 80, continent = Outland, -- paths = BZ["Tempest Keep"], paths = BZ["Netherstorm"], groupSize = 5, type = "Instance", -- complex = BZ["Tempest Keep"], entrancePortal = { BZ["Netherstorm"], 76.5, 65.1 }, } zones[BZ["The Botanica"]] = { low = 67, high = 80, continent = Outland, -- paths = BZ["Tempest Keep"], paths = BZ["Netherstorm"], groupSize = 5, type = "Instance", -- complex = BZ["Tempest Keep"], entrancePortal = { BZ["Netherstorm"], 76.5, 65.1 }, } zones[BZ["The Arcatraz"]] = { low = 68, high = 80, continent = Outland, -- paths = BZ["Tempest Keep"], paths = BZ["Netherstorm"], groupSize = 5, type = "Instance", -- complex = BZ["Tempest Keep"], entrancePortal = { BZ["Netherstorm"], 76.5, 65.1 }, } -- Wrath of the Lich King dungeons (Northrend) -- zones[BZ["Utgarde Keep"]] = { low = 58, high = 80, continent = Northrend, paths = BZ["Howling Fjord"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Howling Fjord"], 57.30, 46.84 }, } zones[BZ["The Nexus"]] = { low = 59, high = 80, continent = Northrend, paths = BZ["Coldarra"], groupSize = 5, type = "Instance", complex = BZ["Coldarra"], entrancePortal = { BZ["Borean Tundra"], 27.50, 26.03 }, } zones[BZ["Azjol-Nerub"]] = { low = 60, high = 80, continent = Northrend, paths = BZ["Dragonblight"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Dragonblight"], 26.01, 50.83 }, } zones[BZ["Ahn'kahet: The Old Kingdom"]] = { low = 61, high = 80, continent = Northrend, paths = BZ["Dragonblight"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Dragonblight"], 28.49, 51.73 }, } zones[BZ["Drak'Tharon Keep"]] = { low = 62, high = 80, continent = Northrend, paths = { [BZ["Grizzly Hills"]] = true, [BZ["Zul'Drak"]] = true, }, groupSize = 5, type = "Instance", entrancePortal = { BZ["Zul'Drak"], 28.53, 86.93 }, } zones[BZ["The Violet Hold"]] = { low = 63, high = 80, continent = Northrend, paths = BZ["Dalaran"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Dalaran"], 66.78, 68.19 }, } zones[BZ["Gundrak"]] = { low = 64, high = 80, continent = Northrend, paths = BZ["Zul'Drak"], groupSize = 5, type = "Instance", fishing_min = 475, entrancePortal = { BZ["Zul'Drak"], 76.14, 21.00 }, } zones[BZ["Halls of Stone"]] = { low = 65, high = 80, continent = Northrend, paths = BZ["The Storm Peaks"], groupSize = 5, type = "Instance", entrancePortal = { BZ["The Storm Peaks"], 39.52, 26.91 }, } zones[BZ["Halls of Lightning"]] = { low = 67, high = 80, continent = Northrend, paths = BZ["The Storm Peaks"], groupSize = 5, type = "Instance", entrancePortal = { BZ["The Storm Peaks"], 45.38, 21.37 }, } zones[BZ["The Oculus"]] = { low = 67, high = 80, continent = Northrend, paths = BZ["Coldarra"], groupSize = 5, type = "Instance", complex = BZ["Coldarra"], entrancePortal = { BZ["Borean Tundra"], 27.52, 26.67 }, } zones[BZ["Utgarde Pinnacle"]] = { low = 67, high = 80, continent = Northrend, paths = BZ["Howling Fjord"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Howling Fjord"], 57.25, 46.60 }, } zones[BZ["The Culling of Stratholme"]] = { low = 68, high = 80, continent = Kalimdor, paths = BZ["Caverns of Time"], groupSize = 5, type = "Instance", complex = BZ["Caverns of Time"], entrancePortal = { BZ["Caverns of Time"], 60.3, 82.8 }, } zones[BZ["Magisters' Terrace"]] = { low = 68, high = 80, continent = Eastern_Kingdoms, paths = BZ["Isle of Quel'Danas"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Isle of Quel'Danas"], 61.3, 30.9 }, } -- a.k.a. The Opening of the Black Portal zones[BZ["The Black Morass"]] = { low = 68, high = 75, continent = Kalimdor, paths = BZ["Caverns of Time"], groupSize = 5, type = "Instance", complex = BZ["Caverns of Time"], entrancePortal = { BZ["Caverns of Time"], 34.4, 84.9 }, } zones[BZ["Trial of the Champion"]] = { low = 68, high = 80, continent = Northrend, paths = BZ["Icecrown"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Icecrown"], 74.18, 20.45 }, } zones[BZ["The Forge of Souls"]] = { low = 70, high = 80, continent = Northrend, paths = BZ["Icecrown"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Icecrown"], 52.60, 89.35 }, } zones[BZ["Halls of Reflection"]] = { low = 70, high = 80, continent = Northrend, paths = BZ["Icecrown"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Icecrown"], 52.60, 89.35 }, } zones[BZ["Pit of Saron"]] = { low = 70, high = 80, continent = Northrend, paths = BZ["Icecrown"], groupSize = 5, type = "Instance", fishing_min = 550, entrancePortal = { BZ["Icecrown"], 52.60, 89.35 }, } -- Cataclysm dungeons -- zones[BZ["Blackrock Caverns"]] = { low = 80, high = 90, continent = Eastern_Kingdoms, paths = { [BZ["Blackrock Mountain"]] = true, }, groupSize = 5, type = "Instance", complex = BZ["Blackrock Mountain"], entrancePortal = { BZ["Searing Gorge"], 47.8, 69.1 }, } zones[BZ["Throne of the Tides"]] = { low = 80, high = 90, continent = Eastern_Kingdoms, paths = BZ["Abyssal Depths"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Abyssal Depths"], 69.3, 25.2 }, } zones[BZ["The Stonecore"]] = { low = 81, high = 90, continent = The_Maelstrom, paths = BZ["Deepholm"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Deepholm"], 47.70, 51.96 }, } zones[BZ["The Vortex Pinnacle"]] = { low = 81, high = 90, continent = Kalimdor, paths = BZ["Uldum"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Uldum"], 76.79, 84.51 }, } zones[BZ["Lost City of the Tol'vir"]] = { low = 84, high = 90, continent = Kalimdor, paths = BZ["Uldum"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Uldum"], 60.53, 64.24 }, } zones[BZ["Grim Batol"]] = { low = 84, high = 90, continent = Eastern_Kingdoms, paths = BZ["Twilight Highlands"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Twilight Highlands"], 19, 53.5 }, } -- TODO: confirm level range zones[BZ["Halls of Origination"]] = { low = 85, high = 85, continent = Kalimdor, paths = BZ["Uldum"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Uldum"], 69.09, 52.95 }, } -- TODO: confirm level range zones[BZ["End Time"]] = { low = 84, high = 90, continent = Kalimdor, paths = BZ["Caverns of Time"], groupSize = 5, type = "Instance", complex = BZ["Caverns of Time"], entrancePortal = { BZ["Caverns of Time"], 57.1, 25.7 }, } -- TODO: confirm level range zones[BZ["Hour of Twilight"]] = { low = 84, high = 90, continent = Kalimdor, paths = BZ["Caverns of Time"], groupSize = 5, type = "Instance", complex = BZ["Caverns of Time"], entrancePortal = { BZ["Caverns of Time"], 67.9, 29.0 }, } -- TODO: confirm level range zones[BZ["Well of Eternity"]] = { low = 84, high = 90, continent = Kalimdor, paths = BZ["Caverns of Time"], groupSize = 5, type = "Instance", complex = BZ["Caverns of Time"], entrancePortal = { BZ["Caverns of Time"], 22.2, 63.6 }, } -- Note: before Cataclysm, this was a lvl 70 10-man raid zones[BZ["Zul'Aman"]] = { low = 85, high = 85, continent = Eastern_Kingdoms, paths = BZ["Ghostlands"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Ghostlands"], 77.7, 63.2 }, fishing_min = 425, } -- Note: before Cataclysm, this was a lvl 60 20-man raid zones[BZ["Zul'Gurub"]] = { low = 85, high = 85, continent = Eastern_Kingdoms, paths = BZ["Northern Stranglethorn"], groupSize = 5, type = "Instance", -- fishing_min = 330, entrancePortal = { BZ["Northern Stranglethorn"], 52.2, 17.1 }, } -- Mists of Pandaria dungeons -- zones[BZ["Temple of the Jade Serpent"]] = { low = 80, high = 90, continent = Pandaria, paths = BZ["The Jade Forest"], groupSize = 5, type = "Instance", entrancePortal = { BZ["The Jade Forest"], 56.20, 57.90 }, } zones[BZ["Stormstout Brewery"]] = { low = 80, high = 90, continent = Pandaria, paths = BZ["Valley of the Four Winds"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Valley of the Four Winds"], 36.10, 69.10 }, } zones[BZ["Shado-Pan Monastery"]] = { low = 82, high = 90, continent = Pandaria, paths = BZ["Kun-Lai Summit"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Kun-Lai Summit"], 36.7, 47.6 }, } zones[BZ["Mogu'shan Palace"]] = { low = 82, high = 90, continent = Pandaria, paths = BZ["Vale of Eternal Blossoms"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Vale of Eternal Blossoms"], 80.7, 33.0 }, } zones[BZ["Gate of the Setting Sun"]] = { low = 83, high = 90, continent = Pandaria, paths = BZ["Dread Wastes"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Dread Wastes"], 15.80, 74.30 }, } zones[BZ["Siege of Niuzao Temple"]] = { low = 83, high = 90, continent = Pandaria, paths = BZ["Townlong Steppes"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Townlong Steppes"], 34.5, 81.1 }, } -- Warlords of Draenor dungeons -- zones[BZ["Bloodmaul Slag Mines"]] = { low = 90, high = 100, continent = Draenor, paths = BZ["Forstfire Ridge"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Forstfire Ridge"], 50.0, 24.8 }, } zones[BZ["Iron Docks"]] = { low = 92, high = 100, continent = Draenor, paths = BZ["Gorgrond"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Gorgrond"], 45.2, 13.7 }, } zones[BZ["Auchindoun"]] = { low = 94, high = 100, continent = Draenor, paths = BZ["Talador"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Talador"], 43.6, 74.1 }, } zones[BZ["Skyreach"]] = { low = 97, high = 100, continent = Draenor, paths = BZ["Spires of Arak"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Spires of Arak"], 35.6, 33.5 }, } zones[BZ["Shadowmoon Burial Grounds"]] = { low = 100, high = 100, continent = Draenor, paths = BZ["Shadowmoon Valley"].." ("..BZ["Draenor"]..")", groupSize = 5, type = "Instance", entrancePortal = { BZ["Shadowmoon Valley"].." ("..BZ["Draenor"]..")", 31.9, 42.5 }, } zones[BZ["Grimrail Depot"]] = { low = 100, high = 100, continent = Draenor, paths = BZ["Gorgrond"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Gorgrond"], 55.2, 32.1 }, } zones[BZ["The Everbloom"]] = { low = 100, high = 100, continent = Draenor, paths = BZ["Gorgrond"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Gorgrond"], 59.5, 45.3 }, } zones[BZ["Upper Blackrock Spire"]] = { low = 100, high = 100, continent = Eastern_Kingdoms, paths = { [BZ["Blackrock Mountain"]] = true, }, groupSize = 5, type = "Instance", complex = BZ["Blackrock Mountain"], entrancePortal = { BZ["Burning Steppes"], 29.7, 37.5 }, } -- Legion dungeons -- zones[BZ["Eye of Azshara"]] = { low = 98, high = 110, continent = Broken_Isles, paths = BZ["Aszuna"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Aszuna"], 67.1, 41.1 }, } zones[BZ["Darkheart Thicket"]] = { low = 98, high = 110, continent = Broken_Isles, paths = BZ["Val'sharah"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Val'sharah"], 59.2, 31.5 }, } zones[BZ["Neltharion's Lair"]] = { low = 98, high = 110, continent = Broken_Isles, paths = BZ["Highmountain"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Highmountain"], 49.9, 63.6 }, } zones[BZ["Halls of Valor"]] = { low = 98, high = 110, continent = Broken_Isles, paths = BZ["Stormheim"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Stormheim"], 68.3, 66.2 }, } zones[BZ["The Violet Hold"].." ("..BZ["Broken Isles"]..")"] = { low = 105, high = 110, continent = Broken_Isles, paths = { [BZ["Dalaran"].." ("..BZ["Broken Isles"]..")"] = true, }, groupSize = 5, type = "Instance", entrancePortal = { BZ["Dalaran"].." ("..BZ["Broken Isles"]..")", 66.78, 68.19 }, } zones[BZ["Helmouth Cliffs"]] = { low = 110, high = 110, continent = Broken_Isles, paths = BZ["Stormheim"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Stormheim"], 53.0, 47.2 }, } zones[BZ["Court of Stars"]] = { low = 110, high = 110, continent = Broken_Isles, paths = BZ["Suramar"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Suramar"], 50.7, 65.5 }, } zones[BZ["The Arcway"]] = { low = 110, high = 110, continent = Broken_Isles, paths = BZ["Suramar"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Suramar"], 43, 62 }, } zones[BZ["Cathedral of Eternal Night"]] = { low = 110, high = 110, continent = Broken_Isles, paths = BZ["Broken Shore"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Broken Shore"], 63, 18 }, } zones[BZ["The Seat of the Triumvirate"]] = { low = 110, high = 110, continent = Argus, paths = BZ["Mac'Aree"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Mac'Aree"], 22.3, 56.1 }, } zones[BZ["Black Rook Hold"]] = { low = 110, high = 110, continent = Broken_Isles, paths = BZ["Val'sharah"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Val'sharah"], 38.7, 53.2 }, } zones[BZ["Vault of the Wardens"]] = { low = 110, high = 110, continent = Broken_Isles, paths = BZ["Aszuna"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Aszuna"], 48.2, 82.7 }, } -- WoW BFA dungeons -- Alliance zones[BZ["Shrine of the Storm"]] = { low = GetBFAInstanceLow(110, "Alliance"), high = 120, continent = Kul_Tiras, paths = BZ["Stormsong Valley"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Stormsong Valley"], 78.8, 26.6 }, } zones[BZ["Waycrest Manor"]] = { low = GetBFAInstanceLow(110, "Alliance"), high = 120, continent = Kul_Tiras, paths = BZ["Drustvar"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Drustvar"], 33.7, 12.7 }, } zones[BZ["Freehold"]] = { low = GetBFAInstanceLow(110, "Alliance"), high = 120, continent = Kul_Tiras, paths = BZ["Tiragarde Sound"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Tiragarde Sound"], 84.7, 78.7 }, } zones[BZ["Tol Dagor"]] = { low = GetBFAInstanceLow(115, "Alliance"), high = 120, continent = Kul_Tiras, paths = BZ["Tiragarde Sound"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Tiragarde Sound"], 99.1, 47.3 }, } zones[BZ["Siege of Boralus"]] = { low = 120, high = 120, continent = Kul_Tiras, paths = BZ["Tiragarde Sound"], groupSize = 5, type = "Instance", entrancePortal = GetSiegeOfBoralusEntrance(), } -- Horde zones[BZ["Atal'Dazar"]] = { low = GetBFAInstanceLow(110, "Horde"), high = 120, continent = Zandalar, paths = BZ["Zuldazar"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Zuldazar"], 43.6, 39.4 }, } zones[BZ["Temple of Sethraliss"]] = { low = GetBFAInstanceLow(110, "Horde"), high = 120, continent = Zandalar, paths = BZ["Vol'dun"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Vol'dun"], 51.9, 25.1 }, } zones[BZ["The Underrot"]] = { low = GetBFAInstanceLow(110, "Horde"), high = 120, continent = Zandalar, paths = BZ["Nazmir"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Nazmir"], 51.9, 65.8 }, } zones[BZ["The MOTHERLODE!!"]] = { low = GetBFAInstanceLow(115, "Horde"), high = 120, continent = Zandalar, paths = BZ["Dazar'Alor"], groupSize = 5, type = "Instance", entrancePortal = GetTheMotherlodeEntrance(), } zones[BZ["Kings' Rest"]] = { low = 120, high = 120, continent = Zandalar, paths = BZ["Zuldazar"], groupSize = 5, type = "Instance", entrancePortal = { BZ["Zuldazar"], 37.9, 39.5 }, } -- Raids -- zones[BZ["Blackwing Lair"]] = { low = 60, high = 62, continent = Eastern_Kingdoms, paths = BZ["Blackrock Mountain"], groupSize = 40, type = "Instance", complex = BZ["Blackrock Mountain"], entrancePortal = { BZ["Burning Steppes"], 29.7, 37.5 }, } zones[BZ["Molten Core"]] = { low = 60, high = 62, continent = Eastern_Kingdoms, paths = BZ["Blackrock Mountain"], groupSize = 40, type = "Instance", complex = BZ["Blackrock Mountain"], fishing_min = 1, -- lava entrancePortal = { BZ["Searing Gorge"], 35.4, 84.4 }, } zones[BZ["Ahn'Qiraj"]] = { low = 60, high = 63, continent = Kalimdor, paths = BZ["Ahn'Qiraj: The Fallen Kingdom"], groupSize = 40, type = "Instance", complex = BZ["Ahn'Qiraj: The Fallen Kingdom"], entrancePortal = { BZ["Ahn'Qiraj: The Fallen Kingdom"], 46.6, 7.4 }, } zones[BZ["Ruins of Ahn'Qiraj"]] = { low = 60, high = 63, continent = Kalimdor, paths = BZ["Ahn'Qiraj: The Fallen Kingdom"], groupSize = 20, type = "Instance", complex = BZ["Ahn'Qiraj: The Fallen Kingdom"], entrancePortal = { BZ["Ahn'Qiraj: The Fallen Kingdom"], 58.9, 14.3 }, } zones[BZ["Karazhan"]] = { low = 70, high = 72, continent = Eastern_Kingdoms, paths = BZ["Deadwind Pass"], groupSize = 10, type = "Instance", entrancePortal = { BZ["Deadwind Pass"], 40.9, 73.2 }, } -- a.k.a. The Battle for Mount Hyjal zones[BZ["Hyjal Summit"]] = { low = 70, high = 72, continent = Kalimdor, paths = BZ["Caverns of Time"], groupSize = 25, type = "Instance", complex = BZ["Caverns of Time"], entrancePortal = { BZ["Caverns of Time"], 38.8, 16.6 }, } zones[BZ["Black Temple"]] = { low = 70, high = 72, continent = Outland, paths = BZ["Shadowmoon Valley"], groupSize = 25, type = "Instance", entrancePortal = { BZ["Shadowmoon Valley"], 77.7, 43.7 }, } zones[BZ["Magtheridon's Lair"]] = { low = 70, high = 72, continent = Outland, paths = BZ["Hellfire Citadel"], groupSize = 25, type = "Instance", complex = BZ["Hellfire Citadel"], entrancePortal = { BZ["Hellfire Peninsula"], 46.8, 54.9 }, } zones[BZ["Serpentshrine Cavern"]] = { low = 70, high = 72, continent = Outland, paths = BZ["Coilfang Reservoir"], groupSize = 25, type = "Instance", complex = BZ["Coilfang Reservoir"], entrancePortal = { BZ["Zangarmarsh"], 50.2, 40.8 }, } zones[BZ["Gruul's Lair"]] = { low = 70, high = 72, continent = Outland, paths = BZ["Blade's Edge Mountains"], groupSize = 25, type = "Instance", entrancePortal = { BZ["Blade's Edge Mountains"], 68, 24 }, } zones[BZ["Tempest Keep"]] = { low = 70, high = 72, continent = Outland, -- paths = BZ["Tempest Keep"], paths = BZ["Netherstorm"], groupSize = 25, type = "Instance", -- complex = BZ["Tempest Keep"], entrancePortal = { BZ["Netherstorm"], 76.5, 65.1 }, } zones[BZ["Sunwell Plateau"]] = { low = 70, high = 72, continent = Eastern_Kingdoms, paths = BZ["Isle of Quel'Danas"], groupSize = 25, type = "Instance", entrancePortal = { BZ["Isle of Quel'Danas"], 44.3, 45.7 }, } zones[BZ["The Eye of Eternity"]] = { low = 80, high = 80, continent = Northrend, paths = BZ["Coldarra"], groupSize = 10, altGroupSize = 25, type = "Instance", complex = BZ["Coldarra"], entrancePortal = { BZ["Borean Tundra"], 27.54, 26.68 }, } zones[BZ["Onyxia's Lair"]] = { low = 80, high = 80, continent = Kalimdor, paths = BZ["Dustwallow Marsh"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["Dustwallow Marsh"], 52, 76 }, } zones[BZ["Naxxramas"]] = { low = 80, high = 80, continent = Northrend, paths = BZ["Dragonblight"], groupSize = 10, altGroupSize = 25, type = "Instance", fishing_min = 1, -- acid entrancePortal = { BZ["Dragonblight"], 87.30, 51.00 }, } zones[BZ["The Obsidian Sanctum"]] = { low = 80, high = 80, continent = Northrend, paths = BZ["Dragonblight"], groupSize = 10, altGroupSize = 25, type = "Instance", fishing_min = 1, -- lava entrancePortal = { BZ["Dragonblight"], 60.00, 57.00 }, } zones[BZ["Ulduar"]] = { low = 80, high = 80, continent = Northrend, paths = BZ["The Storm Peaks"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["The Storm Peaks"], 41.56, 17.76 }, fishing_min = 550, } zones[BZ["Trial of the Crusader"]] = { low = 80, high = 80, continent = Northrend, paths = BZ["Icecrown"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["Icecrown"], 75.07, 21.80 }, } zones[BZ["Icecrown Citadel"]] = { low = 80, high = 80, continent = Northrend, paths = BZ["Icecrown"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["Icecrown"], 53.86, 87.27 }, } zones[BZ["Vault of Archavon"]] = { low = 80, high = 80, continent = Northrend, paths = BZ["Wintergrasp"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["Wintergrasp"], 50, 11.2 }, } zones[BZ["The Ruby Sanctum"]] = { low = 80, high = 80, continent = Northrend, paths = BZ["Dragonblight"], groupSize = 10, altGroupSize = 25, type = "Instance", fishing_min = 650, entrancePortal = { BZ["Dragonblight"], 61.00, 53.00 }, } zones[BZ["Firelands"]] = { low = 85, high = 85, continent = Kalimdor, paths = BZ["Mount Hyjal"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["Mount Hyjal"], 47.3, 78.3 }, } zones[BZ["Throne of the Four Winds"]] = { low = 85, high = 85, continent = Kalimdor, paths = BZ["Uldum"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["Uldum"], 38.26, 80.66 }, } zones[BZ["Blackwing Descent"]] = { low = 85, high = 85, continent = Eastern_Kingdoms, paths = { [BZ["Burning Steppes"]] = true, [BZ["Blackrock Mountain"]] = true, [BZ["Blackrock Spire"]] = true, }, groupSize = 10, altGroupSize = 25, type = "Instance", complex = BZ["Blackrock Mountain"], entrancePortal = { BZ["Burning Steppes"], 26.1, 24.6 }, } zones[BZ["The Bastion of Twilight"]] = { low = 85, high = 85, continent = Eastern_Kingdoms, paths = BZ["Twilight Highlands"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["Twilight Highlands"], 33.8, 78.2 }, } zones[BZ["Dragon Soul"]] = { low = 85, high = 85, continent = Kalimdor, paths = BZ["Caverns of Time"], groupSize = 10, altGroupSize = 25, type = "Instance", complex = BZ["Caverns of Time"], entrancePortal = { BZ["Caverns of Time"], 60.0, 21.1 }, } zones[BZ["Mogu'shan Vaults"]] = { low = 90, high = 90, continent = Pandaria, paths = BZ["Kun-Lai Summit"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["Kun-Lai Summit"], 59.1, 39.8 }, } zones[BZ["Heart of Fear"]] = { low = 90, high = 90, continent = Pandaria, paths = BZ["Dread Wastes"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["Dread Wastes"], 39.0, 35.0 }, } zones[BZ["Terrace of Endless Spring"]] = { low = 90, high = 90, continent = Pandaria, paths = BZ["The Veiled Stair"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["The Veiled Stair"], 47.9, 60.8 }, } zones[BZ["Throne of Thunder"]] = { low = 90, high = 90, continent = Pandaria, paths = BZ["Isle of Thunder"], groupSize = 10, altGroupSize = 25, type = "Instance", entrancePortal = { BZ["The Veiled Stair"], 63.5, 32.2 }, } zones[BZ["Siege of Orgrimmar"]] = { low = 90, high = 90, continent = Pandaria, paths = BZ["Vale of Eternal Blossoms"], groupMinSize = 10, groupMaxSize = 30, type = "Instance", entrancePortal = { BZ["Vale of Eternal Blossoms"], 74.0, 42.2 }, } zones[BZ["Blackrock Foundry"]] = { low = 100, high = 100, continent = Draenor, paths = BZ["Gorgrond"], groupMinSize = 10, groupMaxSize = 30, type = "Instance", entrancePortal = { BZ["Gorgrond"], 51.5, 27.4 }, } zones[BZ["Highmaul"]] = { low = 100, high = 100, continent = Draenor, paths = BZ["Nagrand"].." ("..BZ["Draenor"]..")", groupMinSize = 10, groupMaxSize = 30, type = "Instance", entrancePortal = { BZ["Nagrand"].." ("..BZ["Draenor"]..")", 34, 38 }, } zones[BZ["Hellfire Citadel"].." ("..BZ["Draenor"]..")"] = { low = 100, high = 100, continent = Draenor, paths = BZ["Tanaan Jungle"], groupMinSize = 10, groupMaxSize = 30, type = "Instance", entrancePortal = { BZ["Tanaan Jungle"], 45, 53 }, } zones[BZ["The Emerald Nightmare"]] = { low = 110, high = 110, continent = Broken_Isles, paths = BZ["Val'sharah"], groupMinSize = 10, groupMaxSize = 30, type = "Instance", entrancePortal = { BZ["Val'sharah"], 57.1, 39.9 }, } zones[BZ["The Nighthold"]] = { low = 110, high = 110, continent = Broken_Isles, paths = BZ["Suramar"], groupMinSize = 10, groupMaxSize = 30, type = "Instance", entrancePortal = { BZ["Suramar"], 43, 62 }, } zones[BZ["Antorus, the Burning Throne"]] = { low = 110, high = 110, continent = Argus, paths = BZ["Antoran Wastes"], groupMinSize = 10, groupMaxSize = 30, type = "Instance", --entrancePortal = { BZ["Antoran Wastes"], 0, 0 }, TODO } -- Battlegrounds -- zones[BZ["Arathi Basin"]] = { low = 10, high = MAX_PLAYER_LEVEL, continent = Eastern_Kingdoms, paths = BZ["Arathi Highlands"], groupSize = 15, type = "Battleground", texture = "ArathiBasin", } zones[BZ["Warsong Gulch"]] = { low = 10, high = MAX_PLAYER_LEVEL, continent = Kalimdor, paths = isHorde and BZ["Northern Barrens"] or BZ["Ashenvale"], groupSize = 10, type = "Battleground", texture = "WarsongGulch", } zones[BZ["Eye of the Storm"]] = { low = 35, high = MAX_PLAYER_LEVEL, continent = Outland, groupSize = 15, type = "Battleground", texture = "NetherstormArena", } zones[BZ["Alterac Valley"]] = { low = 45, high = MAX_PLAYER_LEVEL, continent = Eastern_Kingdoms, paths = BZ["Hillsbrad Foothills"], groupSize = 40, type = "Battleground", texture = "AlteracValley", } zones[BZ["Strand of the Ancients"]] = { low = 65, high = MAX_PLAYER_LEVEL, continent = Northrend, groupSize = 15, type = "Battleground", texture = "StrandoftheAncients", } zones[BZ["Isle of Conquest"]] = { low = 75, high = MAX_PLAYER_LEVEL, continent = Northrend, groupSize = 40, type = "Battleground", texture = "IsleofConquest", } zones[BZ["The Battle for Gilneas"]] = { low = 85, high = MAX_PLAYER_LEVEL, continent = Eastern_Kingdoms, groupSize = 10, type = "Battleground", texture = "TheBattleforGilneas", } zones[BZ["Twin Peaks"]] = { low = 85, high = MAX_PLAYER_LEVEL, continent = Eastern_Kingdoms, paths = BZ["Twilight Highlands"], groupSize = 10, type = "Battleground", texture = "TwinPeaks", -- TODO: verify } zones[BZ["Deepwind Gorge"]] = { low = 90, high = MAX_PLAYER_LEVEL, continent = Pandaria, paths = BZ["Valley of the Four Winds"], groupSize = 15, type = "Battleground", texture = "DeepwindGorge", -- TODO: verify } -- Arenas -- zones[BZ["Blade's Edge Arena"]] = { low = 70, high = 70, continent = Outland, type = "Arena", } zones[BZ["Nagrand Arena"]] = { low = 70, high = 70, continent = Outland, type = "Arena", } zones[BZ["Ruins of Lordaeron"]] = { low = 70, high = 70, continent = Kalimdor, type = "Arena", } zones[BZ["Dalaran Arena"]] = { low = 80, high = 80, continent = Northrend, type = "Arena", } zones[BZ["The Ring of Valor"]] = { low = 80, high = 80, continent = Kalimdor, type = "Arena", } zones[BZ["The Tiger's Peak"]] = { low = 90, high = 90, continent = Pandaria, type = "Arena", } -- Complexes -- zones[BZ["Dire Maul"]] = { low = 36, high = 60, continent = Kalimdor, instances = { [BZ["Dire Maul - East"]] = true, [BZ["Dire Maul - North"]] = true, [BZ["Dire Maul - West"]] = true, }, paths = { [BZ["Feralas"]] = true, [BZ["Dire Maul - East"]] = true, [BZ["Dire Maul - North"]] = true, [BZ["Dire Maul - West"]] = true, }, type = "Complex", } zones[BZ["Blackrock Mountain"]] = { low = 47, high = 100, continent = Eastern_Kingdoms, instances = { [BZ["Blackrock Depths"]] = true, [BZ["Blackrock Caverns"]] = true, [BZ["Blackwing Lair"]] = true, [BZ["Blackwing Descent"]] = true, [BZ["Molten Core"]] = true, [BZ["Blackrock Spire"]] = true, [BZ["Upper Blackrock Spire"]] = true, }, paths = { [BZ["Burning Steppes"]] = true, [BZ["Searing Gorge"]] = true, [BZ["Blackwing Lair"]] = true, [BZ["Blackwing Descent"]] = true, [BZ["Molten Core"]] = true, [BZ["Blackrock Depths"]] = true, [BZ["Blackrock Caverns"]] = true, [BZ["Blackrock Spire"]] = true, [BZ["Upper Blackrock Spire"]] = true, }, type = "Complex", fishing_min = 1, -- lava } zones[BZ["Hellfire Citadel"]] = { low = 58, high = 80, continent = Outland, instances = { [BZ["The Blood Furnace"]] = true, [BZ["Hellfire Ramparts"]] = true, [BZ["Magtheridon's Lair"]] = true, [BZ["The Shattered Halls"]] = true, }, paths = { [BZ["Hellfire Peninsula"]] = true, [BZ["The Blood Furnace"]] = true, [BZ["Hellfire Ramparts"]] = true, [BZ["Magtheridon's Lair"]] = true, [BZ["The Shattered Halls"]] = true, }, type = "Complex", } zones[BZ["Coldarra"]] = { low = 59, high = 80, continent = Northrend, paths = { [BZ["Borean Tundra"]] = true, [BZ["The Nexus"]] = true, [BZ["The Oculus"]] = true, [BZ["The Eye of Eternity"]] = true, }, instances = { [BZ["The Nexus"]] = true, [BZ["The Oculus"]] = true, [BZ["The Eye of Eternity"]] = true, }, type = "Complex", } zones[BZ["Coilfang Reservoir"]] = { low = 60, high = 80, continent = Outland, instances = { [BZ["The Underbog"]] = true, [BZ["Serpentshrine Cavern"]] = true, [BZ["The Steamvault"]] = true, [BZ["The Slave Pens"]] = true, }, paths = { [BZ["Zangarmarsh"]] = true, [BZ["The Underbog"]] = true, [BZ["Serpentshrine Cavern"]] = true, [BZ["The Steamvault"]] = true, [BZ["The Slave Pens"]] = true, }, fishing_min = 400, type = "Complex", } zones[BZ["Ahn'Qiraj: The Fallen Kingdom"]] = { low = 60, high = 63, continent = Kalimdor, paths = { [BZ["Silithus"]] = true, }, instances = { [BZ["Ahn'Qiraj"]] = true, [BZ["Ruins of Ahn'Qiraj"]] = true, }, type = "Complex", battlepet_low = 16, battlepet_high = 17, } zones[BZ["Ring of Observance"]] = { low = 62, high = 80, continent = Outland, instances = { [BZ["Mana-Tombs"]] = true, [BZ["Sethekk Halls"]] = true, [BZ["Shadow Labyrinth"]] = true, [BZ["Auchenai Crypts"]] = true, }, paths = { [BZ["Terokkar Forest"]] = true, [BZ["Mana-Tombs"]] = true, [BZ["Sethekk Halls"]] = true, [BZ["Shadow Labyrinth"]] = true, [BZ["Auchenai Crypts"]] = true, }, type = "Complex", } zones[BZ["Caverns of Time"]] = { low = 64, high = 90, continent = Kalimdor, instances = { [BZ["Old Hillsbrad Foothills"]] = true, [BZ["The Black Morass"]] = true, [BZ["Hyjal Summit"]] = true, [BZ["The Culling of Stratholme"]] = true, [BZ["End Time"]] = true, [BZ["Hour of Twilight"]] = true, [BZ["Well of Eternity"]] = true, [BZ["Dragon Soul"]] = true, }, paths = { [BZ["Tanaris"]] = true, [BZ["Old Hillsbrad Foothills"]] = true, [BZ["The Black Morass"]] = true, [BZ["Hyjal Summit"]] = true, [BZ["The Culling of Stratholme"]] = true, }, type = "Complex", } -- Had to remove the complex 'Tempest Keep' because of the renamed 'The Eye' instance now has same name (Legion) -- zones[BZ["Tempest Keep"]] = { -- low = 67, -- high = 75, -- continent = Outland, -- instances = { -- [BZ["The Mechanar"]] = true, -- [BZ["Tempest Keep"]] = true, -- previously "The Eye" -- [BZ["The Botanica"]] = true, -- [BZ["The Arcatraz"]] = true, -- }, -- paths = { -- [BZ["Netherstorm"]] = true, -- [BZ["The Mechanar"]] = true, -- [BZ["Tempest Keep"]] = true, -- [BZ["The Botanica"]] = true, -- [BZ["The Arcatraz"]] = true, -- }, -- type = "Complex", -- } -------------------------------------------------------------------------------------------------------- -- CORE -- -------------------------------------------------------------------------------------------------------- trace("Tourist: Initializing continents...") local continentNames = Tourist:GetMapContinentsAlt() local counter = 0 for continentMapID, continentName in pairs(continentNames) do --trace("Processing Continent "..tostring(continentMapID)..": "..continentName.."...") if zones[continentName] then -- Set MapID zones[continentName].zoneMapID = continentMapID -- Get map art ID zones[continentName].texture = C_Map.GetMapArtID(continentMapID) -- Get map size in yards local cWidth = HBD:GetZoneSize(continentMapID) if not cWidth then trace("|r|cffff4422! -- Tourist:|r No size data for "..tostring(continentName)) end if cWidth == 0 then trace("|r|cffff4422! -- Tourist:|r Size is zero for "..tostring(continentName)) end zones[continentName].yards = cWidth or 0 --trace("Tourist: Continent size in yards for "..tostring(continentName).." ("..tostring(continentMapID).."): "..tostring(round(zones[continentName].yards, 2))) else -- Unknown Continent trace("|r|cffff4422! -- Tourist:|r TODO: Add Continent '"..tostring(continentName).."' ("..tostring(continentMapID)..")") end counter = counter + 1 end trace("Tourist: Processed "..tostring(counter).." continents") trace("Tourist: Initializing zones...") local doneZones = {} local mapZones = {} local uniqueZoneName local minLvl, maxLvl, minPetLvl, maxPetLvl local counter2 = 0 counter = 0 for continentMapID, continentName in pairs(continentNames) do mapZones = Tourist:GetMapZonesAlt(continentMapID) counter = 0 for zoneMapID, zoneName in pairs(mapZones) do -- Add mapIDs to lookup table zoneMapIDtoContinentMapID[zoneMapID] = continentMapID -- Check for duplicate on continent name + zone name if not doneZones[continentName.."."..zoneName] then uniqueZoneName = Tourist:GetUniqueZoneNameForLookup(zoneName, continentMapID) if zones[uniqueZoneName] then -- Set zone mapID zones[uniqueZoneName].zoneMapID = zoneMapID -- Get zone texture ID zones[uniqueZoneName].texture = C_Map.GetMapArtID(continentMapID) -- Get zone player and battle pet levels minLvl, maxLvl, minPetLvl, maxPetLvl = C_Map.GetMapLevels(zoneMapID) if minLvL and minLvL > 0 then zones[uniqueZoneName].low = minLvl end if maxLvl and maxLvl > 0 then zones[uniqueZoneName].high = maxLvl end if minPetLvl and minPetLvl > 0 then zones[uniqueZoneName].battlepet_low = minPetLvl end if maxPetLvl and maxPetLvl > 0 then zones[uniqueZoneName].battlepet_high = maxPetLvl end -- Get map size local zWidth = HBD:GetZoneSize(zoneMapID) if not zWidth then trace("|r|cffff4422! -- Tourist:|r No size data for "..tostring(zoneName).." ("..tostring(continentName)..")" ) end if zWidth == 0 then trace("|r|cffff4422! -- Tourist:|r Size is zero for "..tostring(zoneName).." ("..tostring(continentName)..")" ) end if zWidth ~= 0 or not zones[uniqueZoneName].yards then -- Make sure the size is always set (even if it's 0) but don't overwrite any hardcoded values if the size is 0 zones[uniqueZoneName].yards = zWidth end else trace("|r|cffff4422! -- Tourist:|r TODO: Add zone "..tostring(zoneName).." (to "..tostring(continentName)..")" ) end doneZones[continentName.."."..zoneName] = true else trace("|r|cffff4422! -- Tourist:|r Duplicate zone: "..tostring(zoneName).." [ID "..tostring(zoneMapID).."] (at "..tostring(continentName)..")" ) end counter = counter + 1 end -- zone loop trace( "Tourist: Processed "..tostring(counter).." zones for "..continentName.." (ID = "..tostring(continentMapID)..")" ) counter2 = counter2 + counter end -- continent loop trace("Tourist: Processed "..tostring(counter2).." zones") trace("Tourist: Filling lookup tables...") -- Fill the lookup tables for k,v in pairs(zones) do lows[k] = v.low or 0 highs[k] = v.high or 0 continents[k] = v.continent or UNKNOWN instances[k] = v.instances paths[k] = v.paths or false types[k] = v.type or "Zone" groupSizes[k] = v.groupSize groupMinSizes[k] = v.groupMinSize groupMaxSizes[k] = v.groupMaxSize groupAltSizes[k] = v.altGroupSize factions[k] = v.faction yardWidths[k] = v.yards yardHeights[k] = v.yards and v.yards * 2/3 or nil fishing[k] = v.fishing_min battlepet_lows[k] = v.battlepet_low battlepet_highs[k] = v.battlepet_high textures[k] = v.texture complexOfInstance[k] = v.complex zoneComplexes[k] = v.complexes if v.texture then textures_rev[v.texture] = k end zoneMapIDs[k] = v.zoneMapID if v.entrancePortal then entrancePortals_zone[k] = v.entrancePortal[1] entrancePortals_x[k] = v.entrancePortal[2] entrancePortals_y[k] = v.entrancePortal[3] end end zones = nil trace("Tourist: Initialized.") PLAYER_LEVEL_UP(Tourist) end
local mod = get_mod("show_potion_type") --[[ Show Potion Type, by Grundlid. --]] mod:hook(_G, "Localize", function (func, id, ...) if string.find(id, "DONT_LOCALIZE_") == 1 then return string.sub(id, 15) end return func(id, ...) end) mod:hook(GenericUnitInteractorExtension, "interaction_description", function (func, self, fail_reason, interaction_type) local interaction_type = interaction_type or self.interaction_context.interaction_type local interaction_template = InteractionDefinitions[interaction_type] local hud_description, extra_param = interaction_template.client.hud_description(self.interaction_context.interactable_unit, interaction_template.config, fail_reason, self.unit) local hud_description_no_failure, extra_param_no_failure = interaction_template.client.hud_description(self.interaction_context.interactable_unit, interaction_template.config, nil, self.unit) if hud_description == nil then return "<ERROR: UNSPECIFIED INTERACTION HUD DESCRIPTION>" end if hud_description and hud_description_no_failure and hud_description == "grimoire_equipped" and string.find(hud_description_no_failure, "potion") ~= nil then return "DONT_LOCALIZE_"..Localize("grimoire_equipped").." "..Localize(hud_description_no_failure) end return func(self, fail_reason, interaction_type) end)
local writeProfile = function (profile) local hfile = love.filesystem.newFile("profile.lua", "w") if hfile == nil then return end hfile:write(profile) hfile:close() end local findProfile = function () return love.filesystem.isFile("profile.lua") end local recoverProfile = function () local contents, size = love.filesystem.read("profile.lua") return contents end function build_statemachine() Menu = require('game/menu') menu = Menu() state_machine = FSM() build_game() local save if (findProfile() == true) then save = recoverProfile() game.state = JSON.decode(save) end -- fade in from white state_machine.addState({ name = "start", init = function () game.wind_timer = 0 -- we have to load the save here to show the board on start save = JSON.encode(game.state) game.state.player.enabled = false love.soundman.run('wind') love.soundman.fadeOut(game.wind_max) end, update = function (dt) game.wind_timer = game.wind_timer + dt end, draw = function () draw_game() -- draw a curtain of white over the world draw_curtain() end }) -- the menu/title screen state state_machine.addState({ name = "title", init = function () -- we have to load the save again here whenever we've transitioned back -- to the title. TODO this is happening because we have an "init" -- function for each state, but no exit function. These should just -- be called "enter" and "exit", non? save = JSON.encode(game.state) game.state.player.enabled = false end, draw = function () draw_game() end, keypressed = function (key) if (key == "escape") then -- TODO transition to an "saving" state -- draw a black screen love.graphics.setColor(game.colors.black) love.graphics.rectangle("fill", 0, 0, love.viewport.getWidth(), love.viewport.getHeight()) love.graphics.present() writeProfile(save) -- could pause for long enough to flash "saving" for 3 seconds love.event.quit() elseif(key == 'f11') then love.viewport.setFullscreen() love.viewport.setupScreen() end if key == "return" or key == " " then state_machine.set("setup") end end }) state_machine.addState({ name = "setup", init = function () if (game.state.over == true) then build_game() end -- setup the camera if (game.camera.y < game.state.shift) then move_camera(game.camera, 0, game.state.shift) end end, draw = function () draw_game() end, update = function (dt) update_camera(game.camera) game.depth = game.depth_rate*game.camera.y end }) state_machine.addState({ name = "unwind", init = function () -- rewind the camera if (game.camera.y > 0) then move_camera(game.camera, 0, 0) end end, draw = function () draw_game() end, update = function (dt) update_camera(game.camera) game.depth = game.depth_rate*game.camera.y end }) state_machine.addState({ name = "play", init = function () game.state.player.enabled = true end, draw = function () draw_game() draw_curtain() end, update = function (dt) -- pull back the curtain, if there is one if game.curtain.alpha > 0 then game.curtain.alpha = math.max(0, game.curtain.alpha - game.curtain.fade_rate * dt) end update_game(dt) end, keypressed = love.keypressed, inputpressed = function (state) if game.state.player.input[state] ~= nil then game.state.player.has_input = true table.insert(game.state.player.input[state], true) end end }) state_machine.addState({ name = "lose", init = function () end, draw = function () draw_game() end }) state_machine.addState({ name = "ending", init = function () game.state.player.enabled = true game.curtain.color = { 0, 0, 0 } game.curtain.fade_rate = game.curtain.fade_rate / 20 love.soundman.fadeIn('wind', game.wind_max) end, draw = function () draw_game() draw_curtain() end, update = function (dt) update_game(dt) if game.curtain.alpha < 255 then game.curtain.alpha = math.min(255, game.curtain.alpha + game.curtain.fade_rate * dt) end end, inputpressed = function (state) if game.state.player.input[state] ~= nil then game.state.player.has_input = true table.insert(game.state.player.input[state], true) end end }) state_machine.addState({ name = "end", init = function () build_game() save = JSON.encode(game.state) end, draw = function () game.curtain.color = { 0, 0, 0 } game.curtain.alpha = 255 draw_curtain() draw_credits() end, keypressed = function (key) if (key == "escape") then -- TODO transition to an "saving" state -- draw a black screen love.graphics.setColor(game.colors.black) love.graphics.rectangle("fill", 0, 0, love.viewport.getWidth(), love.viewport.getHeight()) love.graphics.present() writeProfile(save) -- could pause for long enough to flash "saving" for 3 seconds love.event.quit() elseif(key == 'f11') then love.viewport.setFullscreen() love.viewport.setupScreen() end end }) -- start the game when the player chooses a menu option state_machine.addTransition({ from = "start", to = "play", condition = function () return game.wind_timer > game.wind_max / 3 end }) -- start the game when the player chooses a menu option state_machine.addTransition({ from = "title", to = "setup", condition = function () return state_machine.isSet("setup") end }) state_machine.addTransition({ from = "setup", to = "play", condition = function () return game.camera.y == game.state.shift end }) state_machine.addTransition({ from = "play", to = "lose", condition = function () return game.state.over == true end }) state_machine.addTransition({ from = "lose", to = "unwind", condition = function () return true end }) -- return to the menu screen if any player presses escape state_machine.addTransition({ from = "play", to = "unwind", condition = function () return state_machine.isSet("escape") end }) -- return to the menu screen if any player presses escape state_machine.addTransition({ from = "unwind", to = "title", condition = function () return game.camera.y == 0 end }) state_machine.addTransition({ from = "play", to = "ending", condition = function () return game.depth >= game.max_depth end }) state_machine.addTransition({ from = "ending", to = "end", condition = function () return game.curtain.alpha == 255 end }) love.update = state_machine.update love.keypressed = state_machine.keypressed love.keyreleased = state_machine.keyreleased love.inputpressed = state_machine.inputpressed love.mousepressed = state_machine.mousepressed love.mousereleased = state_machine.mousereleased love.textinput = state_machine.textinput love.draw = state_machine.draw state_machine.start() end function configure_game () game = {} game.title = "" game.subtitle = "" game.prompt = "" game.infinity = 100 game.colors = { white = { 255, 255, 255 }, pale = { 200, 200, 200 }, black = { 255, 255, 255, 29 }, -- black is with with low alpha so that we can fade into it damage = { 29, 29, 29 } } game.curtain = {} game.curtain.alpha = 255 game.curtain.color = game.colors.white game.curtain.fade_rate = 50 -- current color palette -- http://paletton.com/#uid=3000G0kotpMeNzijUsDrxl0vTg5 game.colors[RED] = { 205, 48, 48 } game.colors[GREEN] = { 101, 123, 0 } game.colors[BLUE] = { 37, 94, 131 } game.colors[GREY] = { 200, 200, 200 } game.dt = 0 game.input_timer = 0 game.update_timer = 0 game.did_step_block = false game.scale = 32 game.height = 10 game.width = 5 game.gravity = 1 game.match_target = 3 game.rate = 4 game.step = 0.1 * game.rate game.input_rate = 8 game.block_max_hp = 3 game.depth = 0 -- how far down the camera has gone in pixels game.depth_rate = 4*game.scale -- in chunks game.max_depth = 255 -- depth is applied as an alpha -- defaults for the board game.board_defaults = { x = 2, y = 0, width = game.width, height = game.height, color = game.colors.black, border_alpha = 200 } -- animation times game.animations = {} game.animations.exploding = 8 game.animations.crumbling = 8 game.animations.hardening = 8 -- while not really an animation, this -- is useful for testing game.animations.block_fall = 3 -- visual choices -- all_block_get_damage makes the game easier: blocks are pre-damaged -- so when they turn grey they brake more easily... still not sure -- which I prefer. Design suggestion by Chris Hamilton! ^o^// game.all_block_get_damage = false game.mote_ratio = 9 game.tiny_triangle_ratio = 3 game.tiny_triangle = false game.flicker = false game.block_border = 4 game.block_gap_width = 2 game.block_damage_ratio = 2 game.block_dim = 1 game.wind_timer = 0 game.wind_max = 20 game.colors.background = game.colors.white game.dark_colors = { } game.dark_colors[RED] = { 55, 0, 0 } game.dark_colors[GREEN] = { 0, 55, 0 } game.dark_colors[BLUE] = { 0, 0, 55 } game.dark_colors[GREY] = { 77, 77, 77 } game.camera = build_camera(); end function build_game_state () local state = {} state.motes = {} state.shift = 0 -- the game starts with three extra rows state.stable = true state.ending = false state.over = false state.block = nil state.next_block = nil state.player = {} state.player.has_input = false state.player.enabled = true state.player.input = { up = {}, down = {}, left = {}, right = {} } state.board = build_board() build_board_row(state.board, game.height + 1) build_board_row(state.board, game.height + 2) build_board_row(state.board, game.height + 3) state.shadows = build_board({ default = 0.0 }) build_board_row(state.shadows, game.height + 1, { default = 0.0 }) build_board_row(state.shadows, game.height + 2, { default = 0.0 }) build_board_row(state.shadows, game.height + 3, { default = 0.0 }) return state end function build_game () configure_game() game.state = build_game_state() end function love.load() EMPTY = 'x' RED = 1 GREEN = 2 BLUE = 3 GREY = 8 require('game/spec') require('libs/fsm') require('game/controls') require('game/sounds') require('game/update') require('game/draw') require('game/animation') require('game/player') require('game/camera') require('game/board') require('game/block') require('game/mote') -- global variables for integration with dp menus W_HEIGHT = love.viewport.getHeight() SCORE_FONT = love.graphics.newFont("assets/Audiowide-Regular.ttf", 14) SPACE_FONT = love.graphics.newFont("assets/Audiowide-Regular.ttf", 64) EPSILON = 0.0001 -- run_tests() -- TODO move_block in player is untested -- should have a test that moves a block -- and one that moves a block against obstructions build_statemachine() end
SCREEN_WIDTH, SCREEN_HEIGHT = guiGetScreenSize() DEBUG = true DxElements = {} DxHostedElements = {} DxInfo = { draggingElement = false } DxTypes = { "DxElement", "DxBlank", "DxCheckbox", "DxCircle", "DxImage", "DxInput", "DxRadioButton", "DxSlider", "DxText", "DxWindow", "DxButton" } DxMethods = {} DxProperties = { ["allow_drag_x"] = false, ["allow_drag_y"] = false, ["force_in_bounds"] = true, ["drag_preview"] = false, ["child_dragging"] = true, ["ignore_window_bounds"] = false, ["obstruct"] = true, ["hover_enabled"] = true, ["click_ordering"] = false, ["draw_bounds"] = false } RESOURCE_NAME = false local function init() RESOURCE_NAME = getResourceName(getThisResource()) dxInitializeExporter() end addEventHandler("onClientResourceStart", resourceRoot, init)
--[[ Tower Defense AI These are the valid orders, in case you want to use them (easier here than to find them in the C code): DOTA_UNIT_ORDER_NONE DOTA_UNIT_ORDER_MOVE_TO_POSITION DOTA_UNIT_ORDER_MOVE_TO_TARGET DOTA_UNIT_ORDER_ATTACK_MOVE DOTA_UNIT_ORDER_ATTACK_TARGET DOTA_UNIT_ORDER_CAST_POSITION DOTA_UNIT_ORDER_CAST_TARGET DOTA_UNIT_ORDER_CAST_TARGET_TREE DOTA_UNIT_ORDER_CAST_NO_TARGET DOTA_UNIT_ORDER_CAST_TOGGLE DOTA_UNIT_ORDER_HOLD_POSITION DOTA_UNIT_ORDER_TRAIN_ABILITY DOTA_UNIT_ORDER_DROP_ITEM DOTA_UNIT_ORDER_GIVE_ITEM DOTA_UNIT_ORDER_PICKUP_ITEM DOTA_UNIT_ORDER_PICKUP_RUNE DOTA_UNIT_ORDER_PURCHASE_ITEM DOTA_UNIT_ORDER_SELL_ITEM DOTA_UNIT_ORDER_DISASSEMBLE_ITEM DOTA_UNIT_ORDER_MOVE_ITEM DOTA_UNIT_ORDER_CAST_TOGGLE_AUTO DOTA_UNIT_ORDER_STOP DOTA_UNIT_ORDER_TAUNT DOTA_UNIT_ORDER_BUYBACK DOTA_UNIT_ORDER_GLYPH DOTA_UNIT_ORDER_EJECT_ITEM_FROM_STASH DOTA_UNIT_ORDER_CAST_RUNE ]] AICore = {} function AICore:RandomEnemyHeroInRange(entity, range) local enemies = FindUnitsInRadius( DOTA_TEAM_BADGUYS, entity:GetOrigin(), nil, range, DOTA_UNIT_TARGET_TEAM_ENEMY, DOTA_UNIT_TARGET_HERO, 0, 0, false ) if #enemies > 0 then local index = RandomInt(1, #enemies) return enemies[index] else return nil end end function AICore:WeakestEnemyHeroInRange(entity, range) local enemies = FindUnitsInRadius( DOTA_TEAM_BADGUYS, entity:GetOrigin(), nil, range, DOTA_UNIT_TARGET_TEAM_ENEMY, DOTA_UNIT_TARGET_HERO, 0, 0, false ) local minHP = nil local target = nil for _, enemy in pairs(enemies) do local distanceToEnemy = (entity:GetOrigin() - enemy:GetOrigin()):Length() local HP = enemy:GetHealth() if enemy:IsAlive() and (minHP == nil or HP < minHP) and distanceToEnemy < range then minHP = HP target = enemy end end return target end function AICore:CreateBehaviorSystem(behaviors) local BehaviorSystem = {} BehaviorSystem.possibleBehaviors = behaviors BehaviorSystem.thinkDuration = .1 -- gotta think fast BehaviorSystem.repeatedlyIssueOrders = false -- if you're paranoid about dropped orders, leave this true BehaviorSystem.currentBehavior = { endTime = 0, order = {OrderType = DOTA_UNIT_ORDER_NONE} } function BehaviorSystem:Think() if GameRules:GetGameTime() >= self.currentBehavior.endTime then local newBehavior = self:ChooseNextBehavior() if newBehavior == nil then -- Do nothing here... this covers possible problems with ChooseNextBehavior elseif newBehavior == self.currentBehavior then self.currentBehavior:Continue() else if self.currentBehavior.End then self.currentBehavior:End() end self.currentBehavior = newBehavior self.currentBehavior:Begin() end end if self.currentBehavior.order and self.currentBehavior.order.OrderType ~= DOTA_UNIT_ORDER_NONE then if self.repeatedlyIssueOrders or self.previousOrderType ~= self.currentBehavior.order.OrderType or self.previousOrderTarget ~= self.currentBehavior.order.TargetIndex or self.previousOrderAbilityId ~= self.currentBehavior.order.AbilityIndex or self.previousOrderPosition ~= self.currentBehavior.order.Position then ExecuteOrderFromTable(self.currentBehavior.order) self.previousOrderType = self.currentBehavior.order.OrderType self.previousOrderTarget = self.currentBehavior.order.TargetIndex self.previousOrderAbilityId = self.currentBehavior.order.AbilityIndex self.previousOrderPosition = self.currentBehavior.order.Position end end if self.currentBehavior.Think then self.currentBehavior:Think(self.thinkDuration) end return self.thinkDuration end function BehaviorSystem:ChooseNextBehavior() local result = nil local bestDesire = nil for _, behavior in pairs(self.possibleBehaviors) do local thisDesire = behavior:Evaluate() if bestDesire == nil or thisDesire > bestDesire then result = behavior bestDesire = thisDesire end end return result end function BehaviorSystem:Deactivate() if self.currentBehavior.End then self.currentBehavior:End() end end return BehaviorSystem end
local Maph = require('maph') local floor, min, max = math.floor, math.min, math.max local Map = {} Map.__index = Map local function new_array(size, value) local arr = {} for i = 1, size do arr[i] = value end return arr end --- Returns a new `Map` with the specified size. function Map.new(assets, width, height) width = width or 1 height = height or 1 return setmetatable({ tiles = new_array(width * height, assets.items.grass), walls = new_array(width * height, nil), mobs = {}, --- Contains mappings from indices to mobs. width = width, height = height }, Map) end --- Returns the tile at the specified indices. --- Returns `nil` if the indices are out of map bounds. function Map:getTile(x, y) if self:isInbounds(x, y) then return self.tiles[self:idxToOne(x, y)] end return nil end --- Sets the tile at the specified indices. --- Does nothing if the indices are out of bounds. function Map:setTile(tile, x, y) if self:isInbounds(x, y) then self.tiles[self:idxToOne(x, y)] = tile end end --- Returns the wall at the specified indices. --- Returns `nil` if the indices are out of map bounds or if there's no wall. function Map:getWall(x, y) if self:isInbounds(x, y) then return self.walls[self:idxToOne(x, y)] end return nil end --- Sets the wall at the specified indices. Call `clear_wall` to remove a wall. --- Does nothing if the indices are out of bounds. function Map:setWall(wall, x, y) if self:isInbounds(x, y) then self.walls[self:idxToOne(x, y)] = wall end end --- Removes the wall from the specified indices. function Map:clearWall(x, y) if self:isInbounds(x, y) then self.walls[self:idxToOne(x, y)] = nil end end --- Returns `true` if there's a wall at the specified index. function Map:isWall(x, y) return self:getWall(x, y) ~= nil end --- Returns the mob at the specified indices. --- Returns `nil` if the indices are out of map bounds or if there's no mob. --- The returned mob's `is_alive` field may be `false`. function Map:getMob(x, y) if self:isInbounds(x, y) then return self.mobs[self:idxToOne(x, y)] end return nil end --- Sets the mob at the specified indices. --- Does nothing if the indices are out of bounds. function Map:setMob(mob, x, y) if self:isInbounds(x, y) then self.mobs[self:idxToOne(x, y)] = mob end end --- Clears the mob cells then sets the cells to each mob that has the `'cell'` tag. --- Sets the mobs' `cellx` and `celly` to their respective positions indices. function Map:resetMobCells(world) for k, mob in pairs(self.mobs) do self.mobs[k] = nil end for mob in pairs(world:tagged('cell')) do mob.cellx, mob.celly = self:posToIdx(mob.x, mob.y) if mob.cellx and mob.celly then local idx = self:idxToOne(mob.cellx, mob.celly) self.mobs[idx] = self.mobs[idx] or mob end end end --- Returns `true` if there's a solid cell at the specified index. function Map:isSolid(x, y) local mob = self:getMob(x, y) return self:isWall(x, y) or (mob and mob.is_solid) end --- Returns `true` if there's no cell collisions between the two positions. function Map:isLineClear(x, y, x2, y2) local len = Maph.distance(x, y, x2, y2) local dir_x, dir_y = Maph.normalized(x2 - x, y2 - y) len = floor(len / 16) for i = 0, len do x = x + dir_x * 16 y = y + dir_y * 16 local xx, yy = self:posToIdx(x, y) if not xx or not yy or self:isSolid(xx, yy) then return false end end return true end --- Returns the cell index at the specified position. --- Returns `nil` if the position is out of map bounds. function Map:posToIdx(x, y) x = math.floor(x / 16) + 1 y = math.floor(y / 16) + 1 if self:isInbounds(x, y) then return x, y end return nil end --- Returns true if the specified position is within map bounds. function Map:isPosInbounds(x, y) x = math.floor(x / 16) + 1 y = math.floor(y / 16) + 1 return x >= 1 and x <= self.width and y >= 1 and y <= self.height end --- Returns true if the specified cell index is within map bounds. function Map:isInbounds(x, y) return x >= 1 and x <= self.width and y >= 1 and y <= self.height end --- Returns the one dimensional index of the two dimensional index for accessing the one dimensional array. function Map:idxToOne(x, y) return (x % self.width + 1) + (y - 1) * self.width end function Map:drawTiles(assets, x, y, w, h) local draw = love.graphics.draw local xx, yy = self:posToIdx(x, y) xx = max(xx or 1, 1) yy = max(yy or 1, 1) local ww, hh = self:posToIdx(x + w, y + h) ww = min(ww or self.width, self.width) hh = min(hh or self.height, self.height) for iy = yy, hh do for ix = xx, ww do local tile = self.tiles[self:idxToOne(ix, iy)] draw(tile.sprite, (ix - 1) * 16, (iy - 1) * 16) end end end function Map:drawWalls(assets, x, y, w, h) local draw = love.graphics.draw local xx, yy = self:posToIdx(x, y) xx = max(xx or 1, 1) yy = max(yy or 1, 1) local ww, hh = self:posToIdx(x + w, y + h) ww = min(ww or self.width, self.width) hh = min(hh or self.height, self.height) for iy = yy, hh do for ix = xx, ww do local wall = self.walls[self:idxToOne(ix, iy)] if wall then draw(wall.sprite, (ix - 1) * 16, (iy - 1) * 16) end end end end --- Returns the map's save state. function Map:save() local save = { width = self.width, height = self.height, tiles = {}, walls = {} } for i = 1, (self.width * self.height) do save.tiles[i] = self.tiles[i].id if self.walls[i] then save.walls[i] = self.walls[i].id else save.walls[i] = nil end end return save end --- Returns a new `Map` from the save state. function Map.load(save, assets) local self = Map.new(assets, save.width, save.height) for i = 1, (self.width * self.height) do -- TODO: provide defaults if items don't exist self.tiles[i] = assets.items[save.tiles[i]] if save.walls[i] then self.walls[i] = assets.items[save.walls[i]] else self.walls[i] = nil end end return self end return Map
local lush = require('lush') local colors = { black = "#282c34", black_dark = "#22262e", red = "#e06c75", green = "#98c379", yellow = "#e5c07b", yellow_dark = "#d19a66", blue = "#61afef", magenta = "#c678dd", cyan = "#56b6c2", white = "#c0c0c0", gray = "#4c4f55", comment_gray = "#5c6370", selection_gray = "#3e4451", cursor_gray = "#2c323c" } local red = colors.red local green = colors.green local yellow = colors.yellow local blue = colors.blue local magenta = colors.magenta local cyan = colors.cyan local black = colors.black local white = colors.white local gray = colors.gray local comment_gray = colors.comment_gray local selection_gray = colors.selection_gray local cursor_gray = colors.cursor_gray local black_dark = colors.black_dark local yellow_dark = colors.yellow_dark -- Set the terminal colors vim.g.terminal_color_0 = black vim.g.terminal_color_1 = red vim.g.terminal_color_2 = green vim.g.terminal_color_3 = yellow vim.g.terminal_color_4 = blue vim.g.terminal_color_5 = magenta vim.g.terminal_color_6 = cyan vim.g.terminal_color_7 = gray vim.g.terminal_color_8 = comment_gray vim.g.terminal_color_9 = red vim.g.terminal_color_10 = green vim.g.terminal_color_11 = yellow vim.g.terminal_color_12 = blue vim.g.terminal_color_13 = magenta vim.g.terminal_color_14 = cyan vim.g.terminal_color_15 = white vim.g.terminal_color_background = black vim.g.terminal_color_foreground = white local styles = { bold = "bold", italic = "italic", underline = "underline", bold_italic = "bold italic", bold_underline = "bold underline", italic_underline = "italic underline" } local bold_strings = styles.bold local italic_strings = styles.italic local underline_strings = styles.underline local bold_italic_strings = styles.bold_italic local bold_underline_strings = styles.bold_underline local italic_underline_strings = styles.italic_underline local theme = lush(function() return { Comment { fg = comment_gray, gui = italic_strings }, -- any comment ColorColumn { bg = cursor_gray }, -- used for the columns set with 'colorcolumn' -- Conceal { }, -- placeholder characters substituted for concealed text (see 'conceallevel') Cursor { fg = black, bg = blue }, -- character under the cursor CursorColumn { bg = cursor_gray }, -- Screen-column at the cursor, when 'cursorcolumn' is set. CursorLine { bg = cursor_gray }, -- Screen-line at the cursor, when 'cursorline' is set. Low-priority if foreground (ctermfg OR guifg) is not set. Directory { fg = blue }, -- directory names (and other special names in listings) DiffAdd { bg = green, fg = black }, -- diff mode: Added line |diff.txt| DiffChange { fg = yellow, gui = underline_strings }, -- diff mode: Changed line |diff.txt| DiffDelete { bg = red, fg = black }, -- diff mode: Deleted line |diff.txt| DiffText { bg = yellow, fg = black }, -- diff mode: Changed text within a changed line |diff.txt| EndOfBuffer { fg = black }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. -- TermCursor { }, -- cursor in a focused terminal -- TermCursorNC { }, -- cursor in an unfocused terminal ErrorMsg { fg = red, gui = bold_strings }, -- error messages on the command line VertSplit { fg = comment_gray }, -- the column separating vertically split windows Folded { fg = comment_gray }, -- line used for closed folds -- FoldColumn { }, -- 'foldcolumn' -- SignColumn { }, -- column where |signs| are displayed IncSearch { fg = blue, bg = comment_gray }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" -- Substitute { }, -- |:substitute| replacement text highlighting LineNr { fg = comment_gray }, -- Line number for ":number" and ":#" commands, and when 'number' or 'relativenumber' option is set. CursorLineNr { fg = white }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. MatchParen { fg = blue, bg = comment_gray }, -- The character under the cursor or just before it, if it is a paired bracket, and its match. |pi_paren.txt| -- ModeMsg { }, -- 'showmode' message (e.g., "-- INSERT -- ") -- MsgArea { }, -- Area for messages and cmdline -- MsgSeparator { }, -- Separator for scrolled messages, `msgsep` flag of 'display' -- MoreMsg { }, -- |more-prompt| NonText { fg = white }, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|. Normal { fg = white, bg= black }, -- normal text NormalFloat { bg = black}, -- Normal text in floating windows. FloatBorder { fg = blue }, -- NormalNC { }, -- normal text in non-current windows Pmenu { fg = white, bg = black }, -- Popup menu: normal item. PmenuSel { fg = black, bg = blue }, -- Popup menu: selected item. -- PmenuSbar { }, -- Popup menu: scrollbar. -- PmenuThumb { }, -- Popup menu: Thumb of the scrollbar. Question { fg = white, gui = bold_strings }, -- |hit-enter| prompt and yes/no questions QuickFixLine { fg = black, bg = yellow }, -- Current |quickfix| item in the quickfix window. Combined with |hl-CursorLine| when the cursor is there. Search { fg = black, bg = green }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out. -- SpecialKey { }, -- Unprintable characters: text displayed differently from what it really is. But not 'listchars' whitespace. |hl-Whitespace| SpellBad { gui = underline_strings }, -- Word that is not recognized by the spellchecker. |spell| Combined with the highlighting used otherwise. -- SpellCap { gui = yellow }, -- Word that should start with a capital. |spell| Combined with the highlighting used otherwise. -- SpellLocal { }, -- Word that is recognized by the spellchecker as one that is used in another region. |spell| Combined with the highlighting used otherwise. -- SpellRare { }, -- Word that is recognized by the spellchecker as one that is hardly ever used. |spell| Combined with the highlighting used otherwise. StatusLine { fg = white, bg = black }, -- status line of current window StatusLineNC { }, -- status lines of not-current windows Note: if this is equal to "StatusLine" Vim will use "^^^" in the status line of the current window. TabLine { fg = white, bg = black_dark }, -- tab pages line, not active tab page label TabLineFill { bg = black_dark }, -- tab pages line, where there are no labels TabLineSel { fg = white, bg = black }, -- tab pages line, active tab page label Title { fg = blue, guid = bold_strings }, -- titles for output from ":set all", ":autocmd" etc. Visual { bg = selection_gray, gui = bold_strings }, -- Visual mode selection -- VisualNOS { }, -- Visual mode selection when vim is "Not Owning the Selection". WarningMsg { fg = red }, -- warning messages -- Whitespace { }, -- "nbsp", "space", "tab" and "trail" in 'listchars' WildMenu { fg = black, bg = blue }, -- current match in 'wildmenu' completion Constant { fg = cyan }, -- (preferred) any constant String { fg = green }, -- a string constant: "this is a string" Character { fg = green }, -- a character constant: 'c', '\n' Number { fg = yellow_dark }, -- a number constant: 234, 0xff Boolean { fg = yellow_dark }, -- a boolean constant: TRUE, false Float { fg = yellow_dark }, -- a floating point constant: 2.3e10 Identifier { fg = white }, -- (preferred) any variable name Function { fg = blue }, -- function name (also: methods for classes) Statement { fg = magenta }, -- (preferred) any statement Conditional { fg = magenta }, -- if, then, else, endif, switch, etc. Repeat { fg = magenta }, -- for, do, while, etc. Label { fg = yellow_dark }, -- case, default, etc. Operator { fg = magenta }, -- "sizeof", "+", "*", etc. Keyword { fg = red }, -- any other keyword -- TODO: what's this Exception { fg = magenta }, -- try, catch, throw PreProc { fg = yellow }, -- (preferred) generic Preprocessor TODO: check later Include { fg = magenta }, -- preprocessor #include Define { fg = magenta }, -- preprocessor #define Macro { fg = magenta }, -- same as Define PreCondit { fg = magenta }, -- preprocessor #if, #else, #endif, etc. Type { fg = cyan }, -- (preferred) int, long, char, etc. StorageClass { fg = magenta }, -- static, register, volatile, etc. Structure { fg = magenta }, -- struct, union, enum, etc. Typedef { fg = magenta }, -- A typedef Special { fg = blue }, -- (preferred) any special symbol SpecialChar { fg = green }, -- special character in a constant Tag { fg = red }, -- you can use CTRL-] on this Delimiter { fg = comment_gray }, -- character that needs attention SpecialComment { fg = comment_gray, gui = italic_strings }, -- special things inside a comment -- Debug { }, -- debugging statements -- Underlined { gui = "underline" }, -- (preferred) text that stands out, HTML links -- Bold { gui = "bold" }, -- Italic { gui = "italic" }, -- ("Ignore", below, may be invisible...) -- Ignore { }, -- (preferred) left blank, hidden |hl-Ignore| Error { bg = black }, -- (preferred) any erroneous construct Todo { fg = magenta }, -- (preferred) anything that needs extra attention; mostly the keywords TODO FIXME and XXX -- Nvim LSP LspReferenceText { fg = selection_gray}, -- used for highlighting "text" references LspReferenceRead { LspReferenceText }, -- used for highlighting "read" references LspReferenceWrite { LspReferenceText }, -- used for highlighting "write" references DiagnosticError { fg = red}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) DiagnosticWarn { fg = yellow}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) DiagnosticInfo { fg = blue }, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) DiagnosticHint { fg = cyan}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline) DiagnosticVirtualTextError { fg = red, bg = selection_gray }, -- Used for "Error" diagnostic virtual text DiagnosticVirtualTextWarn { fg = yellow, bg = selection_gray }, -- Used for "Warn" diagnostic virtual text DiagnosticVirtualTextInfo { fg = blue, bg = selection_gray }, -- Used for "Information" diagnostic virtual text DiagnosticVirtualTextHint { fg = cyan, bg = selection_gray }, -- Used for "Hint" diagnostic virtual text DiagnosticUnderlineError { fg = red, gui = underline_strings }, -- Used to underline "Error" diagnostics DiagnosticUnderlineWarn { fg = yellow, gui = underline_strings }, -- Used to underline "Warn" diagnostics DiagnosticUnderlineInfo { fg = blue, gui = underline_strings }, -- Used to underline "Information" diagnostics DiagnosticUnderlineHint { fg = cyan, gui = underline_strings }, -- Used to underline "Hint" diagnostics DiagnosticFloatingError { fg = red, gui = underline_strings }, -- Used to color "Error" diagnostic messages in diagnostics float DiagnosticFloatingWarn { fg = yellow, gui = underline_strings }, -- Used to color "Warn" diagnostic messages in diagnostics float DiagnosticFloatingInfo { fg = blue, gui = underline_strings }, -- Used to color "Information" diagnostic messages in diagnostics float DiagnosticFloatingHint { fg = cyan, gui = underline_strings }, -- Used to color "Hint" diagnostic messages in diagnostics float DiagnosticSignError { fg = red }, -- Used for "Error" signs in sign column DiagnosticSignWarn { fg = yellow }, -- Used for "Warn" signs in sign column DiagnosticSignInfo { fg = blue }, -- Used for "Information" signs in sign column DiagnosticSignHint { fg = cyan }, -- Used for "Hint" signs in sign column -- Treesitter TSAnnotation { fg = yellow }; -- For C++/Dart attributes, annotations that can be attached to the code to denote some kind of meta information. TSAttribute { fg = magenta }; -- (unstable) TODO: docs TSBoolean { fg = yellow_dark }; -- For booleans. TSCharacter { fg = green }; -- For characters. TSComment { fg = comment_gray, gui = italic_strings }; -- For comment blocks. TSConstructor { fg = blue }; -- For constructor calls and definitions: ` { }` in Lua, and Java constructors. TSConditional { fg = magenta }; -- For keywords related to conditionnals. TSConstant { fg = white }; -- For constants TSConstBuiltin { fg = yellow_dark }; -- For constant that are built in the language: `nil` in Lua. TSConstMacro { fg = red }; -- For constants that are defined by macros: `NULL` in C. TSError { fg = red }; -- For syntax/parser errors. TSException { fg = magenta }; -- For exception related keywords. TSField { fg = white }; -- For fields. TSFloat { fg = yellow_dark }; -- For floats. TSFunction { fg = blue }; -- For function (calls and definitions). //TODO TSFuncBuiltin { fg = blue }; -- For builtin functions: `table.insert` in Lua. TSFuncMacro { fg = magenta }; -- For macro defined fuctions (calls and definitions): each `macro_rules` in Rust. TSInclude { fg = magenta }; -- For includes: `#include` in C, `use` or `extern crate` in Rust, or `require` in Lua. TSKeyword { fg = cyan }; -- For keywords that don't fall in previous categories. TSKeywordReturn { fg = magenta }; TSKeywordFunction { fg = red }; -- For keywords used to define a fuction. TSLabel { fg = red }; -- For labels: `label:` in C and `:label:` in Lua. TSMethod { fg = blue }; -- For method calls and definitions. -- TSNamespace { }; -- For identifiers referring to modules and namespaces. //TODO -- TSNone { }; -- TODO: docs TSNumber { fg = yellow_dark }; -- For all numbers TSOperator { fg = magenta }; -- For any operator: `+`, but also `->` and `*` in C. TSParameter { fg = white }; -- For parameters of a function. //TODO TSParameterReference { fg = yellow }; -- For references to parameters of a function. TSProperty { fg = red }; -- Same as `TSField`. TSPunctDelimiter { fg = white }; -- For delimiters ie: `.` TSPunctBracket { fg = comment_gray }; -- For brackets and parens. -- TSPunctSpecial { }; -- For special punctutation that does not fall in the catagories before. TSRepeat { fg = magenta }; -- For keywords related to loops. TSString { fg = green }; -- For strings. TSStringRegex { fg = green }; -- For regexes. TSStringEscape { fg = yellow }; -- For escape characters within a string. TSSymbol { gui = underline_strings }; -- For identifiers referring to symbols or atoms. TSType { fg = cyan }; -- For types. TSTypeBuiltin { fg = cyan }; -- For builtin types. TSVariable { fg = white }; -- Any variable name that does not have another highlight. TSVariableBuiltin { fg = white }; -- Variable names that are defined by the languages, like `this` or `self`. TSTag { fg = red }; -- Tags like html tag names. TSTagAttribute { fg = yellow_dark }; TSTagDelimiter { fg = white }; -- Tag delimiter like `<` `>` `/` TSText { fg = green }; -- For strings considered text in a markup language. TSEmphasis { fg = white }; -- For text to be represented with emphasis. TSUnderline { gui = underline_strings }; -- For text to be represented with an underline. -- TSStrike { }; -- For strikethrough text. TSTitle { fg = white }; -- Text that is part of a title. -- TSLiteral { }; -- Literal text. TSURI {}; -- Any URI like a link or email. -- Css cssTSType { fg = red }; cssTSProperty { fg = magenta }; -- Telescope TelescopeBorder { fg = blue }; -- Dashboard DashboardHeader { fg = blue }; DashboardCenter { fg = comment_gray }; DashboardShortcut { fg = comment_gray }; DashboardFooter { fg = white }; -- VimWiki VimwikiHeader1 { fg = blue, gui = bold_strings }; VimwikiHeader2 { fg = magenta, gui = bold_strings }; VimwikiHeader3 { fg = cyan, gui = bold_strings }; VimwikiHeader4 { fg = cyan, gui = bold_strings }; -- Clever-f CleverFDefaultLabel { fg = blue, gui = bold_underline_strings }; -- Nvim-tree NvimTreeNormal { fg = white, bg = black_dark }; NvimTreeFolderIcon { fg = yellow }; NvimTreeOpenedFolderName { fg = white, gui = bold_strings }; NvimTreeEmptyFolderName { fg = white }; NvimTreeFolderName { fg = white }; NvimTreeVertSplit { fg = black }; NvimTreeIndentMarker { fg = comment_gray }; NvimTreeSpecialFile { fg = yellow }; NvimTreeRootFolder { fg = blue }; NvimTreeSignColumn { NvimTreeNormal }; -- Orgmode OrgTODO { fg = blue, gui = bold_strings }; OrgDONE { fg = green, gui = italic_strings }; OrgHeadlineLevel1 { fg = blue, gui = bold_strings }; OrgHeadlineLevel2 { fg = magenta, gui = bold_strings }; OrgHeadlineLevel3 { fg = cyan, gui = bold_strings }; OrgHeadlineLevel4 { fg = cyan, gui = bold_strings }; org_deadline_scheduled { fg = comment_gray }; -- Gitsings GitSignsAdd { fg = yellow }; GitSignsChange { fg = blue }; GitSignsDelete { fg = red }; -- Nvim-cmp CmpItemAbbrDefault { fg = comment_gray }; -- TSComments TSNote { fg = blue }; TSWarning { fg = yellow }; TSDanger { fg = red }; -- LspSignature LspSignatureActiveParameter { fg = white, bg = selection_gray }; } end) -- return our parsed theme for extension or use else where. return theme -- vi:nowrap
--- -- @description Driver for 4-digit 7-segment displays controlled by TM1637 chip -- @date September 08, 2016 -- @author ovoronin --- -------------------------------------------------------------------------------- local M = {} local I2C_COMM1 = 0x40 local I2C_COMM2 = 0xC0 local I2C_COMM3 = 0x80 local cmd_power_on = 0x88 local cmd_power_off = 0x80 local pin_clk local pin_dio local brightness = 0x0f local power = cmd_power_on local alphabet = { [0] = 0x3F, [1] = 0x06, [2] = 0x5B, [3] = 0x4F, [4] = 0x66, [5] = 0x6D, [6] = 0x7D, [7] = 0x07, [8] = 0x7F, [9] = 0x6F } local digits = {0x3F, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x07, 0x7F, 0x6F} local _dot = 0x80 local _dash = 0x40 local function clk_high() gpio.write(pin_clk, gpio.HIGH) end local function clk_low() gpio.write(pin_clk, gpio.LOW) end local function dio_high() gpio.write(pin_dio, gpio.HIGH) end local function dio_low() gpio.write(pin_dio, gpio.LOW) end local function i2c_start() clk_high() dio_high() tmr.delay(2) dio_low() end local function i2c_ack () clk_low() dio_high() tmr.delay(5) gpio.mode(pin_dio, gpio.INPUT) while ( gpio.read(pin_dio) == gpio.HIGH) do end gpio.mode(pin_dio, gpio.OUTPUT) clk_high() tmr.delay(2) clk_low() end local function i2c_stop() clk_low() tmr.delay(2) dio_low() tmr.delay(2) clk_high() tmr.delay(2) dio_high() end local function i2c_write(b) for i = 0, 7, 1 do clk_low() if bit.band(b, 1) == 1 then dio_high() else dio_low() end tmr.delay(3) b = bit.rshift(b, 1) clk_high() tmr.delay(3) end end local function _clear() i2c_start() i2c_write(I2C_COMM2) i2c_ack() i2c_write(0) i2c_ack() i2c_write(0) i2c_ack(); i2c_write(0) i2c_ack() i2c_write(0) i2c_ack() i2c_stop() end local function init_display() i2c_start() i2c_write(I2C_COMM1) i2c_ack() i2c_stop() _clear() i2c_write(cmd_power_on + brightness) end local function write_byte(b, pos) i2c_start() i2c_write(I2C_COMM2 + pos) i2c_ack() i2c_write(b) i2c_ack() i2c_stop() end function M.init(clk, dio) pin_clk = clk pin_dio = dio gpio.mode(pin_dio, gpio.OUTPUT) gpio.mode(pin_clk, gpio.OUTPUT) init_display() end function M.set_brightness(b) if b > 7 then b = 7 end brightness = bit.band(b, 7) i2c_start() i2c_write( power + brightness ) i2c_ack() i2c_stop() end function M.write_string(str) local pos = 3 local i = #str local dot while (i >= 1) do local s = str:sub(i,i) if s == '.' then dot = true i = i - 1 s = str:sub(i,i) else dot = false end local digit = tonumber(s) local bt = digits[digit+1] if dot then bt = bt + _dot end write_byte(bt, pos) pos = pos - 1 i = i - 1 end end function M.clear() _clear() end return M
ys = ys or {} slot1 = ys.Battle.BattleDataFunction slot2 = class("BattleScoreBarView") ys.Battle.BattleScoreBarView = slot2 slot2.__name = "BattleScoreBarView" slot2.Ctor = function (slot0, slot1) slot0._go = slot1 slot0._tf = slot1.transform slot0:init() end slot2.init = function (slot0) slot0._scoreTF = slot0._tf:Find("bg/Text") slot0._comboTF = slot0._tf:Find("comboMark") slot0._comboText = slot0._tf:Find("comboMark/value") end slot2.SetActive = function (slot0, slot1) SetActive(slot0._tf, slot1) end slot2.UpdateScore = function (slot0, slot1) setText(slot0._scoreTF, slot1) end slot2.UpdateCombo = function (slot0, slot1) if slot1 > 1 then SetActive(slot0._comboTF, true) else SetActive(slot0._comboTF, false) end setText(slot0._comboText, slot1) end return
--- A fancy looking input with a new read function, which includes a limit for the size. -- @module[kind=component] input local args = { ... } local path = fs.combine(args[2], "../../") local input = {} local common = require("/" .. fs.combine(path, "lib", "common")) local inputs = {} local activeInput --- Basicly, CC's read function with a width parameter. -- @tparam string id The ID of the input that is being focused. -- @tparam[opt] byte _sReplaceChar The character to hide all the characters. -- @tparam[opt] table _tHistory A table containing a history for the textbox. -- @tparam[opt] func _fnComplete A function that is random when the text is completed. The only parameter is the line. -- @tparam[opt] string _sDefault The default text. -- @tparam[opt] number _nLimit The size limit of the read window. -- @return The text inputted. function input.read(id, _sReplaceChar, _tHistory, _fnComplete, _sDefault, _nLimit) term.setCursorBlink(true) activeInput = { id = id } activeInput.w = _nLimit or term.getSize() activeInput._tHistory = _tHistory if type(_sDefault) == "string" then activeInput.sLine = _sDefault else activeInput.sLine = "" end activeInput.nPos, activeInput.nScroll = #activeInput.sLine, 0 if _sReplaceChar then _sReplaceChar = string.sub(_sReplaceChar, 1, 1) end function activeInput.recomplete() if _fnComplete and activeInput.nPos == #activeInput.sLine then activeInput.tCompletions = _fnComplete(activeInput.sLine) if activeInput.tCompletions and #activeInput.tCompletions > 0 then activeInput.tCompletions = 1 else activeInput.tCompletions = nil end else activeInput.tCompletions = nil activeInput.tCompletions = nil end end function activeInput.uncomplete() activeInput.tCompletions = nil activeInput.nCompletion = nil end function activeInput.complete(quiet) term.setCursorBlink(false) if quiet == nil then os.queueEvent("textbox_complete", activeInput.id, activeInput.sLine) end inputs[activeInput.id].defaultText = activeInput.sLine input.render(activeInput.id) activeInput = nil end activeInput.w = _nLimit or term.getSize() activeInput.sx = term.getCursorPos() function activeInput.redraw(_bClear) local cursor_pos = activeInput.nPos - activeInput.nScroll if activeInput.sx + cursor_pos >= activeInput.w then -- We've moved beyond the RHS, ensure we're on the edge. activeInput.nScroll = activeInput.sx + activeInput.nPos - activeInput.w elseif cursor_pos < 0 then -- We've moved beyond the LHS, ensure we're on the edge. activeInput.nScroll = activeInput.nPos end local _, cy = term.getCursorPos() term.setCursorPos(activeInput.sx, cy) local sReplace = _bClear and " " or _sReplaceChar if sReplace then term.write( common.textOverflow( string.rep(sReplace, math.max(#activeInput.sLine - activeInput.nScroll, 0) ), activeInput.w - 2) ) else term.write(common.textOverflow(string.sub(activeInput.sLine, activeInput.nScroll + 1), activeInput.w - 2)) end if activeInput.nCompletion then local sCompletion = activeInput.tCompletions[activeInput.nCompletion] local oldText, oldBg if not _bClear then oldText = term.getTextColor() oldBg = term.getBackgroundColor() term.setTextColor(colors.white) term.setBackgroundColor(colors.gray) end if activeInput.sReplace then term.write(string.rep(activeInput.sReplace, #sCompletion)) else term.write(sCompletion) end if not _bClear then term.setTextColor(oldText) term.setBackgroundColor(oldBg) end end term.setCursorPos(activeInput.sx + activeInput.nPos - activeInput.nScroll, cy) end function activeInput.clear() activeInput.redraw(true) end activeInput.recomplete() activeInput.redraw() function activeInput.acceptCompletion() if activeInput.nCompletion then -- Clear activeInput.clear() -- Find the common prefix of all the other suggestions which start with the same letter as the current one local sCompletion = activeInput.tCompletions[activeInput.nCompletion] activeInput.sLine = activeInput.sLine .. sCompletion activeInput.nPos = #activeInput.sLine -- Redraw activeInput.recomplete() activeInput.redraw() end end end --- Renders a textbox. -- @param id The ID of the textbox to render. function input.render(id) local o = inputs[id] local bg = term.getBackgroundColor() paintutils.drawFilledBox(o.x + 1, o.y + 1, o.x + o.w - 2, o.y + 1, o.backgroundColor) common.drawBorder(colors.white, o.borderColor, o.x, o.y, o.w, 3, nil, true) if o.defaultText and o.defaultText ~= "" then term.setCursorPos(o.x + 1, o.y + 1) term.setTextColor(o.textColor) term.write(common.textOverflow(o.defaultText, o.w - 2)) elseif o.placeholder then term.setTextColor(o.placeholderColor) term.setCursorPos(o.x + 1, o.y + 1) term.write(o.placeholder) end end --- Creates a new input box. -- @tparam string id The ID of the text box. Used to remove, render, etc. -- @tparam number x The X position of the textbox. -- @tparam number y The Y position of the textbox. -- @tparam number w The width of the textbox. -- @tparam table theme The theme to use. -- @tparam[opt] string placeholder The text that will be shown when no text has been entered. Note that this is overidden by default. The difference is that placeholder text does not persist when the textbox is selected. -- @tparam[opt] table history The history table that the read function will draw from. -- @tparam[opt] byte replace The replace character, mainly for passwords. -- @tparam[opt] string default The default text that will be entered. For mor information on this, see the placeholder paramerer. function input.create(id, x, y, w, theme, placeholder, history, replace, default) term.setTextColor(colors.gray) inputs[id] = { x = x, y = y, w = w, placeholder = placeholder, history = history, replaceCharacter = replace, defaultText = default, borderColor = theme.input.borderColor, borderSelectedColor = theme.input.borderColorActive, backgroundColor = theme.input.backgroundColorbgColor, textColor = theme.input.textColor, placeholderColor = theme.input.placeholderColor } input.render(id) end --- Gets the current text inside an input. -- @tparam number id The ID of the input to retrieve text from. function input.getText(id) return inputs[id].defaultText end --- Clears an input -- @tparam number id The ID of the input to clear out. function input.clear(id) inputs[id].defaultText = "" if activeInput and activeInput.complete then activeInput.complete(true) end end --- Removes an input. -- @tparam number id The ID of the element to remove. function input.remove(id) inputs[id] = nil end --- The event listener for the text box. When the text box has been finished, an event will be queued, entitled "textbox_complete". The first parameter is the ID of the textbox, and the second is the text entered into said textbox. -- @tparam table manager The event manager. function input.init(manager) manager.inject(function(e) if e[1] == "mouse_click" then local m, x, y = e[2], e[3], e[4] local found = false for i, v in pairs(inputs) do if x >= v.x and y >= v.y and y <= v.y + 2 and x <= v.x + v.w - 1 then if activeInput and activeInput.id ~= i or activeInput == nil then common.drawBorder(v.backgroundColor or colors.white, v.borderSelectedColor or colors.lightBlue, v.x, v.y, v.w, 3, nil, true) term.setTextColor(v.textColor or colors.gray) paintutils.drawFilledBox(v.x + 1, v.y + 1, v.x + v.w- 2, v.y + 1, v.backgroundColor or colors.white) if activeInput then activeInput.complete() end found = true term.setCursorPos(v.x + 1, v.y + 1) os.queueEvent("textbox_focus", i) input.read(i, v.replaceCharacter, v.history, nil, v.defaultText, v.w) end end end if found == false and activeInput then activeInput.complete() end end if activeInput then local sEvent, param, param1, param2 = e[1], e[2], e[3], e[4] -- Haha, no way I am going to rewrite this whole thing! if sEvent == "char" then -- Typed key activeInput.clear() activeInput.sLine = string.sub(activeInput.sLine, 1, activeInput.nPos) .. param .. string.sub(activeInput.sLine, activeInput.nPos + 1) activeInput.nPos = activeInput.nPos + 1 activeInput.recomplete() activeInput.redraw() elseif sEvent == "paste" then -- Pasted text activeInput. clear() activeInput.sLine = string.sub(activeInput.sLine, 1, activeInput.nPos) .. param .. string.sub(activeInput.sLine, activeInput.nPos + 1) activeInput.nPos = activeInput.nPos + #param activeInput.recomplete() activeInput.redraw() elseif sEvent == "key" then if param == keys.enter or param == keys.numPadEnter then -- Enter/Numpad Enter if activeInput.nCompletion then activeInput.clear() activeInput.uncomplete() activeInput.redraw() end activeInput.complete() elseif param == keys.left then -- Left if activeInput.nPos > 0 then activeInput.clear() activeInput.nPos = activeInput.nPos - 1 activeInput.recomplete() activeInput.redraw() end elseif param == keys.right then -- Right if activeInput.nPos < #activeInput.sLine then -- Move right activeInput.clear() activeInput.nPos = activeInput.nPos + 1 activeInput.recomplete() activeInput.redraw() else -- Accept autocomplete activeInput.acceptCompletion() end elseif param == keys.up or param == keys.down then -- Up or down if activeInput.nCompletion then -- Cycle completions activeInput.clear() if param == keys.up then activeInput.nCompletion = activeInput.nCompletion - 1 if activeInput.nCompletion < 1 then activeInput.nCompletion = #activeInput.tCompletions end elseif param == keys.down then activeInput.nCompletion = activeInput.nCompletion + 1 if activeInput.nCompletion > #activeInput.tCompletions then activeInput.nCompletion = 1 end end activeInput.redraw() elseif activeInput._tHistory then -- Cycle history activeInput.clear() if param == keys.up then -- Up if activeInput.nHistoryPos == nil then if #activeInput._tHistory > 0 then activeInput.nHistoryPos = #activeInput._tHistory end elseif activeInput.nHistoryPos > 1 then activeInput.nHistoryPos = activeInput.nHistoryPos - 1 end else -- Down if activeInput.nHistoryPos == #activeInput._tHistory then activeInput.nHistoryPos = nil elseif activeInput.nHistoryPos ~= nil then activeInput.nHistoryPos = activeInput.nHistoryPos + 1 end end if activeInput.nHistoryPos then activeInput.sLine = activeInput._tHistory[activeInput.nHistoryPos] activeInput.nPos, activeInput.nScroll = #activeInput.sLine, 0 else activeInput.sLine = "" activeInput.nPos, activeInput.nScroll = 0, 0 end activeInput.uncomplete() activeInput.redraw() end elseif param == keys.backspace then -- Backspace if activeInput.nPos > 0 then activeInput.clear() activeInput.sLine = string.sub(activeInput.sLine, 1, activeInput.nPos - 1) .. string.sub(activeInput.sLine, activeInput.nPos + 1) activeInput.nPos = activeInput.nPos - 1 if activeInput.nScroll > 0 then activeInput.nScroll = activeInput.nScroll - 1 end activeInput.recomplete() activeInput.redraw() end elseif param == keys.home then -- Home if activeInput.nPos > 0 then activeInput.clear() activeInput.nPos = 0 activeInput.recomplete() activeInput.redraw() end elseif param == keys.delete then -- Delete if activeInput.nPos < #activeInput.sLine then activeInput.clear() activeInput.sLine = string.sub(activeInput.sLine, 1, activeInput.nPos) .. string.sub(activeInput.sLine, activeInput.nPos + 2) activeInput.recomplete() activeInput.redraw() end elseif param == keys["end"] then -- End if activeInput.nPos < #activeInput.sLine then activeInput.clear() activeInput.nPos = #activeInput.sLine activeInput.recomplete() activeInput.redraw() end elseif param == keys.tab then -- Tab (accept autocomplete) activeInput.acceptCompletion() end elseif sEvent == "mouse_click" or sEvent == "mouse_drag" and param == 1 and param1 and param2 then local _, cy = term.getCursorPos() if param1 >= activeInput.sx and param1 <= activeInput.w and param2 == cy then -- Ensure we don't scroll beyond the current line activeInput.nPos = math.min(math.max(activeInput.nScroll + param1 - activeInput.sx, 0), #activeInput.sLine) activeInput.redraw() end elseif sEvent == "term_resize" then -- Terminal resized activeInput.w = activeInput._nLimit or term.getSize() activeInput.redraw() end end end) end return input
translations.en = { welcome = "<br><N><p align='center'>Welcome to <b><D>#castle</D></b> - King`s living lounge and lab<br>Report any bugs or new features to <b><O>King_seniru</O><G><font size='8'>#5890</font></G></b><br><br>Type <b><BV>!modes</BV></b> to check out submodes of this module</p></N><br>", modestitle = "<p align='center'><D><font size='16' face='Lucida console'>Castle - submodes</font></D><br><br>", modebrief = "<b>castle0${name}</b> <CH><a href='event:modeinfo:${name}'>ⓘ</a></CH>\t<a href='event:play:${name}'><T>( Play )</T></a><br>", modeinfo = "<p align='center'><D><font size='16' face='Lucida console'>#castle0${name}</font></D></p><br><i><font color='#ffffff' size='14'>“<br>${description}<br><p align='right'>”</p></font></i><b>Author: </b> ${author}<br><b>Version: </b> ${version}</font><br><br><p align='center'><b><a href='event:play:${name}'><T>( Play )</T></a></b></p><br><br><a href='event:modes'>« Back</a>", new_roomadmin = "<N>[</N><D>•</D><N>] </N><D>${name}</D> <N>is now a room admin!</N>", error_adminexists = "<N>[</N><R>•</R><N>] <R>Error: ${name} is already an admin</R>", error_gameonprogress = "<N>[</N><R>•</R><N>] <R>Error: Game in progress!</R>", error_invalid_input = "<N>[</N><R>•</R><N>] <R>Error: Invlid input!</R>", error_auth = "<N>[</N><R>•</R><N>] <R>Error: Authorisation</R>", admins = "<N>[</N><D>•</D><N>] </N><D>Admins: </D>", password = "<N>[</N><D>•</D><N>] </N><D>Password: </D><N>${pw}</N>", ban = "<N>[</N><R>•</R><N>] <R>${player} has been banned!</R>", unban = "<N>[</N><D>•</D><N>] </N><D>${player}</D> <N>has been unbanned!</N>", welcome0graphs = "<br><N><p align='center'>Welcome to <b><D>#castle0graphs</D></b><br>Report any bugs or suggest interesting functions to <b><O>King_seniru</O><G><font size='8'>#5890</font></G></b><br><br>Type <b><BV>!commands</BV></b> to check out the available commands</p></N><br>", cmds0graphs = "<BV>!admin <name></BV> - Makes a player admin <R><i>(admin only command)</i></R>", fs_welcome = "<br><N><p align='center'>Welcome to <b><D>#castle0fashion</D></b> - the Fashion show!<br><br><br>Type <b><BV>!join</BV></b> to participate the game or <b><BV>!help</BV></b> to see more things about this module!</p></N><br>", fs_info = "<p align='center'><font size='15' color='#ffcc00'><b>${owner} Fashion Show!</b></font><br><D><b>${title}</b></D></p><br><b>Description</b>: ${desc}<br><b>Prize</b>: ${prize}", configmenu = "<p align='center'><font size='20' color='#ffcc00'><b>Config menu</b></font></p><br>" .. "<b>Title</b>: <a href='event:fs:title'>${title}</a><br>" .. "<b>Description</b>: <a href='event:fs:desc'>${desc}</a><br>" .. "<b>Prize</b>: <a href='event:fs:prize'>${prize}<br><br></a>" .. "<b>Participants</b>: ${participants}<a href='event:fs:participants'> (See all)</a><br><p align='center'><G>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━</G><br>" .. "<b><font size='13'><D>Room settings</D></font></b></p>" .. "<b>Map</b>: <a href='event:fs:map'>${map}</a><br>" .. "<b>Password</b>: <a href='event:fs:password'>${pw}</a><br>" .. "<b>Max participants</b>: <a href='event:fs:maxplayers'>${maxPlayers}</a><br>" .. "<b>Consumables</b>: <a href='event:fs:consumables'>${consumables}</a><br>" .. "<br><b><D>Mouse spawn locations</D></b><br>" .. "<b>Spectator spawn</b>: <a href='event:fs:specSpawn'> X: ${specX}, Y: ${specY}</a>\t\t<a href='event:fs:showSpecSpawn'>[ Show ]</a><br>" .. "<b>Participant spawn</b>: <a href='event:fs:playerSpawn'> X: ${playerX}, Y: ${playerY}</a>\t\t<a href='event:fs:showPlayerSpawn'>[ Show ]</a><br>" .. "<b>Player (out) spawn</b>: <a href='event:fs:outSpawn'> X: ${outX}, Y: ${outY}\t\t<a href='event:fs:showOutSpawn'>[ Show ]</a><br>", fs_title_popup = "Please enter the title of the fashion show!", fs_desc_popup = "Please enter the description of the fashion show!", fs_prize_popup = "Please enter the prize of the fashion show!", fs_maxp_popup = "Please specify the maximum amount of players for the fashion show!", fs_pw_popup = "Please enter the password, leave it blank to unset it <i>(alias command: !pw)</i>", fs_participants = "<p align='center'><b><D>Participants</D></b></p><br>", fs_map_popup = "Please enter the map code!", fs_consumable_popup = "Do you need to enable consumables?", fs_set_coords = "<N>[</N><D>•</D><N>] Please click on the map to set coordinates</N>", fs_start = "<p align='center'><a href='event:start'><b>Start</b></a></p>", fs_starting = "<N>[</N><D>•</D><N>]</N> <b><D>Starting the fashion show!</D></b>", fs_round_config = "<p align='center'><font size='20' color='#ffcc00'><b>Config menu - round ${round}</b></font></p><br>" .. "<br><br><br><br><br><br><b>Theme</b>: <a href='event:fs:theme'>${theme}</a><br>" .. "<b>Duration</b>: <a href='event:fs:dur'>${dur}</a><br><br>" .. "<b>Players</b>: ${players} <a href='event:fs:participants'> (See all)</a>", fs_round_title = "Please enter the title for the round!", fs_round_dur = "Please specify the duration of the round in minutes <i>(eg: 2)</i><br>Enter 0 to set it unlimited</i>", fs_solo_btn = "<p align='center'><a href='event:fs:solo'><b>Solo</b></a></p>", fs_duo_btn = "<p align='center'><a href='event:fs:duo'><b>Duo</b></a></p>", fs_trio_btn = "<p align='center'><a href='event:fs:trio'><b>Trio</b></a></p>", fs_newroundprior = "<N>[</N><D>•</D><N>] Starting a new round...</N>", fs_newround = "<N>[</N><D>•</D><N>] <b><D>Round ${round} started!</D></b><br>\t<FC>• Theme:</FC> <N>${theme} (${type})</N><br>\t<FC>• Duration:</FC> <N>${dur}</N><br>\t<FC>• Players left:</FC> <N>${players}</N>", fs_round_end = "<N>[</N><D>•</D><N>] Round <D>${round}</D> ended! Judging in progress...</N>", fs_eliminated = "<N>[</N><D>•</D><N>] ${player} has been eliminated from the fashion show >:(</N>", fs_elimination_end = "<p align='center'><b><a href='event:newround'>End round!</a></b></p>", fs_maxplayers_error = "<N>[</N><R>•</R><N>] Sorry, the fashion show already got enough participants :(", fs_elimination_confirm = "Eliminate ${name}?", fs_error_not_playing = "<R>The selected player is not a participant!", fs_players_not_enough = "<N>[</N><R>•</R><N>] <R>Error: Not enough players!</R>", fs_all_participants_left = "<N>[</N><R>•</R><N>] <R>All the participants left, couldn`t determine a winner!</R>", fs_winner = "<N>[</N><D>•</D><N>] <b><D>Fashion show ended!</D><br>... and the winner is <D>${winner}</D>! Good job!</b></N>", fs_help = { ["main"] = "<p align='center'><font size='20' color='#ffcc00'><b>Help</b></font></p><br>" .. "This is a submode of semi-official module #castle which lets players to host fashion shows easily, while keeping most of the old styles to make it close to you.<br>" .. "Create a room with your name included in the room name to host a fashion show as you the admin <i>(/room *#castle0fashion@Yourname#0000)</i><br>" .. "<br><b><D>Index</D></b><br><a href='event:help:commands'>• Commands</a><br><a href='event:help:keys'>• Key bindings</a><br><a href='event:help:credits'>• Credits</a>", ["commands"] = "<p align='center'><font size='20' color='#ffcc00'><b>Help - Commands</b></font></p><br>" .. "<b>!admin [name]</b> - make a player an admin (admin only command)<br>" .. "<b>!admins</b> - shows a list of admins<br>" .. "<b>!ban [name]</b> - bans the mentioned player (admin only command)<br>" .. "<b>!c [message]</b> - chat with other room admins</b><br>" .. "<b>!checkpoint [all|<me>]</b> - set checkpoints (E)<br>" .. "<b>!eliminate [name]</b> - eliminates the player from the round (admin only command) (Shift + click)<br>" .. "<b>!help</b> - displays this help menu<br>" .. "<b>!join</b> - joins the fashion show, if you haven`t participated yet<br>" .. "<b>!omo <text></b> - displays an omo - like in utility (admin only command)<br>" .. "<b>!pw <pw></b> - sets a password, send empty password to unset it (admin only command)</b><br>" .. "<b>!s [me|admins|all|name]</b> - make players shaman according to the arguments provided or the name (admin only command)<br>" .. "<b>!stop</b> - force stop the current round<br>" .. "<b>!tp [me|admins|all|name]</b> - teleports a players according to the arguments provided or the name (admin only command)<br>" .. "<b>!unban [name]</b> - unbans the mentioned user (admin only command)</b>" .. "<br><br><a href='event:help:main'><BV>« Back</BV></a>", ["keys"] = "<p align='center'><font size='20' color='#ffcc00'><b>Help - Keys</b></font></p><br>" .. "<b>E</b> - set a checkpoint<br>" .. "<b>Shift + Click (on player)</b> - eliminates a player after the round <i>(admin only)</i><br><br><a href='event:help:main'><BV>« Back</BV></a>", ["credits"] = "<p align='center'><font size='20' color='#ffcc00'><b>Help - Credits</b></font></p><br>" .. "<b><D>Testing</D></b><br>" .. "• Snowvlokje#4925<br>• Michelleding#0000<br>• Lpspopcorn#0000<br>• Light#5990<br>• Lilylolarose#0000<br><br>Also thanks for <b>Snowvlokje#4925</b>, <b>Michelleding#0000</b> and the tribe <b>We Talk a Lot</b> to encouraging me and supporting me to do this work!<br><br><a href='event:help:main'><BV>« Back</BV></a>" } }
-- TÖVE Demo: Zoom. -- (C) 2018 Bernhard Liebl, MIT license. local tove = require "tove" require "assets/tovedemo" local rabbit = love.filesystem.read("assets/monster_by_mike_mac.svg") local function newRabbit() -- make a new rabbit graphics, prescaled to 200 px local graphics = tove.newGraphics(rabbit) graphics:rescale(200) return graphics end local textureRabbit = newRabbit() textureRabbit:setDisplay("texture") local meshRabbit = newRabbit() meshRabbit:setDisplay("mesh", "rigid", 0) local shaderRabbit = newRabbit() shaderRabbit:setDisplay("gpux") function love.draw() tovedemo.drawBackground() if not tovedemo.warmup(shaderRabbit) then tovedemo.draw("Zoom.") return end local t = love.timer.getTime() * 0.5 local radius = 250 local shiftX = math.cos(t) * radius local shiftY = math.sin(t) * radius local mx = love.mouse.getX() local my = love.mouse.getY() local show = "all" for i = 1, 3 do local x0 = 50 + (i - 1) * 250 if mx >= x0 and mx < x0 + 200 and my >= 100 and my <= 100 + 400 then show = i break end end for i = 1, 3 do if show == "all" or show == i then local x0 = 50 + (i - 1) * 250 if show == "all" then love.graphics.stencil(function() love.graphics.rectangle("fill", x0, 100, 200, 400) end, "replace", 1) love.graphics.setStencilTest("greater", 0) end local name love.graphics.push("transform") love.graphics.translate(x0 + shiftX, shiftY) love.graphics.scale(5, 5) if i == 1 then textureRabbit:draw(0, 0) name = "texture" elseif i == 2 then meshRabbit:draw(0, 0) name = "mesh" elseif i == 3 then shaderRabbit:draw(0, 0) name = "gpux" end love.graphics.pop() love.graphics.setStencilTest() if show == "all" then love.graphics.setColor(0, 0, 0) love.graphics.rectangle("line", x0, 100, 200, 400) love.graphics.setColor(0.2, 0.2, 0.2) love.graphics.print(name, 50 + (i - 1) * 250, 510) love.graphics.setColor(1, 1, 1) end end end tovedemo.drawForeground("Zoom.") tovedemo.attribution("Graphics by Mike Mac.") end
--Credtis: PINGGIN AND DavKat, Shulepin --Incluindo Files do Yasuo IncludeFile("Lib\\TOIR_SDK.lua") IncludeFile("Lib\\DamageLib") --Classes Yasuo = class() function Yasuo:__init() SetLuaCombo(true) SetLuaLaneClear(true) W_SPELLS = { -- Yea boiz and grillz its all right here....... ["FizzMarinerDoom"] = {Spellname ="FizzMarinerDoom",Name = "Fizz", Spellslot =_R}, ["AatroxE"] = {Spellname ="AatroxE",Name= "Aatrox", Spellslot =_E}, ["AhriOrbofDeception"] = {Spellname ="AhriOrbofDeception",Name = "Ahri", Spellslot =_Q}, ["AhriFoxFire"] = {Spellname ="AhriFoxFire",Name = "Ahri", Spellslot =_W}, ["AhriSeduce"] = {Spellname ="AhriSeduce",Name = "Ahri", Spellslot =_E}, ["AhriTumble"] = {Spellname ="AhriTumble",Name = "Ahri", Spellslot =_R}, ["FlashFrost"] = {Spellname ="FlashFrost",Name = "Anivia", Spellslot =_Q}, ["Anivia2"] = {Spellname ="Frostbite",Name = "Anivia", Spellslot =_E}, ["Disintegrate"] = {Spellname ="Disintegrate",Name = "Annie", Spellslot =_Q}, ["Volley"] = {Spellname ="Volley",Name ="Ashe", Spellslot =_W}, ["EnchantedCrystalArrow"] = {Spellname ="EnchantedCrystalArrow",Name ="Ashe", Spellslot =_R}, ["BandageToss"] = {Spellname ="BandageToss",Name ="Amumu",Spellslot =_Q}, ["RocketGrabMissile"] = {Spellname ="RocketGrabMissile",Name ="Blitzcrank",Spellslot =_Q}, ["BrandBlaze"] = {Spellname ="BrandBlaze",Name ="Brand", Spellslot =_Q}, ["BrandWildfire"] = {Spellname ="BrandWildfire",Name ="Brand", Spellslot =_R}, ["BraumQ"] = {Spellname ="BraumQ",Name ="Braum",Spellslot =_Q}, ["BraumRWapper"] = {Spellname ="BraumRWapper",Name ="Braum",Spellslot =_R}, ["CaitlynPiltoverPeacemaker"] = {Spellname ="CaitlynPiltoverPeacemaker",Name ="Caitlyn",Spellslot =_Q}, ["CaitlynEntrapment"] = {Spellname ="CaitlynEntrapment",Name ="Caitlyn",Spellslot =_E}, ["CaitlynAceintheHole"] = {Spellname ="CaitlynAceintheHole",Name ="Caitlyn",Spellslot =_R}, ["CassiopeiaMiasma"] = {Spellname ="CassiopeiaMiasma",Name ="Cassiopiea",Spellslot =_W}, ["CassiopeiaTwinFang"] = {Spellname ="CassiopeiaTwinFang",Name ="Cassiopiea",Spellslot =_E}, ["PhosphorusBomb"] = {Spellname ="PhosphorusBomb",Name ="Corki",Spellslot =_Q}, ["MissileBarrage"] = {Spellname ="MissileBarrage",Name ="Corki",Spellslot =_R}, ["DianaArc"] = {Spellname ="DianaArc",Name ="Diana",Spellslot =_Q}, ["InfectedCleaverMissileCast"] = {Spellname ="InfectedCleaverMissileCast",Name ="DrMundo",Spellslot =_Q}, ["dravenspinning"] = {Spellname ="dravenspinning",Name ="Draven",Spellslot =_Q}, ["DravenDoubleShot"] = {Spellname ="DravenDoubleShot",Name ="Draven",Spellslot =_E}, ["DravenRCast"] = {Spellname ="DravenRCast",Name ="Draven",Spellslot =_R}, ["EliseHumanQ"] = {Spellname ="EliseHumanQ",Name ="Elise",Spellslot =_Q}, ["EliseHumanE"] = {Spellname ="EliseHumanE",Name ="Elise",Spellslot =_E}, ["EvelynnQ"] = {Spellname ="EvelynnQ",Name ="Evelynn",Spellslot =_Q}, ["EzrealMysticShot"] = {Spellname ="EzrealMysticShot",Name ="Ezreal",Spellslot =_Q,}, ["EzrealEssenceFlux"] = {Spellname ="EzrealEssenceFlux",Name ="Ezreal",Spellslot =_W}, ["EzrealArcaneShift"] = {Spellname ="EzrealArcaneShift",Name ="Ezreal",Spellslot =_R}, ["GalioRighteousGust"] = {Spellname ="GalioRighteousGust",Name ="Galio",Spellslot =_E}, ["GalioResoluteSmite"] = {Spellname ="GalioResoluteSmite",Name ="Galio",Spellslot =_Q}, ["Parley"] = {Spellname ="Parley",Name ="Gangplank",Spellslot =_Q}, ["GnarQ"] = {Spellname ="GnarQ",Name ="Gnar",Spellslot =_Q}, ["GravesClusterShot"] = {Spellname ="GravesClusterShot",Name ="Graves",Spellslot =_Q}, ["GravesChargeShot"] = {Spellname ="GravesChargeShot",Name ="Graves",Spellslot =_R}, ["HeimerdingerW"] = {Spellname ="HeimerdingerW",Name ="Heimerdinger",Spellslot =_W}, ["IreliaTranscendentBlades"] = {Spellname ="IreliaTranscendentBlades",Name ="Irelia",Spellslot =_R}, ["HowlingGale"] = {Spellname ="HowlingGale",Name ="Janna",Spellslot =_Q}, ["JayceToTheSkies"] = {Spellname ="JayceToTheSkies" or "jayceshockblast",Name ="Jayce",Spellslot =_Q}, ["jayceshockblast"] = {Spellname ="JayceToTheSkies" or "jayceshockblast",Name ="Jayce",Spellslot =_Q}, ["JinxW"] = {Spellname ="JinxW",Name ="Jinx",Spellslot =_W}, ["JinxR"] = {Spellname ="JinxR",Name ="Jinx",Spellslot =_R}, ["KalistaMysticShot"] = {Spellname ="KalistaMysticShot",Name ="Kalista",Spellslot =_Q}, ["KarmaQ"] = {Spellname ="KarmaQ",Name ="Karma",Spellslot =_Q}, ["NullLance"] = {Spellname ="NullLance",Name ="Kassidan",Spellslot =_Q}, ["KatarinaR"] = {Spellname ="KatarinaR",Name ="Katarina",Spellslot =_R}, ["LeblancChaosOrb"] = {Spellname ="LeblancChaosOrb",Name ="Leblanc",Spellslot =_Q}, ["LeblancSoulShackle"] = {Spellname ="LeblancSoulShackle" or "LeblancSoulShackleM",Name ="Leblanc",Spellslot =_E}, ["LeblancSoulShackleM"] = {Spellname ="LeblancSoulShackle" or "LeblancSoulShackleM",Name ="Leblanc",Spellslot =_E}, ["BlindMonkQOne"] = {Spellname ="BlindMonkQOne",Name ="Leesin",Spellslot =_Q}, ["LeonaZenithBladeMissle"] = {Spellname ="LeonaZenithBladeMissle",Name ="Leona",Spellslot =_E}, ["LissandraE"] = {Spellname ="LissandraE",Name ="Lissandra",Spellslot =_E}, ["LucianR"] = {Spellname ="LucianR",Name ="Lucian",Spellslot =_R}, ["LuxLightBinding"] = {Spellname ="LuxLightBinding",Name ="Lux",Spellslot =_Q}, ["LuxLightStrikeKugel"] = {Spellname ="LuxLightStrikeKugel",Name ="Lux",Spellslot =_E}, ["MissFortuneBulletTime"] = {Spellname ="MissFortuneBulletTime",Name ="Missfortune",Spellslot =_R}, ["DarkBindingMissile"] = {Spellname ="DarkBindingMissile",Name ="Morgana",Spellslot =_Q}, ["NamiR"] = {Spellname ="NamiR",Name ="Nami",Spellslot =_R}, ["JavelinToss"] = {Spellname ="JavelinToss",Name ="Nidalee",Spellslot =_Q}, ["NocturneDuskbringer"] = {Spellname ="NocturneDuskbringer",Name ="Nocturne",Spellslot =_Q}, ["Pantheon_Throw"] = {Spellname ="Pantheon_Throw",Name ="Pantheon",Spellslot =_Q}, ["QuinnQ"] = {Spellname ="QuinnQ",Name ="Quinn",Spellslot =_Q}, ["RengarE"] = {Spellname ="RengarE",Name ="Rengar",Spellslot =_E}, ["rivenizunablade"] = {Spellname ="rivenizunablade",Name ="Riven",Spellslot =_R}, ["Overload"] = {Spellname ="Overload",Name ="Ryze",Spellslot =_Q}, ["SpellFlux"] = {Spellname ="SpellFlux",Name ="Ryze",Spellslot =_E}, ["SejuaniGlacialPrisonStart"] = {Spellname ="SejuaniGlacialPrisonStart",Name ="Sejuani",Spellslot =_R}, ["SivirQ"] = {Spellname ="SivirQ",Name ="Sivir",Spellslot =_Q}, ["SivirE"] = {Spellname ="SivirE",Name ="Sivir",Spellslot =_E}, ["SkarnerFractureMissileSpell"] = {Spellname ="SkarnerFractureMissileSpell",Name ="Skarner",Spellslot =_E}, ["SonaCrescendo"] = {Spellname ="SonaCrescendo",Name ="Sona",Spellslot =_R}, ["SwainDecrepify"] = {Spellname ="SwainDecrepify",Name ="Swain",Spellslot =_Q}, ["SwainMetamorphism"] = {Spellname ="SwainMetamorphism",Name ="Swain",Spellslot =_R}, ["SyndraE"] = {Spellname ="SyndraE",Name ="Syndra",Spellslot =_E}, ["SyndraR"] = {Spellname ="SyndraR",Name ="Syndra",Spellslot =_R}, ["TalonRake"] = {Spellname ="TalonRake",Name ="Talon",Spellslot =_W}, ["TalonShadowAssault"] = {Spellname ="TalonShadowAssault",Name ="Talon",Spellslot =_R}, ["BlindingDart"] = {Spellname ="BlindingDart",Name ="Teemo",Spellslot =_Q}, ["Thresh"] = {Spellname ="ThreshQ",Name ="Thresh",Spellslot =_Q}, ["BusterShot"] = {Spellname ="BusterShot",Name ="Tristana",Spellslot =_R}, ["VarusQ"] = {Spellname ="VarusQ",Name ="Varus",Spellslot =_Q}, ["VarusR"] = {Spellname ="VarusR",Name ="Varus",Spellslot =_R}, ["VayneCondemm"] = {Spellname ="VayneCondemm",Name ="Vayne",Spellslot =_E}, ["VeigarPrimordialBurst"] = {Spellname ="VeigarPrimordialBurst",Name ="Veigar",Spellslot =_R}, ["WildCards"] = {Spellname ="WildCards",Name ="Twistedfate",Spellslot =_Q}, ["VelkozQ"] = {Spellname ="VelkozQ",Name ="Velkoz",Spellslot =_Q}, ["VelkozW"] = {Spellname ="VelkozW",Name ="Velkoz",Spellslot =_W}, ["ViktorDeathRay"] = {Spellname ="ViktorDeathRay",Name ="Viktor",Spellslot =_E}, ["XerathArcanoPulseChargeUp"] = {Spellname ="XerathArcanoPulseChargeUp",Name ="Xerath",Spellslot =_Q}, ["ZedShuriken"] = {Spellname ="ZedShuriken",Name ="Zed",Spellslot =_Q}, ["ZiggsR"] = {Spellname ="ZiggsR",Name ="Ziggs",Spellslot =_R}, ["ZiggsQ"] = {Spellname ="ZiggsQ",Name ="Ziggs",Spellslot =_Q}, ["ZyraGraspingRoots"] = {Spellname ="ZyraGraspingRoots",Name ="Zyra",Spellslot =_E} } self.EnemyMinions = minionManager(MINION_ENEMY, 2000, myHero, MINION_SORT_HEALTH_ASC) self.JungleMinions = minionManager(MINION_JUNGLE, 2000, myHero, MINION_SORT_HEALTH_ASC) --Target self.menu_ts = TargetSelector(1750, 0, myHero, true, true, true) self.MissileSpellsData = {} self:MenuYasuo() self.passiveTracker = false --Spells self.Q = Spell(_Q, 425) self.W = Spell(_W, 600) self.E = Spell(_E, 475) self.R = Spell(_R, 1200) self.W:SetSkillShot() self.E:SetTargetted() self.R:SetTargetted() Callback.Add("Tick", function() self:OnTick() end) --Call Back Yasuo <3 by: DevkAT --Callback.Add("Draw", function() self:OnDraw() end) Callback.Add("ProcessSpell", function(...) self:OnProcessSpell(...) end) Callback.Add("DrawMenu", function(...) self:OnDrawMenu(...) end) end function Yasuo:MenuYasuo() self.menu = "Yasuo" self.Use_Combo_Q = self:MenuBool("Use Combo Q", true) self.AutoQStack = self:MenuBool("Auto Q", true) self.Use_Combo_W = self:MenuBool("Auto W", true) self.Enable_E = self:MenuBool("Enable E", true) self.Enable_R = self:MenuBool("Enable R", true) self.Use_R_Kill_Steal = self:MenuBool("Use R Kill Steal", true) self.Life = self:MenuSliderInt("Hero Life Utimate", 50) self.MinInimigo = self:MenuSliderInt("Range Heros {R}", 2) self.UseQClear = self:MenuBool("Use Q LaneClear", true) self.UseEClear = self:MenuBool("Use E LaneClear", true) self.menu_key_combo = self:MenuKeyBinding("Combo", 32) self.Lane_Clear = self:MenuKeyBinding("Lane Clear", 86) self.ActiveR = self:MenuKeyBinding("Active R Utimate", 84) self.Flee = self:MenuKeyBinding("Flee {E}", 65) self.Last_Hit = self:MenuKeyBinding("Last Hit", 88) self.Harass = self:MenuKeyBinding("Harass", 67) end function Yasuo:OnDrawMenu() if Menu_Begin(self.menu) then if Menu_Begin("Combo") then self.Use_Combo_Q = Menu_Bool("Use Combo Q", self.Use_Combo_Q, self.menu) self.Use_Combo_W = Menu_Bool("Auto W", self.Use_Combo_W, self.menu) self.AutoQStack = Menu_Bool("Auto Q", self.AutoQStack, self.menu) self.Enable_E = Menu_Bool("Enable E", self.Enable_E, self.menu) self.Enable_R = Menu_Bool("Enable R", self.Enable_R, self.menu) self.Use_R_Kill_Steal = Menu_Bool("Use R Kill Steal", self.Use_R_Kill_Steal, self.menu) self.Life = Menu_SliderInt("Hero Life Utimate", self.Life, 0, 100, self.menu) self.MinInimigo = Menu_SliderInt("Range Heros {R}", self.MinInimigo, 0, 5, self.menu) Menu_End() end if Menu_Begin("LaneClear") then self.UseQClear = Menu_Bool("Use Q Clear", self.UseQClear, self.menu) self.UseEClear = Menu_Bool("Use E Clear", self.UseEClear, self.menu) Menu_End() end if Menu_Begin("Keys Yasuo") then self.menu_key_combo = Menu_KeyBinding("Combo", self.menu_key_combo, self.menu) self.Lane_Clear = Menu_KeyBinding("Lane Clear", self.Lane_Clear, self.menu) self.ActiveR = Menu_KeyBinding("Active R Utimate", self.ActiveR, self.menu) self.Flee = Menu_KeyBinding("Flee {E}", self.Flee, self.menu) self.Last_Hit = Menu_KeyBinding("Last Hit", self.Last_Hit, self.menu) self.Harass = Menu_KeyBinding("Harass", self.Harass, self.menu) Menu_End() end Menu_End() end end function Yasuo:MenuBool(stringKey, bool) return ReadIniBoolean(self.menu, stringKey, bool) end function Yasuo:MenuKeyBinding(stringKey, valueDefault) return ReadIniInteger(self.menu, stringKey, valueDefault) end function Yasuo:MenuSliderInt(stringKey, valueDefault) return ReadIniInteger(self.menu, stringKey, valueDefault) end function Yasuo:IsAfterAttack() if CanMove() and not CanAttack() then return true else return false end end function Yasuo:OnProcessSpell(unit, spell) if GetChampName(GetMyChamp()) ~= "Yasuo" then return end if self.W:IsReady() and IsValidTarget(unit.Addr, 1500) then if spell and unit.IsEnemy then if myHero == spell.target and spell.Name:lower():find("attack") and (unit.AARange >= 450 or unit.IsRanged) then local wPos = Vector(myHero) + (Vector(unit) - Vector(myHero)):Normalized() * self.W.range CastSpellToPos(wPos.x, wPos.z, _W) end spell.endPos = {x=spell.DestPos_x, y=spell.DestPos_y, z=spell.DestPos_z} if W_SPELLS[spell.Name] and not unit.IsMe and GetDistance(unit) <= GetDistance(unit, spell.endPos) then CastSpellToPos(unit.x, unit.z, _W) end end end end function Yasuo:DashEndPos(target) local Estent = 0 if GetDistance(target) < 410 then Estent = Vector(myHero):Extended(Vector(target), 475) else Estent = Vector(myHero):Extended(Vector(target), GetDistance(target) + 65) end return Estent end function Yasuo:IsMarked(target) return target.HasBuff("YasuoDashWrapper") end function Yasuo:ClosetMinion(target) GetAllUnitAroundAnObject(myHero.Addr, 1500) local bestMinion = nil local closest = 0 local units = pUnit for i, unit in pairs(units) do if unit and unit ~= 0 and IsMinion(unit) and IsEnemy(unit) and not IsDead(unit) and not IsInFog(unit) and GetTargetableToTeam(unit) == 4 and not self:IsMarked(GetUnit(unit)) and GetDistance(GetUnit(unit)) < 375 then if GetDistance(self:DashEndPos(GetUnit(unit)), target) < GetDistance(target) and closest < GetDistance(GetUnit(unit)) then closest = GetDistance(GetUnit(unit)) bestMinion = unit end end end return bestMinion end function Yasuo:Combo(target) if target and target ~= 0 and IsEnemy(target) then if self.E:IsReady() then if self.Enable_E and IsValidTarget(target, self.E.range) and not self:IsMarked(GetAIHero(target)) and GetDistance(GetAIHero(target), self:DashEndPos(GetAIHero(target))) <= GetDistance(GetAIHero(target)) then self.E:Cast(target) end if self.Enable_E and not self.passiveTracker then local gapMinion = self:ClosetMinion(GetAIHero(target)) if gapMinion and gapMinion ~= 0 and not self:IsUnderTurretEnemy(GetUnit(gapMinion)) then self.E:Cast(gapMinion) end end end if self.Q:IsReady() and IsValidTarget(target, self.Q.range) then if self.Use_Combo_Q and not myHero.IsDash then self.Q:Cast(target) end if self.Use_Combo_Q and myHero.IsDash and GetDistance(GetAIHero(target)) <= 250 then self.Q:Cast(target) end end end end function Yasuo:AntiDashsing() SearchAllChamp() local Enemies = pObjChamp for idx, enemy in ipairs(Enemies) do if enemy ~= 0 then if self.Q:IsReady() and IsValidTarget(enemy, self.Q.range) and IsDashing(enemy) and self.passiveTracker and IsEnemy(enemy) then self.Q:Cast(enemy) end end end end function Yasuo:AutoUtimatey() local target = self.menu_ts:GetTarget() if target ~= 0 and IsEnemy(target) then local hero = GetAIHero(target) if self.R:IsReady() and IsValidTarget(target, self.R.range) and CountEnemyChampAroundObject(target, self.R.range) <= 1 and hero.HP*100/hero.MaxHP < self.Life then --solo self.R:Cast(target) end end end function Yasuo:Utimatey(target) if self.R:IsReady() and IsValidTarget(target, self.R.range) and IsEnemy(target) then self.R:Cast(target) end end function Yasuo:Fleey() local mousePos = Vector(GetMousePos()) MoveToPos(mousePos.x,mousePos.z) self.EnemyMinions:update() for k, v in pairs(self.EnemyMinions.objects) do if CanCast(E) and GetDistance(v) < self.E.range then CastSpellTarget(v.Addr, _E) end end end function Yasuo:JungleClear() GetAllUnitAroundAnObject(myHero.Addr, 2000) local result = {} for i, minions in pairs(pUnit) do if minions ~= 0 and not IsDead(minions) and not IsInFog(minions) and GetType(minions) == 3 then table.insert(result, minions) end end return result end local function GetDistanceSqr(p1, p2) p2 = p2 or GetOrigin(myHero) return (p1.x - p2.x) ^ 2 + ((p1.z or p1.y) - (p2.z or p2.y)) ^ 2 end function Yasuo:IsUnderTurretEnemy(pos) GetAllObjectAroundAnObject(myHero.Addr, 2000) local objects = pObject for k,v in pairs(objects) do if IsTurret(v) and not IsDead(v) and IsEnemy(v) and GetTargetableToTeam(v) == 4 then local turretPos = Vector(GetPosX(v), GetPosY(v), GetPosZ(v)) if GetDistanceSqr(turretPos,pos) < 915*915 then return true end end end return false end function Yasuo:FarmJungle(target) for i, minions in ipairs(self:JungleClear()) do if minions ~= 0 then local jungle = GetUnit(minions) if jungle.Type == 3 then if CanCast(_Q) then if jungle ~= nil and GetDistance(jungle) < self.Q.range then self.Q:Cast(jungle.Addr) end end if CanCast(_E) then if jungle ~= nil and GetDistance(jungle) < self.E.range then self.E:Cast(jungle.Addr) end end end end end end function Yasuo:PositionDash(dashPos) local Seguimento = self.E.range / 5; local myHeroPos = Vector(myHero.x, myHero.y, myHero.z) for i = 1, 5, 1 do pos = myHeroPos:Extended(dashPos, i * Seguimento) if IsWall(pos.x, pos.y, pos.z) then return false end end if self:IsUnderTurretEnemy(dashPos) then return false end local Check = 2 local enemyCountDashPos = self:CountEnemiesInRange(dashPos, 600); if Check > enemyCountDashPos then return true end local CountEnemy = CountEnemyChampAroundObject(myHero.Addr, 400) if enemyCountDashPos <= CountEnemy then return true end return false end function Yasuo:WQ(target) if self.W:IsReady() and self.Q:IsReady() and GetDistance(target) < 425 then self.W:Cast(target) self.Q:Cast(target) end end function Yasuo:HarassQ3(target) if self.Q:IsReady() and GetDistance(target) < self.Q.range and self.passiveTracker then self.Q:Cast(target) end end function Yasuo:UtimoHit() self.EnemyMinions:update() for k, v in pairs(self.EnemyMinions.objects) do if CanCast(_Q) and IsValidTarget(v, self.Q.range) and v.IsEnemy then CastSpellToPos(v.x,v.z, _Q) end end end function Yasuo:StackQ() if not self.passiveTracker then self.EnemyMinions:update() for k, v in pairs(self.EnemyMinions.objects) do if v and CanCast(_Q) and IsValidTarget(v, self.Q.range) and v.IsEnemy then CastSpellToPos(v.x,v.z, _Q) end end self.JungleMinions:update() for k, v in pairs(self.JungleMinions.objects) do if v and CanCast(_Q) and IsValidTarget(v, self.Q.range) and v.IsEnemy then CastSpellToPos(v.x,v.z, _Q) end end end SearchAllChamp() for i, enemy in pairs(pObjChamp) do if enemy ~= 0 then local hero = GetAIHero(enemy) if hero and CanCast(_Q) and IsValidTarget(hero, self.Q.range) and not self:IsUnderTurretEnemy(hero) and GetDistance(hero) > 0 and hero.IsEnemy then CastSpellToPos(hero.x,hero.z, _Q) end end end end function Yasuo:OnTick() if IsDead(myHero.Addr) or IsTyping() or IsDodging() then return end self.passiveTracker = false if GetSpellNameByIndex(myHero.Addr, _Q) == "YasuoQW" then self.Q.range = 425 self.Q:SetSkillShot(0.25, math.huge, 30, false) elseif GetSpellNameByIndex(myHero.Addr, _Q) == "YasuoQ3W" then self.passiveTracker = true self.Q.range = 1000 self.Q:SetSkillShot(0.25, 1200, 90, false) end self:AntiDashsing() self:AutoUtimatey() if GetKeyPress(self.Harass) > 0 then self:UtimoHit() end if GetKeyPress(self.Flee) > 0 then self:Fleey() self:FleeJG() end if GetKeyPress(self.Lane_Clear) > 0 then local target = self.menu_ts:GetTarget() self:HarassQ3(target) self:FarmClear() self:FarmJungle() end if GetKeyPress(self.ActiveR) > 0 then local target = self.menu_ts:GetTarget() self:Utimatey(target) end if GetKeyPress(self.menu_key_combo) > 0 then local target = self.menu_ts:GetTarget() self:WQ(target) self:Combo(target) self:UseR(target) end self:StackQ() end function Yasuo:FleeJG() local mousePos = Vector(GetMousePos()) MoveToPos(mousePos.x,mousePos.z) for i, minions in ipairs(self:JungleClear()) do if minions ~= 0 then local jungle = GetUnit(minions) if jungle.Type == 3 then if CanCast(_E) then if jungle ~= nil and GetDistance(jungle) < self.E.range then self.E:Cast(jungle.Addr) end end end end end end function Yasuo:FarmClear() self.EnemyMinions:update() for k, v in pairs(self.EnemyMinions.objects) do if CanCast(_Q) and IsValidTarget(v, self.Q.range) and self.UseQClear and v.IsEnemy then CastSpellToPos(v.x,v.z, _Q) end if Setting_IsLaneClearUseE() and CanCast(_E) and GetDistance(v) < self.E.range and self.UseEClear and not self.passiveTracker and v.IsEnemy and not self:IsUnderTurretEnemy(v) then CastSpellTarget(v.Addr, _E) end end end function Yasuo:UseR(target) if target ~= 0 then local hero = GetAIHero(target) if self.R:IsReady() and IsValidTarget(target, self.R.range) and CountEnemyChampAroundObject(target, self.R.range) < self.MinInimigo and hero.HP*100/hero.MaxHP < self.Life and hero.IsEnemy then self.R:Cast(target) end end end function OnLoad() if GetChampName(GetMyChamp()) == "Yasuo" then Yasuo:__init() end end
local garageMarker addEvent("dpMarkers.use", false) local function updateGarageMarker() local houseLocation = getPlayerHouseLocation(localPlayer) if not houseLocation then return end garageMarker.position = houseLocation.garage.position - Vector3(0, 0, 0.4) end -- Перемещение маркера гаража при покупке/продаже дома или входе на сервер addEventHandler("onClientElementDataChange", localPlayer, function (dataName) if dataName == "house_data" or dataName == "_id" then updateGarageMarker() end end) addEventHandler("onClientResourceStart", resourceRoot, function () garageMarker = exports.dpMarkers:createMarker("garage", Vector3(0, 0, 0), 180) addEventHandler("dpMarkers.use", garageMarker, function() exports.dpGarage:enterGarage() end) -- Метка на радаре local garageBlip = createBlip(0, 0, 0, 27) garageBlip:attach(garageMarker) garageBlip:setData("text", "blip_garage") updateGarageMarker() end)
local Class = require('./utils/class') local VK = require('./vk') local Queue = require('./queue') local APIWrapper = require('./api_wrapper') local LongPoll = require('./longpoll') local Router = require('./router') local logger = require('./utils/logger') local Bot = Class{} function Bot:init(options) if type(options) == 'string' or not options.token then options = {token = options} end local vk = VK(options.token, options.version) if options.queued then vk = Queue(vk) end self.api = APIWrapper(vk) self.longpoll = LongPoll(vk, options.group_id, options.wait) self.router = Router() self.on = self.router.on self.running = false end function Bot:run() logger:info("Bot longpoll started...") self.running = true coroutine.wrap(function() while self.running do for _, event in ipairs(self.longpoll:get_updates()) do self.router:handle_event(event) end end end)() end function Bot:stop() -- TO DO: longpoll stopping only after next request self.running = false logger:info("Bot longpoll stopped...") end return Bot
-- ============================================================================================== -- --- ## layout.lua -- A simple but powerful device and display-size independent layout manager for the Corona SDK. -- **OVERVIEW** -- The layout manager makes it easy to create *regions*, rectangular areas -- defined relative to the screen, the stage (which may or may not be the full -- screen), and to the previously created user-defined regions. The final -- regions are created with content coordinates. No actual display objects are -- created, the programmer is free to utilize the defined regions in any manner. -- There are default 'screen' and 'stage' regions, but the real power of the -- layout manager is its ability to easily define new regions using simple but -- powerful positioning and sizing options relative to any region that already -- exists. -- Each **region** is stored as a table within the layout manager object. Each region contains the -- following fields that define the region: -- - `width`: (**_number_**) region width in content units -- - `height`: (**_number_**) region height in content units -- - `top`: (**_number_**) content coordinate for top region edge -- - `right`: (**_number_**) content coordinte for right region edge -- - `bottom`: (**_number_**) content coordinate for bottom region edge -- - `left`: (**_number_**) content coordinate for left region edge -- - `xCenter`: (**_number_**) content coordiate for horizontal center -- - `yCenter`: (**_number_**) content coordinate for vertical center -- - `xPct`: (**_number_**) content units for 1% of the region width -- - `yPct`: (**_number_**) content units for 1% of the region height -- - `aspect`: (**_number_**) ratio of region width to height (i.e. width / height) -- - `isPortrait`: (**_bool_**) true if aspect <= 1 -- **EXAMPLES** -- To quickly observe and understand the power and flexibility of the Layout manager, run the -- examples in the Corona simulator and switch around to different devices and orientations. -- The "examples" subfolder contains several examples of how to use the Layout manager. To run -- an example, copy the "example-##.lua" (where ## is a two digit number) file to main.lua, and -- then run the main.lua with the Corona simulator. The build.settings and config.lua files do -- not need to be changed (unless you want to experiment with different settings), these two -- files work with all the examples. Simply copy the example you want to try to main.lua and run. -- -- @classmod Layout -- @release 1.0.0-2016.06.22 -- @author [Ron Pacheco](mailto:ron@wolfden.pub) -- @license [MIT](https://opensource.org/licenses/MIT) -- @copyright 2016 [Wolfden Publishing](http://www.wolfden.pub/), [Ron Pacheco](mailto:ron@wolfden.pub) -- @usage local LayoutManager = require( "layout" ) local Layout = {} -- ============================================================================================== -- --- Constructor - build and return a new Layout object. -- -- The new Layout object will contain the following entries: -- -- - `pixel`: (**number**) content units for one screen pixel (assumes device to have square pixels; -- if not, this value will represent the content units for one pixel in the largest screen dimension) -- - `screen`: (**region**) content region for the full screen -- - `stage`: (**region**) content region for the stage (generally the same as the screen minus the status bar) -- - `pixels`: (**region**) special region for positioning and sizing by pixels -- -- @return new Layout object -- @usage local Layout = LayoutManager:new() function Layout:new() local layout = {} -- screen -- layout.screen = {} local screen = layout.screen screen.user = false screen.width = display.currentStage.width screen.height = display.currentStage.height screen.top = 0 screen.right = screen.width screen.bottom = screen.height screen.left = 0 screen.xCenter = 0.5 * screen.width screen.yCenter = 0.5 * screen.height screen.xPct = 0.01 * screen.width screen.yPct = 0.01 * screen.height screen.aspect = screen.width / screen.height screen.isPortrait = screen.aspect <= 1 local statusBarHeight = display.topStatusBarContentHeight or 0 -- stage (screen minus status bar if present ) -- layout.stage = {} local stage = layout.stage stage.user = false stage.width = display.currentStage.width stage.height = display.currentStage.height - statusBarHeight stage.top = statusBarHeight stage.right = stage.width stage.bottom = stage.height + statusBarHeight stage.left = 0 stage.xCenter = 0.5 * stage.width stage.yCenter = 0.5 * stage.height + statusBarHeight stage.xPct = 0.01 * stage.width stage.yPct = 0.01 * stage.height stage.aspect = stage.width / stage.height stage.isPortrait = stage.aspect <= 1 -- pixel size -- layout.pixel = math.max( screen.width, screen.height ) / math.max( display.pixelHeight, display.pixelWidth ) layout.pixels = {} local pixels = layout.pixels pixels.user = false if ( screen.isPortrait ) then pixels.width = math.min( display.pixelWidth, display.pixelHeight ) pixels.height = math.max( display.pixelWidth, display.pixelHeight ) else pixels.width = math.max( display.pixelWidth, display.pixelHeight ) pixels.height = math.min( display.pixelWidth, display.pixelHeight ) end pixels.top = 0 pixels.right = pixels.width pixels.bottom = pixels.height pixels.left = 0 pixels.xCenter = 0.5 * pixels.width pixels.yCenter = 0.5 * pixels.height pixels.xPct = layout.pixel pixels.yPct = layout.pixel pixels.aspect = pixels.width / pixels.height pixels.isPortrait = pixels.aspect <= 1 setmetatable( layout, self ) self.__index = self return layout end -- ============================================================================================== -- --- addRegion - add a new region to the layout manager. -- -- @param dimens a table specifying the options for the new region: -- -- - `id`: (**_string_**) **required** unique identifier for the new region -- - `sizeTo`: (**_string_**) id of region to size against (default: "stage") -- - `width`: (**_number_**) new region width as a percentage of the `sizeTo` region (default: 100) -- - `height`: (**_number_**) new region height as a percentage of the 'sizeTo' region (default: 100) -- - `positionTo`: (**_string_**) id of region to position relative to (defaults to `sizeTo` region) -- - `horizontal`: (**_string_**) one of: "before", "left", "center", "right", "after" (default: "center") -- - `vertical`: (**_string_**) one of: "above", "top", "center", "bottom", "below" (default: "center") -- - `padTo`: (**_string_**) id of region to pad relative to (defaults to `sizeTo` region) -- - `padding`: (**_table_**) array of: `{top=#, right=#, bottom=#, left=#}` (all #'s default to 0) function Layout:addRegion( dimens ) assert( dimens.id, "Region id not defined" ) assert( not self[dimens.id], "Region already exists" ) self[ dimens.id ] = {} local region = self[ dimens.id ] region.user = true dimens.sizeTo = dimens.sizeTo or "stage" dimens.width = dimens.width or 100 dimens.height = dimens.height or 100 local sizTo = self[ dimens.sizeTo ] region.width = dimens.width * sizTo.xPct region.height = dimens.height * sizTo.yPct region.aspect = region.width / region.height region.isPortrait = region.aspect <= 1 region.xPct = 0.01 * region.width region.yPct = 0.01 * region.height dimens.positionTo = dimens.positionTo or dimens.sizeTo dimens.padTo = dimens.padTo or dimens.sizeTo dimens.padding = dimens.padding or { top = 0, right = 0, bottom = 0, left = 0 } dimens.horizontal = dimens.horizontal or "center" dimens.vertical = dimens.vertical or "center" local posTo = self[ dimens.positionTo ] local padTo = self[ dimens.padTo ] if ( dimens.horizontal == "before" ) then local padding = dimens.padding.right or 0 region.xCenter = posTo.left - padding * padTo.xPct - 0.5 * region.width elseif ( dimens.horizontal == "left" ) then local padding = dimens.padding.left or 0 region.xCenter = posTo.left + padding * padTo.xPct + 0.5 * region.width elseif ( dimens.horizontal == "center" ) then region.xCenter = posTo.xCenter elseif ( dimens.horizontal == "right" ) then local padding = dimens.padding.right or 0 region.xCenter = posTo.right - padding * padTo.xPct - 0.5 * region.width elseif ( dimens.horizontal == "after" ) then local padding = dimens.padding.left or 0 region.xCenter = posTo.right + padding * padTo.xPct + 0.5 * region.width end if ( dimens.vertical == "above" ) then local padding = dimens.padding.bottom or 0 region.yCenter = posTo.top - padding * padTo.yPct - 0.5 * region.height elseif ( dimens.vertical == "top" ) then local padding = dimens.padding.top or 0 region.yCenter = posTo.top + padding * padTo.yPct + 0.5 * region.height elseif ( dimens.vertical == "center" ) then region.yCenter = posTo.yCenter elseif ( dimens.vertical == "bottom" ) then local padding = dimens.padding.bottom or 0 region.yCenter = posTo.bottom - padding * padTo.yPct - 0.5 * region.height elseif ( dimens.vertical == "below" ) then local padding = dimens.padding.top or 0 region.yCenter = posTo.bottom + padding * padTo.yPct + 0.5 * region.height end region.top = region.yCenter - 0.5 * region.height region.right = region.xCenter + 0.5 * region.width region.bottom = region.yCenter + 0.5 * region.height region.left = region.xCenter - 0.5 * region.width end -- ============================================================================================== -- --- removeRegion - remove a region from the layout. -- -- @string id id of the region to be removed -- @usage Layout:removeRegion( "toolbar" ) function Layout:removeRegion( id ) assert( self[id], "Specified region does not exist" ) self[id] = nil end -- ============================================================================================== -- --- adjustRegion - change a region's size and/or position. -- -- @param dimens a table specifying the adjustments for the region: -- -- - `id`: (**_string_**) **required** unique identifier for the new region -- - `width`: (**_number_**) new region width in *content* units (default: no change) -- - `height`: (**_number_**) new region height in *content* units (default: no change) -- - `xCenter`: (**_number_**) new region horizontal center in *content* coordinates (default: no change) -- - `yCenter`: (**_number_**) new region vertical center in *content* coordinates (default: no change) function Layout:adjustRegion( dimens ) assert( dimens.id, "Region id not defined" ) assert( self[dimens.id], "Region does not exist" ) assert( self[dimens.id].user, "Can't adjust non-user region" ) local region = self[ dimens.id ] region.width = dimens.width or region.width region.height = dimens.height or region.height region.xCenter = dimens.xCenter or region.xCenter region.yCenter = dimens.yCenter or region.yCenter region.aspect = region.width / region.height region.isPortrait = region.aspect <= 1 region.xPct = 0.01 * region.width region.yPct = 0.01 * region.height region.top = region.yCenter - 0.5 * region.height region.right = region.xCenter + 0.5 * region.width region.bottom = region.yCenter + 0.5 * region.height region.left = region.xCenter - 0.5 * region.width end -- ============================================================================================== -- --- regionRect - return a display rect matching a specified region. -- -- @string id id of the region for which to return a display rect -- @return ShapeObject (as returned by [display.newRect()](https://docs.coronalabs.com/api/library/display/newRect.html)) -- @usage local toolbarRect = Layout:regionRect( "toolbar" ) function Layout:regionRect( id ) assert( self[id], "Specified region does not exist" ) return display.newRect( self[id].xCenter, self[id].yCenter, self[id].width, self[id].height ) end return Layout
#!/usr/bin/env tarantool test = require("sqltester") test:plan(25) --!./tcltestrunner.lua -- 2010 August 27 -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, never taking more than you give. -- ------------------------------------------------------------------------- -- This file implements regression tests for SQLite library. The -- focus of this file is testing that destructor functions associated -- with functions created using sqlite3_create_function_v2() is -- correctly invoked. -- -- ["set","testdir",[["file","dirname",["argv0"]]]] -- ["source",[["testdir"],"\/tester.tcl"]] -- MUST_WORK_TEST built-in functions check desrtoy api of sqlite3_create_function_v2 -- EVIDENCE-OF: R-41921-05214 The likelihood(X,Y) function returns -- argument X unchanged. -- test:do_execsql_test( "func3-5.1", [[ SELECT likelihood(9223372036854775807, 0.5); ]], { -- <func3-5.1> 9223372036854775807LL -- </func3-5.1> }) test:do_execsql_test( "func3-5.2", [[ SELECT likelihood(-9223372036854775808, 0.5); ]], { -- <func3-5.2> -9223372036854775808LL -- </func3-5.2> }) test:do_execsql_test( "func3-5.3", [[ SELECT likelihood(14.125, 0.5); ]], { -- <func3-5.3> 14.125 -- </func3-5.3> }) test:do_execsql_test( "func3-5.4", [[ SELECT likelihood(NULL, 0.5); ]], { -- <func3-5.4> "" -- </func3-5.4> }) test:do_execsql_test( "func3-5.5", [[ SELECT likelihood('test-string', 0.5); ]], { -- <func3-5.5> "test-string" -- </func3-5.5> }) test:do_execsql_test( "func3-5.6", [[ SELECT quote(likelihood(x'010203000405', 0.5)); ]], { -- <func3-5.6> "X'010203000405'" -- </func3-5.6> }) -- EVIDENCE-OF: R-44133-61651 The value Y in likelihood(X,Y) must be a -- floating point constant between 0.0 and 1.0, inclusive. -- test:do_execsql_test( "func3-5.7", [[ SELECT likelihood(123, 1.0), likelihood(456, 0.0); ]], { -- <func3-5.7> 123, 456 -- </func3-5.7> }) test:do_catchsql_test( "func3-5.8", [[ SELECT likelihood(123, 1.000001); ]], { -- <func3-5.8> 1, "second argument to likelihood() must be a constant between 0.0 and 1.0" -- </func3-5.8> }) test:do_catchsql_test( "func3-5.9", [[ SELECT likelihood(123, -0.000001); ]], { -- <func3-5.9> 1, "second argument to likelihood() must be a constant between 0.0 and 1.0" -- </func3-5.9> }) test:do_catchsql_test( "func3-5.10", [[ SELECT likelihood(123, 0.5+0.3); ]], { -- <func3-5.10> 1, "second argument to likelihood() must be a constant between 0.0 and 1.0" -- </func3-5.10> }) -- EVIDENCE-OF: R-28535-44631 The likelihood(X) function is a no-op that -- the code generator optimizes away so that it consumes no CPU cycles -- during run-time (that is, during calls to sqlite3_step()). -- test:do_test( "func3-5.20", function() return test:execsql "EXPLAIN SELECT likelihood(min(1.0+'2.0',4*11), 0.5)" end, test:execsql("EXPLAIN SELECT min(1.0+'2.0',4*11)")) -- EVIDENCE-OF: R-11152-23456 The unlikely(X) function returns the -- argument X unchanged. -- test:do_execsql_test( "func3-5.30", [[ SELECT unlikely(9223372036854775807); ]], { -- <func3-5.30> 9223372036854775807LL -- </func3-5.30> }) test:do_execsql_test( "func3-5.31", [[ SELECT unlikely(-9223372036854775808); ]], { -- <func3-5.31> -9223372036854775808LL -- </func3-5.31> }) test:do_execsql_test( "func3-5.32", [[ SELECT unlikely(14.125); ]], { -- <func3-5.32> 14.125 -- </func3-5.32> }) test:do_execsql_test( "func3-5.33", [[ SELECT unlikely(NULL); ]], { -- <func3-5.33> "" -- </func3-5.33> }) test:do_execsql_test( "func3-5.34", [[ SELECT unlikely('test-string'); ]], { -- <func3-5.34> "test-string" -- </func3-5.34> }) test:do_execsql_test( "func3-5.35", [[ SELECT quote(unlikely(x'010203000405')); ]], { -- <func3-5.35> "X'010203000405'" -- </func3-5.35> }) -- EVIDENCE-OF: R-22887-63324 The unlikely(X) function is a no-op that -- the code generator optimizes away so that it consumes no CPU cycles at -- run-time (that is, during calls to sqlite3_step()). -- test:do_test( "func3-5.39", function() return test:execsql "EXPLAIN SELECT unlikely(min(1.0+'2.0',4*11))" end, test:execsql "EXPLAIN SELECT min(1.0+'2.0',4*11)") -- EVIDENCE-OF: R-23735-03107 The likely(X) function returns the argument -- X unchanged. -- test:do_execsql_test( "func3-5.50", [[ SELECT likely(9223372036854775807); ]], { -- <func3-5.50> 9223372036854775807LL -- </func3-5.50> }) test:do_execsql_test( "func3-5.51", [[ SELECT likely(-9223372036854775808); ]], { -- <func3-5.51> -9223372036854775808LL -- </func3-5.51> }) test:do_execsql_test( "func3-5.52", [[ SELECT likely(14.125); ]], { -- <func3-5.52> 14.125 -- </func3-5.52> }) test:do_execsql_test( "func3-5.53", [[ SELECT likely(NULL); ]], { -- <func3-5.53> "" -- </func3-5.53> }) test:do_execsql_test( "func3-5.54", [[ SELECT likely('test-string'); ]], { -- <func3-5.54> "test-string" -- </func3-5.54> }) test:do_execsql_test( "func3-5.55", [[ SELECT quote(likely(x'010203000405')); ]], { -- <func3-5.55> "X'010203000405'" -- </func3-5.55> }) -- EVIDENCE-OF: R-43464-09689 The likely(X) function is a no-op that the -- code generator optimizes away so that it consumes no CPU cycles at -- run-time (that is, during calls to sqlite3_step()). -- test:do_test( "func3-5.59", function() return test:execsql "EXPLAIN SELECT likely(min(1.0+'2.0',4*11))" end, test:execsql "EXPLAIN SELECT min(1.0+'2.0',4*11)") test:finish_test()
local _G=_G local unpack=unpack local AddOn, Engine = ... local Resolution = select(1, GetPhysicalScreenSize()).."x"..select(2, GetPhysicalScreenSize()) local Windowed = Display_DisplayModeDropDown:windowedmode() local Fullscreen = Display_DisplayModeDropDown:fullscreenmode() Engine[1] = CreateFrame("Frame") Engine[2] = {} Engine[3] = {} Engine[4] = {} function Engine:unpack() return self[1], self[2], self[3], self[4] end Engine[1].WindowedMode = Windowed Engine[1].FullscreenMode = Fullscreen Engine[1].Resolution = Resolution or (Windowed and GetCVar("gxWindowedResolution")) or GetCVar("gxFullscreenResolution") Engine[1].ScreenHeight = select(2, GetPhysicalScreenSize()) Engine[1].ScreenWidth = select(1, GetPhysicalScreenSize()) Engine[1].PerfectScale = min(1, max(0.3, 768 / string.match(Resolution, "%d+x(%d+)"))) Engine[1].MyName = UnitName("player") Engine[1].MyClass = select(2, UnitClass("player")) Engine[1].MyLevel = UnitLevel("player") Engine[1].MyFaction = select(2, UnitFactionGroup("player")) Engine[1].MyRace = select(2, UnitRace("player")) Engine[1].MyRealm = GetRealmName() Engine[1].Version = GetAddOnMetadata(AddOn, "Version") Engine[1].VersionNumber = tonumber(Engine[1].Version) Engine[1].WoWPatch, Engine[1].WoWBuild, Engine[1].WoWPatchReleaseDate, Engine[1].TocVersion = GetBuildInfo() Engine[1].WoWBuild = tonumber(Engine[1].WoWBuild) Engine[1].Hider = CreateFrame("Frame", nil, UIParent) --Engine[1].PetHider = CreateFrame("Frame", "VorkuiPetHider", UIParent, "SecureHandlerStateTemplate") SLASH_RELOADUI1 = "/rl" SlashCmdList.RELOADUI = ReloadUI Vorkui = Engine
--Explosive function explosivesmall(data) return { type = "projectile", ammo_category = "explosive-rocket", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 0.5, damage_modifier = data.damage_modifier, warmup = 5, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "projectile", projectile = "explosive-rocket", starting_speed = 0.1, source_effects = { type = "create-entity", entity_name = "explosion-hit" } } } }, --sound = make_spitter_roars(data.roarvolume), animation = biterattackanimation(smallspitterscale, data.tint, data.tint2) } end function explosivemedium(data) return { type = "projectile", ammo_category = "explosive-rocket", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 0.5, damage_modifier = data.damage_modifier, warmup = 5, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "projectile", projectile = "explosive-rocket", starting_speed = 0.1, source_effects = { type = "create-entity", entity_name = "explosion-hit" } } } }, --sound = make_spitter_roars(data.roarvolume), animation = biterattackanimation(mediumspitterscale, data.tint, data.tint2) } end function explosivebig(data) return { type = "projectile", ammo_category = "explosive-rocket", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 0.5, damage_modifier = data.damage_modifier, warmup = 5, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "projectile", projectile = "explosive-rocket", starting_speed = 0.1, source_effects = { type = "create-entity", entity_name = "explosion-hit" } } } }, --sound = make_spitter_roars(data.roarvolume), animation = biterattackanimation(bigspitterscale, data.tint, data.tint2) } end function explosivebehemoth(data) return { type = "projectile", ammo_category = "explosive-rocket", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 0.5, damage_modifier = data.damage_modifier, warmup = 5, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "projectile", projectile = "explosive-rocket", starting_speed = 0.1, source_effects = { type = "create-entity", entity_name = "explosion-hit" } } } }, --sound = make_spitter_roars(data.roarvolume), animation = biterattackanimation(behemothspitterscale, data.tint, data.tint2) } end function explosiveexp(data) return { type = "projectile", ammo_category = "explosive-rocket", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 0.5, damage_modifier = data.damage_modifier, warmup = 5, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "projectile", projectile = "explosive-rocket", starting_speed = 0.1, source_effects = { type = "create-entity", entity_name = "explosion-hit" } } } }, --sound = make_spitter_roars(data.roarvolume), animation = biterattackanimation(expspitterscale, data.tint, data.tint2) } end --Flamer data:extend( { { type = "flame-thrower-explosion", name = "flame-thrower-bicho", flags = {"not-on-map"}, animation_speed = 1, animations = { { filename = "__5dim_battlefield__/graphics/icon/flame-thrower-bicho.png", priority = "extra-high", width = 64, height = 64, frame_count = 64, line_length = 8 } }, light = {intensity = 0.2, size = 20}, slow_down_factor = 1, smoke = "smoke-fast", smoke_count = 1, smoke_slow_down_factor = 0.95, damage = {amount = 0.3, type = "acid"} } } ) function flamersmall(data) return { type = "projectile", ammo_category = "flame-thrower-ammo", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 1.5, damage_modifier = data.damage_modifier, warmup = 1, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "flame-thrower", explosion = "flame-thrower-bicho", direction_deviation = 0.07, speed_deviation = 0.1, starting_frame_deviation = 0.07, projectile_starting_speed = 0.2, starting_distance = 0.6 } } }, --sound = make_spitter_roars(data.roarvolume), animation = spitterattackanimation(smallbitterscale, data.tint, data.tint2) } end function flamermedium(data) return { type = "projectile", ammo_category = "flame-thrower-ammo", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 1.5, damage_modifier = data.damage_modifier, warmup = 1, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "flame-thrower", explosion = "flame-thrower-bicho", direction_deviation = 0.07, speed_deviation = 0.1, starting_frame_deviation = 0.07, projectile_starting_speed = 0.2, starting_distance = 1 } } }, --sound = make_spitter_roars(data.roarvolume), animation = spitterattackanimation(mediumbitterscale, data.tint, data.tint2) } end function flamerbig(data) return { type = "projectile", ammo_category = "flame-thrower-ammo", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 1.5, damage_modifier = data.damage_modifier, warmup = 1, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "flame-thrower", explosion = "flame-thrower-bicho", direction_deviation = 0.07, speed_deviation = 0.1, starting_frame_deviation = 0.07, projectile_starting_speed = 0.2, starting_distance = 2 } } }, --sound = make_spitter_roars(data.roarvolume), animation = spitterattackanimation(bigbitterscale, data.tint, data.tint2) } end function flamerbehemoth(data) return { type = "projectile", ammo_category = "flame-thrower-ammo", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 1.5, damage_modifier = data.damage_modifier, warmup = 1, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "flame-thrower", explosion = "flame-thrower-bicho", direction_deviation = 0.07, speed_deviation = 0.1, starting_frame_deviation = 0.07, projectile_starting_speed = 0.2, starting_distance = 3 } } }, --sound = make_spitter_roars(data.roarvolume), animation = spitterattackanimation(behemothbitterscale, data.tint, data.tint2) } end function flamerexp(data) return { type = "projectile", ammo_category = "flame-thrower-ammo", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 1.5, damage_modifier = data.damage_modifier, warmup = 1, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "flame-thrower", explosion = "flame-thrower-bicho", direction_deviation = 0.07, speed_deviation = 0.1, starting_frame_deviation = 0.07, projectile_starting_speed = 0.2, starting_distance = 6 } } }, --sound = make_spitter_roars(data.roarvolume), animation = spitterattackanimation(expbitterscale, data.tint, data.tint2) } end --Rocket function rocketlaunchersmall(data) return { type = "projectile", ammo_category = "explosive-rocket", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 1.5, damage_modifier = data.damage_modifier, warmup = 50, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "projectile", projectile = "acid-projectile-purple", starting_speed = 0.1, source_effects = { type = "create-entity", entity_name = "explosion-hit" } } } }, --sound = make_spitter_roars(data.roarvolume), animation = spitterattackanimation(smallspitterscale, data.tint, data.tint2) } end function rocketlaunchermedium(data) return { type = "projectile", ammo_category = "explosive-rocket", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 1.5, damage_modifier = data.damage_modifier, warmup = 50, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "projectile", projectile = "acid-projectile-purple", starting_speed = 0.1, source_effects = { type = "create-entity", entity_name = "explosion-hit" } } } }, --sound = make_spitter_roars(data.roarvolume), animation = spitterattackanimation(mediumspitterscale, data.tint, data.tint2) } end function rocketlauncherbig(data) return { type = "projectile", ammo_category = "explosive-rocket", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 1.5, damage_modifier = data.damage_modifier, warmup = 50, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "projectile", projectile = "acid-projectile-purple", starting_speed = 0.1, source_effects = { type = "create-entity", entity_name = "explosion-hit" } } } }, --sound = make_spitter_roars(data.roarvolume), animation = spitterattackanimation(bigspitterscale, data.tint, data.tint2) } end function rocketlauncherbehemoth(data) return { type = "projectile", ammo_category = "explosive-rocket", cooldown = data.cooldown, range = data.range, projectile_creation_distance = 1.5, damage_modifier = data.damage_modifier, warmup = 50, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "projectile", projectile = "acid-projectile-purple", starting_speed = 0.1, source_effects = { type = "create-entity", entity_name = "explosion-hit" } } } }, --sound = make_spitter_roars(data.roarvolume), animation = spitterattackanimation(behemothspitterscale, data.tint, data.tint2) } end function rocketlauncherexp(data) return { type = "projectile", ammo_category = "explosive-rocket", cooldown = data.cooldown, range = data.range + 2, projectile_creation_distance = 1.5, damage_modifier = data.damage_modifier, warmup = 50, ammo_type = { category = "biological", action = { type = "direct", action_delivery = { type = "projectile", projectile = "acid-projectile-purple", starting_speed = 0.1, source_effects = { type = "create-entity", entity_name = "explosion-hit" } } } }, --sound = make_spitter_roars(data.roarvolume), animation = spitterattackanimation(expspitterscale, data.tint, data.tint2) } end function acid_stream(data) return { type = "stream", name = data.name, flags = {"not-on-map"}, --stream_light = {intensity = 1, size = 4}, --ground_light = {intensity = 0.8, size = 4}, particle_buffer_size = 90, particle_spawn_interval = data.particle_spawn_interval, particle_spawn_timeout = data.particle_spawn_timeout, particle_vertical_acceleration = 0.005 * 0.60 * 1.5, --x particle_horizontal_speed = 0.2 * 0.75 * 1.5 * 1.5, --x particle_horizontal_speed_deviation = 0.005 * 0.70, particle_start_alpha = 0.5, particle_end_alpha = 1, particle_alpha_per_part = 0.8, particle_scale_per_part = 0.8, particle_loop_frame_count = 15, --particle_fade_out_threshold = 0.95, particle_fade_out_duration = 2, particle_loop_exit_threshold = 0.25, special_neutral_target_damage = {amount = 1, type = "acid"}, working_sound = { sound = { { filename = "__base__/sound/fight/projectile-acid-burn-loop.ogg", volume = 0.4 } } }, initial_action = { { type = "direct", action_delivery = { type = "instant", target_effects = { { type = "play-sound", sound = { { filename = "__base__/sound/creatures/projectile-acid-burn-1.ogg", volume = 0.65 }, { filename = "__base__/sound/creatures/projectile-acid-burn-2.ogg", volume = 0.65 }, { filename = "__base__/sound/creatures/projectile-acid-burn-long-1.ogg", volume = 0.6 }, { filename = "__base__/sound/creatures/projectile-acid-burn-long-2.ogg", volume = 0.6 } } }, { type = "create-fire", entity_name = data.splash_fire_name, tile_collision_mask = {"water-tile"}, show_in_tooltip = true }, { type = "create-entity", entity_name = "water-splash", tile_collision_mask = {"ground-tile"} } } } }, { type = "area", radius = data.spit_radius, force = "enemy", ignore_collision_condition = true, action_delivery = { type = "instant", target_effects = { { type = "create-sticker", sticker = data.sticker_name }, { type = "damage", damage = {amount = 1, type = "acid"} } } } } }, particle = { filename = "__base__/graphics/entity/acid-projectile/acid-projectile-head.png", line_length = 5, width = 22, height = 84, frame_count = 15, shift = util.mul_shift(util.by_pixel(-2, 30), data.scale), tint = data.tint, priority = "high", scale = data.scale, animation_speed = 1, hr_version = { filename = "__base__/graphics/entity/acid-projectile/hr-acid-projectile-head.png", line_length = 5, width = 42, height = 164, frame_count = 15, shift = util.mul_shift(util.by_pixel(-2, 31), data.scale), tint = data.tint, priority = "high", scale = 0.5 * data.scale, animation_speed = 1 } }, spine_animation = { filename = "__base__/graphics/entity/acid-projectile/acid-projectile-tail.png", line_length = 5, width = 66, height = 12, frame_count = 15, shift = util.mul_shift(util.by_pixel(0, -2), data.scale), tint = data.tint, priority = "high", scale = data.scale, animation_speed = 1, hr_version = { filename = "__base__/graphics/entity/acid-projectile/hr-acid-projectile-tail.png", line_length = 5, width = 132, height = 20, frame_count = 15, shift = util.mul_shift(util.by_pixel(0, -1), data.scale), tint = data.tint, priority = "high", scale = 0.5 * data.scale, animation_speed = 1 } }, shadow = { filename = "__base__/graphics/entity/acid-projectile/acid-projectile-shadow.png", line_length = 15, width = 22, height = 84, frame_count = 15, priority = "high", shift = util.mul_shift(util.by_pixel(-2, 30), data.scale), draw_as_shadow = true, scale = data.scale, animation_speed = 1, hr_version = { filename = "__base__/graphics/entity/acid-projectile/hr-acid-projectile-shadow.png", line_length = 15, width = 42, height = 164, frame_count = 15, shift = util.mul_shift(util.by_pixel(-2, 31), data.scale), draw_as_shadow = true, priority = "high", scale = 0.5 * data.scale, animation_speed = 1 } }, oriented_particle = true, shadow_scale_enabled = true } end
local fstore = require('nle.func-store') --[[ -- Example spec: -- { -- fn = ..., -- args = ... -- } -- -- --]] local function args_to_vim(fargs) local out = "" for ak, av in pairs(fargs) do if ak == 'complete' and type(av) == 'function' then local info = debug.getinfo(av) out = out .. "-" .. ak .. "=custom," .. fstore.fmt_for_vim_cmd(fstore.set(av), info.isvararg or info.nparams > 0) .. " " else out = out .. "-" .. ak .. "=" .. av .. " " end end return out end local function process_spec(spec) if type(spec) == 'table' then if spec.fn then local args, repl = process_spec(spec.fn) return args_to_vim(spec.args or {}) .. args, repl end elseif type(spec) == 'function' then local info = debug.getinfo(spec) local nb_args = (function() if info.isvararg then return '*' else return tostring(info.nparams) end end)() local fid = fstore.set(spec) return args_to_vim({ nargs = nb_args }), fstore.fmt_for_vim_cmd(fid, info.isvararg or (info.nparams > 0)) end end local function add_cmd(name, spec) local args, repl = process_spec(spec) local bang = type(spec) == 'table' and spec.bang return string.format("command%s %s%s %s", (bang and '!') or '', args, name, repl) end local M = {} function M.build(name, spec) return add_cmd(name, spec) end function M.add(name, spec) vim.cmd(M.build(name, spec)) end function M.rm(name) vim.cmd("delcommand " .. name) end return M
process_version = "v1.0.1" local Action_project = { {"[1],[SLEEP],[3],[],[]"}, {"[1],[TOUCH],[home,0,2],[],[<业务输入_P>]"}, } local Action_ject = { {"[1],[input],[业务逻辑处理],[],[检查输入是否丢失_J]"}, }
package.path = package.path .. ";data/scripts/lib/?.lua" local config = include("data/config/trade_manager_config") if config.debug then function execute(playerIndex, commandName) local player = Player(playerIndex) broadcastInvokeClientFunction("reloadTradeManager") return 0, "executed", "" end function getDescription() return "Reload trade manager script, making it easier to debug the script" end function getHelp() return "Reload trade manager script, making it easier to debug the script. Usage: /reload" end end
-- Project class -- services local CollectionService = game:GetService("CollectionService") -- constants local TAG_PREFIX = ".Rofresh_" local CONTAINER_NAME = "init" -- utility functions local function existsIn(array, value) for i = 1, #array do if value == array[i] then return true end end return false end local function findFirstChildOfNameAndClass(parent, name, classNames) if typeof(classNames) == "string" then classNames = {classNames} end for _, child in pairs(parent:GetChildren()) do local success, condition = pcall(function() return child.Name == name and existsIn(classNames, child.ClassName) end) if success and condition then return child end end end local function findOnPath(path, className) local name = table.remove(path) local parent = game for i = 1, #path do parent = parent:FindFirstChild(path[i]) if not parent then return end end return findFirstChildOfNameAndClass(parent, name, className) end -- class definition local Project = {} Project.instances = {} Project.__index = Project function Project.new(id, tagOverride) local self = setmetatable({}, Project) Project.instances[id] = self self.id = id self.tag = tagOverride or TAG_PREFIX .. id return self end local function getPathStr(object) local pathStr = object.Name .. "." .. object.ClassName local parent = object.Parent while parent and parent ~= game do pathStr = parent.Name .. "." .. pathStr parent = parent.Parent end return pathStr end function Project:unsync(object) if CollectionService:HasTag(object, self.tag) then local children = object:GetChildren() if #children > 0 then local folder = Instance.new("Folder") CollectionService:AddTag(object, self.tag) folder.Name = object.Name folder.Parent = object.Parent for _, child in pairs(children) do child.Parent = folder end object:Destroy() else local parent = object.Parent object:Destroy() if parent and parent:IsA("Folder") and #parent:GetChildren() == 0 then self:unsync(parent) end end end end function Project:getScriptObject(path, className, isContainer) local name = table.remove(path) if not name then return end local parent = game for i = 1, #path do local object = parent:FindFirstChild(path[i]) if not object then if parent == game then object = game:GetService(path[i]) else object = Instance.new("Folder", parent) end CollectionService:AddTag(object, self.tag) object.Name = path[i] end parent = object end local scriptObject = findFirstChildOfNameAndClass(parent, name, className) if not scriptObject then if isContainer then local folder = findFirstChildOfNameAndClass(parent, name, {"Folder", "Script", "LocalScript", "ModuleScript"}) if folder then scriptObject = Instance.new(className) CollectionService:AddTag(scriptObject, self.tag) scriptObject.Name = name for _, child in pairs(folder:GetChildren()) do child.Parent = scriptObject end folder:Destroy() scriptObject.Parent = parent else scriptObject = Instance.new(className, parent) CollectionService:AddTag(scriptObject, self.tag) scriptObject.Name = name end else scriptObject = Instance.new(className, parent) CollectionService:AddTag(scriptObject, self.tag) scriptObject.Name = name end end return scriptObject end function Project:processChanges(changes, initial) local paths = {} for _, change in pairs(changes) do local doCreate = change.source ~= nil local isContainer = false if change.path[#change.path] == CONTAINER_NAME then table.remove(change.path) isContainer = true end local pathStr = table.concat(change.path, ".") .. "." .. change.type paths[pathStr] = true if doCreate then _G.rofresh.debugPrint("ADD", pathStr) local scriptObject = self:getScriptObject(change.path, change.type, isContainer) if scriptObject then CollectionService:AddTag(scriptObject, self.tag) scriptObject.Source = change.source end else _G.rofresh.debugPrint("REMOVE", pathStr) local object = findOnPath(change.path, change.type) if object then if change.type == "Folder" then for _, descendant in pairs(object:GetDescendants()) do if descendant:IsA("LuaSourceContainer") then self:unsync(descendant) end end else self:unsync(object) end end end end if initial then local syncObjects = CollectionService:GetTagged(self.tag) for _, object in pairs(syncObjects) do if object:IsA("LuaSourceContainer") then local pathStr = getPathStr(object) if not paths[pathStr] then _G.rofresh.debugPrint("REMOVE", pathStr) self:unsync(object) end end end end end function Project:getPathFromScript(script) local path = {} local object = script while object ~= game do table.insert(path, 1, object.Name) object = object.Parent end return path end return Project
return { name = "doh.dns.sb", label = _("DNS.SB"), resolver_url = "https://doh.dns.sb/dns-query", bootstrap_dns = "185.222.222.222,185.184.222.222", http2_only = true, help_link = "https://dns.sb/doh/", help_link_text = "DNS.sb" }
-- -*- coding:utf-8 -*- --- mysql 辅助函数. -- 使用 pl.class 封装了 mysql 数据库的连接和释放。 -- @classmod mysql_helper -- @author:phenix3443@gmail.com local cjson = require("cjson.safe") local mysql = require("resty.mysql") local class = require("pl.class") local M = class() --- mysql 实例初始化函数. -- 与 mysql 数据库建立连接,该函数不需要手动调用。 -- @param db_cfg 包含 mysql 数据库的连接信息: -- host,port,database,user,password function M:_init(db_cfg) local db, err = mysql:new() if not db then ngx.log(ngx.ERR,"failed to instantiate mysql: ", err) return end local ok, err, errcode, sqlstate = db:connect(db_cfg) if not ok then ngx.log(ngx.ERR,"failed to connect: ",db_cfg.database," err:", err, " errcode:", errcode, " ", sqlstate) return end ngx.log(ngx.DEBUG,"connected to ", db_cfg.database) self.db = db end --- 判断 mysql 实例连接是否建立成功. -- @return 如果成功,返回 mysql 的连接对象。 function M:is_connected() return self.db end --- 关闭 mysql 连接. -- 此处使用 keepalive 进行高可用。 function M:close() local ok, err = self.db:set_keepalive(10000, 100) if not ok then ngx.log(ngx.ERR, "failed to set keepalive: ", err) return end end return M
--deadlock loaders integration if deadlock_loaders then deadlock_loaders.create({ tier = 4, transport_belt = "nuclear-transport-belt", underground_belt = "nuclear-underground-belt", splitter = "nuclear-splitter", colour = {r = 0, g = 255, b = 0}, ingredients = { {"nuclear-metal", 2}, {"iron-gear-wheel", 10}, {"nuclear-transport-belt", 1}, {type="fluid", name="lubricant", amount=10} }, crafting_category = "crafting-with-fluid", technology = "nuclear-logistics", localisation_prefix = "nuclear" }) end --DSB integration if deadlock_crafting then deadlock_stacking.create("coal-piece", nil) deadlock_stacking.create("JohnTheCF-furnace", nil, "JohnTheCF-processing") deadlock_stacking.create("sawdust", nil) deadlock_stacking.create("compressed-fuel", nil, "compresser") deadlock_stacking.create("nuclear-metal", nil, "nuclear-automation") deadlock_stacking.create("raw-nuclear-metal", nil, "nuclear-automation") end --DCM integration if deadlock_crating then deadlock_crating.create("coal-piece", "deadlock-crating-1") deadlock_crating.create("JohnTheCF-furnace", "JohnTheCF-processing") deadlock_crating.create("sawdust", "deadlock-crating-1") deadlock_crating.create("compressed-fuel", "compresser") deadlock_crating.create("nuclear-metal", "nuclear-automation") deadlock_crating.create("raw-nuclear-metal", "nuclear-automation") end
local i18n = require 'core.i18n' local json = require 'cjson' local pretty = require 'core.pretty' local testcases_path = 'spec/validation/rules/' local testcases = { 'bytes.json', 'compare.json', 'email.json', 'empty.json', 'fields.json', 'length.json', 'nilable.json', 'nonempty.json', 'pattern.json', 'range.json', 'required.json', 'succeed.json', 'typeof.json' } local function read(path) local f = assert(io.open(path)) local d = json.decode(f:read('*a')) f:close() return d end local function test_suite(suite) local rule = require('validation.rules.' .. suite.rule) local validator = rule(unpack(suite.args)) for _, case in next, suite.tests do it(case.description, function() for _, sample in next, case.samples do local model if sample == json.null then sample = nil elseif type(sample) == 'table' then sample, model = unpack(sample) end local err = validator:validate(sample, model, i18n.null) assert.equals(case.err, err, 'sample: ' .. pretty.dump(sample)) end end) end end describe('validation rules', function() for _, path in next, testcases do for _, suite in next, read(testcases_path .. path) do describe(suite.description .. ' (' .. path .. ')', function() test_suite(suite) end) end end end)
local M = { } TurtleTool=M function M.warnning()--warnning function print("Error!!!") end --basic movement function--start function M.moveForwardByDig() turtle.dig() turtle.forward() turtle.suck() end function M.moveBackByDig() turtle.turnLeft() turtle.turnLeft() turtle.dig() turtle.forward() turtle.turnLeft() turtle.turnLeft() turtle.suck() end function M.moveUpByDig() turtle.digUp() turtle.up() turtle.suck() end function M.moveDownByDig() turtle.digDown() turtle.down() turtle.suck() end --basic movement function--end --Variable step movement function--start function M.w(n) for i=1,n do M.moveForwardByDig() end end function M.s(n) for i=1,n do M.moveBackByDig() end end function M.a(n) turtle.turnLeft() for i=1,n do M.moveForwardByDig() end end function M.d(n) turtle.turnRight() for i=1,n do M.moveForwardByDig() end end function M.r(n) for i=1,n do M.moveUpByDig() end end function M.down(n) for i=1,n do M.moveDownByDig() end end --Variable step movement function--end function M.tryMakeWay() local stone=false if not turtle.inspectDown() then if M.findCobblestoneSlot()~=-1 then turtle.select(M.findCobblestoneSlot()) turtle.placeDown() end end end -- function M.findCobblestoneSlot() local cobblestoneSolt=-1; for i = 1, 16 do local m=turtle.getItemDetail(i,true) if m then local t=m.tags if (t["forge:cobblestone"]==true) then --turtle.select(i) -- turtle.placeDown() cobblestoneSolt=i break end end end return cobblestoneSolt end return TurtleTool
-- -- PERFTEST.LUA Copyright (c) 2007-08, Asko Kauppi <akauppi@gmail.com> -- -- Performance comparison of multithreaded Lua (= how much ballast does using -- Lua Lanes introduce) -- -- Usage: -- [time] lua -lstrict perftest.lua [threads] [-plain|-single[=2..n]] [-time] [-prio[=-2..+2[,-2..+2]]] -- -- threads: number of threads to launch (loops in 'plain' mode) -- -plain: runs in nonthreaded mode, to get a comparison baseline -- -single: runs using just a single CPU core (or 'n' cores if given) -- -prio: sets odd numbered threads to higher/lower priority -- -- History: -- AKa 20-Jul-08: updated to Lanes 2008 -- AK 14-Apr-07: works on Win32 -- -- To do: -- (none?) -- -- On MSYS, stderr is buffered. In this test it matters. -- Seems, even with this MSYS wants to buffer linewise, needing '\n' -- before actual output. -- local MSYS= os.getenv("OSTYPE")=="msys" require "lanes" local m= require "argtable" local argtable= assert( m.argtable ) local N= 1000 -- threads/loops to use local M= 1000 -- sieves from 1..M local PLAIN= false -- single threaded (true) or using Lanes (false) local SINGLE= false -- cores to use (false / 1..n) local TIME= false -- use Lua for the timing local PRIO_ODD, PRIO_EVEN -- -3..+3 local function HELP() io.stderr:write( "Usage: lua perftest.lua [threads]\n" ) end -- nil -> +2 -- odd_prio[,even_prio] -- local function prio_param(v) if v==true then return 2,-2 end local a,b= string.match( v, "^([%+%-]?%d+)%,([%+%-]?%d+)$" ) if a then return tonumber(a), tonumber(b) elseif tonumber(v) then return tonumber(v) else error( "Bad priority: "..v ) end end for k,v in pairs( argtable(...) ) do if k==1 then N= tonumber(v) or HELP() elseif k=="plain" then PLAIN= true elseif k=="single" then SINGLE= v -- true/number elseif k=="time" then TIME= true elseif k=="prio" then PRIO_ODD, PRIO_EVEN= prio_param(v) else HELP() end end PRIO_ODD= PRIO_ODD or 0 PRIO_EVEN= PRIO_EVEN or 0 -- SAMPLE ADOPTED FROM Lua 5.1.1 test/sieve.lua -- -- the sieve of of Eratosthenes programmed with coroutines -- typical usage: lua -e N=1000 sieve.lua | column -- AK: Wrapped within a surrounding function, so we can pass it to Lanes -- Note that coroutines can perfectly fine be used within each Lane. :) -- -- AKa 20-Jul-2008: Now the wrapping to one function is no longer needed; -- Lanes 2008 can take the used functions as upvalues. -- local function sieve_lane(N,id) if MSYS then io.stderr:setvbuf "no" end -- generate all the numbers from 2 to n local function gen (n) return coroutine.wrap(function () for i=2,n do coroutine.yield(i) end end) end -- filter the numbers generated by `g', removing multiples of `p' local function filter (p, g) return coroutine.wrap(function () while 1 do local n = g() if n == nil then return end if math.mod(n, p) ~= 0 then coroutine.yield(n) end end end) end local ret= {} -- returned values: { 2, 3, 5, 7, 11, ... } N=N or 1000 -- from caller local x = gen(N) -- generate primes up to N while 1 do local n = x() -- pick a number until done if n == nil then break end --print(n) -- must be a prime number table.insert( ret, n ) x = filter(n, x) -- now remove its multiples end io.stderr:write(id..(MSYS and "\n" or "\t")) -- mark we're ready return ret end -- ** END OF LANE ** -- -- Keep preparation code outside of the performance test -- local f_even= lanes.gen( "base,coroutine,math,table,io", -- "*" = all { priority= PRIO_EVEN }, sieve_lane ) local f_odd= lanes.gen( "base,coroutine,math,table,io", -- "*" = all { priority= PRIO_ODD }, sieve_lane ) io.stderr:write( "*** Counting primes 1.."..M.." "..N.." times ***\n\n" ) local t0= TIME and os.time() if PLAIN then io.stderr:write( "Plain (no multithreading):\n" ) for i=1,N do local tmp= sieve_lane(M,i) assert( type(tmp)=="table" and tmp[1]==2 and tmp[168]==997 ) end else if SINGLE then io.stderr:write( (tonumber(SINGLE) and SINGLE or 1) .. " core(s):\n" ) lanes.single(SINGLE) -- limit to N cores (just OS X) else io.stderr:write( "Multi core:\n" ) end if PRIO_ODD ~= PRIO_EVEN then io.stderr:write( ( PRIO_ODD > PRIO_EVEN and "ODD" or "EVEN" ).. " LANES should come first (odd:"..PRIO_ODD..", even:"..PRIO_EVEN..")\n\n" ) else io.stderr:write( "EVEN AND ODD lanes should be mingled (both: "..PRIO_ODD..")\n\n" ) end local t= {} for i=1,N do t[i]= ((i%2==0) and f_even or f_odd) (M,i) end -- Make sure all lanes finished -- for i=1,N do local tmp= t[i]:join() assert( type(tmp)=="table" and tmp[1]==2 and tmp[168]==997 ) end end io.stderr:write "\n" if TIME then local t= os.time() - t0 io.stderr:write( "*** TIMING: "..t.." seconds ***\n" ) end -- -- end
local staffService = false local NoClip = false local ShowName = false local invisible = false local staffRank = nil local colorVar = nil local selected = nil local isSubMenu = {[false] = { RightLabel = "~b~Éxecuter ~s~→→" },[true] = { RightLabel = "~s~→→" }} local stringText = {[true] = "~g~ON~s~",[false] = "~r~OFF~s~"} local staffActions = {} local possiblesQty = {} local gamerTags = {} local items = {} local qty = 1 local NoClipSpeed = 2.0 local function init() TriggerServerEvent("pz_admin:canUse") end local function mug(title, subject, msg) local mugshot, mugshotStr = ESX.Game.GetPedMugshot(PlayerPedId()) ESX.ShowAdvancedNotification(title, subject, msg, mugshotStr, 1) UnregisterPedheadshot(mugshot) end local function playerMarker(player) local ped = GetPlayerPed(player) local pos = GetEntityCoords(ped) DrawMarker(2, pos.x, pos.y, pos.z+1.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.5, 0.5, 255, 255, 255, 170, 0, 1, 2, 0, nil, nil, 0) end local function getItems() TriggerServerEvent("pz_admin:getItems") end local function alterMenuVisibility() RageUI.Visible(RMenu:Get("pz_admin",'pz_admin_main'), not RageUI.Visible(RMenu:Get("pz_admin",'pz_admin_main'))) end local function registerMenus() RMenu.Add("pz_admin", "pz_admin_main", RageUI.CreateMenu("Menu d'administration","Rang: "..Pz_admin.ranks[staffRank].color..Pz_admin.ranks[staffRank].label)) RMenu:Get('pz_admin', 'pz_admin_main').Closed = function()end RMenu.Add('pz_admin', 'pz_admin_self', RageUI.CreateSubMenu(RMenu:Get('pz_admin', 'pz_admin_main'), "Interactions personnelle", "Interactions avec votre joueur")) RMenu:Get('pz_admin', 'pz_admin_self').Closed = function()end RMenu.Add('pz_admin', 'pz_admin_players', RageUI.CreateSubMenu(RMenu:Get('pz_admin', 'pz_admin_main'), "Interactions citoyens", "Interactions avec un citoyen")) RMenu:Get('pz_admin', 'pz_admin_players').Closed = function()end RMenu.Add('pz_admin', 'pz_admin_veh', RageUI.CreateSubMenu(RMenu:Get('pz_admin', 'pz_admin_main'), "Interactions véhicules", "Interactions avec un véhicule proche")) RMenu:Get('pz_admin', 'pz_admin_veh').Closed = function()end RMenu.Add('pz_admin', 'pz_admin_param', RageUI.CreateSubMenu(RMenu:Get('pz_admin', 'pz_admin_self'), "Interactions personnelle", "Paramètres perso")) RMenu:Get('pz_admin', 'pz_admin_param').Closed = function()end RMenu.Add('pz_admin', 'pz_admin_players_interact', RageUI.CreateSubMenu(RMenu:Get('pz_admin', 'pz_admin_players'), "Interactions citoyens", "Interagir avec ce joueur")) RMenu:Get('pz_admin', 'pz_admin_players_interact').Closed = function()end RMenu.Add('pz_admin', 'pz_admin_players_remb', RageUI.CreateSubMenu(RMenu:Get('pz_admin', 'pz_admin_players_interact'), "Interactions citoyens", "Interagir avec ce joueur")) RMenu:Get('pz_admin', 'pz_admin_players_remb').Closed = function()end end local function getCamDirection() local heading = GetGameplayCamRelativeHeading() + GetEntityHeading(GetPlayerPed(-1)) local pitch = GetGameplayCamRelativePitch() local coords = vector3(-math.sin(heading * math.pi / 180.0), math.cos(heading * math.pi / 180.0), math.sin(pitch * math.pi / 180.0)) local len = math.sqrt((coords.x * coords.x) + (coords.y * coords.y) + (coords.z * coords.z)) if len ~= 0 then coords = coords / len end return coords end local function generateStaffOutfit(model) clothesSkin = {} local couleur = Pz_admin.ranks[staffRank].outfit if model == GetHashKey("mp_m_freemode_01") then clothesSkin = { ['bags_1'] = 0, ['bags_2'] = 0, ['tshirt_1'] = 15, ['tshirt_2'] = 2, ['torso_1'] = 178, ['torso_2'] = couleur, ['arms'] = 31, ['pants_1'] = 77, ['pants_2'] = couleur, ['shoes_1'] = 55, ['shoes_2'] = couleur, ['mask_1'] = 0, ['mask_2'] = 0, ['bproof_1'] = 0, ['chain_1'] = 0, ['helmet_1'] = 91, ['helmet_2'] = couleur, } else clothesSkin = { ['bags_1'] = 0, ['bags_2'] = 0, ['tshirt_1'] = 31, ['tshirt_2'] = 0, ['torso_1'] = 180, ['torso_2'] = couleur, ['arms'] = 36, ['arms_2'] = 0, ['pants_1'] = 79, ['pants_2'] = couleur, ['shoes_1'] = 58, ['shoes_2'] = couleur, ['mask_1'] = 0, ['mask_2'] = 0, ['bproof_1'] = 0, ['chain_1'] = 0, ['helmet_1'] = 90, ['helmet_2'] = couleur, } end for k,v in pairs(clothesSkin) do TriggerEvent("skinchanger:change", k, v) end end local function initializeNoclip() Citizen.CreateThread(function() while NoClip and staffService do HideHudComponentThisFrame(19) local pCoords = GetEntityCoords(GetPlayerPed(-1), false) local camCoords = getCamDirection() SetEntityVelocity(GetPlayerPed(-1), 0.01, 0.01, 0.01) SetEntityCollision(GetPlayerPed(-1), 0, 1) if IsControlPressed(0, 32) then pCoords = pCoords + (NoClipSpeed * camCoords) end if IsControlPressed(0, 269) then pCoords = pCoords - (NoClipSpeed * camCoords) end if IsControlPressed(1, 15) then NoClipSpeed = NoClipSpeed + 0.5 end if IsControlPressed(1, 16) then NoClipSpeed = NoClipSpeed - 0.5 if NoClipSpeed < 0 then NoClipSpeed = 0 end end SetEntityCoordsNoOffset(GetPlayerPed(-1), pCoords, true, true, true) Citizen.Wait(0) end end) end local function initializeInvis() Citizen.CreateThread(function() while invisible and staffService do SetEntityVisible(GetPlayerPed(-1), 0, 0) NetworkSetEntityInvisibleToNetwork(GetPlayerPed(-1), 1) Citizen.Wait(1) end end) end local function initializeNames() Citizen.CreateThread(function() local pPed = PlayerPedId() while ShowName and staffService do local pCoords = GetEntityCoords(GetPlayerPed(-1), false) for _, v in pairs(GetActivePlayers()) do local otherPed = GetPlayerPed(v) if otherPed ~= pPed then if #(pCoords - GetEntityCoords(otherPed, false)) < 250.0 then gamerTags[v] = CreateFakeMpGamerTag(otherPed, ('[%s] %s'):format(GetPlayerServerId(v), GetPlayerName(v)), false, false, '', 0) SetMpGamerTagVisibility(gamerTags[v], 4, 1) else RemoveMpGamerTag(gamerTags[v]) gamerTags[v] = nil end end Citizen.Wait(1) end end end) end local function initializeText() Citizen.CreateThread(function() while staffService do Citizen.Wait(1) RageUI.Text({message = colorVar.."Mode administration actif~n~~s~Noclip: "..stringText[NoClip].." | Invisible: "..stringText[invisible].." | Noms: "..stringText[ShowName],time_display = 1}) end end) end local openM = false local function initializeThread(rank,license) mug("Administration","~b~Statut du mode staff","Votre mode staff est pour le moment désactivé, vous pouvez l'activer au travers du ~o~[F11]") staffRank = rank colorVar = "~r~" for i = 1,100 do table.insert(possiblesQty, tostring(i)) end getItems() registerMenus() local actualRankPermissions = {} for perm,_ in pairs(Pz_admin.functions) do actualRankPermissions[perm] = false end for _,perm in pairs(Pz_admin.ranks[staffRank].permissions) do actualRankPermissions[perm] = true end if not openM then openM = false Citizen.CreateThread(function() while true do Citizen.Wait(1) if IsControlJustPressed(1, 344) then alterMenuVisibility() end end end) Citizen.CreateThread(function() while true do Citizen.Wait(800) if colorVar == "~r~" then colorVar = "~o~" else colorVar = "~r~" end end end) Citizen.CreateThread(function() while true do local menu = false RageUI.IsVisible(RMenu:Get("pz_admin",'pz_admin_main'),true,true,true,function() menu = true RageUI.Checkbox("Mode administration", nil, staffService, { Style = RageUI.CheckboxStyle.Tick }, function(Hovered, Selected, Active, Checked) staffService = Checked; end, function() staffService = true mug("Administration","~b~Statut du mode staff","Vous êtes désormais: ~g~en administration~s~.") initializeText() generateStaffOutfit(GetEntityModel(PlayerPedId())) end, function() staffService = false NoClip = false ShowName = false invisible = false FreezeEntityPosition(GetPlayerPed(-1), false) SetEntityCollision(GetPlayerPed(-1), 1, 1) SetEntityVisible(GetPlayerPed(-1), 1, 0) NetworkSetEntityInvisibleToNetwork(GetPlayerPed(-1), 0) for _,v in pairs(GetActivePlayers()) do RemoveMpGamerTag(gamerTags[v]) end mug("Administration","~b~Statut du mode staff","Vous êtes désormais ~r~hors administration~s~.") ESX.TriggerServerCallback('esx_skin:getPlayerSkin', function(skin) TriggerEvent('skinchanger:loadSkin', skin) end) end) if staffService then RageUI.Separator(colorVar.."/!\\ Mode administration actif /!\\") RageUI.ButtonWithStyle("Interactions personnelle", "Intéragir avec votre ped", { RightLabel = "→→" }, true, function() end, RMenu:Get('pz_admin', 'pz_admin_self')) RageUI.ButtonWithStyle("Interactions joueurs", "Intéragir avec les joueurs du serveur", { RightLabel = "→→" }, true, function() end, RMenu:Get('pz_admin', 'pz_admin_players')) RageUI.ButtonWithStyle("Interactions véhicules", "Intéragir avec les véhicules du serveur", { RightLabel = "→→" }, true, function() end, RMenu:Get('pz_admin', 'pz_admin_veh')) end end, function() end, 1) RageUI.IsVisible(RMenu:Get("pz_admin",'pz_admin_players'),true,true,true,function() menu = true for k,v in pairs(GetActivePlayers()) do RageUI.ButtonWithStyle("["..GetPlayerServerId(v).."] "..GetPlayerName(v), "Intéragir avec ce joueur", { RightLabel = "~b~Intéragir ~s~→→" }, true, function(_,a,s) if a then playerMarker(v) end if s then selected = {c = v, s = GetPlayerServerId(v)} end end, RMenu:Get('pz_admin', 'pz_admin_players_interact')) end end, function() end, 1) RageUI.IsVisible(RMenu:Get("pz_admin",'pz_admin_players_interact'),true,true,true,function() menu = true for i = 1,#Pz_admin.functions do if Pz_admin.functions[i].cat == "player" then if Pz_admin.functions[i].sep ~= nil then RageUI.Separator(Pz_admin.functions[i].sep) end RageUI.ButtonWithStyle(Pz_admin.functions[i].label, "Appuyez pour faire cette action", isSubMenu[Pz_admin.functions[i].toSub], actualRankPermissions[i] == true, function(_,a,s) if a then playerMarker(selected.c) end if s then Pz_admin.functions[i].press(selected) end end) end end end, function() end, 1) RageUI.IsVisible(RMenu:Get("pz_admin",'pz_admin_self'),true,true,true,function() menu = true for i = 1,#Pz_admin.functions do if Pz_admin.functions[i].cat == "self" then if Pz_admin.functions[i].sep ~= nil then RageUI.Separator(Pz_admin.functions[i].sep) end RageUI.ButtonWithStyle(Pz_admin.functions[i].label, "Appuyez pour faire cette action", isSubMenu[Pz_admin.functions[i].toSub], actualRankPermissions[i] == true, function(_,a,s) if s then Pz_admin.functions[i].press() end end) end end end, function() end, 1) RageUI.IsVisible(RMenu:Get("pz_admin",'pz_admin_veh'),true,true,true,function() menu = true local pos = GetEntityCoords(PlayerPedId()) local veh, dst = ESX.Game.GetClosestVehicle({x = pos.x, y = pos.y, z = pos.z}) if dst ~= nil then RageUI.Separator("~s~Distance: ~b~"..math.floor(dst+0.5).."m") end for i = 1,#Pz_admin.functions do if Pz_admin.functions[i].cat == "veh" then if Pz_admin.functions[i].sep ~= nil then RageUI.Separator(Pz_admin.functions[i].sep) end RageUI.ButtonWithStyle(Pz_admin.functions[i].label, "Appuyez pour faire cette action", isSubMenu[Pz_admin.functions[i].toSub], actualRankPermissions[i] == true, function(_,a,s) if a then pos = GetEntityCoords(veh) DrawMarker(2, pos.x, pos.y, pos.z+1.3, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.5, 0.5, 0.5, 255, 255, 255, 170, 0, 1, 2, 0, nil, nil, 0) end if s then local co = GetEntityCoords(PlayerPedId()) local veh, dst = ESX.Game.GetClosestVehicle({x = co.x, y = co.y, z = co.z}) Pz_admin.functions[i].press(veh) end end) end end end, function() end, 1) RageUI.IsVisible(RMenu:Get("pz_admin",'pz_admin_players_remb'),true,true,true,function() menu = true RageUI.Separator("↓ ~b~Paramètrage ~s~↓") RageUI.List("Quantité: ~s~", possiblesQty, qty, nil, {}, true, function(Hovered, Active, Selected, Index) qty = Index end) RageUI.Separator("↓ ~o~Liste d'items ~s~↓") for k,v in pairs(items) do RageUI.ButtonWithStyle(v.label, "Appuyez pour donner cet item", { RightLabel = "~b~Donner ~s~→→" }, true, function(_,a,s) if s then TriggerServerEvent("pz_admin:remb", selected.s, v.name, qty) end end) end end, function() end, 1) RageUI.IsVisible(RMenu:Get("pz_admin",'pz_admin_param'),true,true,true,function() menu = true RageUI.Checkbox("NoClip", nil, NoClip, { Style = RageUI.CheckboxStyle.Tick }, function(Hovered, Selected, Active, Checked) NoClip = Checked; end, function() FreezeEntityPosition(GetPlayerPed(-1), true) NoClip = true invisible = true initializeNoclip() initializeInvis() end, function() FreezeEntityPosition(GetPlayerPed(-1), false) SetEntityCollision(GetPlayerPed(-1), 1, 1) SetEntityVisible(GetPlayerPed(-1), 1, 0) NetworkSetEntityInvisibleToNetwork(GetPlayerPed(-1), 0) invisible = false NoClip = false end) RageUI.Checkbox("Invisibilité", nil, invisible, { Style = RageUI.CheckboxStyle.Tick }, function(Hovered, Selected, Active, Checked) invisible = Checked; end, function() invisible = true initializeInvis() end, function() invisible = false SetEntityVisible(GetPlayerPed(-1), 1, 0) NetworkSetEntityInvisibleToNetwork(GetPlayerPed(-1), 0) end) RageUI.Checkbox("Afficher les noms", nil, ShowName, { Style = RageUI.CheckboxStyle.Tick }, function(Hovered, Selected, Active, Checked) ShowName = Checked; end, function() ShowName = true initializeNames() end, function() ShowName = false for _,v in pairs(GetActivePlayers()) do RemoveMpGamerTag(gamerTags[v]) end end) end, function() end, 1) Citizen.Wait(0) dynamicMenu2 = menu end end) end end RegisterNetEvent("pz_admin:remb") AddEventHandler("pz_admin:remb", function(id) if colorVar == nil then return end RageUI.CloseAll() Citizen.Wait(100) RageUI.Visible(RMenu:Get("pz_admin",'pz_admin_players_remb'), not RageUI.Visible(RMenu:Get("pz_admin",'pz_admin_players_remb'))) end) RegisterNetEvent("pz_admin:teleport") AddEventHandler("pz_admin:teleport", function(pos) SetEntityCoords(PlayerPedId(), pos.x, pos.y, pos.z, false, false, false, false) end) RegisterNetEvent("pz_admin:getItems") AddEventHandler("pz_admin:getItems", function(table) items = table end) RegisterNetEvent("pz_admin:canUse") AddEventHandler("pz_admin:canUse", function(ok, rank, license) if ok then initializeThread(rank,license) end end) RegisterNetEvent("pz_admin:options") AddEventHandler("pz_admin:options", function() if colorVar == nil then return end RageUI.CloseAll() Citizen.Wait(100) RageUI.Visible(RMenu:Get("pz_admin",'pz_admin_param'), not RageUI.Visible(RMenu:Get("pz_admin",'pz_admin_param'))) end) pzCore.staff = {} pzCore.staff.init = init
local Mob = require('mob') local max = math.max local Particle = {} Particle.__index = Particle setmetatable(Particle, {__index = Mob}) function Particle.new(alive_time) local self = setmetatable(Mob.new(), Particle) self.tags.particle = true --- How many seconds the particle is alive for. self.alive_time = alive_time or 1 return self end --- Is called when is particle's `alive_time` goes below zero. function Particle:kill(game) end function Particle:tick(dt, game) self.alive_time = max(self.alive_time - dt, 0) if self.alive_time <= 0 then self:kill(game) self.is_alive = false end end return Particle
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include("shared.lua") function ENT:Initialize() self:SetModel("models/gmodz/misc/backpack.mdl") self:SetSolid(SOLID_VPHYSICS) self:PhysicsInit(SOLID_VPHYSICS) self:SetCollisionGroup(COLLISION_GROUP_WEAPON) self:SetUseType(SIMPLE_USE) local physObj = self:GetPhysicsObject() if (IsValid(physObj)) then physObj:EnableMotion(true) physObj:Wake() end self:SetLifetime(CurTime() + ix.config.Get("npcBoxDecayTime", 60)) end function ENT:Use(activator) local inventory = self:GetInventory() if (inventory /*and !ix.storage.InUse(inventory)*/) then ix.storage.Open(activator, inventory, { entity = self, name = "Loot", --searchTime = 0.5, data = {money = self:GetMoney()}, bMultipleUsers = true, OnPlayerOpen = function() self:SetLifetime(CurTime() + 120) end }) end end function ENT:Think() if (!self:IsInWorld()) then MsgC(Color("yellow"), "NPCBox - Removed, Outside Map!\n") self:Remove() return end if (self:GetLifetime() < CurTime()) then self:Remove() end local inventory = self:GetInventory() if (inventory) then local bItems = table.IsEmpty(inventory:GetItems(true)) local bMoney = self:GetMoney() < 1 if (!bItems or !bMoney) then self:NextThink(CurTime() + 0.5) return true end self:Remove() end self:NextThink(CurTime() + 1) return true end function ENT:OnRemove() local inventory = self:GetInventory() local query if (inventory/* and ix.entityDataLoaded*/) then if (inventory.GetReceivers) then ix.storage.Close(inventory) end if (inventory.GetItems) then for id, item in pairs(inventory:GetItems()) do if (item and item.isBag and item.OnRemoved) then item:OnRemoved() end query = mysql:Delete("ix_items") query:Where("item_id", id) query:Execute() ix.item.instances[id] = nil end end end local index = self:GetID() ix.item.inventories[index] = nil query = mysql:Delete("ix_items") query:Where("inventory_id", index) query:Execute() index = nil end function ENT:UpdateTransmitState() return TRANSMIT_PVS end function ENT:SetMoney(amount) self.money = math.max(0, math.Round(tonumber(amount) or 0)) end function ENT:GetMoney() return self.money or 0 end
local led = {} led.pin_red = nil led.pin_green = nil led.pin_blue = nil led.tick = 600 led.blink_pin = nil led.freq = nil led.freq_cnt = 0 led.timer_loop = nil led.timer = tmr.create() led.init = function() if (led.pin_green) then gpio.mode(led.pin_green,gpio.OUTPUT) end if (led.pin_blue) then gpio.mode(led.pin_blue,gpio.OUTPUT) end if (led.pin_red) then gpio.mode(led.pin_red,gpio.OUTPUT) end led.clear() led.timer:register(led.tick, tmr.ALARM_AUTO, function() if gpio.read(led.blink_pin) == 1 and led.freq_cnt < led.freq then gpio.write(led.blink_pin, gpio.LOW) else gpio.write(led.blink_pin, gpio.HIGH) led.freq_cnt = led.freq_cnt + 1 if led.freq_cnt > led.freq + 1 then if led.timer_loop then led.freq_cnt = 0 else led.timer:stop() end end end end) end led.red = function(status) if status then gpio.write(led.pin_red, gpio.LOW) else gpio.write(led.pin_red, gpio.HIGH) end end led.green = function(status) if status then gpio.write(led.pin_green, gpio.LOW) else gpio.write(led.pin_green, gpio.HIGH) end end led.blue = function(status) if status then gpio.write(led.pin_blue, gpio.LOW) else gpio.write(led.pin_blue, gpio.HIGH) end end led.clear = function() led.red(false) led.green(false) led.blue(false) led.timer:stop() end led.blink_red = function(freq, loop) led.blink_pin = led.pin_red led.blink(freq, loop) end led.blink_green = function(freq, loop) led.blink_pin = led.pin_green led.blink(freq, loop) end led.blink_blue = function(freq, loop) led.blink_pin = led.pin_blue led.blink(freq, loop) end led.blink = function(freq, loop) led.freq = freq led.timer_loop = loop led.freq_cnt = 0 led.clear() led.timer:start() end return led
-- menu 菜单 local Api = require("coreApi") local json = require("json") local http = require("http") function ReceiveFriendMsg(CurrentQQ, data) return 1 end function ReceiveGroupMsg(CurrentQQ, data) local menu = [[{ "app": "com.tencent.miniapp", "desc": "", "view": "notification", "ver": "0.0.0.1", "prompt": "卑微助手菜单菜单", "meta": { "notification": { "appInfo": { "appName": "卑微助手菜单", "appType": 4, "ext": "", "img": "https://pic4.zhimg.com/80/v2-1df5a025d1a212d75be7c53d5d14b37b_720w.jpg", "img_s": "", "appid": 1108249016, "iconUrl": "https://pic4.zhimg.com/80/v2-1df5a025d1a212d75be7c53d5d14b37b_720w.jpg" }, "button": [ { "action": "", "name": "[menu] 菜单" }, { "action": "", "name": "[搜题+?] 搜题,题目至少六个字" }, { "action": "", "name": "[百科+?] 百度百科" }, { "action": "", "name": "[pic+?] 百度图片" }, { "action": "", "name": "[pix] 随机动漫图片" }, { "action": "", "name": "[微博] 微博热搜" }, { "action": "", "name": "[历史上的今天] 历史上的今天" }, { "action": "", "name": "[点歌+?] 点歌" } ], "emphasis_keyword": "" } } }]] if data.Content == "menu" then Api.Api_SendMsg( CurrentQQ, { toUser = data.FromGroupId, sendToType = 2, sendMsgType = "JsonMsg", groupid = 0, content = menu, atUser = data.FromUserId } ) return 2 end return 1 end function ReceiveEvents(CurrentQQ, data, extData) return 1 end
-- two -- two example application --function uses_examples() -- includedirs { -- path.join(TWO_DIR, "example"), -- } --end --two.examples = {} --two.examples.all = module(nil, "example", TWO_DIR, "example", nil, uses_examples, false, {}, true) if _OPTIONS["renderer-bgfx"] then --two_binary("two_example", two.examples.all, { two }) end function add_example_data(name) configuration { "asmjs" } linkoptions { "--preload-file ../../../data/examples/" .. name .. "@data/", } configuration {} end function two_example(name, deps, exdeps, ismodule) local uses_example = function() add_example_data(name) end _G[name] = module(nil, "_" .. name, path.join(TWO_DIR, "example"), name, nil, uses_example, false, deps, not ismodule) two_binary(name, table.union({ _G[name] }, exdeps), deps) end two_example("00_ui", { two.frame }, {}) two_example("00_imgui", { two.frame }, {}) if not _OPTIONS["renderer-gl"] then -- name dependencies examples deps -- two_example("00_tutorial", { two.frame }, {}, true) two_example("00_cube", { two.frame }, {}) two_example("01_shapes", { two.frame }, {}) two_example("03_materials", { two.frame, two.gfx.pbr, two.gfx.refl, two.uio }, {}) two_example("02_camera", { two.frame, two.gfx.pbr }, { _G["03_materials"] }) two_example("04_lights", { two.frame, two.gfx.pbr }, { _G["01_shapes"], _G["03_materials"] }) two_example("04_sponza", { two.frame, two.gfx.pbr, two.gfx.obj }, { _G["01_shapes"], _G["03_materials"], _G["04_lights"] }) two_example("05_character", { two.frame, two.gfx.pbr, two.gfx.gltf, two.gfx.edit, two.uio }, { _G["03_materials"] }) two_example("06_particles", { two.frame, two.srlz, two.gfx.refl }, {}) two_example("07_gltf", { two.frame, two.gfx.pbr, two.gfx.gltf }, {}) -- two_example("07_prefabs", { two.frame, two.gfx.pbr }, { _G["07_gltf"] }) two_example("08_sky", { two.frame, two.gfx.pbr }, { _G["01_shapes"], _G["03_materials"] }) two_example("09_live_shader", { two.frame }, {}) two_example("10_post_process", { two.frame, two.gfx.pbr }, { _G["01_shapes"], _G["03_materials"] }) two_example("11_selection", { two.frame, two.gfx.pbr }, { _G["01_shapes"], _G["03_materials"] }) -- two_example("12_ui", { two.frame, two.uio, two.ui.refl }, { _G["01_shapes"], _G["03_materials"] }) two_example("13_live_ui", { two.frame, two.lang, two.uio, two.ui.refl }, {}) two_example("14_live_gfx", { two.frame, two.lang, two.uio, two.gfx.refl }, {}) two_example("14_live_gfx_visual", { two.frame, two.lang, two.uio, two.gfx.refl }, {}) -- two_example("15_script", { two.frame, two.lang, two.uio }, { _G["01_shapes"], _G["03_materials"] }, true) -- two_example("16_visual_script", { two.frame, two.lang, two.uio, two.noise }, { _G["01_shapes"], _G["03_materials"] }) two_example("17_wfc", { two.frame, two.gfx.pbr, two.wfc.gfx }, {}) -- two_example("18_pathfinding", { two.frame, two.gfx.pbr }, {}) two_example("19_multi_viewport", { two.frame }, {}) -- two_example("20_meta", { two.frame, two.gfx.pbr }, { _G["01_shapes"], _G["03_materials"] }) two_example("xx_three", { two.frame, two.gfx.pbr, two.gfx.obj, two.gfx.gltf }, {}) end if _OPTIONS["jsbind"] then if _OPTIONS["as-libs"] then two_js("xx_js", { two.frame, two.gfx.pbr, two.gfx.obj, two.gfx.gltf }) two_js("two", { two.frame, two.gfx.pbr, two.gfx.obj, two.gfx.gltf }) else two_js("xx_js", two.all) two_js("two", two.all) end --project "two" -- add_example_data("xx_three") end if _OPTIONS["renderer-bgfx"] then --project "09_live_shader" -- configuration { "asmjs" } -- uses_shaderc() end project "xx_three" defines { "UI=1" }
--[[ Copyright 2012-2020 João Cardoso PetTracker is distributed under the terms of the GNU General Public License (Version 3). As a special exception, the copyright holders of this addon do not give permission to redistribute and/or modify it. This addon is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the addon. If not, see <http://www.gnu.org/licenses/gpl-3.0.txt>. This file is part of PetTracker. --]] local MODULE = ... local ADDON, Addon = MODULE:match('[^_]+'), _G[MODULE:match('[^_]+')] local Journal = Addon:NewModule('RivalsJournal', _G[ADDON .. 'RivalsJournal']) local L = LibStub('AceLocale-3.0'):GetLocale(ADDON) --[[ Startup ]]-- function Journal:OnEnable() self.PanelTab = LibStub('SecureTabs-2.0'):Add(CollectionsJournal, self, L.Rivals) self:SetScript('OnShow', self.OnShow) end function Journal:OnShow() PetJournalTutorialButton:Hide() HybridScrollFrame_CreateButtons(self.List, ADDON..'RivalEntry', 44, 0) SetPortraitToTexture(self.portrait, 'Interface/Icons/PetJournalPortrait') self.Inset:Hide() self:SetScript('OnShow', nil) self.TitleText:SetText(L.Rivals) self.List.scrollBar.doNotHide = true self.Count.Label:SetText(L.TotalRivals) self.Count.Number:SetText(#Addon.RivalOrder) self.SearchBox:SetText(Addon.sets.rivalSearch or '') self.SearchBox:SetScript('OnTextChanged', function() self:Search(self.SearchBox:GetText()) end) self.Tab1.tip = TEAM self.Tab1.Icon:SetTexture('Interface/Icons/ability_hunter_pet_goto') self.Tab1.Icon:SetPoint('BOTTOM', 1, 1) self.Tab1.Icon:SetSize(27, 29) self.Tab2.tip = LOCATION_COLON:sub(0, -2) self.Tab2.Icon:SetTexture('Interface/Icons/inv_misc_map03') self.Tab2.Icon:SetPoint('BOTTOM', 1, 4) self.Tab2.Icon:SetSize(23, 23) self.Tab3.tip = HISTORY self.Tab3.Icon:SetTexture('Interface/Icons/achievement_challengemode_platinum') self.Tab3.Icon:SetPoint('BOTTOM', 1, 2) self.Tab3.Icon:SetSize(25, 25) self.Slots = Addon.JournalSlot:NewSet('TOP', self.Team, 0, 104) self.Team.Border.Text:SetText(L.EnemyTeam) self.History.LoadButton:SetText(L.LoadTeam) self.History.Empty:SetText(L.NoHistory) self.Map:SetMapID(2) self.Map.BorderFrame.Bg:Hide() self.Map.BorderFrame:SetFrameLevel(self.Map:GetPinFrameLevelsManager():GetValidFrameLevel('PIN_FRAME_LEVEL_TOPMOST')+1) self.Map:AddDataProvider(CreateFromMixins(MapExplorationDataProviderMixin)) self.Map:AddDataProvider(CreateFromMixins(GroupMembersDataProviderMixin)) for i = 1, 4 do local loot = CreateFrame('ItemButton', '$parentLoot' .. i, self.Card, ADDON..'Reward') loot:SetPoint('TOPRIGHT', -58 + 45 * (i % 2), - 45 * ceil(i/2)) loot.Count:Show() self.Card[i] = loot end for i = 1, 9 do local record = Addon.BattleRecord(self.History) record:HookScript('OnClick', function() self.History:SetSelected(i) end) record:SetPoint('TOP', 0, 40-55*i) self.History[i] = record end self:SetRival(Addon.Rival(Addon.RivalOrder[1])) self:SetTab(1) end --[[ Actions ]]-- function Journal:SetRival(rival) self:Open() self.List.selected = rival self.List:update() self:Update() end function Journal:Search(text) Addon.sets.rivalSearch = text self:Open() self.SearchBox:SetText(text) self.SearchBox.Instructions:SetShown(text == '') self.List:update() end function Journal:SetTab(tab) for i = 1,3 do local selected = i == tab local tab = self['Tab' .. i] tab.Hider:SetShown(not selected) tab.Highlight:SetShown(not selected) tab.TabBg:SetTexCoord(0.01562500, 0.79687500, selected and 0.78906250 or 0.61328125, selected and 0.95703125 or 0.78125000) end self.Team:SetShown(tab == 1) self.Map:SetShown(tab == 2) self.History:SetShown(tab == 3) self.Card:SetShown(tab ~= 3) self:Update() end function Journal:Open() LibStub('SecureTabs-2.0'):Update(CollectionsJournal, self.PanelTab) end --[[ Redraw ]]-- function Journal.List:update() local self = Journal.List local off = HybridScrollFrame_GetOffset(self) local rivals = {} for i, id in pairs(Addon.RivalOrder) do local rival = Addon.Rival(id) if Addon:Search(rival, Addon.sets.rivalSearch) then tinsert(rivals, rival) end end for i, button in ipairs(self.buttons) do local rival = rivals[i + off] if rival then button.name:SetText(rival.name) button.model.level:SetText(rival:GetLevel()) button.petTypeIcon:SetTexture(rival:GetTypeIcon()) button.model.quality:SetVertexColor(rival:GetColor()) button.selectedTexture:SetShown(rival.id == self.selected.id) if button.model:GetDisplayInfo() ~= rival.model then button.model:SetDisplayInfo(rival.model) end end button:SetShown(rival) button.rival = rival end HybridScrollFrame_Update(self, #rivals * 46, self:GetHeight()) end function Journal:Update() local rival = self.List.selected if self.Card:IsShown() then self.Card:Display(rival) end if self.Team:IsShown() then for i, slot in ipairs(self.Slots) do slot:Display(rival[i]) end end if self.Map:IsShown() then self.Map:Display(rival) end if self.History:IsShown() then self.History:Display(rival) end end function Journal.Card:Display(rival) self.name:SetText(rival.name) self.zone:SetText(rival:GetMapName()) self.quest:SetShown(rival.quest ~= 0) if self.model:GetDisplayInfo() ~= rival.model then self.model:SetDisplayInfo(rival.model) self.model:SetRotation(.3) end for i, slot in ipairs(self) do slot:Hide() end if rival.quest ~= 0 then local completed = rival:IsCompleted() local rewards = rival:GetRewards() self.quest.status:SetText(rival:GetCompleteState()) self.quest.icon:SetDesaturated(completed) self.quest.ring:SetDesaturated(completed) self.quest.id = rival.quest for i, loot in pairs(rewards) do local slot = self[i] slot.icon:SetTexture(loot.icon) slot.icon:SetDesaturated(completed) slot.Count:SetText(loot.count) slot.link = loot.link slot:Show() end if rival.gold > 0 then local slot = self[#rewards+1] slot.icon:SetTexture('Interface/icons/inv_misc_coin_01') slot.icon:SetDesaturated(completed) slot.Count:SetText(rival.gold) slot.link = nil slot:Show() end end end function Journal.Map:Display(rival) local scroll = self:GetCanvasContainer() local id = rival:GetMap() or C_Map.GetFallbackWorldMapID() if id ~= self:GetMapID() then self:SetMapID(id) tremove(scroll.zoomLevels, 1) self:ResetZoom() end if self.Destination then self.Destination:Release() end local x, y = rival:GetLocation() if x and y then local scale = scroll.zoomLevels[#scroll.zoomLevels].scale local minX, maxX, minY, maxY = scroll:CalculateScrollExtentsAtScale(scale) scroll:SetZoomTarget(scale) scroll:SetPanTarget(Clamp(x, minX, maxX), Clamp(y, minY, maxY)) self.Destination = Addon.RivalPin(self, 1, x,y, rival) end end function Journal.History:Display(rival) local entries = Addon.sets.rivalHistory and Addon.sets.rivalHistory[rival.id] or {} self.Empty:SetShown(#entries == 0) self:SetSelected(nil) for i, data in ipairs(entries) do self[i]:Display(data) end for i = #entries+1, 9 do self[i]:Hide() end end function Journal.History:SetSelected(selected) for i = 1, 9 do self[i].Selected:SetShown(selected == i) end if selected then self.LoadButton:Enable() self.selected = selected else self.LoadButton:Disable() end end function Journal.History:LoadTeam() local record = self[self.selected] for i, pet in ipairs(record.pets) do C_PetJournal.SetPetLoadOutInfo(i, pet.id) for k, ability in ipairs(pet.abilities) do C_PetJournal.SetAbility(i, k, ability) end end end
local titleScene = class("titleScene", function() return display.newScene("titleScene") end) function titleScene:ctor() display.newSprite("bg.png") :pos(display.cx,display.cy) :addTo(self) cc.ui.UIPushButton.new({normal = "btn_start.png",pressed = "btn_start.png"}) :onButtonClicked(function() print("clicked") local s = require("app.scenes.MainScene").new() display.replaceScene(s,"fade",0.6,display.COLOR_BLACK) end) :pos(display.cx,display.cy - 100) :addTo(self) end function titleScene:onEnter() end function titleScene:onExit() end return titleScene
AddCSLuaFile("cl_init.lua") AddCSLuaFile("shared.lua") include('shared.lua') function ENT:Initialize() self.Entity:SetModel("models/weapons/w_snowball_thrown.mdl"); //self.Entity:PhysicsInit(SOLID_VPHYSICS); self.Entity:SetMoveType(MOVETYPE_VPHYSICS); self.Entity:SetSolid(SOLID_VPHYSICS); self.Entity:SetCollisionGroup( COLLISION_GROUP_PROJECTILE ) self:PhysicsInitSphere( 30, "ice" ) local phys = self:GetPhysicsObject() if phys:IsValid() then phys:Wake() phys:EnableGravity(true); phys:SetBuoyancyRatio(0); end self.Trail = util.SpriteTrail(self.Entity, 0, currentcolor, false, 15, 1, 2, 1/(15+1)*0.5, "trails/laser.vmt") end function ENT:Think() end function ENT:SpawnFunction(ply, tr) if (!tr.Hit) then return end local SpawnPos = tr.HitPos + tr.HitNormal * 16; local ent = ents.Create("ent_snowball_nodamage"); ent:SetPos(SpawnPos); ent:Spawn(); ent:Activate(); ent:SetOwner(ply) return ent; end function ENT:PhysicsCollide(data) local pos = self.Entity:GetPos() --Get the position of the snowball local effectdata = EffectData() data.HitObject:ApplyForceCenter(self:GetPhysicsObject():GetVelocity() * 40) //These lines stop the damage, keep commented unless you want to enable it (wood) //if(damageactivated == 1) then // data.HitObject:GetEntity():TakeDamage(20000); //end effectdata:SetStart( pos ) effectdata:SetOrigin( pos ) effectdata:SetScale( 1.5 ) self:EmitSound("hit.wav") //util.Effect( "watersplash", effectdata ) -- effect //util.Effect( "inflator_magic", effectdata ) -- effect util.Effect( "WheelDust", effectdata ) -- effect util.Effect( "GlassImpact", effectdata ) -- effect self.Entity:Remove(); --Remove the snowball end
-- // Information --[[ This can be used to identify fellow exploiters in your game. Make sure your message is secure or regular users may be false flagged. The way this works is whenever you execute this script, you chat out the secret. If another user picks up on that secret, they also chat the secret. Now you both know each other. If another person were to execute, this cycle would repeat. ]] -- // Dependencies local SignalManager = loadstring(game:HttpGet("https://raw.githubusercontent.com/Stefanuk12/Signal/main/Manager.lua"))() local Manager = SignalManager.new() -- // Configuration local Secret = "hello comrade" -- // Services local Players = game:GetService("Players") -- // Vars local Comrades = {} local AllChatType = Enum.PlayerChatType.All -- // Create signals Manager:Add("ExploiterJoined") Manager:Add("ExploiterLeaving") -- // See when people chat local ChatConnection ChatConnection = Players.PlayerChatted:Connect(function(ChatType, Player, Message, TargetPlayer) -- // Make sure message matches and we have not already gotten the user if (Message == Secret and ChatType == AllChatType and TargetPlayer == nil and not table.find(Comrades, Player)) then -- // Add the the player table.insert(Comrades, Player) -- // Chat Players:Chat(Secret) -- // Fire Manager:Fire("ExploiterJoined", Player) end end) -- // See when people leave local PlayerConnection PlayerConnection = Players.PlayerRemoving:Connect(function(Player) -- // Check if found local i = table.find(Comrades, Player) if (i) then -- // Remove table.remove(Comrades, i) -- // Fire Manager:Fire("ExploiterLeaving", Player) end end) -- // Connect to signals Manager:Connect("ExploiterJoined", function(Player) print("Hello fellow comrade: " .. Player.Name) end) Manager:Connect("ExploiterLeaving", function(Player) print("Goodbye fellow comrade: " .. Player.Name .. " :(") end) -- // Chat the secret Players:Chat(Secret)
-- Code based on https://github.com/lipp/lua-websockets local bit = require'pegasus.plugins.websocket.bit' local function prequire(m) local ok, err = pcall(require, m) if ok then return err, m end return nil, err end local function orequire(...) for _, name in ipairs{...} do local mod = prequire(name) if mod then return mod, name end end end local function vrequire(...) local m, n = orequire(...) if m then return m, n end error("Can not fine any of this modules: " .. table.concat({...}, "/"), 2) end local function read_n_bytes(str, pos, n) return pos+n, string.byte(str, pos, pos + n - 1) end local function read_int16(str, pos) local a, b pos,a,b = read_n_bytes(str, pos, 2) return pos, bit.lshift(a, 8) + b end local function read_int32(str, pos) local a, b, c, d pos, a, b, c, d = read_n_bytes(str, pos, 4) return pos, bit.lshift(a, 24) + bit.lshift(b, 16) + bit.lshift(c, 8 ) + d end local function pack_bytes(...) return string.char(...) end local function pack_int16(v) return pack_bytes(bit.rshift(v, 8), bit.band(v, 0xFF)) end local function pack_int32(v) return pack_bytes( bit.band(bit.rshift(v, 24), 0xFF), bit.band(bit.rshift(v, 16), 0xFF), bit.band(bit.rshift(v, 8), 0xFF), bit.band(v, 0xFF) ) end -- SHA1 hashing from luacrypto, lmd5 (previewsly is was ldigest) if available local shalib, name = orequire('crypto', 'sha1', 'bgcrypto.sha1', 'digest') local sha1_digest do if name == 'sha1' then sha1_digest = function(str) return shalib.digest(str, true) end elseif name == 'crypto' then sha1_digest = function(str) return shalib.digest('sha1', str, true) end elseif name == 'bgcrypto.sha1' then sha1_digest = function(str) return shalib.digest(str) end elseif name == 'digest' then if _G.sha1 and _G.sha1.digest then shalib = _G.sha1 sha1_digest = function(str) return shalib.digest(str, true) end end end if not sha1_digest then local rol, bxor, bor, band, bnot = bit.rol or bit.lrotate, bit.bxor, bit.bor, bit.band, bit.bnot local srep, schar = string.rep, string.char -- from wiki article, not particularly clever impl sha1_digest = function(msg) local h0 = 0x67452301 local h1 = 0xEFCDAB89 local h2 = 0x98BADCFE local h3 = 0x10325476 local h4 = 0xC3D2E1F0 local bits = #msg * 8 -- append b10000000 msg = msg..schar(0x80) -- 64 bit length will be appended local bytes = #msg + 8 -- 512 bit append stuff local fill_bytes = 64 - (bytes % 64) if fill_bytes ~= 64 then msg = msg..srep(schar(0),fill_bytes) end -- append 64 big endian length local high = math.floor(bits/2^32) local low = bits - high*2^32 msg = msg..pack_int32(high)..pack_int32(low) assert(#msg % 64 == 0,#msg % 64) for j=1,#msg,64 do local chunk = msg:sub(j,j+63) assert(#chunk==64,#chunk) local words = {} local next = 1 local word repeat next,word = read_int32(chunk, next) words[#words + 1] = word until next > 64 assert(#words==16) for i=17,80 do words[i] = bxor(words[i-3],words[i-8],words[i-14],words[i-16]) words[i] = rol(words[i],1) end local a = h0 local b = h1 local c = h2 local d = h3 local e = h4 for i=1,80 do local k,f if i > 0 and i < 21 then f = bor(band(b,c),band(bnot(b),d)) k = 0x5A827999 elseif i > 20 and i < 41 then f = bxor(b,c,d) k = 0x6ED9EBA1 elseif i > 40 and i < 61 then f = bor(band(b,c),band(b,d),band(c,d)) k = 0x8F1BBCDC elseif i > 60 and i < 81 then f = bxor(b,c,d) k = 0xCA62C1D6 end local temp = rol(a,5) + f + e + k + words[i] e = d d = c c = rol(b,30) b = a a = temp end h0 = h0 + a h1 = h1 + b h2 = h2 + c h3 = h3 + d h4 = h4 + e end -- necessary on sizeof(int) == 32 machines h0 = band(h0,0xffffffff) h1 = band(h1,0xffffffff) h2 = band(h2,0xffffffff) h3 = band(h3,0xffffffff) h4 = band(h4,0xffffffff) return pack_int32(h0)..pack_int32(h1)..pack_int32(h2)..pack_int32(h3)..pack_int32(h4) end end end local base, name = vrequire("mime", "base64", "basexx") local base64 = {} if name == 'basexx' then base64.encode = function(str) return base.to_base64(str) end base64.decode = function(str) return base.from_base64(str) end elseif name == 'mime' then base64.encode = function(str) return base.b64(str) end base64.decode = function(str) return base.ub64(str) end elseif name == 'base64' then base64.encode = function(str) return base.encode(str) end base64.decode = function(str) return base.decode(str) end end ------------------------------------------------------------------ local split = {} do function split.iter(str, sep, plain) local b, eol = 0 return function() if b > #str then if eol then eol = nil return "" end return end local e, e2 = string.find(str, sep, b, plain) if e then local s = string.sub(str, b, e-1) b = e2 + 1 if b > #str then eol = true end return s end local s = string.sub(str, b) b = #str + 1 return s end end function split.first(str, sep, plain) local e, e2 = string.find(str, sep, nil, plain) if e then return string.sub(str, 1, e - 1), string.sub(str, e2 + 1) end return str end end ------------------------------------------------------------------ local function unquote(s) if string.sub(s, 1, 1) == '"' then s = string.sub(s, 2, -2) s = string.gsub(s, "\\(.)", "%1") end return s end local function enquote(s) if string.find(s, '[ ",;]') then s = '"' .. string.gsub(s, '"', '\\"') .. '"' end return s end return { sha1 = sha1_digest, base64 = base64, split = split, unquote = unquote, enquote = enquote, prequire = prequire, }
local playerService = game.Players local dataStore = game:GetService("DataStoreService"):GetDataStore("person person is") local playerData = require(script.Data) local compression = require(script.Compression) local clockService = require(game.ReplicatedStorage.Modules.Util.ClockService) local autoSave = 60 local sessions = {} local function UpdateAsync(current) local decompressed if current then decompressed = compression.Decompress(current) return decompressed.Locked and nil or decompressed else end return not current and { -- default data Locked = true, Data = { Inventory = { Equipments = {} }, Equipments = { Weapon = { Name = "Stick", Refinement = 0 } }, MainStats = {}, Stats = {}, Attributes = { Strength = 5, Intelligence = 5, }, Skills = {} } } or decompressed.Locked and nil or decompressed end local function GetData(player) local _, results = pcall(function() return dataStore:UpdateAsync(player.UserId, UpdateAsync) end) return not results or type(results) == "string" and player:Kick("fat man") or results end local function SaveData(self, leaving) -- using self, ez if not self.Info and time() - self.Time < 8 then return end self.Info.Locked = not leaving pcall(dataStore.SetAsync, dataStore, self.Key, compression.Compress(self.Info)) self.Time = time() self.AutoSave = self.Time end local function Recurse(self) if not self.Info then return end SaveData(self) clockService(autoSave, Recurse, true, self) end local function SetupPlayer(player) sessions[player.Name] = { Info = playerData.A(GetData(player)), Key = player.UserId, Time = 0, } clockService(autoSave, Recurse, true, sessions[player.Name]) end local function Destroy(player) SaveData(sessions[player.Name], true) sessions[player.Name] = nil end if not game:GetService("RunService"):IsStudio() then game:BindToClose(function() for _, player in pairs(game:GetService("Players"):GetPlayers()) do coroutine.wrap(Destroy)(player) end end) end for _, player in ipairs(playerService:GetPlayers()) do SetupPlayer(player) end playerService.PlayerAdded:Connect(SetupPlayer) playerService.PlayerRemoving:Connect(Destroy) return SaveData
local animx={ animObjs={} --the animation objects that were created } local LIB_PATH=... local function lastIndexOf(str,char) for i=str:len(),1,-1 do if str:sub(i,i)==char then return i end end end local function fileExists(url) return love.filesystem.getInfo(url) and love.filesystem.getInfo(url).type=="file" end --removes the path and only gets the filename local function removePath(filename) local pos=1 local i = string.find(filename,'[\\/]', pos) pos=i while i do i = string.find(filename,'[\\/]', pos) if i then pos = i + 1 else i=pos break end end if i then filename=filename:sub(i) end return filename end --remove extension from a file as well as remove the path local function removeExtension(filename,dontremovepath) if not dontremovepath then filename=removePath(filename) end return filename:sub(1,lastIndexOf(filename,".")-1) end local Animation=require (LIB_PATH..'.animation') local Actor=require (LIB_PATH..'.actor') --[[ Creates a new animation either from scratch or from an XML file! (Note that quads are added in LtR-TtB fashion) @Params: @OverLoad-1: img - The URL of the image. An XML file must exist by the same name! @OverLoad-2: params - A table of parameters (something I stole from sodapop) img - The image (could be a reference or url) x,y - The offset from where to start extracting the quads (0,0) qw,qh - The dimensions of the quad sw,sh - The dimensions of the image (auto-calc'd if nil) spr - The number of sprites per row nq - The number of quads to extract (auto-calc'd if nil) quads - An already existing table of quads for animation frames - The frames (by number) that u wanna add in the animation style - The style of the image (just something I stole from katsudo) startingFrame - The frame from where to start the animation (must exist!) startFrom - The frame from where to start ripping the sprites delay - The interval between any two frames onAnimOver - What happens when the animation is over onAnimStart - What happens when the animation is started onAnimRestart - What happens when the animation is restarted onCycleOver - What happens when one cycle is over onChange - What happens at every animation frame change onUpdate - What happens at every frame @Returns An Animation Instance --]] function animx.newAnimation(params) local img,quads,sw,sh,startingFrame,delay local onAnimStart,onAnimRestart,onAnimOver,onCycleOver,onChange,onUpdate if type(params)=='string' then --Overload 1 img=love.graphics.newImage(params) sw,sh=img:getDimensions() quads=animx.newAnimationXML(img,removeExtension(params,true)..'.xml') startingFrame,delay=1,.1 else --Overload 2 img=params.img or params.source or params.image or params.texture or params.atlas or params.spritesheet assert(img,"animX Error: Expected Image or URI in `newAnimation`!") img = type(img)=='string' and love.graphics.newImage(img) or img sw=params.sw or params.imgWidth or params.textureWidth or img:getWidth() sh=params.sh or params.imgHeight or params.textureHeight or img:getHeight() local x,y=params.x or params.offsetX or 0, params.y or params.y or params.offsetY or 0 local nq=params.nq or params.images or params.noOfTiles or params.numberOfQuads or params.noOfQuads or params.noOfFrames --The tile-height will by default be the height of the image! local qw=params.qw or params.quadWidth or params.frameWidth or params.tileWidth local qh=params.qh or params.quadHeight or params.frameHeight or params.tileHeight local frames=params.frames or {} local spr=params.spr or params.spritesPerRow or params.tilesPerRow or params.quadsPerRow quads=params.quads or {} if spr and nq then assert(nq>=spr,"animX Error: No of sprites per row can't be less than total number of quads!!!") end --[[ User has to give atleast one of quad-width and number of sprites per row to calculate no of quads ]]-- --if user has not given sprites per row then let qh simply be image height if not spr then qh=qh or img:getHeight() else if not qh then assert(nq,"animX Error: You have to give number of quads in this case!!!") end qh=qh or img:getHeight()/(nq/spr) end if qw then if #frames>0 then --If user has given us a bunch of frames then we set this to zero if nil nq=nq or 0 else --Otherwise we make the number of quads equal to the max no of quads nq = math.min(nq or math.huge, math.floor(sw/qw) * math.floor(sh/qh)) end elseif spr then --If user has given us number of sprites per row nq=math.min(nq or math.huge,spr*math.floor(sh/qh)) elseif #quads>0 then --If user has given us some quads to work with - we set this to zero if nil nq=nq or 0 end spr = spr or nq --If user has not given anything dissecting then make the image a quad! if not qw and not spr then spr,nq=1,1 qw,qh=img:getWidth(),img:getHeight() end if #quads==0 or not nq then if #frames==0 then assert(spr and spr>0,"animX Error: Sprites per row can't be zero!!") else assert(qw,"animX Error: You must give tileWidth in this case") end end --If user has not given the tileWidth then calculate it based on number of sprites per row if nq>0 and spr then qw=qw or img:getWidth()/spr end assert( qw~=1/0, 'animX Error: Oops! Something bad happened! Please do report the error!' ) local style=params.style if style=='rough' then img:setFilter('nearest','nearest') end local startPoint=params.startFrom or params.startPoint delay=params.delay or params.interval or .1 startingFrame=params.startingFrame or 1 onAnimOver=params.onAnimOver or params.onAnimEnd or params.onAnimationOver or params.onAnimationEnd onAnimStart=params.onAnimStart or params.onAnimationStart onAnimRestart=params.onAnimRestart or params.onAnimationRestart onChange=params.onChange or params.onFrameChange onUpdate=params.onUpdate or params.onTick onCycleOver=params.onCycleOver or params.onCycleEnd --We need the quad dimensions if user has not given us a bunch of quads if #quads==0 then assert(qw and qh,"animX Error: Quad dimensions coudn't be calculated in `newAnimation`!") --IMPORTANT: We want integers not highly precise floats or doubles qw,qh=math.ceil(qw),math.floor(qh) end --Calculate offset from the startpoint if startPoint then x=((startPoint-1)*qw)%sw y=qh*math.floor(((startPoint-1)*qw)/sw) end --Add given frames to the quads table for i=1,#frames do quads[#quads+1]=love.graphics.newQuad( ((frames[i]-1)*qw)%sw, qh*math.floor(((frames[i]-1)*qw)/sw), qw,qh,sw,sh ) end local offsetx=x assert(nq,"animX Error!! Number of quads couldn't be calculated!") for i = 1, nq do if x >= sw then y = y + qh x = offsetx end quads[#quads+1]= love.graphics.newQuad(x, y, qw, qh, sw, sh) x = x + qw end end local animation_obj={ ['texture']=img, ['frames']=quads } table.insert(animx.animObjs,setmetatable(animation_obj,{__index=Animation})) animation_obj:onAnimStart(onAnimStart):init(startingFrame,delay) animation_obj :onAnimOver(onAnimOver) :onAnimRestart(onAnimRestart) :onChange(onChange) :onCycleOver(onCycleOver) :onUpdate(onUpdate) return animx.animObjs[#animx.animObjs] end --[[:- Creates a new Actor either from scratch or from an XML file @params: @Overload-1 Takes no parameters. Returns an empty actor @Overload-2 metafile: A string referring to the URL of the XML file containing the information about all the animations for the actor (you could ofcourse add animations later on if you want) If this is nil then an empty actor (without animations) is created @Overload-3 {...}: A list of all the animations @returns: An Actor instance -:]] function animx.newActor(arg) local actor={} setmetatable(actor,{__index=Actor}):init() if type(arg)=='string' then --User gave us a link to the XML file local img=love.graphics.newImage(arg) local anims=animx.newActorXML(img,removeExtension(arg,true)..'.xml') for i in pairs(anims) do actor:addAnimation(i,{ ['img']=img, ['quads']=anims[i] }) end return actor else if arg then --User gave us a table of animations for the actor for name,anim in pairs(arg) do actor:addAnimation(name,anim) end end --[[ Otherwise User gave us nothing - meaning empty actor has to be created ]] end return actor end --[[ Adds an animation to the actor @Params name - The name of the animation @Overload-1 anim - An animation instance @Overload-2 anim - A to-be-created animation instance @Returns The actor itself ]]-- function Actor:addAnimation(name,anim) if anim.cache and anim.direction then --User provided an already created animation self.animations[name]=anim else --User provided a to-be-created animation self.animations[name]=animx.newAnimation(anim) end return self end --[[ Creates a new animation from XML file! You'll most of the time use newAnimation to indirectly call this fn! @Params:- image - The Image for the animation @Returns:- An array of quads denoting the animation ]]-- function animx.newAnimationXML(image,filename) local i,t,sw,sh=1,{},image:getDimensions() for line in love.filesystem.lines(filename) do if i>1 and line:match('%a') and not line:match('<!') and line~="</TextureAtlas>" then local _, frameNo = string.match(line, "name=([\"'])(.-)%1") frameNo=tonumber(frameNo) --Frames must start from 1! if not frameNo or frameNo<=0 then goto continue end assert(not t[frameNo], "animX Error!! Duplicate Frames found for ("..frameNo..") for "..filename ) local _, x = string.match(line, "x=([\"'])(.-)%1") local _, y = string.match(line, "y=([\"'])(.-)%1") local _, width = string.match(line, "width=([\"'])(.-)%1") local _, height = string.match(line, "height=([\"'])(.-)%1") t[frameNo]=love.graphics.newQuad(x,y,width,height,sw,sh) ::continue:: end i=i+1 end return t end --[[ Creates a new actor from XML file! You'll most of the time use newActor to indirectly call this fn! @Params:- image - The Image for the animation @Returns:- A table/linkhash of quads indexed by the animation name and then the frame number ]]-- function animx.newActorXML(image,filename) local i,t,sw,sh=1,{},image:getDimensions() for line in love.filesystem.lines(filename) do if i>1 and line:match('%a') and not line:match('<!') and line~="</TextureAtlas>" then local _, frameNo = string.match(line, "name=([\"'])(.-)%1") local animName=frameNo:match('[%a ]+') frameNo=tonumber(frameNo:match('%d+')) --Frames must exist and must start from 1! Also animation name must be present if not animName or not frameNo or frameNo<=0 then goto continue end if not t[animName] then t[animName]={} end assert(not t[animName][frameNo], "animX Error!! Duplicate Frames found for ("..frameNo..") for "..filename ) local _, x = string.match(line, "x=([\"'])(.-)%1") local _, y = string.match(line, "y=([\"'])(.-)%1") local _, width = string.match(line, "width=([\"'])(.-)%1") local _, height = string.match(line, "height=([\"'])(.-)%1") t[animName][frameNo]=love.graphics.newQuad(x,y,width,height,sw,sh) ::continue:: end i=i+1 end return t end --[[ Exports an animation (instance) to XML! @Params: filename: By what name should the animation be exported @Returns:- Whether or not animX was successful in exporting ]] function Animation:exportToXML(filename) filename=removePath(filename) if fileExists(filename) then if not animx.hideWarnings then error(string.format("animX Warning! File '%s' Already Exists!",filename)) end end local outfile=io.open(filename,'w') if not outfile then if animx.hideWarnings then return false else error("animx Error! Something's wrong with the io") end end local sname,x,y,width,height outfile:write(string.format('<TextureAtlas imageName="%s">\n',removeExtension(filename))) for i=1,#self.frames do x,y,width,height=self.frames[i]:getViewport() outfile:write( string.format('\t<SubTexture name="%i" x="%i" y="%i" width="%i" height="%i"/>\n', i,x,y,width,height ) ) end outfile:write("</TextureAtlas>") return outfile:close() end --[[ Exports an actor (all the animations associated with it) to XML! @Params: filename: By what name should the actor be exported @Returns:- Whether or not animx was successful in exporting ]] function Actor:exportToXML(filename) filename=removePath(filename) if fileExists(filename) then if not animx.hideWarnings then error(string.format("animX Warning! File '%s' Already Exists!",filename)) end end local outfile=io.open(filename,'w') if not outfile then if animx.hideWarnings then return false else error("animx Error! Something's wrong with the io") end end local sname,x,y,width,height outfile:write(string.format('<TextureAtlas imageName="%s">\n',removeExtension(filename))) for anim in pairs(self.animations) do for i=1,#self.animations[anim].frames do x,y,width,height=self.animations[anim].frames[i]:getViewport() outfile:write( string.format('\t<SubTexture name="%s" x="%i" y="%i" width="%i" height="%i"/>\n', anim..i,x,y,width,height ) ) end end outfile:write("</TextureAtlas>") return outfile:close() end --Updates all the animation objects at once so you won't see them in your code function animx.update(dt) for i=1,#animx.animObjs do animx.animObjs[i]:update(dt) end end love.update=function(dt) animx.update(dt) end animx.newAnimatedSprite=animx.newActor return animx
---@class SpeedControlsHandler SpeedControlsHandler = {}; SpeedControlsHandler.previousSpeed = 1; SpeedControlsHandler.onKeyPressed = function(key) if isClient() then return; end if not MainScreen.instance or not MainScreen.instance.inGame or MainScreen.instance:getIsVisible() then return end if key == getCore():getKey("Pause") then if not MainScreen.instance.inGame or MainScreen.instance:getIsVisible() then -- Default "Pause" is same as "Main Menu" elseif key == Keyboard.KEY_ESCAPE and getCell() and getCell():getDrag(0) then -- ToggleEscapeMenu does getCell():setDrag(nil) elseif getGameSpeed() > 0 then SpeedControlsHandler.previousSpeed = getGameTime():getTrueMultiplier(); setGameSpeed(0); else setGameSpeed(1); getGameTime():setMultiplier(SpeedControlsHandler.previousSpeed or 1); SpeedControlsHandler.previousSpeed = nil; end elseif key == getCore():getKey("Normal Speed") then setGameSpeed(1); getGameTime():setMultiplier(1); elseif key == getCore():getKey("Fast Forward x1") then setGameSpeed(2); getGameTime():setMultiplier(5); elseif key == getCore():getKey("Fast Forward x2") then setGameSpeed(3); getGameTime():setMultiplier(20); elseif key == getCore():getKey("Fast Forward x3") then setGameSpeed(4); getGameTime():setMultiplier(40); end end Events.OnKeyPressed.Add(SpeedControlsHandler.onKeyPressed);
return { postgres = { up = [[ CREATE INDEX IF NOT EXISTS sessions_ttl_idx ON sessions (ttl); ]], }, cassandra = { up = [[]], }, }
-- This file is automatically generated, do not edit! -- Path of Building -- -- Dexterity support gems -- Skill data (c) Grinding Gear Games -- local skills, mod, flag, skill = ... skills["SupportAddedColdDamage"] = { name = "Added Cold Damage", description = "Supports any skill that hits enemies.", color = 2, baseEffectiveness = 0.57270002365112, incrementalEffectiveness = 0.03770000115037, support = true, requireSkillTypes = { SkillType.Attack, SkillType.Hit, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "cold_damage_+%", 0.5 }, }, Alternate1 = { { "base_chance_to_freeze_%", 0.5 }, }, Alternate2 = { { "skill_physical_damage_%_to_convert_to_cold", 1 }, }, }, stats = { "global_minimum_added_cold_damage", "global_maximum_added_cold_damage", }, levels = { [1] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 8, statInterpolation = { 3, 3, }, cost = { }, }, [2] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 10, statInterpolation = { 3, 3, }, cost = { }, }, [3] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 13, statInterpolation = { 3, 3, }, cost = { }, }, [4] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 17, statInterpolation = { 3, 3, }, cost = { }, }, [5] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 21, statInterpolation = { 3, 3, }, cost = { }, }, [6] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 25, statInterpolation = { 3, 3, }, cost = { }, }, [7] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 29, statInterpolation = { 3, 3, }, cost = { }, }, [8] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 33, statInterpolation = { 3, 3, }, cost = { }, }, [9] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 37, statInterpolation = { 3, 3, }, cost = { }, }, [10] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 40, statInterpolation = { 3, 3, }, cost = { }, }, [11] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 43, statInterpolation = { 3, 3, }, cost = { }, }, [12] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 46, statInterpolation = { 3, 3, }, cost = { }, }, [13] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 49, statInterpolation = { 3, 3, }, cost = { }, }, [14] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 52, statInterpolation = { 3, 3, }, cost = { }, }, [15] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 55, statInterpolation = { 3, 3, }, cost = { }, }, [16] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 58, statInterpolation = { 3, 3, }, cost = { }, }, [17] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 61, statInterpolation = { 3, 3, }, cost = { }, }, [18] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 64, statInterpolation = { 3, 3, }, cost = { }, }, [19] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 67, statInterpolation = { 3, 3, }, cost = { }, }, [20] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 70, statInterpolation = { 3, 3, }, cost = { }, }, [21] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 3, 3, }, cost = { }, }, [22] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 3, 3, }, cost = { }, }, [23] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 3, 3, }, cost = { }, }, [24] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 3, 3, }, cost = { }, }, [25] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 3, 3, }, cost = { }, }, [26] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 3, 3, }, cost = { }, }, [27] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 3, 3, }, cost = { }, }, [28] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 3, 3, }, cost = { }, }, [29] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 3, 3, }, cost = { }, }, [30] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 3, 3, }, cost = { }, }, [31] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 3, 3, }, cost = { }, }, [32] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 3, 3, }, cost = { }, }, [33] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 3, 3, }, cost = { }, }, [34] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 3, 3, }, cost = { }, }, [35] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 3, 3, }, cost = { }, }, [36] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 3, 3, }, cost = { }, }, [37] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 3, 3, }, cost = { }, }, [38] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 3, 3, }, cost = { }, }, [39] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 3, 3, }, cost = { }, }, [40] = { 0.80000001192093, 1.2000000476837, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 3, 3, }, cost = { }, }, }, } skills["SupportAddedColdDamagePlus"] = { name = "Awakened Added Cold Damage", description = "Supports any skill that hits enemies.", color = 2, support = true, requireSkillTypes = { SkillType.Attack, SkillType.Hit, }, addSkillTypes = { }, excludeSkillTypes = { }, plusVersionOf = "SupportAddedColdDamage", statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "cold_damage_+%", 0.5 }, }, }, stats = { "global_minimum_added_cold_damage", "global_maximum_added_cold_damage", "supported_cold_skill_gem_level_+", }, levels = { [1] = { 187, 280, 0, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 197, 295, 0, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 206, 309, 0, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 217, 325, 0, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 227, 341, 1, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 239, 359, 1, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 250, 376, 1, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 263, 395, 1, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 276, 414, 1, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 283, 424, 2, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 290, 435, 2, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 297, 445, 2, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 304, 455, 2, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 312, 467, 2, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 319, 478, 3, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 327, 490, 3, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 334, 501, 3, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 342, 514, 3, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 351, 526, 3, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 359, 539, 4, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportAdditionalAccuracy"] = { name = "Additional Accuracy", description = "Supports attack skills.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.Attack, SkillType.AnimateWeapon, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["attack_damage_+%_per_1000_accuracy_rating"] = { mod("Damage", "INC", nil, ModFlag.Attack, 0, { type = "PerStat", div = 1000, stat = "Accuracy"}) } }, baseMods = { }, qualityStats = { Default = { { "accuracy_rating_+%", 1 }, }, Alternate1 = { { "base_critical_strike_multiplier_+", 1 }, }, Alternate2 = { { "attack_damage_+%_per_1000_accuracy_rating", 0.2 }, }, }, stats = { "accuracy_rating", }, levels = { [1] = { 74, manaMultiplier = 10, levelRequirement = 8, statInterpolation = { 1, }, cost = { }, }, [2] = { 100, manaMultiplier = 10, levelRequirement = 10, statInterpolation = { 1, }, cost = { }, }, [3] = { 127, manaMultiplier = 10, levelRequirement = 13, statInterpolation = { 1, }, cost = { }, }, [4] = { 157, manaMultiplier = 10, levelRequirement = 17, statInterpolation = { 1, }, cost = { }, }, [5] = { 190, manaMultiplier = 10, levelRequirement = 21, statInterpolation = { 1, }, cost = { }, }, [6] = { 230, manaMultiplier = 10, levelRequirement = 25, statInterpolation = { 1, }, cost = { }, }, [7] = { 290, manaMultiplier = 10, levelRequirement = 29, statInterpolation = { 1, }, cost = { }, }, [8] = { 350, manaMultiplier = 10, levelRequirement = 33, statInterpolation = { 1, }, cost = { }, }, [9] = { 400, manaMultiplier = 10, levelRequirement = 37, statInterpolation = { 1, }, cost = { }, }, [10] = { 453, manaMultiplier = 10, levelRequirement = 40, statInterpolation = { 1, }, cost = { }, }, [11] = { 528, manaMultiplier = 10, levelRequirement = 43, statInterpolation = { 1, }, cost = { }, }, [12] = { 586, manaMultiplier = 10, levelRequirement = 46, statInterpolation = { 1, }, cost = { }, }, [13] = { 645, manaMultiplier = 10, levelRequirement = 49, statInterpolation = { 1, }, cost = { }, }, [14] = { 707, manaMultiplier = 10, levelRequirement = 52, statInterpolation = { 1, }, cost = { }, }, [15] = { 772, manaMultiplier = 10, levelRequirement = 55, statInterpolation = { 1, }, cost = { }, }, [16] = { 840, manaMultiplier = 10, levelRequirement = 58, statInterpolation = { 1, }, cost = { }, }, [17] = { 887, manaMultiplier = 10, levelRequirement = 61, statInterpolation = { 1, }, cost = { }, }, [18] = { 934, manaMultiplier = 10, levelRequirement = 64, statInterpolation = { 1, }, cost = { }, }, [19] = { 983, manaMultiplier = 10, levelRequirement = 67, statInterpolation = { 1, }, cost = { }, }, [20] = { 1034, manaMultiplier = 10, levelRequirement = 70, statInterpolation = { 1, }, cost = { }, }, [21] = { 1085, manaMultiplier = 10, levelRequirement = 72, statInterpolation = { 1, }, cost = { }, }, [22] = { 1138, manaMultiplier = 10, levelRequirement = 74, statInterpolation = { 1, }, cost = { }, }, [23] = { 1191, manaMultiplier = 10, levelRequirement = 76, statInterpolation = { 1, }, cost = { }, }, [24] = { 1246, manaMultiplier = 10, levelRequirement = 78, statInterpolation = { 1, }, cost = { }, }, [25] = { 1301, manaMultiplier = 10, levelRequirement = 80, statInterpolation = { 1, }, cost = { }, }, [26] = { 1358, manaMultiplier = 10, levelRequirement = 82, statInterpolation = { 1, }, cost = { }, }, [27] = { 1415, manaMultiplier = 10, levelRequirement = 84, statInterpolation = { 1, }, cost = { }, }, [28] = { 1474, manaMultiplier = 10, levelRequirement = 86, statInterpolation = { 1, }, cost = { }, }, [29] = { 1533, manaMultiplier = 10, levelRequirement = 88, statInterpolation = { 1, }, cost = { }, }, [30] = { 1594, manaMultiplier = 10, levelRequirement = 90, statInterpolation = { 1, }, cost = { }, }, [31] = { 1625, manaMultiplier = 10, levelRequirement = 91, statInterpolation = { 1, }, cost = { }, }, [32] = { 1655, manaMultiplier = 10, levelRequirement = 92, statInterpolation = { 1, }, cost = { }, }, [33] = { 1687, manaMultiplier = 10, levelRequirement = 93, statInterpolation = { 1, }, cost = { }, }, [34] = { 1718, manaMultiplier = 10, levelRequirement = 94, statInterpolation = { 1, }, cost = { }, }, [35] = { 1750, manaMultiplier = 10, levelRequirement = 95, statInterpolation = { 1, }, cost = { }, }, [36] = { 1781, manaMultiplier = 10, levelRequirement = 96, statInterpolation = { 1, }, cost = { }, }, [37] = { 1814, manaMultiplier = 10, levelRequirement = 97, statInterpolation = { 1, }, cost = { }, }, [38] = { 1846, manaMultiplier = 10, levelRequirement = 98, statInterpolation = { 1, }, cost = { }, }, [39] = { 1879, manaMultiplier = 10, levelRequirement = 99, statInterpolation = { 1, }, cost = { }, }, [40] = { 1911, manaMultiplier = 10, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportArrowNova"] = { name = "Arrow Nova", description = "Supports bow attack skills that fire arrows forwards as projectiles. These skills will instead fire a payload arrow into the air to land at a targeted location. The supported skills' arrows will then fire out in a circle from where it lands. Cannot support skills that already fire arrows into the air, channelled skills, or skills that create Minions.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.MinionProjectile, SkillType.OR, SkillType.ProjectileAttack, SkillType.AnimateWeapon, SkillType.OR, SkillType.AND, SkillType.SkillCanVolley, SkillType.AND, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.Channelled, SkillType.CreatesMinion, SkillType.FiresProjectilesFromSecondaryLocation, }, ignoreMinionTypes = true, weaponTypes = { ["Bow"] = true, }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_rain_projectile_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, Alternate1 = { { "base_projectile_speed_+%", 1 }, }, Alternate2 = { { "base_projectile_speed_+%", -2 }, { "damage_+%", 1 }, }, }, stats = { "number_of_additional_projectiles", "support_rain_projectile_damage_+%_final", "projectiles_nova", "projectiles_rain", "skill_can_only_use_bow", "skill_is_rain_skill", }, levels = { [1] = { 4, -40, manaMultiplier = 50, levelRequirement = 8, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 4, -39, manaMultiplier = 50, levelRequirement = 10, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 4, -39, manaMultiplier = 50, levelRequirement = 13, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 4, -38, manaMultiplier = 50, levelRequirement = 17, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 4, -37, manaMultiplier = 50, levelRequirement = 21, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 4, -36, manaMultiplier = 50, levelRequirement = 25, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 4, -36, manaMultiplier = 50, levelRequirement = 29, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 4, -35, manaMultiplier = 50, levelRequirement = 33, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 4, -34, manaMultiplier = 50, levelRequirement = 37, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 4, -33, manaMultiplier = 50, levelRequirement = 40, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 4, -33, manaMultiplier = 50, levelRequirement = 43, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 4, -32, manaMultiplier = 50, levelRequirement = 46, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 4, -31, manaMultiplier = 50, levelRequirement = 49, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 4, -30, manaMultiplier = 50, levelRequirement = 52, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 4, -30, manaMultiplier = 50, levelRequirement = 55, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 4, -29, manaMultiplier = 50, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 4, -28, manaMultiplier = 50, levelRequirement = 61, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 4, -27, manaMultiplier = 50, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 4, -27, manaMultiplier = 50, levelRequirement = 67, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 4, -26, manaMultiplier = 50, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 4, -25, manaMultiplier = 50, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 4, -25, manaMultiplier = 50, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 4, -24, manaMultiplier = 50, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 4, -23, manaMultiplier = 50, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 4, -22, manaMultiplier = 50, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 4, -22, manaMultiplier = 50, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 4, -21, manaMultiplier = 50, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 4, -20, manaMultiplier = 50, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 4, -19, manaMultiplier = 50, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 4, -19, manaMultiplier = 50, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 4, -18, manaMultiplier = 50, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 4, -17, manaMultiplier = 50, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 4, -16, manaMultiplier = 50, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 4, -16, manaMultiplier = 50, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 4, -15, manaMultiplier = 50, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 4, -14, manaMultiplier = 50, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 4, -13, manaMultiplier = 50, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 4, -13, manaMultiplier = 50, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 4, -12, manaMultiplier = 50, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 4, -11, manaMultiplier = 50, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportArrowNovaPlus"] = { name = "Awakened Arrow Nova", description = "Supports bow attack skills that fire arrows forwards as projectiles. These skills will instead fire a payload arrow into the air to land at a targeted location. The supported skills' arrows will then fire out in a circle from where it lands. Cannot support skills that already fire arrows into the air, channelled skills, or skills that create Minions.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.MinionProjectile, SkillType.OR, SkillType.ProjectileAttack, SkillType.AnimateWeapon, SkillType.OR, SkillType.AND, SkillType.SkillCanVolley, SkillType.AND, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.Channelled, SkillType.CreatesMinion, SkillType.FiresProjectilesFromSecondaryLocation, }, ignoreMinionTypes = true, plusVersionOf = "SupportArrowNova", weaponTypes = { ["Bow"] = true, }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_rain_projectile_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, }, stats = { "number_of_additional_projectiles", "support_rain_projectile_damage_+%_final", "projectiles_nova", "projectiles_rain", "skill_can_only_use_bow", "skill_is_rain_skill", }, levels = { [1] = { 5, -25, manaMultiplier = 50, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 5, -24, manaMultiplier = 50, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 5, -23, manaMultiplier = 50, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 5, -22, manaMultiplier = 50, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 5, -21, manaMultiplier = 50, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 5, -20, manaMultiplier = 50, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 5, -20, manaMultiplier = 50, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 5, -19, manaMultiplier = 50, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 5, -19, manaMultiplier = 50, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 5, -18, manaMultiplier = 50, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 5, -18, manaMultiplier = 50, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 5, -17, manaMultiplier = 50, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 5, -17, manaMultiplier = 50, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 5, -16, manaMultiplier = 50, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 5, -16, manaMultiplier = 50, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 5, -15, manaMultiplier = 50, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 5, -15, manaMultiplier = 50, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 5, -14, manaMultiplier = 50, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 5, -14, manaMultiplier = 50, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 5, -13, manaMultiplier = 50, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportBarrage"] = { name = "Barrage", description = "Supports projectile attack skills that use bows or wands. Cannot support triggered skills, channelled skills, or skills that create Minions.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.MinionProjectile, SkillType.OR, SkillType.Type73, SkillType.OR, SkillType.ProjectileAttack, SkillType.AnimateWeapon, SkillType.OR, SkillType.AND, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.Channelled, SkillType.CreatesMinion, SkillType.Triggered, SkillType.TriggeredGrantedSkill, }, ignoreMinionTypes = true, weaponTypes = { ["Wand"] = true, ["Bow"] = true, }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_barrage_damage_+%_final"] = { mod("Damage", "MORE", nil, 0, 0, { type = "Condition", varList = { "UsingBow", "UsingWand" }}), }, ["projectiles_barrage"] = { flag("SequentialProjectiles", { type = "Condition", varList = { "UsingBow", "UsingWand" }}), }, ["number_of_additional_projectiles"] = { mod("ProjectileCount", "BASE", nil, 0, 0, { type = "Condition", varList = { "UsingBow", "UsingWand" }}), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, Alternate1 = { { "projectile_base_number_of_targets_to_pierce", 0.1 }, }, Alternate2 = { { "barrage_support_projectile_spread_+%", 5 }, }, }, stats = { "number_of_additional_projectiles", "support_barrage_damage_+%_final", "support_barrage_attack_time_+%_per_projectile_fired", "support_barrage_trap_and_mine_throwing_time_+%_final_per_projectile_fired", "projectiles_barrage", "skill_can_only_use_non_melee_weapons", }, levels = { [1] = { 3, -68, 5, 5, manaMultiplier = 50, levelRequirement = 38, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 3, -68, 5, 5, manaMultiplier = 50, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 3, -67, 5, 5, manaMultiplier = 50, levelRequirement = 42, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 3, -67, 5, 5, manaMultiplier = 50, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 3, -67, 5, 5, manaMultiplier = 50, levelRequirement = 46, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 3, -66, 5, 5, manaMultiplier = 50, levelRequirement = 48, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 3, -66, 5, 5, manaMultiplier = 50, levelRequirement = 50, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 3, -66, 5, 5, manaMultiplier = 50, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 3, -65, 5, 5, manaMultiplier = 50, levelRequirement = 54, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 3, -65, 5, 5, manaMultiplier = 50, levelRequirement = 56, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 3, -65, 5, 5, manaMultiplier = 50, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 3, -65, 5, 5, manaMultiplier = 50, levelRequirement = 60, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 3, -64, 5, 5, manaMultiplier = 50, levelRequirement = 62, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 3, -64, 5, 5, manaMultiplier = 50, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 3, -64, 5, 5, manaMultiplier = 50, levelRequirement = 65, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 3, -63, 5, 5, manaMultiplier = 50, levelRequirement = 66, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 3, -63, 5, 5, manaMultiplier = 50, levelRequirement = 67, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 3, -63, 5, 5, manaMultiplier = 50, levelRequirement = 68, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 3, -62, 5, 5, manaMultiplier = 50, levelRequirement = 69, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 3, -62, 5, 5, manaMultiplier = 50, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 3, -62, 5, 5, manaMultiplier = 50, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 3, -61, 5, 5, manaMultiplier = 50, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 3, -61, 5, 5, manaMultiplier = 50, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 3, -61, 5, 5, manaMultiplier = 50, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 3, -60, 5, 5, manaMultiplier = 50, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 3, -60, 5, 5, manaMultiplier = 50, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 3, -60, 5, 5, manaMultiplier = 50, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 3, -59, 5, 5, manaMultiplier = 50, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 3, -59, 5, 5, manaMultiplier = 50, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 3, -59, 5, 5, manaMultiplier = 50, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 3, -59, 5, 5, manaMultiplier = 50, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 3, -58, 5, 5, manaMultiplier = 50, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 3, -58, 5, 5, manaMultiplier = 50, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 3, -58, 5, 5, manaMultiplier = 50, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 3, -57, 5, 5, manaMultiplier = 50, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 3, -57, 5, 5, manaMultiplier = 50, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 3, -57, 5, 5, manaMultiplier = 50, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 3, -56, 5, 5, manaMultiplier = 50, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 3, -56, 5, 5, manaMultiplier = 50, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 3, -56, 5, 5, manaMultiplier = 50, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportBlind"] = { name = "Blind", description = "Supports any skill that hits enemies.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "blind_duration_+%", 1 }, }, Alternate1 = { { "global_chance_to_blind_on_hit_%", 0.5 }, }, Alternate2 = { { "critical_strike_chance_+%_vs_blinded_enemies", 2 }, }, }, stats = { "global_chance_to_blind_on_hit_%", "blind_duration_+%", }, levels = { [1] = { 10, 0, manaMultiplier = 10, levelRequirement = 8, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 10, 2, manaMultiplier = 10, levelRequirement = 10, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 10, 4, manaMultiplier = 10, levelRequirement = 13, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 10, 6, manaMultiplier = 10, levelRequirement = 17, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 10, 8, manaMultiplier = 10, levelRequirement = 21, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 10, 10, manaMultiplier = 10, levelRequirement = 25, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 10, 12, manaMultiplier = 10, levelRequirement = 29, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 10, 14, manaMultiplier = 10, levelRequirement = 33, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 10, 16, manaMultiplier = 10, levelRequirement = 37, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 10, 18, manaMultiplier = 10, levelRequirement = 40, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 10, 20, manaMultiplier = 10, levelRequirement = 43, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 10, 22, manaMultiplier = 10, levelRequirement = 46, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 10, 24, manaMultiplier = 10, levelRequirement = 49, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 10, 26, manaMultiplier = 10, levelRequirement = 52, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 10, 28, manaMultiplier = 10, levelRequirement = 55, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 10, 30, manaMultiplier = 10, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 10, 32, manaMultiplier = 10, levelRequirement = 61, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 10, 34, manaMultiplier = 10, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 10, 36, manaMultiplier = 10, levelRequirement = 67, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 10, 38, manaMultiplier = 10, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 10, 40, manaMultiplier = 10, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 10, 42, manaMultiplier = 10, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 10, 44, manaMultiplier = 10, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 10, 46, manaMultiplier = 10, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 10, 48, manaMultiplier = 10, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 10, 50, manaMultiplier = 10, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 10, 52, manaMultiplier = 10, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 10, 54, manaMultiplier = 10, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 10, 56, manaMultiplier = 10, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 10, 58, manaMultiplier = 10, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 10, 59, manaMultiplier = 10, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 10, 60, manaMultiplier = 10, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 10, 61, manaMultiplier = 10, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 10, 62, manaMultiplier = 10, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 10, 63, manaMultiplier = 10, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 10, 64, manaMultiplier = 10, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 10, 65, manaMultiplier = 10, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 10, 66, manaMultiplier = 10, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 10, 67, manaMultiplier = 10, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 10, 68, manaMultiplier = 10, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportBlockReduction"] = { name = "Block Chance Reduction", description = "Supports any skill that hits enemies.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { SkillType.Duration, }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "global_reduce_enemy_block_%", 0.25 }, }, Alternate1 = { { "overpowered_effect_+%", 2 }, }, }, stats = { "support_reduce_enemy_block_and_spell_block_%", "support_overpowered_base_duration_ms", "apply_overpowered_on_enemy_block_reduced_block_and_spell_block_%", }, levels = { [1] = { 10, 4000, 5, levelRequirement = 18, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 11, 4000, 5, levelRequirement = 22, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 11, 4000, 5, levelRequirement = 26, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 12, 4000, 5, levelRequirement = 29, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 12, 4000, 5, levelRequirement = 32, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 13, 4000, 5, levelRequirement = 35, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 13, 4000, 5, levelRequirement = 38, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 14, 4000, 5, levelRequirement = 41, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 14, 4000, 5, levelRequirement = 44, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 15, 4000, 5, levelRequirement = 47, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 15, 4000, 5, levelRequirement = 50, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 16, 4000, 5, levelRequirement = 53, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 16, 4000, 5, levelRequirement = 56, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 17, 4000, 5, levelRequirement = 58, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 17, 4000, 5, levelRequirement = 60, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 18, 4000, 5, levelRequirement = 62, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 18, 4000, 5, levelRequirement = 64, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 19, 4000, 5, levelRequirement = 66, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 19, 4000, 5, levelRequirement = 68, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 20, 4000, 5, levelRequirement = 70, statInterpolation = { 1, 1, 1, }, cost = { }, }, [21] = { 20, 4000, 5, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [22] = { 21, 4000, 5, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [23] = { 21, 4000, 5, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [24] = { 22, 4000, 5, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [25] = { 22, 4000, 5, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [26] = { 23, 4000, 5, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [27] = { 23, 4000, 5, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [28] = { 24, 4000, 5, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [29] = { 24, 4000, 5, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [30] = { 25, 4000, 5, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [31] = { 25, 4000, 5, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [32] = { 25, 4000, 5, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [33] = { 26, 4000, 5, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [34] = { 26, 4000, 5, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [35] = { 26, 4000, 5, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [36] = { 27, 4000, 5, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [37] = { 27, 4000, 5, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [38] = { 27, 4000, 5, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [39] = { 28, 4000, 5, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [40] = { 28, 4000, 5, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportCastOnCrit"] = { name = "Cast On Critical Strike", description = "Must support both an attack skill and a spell skill to work. The attack skill will trigger a spell when it critically strikes an enemy. Cannot support totems, traps, or mines. Vaal skills, channelling skills, and skills with a reservation cannot be triggered.", color = 2, support = true, requireSkillTypes = { SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.Trap, SkillType.Mine, SkillType.Totem, SkillType.ManaCostReserved, }, ignoreMinionTypes = true, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_cast_on_crit_quality_attack_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Attack, 0) }, }, baseMods = { }, qualityStats = { Default = { { "attack_critical_strike_chance_+%", 1 }, }, Alternate1 = { { "support_cast_on_crit_quality_attack_damage_+%_final", 1 }, }, Alternate2 = { { "attack_speed_+%", 0.5 }, }, }, stats = { "cast_linked_spells_on_attack_crit_%", }, levels = { [1] = { 100, manaMultiplier = 20, levelRequirement = 38, statInterpolation = { 1, }, cost = { }, }, [2] = { 100, manaMultiplier = 20, levelRequirement = 40, statInterpolation = { 1, }, cost = { }, }, [3] = { 100, manaMultiplier = 20, levelRequirement = 42, statInterpolation = { 1, }, cost = { }, }, [4] = { 100, manaMultiplier = 20, levelRequirement = 44, statInterpolation = { 1, }, cost = { }, }, [5] = { 100, manaMultiplier = 20, levelRequirement = 46, statInterpolation = { 1, }, cost = { }, }, [6] = { 100, manaMultiplier = 20, levelRequirement = 48, statInterpolation = { 1, }, cost = { }, }, [7] = { 100, manaMultiplier = 20, levelRequirement = 50, statInterpolation = { 1, }, cost = { }, }, [8] = { 100, manaMultiplier = 20, levelRequirement = 52, statInterpolation = { 1, }, cost = { }, }, [9] = { 100, manaMultiplier = 20, levelRequirement = 54, statInterpolation = { 1, }, cost = { }, }, [10] = { 100, manaMultiplier = 20, levelRequirement = 56, statInterpolation = { 1, }, cost = { }, }, [11] = { 100, manaMultiplier = 20, levelRequirement = 58, statInterpolation = { 1, }, cost = { }, }, [12] = { 100, manaMultiplier = 20, levelRequirement = 60, statInterpolation = { 1, }, cost = { }, }, [13] = { 100, manaMultiplier = 20, levelRequirement = 62, statInterpolation = { 1, }, cost = { }, }, [14] = { 100, manaMultiplier = 20, levelRequirement = 64, statInterpolation = { 1, }, cost = { }, }, [15] = { 100, manaMultiplier = 20, levelRequirement = 65, statInterpolation = { 1, }, cost = { }, }, [16] = { 100, manaMultiplier = 20, levelRequirement = 66, statInterpolation = { 1, }, cost = { }, }, [17] = { 100, manaMultiplier = 20, levelRequirement = 67, statInterpolation = { 1, }, cost = { }, }, [18] = { 100, manaMultiplier = 20, levelRequirement = 68, statInterpolation = { 1, }, cost = { }, }, [19] = { 100, manaMultiplier = 20, levelRequirement = 69, statInterpolation = { 1, }, cost = { }, }, [20] = { 100, manaMultiplier = 20, levelRequirement = 70, statInterpolation = { 1, }, cost = { }, }, [21] = { 100, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 1, }, cost = { }, }, [22] = { 100, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 1, }, cost = { }, }, [23] = { 100, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 1, }, cost = { }, }, [24] = { 100, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 1, }, cost = { }, }, [25] = { 100, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 1, }, cost = { }, }, [26] = { 100, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 1, }, cost = { }, }, [27] = { 100, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 1, }, cost = { }, }, [28] = { 100, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 1, }, cost = { }, }, [29] = { 100, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 1, }, cost = { }, }, [30] = { 100, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, }, cost = { }, }, [31] = { 100, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 1, }, cost = { }, }, [32] = { 100, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 1, }, cost = { }, }, [33] = { 100, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 1, }, cost = { }, }, [34] = { 100, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 1, }, cost = { }, }, [35] = { 100, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 1, }, cost = { }, }, [36] = { 100, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 1, }, cost = { }, }, [37] = { 100, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 1, }, cost = { }, }, [38] = { 100, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 1, }, cost = { }, }, [39] = { 100, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 1, }, cost = { }, }, [40] = { 100, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportCastOnCritTriggered"] = { name = "Cast On Critical Strike", description = "Must support both an attack skill and a spell skill to work. The attack skill will trigger a spell when it critically strikes an enemy. Cannot support totems, traps, or mines. Vaal skills, channelling skills, and skills with a reservation cannot be triggered.", color = 2, support = true, requireSkillTypes = { SkillType.Spell, SkillType.Triggerable, SkillType.AND, }, addSkillTypes = { SkillType.Triggered, SkillType.SecondWindSupport, }, excludeSkillTypes = { SkillType.Trap, SkillType.Mine, SkillType.Totem, SkillType.ManaCostReserved, SkillType.TriggeredGrantedSkill, }, ignoreMinionTypes = true, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_cast_on_crit_spell_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Spell), }, }, baseMods = { }, qualityStats = { Default = { { "spell_critical_strike_chance_+%", 1 }, }, Alternate1 = { { "dummy_stat_display_nothing", 0 }, }, Alternate2 = { { "dummy_stat_display_nothing", 0 }, }, }, stats = { "support_cast_on_crit_spell_damage_+%_final", "spell_uncastable_if_triggerable", "triggered_skill_uses_main_hand_or_averaged_attack_time_for_pvp_scaling", "cast_spell_on_linked_attack_crit", }, levels = { [1] = { 20, cooldown = 0.15, levelRequirement = 38, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [2] = { 20, cooldown = 0.15, levelRequirement = 40, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [3] = { 21, cooldown = 0.15, levelRequirement = 42, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [4] = { 21, cooldown = 0.15, levelRequirement = 44, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [5] = { 22, cooldown = 0.15, levelRequirement = 46, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [6] = { 22, cooldown = 0.15, levelRequirement = 48, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [7] = { 23, cooldown = 0.15, levelRequirement = 50, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [8] = { 23, cooldown = 0.15, levelRequirement = 52, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [9] = { 24, cooldown = 0.15, levelRequirement = 54, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [10] = { 24, cooldown = 0.15, levelRequirement = 56, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [11] = { 25, cooldown = 0.15, levelRequirement = 58, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [12] = { 25, cooldown = 0.15, levelRequirement = 60, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [13] = { 26, cooldown = 0.15, levelRequirement = 62, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [14] = { 26, cooldown = 0.15, levelRequirement = 64, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [15] = { 27, cooldown = 0.15, levelRequirement = 65, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [16] = { 27, cooldown = 0.15, levelRequirement = 66, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [17] = { 28, cooldown = 0.15, levelRequirement = 67, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [18] = { 28, cooldown = 0.15, levelRequirement = 68, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [19] = { 29, cooldown = 0.15, levelRequirement = 69, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [20] = { 29, cooldown = 0.15, levelRequirement = 70, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [21] = { 30, cooldown = 0.15, levelRequirement = 72, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [22] = { 30, cooldown = 0.15, levelRequirement = 74, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [23] = { 31, cooldown = 0.15, levelRequirement = 76, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [24] = { 31, cooldown = 0.15, levelRequirement = 78, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [25] = { 32, cooldown = 0.15, levelRequirement = 80, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [26] = { 32, cooldown = 0.15, levelRequirement = 82, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [27] = { 33, cooldown = 0.15, levelRequirement = 84, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [28] = { 33, cooldown = 0.15, levelRequirement = 86, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [29] = { 34, cooldown = 0.15, levelRequirement = 88, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [30] = { 34, cooldown = 0.15, levelRequirement = 90, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [31] = { 34, cooldown = 0.15, levelRequirement = 91, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [32] = { 35, cooldown = 0.15, levelRequirement = 92, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [33] = { 35, cooldown = 0.15, levelRequirement = 93, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [34] = { 35, cooldown = 0.15, levelRequirement = 94, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [35] = { 35, cooldown = 0.15, levelRequirement = 95, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [36] = { 36, cooldown = 0.15, levelRequirement = 96, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [37] = { 36, cooldown = 0.15, levelRequirement = 97, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [38] = { 36, cooldown = 0.15, levelRequirement = 98, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [39] = { 36, cooldown = 0.15, levelRequirement = 99, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, [40] = { 37, cooldown = 0.15, levelRequirement = 100, manaMultiplier = 20, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportCastOnCritPlus"] = { name = "Awakened Cast On Critical Strike", description = "Must support both an attack skill and a spell skill to work. The attack skill will trigger a spell when it critically strikes an enemy. Cannot support totems, traps, or mines. Vaal skills, channelling skills, and skills with a reservation cannot be triggered.", color = 2, support = true, requireSkillTypes = { SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.Trap, SkillType.Mine, SkillType.Totem, SkillType.ManaCostReserved, }, ignoreMinionTypes = true, plusVersionOf = "SupportCastOnCrit", statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "attack_critical_strike_chance_+%", 1 }, }, }, stats = { "cast_linked_spells_on_attack_crit_%", }, levels = { [1] = { 100, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 1, }, cost = { }, }, [2] = { 100, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 1, }, cost = { }, }, [3] = { 100, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 1, }, cost = { }, }, [4] = { 100, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 1, }, cost = { }, }, [5] = { 100, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 1, }, cost = { }, }, [6] = { 100, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 1, }, cost = { }, }, [7] = { 100, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 1, }, cost = { }, }, [8] = { 100, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 1, }, cost = { }, }, [9] = { 100, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 1, }, cost = { }, }, [10] = { 100, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, }, cost = { }, }, [11] = { 100, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 1, }, cost = { }, }, [12] = { 100, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 1, }, cost = { }, }, [13] = { 100, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 1, }, cost = { }, }, [14] = { 100, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 1, }, cost = { }, }, [15] = { 100, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 1, }, cost = { }, }, [16] = { 100, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 1, }, cost = { }, }, [17] = { 100, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 1, }, cost = { }, }, [18] = { 100, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 1, }, cost = { }, }, [19] = { 100, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 1, }, cost = { }, }, [20] = { 100, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportCastOnCritTriggeredPlus"] = { name = "Awakened Cast On Critical Strike", description = "Must support both an attack skill and a spell skill to work. The attack skill will trigger a spell when it critically strikes an enemy. Cannot support totems, traps, or mines. Vaal skills, channelling skills, and skills with a reservation cannot be triggered.", color = 2, support = true, requireSkillTypes = { SkillType.Spell, SkillType.Triggerable, SkillType.AND, }, addSkillTypes = { SkillType.Triggered, SkillType.SecondWindSupport, }, excludeSkillTypes = { SkillType.Trap, SkillType.Mine, SkillType.Totem, SkillType.ManaCostReserved, SkillType.TriggeredGrantedSkill, }, ignoreMinionTypes = true, plusVersionOf = "SupportCastOnCritTriggered", statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_cast_on_crit_spell_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Spell), }, }, baseMods = { }, qualityStats = { Default = { { "spell_critical_strike_chance_+%", 1 }, }, }, stats = { "support_cast_on_crit_spell_damage_+%_final", "base_spell_cooldown_speed_+%", "spell_uncastable_if_triggerable", "triggered_skill_uses_main_hand_or_averaged_attack_time_for_pvp_scaling", "cast_spell_on_linked_attack_crit", }, levels = { [1] = { 30, 10, cooldown = 0.15, levelRequirement = 72, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 31, 13, cooldown = 0.15, levelRequirement = 74, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 31, 16, cooldown = 0.15, levelRequirement = 76, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 32, 19, cooldown = 0.15, levelRequirement = 78, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 32, 22, cooldown = 0.15, levelRequirement = 80, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 33, 25, cooldown = 0.15, levelRequirement = 82, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 33, 28, cooldown = 0.15, levelRequirement = 84, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 33, 31, cooldown = 0.15, levelRequirement = 86, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 33, 34, cooldown = 0.15, levelRequirement = 88, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 34, 37, cooldown = 0.15, levelRequirement = 90, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 34, 38, cooldown = 0.15, levelRequirement = 91, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 34, 40, cooldown = 0.15, levelRequirement = 92, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 34, 41, cooldown = 0.15, levelRequirement = 93, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 35, 43, cooldown = 0.15, levelRequirement = 94, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 35, 44, cooldown = 0.15, levelRequirement = 95, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 35, 46, cooldown = 0.15, levelRequirement = 96, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 35, 47, cooldown = 0.15, levelRequirement = 97, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 36, 49, cooldown = 0.15, levelRequirement = 98, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 36, 50, cooldown = 0.15, levelRequirement = 99, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 36, 52, cooldown = 0.15, levelRequirement = 100, manaMultiplier = 20, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportCastOnDeath"] = { name = "Cast on Death", description = "Each supported spell skill will be triggered when you die. Cannot support skills used by totems, traps, or mines. Vaal skills, channelling skills, and skills with a reservation cannot be triggered.", color = 2, support = true, requireSkillTypes = { SkillType.Spell, SkillType.Triggerable, SkillType.AND, }, addSkillTypes = { SkillType.Triggered, }, excludeSkillTypes = { SkillType.Minion, SkillType.Trap, SkillType.Mine, SkillType.Totem, SkillType.Aura, SkillType.TriggeredGrantedSkill, }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["area_of_effect_+%_while_dead"] = { mod("AreaOfEffect", "INC", nil), }, ["cast_on_death_damage_+%_final_while_dead"] = { mod("Damage", "MORE", nil), }, ["additional_critical_strike_chance_permyriad_while_dead"] = { mod("CritChance", "BASE", nil), div = 100 }, ["skill_effect_duration_+%_while_dead"] = { mod("Duration", "INC", nil), }, }, baseMods = { skill("triggeredOnDeath", true), }, qualityStats = { Default = { { "area_of_effect_+%_while_dead", 3 }, }, Alternate1 = { { "additional_critical_strike_chance_permyriad_while_dead", 500 }, }, Alternate2 = { { "skill_effect_duration_+%_while_dead", 3 }, }, }, stats = { "cast_on_death_%", "cast_on_death_damage_+%_final_while_dead", "spell_uncastable_if_triggerable", "spell_only_castable_on_death", "base_skill_show_average_damage_instead_of_dps", "no_cost", }, levels = { [1] = { 100, 0, manaMultiplier = -100, levelRequirement = 38, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 100, 16, manaMultiplier = -100, levelRequirement = 40, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 100, 32, manaMultiplier = -100, levelRequirement = 42, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 100, 48, manaMultiplier = -100, levelRequirement = 44, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 100, 64, manaMultiplier = -100, levelRequirement = 46, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 100, 80, manaMultiplier = -100, levelRequirement = 48, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 100, 96, manaMultiplier = -100, levelRequirement = 50, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 100, 112, manaMultiplier = -100, levelRequirement = 52, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 100, 128, manaMultiplier = -100, levelRequirement = 54, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 100, 144, manaMultiplier = -100, levelRequirement = 56, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 100, 160, manaMultiplier = -100, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 100, 176, manaMultiplier = -100, levelRequirement = 60, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 100, 192, manaMultiplier = -100, levelRequirement = 62, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 100, 208, manaMultiplier = -100, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 100, 224, manaMultiplier = -100, levelRequirement = 65, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 100, 240, manaMultiplier = -100, levelRequirement = 66, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 100, 256, manaMultiplier = -100, levelRequirement = 67, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 100, 272, manaMultiplier = -100, levelRequirement = 68, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 100, 288, manaMultiplier = -100, levelRequirement = 69, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 100, 304, manaMultiplier = -100, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 100, 320, manaMultiplier = -100, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 100, 336, manaMultiplier = -100, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 100, 352, manaMultiplier = -100, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 100, 368, manaMultiplier = -100, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 100, 384, manaMultiplier = -100, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 100, 400, manaMultiplier = -100, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 100, 416, manaMultiplier = -100, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 100, 432, manaMultiplier = -100, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 100, 448, manaMultiplier = -100, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 100, 464, manaMultiplier = -100, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 100, 472, manaMultiplier = -100, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 100, 480, manaMultiplier = -100, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 100, 488, manaMultiplier = -100, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 100, 496, manaMultiplier = -100, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 100, 504, manaMultiplier = -100, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 100, 512, manaMultiplier = -100, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 100, 520, manaMultiplier = -100, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 100, 528, manaMultiplier = -100, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 100, 536, manaMultiplier = -100, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 100, 544, manaMultiplier = -100, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportChain"] = { name = "Chain", description = "Supports projectile skills, and any other skills that chain.", color = 2, support = true, requireSkillTypes = { SkillType.Chaining, SkillType.Projectile, SkillType.MinionProjectile, SkillType.AnimateWeapon, SkillType.Type97, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_chain_hit_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Hit), }, }, baseMods = { }, qualityStats = { Default = { { "chaining_range_+%", 0.5 }, }, Alternate1 = { { "base_projectile_speed_+%", 0.5 }, }, Alternate2 = { { "projectile_chance_to_not_pierce_%", 4 }, }, }, stats = { "number_of_chains", "support_chain_hit_damage_+%_final", "terrain_arrow_attachment_chance_reduction_+%", }, levels = { [1] = { 2, -30, 100, manaMultiplier = 50, levelRequirement = 38, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 2, -29, 100, manaMultiplier = 50, levelRequirement = 40, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 2, -28, 100, manaMultiplier = 50, levelRequirement = 42, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 2, -27, 100, manaMultiplier = 50, levelRequirement = 44, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 2, -26, 100, manaMultiplier = 50, levelRequirement = 46, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 2, -25, 100, manaMultiplier = 50, levelRequirement = 48, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 2, -24, 100, manaMultiplier = 50, levelRequirement = 50, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 2, -23, 100, manaMultiplier = 50, levelRequirement = 52, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 2, -22, 100, manaMultiplier = 50, levelRequirement = 54, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 2, -21, 100, manaMultiplier = 50, levelRequirement = 56, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 2, -20, 100, manaMultiplier = 50, levelRequirement = 58, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 2, -19, 100, manaMultiplier = 50, levelRequirement = 60, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 2, -18, 100, manaMultiplier = 50, levelRequirement = 62, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 2, -17, 100, manaMultiplier = 50, levelRequirement = 64, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 2, -16, 100, manaMultiplier = 50, levelRequirement = 65, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 2, -15, 100, manaMultiplier = 50, levelRequirement = 66, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 2, -14, 100, manaMultiplier = 50, levelRequirement = 67, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 2, -13, 100, manaMultiplier = 50, levelRequirement = 68, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 2, -12, 100, manaMultiplier = 50, levelRequirement = 69, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 2, -11, 100, manaMultiplier = 50, levelRequirement = 70, statInterpolation = { 1, 1, 1, }, cost = { }, }, [21] = { 2, -10, 100, manaMultiplier = 50, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [22] = { 2, -9, 100, manaMultiplier = 50, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [23] = { 2, -8, 100, manaMultiplier = 50, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [24] = { 2, -7, 100, manaMultiplier = 50, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [25] = { 2, -6, 100, manaMultiplier = 50, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [26] = { 2, -5, 100, manaMultiplier = 50, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [27] = { 2, -4, 100, manaMultiplier = 50, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [28] = { 2, -3, 100, manaMultiplier = 50, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [29] = { 2, -2, 100, manaMultiplier = 50, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [30] = { 2, -1, 100, manaMultiplier = 50, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [31] = { 2, -1, 100, manaMultiplier = 50, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [32] = { 2, 0, 100, manaMultiplier = 50, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [33] = { 2, 0, 100, manaMultiplier = 50, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [34] = { 2, 1, 100, manaMultiplier = 50, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [35] = { 2, 1, 100, manaMultiplier = 50, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [36] = { 2, 2, 100, manaMultiplier = 50, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [37] = { 2, 2, 100, manaMultiplier = 50, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [38] = { 2, 3, 100, manaMultiplier = 50, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [39] = { 2, 3, 100, manaMultiplier = 50, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [40] = { 2, 4, 100, manaMultiplier = 50, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportChainPlus"] = { name = "Awakened Chain", description = "Supports projectile skills, and any other skills that chain.", color = 2, support = true, requireSkillTypes = { SkillType.Chaining, SkillType.Projectile, SkillType.MinionProjectile, SkillType.AnimateWeapon, SkillType.Type97, }, addSkillTypes = { }, excludeSkillTypes = { }, plusVersionOf = "SupportChain", statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_chain_hit_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Hit), }, }, baseMods = { }, qualityStats = { Default = { { "chaining_range_+%", 0.5 }, }, }, stats = { "number_of_chains", "support_chain_hit_damage_+%_final", "terrain_arrow_attachment_chance_reduction_+%", }, levels = { [1] = { 3, -10, 150, manaMultiplier = 50, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 3, -9, 150, manaMultiplier = 50, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 3, -8, 150, manaMultiplier = 50, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 3, -7, 150, manaMultiplier = 50, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 3, -6, 150, manaMultiplier = 50, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 3, -5, 150, manaMultiplier = 50, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 3, -5, 150, manaMultiplier = 50, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 3, -4, 150, manaMultiplier = 50, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 3, -4, 150, manaMultiplier = 50, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 3, -3, 150, manaMultiplier = 50, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 3, -3, 150, manaMultiplier = 50, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 3, -2, 150, manaMultiplier = 50, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 3, -2, 150, manaMultiplier = 50, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 3, -1, 150, manaMultiplier = 50, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 3, -1, 150, manaMultiplier = 50, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 3, 0, 150, manaMultiplier = 50, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 3, 0, 150, manaMultiplier = 50, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 3, 1, 150, manaMultiplier = 50, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 3, 1, 150, manaMultiplier = 50, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 3, 2, 150, manaMultiplier = 50, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportChanceToFlee"] = { name = "Chance to Flee", description = "Supports any skill that hits enemies.", color = 2, support = true, requireSkillTypes = { SkillType.Attack, SkillType.Hit, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "global_hit_causes_monster_flee_%", 1 }, }, Alternate1 = { { "base_cast_speed_+%", -0.5 }, }, }, stats = { "global_hit_causes_monster_flee_%", }, levels = { [1] = { 25, levelRequirement = 8, statInterpolation = { 1, }, cost = { }, }, [2] = { 26, levelRequirement = 10, statInterpolation = { 1, }, cost = { }, }, [3] = { 27, levelRequirement = 13, statInterpolation = { 1, }, cost = { }, }, [4] = { 28, levelRequirement = 17, statInterpolation = { 1, }, cost = { }, }, [5] = { 29, levelRequirement = 21, statInterpolation = { 1, }, cost = { }, }, [6] = { 30, levelRequirement = 25, statInterpolation = { 1, }, cost = { }, }, [7] = { 31, levelRequirement = 29, statInterpolation = { 1, }, cost = { }, }, [8] = { 32, levelRequirement = 33, statInterpolation = { 1, }, cost = { }, }, [9] = { 33, levelRequirement = 37, statInterpolation = { 1, }, cost = { }, }, [10] = { 34, levelRequirement = 40, statInterpolation = { 1, }, cost = { }, }, [11] = { 35, levelRequirement = 43, statInterpolation = { 1, }, cost = { }, }, [12] = { 36, levelRequirement = 46, statInterpolation = { 1, }, cost = { }, }, [13] = { 37, levelRequirement = 49, statInterpolation = { 1, }, cost = { }, }, [14] = { 38, levelRequirement = 52, statInterpolation = { 1, }, cost = { }, }, [15] = { 39, levelRequirement = 55, statInterpolation = { 1, }, cost = { }, }, [16] = { 40, levelRequirement = 58, statInterpolation = { 1, }, cost = { }, }, [17] = { 41, levelRequirement = 61, statInterpolation = { 1, }, cost = { }, }, [18] = { 42, levelRequirement = 64, statInterpolation = { 1, }, cost = { }, }, [19] = { 43, levelRequirement = 67, statInterpolation = { 1, }, cost = { }, }, [20] = { 44, levelRequirement = 70, statInterpolation = { 1, }, cost = { }, }, [21] = { 45, levelRequirement = 72, statInterpolation = { 1, }, cost = { }, }, [22] = { 46, levelRequirement = 74, statInterpolation = { 1, }, cost = { }, }, [23] = { 47, levelRequirement = 76, statInterpolation = { 1, }, cost = { }, }, [24] = { 48, levelRequirement = 78, statInterpolation = { 1, }, cost = { }, }, [25] = { 49, levelRequirement = 80, statInterpolation = { 1, }, cost = { }, }, [26] = { 50, levelRequirement = 82, statInterpolation = { 1, }, cost = { }, }, [27] = { 51, levelRequirement = 84, statInterpolation = { 1, }, cost = { }, }, [28] = { 52, levelRequirement = 86, statInterpolation = { 1, }, cost = { }, }, [29] = { 53, levelRequirement = 88, statInterpolation = { 1, }, cost = { }, }, [30] = { 54, levelRequirement = 90, statInterpolation = { 1, }, cost = { }, }, [31] = { 54, levelRequirement = 91, statInterpolation = { 1, }, cost = { }, }, [32] = { 55, levelRequirement = 92, statInterpolation = { 1, }, cost = { }, }, [33] = { 55, levelRequirement = 93, statInterpolation = { 1, }, cost = { }, }, [34] = { 56, levelRequirement = 94, statInterpolation = { 1, }, cost = { }, }, [35] = { 56, levelRequirement = 95, statInterpolation = { 1, }, cost = { }, }, [36] = { 57, levelRequirement = 96, statInterpolation = { 1, }, cost = { }, }, [37] = { 57, levelRequirement = 97, statInterpolation = { 1, }, cost = { }, }, [38] = { 58, levelRequirement = 98, statInterpolation = { 1, }, cost = { }, }, [39] = { 58, levelRequirement = 99, statInterpolation = { 1, }, cost = { }, }, [40] = { 59, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportGemFrenzyPowerOnTrapTrigger"] = { name = "Charged Traps", description = "Supports skills which throw traps.", color = 2, support = true, requireSkillTypes = { SkillType.Trap, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["trap_trigger_radius_"] = { mod("TrapTriggerAreaOfEffect", "INC", nil, 0, 0, { type = "Multiplier", var = "PowerCharge" } ) }, }, baseMods = { }, qualityStats = { Default = { { "trap_damage_+%", 0.5 }, }, Alternate1 = { { "%_chance_to_gain_power_charge_on_trap_triggered_by_an_enemy", 0.5 }, { "%_chance_to_gain_frenzy_charge_on_trap_triggered_by_an_enemy", 0.5 }, }, Alternate2 = { { "trap_trigger_radius_+%_per_power_charge", 0.5 }, }, }, stats = { "%_chance_to_gain_power_charge_on_trap_triggered_by_an_enemy", "%_chance_to_gain_frenzy_charge_on_trap_triggered_by_an_enemy", "trap_throwing_speed_+%_per_frenzy_charge", "trap_critical_strike_multiplier_+_per_power_charge", }, levels = { [1] = { 20, 20, 10, 15, manaMultiplier = 20, levelRequirement = 31, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 21, 21, 10, 15, manaMultiplier = 20, levelRequirement = 34, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 21, 21, 10, 15, manaMultiplier = 20, levelRequirement = 36, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 22, 22, 10, 15, manaMultiplier = 20, levelRequirement = 38, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 22, 22, 10, 15, manaMultiplier = 20, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 23, 23, 10, 15, manaMultiplier = 20, levelRequirement = 42, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 23, 23, 10, 15, manaMultiplier = 20, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 24, 24, 10, 15, manaMultiplier = 20, levelRequirement = 46, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 24, 24, 10, 15, manaMultiplier = 20, levelRequirement = 48, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 25, 25, 10, 15, manaMultiplier = 20, levelRequirement = 50, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 25, 25, 10, 15, manaMultiplier = 20, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 26, 26, 10, 15, manaMultiplier = 20, levelRequirement = 54, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 26, 26, 10, 15, manaMultiplier = 20, levelRequirement = 56, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 27, 27, 10, 15, manaMultiplier = 20, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 27, 27, 10, 15, manaMultiplier = 20, levelRequirement = 60, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 28, 28, 10, 15, manaMultiplier = 20, levelRequirement = 62, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 28, 28, 10, 15, manaMultiplier = 20, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 29, 29, 10, 15, manaMultiplier = 20, levelRequirement = 66, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 29, 29, 10, 15, manaMultiplier = 20, levelRequirement = 68, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 30, 30, 10, 15, manaMultiplier = 20, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 30, 30, 10, 15, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 31, 31, 10, 15, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 31, 31, 10, 15, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 32, 32, 10, 15, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 32, 32, 10, 15, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 33, 33, 10, 15, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 33, 33, 10, 15, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 34, 34, 10, 15, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 34, 34, 10, 15, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 35, 35, 10, 15, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 35, 35, 10, 15, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 35, 35, 10, 15, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 35, 35, 10, 15, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 36, 36, 10, 15, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 36, 36, 10, 15, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 36, 36, 10, 15, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 36, 36, 10, 15, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 37, 37, 10, 15, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 37, 37, 10, 15, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 37, 37, 10, 15, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportSlashingWeapon"] = { name = "Close Combat", description = "Supports melee attack skills. Cannot support skills which create minions.", color = 2, support = true, requireSkillTypes = { SkillType.Melee, }, addSkillTypes = { SkillType.Duration, SkillType.Buff, }, excludeSkillTypes = { SkillType.CreatesMinion, }, ignoreMinionTypes = true, weaponTypes = { ["Two Handed Axe"] = true, ["Thrusting One Handed Sword"] = true, ["One Handed Axe"] = true, ["Two Handed Sword"] = true, ["One Handed Sword"] = true, }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_slashing_damage_+%_final_from_distance"] = { mod("Damage", "MORE", nil, bit.bor(ModFlag.Attack, ModFlag.Melee), 0, { type = "MeleeProximity", ramp = {1,0} }), }, ["support_slashing_buff_attack_cast_speed_+%_final_to_grant"] = { mod("Speed", "MORE", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff", effectName = "Combat Rush", effectCond = "CombatRushActive" }, { type = "Condition", var = "SupportedByCloseCombat", neg = true }, { type = "SkillType", skillType = SkillType.TravelSkill }), }, ["close_combat_damage_to_close_range_+%"] = { mod("Damage", "INC", nil, bit.bor(ModFlag.Attack, ModFlag.Melee), 0, { type = "Condition", var = "AtCloseRange" }), }, ["combat_rush_effect_+%"] = { mod("CombatRushEffect", "INC", nil), }, }, baseMods = { flag("Condition:SupportedByCloseCombat"), }, qualityStats = { Default = { { "melee_damage_+%", 0.5 }, }, Alternate1 = { { "combat_rush_effect_+%", 2 }, }, Alternate2 = { { "close_combat_damage_to_close_range_+%", 1 }, }, }, stats = { "support_slashing_damage_+%_final_from_distance", "support_slashing_buff_base_duration_ms", "support_slashing_buff_attack_speed_+%_final_to_grant", "supported_by_slashing", "supported_skill_can_only_use_axe_and_sword", }, levels = { [1] = { 25, 2000, 20, manaMultiplier = 40, levelRequirement = 18, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 25, 2000, 20, manaMultiplier = 40, levelRequirement = 22, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 26, 2000, 20, manaMultiplier = 40, levelRequirement = 26, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 27, 2000, 20, manaMultiplier = 40, levelRequirement = 29, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 28, 2000, 20, manaMultiplier = 40, levelRequirement = 32, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 28, 2000, 20, manaMultiplier = 40, levelRequirement = 35, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 29, 2000, 20, manaMultiplier = 40, levelRequirement = 38, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 30, 2000, 20, manaMultiplier = 40, levelRequirement = 41, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 31, 2000, 20, manaMultiplier = 40, levelRequirement = 44, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 31, 2000, 20, manaMultiplier = 40, levelRequirement = 47, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 32, 2000, 20, manaMultiplier = 40, levelRequirement = 50, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 33, 2000, 20, manaMultiplier = 40, levelRequirement = 53, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 34, 2000, 20, manaMultiplier = 40, levelRequirement = 56, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 34, 2000, 20, manaMultiplier = 40, levelRequirement = 58, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 35, 2000, 20, manaMultiplier = 40, levelRequirement = 60, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 36, 2000, 20, manaMultiplier = 40, levelRequirement = 62, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 37, 2000, 20, manaMultiplier = 40, levelRequirement = 64, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 37, 2000, 20, manaMultiplier = 40, levelRequirement = 66, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 38, 2000, 20, manaMultiplier = 40, levelRequirement = 68, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 39, 2000, 20, manaMultiplier = 40, levelRequirement = 70, statInterpolation = { 1, 1, 1, }, cost = { }, }, [21] = { 40, 2000, 20, manaMultiplier = 40, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [22] = { 40, 2000, 20, manaMultiplier = 40, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [23] = { 41, 2000, 20, manaMultiplier = 40, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [24] = { 42, 2000, 20, manaMultiplier = 40, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [25] = { 43, 2000, 20, manaMultiplier = 40, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [26] = { 43, 2000, 20, manaMultiplier = 40, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [27] = { 44, 2000, 20, manaMultiplier = 40, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [28] = { 45, 2000, 20, manaMultiplier = 40, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [29] = { 46, 2000, 20, manaMultiplier = 40, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [30] = { 46, 2000, 20, manaMultiplier = 40, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [31] = { 47, 2000, 20, manaMultiplier = 40, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [32] = { 47, 2000, 20, manaMultiplier = 40, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [33] = { 47, 2000, 20, manaMultiplier = 40, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [34] = { 48, 2000, 20, manaMultiplier = 40, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [35] = { 48, 2000, 20, manaMultiplier = 40, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [36] = { 49, 2000, 20, manaMultiplier = 40, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [37] = { 49, 2000, 20, manaMultiplier = 40, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [38] = { 49, 2000, 20, manaMultiplier = 40, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [39] = { 50, 2000, 20, manaMultiplier = 40, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [40] = { 50, 2000, 20, manaMultiplier = 40, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportClusterTrap"] = { name = "Cluster Traps", description = "Supports traps skills, making them throw extra traps randomly around the targeted location.", color = 2, support = true, requireSkillTypes = { SkillType.Trap, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_clustertrap_damage_+%_final"] = { mod("Damage", "MORE", nil), }, }, baseMods = { }, qualityStats = { Default = { { "trap_damage_+%", 0.5 }, }, Alternate1 = { { "trap_throwing_speed_+%", 0.5 }, }, Alternate2 = { { "trap_spread_+%", -2 }, }, }, stats = { "number_of_additional_traps_to_throw", "number_of_additional_traps_allowed", "throw_traps_in_circle_radius", "support_clustertrap_damage_+%_final", "multi_trap_and_mine_support_flags", }, levels = { [1] = { 2, 5, 20, -55, 1, manaMultiplier = 40, levelRequirement = 38, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [2] = { 2, 5, 20, -54, 1, manaMultiplier = 40, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [3] = { 2, 5, 20, -53, 1, manaMultiplier = 40, levelRequirement = 42, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [4] = { 2, 5, 20, -52, 1, manaMultiplier = 40, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [5] = { 2, 5, 20, -51, 1, manaMultiplier = 40, levelRequirement = 46, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [6] = { 2, 5, 20, -50, 1, manaMultiplier = 40, levelRequirement = 48, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [7] = { 2, 5, 20, -49, 1, manaMultiplier = 40, levelRequirement = 50, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [8] = { 2, 5, 20, -48, 1, manaMultiplier = 40, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [9] = { 2, 5, 20, -47, 1, manaMultiplier = 40, levelRequirement = 54, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [10] = { 2, 5, 20, -46, 1, manaMultiplier = 40, levelRequirement = 56, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [11] = { 2, 5, 20, -45, 1, manaMultiplier = 40, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [12] = { 2, 5, 20, -44, 1, manaMultiplier = 40, levelRequirement = 60, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [13] = { 2, 5, 20, -43, 1, manaMultiplier = 40, levelRequirement = 62, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [14] = { 2, 5, 20, -42, 1, manaMultiplier = 40, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [15] = { 2, 5, 20, -41, 1, manaMultiplier = 40, levelRequirement = 65, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [16] = { 2, 5, 20, -40, 1, manaMultiplier = 40, levelRequirement = 66, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [17] = { 2, 5, 20, -39, 1, manaMultiplier = 40, levelRequirement = 67, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [18] = { 2, 5, 20, -38, 1, manaMultiplier = 40, levelRequirement = 68, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [19] = { 2, 5, 20, -37, 1, manaMultiplier = 40, levelRequirement = 69, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [20] = { 2, 5, 20, -36, 1, manaMultiplier = 40, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [21] = { 2, 5, 20, -35, 1, manaMultiplier = 40, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [22] = { 2, 5, 20, -34, 1, manaMultiplier = 40, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [23] = { 2, 5, 20, -33, 1, manaMultiplier = 40, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [24] = { 2, 5, 20, -32, 1, manaMultiplier = 40, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [25] = { 2, 5, 20, -31, 1, manaMultiplier = 40, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [26] = { 2, 5, 20, -30, 1, manaMultiplier = 40, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [27] = { 2, 5, 20, -29, 1, manaMultiplier = 40, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [28] = { 2, 5, 20, -28, 1, manaMultiplier = 40, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [29] = { 2, 5, 20, -27, 1, manaMultiplier = 40, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [30] = { 2, 5, 20, -26, 1, manaMultiplier = 40, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [31] = { 2, 5, 20, -26, 1, manaMultiplier = 40, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [32] = { 2, 5, 20, -25, 1, manaMultiplier = 40, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [33] = { 2, 5, 20, -25, 1, manaMultiplier = 40, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [34] = { 2, 5, 20, -24, 1, manaMultiplier = 40, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [35] = { 2, 5, 20, -24, 1, manaMultiplier = 40, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [36] = { 2, 5, 20, -23, 1, manaMultiplier = 40, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [37] = { 2, 5, 20, -23, 1, manaMultiplier = 40, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [38] = { 2, 5, 20, -22, 1, manaMultiplier = 40, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [39] = { 2, 5, 20, -22, 1, manaMultiplier = 40, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [40] = { 2, 5, 20, -21, 1, manaMultiplier = 40, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportColdPenetration"] = { name = "Cold Penetration", description = "Supports any skill that hits enemies, making those hits penetrate enemy cold resistance.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "cold_damage_+%", 0.5 }, }, Alternate1 = { { "base_chance_to_freeze_%", 0.5 }, }, Alternate2 = { { "cold_ailment_effect_+%", 1 }, }, }, stats = { "base_reduce_enemy_cold_resistance_%", }, levels = { [1] = { 20, manaMultiplier = 30, levelRequirement = 31, statInterpolation = { 1, }, cost = { }, }, [2] = { 20, manaMultiplier = 30, levelRequirement = 34, statInterpolation = { 1, }, cost = { }, }, [3] = { 21, manaMultiplier = 30, levelRequirement = 36, statInterpolation = { 1, }, cost = { }, }, [4] = { 22, manaMultiplier = 30, levelRequirement = 38, statInterpolation = { 1, }, cost = { }, }, [5] = { 23, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, }, cost = { }, }, [6] = { 23, manaMultiplier = 30, levelRequirement = 42, statInterpolation = { 1, }, cost = { }, }, [7] = { 24, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, }, cost = { }, }, [8] = { 25, manaMultiplier = 30, levelRequirement = 46, statInterpolation = { 1, }, cost = { }, }, [9] = { 26, manaMultiplier = 30, levelRequirement = 48, statInterpolation = { 1, }, cost = { }, }, [10] = { 26, manaMultiplier = 30, levelRequirement = 50, statInterpolation = { 1, }, cost = { }, }, [11] = { 27, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, }, cost = { }, }, [12] = { 28, manaMultiplier = 30, levelRequirement = 54, statInterpolation = { 1, }, cost = { }, }, [13] = { 29, manaMultiplier = 30, levelRequirement = 56, statInterpolation = { 1, }, cost = { }, }, [14] = { 29, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, }, cost = { }, }, [15] = { 30, manaMultiplier = 30, levelRequirement = 60, statInterpolation = { 1, }, cost = { }, }, [16] = { 31, manaMultiplier = 30, levelRequirement = 62, statInterpolation = { 1, }, cost = { }, }, [17] = { 32, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, }, cost = { }, }, [18] = { 32, manaMultiplier = 30, levelRequirement = 66, statInterpolation = { 1, }, cost = { }, }, [19] = { 33, manaMultiplier = 30, levelRequirement = 68, statInterpolation = { 1, }, cost = { }, }, [20] = { 34, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, }, cost = { }, }, [21] = { 35, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, }, cost = { }, }, [22] = { 35, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, }, cost = { }, }, [23] = { 36, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, }, cost = { }, }, [24] = { 37, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, }, cost = { }, }, [25] = { 38, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, }, cost = { }, }, [26] = { 38, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, }, cost = { }, }, [27] = { 39, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, }, cost = { }, }, [28] = { 40, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, }, cost = { }, }, [29] = { 41, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, }, cost = { }, }, [30] = { 41, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, }, cost = { }, }, [31] = { 42, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, }, cost = { }, }, [32] = { 42, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, }, cost = { }, }, [33] = { 42, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, }, cost = { }, }, [34] = { 43, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, }, cost = { }, }, [35] = { 43, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, }, cost = { }, }, [36] = { 44, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, }, cost = { }, }, [37] = { 44, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, }, cost = { }, }, [38] = { 44, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, }, cost = { }, }, [39] = { 45, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, }, cost = { }, }, [40] = { 45, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportColdPenetrationPlus"] = { name = "Awakened Cold Penetration", description = "Supports any skill that hits enemies, making those hits penetrate enemy cold resistance.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, plusVersionOf = "SupportColdPenetration", statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "cold_damage_+%", 0.5 }, }, }, stats = { "base_reduce_enemy_cold_resistance_%", "base_inflict_cold_exposure_on_hit_%_chance", }, levels = { [1] = { 35, 0, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 36, 0, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 37, 0, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 38, 0, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 39, 10, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 40, 10, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 40, 10, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 41, 10, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 41, 10, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 42, 10, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 42, 10, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 43, 10, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 43, 10, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 44, 10, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 44, 10, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 45, 10, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 45, 10, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 46, 10, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 46, 10, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 47, 10, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportCullingStrike"] = { name = "Culling Strike", description = "Supports any skill that hits enemies. If enemies are left below 10% of maximum life after being hit by these skills, they will be killed.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "damage_+%", 0.5 }, }, Alternate1 = { { "damage_vs_enemies_on_low_life_+%", 3 }, }, Alternate2 = { { "recover_%_maximum_life_on_cull", 0.1 }, }, }, stats = { "kill_enemy_on_hit_if_under_10%_life", "attack_speed_+%", "base_cast_speed_+%", "damage_+%", }, levels = { [1] = { 1, 0, 0, 0, manaMultiplier = 10, levelRequirement = 18, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 1, 0, 0, 2, manaMultiplier = 10, levelRequirement = 22, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 1, 0, 0, 4, manaMultiplier = 10, levelRequirement = 26, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 1, 0, 0, 6, manaMultiplier = 10, levelRequirement = 29, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 1, 0, 0, 8, manaMultiplier = 10, levelRequirement = 32, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 1, 0, 0, 10, manaMultiplier = 10, levelRequirement = 35, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 1, 0, 0, 12, manaMultiplier = 10, levelRequirement = 38, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 1, 0, 0, 14, manaMultiplier = 10, levelRequirement = 41, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 1, 0, 0, 16, manaMultiplier = 10, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 1, 0, 0, 18, manaMultiplier = 10, levelRequirement = 47, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 1, 0, 0, 20, manaMultiplier = 10, levelRequirement = 50, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 1, 0, 0, 22, manaMultiplier = 10, levelRequirement = 53, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 1, 0, 0, 24, manaMultiplier = 10, levelRequirement = 56, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 1, 0, 0, 26, manaMultiplier = 10, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 1, 0, 0, 28, manaMultiplier = 10, levelRequirement = 60, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 1, 0, 0, 30, manaMultiplier = 10, levelRequirement = 62, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 1, 0, 0, 32, manaMultiplier = 10, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 1, 0, 0, 34, manaMultiplier = 10, levelRequirement = 66, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 1, 0, 0, 36, manaMultiplier = 10, levelRequirement = 68, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 1, 0, 0, 38, manaMultiplier = 10, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 1, 0, 0, 40, manaMultiplier = 10, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 1, 0, 0, 42, manaMultiplier = 10, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 1, 0, 0, 44, manaMultiplier = 10, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 1, 0, 0, 46, manaMultiplier = 10, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 1, 0, 0, 48, manaMultiplier = 10, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 1, 0, 0, 50, manaMultiplier = 10, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 1, 0, 0, 52, manaMultiplier = 10, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 1, 0, 0, 54, manaMultiplier = 10, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 1, 0, 0, 56, manaMultiplier = 10, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 1, 0, 0, 58, manaMultiplier = 10, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 1, 0, 0, 59, manaMultiplier = 10, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 1, 0, 0, 60, manaMultiplier = 10, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 1, 0, 0, 61, manaMultiplier = 10, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 1, 0, 0, 62, manaMultiplier = 10, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 1, 0, 0, 63, manaMultiplier = 10, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 1, 0, 0, 64, manaMultiplier = 10, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 1, 0, 0, 65, manaMultiplier = 10, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 1, 0, 0, 66, manaMultiplier = 10, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 1, 0, 0, 67, manaMultiplier = 10, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 1, 0, 0, 68, manaMultiplier = 10, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportDeadlyAilments"] = { name = "Deadly Ailments", description = "Supports any skill that hits enemies.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_better_ailments_hit_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Hit), }, ["support_better_ailments_ailment_damage_+%_final"] = { mod("Damage", "MORE", nil, 0, bit.bor(KeywordFlag.Bleed, KeywordFlag.Poison, KeywordFlag.Ignite)), }, }, baseMods = { }, qualityStats = { Default = { { "damage_over_time_+%", 0.5 }, }, Alternate1 = { { "base_all_ailment_duration_+%", 1 }, }, Alternate2 = { { "support_better_ailments_hit_damage_+%_final", 2 }, }, }, stats = { "support_better_ailments_ailment_damage_+%_final", "support_better_ailments_hit_damage_+%_final", }, levels = { [1] = { 30, -80, manaMultiplier = 40, levelRequirement = 18, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 30, -80, manaMultiplier = 40, levelRequirement = 22, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 31, -80, manaMultiplier = 40, levelRequirement = 26, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 32, -80, manaMultiplier = 40, levelRequirement = 29, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 33, -80, manaMultiplier = 40, levelRequirement = 32, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 33, -80, manaMultiplier = 40, levelRequirement = 35, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 34, -80, manaMultiplier = 40, levelRequirement = 38, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 35, -80, manaMultiplier = 40, levelRequirement = 41, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 36, -80, manaMultiplier = 40, levelRequirement = 44, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 36, -80, manaMultiplier = 40, levelRequirement = 47, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 37, -80, manaMultiplier = 40, levelRequirement = 50, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 38, -80, manaMultiplier = 40, levelRequirement = 53, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 39, -80, manaMultiplier = 40, levelRequirement = 56, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 39, -80, manaMultiplier = 40, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 40, -80, manaMultiplier = 40, levelRequirement = 60, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 41, -80, manaMultiplier = 40, levelRequirement = 62, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 42, -80, manaMultiplier = 40, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 42, -80, manaMultiplier = 40, levelRequirement = 66, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 43, -80, manaMultiplier = 40, levelRequirement = 68, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 44, -80, manaMultiplier = 40, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 45, -80, manaMultiplier = 40, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 45, -80, manaMultiplier = 40, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 46, -80, manaMultiplier = 40, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 47, -80, manaMultiplier = 40, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 48, -80, manaMultiplier = 40, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 48, -80, manaMultiplier = 40, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 49, -80, manaMultiplier = 40, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 50, -80, manaMultiplier = 40, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 51, -80, manaMultiplier = 40, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 51, -80, manaMultiplier = 40, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 52, -80, manaMultiplier = 40, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 52, -80, manaMultiplier = 40, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 52, -80, manaMultiplier = 40, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 53, -80, manaMultiplier = 40, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 53, -80, manaMultiplier = 40, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 54, -80, manaMultiplier = 40, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 54, -80, manaMultiplier = 40, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 54, -80, manaMultiplier = 40, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 55, -80, manaMultiplier = 40, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 55, -80, manaMultiplier = 40, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportDeadlyAilmentsPlus"] = { name = "Awakened Deadly Ailments", description = "Supports any skill that hits enemies.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, plusVersionOf = "SupportDeadlyAilments", statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_better_ailments_hit_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Hit), }, ["support_better_ailments_ailment_damage_+%_final"] = { mod("Damage", "MORE", nil, 0, bit.bor(KeywordFlag.Bleed, KeywordFlag.Poison, KeywordFlag.Ignite)), }, }, baseMods = { }, qualityStats = { Default = { { "damage_over_time_+%", 0.5 }, }, }, stats = { "support_better_ailments_ailment_damage_+%_final", "support_better_ailments_hit_damage_+%_final", }, levels = { [1] = { 45, -80, manaMultiplier = 40, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 46, -80, manaMultiplier = 40, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 47, -80, manaMultiplier = 40, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 48, -80, manaMultiplier = 40, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 54, -80, manaMultiplier = 40, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 55, -80, manaMultiplier = 40, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 55, -80, manaMultiplier = 40, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 56, -80, manaMultiplier = 40, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 56, -80, manaMultiplier = 40, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 57, -80, manaMultiplier = 40, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 57, -80, manaMultiplier = 40, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 58, -80, manaMultiplier = 40, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 58, -80, manaMultiplier = 40, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 59, -80, manaMultiplier = 40, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 59, -80, manaMultiplier = 40, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 60, -80, manaMultiplier = 40, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 60, -80, manaMultiplier = 40, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 61, -80, manaMultiplier = 40, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 61, -80, manaMultiplier = 40, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 62, -80, manaMultiplier = 40, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportAdditionalQuality"] = { name = "Enhance", description = "Supports any skill gem. Once this gem reaches level 2 or above, will raise the quality of supported gems. Cannot support skills that don't come from gems.", color = 2, support = true, requireSkillTypes = { }, addSkillTypes = { }, excludeSkillTypes = { }, supportGemsOnly = true, statDescriptionScope = "gem_stat_descriptions", statMap = { ["supported_active_skill_gem_quality_%"] = { mod("SupportedGemProperty", "LIST", { keyword = "active_skill", key = "quality", value = nil }), }, }, baseMods = { }, qualityStats = { Default = { { "local_gem_experience_gain_+%", 5 }, }, Alternate1 = { { "local_gem_dex_requirement_+%", -3 }, }, }, stats = { "supported_active_skill_gem_quality_%", }, levels = { [1] = { 0, manaMultiplier = 20, levelRequirement = 1, statInterpolation = { 1, }, cost = { }, }, [2] = { 8, manaMultiplier = 20, levelRequirement = 10, statInterpolation = { 1, }, cost = { }, }, [3] = { 16, manaMultiplier = 20, levelRequirement = 45, statInterpolation = { 1, }, cost = { }, }, [4] = { 24, manaMultiplier = 20, levelRequirement = 60, statInterpolation = { 1, }, cost = { }, }, [5] = { 32, manaMultiplier = 20, levelRequirement = 75, statInterpolation = { 1, }, cost = { }, }, [6] = { 40, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, }, cost = { }, }, [7] = { 48, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, [8] = { 56, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, [9] = { 64, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, [10] = { 72, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportFasterAttack"] = { name = "Faster Attacks", description = "Supports attack skills.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.Attack, SkillType.AnimateWeapon, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "attack_speed_+%", 0.5 }, }, Alternate1 = { { "base_cooldown_speed_+%", 0.5 }, }, Alternate2 = { { "faster_bleed_%", 0.5 }, }, }, stats = { "attack_speed_+%", }, levels = { [1] = { 25, manaMultiplier = 10, levelRequirement = 18, statInterpolation = { 1, }, cost = { }, }, [2] = { 26, manaMultiplier = 10, levelRequirement = 22, statInterpolation = { 1, }, cost = { }, }, [3] = { 27, manaMultiplier = 10, levelRequirement = 26, statInterpolation = { 1, }, cost = { }, }, [4] = { 28, manaMultiplier = 10, levelRequirement = 29, statInterpolation = { 1, }, cost = { }, }, [5] = { 29, manaMultiplier = 10, levelRequirement = 32, statInterpolation = { 1, }, cost = { }, }, [6] = { 30, manaMultiplier = 10, levelRequirement = 35, statInterpolation = { 1, }, cost = { }, }, [7] = { 31, manaMultiplier = 10, levelRequirement = 38, statInterpolation = { 1, }, cost = { }, }, [8] = { 32, manaMultiplier = 10, levelRequirement = 41, statInterpolation = { 1, }, cost = { }, }, [9] = { 33, manaMultiplier = 10, levelRequirement = 44, statInterpolation = { 1, }, cost = { }, }, [10] = { 34, manaMultiplier = 10, levelRequirement = 47, statInterpolation = { 1, }, cost = { }, }, [11] = { 35, manaMultiplier = 10, levelRequirement = 50, statInterpolation = { 1, }, cost = { }, }, [12] = { 36, manaMultiplier = 10, levelRequirement = 53, statInterpolation = { 1, }, cost = { }, }, [13] = { 37, manaMultiplier = 10, levelRequirement = 56, statInterpolation = { 1, }, cost = { }, }, [14] = { 38, manaMultiplier = 10, levelRequirement = 58, statInterpolation = { 1, }, cost = { }, }, [15] = { 39, manaMultiplier = 10, levelRequirement = 60, statInterpolation = { 1, }, cost = { }, }, [16] = { 40, manaMultiplier = 10, levelRequirement = 62, statInterpolation = { 1, }, cost = { }, }, [17] = { 41, manaMultiplier = 10, levelRequirement = 64, statInterpolation = { 1, }, cost = { }, }, [18] = { 42, manaMultiplier = 10, levelRequirement = 66, statInterpolation = { 1, }, cost = { }, }, [19] = { 43, manaMultiplier = 10, levelRequirement = 68, statInterpolation = { 1, }, cost = { }, }, [20] = { 44, manaMultiplier = 10, levelRequirement = 70, statInterpolation = { 1, }, cost = { }, }, [21] = { 45, manaMultiplier = 10, levelRequirement = 72, statInterpolation = { 1, }, cost = { }, }, [22] = { 46, manaMultiplier = 10, levelRequirement = 74, statInterpolation = { 1, }, cost = { }, }, [23] = { 47, manaMultiplier = 10, levelRequirement = 76, statInterpolation = { 1, }, cost = { }, }, [24] = { 48, manaMultiplier = 10, levelRequirement = 78, statInterpolation = { 1, }, cost = { }, }, [25] = { 49, manaMultiplier = 10, levelRequirement = 80, statInterpolation = { 1, }, cost = { }, }, [26] = { 50, manaMultiplier = 10, levelRequirement = 82, statInterpolation = { 1, }, cost = { }, }, [27] = { 51, manaMultiplier = 10, levelRequirement = 84, statInterpolation = { 1, }, cost = { }, }, [28] = { 52, manaMultiplier = 10, levelRequirement = 86, statInterpolation = { 1, }, cost = { }, }, [29] = { 53, manaMultiplier = 10, levelRequirement = 88, statInterpolation = { 1, }, cost = { }, }, [30] = { 54, manaMultiplier = 10, levelRequirement = 90, statInterpolation = { 1, }, cost = { }, }, [31] = { 54, manaMultiplier = 10, levelRequirement = 91, statInterpolation = { 1, }, cost = { }, }, [32] = { 55, manaMultiplier = 10, levelRequirement = 92, statInterpolation = { 1, }, cost = { }, }, [33] = { 55, manaMultiplier = 10, levelRequirement = 93, statInterpolation = { 1, }, cost = { }, }, [34] = { 56, manaMultiplier = 10, levelRequirement = 94, statInterpolation = { 1, }, cost = { }, }, [35] = { 56, manaMultiplier = 10, levelRequirement = 95, statInterpolation = { 1, }, cost = { }, }, [36] = { 57, manaMultiplier = 10, levelRequirement = 96, statInterpolation = { 1, }, cost = { }, }, [37] = { 57, manaMultiplier = 10, levelRequirement = 97, statInterpolation = { 1, }, cost = { }, }, [38] = { 58, manaMultiplier = 10, levelRequirement = 98, statInterpolation = { 1, }, cost = { }, }, [39] = { 58, manaMultiplier = 10, levelRequirement = 99, statInterpolation = { 1, }, cost = { }, }, [40] = { 59, manaMultiplier = 10, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportFasterProjectiles"] = { name = "Faster Projectiles", description = "Supports projectile skills.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.ProjectileDamage, SkillType.MinionProjectile, SkillType.AnimateWeapon, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.Type51, }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "base_projectile_speed_+%", 0.5 }, }, Alternate1 = { { "projectiles_chance_to_return_%_from_final_target", 3 }, }, Alternate2 = { { "projectile_damage_+%", 0.5 }, }, }, stats = { "base_projectile_speed_+%", "projectile_damage_+%", }, levels = { [1] = { 50, 20, manaMultiplier = 20, levelRequirement = 31, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 51, 20, manaMultiplier = 20, levelRequirement = 34, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 52, 21, manaMultiplier = 20, levelRequirement = 36, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 53, 21, manaMultiplier = 20, levelRequirement = 38, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 54, 22, manaMultiplier = 20, levelRequirement = 40, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 55, 22, manaMultiplier = 20, levelRequirement = 42, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 56, 23, manaMultiplier = 20, levelRequirement = 44, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 57, 23, manaMultiplier = 20, levelRequirement = 46, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 58, 24, manaMultiplier = 20, levelRequirement = 48, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 59, 24, manaMultiplier = 20, levelRequirement = 50, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 60, 25, manaMultiplier = 20, levelRequirement = 52, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 61, 25, manaMultiplier = 20, levelRequirement = 54, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 62, 26, manaMultiplier = 20, levelRequirement = 56, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 63, 26, manaMultiplier = 20, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 64, 27, manaMultiplier = 20, levelRequirement = 60, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 65, 27, manaMultiplier = 20, levelRequirement = 62, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 66, 28, manaMultiplier = 20, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 67, 28, manaMultiplier = 20, levelRequirement = 66, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 68, 29, manaMultiplier = 20, levelRequirement = 68, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 69, 29, manaMultiplier = 20, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 70, 30, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 71, 30, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 72, 31, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 73, 31, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 74, 32, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 75, 32, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 76, 33, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 77, 33, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 78, 34, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 79, 34, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 79, 34, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 80, 35, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 80, 35, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 81, 35, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 81, 35, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 82, 36, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 82, 36, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 83, 36, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 83, 36, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 84, 37, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportFocusedBallista"] = { name = "Focused Ballista", description = "Supports skills that summon ballista totems. Cannot modify the skills of minions.", color = 2, support = true, requireSkillTypes = { SkillType.ProjectileAttack, SkillType.Totem, SkillType.AND, }, addSkillTypes = { }, excludeSkillTypes = { }, ignoreMinionTypes = true, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_focused_ballista_totem_attack_speed_+%_final"] = { mod("Speed", "MORE", nil, ModFlag.Attack), }, ["support_focused_ballista_totem_damage_+%_final"] = { mod("Damage", "MORE", nil), }, }, baseMods = { }, qualityStats = { Default = { { "totem_damage_+%", 0.5 }, }, Alternate1 = { { "base_skill_area_of_effect_+%", 0.5 }, }, Alternate2 = { { "totem_life_+%", 0.5 }, }, }, stats = { "support_focused_ballista_totem_attack_speed_+%_final", "support_focused_ballista_totem_damage_+%_final", "summon_totem_cast_speed_+%", "ranged_attack_totem_only_attacks_when_owner_attacks", }, levels = { [1] = { 25, 0, 40, manaMultiplier = 40, levelRequirement = 31, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 26, 0, 41, manaMultiplier = 40, levelRequirement = 34, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 26, 1, 43, manaMultiplier = 40, levelRequirement = 36, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 27, 1, 44, manaMultiplier = 40, levelRequirement = 38, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 27, 2, 46, manaMultiplier = 40, levelRequirement = 40, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 28, 2, 47, manaMultiplier = 40, levelRequirement = 42, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 28, 3, 49, manaMultiplier = 40, levelRequirement = 44, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 29, 3, 50, manaMultiplier = 40, levelRequirement = 46, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 29, 4, 52, manaMultiplier = 40, levelRequirement = 48, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 30, 4, 53, manaMultiplier = 40, levelRequirement = 50, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 30, 5, 55, manaMultiplier = 40, levelRequirement = 52, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 31, 5, 56, manaMultiplier = 40, levelRequirement = 54, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 31, 6, 58, manaMultiplier = 40, levelRequirement = 56, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 32, 6, 59, manaMultiplier = 40, levelRequirement = 58, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 32, 7, 61, manaMultiplier = 40, levelRequirement = 60, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 33, 7, 62, manaMultiplier = 40, levelRequirement = 62, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 33, 8, 64, manaMultiplier = 40, levelRequirement = 64, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 34, 8, 65, manaMultiplier = 40, levelRequirement = 66, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 34, 9, 67, manaMultiplier = 40, levelRequirement = 68, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 35, 9, 68, manaMultiplier = 40, levelRequirement = 70, statInterpolation = { 1, 1, 1, }, cost = { }, }, [21] = { 35, 10, 70, manaMultiplier = 40, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [22] = { 36, 10, 71, manaMultiplier = 40, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [23] = { 36, 11, 73, manaMultiplier = 40, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [24] = { 37, 11, 74, manaMultiplier = 40, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [25] = { 37, 12, 76, manaMultiplier = 40, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [26] = { 38, 12, 77, manaMultiplier = 40, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [27] = { 38, 13, 79, manaMultiplier = 40, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [28] = { 39, 13, 80, manaMultiplier = 40, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [29] = { 39, 14, 82, manaMultiplier = 40, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [30] = { 40, 14, 83, manaMultiplier = 40, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [31] = { 40, 14, 84, manaMultiplier = 40, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [32] = { 40, 15, 85, manaMultiplier = 40, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [33] = { 40, 15, 85, manaMultiplier = 40, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [34] = { 41, 15, 86, manaMultiplier = 40, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [35] = { 41, 15, 87, manaMultiplier = 40, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [36] = { 41, 16, 88, manaMultiplier = 40, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [37] = { 41, 16, 88, manaMultiplier = 40, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [38] = { 42, 16, 89, manaMultiplier = 40, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [39] = { 42, 16, 90, manaMultiplier = 40, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [40] = { 42, 17, 91, manaMultiplier = 40, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportFork"] = { name = "Fork", description = "Supports projectile skills, making their projectiles fork into two projectiles the first time they hit an enemy and don't pierce it.", color = 2, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.MinionProjectile, SkillType.AnimateWeapon, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_fork_projectile_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, Alternate1 = { { "chance_to_fork_extra_projectile_%", 1 }, }, Alternate2 = { { "projectile_base_number_of_targets_to_pierce", 0.05 }, }, }, stats = { "support_fork_projectile_damage_+%_final", "terrain_arrow_attachment_chance_reduction_+%", "projectiles_fork", }, levels = { [1] = { -10, 100, manaMultiplier = 30, levelRequirement = 31, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { -9, 100, manaMultiplier = 30, levelRequirement = 34, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { -8, 100, manaMultiplier = 30, levelRequirement = 36, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { -7, 100, manaMultiplier = 30, levelRequirement = 38, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { -6, 100, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { -5, 100, manaMultiplier = 30, levelRequirement = 42, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { -4, 100, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { -3, 100, manaMultiplier = 30, levelRequirement = 46, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { -2, 100, manaMultiplier = 30, levelRequirement = 48, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { -1, 100, manaMultiplier = 30, levelRequirement = 50, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 0, 100, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 1, 100, manaMultiplier = 30, levelRequirement = 54, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 2, 100, manaMultiplier = 30, levelRequirement = 56, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 3, 100, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 4, 100, manaMultiplier = 30, levelRequirement = 60, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 5, 100, manaMultiplier = 30, levelRequirement = 62, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 6, 100, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 7, 100, manaMultiplier = 30, levelRequirement = 66, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 8, 100, manaMultiplier = 30, levelRequirement = 68, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 9, 100, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 10, 100, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 11, 100, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 12, 100, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 13, 100, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 14, 100, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 15, 100, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 16, 100, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 17, 100, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 18, 100, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 19, 100, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 19, 100, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 20, 100, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 20, 100, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 21, 100, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 21, 100, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 22, 100, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 22, 100, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 23, 100, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 23, 100, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 24, 100, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportForkPlus"] = { name = "Awakened Fork", description = "Supports projectile skills, making their projectiles fork into two projectiles the first two times they hit an enemy and don't pierce it.", color = 2, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.MinionProjectile, SkillType.AnimateWeapon, }, addSkillTypes = { }, excludeSkillTypes = { }, plusVersionOf = "SupportFork", statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_fork_projectile_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, }, stats = { "number_of_additional_forks_base", "support_fork_projectile_damage_+%_final", "terrain_arrow_attachment_chance_reduction_+%", "projectiles_fork", }, levels = { [1] = { 1, 10, 150, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 1, 11, 150, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 1, 12, 150, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 1, 13, 150, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 1, 14, 150, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 1, 15, 150, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 1, 15, 150, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 1, 16, 150, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 1, 16, 150, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 1, 17, 150, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 1, 17, 150, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 1, 18, 150, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 1, 18, 150, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 1, 19, 150, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 1, 19, 150, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 1, 20, 150, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 1, 20, 150, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 1, 21, 150, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 1, 21, 150, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 1, 22, 150, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportGreaterMultipleProjectiles"] = { name = "Greater Multiple Projectiles", description = "Supports projectile skills.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.MinionProjectile, SkillType.AnimateWeapon, SkillType.Type73, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_multiple_projectile_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, Alternate1 = { { "base_mana_cost_-%", 1 }, { "base_life_cost_+%", -1 }, { "base_projectile_speed_+%", 0.5 }, }, Alternate2 = { { "multiple_projectiles_projectile_spread_+%", 1 }, }, }, stats = { "number_of_additional_projectiles", "support_multiple_projectile_damage_+%_final", "projectile_damage_+%", "terrain_arrow_attachment_chance_reduction_+%", }, levels = { [1] = { 4, -35, 0, 200, manaMultiplier = 50, levelRequirement = 38, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 4, -35, 0, 200, manaMultiplier = 50, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 4, -34, 0, 200, manaMultiplier = 50, levelRequirement = 42, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 4, -34, 0, 200, manaMultiplier = 50, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 4, -33, 0, 200, manaMultiplier = 50, levelRequirement = 46, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 4, -33, 0, 200, manaMultiplier = 50, levelRequirement = 48, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 4, -32, 0, 200, manaMultiplier = 50, levelRequirement = 50, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 4, -32, 0, 200, manaMultiplier = 50, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 4, -31, 0, 200, manaMultiplier = 50, levelRequirement = 54, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 4, -31, 0, 200, manaMultiplier = 50, levelRequirement = 56, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 4, -30, 0, 200, manaMultiplier = 50, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 4, -30, 0, 200, manaMultiplier = 50, levelRequirement = 60, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 4, -29, 0, 200, manaMultiplier = 50, levelRequirement = 62, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 4, -29, 0, 200, manaMultiplier = 50, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 4, -28, 0, 200, manaMultiplier = 50, levelRequirement = 65, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 4, -28, 0, 200, manaMultiplier = 50, levelRequirement = 66, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 4, -27, 0, 200, manaMultiplier = 50, levelRequirement = 67, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 4, -27, 0, 200, manaMultiplier = 50, levelRequirement = 68, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 4, -26, 0, 200, manaMultiplier = 50, levelRequirement = 69, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 4, -26, 0, 200, manaMultiplier = 50, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 4, -25, 0, 200, manaMultiplier = 50, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 4, -25, 0, 200, manaMultiplier = 50, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 4, -24, 0, 200, manaMultiplier = 50, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 4, -24, 0, 200, manaMultiplier = 50, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 4, -23, 0, 200, manaMultiplier = 50, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 4, -23, 0, 200, manaMultiplier = 50, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 4, -22, 0, 200, manaMultiplier = 50, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 4, -22, 0, 200, manaMultiplier = 50, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 4, -21, 0, 200, manaMultiplier = 50, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 4, -21, 0, 200, manaMultiplier = 50, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 4, -21, 0, 200, manaMultiplier = 50, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 4, -20, 0, 200, manaMultiplier = 50, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 4, -20, 0, 200, manaMultiplier = 50, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 4, -20, 0, 200, manaMultiplier = 50, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 4, -20, 0, 200, manaMultiplier = 50, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 4, -19, 0, 200, manaMultiplier = 50, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 4, -19, 0, 200, manaMultiplier = 50, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 4, -19, 0, 200, manaMultiplier = 50, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 4, -19, 0, 200, manaMultiplier = 50, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 4, -18, 0, 200, manaMultiplier = 50, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportGreaterMultipleProjectilesPlus"] = { name = "Awakened Greater Multiple Projectiles", description = "Supports projectile skills.", color = 2, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.MinionProjectile, SkillType.AnimateWeapon, SkillType.Type73, }, addSkillTypes = { }, excludeSkillTypes = { }, plusVersionOf = "SupportGreaterMultipleProjectiles", statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_multiple_projectile_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, }, stats = { "number_of_additional_projectiles", "support_multiple_projectile_damage_+%_final", "projectile_damage_+%", "terrain_arrow_attachment_chance_reduction_+%", }, levels = { [1] = { 5, -25, 0, 250, manaMultiplier = 50, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 5, -24, 0, 250, manaMultiplier = 50, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 5, -23, 0, 250, manaMultiplier = 50, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 5, -22, 0, 250, manaMultiplier = 50, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 5, -21, 0, 250, manaMultiplier = 50, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 5, -20, 0, 250, manaMultiplier = 50, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 5, -20, 0, 250, manaMultiplier = 50, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 5, -19, 0, 250, manaMultiplier = 50, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 5, -19, 0, 250, manaMultiplier = 50, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 5, -18, 0, 250, manaMultiplier = 50, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 5, -18, 0, 250, manaMultiplier = 50, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 5, -17, 0, 250, manaMultiplier = 50, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 5, -17, 0, 250, manaMultiplier = 50, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 5, -16, 0, 250, manaMultiplier = 50, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 5, -16, 0, 250, manaMultiplier = 50, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 5, -15, 0, 250, manaMultiplier = 50, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 5, -15, 0, 250, manaMultiplier = 50, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 5, -14, 0, 250, manaMultiplier = 50, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 5, -14, 0, 250, manaMultiplier = 50, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 5, -13, 0, 250, manaMultiplier = 50, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportGreaterVolley"] = { name = "Greater Volley", description = "Supports skills that fire projectiles from the user. Does not affect projectiles fired from other locations as secondary effects.", color = 2, support = true, requireSkillTypes = { SkillType.SkillCanVolley, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.LaunchesSeriesOfProjectiles, SkillType.Type71, SkillType.FiresProjectilesFromSecondaryLocation, }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_greater_volley_projectile_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 1 }, }, Alternate1 = { { "parallel_projectile_firing_point_x_dist_+%", 1 }, }, Alternate2 = { { "base_projectile_speed_+%", 1 }, }, }, stats = { "support_parallel_projectile_number_of_points_per_side", "greater_volley_additional_projectiles_fire_parallel_x_dist", "number_of_additional_projectiles", "support_greater_volley_projectile_damage_+%_final", "terrain_arrow_attachment_chance_reduction_+%", }, levels = { [1] = { 4, 80, 4, -30, 0, manaMultiplier = 50, levelRequirement = 38, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [2] = { 4, 80, 4, -30, 0, manaMultiplier = 50, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [3] = { 4, 80, 4, -29, 0, manaMultiplier = 50, levelRequirement = 42, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [4] = { 4, 80, 4, -29, 0, manaMultiplier = 50, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [5] = { 4, 80, 4, -28, 0, manaMultiplier = 50, levelRequirement = 46, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [6] = { 4, 80, 4, -28, 0, manaMultiplier = 50, levelRequirement = 48, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [7] = { 4, 80, 4, -27, 0, manaMultiplier = 50, levelRequirement = 50, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [8] = { 4, 80, 4, -27, 0, manaMultiplier = 50, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [9] = { 4, 80, 4, -26, 0, manaMultiplier = 50, levelRequirement = 54, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [10] = { 4, 80, 4, -26, 0, manaMultiplier = 50, levelRequirement = 56, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [11] = { 4, 80, 4, -25, 0, manaMultiplier = 50, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [12] = { 4, 80, 4, -25, 0, manaMultiplier = 50, levelRequirement = 60, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [13] = { 4, 80, 4, -24, 0, manaMultiplier = 50, levelRequirement = 62, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [14] = { 4, 80, 4, -24, 0, manaMultiplier = 50, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [15] = { 4, 80, 4, -23, 0, manaMultiplier = 50, levelRequirement = 65, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [16] = { 4, 80, 4, -23, 0, manaMultiplier = 50, levelRequirement = 66, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [17] = { 4, 80, 4, -22, 0, manaMultiplier = 50, levelRequirement = 67, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [18] = { 4, 80, 4, -22, 0, manaMultiplier = 50, levelRequirement = 68, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [19] = { 4, 80, 4, -21, 0, manaMultiplier = 50, levelRequirement = 69, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [20] = { 4, 80, 4, -21, 0, manaMultiplier = 50, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [21] = { 4, 80, 4, -20, 0, manaMultiplier = 50, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [22] = { 4, 80, 4, -20, 0, manaMultiplier = 50, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [23] = { 4, 80, 4, -19, 0, manaMultiplier = 50, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [24] = { 4, 80, 4, -19, 0, manaMultiplier = 50, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [25] = { 4, 80, 4, -18, 0, manaMultiplier = 50, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [26] = { 4, 80, 4, -18, 0, manaMultiplier = 50, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [27] = { 4, 80, 4, -17, 0, manaMultiplier = 50, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [28] = { 4, 80, 4, -17, 0, manaMultiplier = 50, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [29] = { 4, 80, 4, -16, 0, manaMultiplier = 50, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [30] = { 4, 80, 4, -16, 0, manaMultiplier = 50, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [31] = { 4, 80, 4, -15, 0, manaMultiplier = 50, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [32] = { 4, 80, 4, -15, 0, manaMultiplier = 50, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [33] = { 4, 80, 4, -15, 0, manaMultiplier = 50, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [34] = { 4, 80, 4, -14, 0, manaMultiplier = 50, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [35] = { 4, 80, 4, -14, 0, manaMultiplier = 50, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [36] = { 4, 80, 4, -13, 0, manaMultiplier = 50, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [37] = { 4, 80, 4, -13, 0, manaMultiplier = 50, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [38] = { 4, 80, 4, -12, 0, manaMultiplier = 50, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [39] = { 4, 80, 4, -12, 0, manaMultiplier = 50, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [40] = { 4, 80, 4, -11, 0, manaMultiplier = 50, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportDamageAgainstChilled"] = { name = "Hypothermia", description = "Supports any skill that deals damage.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, SkillType.DamageOverTime, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_hypothermia_damage_+%_vs_chilled_enemies_final"] = { mod("Damage", "MORE", nil, 0, bit.bor(KeywordFlag.Hit, KeywordFlag.Ailment), { type = "ActorCondition", actor = "enemy", var = "Chilled" }), }, ["support_hypothermia_cold_damage_over_time_+%_final"] = { mod("ColdDamage", "MORE", nil, 0, KeywordFlag.ColdDot), }, ["freeze_applies_cold_resistance_+"] = { mod("ColdResist", "BASE", nil, 0, 0, { type = "GlobalEffect", effectType = "Debuff" }, { type = "Condition", var = "Frozen" }), }, }, baseMods = { }, qualityStats = { Default = { { "chill_duration_+%", 1.5 }, }, Alternate1 = { { "additional_chance_to_freeze_chilled_enemies_%", 1 }, }, Alternate2 = { { "freeze_applies_cold_resistance_+", -0.2 }, }, }, stats = { "support_hypothermia_damage_+%_vs_chilled_enemies_final", "additional_chance_to_freeze_chilled_enemies_%", "support_hypothermia_cold_damage_over_time_+%_final", }, levels = { [1] = { 20, 20, 20, manaMultiplier = 30, levelRequirement = 31, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 20, 20, 20, manaMultiplier = 30, levelRequirement = 34, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 21, 20, 21, manaMultiplier = 30, levelRequirement = 36, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 21, 20, 21, manaMultiplier = 30, levelRequirement = 38, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 22, 20, 22, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 22, 20, 22, manaMultiplier = 30, levelRequirement = 42, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 23, 20, 23, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 23, 20, 23, manaMultiplier = 30, levelRequirement = 46, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 24, 20, 24, manaMultiplier = 30, levelRequirement = 48, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 24, 20, 24, manaMultiplier = 30, levelRequirement = 50, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 25, 20, 25, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 25, 20, 25, manaMultiplier = 30, levelRequirement = 54, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 26, 20, 26, manaMultiplier = 30, levelRequirement = 56, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 26, 20, 26, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 27, 20, 27, manaMultiplier = 30, levelRequirement = 60, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 27, 20, 27, manaMultiplier = 30, levelRequirement = 62, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 28, 20, 28, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 28, 20, 28, manaMultiplier = 30, levelRequirement = 66, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 29, 20, 29, manaMultiplier = 30, levelRequirement = 68, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 29, 20, 29, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, 1, 1, }, cost = { }, }, [21] = { 30, 20, 30, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [22] = { 30, 20, 30, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [23] = { 31, 20, 31, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [24] = { 31, 20, 31, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [25] = { 32, 20, 32, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [26] = { 32, 20, 32, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [27] = { 33, 20, 33, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [28] = { 33, 20, 33, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [29] = { 34, 20, 34, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [30] = { 34, 20, 34, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [31] = { 34, 20, 34, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [32] = { 35, 20, 35, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [33] = { 35, 20, 35, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [34] = { 35, 20, 35, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [35] = { 35, 20, 35, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [36] = { 36, 20, 36, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [37] = { 36, 20, 36, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [38] = { 36, 20, 36, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [39] = { 36, 20, 36, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [40] = { 37, 20, 37, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportImpale"] = { name = "Impale", description = "Supports attack skills.", color = 2, support = true, requireSkillTypes = { SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["impale_support_physical_damage_+%_final"] = { mod("PhysicalDamage", "MORE", nil), }, ["impale_phys_reduction_%_penalty"] = { mod("EnemyImpalePhysicalDamageReduction", "BASE", nil), mult = -1, } }, baseMods = { }, qualityStats = { Default = { { "impale_debuff_effect_+%", 0.5 }, }, Alternate1 = { { "attacks_impale_on_hit_%_chance", 0.5 }, }, Alternate2 = { { "chance_to_inflict_additional_impale_%", 0.25 }, }, }, stats = { "attacks_impale_on_hit_%_chance", "impale_debuff_effect_+%", }, levels = { [1] = { 60, 0, manaMultiplier = 30, levelRequirement = 31, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 60, 1, manaMultiplier = 30, levelRequirement = 34, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 60, 3, manaMultiplier = 30, levelRequirement = 36, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 60, 4, manaMultiplier = 30, levelRequirement = 38, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 60, 6, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 60, 7, manaMultiplier = 30, levelRequirement = 42, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 60, 9, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 60, 10, manaMultiplier = 30, levelRequirement = 46, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 60, 12, manaMultiplier = 30, levelRequirement = 48, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 60, 13, manaMultiplier = 30, levelRequirement = 50, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 60, 15, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 60, 16, manaMultiplier = 30, levelRequirement = 54, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 60, 18, manaMultiplier = 30, levelRequirement = 56, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 60, 19, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 60, 21, manaMultiplier = 30, levelRequirement = 60, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 60, 22, manaMultiplier = 30, levelRequirement = 62, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 60, 24, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 60, 25, manaMultiplier = 30, levelRequirement = 66, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 60, 27, manaMultiplier = 30, levelRequirement = 68, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 60, 28, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 60, 30, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 60, 31, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 60, 33, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 60, 34, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 60, 36, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 60, 37, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 60, 39, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 60, 40, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 60, 42, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 60, 43, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 60, 44, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 60, 45, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 60, 45, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 60, 46, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 60, 47, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 60, 48, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 60, 48, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 60, 49, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 60, 50, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 60, 51, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportFrenzyChargeOnSlayingFrozenEnemy"] = { name = "Ice Bite", description = "Supports any skill you use to hit enemies yourself. Cannot support skills used by totems, traps, or mines.", color = 2, baseEffectiveness = 0.51819998025894, incrementalEffectiveness = 0.03770000115037, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.Trap, SkillType.Mine, SkillType.Totem, }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "damage_+%_vs_frozen_enemies", 1 }, }, Alternate1 = { { "damage_+%_per_frenzy_charge", 0.1 }, }, Alternate2 = { { "chance_to_gain_frenzy_charge_on_killing_frozen_enemy_%", 1 }, }, }, stats = { "chance_to_gain_frenzy_charge_on_killing_frozen_enemy_%", "base_chance_to_freeze_%", "minimum_added_cold_damage_per_frenzy_charge", "maximum_added_cold_damage_per_frenzy_charge", "global_minimum_added_cold_damage", "global_maximum_added_cold_damage", }, levels = { [1] = { 50, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 31, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [2] = { 51, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 34, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [3] = { 52, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 36, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [4] = { 53, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 38, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [5] = { 54, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 40, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [6] = { 55, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 42, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [7] = { 56, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 44, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [8] = { 57, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 46, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [9] = { 58, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 48, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [10] = { 59, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 50, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [11] = { 60, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 52, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [12] = { 61, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 54, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [13] = { 62, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 56, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [14] = { 63, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 58, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [15] = { 64, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 60, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [16] = { 65, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 62, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [17] = { 66, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 64, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [18] = { 67, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 66, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [19] = { 68, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 68, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [20] = { 69, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 70, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [21] = { 70, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [22] = { 71, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [23] = { 72, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [24] = { 73, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [25] = { 74, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [26] = { 75, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [27] = { 76, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [28] = { 77, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [29] = { 78, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [30] = { 79, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [31] = { 79, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [32] = { 80, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [33] = { 80, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [34] = { 81, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [35] = { 81, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [36] = { 82, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [37] = { 82, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [38] = { 83, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [39] = { 83, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, [40] = { 84, 15, 0.079999998211861, 0.11999999731779, 0.36000001430511, 0.54000002145767, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, 1, 3, 3, 3, 3, }, cost = { }, }, }, } skills["SupportLesserMultipleProjectiles"] = { name = "Lesser Multiple Projectiles", description = "Supports projectile skills.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.MinionProjectile, SkillType.AnimateWeapon, SkillType.Type73, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_lesser_multiple_projectile_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, Alternate1 = { { "base_mana_cost_-%", 1 }, { "base_life_cost_+%", -1 }, { "base_projectile_speed_+%", 0.5 }, }, Alternate2 = { { "multiple_projectiles_projectile_spread_+%", 1 }, }, }, stats = { "number_of_additional_projectiles", "support_lesser_multiple_projectile_damage_+%_final", "projectile_damage_+%", "terrain_arrow_attachment_chance_reduction_+%", }, levels = { [1] = { 2, -15, 0, 100, manaMultiplier = 30, levelRequirement = 8, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 2, -15, 0, 100, manaMultiplier = 30, levelRequirement = 10, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 2, -14, 0, 100, manaMultiplier = 30, levelRequirement = 13, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 2, -14, 0, 100, manaMultiplier = 30, levelRequirement = 17, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 2, -13, 0, 100, manaMultiplier = 30, levelRequirement = 21, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 2, -13, 0, 100, manaMultiplier = 30, levelRequirement = 25, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 2, -12, 0, 100, manaMultiplier = 30, levelRequirement = 29, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 2, -12, 0, 100, manaMultiplier = 30, levelRequirement = 33, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 2, -11, 0, 100, manaMultiplier = 30, levelRequirement = 37, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 2, -11, 0, 100, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 2, -10, 0, 100, manaMultiplier = 30, levelRequirement = 43, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 2, -10, 0, 100, manaMultiplier = 30, levelRequirement = 46, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 2, -9, 0, 100, manaMultiplier = 30, levelRequirement = 49, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 2, -9, 0, 100, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 2, -8, 0, 100, manaMultiplier = 30, levelRequirement = 55, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 2, -8, 0, 100, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 2, -7, 0, 100, manaMultiplier = 30, levelRequirement = 61, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 2, -7, 0, 100, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 2, -6, 0, 100, manaMultiplier = 30, levelRequirement = 67, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 2, -6, 0, 100, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 2, -5, 0, 100, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 2, -5, 0, 100, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 2, -4, 0, 100, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 2, -4, 0, 100, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 2, -3, 0, 100, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 2, -3, 0, 100, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 2, -2, 0, 100, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 2, -2, 0, 100, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 2, -1, 0, 100, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 2, -1, 0, 100, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 2, 0, 0, 100, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 2, 0, 0, 100, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 2, 1, 0, 100, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 2, 1, 0, 100, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 2, 2, 0, 100, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 2, 2, 0, 100, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 2, 3, 0, 100, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 2, 3, 0, 100, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 2, 4, 0, 100, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 2, 4, 0, 100, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportChanceToPoison"] = { name = "Chance to Poison", description = "Supports any skill that hits enemies.", color = 2, baseEffectiveness = 0.2732999920845, incrementalEffectiveness = 0.03999999910593, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "base_poison_damage_+%", 0.5 }, }, Alternate1 = { { "base_poison_duration_+%", 0.5 }, }, Alternate2 = { { "hit_damage_+%", 1 }, }, }, stats = { "global_minimum_added_chaos_damage", "global_maximum_added_chaos_damage", "base_chance_to_poison_on_hit_%", }, levels = { [1] = { 0.80000001192093, 1.5, 40, manaMultiplier = 20, levelRequirement = 1, statInterpolation = { 3, 3, 1, }, cost = { }, }, [2] = { 0.80000001192093, 2.2000000476837, 40, manaMultiplier = 20, levelRequirement = 2, statInterpolation = { 3, 3, 1, }, cost = { }, }, [3] = { 1.2000000476837, 2, 40, manaMultiplier = 20, levelRequirement = 4, statInterpolation = { 3, 3, 1, }, cost = { }, }, [4] = { 1, 1.7999999523163, 40, manaMultiplier = 20, levelRequirement = 7, statInterpolation = { 3, 3, 1, }, cost = { }, }, [5] = { 0.80000001192093, 1.7999999523163, 40, manaMultiplier = 20, levelRequirement = 11, statInterpolation = { 3, 3, 1, }, cost = { }, }, [6] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 16, statInterpolation = { 3, 3, 1, }, cost = { }, }, [7] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 20, statInterpolation = { 3, 3, 1, }, cost = { }, }, [8] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 24, statInterpolation = { 3, 3, 1, }, cost = { }, }, [9] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 28, statInterpolation = { 3, 3, 1, }, cost = { }, }, [10] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 32, statInterpolation = { 3, 3, 1, }, cost = { }, }, [11] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 36, statInterpolation = { 3, 3, 1, }, cost = { }, }, [12] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 40, statInterpolation = { 3, 3, 1, }, cost = { }, }, [13] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 44, statInterpolation = { 3, 3, 1, }, cost = { }, }, [14] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 48, statInterpolation = { 3, 3, 1, }, cost = { }, }, [15] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 52, statInterpolation = { 3, 3, 1, }, cost = { }, }, [16] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 56, statInterpolation = { 3, 3, 1, }, cost = { }, }, [17] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 60, statInterpolation = { 3, 3, 1, }, cost = { }, }, [18] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 64, statInterpolation = { 3, 3, 1, }, cost = { }, }, [19] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 67, statInterpolation = { 3, 3, 1, }, cost = { }, }, [20] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 70, statInterpolation = { 3, 3, 1, }, cost = { }, }, [21] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 3, 3, 1, }, cost = { }, }, [22] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 3, 3, 1, }, cost = { }, }, [23] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 3, 3, 1, }, cost = { }, }, [24] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 3, 3, 1, }, cost = { }, }, [25] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 3, 3, 1, }, cost = { }, }, [26] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 3, 3, 1, }, cost = { }, }, [27] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 3, 3, 1, }, cost = { }, }, [28] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 3, 3, 1, }, cost = { }, }, [29] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 3, 3, 1, }, cost = { }, }, [30] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 3, 3, 1, }, cost = { }, }, [31] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 3, 3, 1, }, cost = { }, }, [32] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 3, 3, 1, }, cost = { }, }, [33] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 3, 3, 1, }, cost = { }, }, [34] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 3, 3, 1, }, cost = { }, }, [35] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 3, 3, 1, }, cost = { }, }, [36] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 3, 3, 1, }, cost = { }, }, [37] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 3, 3, 1, }, cost = { }, }, [38] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 3, 3, 1, }, cost = { }, }, [39] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 3, 3, 1, }, cost = { }, }, [40] = { 0.80000001192093, 1.2000000476837, 40, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 3, 3, 1, }, cost = { }, }, }, } skills["SupportManaLeech"] = { name = "Mana Leech", description = "Supports attack skills that hit enemies, causing those hits to leech mana based on damage dealt.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["damage_+%_per_200_mana_spent_recently"] = { mod("Damage", "INC", nil, 0, 0, {type = "Multiplier", div = 200, var = "ManaSpentRecently"}) } }, baseMods = { }, qualityStats = { Default = { { "damage_+%_while_mana_leeching", 0.5 }, }, Alternate1 = { { "damage_+%_per_200_mana_spent_recently", 0.5 }, }, Alternate2 = { { "mana_gain_per_target", 0.2 }, }, }, stats = { "attack_skill_mana_leech_from_any_damage_permyriad", }, levels = { [1] = { 200, levelRequirement = 31, statInterpolation = { 1, }, cost = { }, }, [2] = { 210, levelRequirement = 34, statInterpolation = { 1, }, cost = { }, }, [3] = { 220, levelRequirement = 36, statInterpolation = { 1, }, cost = { }, }, [4] = { 230, levelRequirement = 38, statInterpolation = { 1, }, cost = { }, }, [5] = { 240, levelRequirement = 40, statInterpolation = { 1, }, cost = { }, }, [6] = { 250, levelRequirement = 42, statInterpolation = { 1, }, cost = { }, }, [7] = { 260, levelRequirement = 44, statInterpolation = { 1, }, cost = { }, }, [8] = { 270, levelRequirement = 46, statInterpolation = { 1, }, cost = { }, }, [9] = { 280, levelRequirement = 48, statInterpolation = { 1, }, cost = { }, }, [10] = { 290, levelRequirement = 50, statInterpolation = { 1, }, cost = { }, }, [11] = { 300, levelRequirement = 52, statInterpolation = { 1, }, cost = { }, }, [12] = { 310, levelRequirement = 54, statInterpolation = { 1, }, cost = { }, }, [13] = { 320, levelRequirement = 56, statInterpolation = { 1, }, cost = { }, }, [14] = { 330, levelRequirement = 58, statInterpolation = { 1, }, cost = { }, }, [15] = { 340, levelRequirement = 60, statInterpolation = { 1, }, cost = { }, }, [16] = { 350, levelRequirement = 62, statInterpolation = { 1, }, cost = { }, }, [17] = { 360, levelRequirement = 64, statInterpolation = { 1, }, cost = { }, }, [18] = { 370, levelRequirement = 66, statInterpolation = { 1, }, cost = { }, }, [19] = { 380, levelRequirement = 68, statInterpolation = { 1, }, cost = { }, }, [20] = { 390, levelRequirement = 70, statInterpolation = { 1, }, cost = { }, }, [21] = { 400, levelRequirement = 72, statInterpolation = { 1, }, cost = { }, }, [22] = { 410, levelRequirement = 74, statInterpolation = { 1, }, cost = { }, }, [23] = { 420, levelRequirement = 76, statInterpolation = { 1, }, cost = { }, }, [24] = { 430, levelRequirement = 78, statInterpolation = { 1, }, cost = { }, }, [25] = { 440, levelRequirement = 80, statInterpolation = { 1, }, cost = { }, }, [26] = { 450, levelRequirement = 82, statInterpolation = { 1, }, cost = { }, }, [27] = { 460, levelRequirement = 84, statInterpolation = { 1, }, cost = { }, }, [28] = { 470, levelRequirement = 86, statInterpolation = { 1, }, cost = { }, }, [29] = { 480, levelRequirement = 88, statInterpolation = { 1, }, cost = { }, }, [30] = { 490, levelRequirement = 90, statInterpolation = { 1, }, cost = { }, }, [31] = { 500, levelRequirement = 91, statInterpolation = { 1, }, cost = { }, }, [32] = { 510, levelRequirement = 92, statInterpolation = { 1, }, cost = { }, }, [33] = { 520, levelRequirement = 93, statInterpolation = { 1, }, cost = { }, }, [34] = { 530, levelRequirement = 94, statInterpolation = { 1, }, cost = { }, }, [35] = { 540, levelRequirement = 95, statInterpolation = { 1, }, cost = { }, }, [36] = { 550, levelRequirement = 96, statInterpolation = { 1, }, cost = { }, }, [37] = { 560, levelRequirement = 97, statInterpolation = { 1, }, cost = { }, }, [38] = { 570, levelRequirement = 98, statInterpolation = { 1, }, cost = { }, }, [39] = { 580, levelRequirement = 99, statInterpolation = { 1, }, cost = { }, }, [40] = { 590, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportGemMirageArcher"] = { name = "Mirage Archer", description = "Supports attack skills that can be used with bows. Supported skills can only be used with bows. Cannot support Vaal skills, minion skills, movement skills, or skills used by totems, traps, or mines.", color = 2, support = true, requireSkillTypes = { SkillType.SkillCanMirageArcher, }, addSkillTypes = { SkillType.Duration, }, excludeSkillTypes = { SkillType.Vaal, SkillType.Totem, SkillType.Trap, SkillType.Mine, SkillType.Minion, }, ignoreMinionTypes = true, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_mirage_archer_base_duration"] = { mod("MirageArcherDuration", "BASE", nil), div = 1000, }, ["support_mirage_archer_damage_+%_final"] = { mod("MirageArcherLessDamage", "BASE", nil), }, ["support_mirage_archer_attack_speed_+%_final"] = { mod("MirageArcherLessAttackSpeed", "BASE", nil), }, ["mirage_archer_number_of_additional_projectiles"] = { mod("MirageArcherAdditionalProjectileCount", "BASE", nil) }, ["summon_mirage_archer_on_hit"] = { mod("MirageArcherMaxCount", "BASE", 1), }, }, baseMods = { }, qualityStats = { Default = { { "attack_damage_+%", 0.5 }, }, Alternate1 = { { "mirage_archer_number_of_additional_projectiles", 0.1 }, { "support_mirage_archer_base_duration", -100 }, }, Alternate2 = { { "skill_effect_duration_+%", 1 }, }, }, stats = { "support_mirage_archer_base_duration", "support_mirage_archer_damage_+%_final", "support_mirage_archer_attack_speed_+%_final", "mirage_archer_projectile_additional_height_offset", "skill_can_own_mirage_archers", "summon_mirage_archer_on_hit", "disable_skill_if_weapon_not_bow", }, levels = { [1] = { 4000, -40, -60, -138, manaMultiplier = 30, levelRequirement = 4, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 4000, -40, -60, -138, manaMultiplier = 30, levelRequirement = 6, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 4000, -39, -60, -138, manaMultiplier = 30, levelRequirement = 9, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 4000, -39, -60, -138, manaMultiplier = 30, levelRequirement = 12, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 4000, -38, -60, -138, manaMultiplier = 30, levelRequirement = 16, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 4000, -38, -60, -138, manaMultiplier = 30, levelRequirement = 20, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 4000, -37, -60, -138, manaMultiplier = 30, levelRequirement = 24, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 4000, -37, -60, -138, manaMultiplier = 30, levelRequirement = 28, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 4000, -36, -60, -138, manaMultiplier = 30, levelRequirement = 32, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 4000, -36, -60, -138, manaMultiplier = 30, levelRequirement = 36, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 4000, -35, -60, -138, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 4000, -35, -60, -138, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 4000, -34, -60, -138, manaMultiplier = 30, levelRequirement = 48, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 4000, -34, -60, -138, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 4000, -33, -60, -138, manaMultiplier = 30, levelRequirement = 55, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 4000, -33, -60, -138, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 4000, -32, -60, -138, manaMultiplier = 30, levelRequirement = 61, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 4000, -32, -60, -138, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 4000, -31, -60, -138, manaMultiplier = 30, levelRequirement = 67, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 4000, -31, -60, -138, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 4000, -31, -60, -138, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 4000, -30, -60, -138, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 4000, -30, -60, -138, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 4000, -29, -60, -138, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 4000, -29, -60, -138, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 4000, -28, -60, -138, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 4000, -28, -60, -138, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 4000, -27, -60, -138, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 4000, -27, -60, -138, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 4000, -26, -60, -138, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 4000, -26, -60, -138, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 4000, -25, -60, -138, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 4000, -25, -60, -138, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 4000, -24, -60, -138, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 4000, -24, -60, -138, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 4000, -23, -60, -138, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 4000, -23, -60, -138, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 4000, -22, -60, -138, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 4000, -22, -60, -138, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 4000, -22, -60, -138, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportMultiTrap"] = { name = "Multiple Traps", description = "Supports traps skills, making them throw extra traps in a line.", color = 2, support = true, requireSkillTypes = { SkillType.Trap, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_multithrow_damage_+%_final"] = { mod("Damage", "MORE", nil), }, }, baseMods = { }, qualityStats = { Default = { { "trap_trigger_radius_+%", 1 }, }, Alternate1 = { { "number_of_additional_traps_allowed", 0.1 }, }, Alternate2 = { { "support_additional_trap_%_chance_for_1_additional_trap", 0.2 }, }, }, stats = { "number_of_additional_traps_to_throw", "number_of_additional_traps_allowed", "support_multithrow_damage_+%_final", "multi_trap_and_mine_support_flags", }, levels = { [1] = { 2, 3, -50, 2, manaMultiplier = 40, levelRequirement = 8, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 2, 3, -49, 2, manaMultiplier = 40, levelRequirement = 10, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 2, 3, -48, 2, manaMultiplier = 40, levelRequirement = 13, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 2, 3, -47, 2, manaMultiplier = 40, levelRequirement = 17, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 2, 3, -46, 2, manaMultiplier = 40, levelRequirement = 21, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 2, 3, -45, 2, manaMultiplier = 40, levelRequirement = 25, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 2, 3, -44, 2, manaMultiplier = 40, levelRequirement = 29, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 2, 3, -43, 2, manaMultiplier = 40, levelRequirement = 33, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 2, 3, -42, 2, manaMultiplier = 40, levelRequirement = 37, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 2, 3, -41, 2, manaMultiplier = 40, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 2, 3, -40, 2, manaMultiplier = 40, levelRequirement = 43, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 2, 3, -39, 2, manaMultiplier = 40, levelRequirement = 46, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 2, 3, -38, 2, manaMultiplier = 40, levelRequirement = 49, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 2, 3, -37, 2, manaMultiplier = 40, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 2, 3, -36, 2, manaMultiplier = 40, levelRequirement = 55, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 2, 3, -35, 2, manaMultiplier = 40, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 2, 3, -34, 2, manaMultiplier = 40, levelRequirement = 61, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 2, 3, -33, 2, manaMultiplier = 40, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 2, 3, -32, 2, manaMultiplier = 40, levelRequirement = 67, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 2, 3, -31, 2, manaMultiplier = 40, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 2, 3, -30, 2, manaMultiplier = 40, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 2, 3, -29, 2, manaMultiplier = 40, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 2, 3, -28, 2, manaMultiplier = 40, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 2, 3, -27, 2, manaMultiplier = 40, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 2, 3, -26, 2, manaMultiplier = 40, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 2, 3, -25, 2, manaMultiplier = 40, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 2, 3, -24, 2, manaMultiplier = 40, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 2, 3, -23, 2, manaMultiplier = 40, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 2, 3, -22, 2, manaMultiplier = 40, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 2, 3, -21, 2, manaMultiplier = 40, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 2, 3, -20, 2, manaMultiplier = 40, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 2, 3, -19, 2, manaMultiplier = 40, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 2, 3, -18, 2, manaMultiplier = 40, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 2, 3, -17, 2, manaMultiplier = 40, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 2, 3, -16, 2, manaMultiplier = 40, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 2, 3, -15, 2, manaMultiplier = 40, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 2, 3, -14, 2, manaMultiplier = 40, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 2, 3, -13, 2, manaMultiplier = 40, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 2, 3, -12, 2, manaMultiplier = 40, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 2, 3, -11, 2, manaMultiplier = 40, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportPuncturingWeapon"] = { name = "Nightblade", description = "Supports attack skills. Cannot support skills which create minions.", color = 2, support = true, requireSkillTypes = { SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.CreatesMinion, }, ignoreMinionTypes = true, weaponTypes = { ["Dagger"] = true, ["Claw"] = true, }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["elusive_effect_+%"] = { mod("ElusiveEffect", "INC", nil, 0, 0, { type = "GlobalEffect", effectType = "Buff", effectName = "Nightblade" }), }, }, baseMods = { flag("SupportedByNightblade"), flag("Condition:CanBeElusive", { type = "GlobalEffect", effectType = "Buff" }), mod("Dummy", "DUMMY", 1, 0, 0, { type = "Condition", var = "CanBeElusive" }), }, qualityStats = { Default = { { "critical_strike_chance_+%", 1 }, }, Alternate1 = { { "elusive_effect_+%", 1 }, }, Alternate2 = { { "critical_strike_chance_against_enemies_on_full_life_+%", 5 }, }, }, stats = { "gain_elusive_on_crit_%_chance", "elusive_effect_+%", "additional_critical_strike_chance_permyriad_while_affected_by_elusive", "nightblade_elusive_grants_critical_strike_multiplier_+_to_supported_skills", "supported_skill_can_only_use_dagger_and_claw", "supported_by_nightblade", }, levels = { [1] = { 100, 0, 70, 100, manaMultiplier = 40, levelRequirement = 18, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 100, 2, 70, 102, manaMultiplier = 40, levelRequirement = 22, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 100, 4, 70, 104, manaMultiplier = 40, levelRequirement = 26, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 100, 6, 70, 106, manaMultiplier = 40, levelRequirement = 29, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 100, 8, 70, 108, manaMultiplier = 40, levelRequirement = 32, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 100, 10, 80, 110, manaMultiplier = 40, levelRequirement = 35, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 100, 12, 80, 112, manaMultiplier = 40, levelRequirement = 38, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 100, 14, 80, 114, manaMultiplier = 40, levelRequirement = 41, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 100, 16, 80, 116, manaMultiplier = 40, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 100, 18, 80, 118, manaMultiplier = 40, levelRequirement = 47, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 100, 20, 90, 120, manaMultiplier = 40, levelRequirement = 50, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 100, 22, 90, 122, manaMultiplier = 40, levelRequirement = 53, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 100, 24, 90, 124, manaMultiplier = 40, levelRequirement = 56, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 100, 26, 90, 126, manaMultiplier = 40, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 100, 28, 90, 128, manaMultiplier = 40, levelRequirement = 60, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 100, 30, 100, 130, manaMultiplier = 40, levelRequirement = 62, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 100, 32, 100, 132, manaMultiplier = 40, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 100, 34, 100, 134, manaMultiplier = 40, levelRequirement = 66, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 100, 36, 100, 136, manaMultiplier = 40, levelRequirement = 68, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 100, 38, 100, 138, manaMultiplier = 40, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 100, 40, 110, 140, manaMultiplier = 40, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 100, 42, 110, 142, manaMultiplier = 40, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 100, 44, 110, 144, manaMultiplier = 40, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 100, 46, 110, 146, manaMultiplier = 40, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 100, 48, 110, 148, manaMultiplier = 40, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 100, 50, 120, 150, manaMultiplier = 40, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 100, 52, 120, 152, manaMultiplier = 40, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 100, 54, 120, 154, manaMultiplier = 40, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 100, 56, 120, 156, manaMultiplier = 40, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 100, 58, 120, 158, manaMultiplier = 40, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 100, 59, 130, 159, manaMultiplier = 40, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 100, 60, 130, 160, manaMultiplier = 40, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 100, 61, 130, 161, manaMultiplier = 40, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 100, 62, 130, 162, manaMultiplier = 40, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 100, 63, 130, 163, manaMultiplier = 40, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 100, 64, 130, 164, manaMultiplier = 40, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 100, 65, 130, 165, manaMultiplier = 40, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 100, 66, 130, 166, manaMultiplier = 40, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 100, 67, 130, 167, manaMultiplier = 40, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 100, 68, 130, 168, manaMultiplier = 40, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportOnslaught"] = { name = "Onslaught", description = "Supports any skill that hits enemies.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["attack_and_cast_speed_+%_during_onslaught"] = { mod("Speed", "INC", nil, 0, 0, {type = "Condition", var = "Onslaught"}) } }, baseMods = { }, qualityStats = { Default = { { "attack_and_cast_speed_+%", 0.5 }, }, Alternate1 = { { "support_scion_onslaught_duration_+%", 1 }, }, Alternate2 = { { "attack_and_cast_speed_+%_during_onslaught", 1 }, }, }, stats = { "support_scion_onslaught_on_killing_blow_%_chance", "support_scion_onslaught_on_killing_blow_duration_ms", "support_scion_onslaught_for_3_seconds_on_hitting_unique_enemy_%_chance", }, levels = { [1] = { 20, 3000, 10, manaMultiplier = 10, levelRequirement = 1, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 21, 3200, 10, manaMultiplier = 10, levelRequirement = 2, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 22, 3400, 10, manaMultiplier = 10, levelRequirement = 4, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 23, 3600, 10, manaMultiplier = 10, levelRequirement = 7, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 24, 3800, 10, manaMultiplier = 10, levelRequirement = 11, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 25, 4000, 10, manaMultiplier = 10, levelRequirement = 16, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 26, 4200, 10, manaMultiplier = 10, levelRequirement = 20, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 27, 4400, 10, manaMultiplier = 10, levelRequirement = 24, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 28, 4600, 10, manaMultiplier = 10, levelRequirement = 28, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 29, 4800, 10, manaMultiplier = 10, levelRequirement = 32, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 30, 5000, 10, manaMultiplier = 10, levelRequirement = 36, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 31, 5200, 10, manaMultiplier = 10, levelRequirement = 40, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 32, 5400, 10, manaMultiplier = 10, levelRequirement = 44, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 33, 5600, 10, manaMultiplier = 10, levelRequirement = 48, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 34, 5800, 10, manaMultiplier = 10, levelRequirement = 52, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 35, 6000, 10, manaMultiplier = 10, levelRequirement = 56, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 36, 6200, 10, manaMultiplier = 10, levelRequirement = 60, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 37, 6400, 10, manaMultiplier = 10, levelRequirement = 64, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 38, 6600, 10, manaMultiplier = 10, levelRequirement = 67, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 39, 6800, 10, manaMultiplier = 10, levelRequirement = 70, statInterpolation = { 1, 1, 1, }, cost = { }, }, [21] = { 40, 7000, 10, manaMultiplier = 10, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [22] = { 41, 7200, 10, manaMultiplier = 10, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [23] = { 42, 7400, 10, manaMultiplier = 10, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [24] = { 43, 7600, 10, manaMultiplier = 10, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [25] = { 44, 7800, 10, manaMultiplier = 10, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [26] = { 45, 8000, 10, manaMultiplier = 10, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [27] = { 46, 8200, 10, manaMultiplier = 10, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [28] = { 47, 8400, 10, manaMultiplier = 10, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [29] = { 48, 8600, 10, manaMultiplier = 10, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [30] = { 49, 8800, 10, manaMultiplier = 10, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [31] = { 49, 8900, 10, manaMultiplier = 10, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [32] = { 50, 9000, 10, manaMultiplier = 10, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [33] = { 50, 9100, 10, manaMultiplier = 10, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [34] = { 51, 9200, 10, manaMultiplier = 10, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [35] = { 51, 9300, 10, manaMultiplier = 10, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [36] = { 52, 9400, 10, manaMultiplier = 10, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [37] = { 52, 9500, 10, manaMultiplier = 10, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [38] = { 53, 9600, 10, manaMultiplier = 10, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [39] = { 53, 9700, 10, manaMultiplier = 10, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [40] = { 54, 9800, 10, manaMultiplier = 10, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportPierce"] = { name = "Pierce", description = "Supports projectile skills.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.MinionProjectile, SkillType.AnimateWeapon, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_pierce_projectile_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, ["projectile_damage_+%_if_pierced_enemy"] = { mod("Damage", "INC", nil, ModFlag.Projectile, 0, { type = "StatThreshold", stat = "PiercedCount", threshold = 1 }), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, Alternate1 = { { "projectile_base_number_of_targets_to_pierce", 0.1 }, }, Alternate2 = { { "projectile_damage_+%_if_pierced_enemy", 2 }, }, }, stats = { "projectile_base_number_of_targets_to_pierce", "support_pierce_projectile_damage_+%_final", }, levels = { [1] = { 2, 0, manaMultiplier = 20, levelRequirement = 1, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 2, 1, manaMultiplier = 20, levelRequirement = 2, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 2, 2, manaMultiplier = 20, levelRequirement = 4, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 2, 3, manaMultiplier = 20, levelRequirement = 7, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 2, 4, manaMultiplier = 20, levelRequirement = 11, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 2, 5, manaMultiplier = 20, levelRequirement = 16, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 2, 6, manaMultiplier = 20, levelRequirement = 20, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 2, 7, manaMultiplier = 20, levelRequirement = 24, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 3, 8, manaMultiplier = 20, levelRequirement = 28, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 3, 9, manaMultiplier = 20, levelRequirement = 32, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 3, 10, manaMultiplier = 20, levelRequirement = 36, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 3, 11, manaMultiplier = 20, levelRequirement = 40, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 3, 12, manaMultiplier = 20, levelRequirement = 44, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 3, 13, manaMultiplier = 20, levelRequirement = 48, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 3, 14, manaMultiplier = 20, levelRequirement = 52, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 3, 15, manaMultiplier = 20, levelRequirement = 56, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 4, 16, manaMultiplier = 20, levelRequirement = 60, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 4, 17, manaMultiplier = 20, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 4, 18, manaMultiplier = 20, levelRequirement = 67, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 4, 19, manaMultiplier = 20, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 4, 20, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 4, 21, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 4, 22, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 4, 23, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 5, 24, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 5, 25, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 5, 26, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 5, 27, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 5, 28, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 5, 29, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 5, 29, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 5, 30, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 5, 30, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 5, 31, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 5, 31, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 5, 32, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 5, 32, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 5, 33, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 5, 33, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 6, 34, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportPointBlank"] = { name = "Point Blank", description = "Supports projectile skills.", color = 2, support = true, requireSkillTypes = { SkillType.ProjectileAttack, SkillType.AnimateWeapon, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["keystone_point_blank"] = { flag("PointBlank"), }, ["knockback_chance_%_at_close_range"] = { mod("EnemyKnockbackChance", "BASE", nil, ModFlag.Hit), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, Alternate1 = { { "knockback_chance_%_at_close_range", 2 }, }, Alternate2 = { { "projectiles_pierce_all_targets_in_x_range", 1 }, }, }, stats = { "keystone_point_blank", "projectile_damage_+%", }, levels = { [1] = { 1, 0, manaMultiplier = 10, levelRequirement = 18, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 1, 2, manaMultiplier = 10, levelRequirement = 22, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 1, 4, manaMultiplier = 10, levelRequirement = 26, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 1, 6, manaMultiplier = 10, levelRequirement = 29, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 1, 8, manaMultiplier = 10, levelRequirement = 32, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 1, 10, manaMultiplier = 10, levelRequirement = 35, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 1, 12, manaMultiplier = 10, levelRequirement = 38, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 1, 14, manaMultiplier = 10, levelRequirement = 41, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 1, 16, manaMultiplier = 10, levelRequirement = 44, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 1, 18, manaMultiplier = 10, levelRequirement = 47, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 1, 20, manaMultiplier = 10, levelRequirement = 50, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 1, 22, manaMultiplier = 10, levelRequirement = 53, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 1, 24, manaMultiplier = 10, levelRequirement = 56, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 1, 26, manaMultiplier = 10, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 1, 28, manaMultiplier = 10, levelRequirement = 60, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 1, 30, manaMultiplier = 10, levelRequirement = 62, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 1, 32, manaMultiplier = 10, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 1, 34, manaMultiplier = 10, levelRequirement = 66, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 1, 36, manaMultiplier = 10, levelRequirement = 68, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 1, 38, manaMultiplier = 10, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 1, 40, manaMultiplier = 10, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 1, 42, manaMultiplier = 10, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 1, 44, manaMultiplier = 10, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 1, 46, manaMultiplier = 10, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 1, 48, manaMultiplier = 10, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 1, 50, manaMultiplier = 10, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 1, 52, manaMultiplier = 10, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 1, 54, manaMultiplier = 10, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 1, 56, manaMultiplier = 10, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 1, 58, manaMultiplier = 10, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 1, 59, manaMultiplier = 10, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 1, 60, manaMultiplier = 10, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 1, 61, manaMultiplier = 10, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 1, 62, manaMultiplier = 10, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 1, 63, manaMultiplier = 10, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 1, 64, manaMultiplier = 10, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 1, 65, manaMultiplier = 10, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 1, 66, manaMultiplier = 10, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 1, 67, manaMultiplier = 10, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 1, 68, manaMultiplier = 10, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportCriticalStrikeAffliction"] = { name = "Critical Strike Affliction", description = "Supports any skill that hits enemies.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "critical_ailment_dot_multiplier_+", 0.5 }, }, Alternate1 = { { "critical_strike_chance_+%", 1 }, }, Alternate2 = { { "base_critical_strike_multiplier_+", 0.75 }, }, }, stats = { "critical_ailment_dot_multiplier_+", }, levels = { [1] = { 55, manaMultiplier = 30, levelRequirement = 31, statInterpolation = { 1, }, cost = { }, }, [2] = { 56, manaMultiplier = 30, levelRequirement = 34, statInterpolation = { 1, }, cost = { }, }, [3] = { 58, manaMultiplier = 30, levelRequirement = 36, statInterpolation = { 1, }, cost = { }, }, [4] = { 59, manaMultiplier = 30, levelRequirement = 38, statInterpolation = { 1, }, cost = { }, }, [5] = { 61, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, }, cost = { }, }, [6] = { 62, manaMultiplier = 30, levelRequirement = 42, statInterpolation = { 1, }, cost = { }, }, [7] = { 64, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, }, cost = { }, }, [8] = { 65, manaMultiplier = 30, levelRequirement = 46, statInterpolation = { 1, }, cost = { }, }, [9] = { 67, manaMultiplier = 30, levelRequirement = 48, statInterpolation = { 1, }, cost = { }, }, [10] = { 68, manaMultiplier = 30, levelRequirement = 50, statInterpolation = { 1, }, cost = { }, }, [11] = { 70, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, }, cost = { }, }, [12] = { 71, manaMultiplier = 30, levelRequirement = 54, statInterpolation = { 1, }, cost = { }, }, [13] = { 73, manaMultiplier = 30, levelRequirement = 56, statInterpolation = { 1, }, cost = { }, }, [14] = { 74, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, }, cost = { }, }, [15] = { 76, manaMultiplier = 30, levelRequirement = 60, statInterpolation = { 1, }, cost = { }, }, [16] = { 77, manaMultiplier = 30, levelRequirement = 62, statInterpolation = { 1, }, cost = { }, }, [17] = { 79, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, }, cost = { }, }, [18] = { 80, manaMultiplier = 30, levelRequirement = 66, statInterpolation = { 1, }, cost = { }, }, [19] = { 82, manaMultiplier = 30, levelRequirement = 68, statInterpolation = { 1, }, cost = { }, }, [20] = { 83, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, }, cost = { }, }, [21] = { 85, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, }, cost = { }, }, [22] = { 86, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, }, cost = { }, }, [23] = { 88, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, }, cost = { }, }, [24] = { 89, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, }, cost = { }, }, [25] = { 91, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, }, cost = { }, }, [26] = { 92, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, }, cost = { }, }, [27] = { 94, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, }, cost = { }, }, [28] = { 95, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, }, cost = { }, }, [29] = { 97, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, }, cost = { }, }, [30] = { 98, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, }, cost = { }, }, [31] = { 99, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, }, cost = { }, }, [32] = { 100, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, }, cost = { }, }, [33] = { 100, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, }, cost = { }, }, [34] = { 101, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, }, cost = { }, }, [35] = { 102, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, }, cost = { }, }, [36] = { 103, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, }, cost = { }, }, [37] = { 103, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, }, cost = { }, }, [38] = { 104, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, }, cost = { }, }, [39] = { 105, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, }, cost = { }, }, [40] = { 106, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportAdditionalCooldown"] = { name = "Second Wind", description = "Supports skills with cooldowns.\nCannot support triggered skills.", color = 2, support = true, requireSkillTypes = { SkillType.SecondWindSupport, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.Triggered, }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "base_cooldown_speed_+%", 0.25 }, }, Alternate1 = { { "support_added_cooldown_count_if_not_instant", 0.05 }, { "base_cooldown_speed_+%", -0.5 }, }, Alternate2 = { { "regenerate_%_life_over_1_second_on_skill_use", 0.05 }, }, }, stats = { "support_added_cooldown_count_if_not_instant", "base_cooldown_speed_+%", }, levels = { [1] = { 1, -24, manaMultiplier = 100, levelRequirement = 31, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 1, -23, manaMultiplier = 100, levelRequirement = 34, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 1, -22, manaMultiplier = 100, levelRequirement = 36, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 1, -21, manaMultiplier = 100, levelRequirement = 38, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 1, -20, manaMultiplier = 100, levelRequirement = 40, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 1, -19, manaMultiplier = 100, levelRequirement = 42, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 1, -18, manaMultiplier = 100, levelRequirement = 44, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 1, -17, manaMultiplier = 100, levelRequirement = 46, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 1, -16, manaMultiplier = 100, levelRequirement = 48, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 1, -15, manaMultiplier = 100, levelRequirement = 50, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 1, -14, manaMultiplier = 100, levelRequirement = 52, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 1, -13, manaMultiplier = 100, levelRequirement = 54, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 1, -12, manaMultiplier = 100, levelRequirement = 56, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 1, -11, manaMultiplier = 100, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 1, -10, manaMultiplier = 100, levelRequirement = 60, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 1, -9, manaMultiplier = 100, levelRequirement = 62, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 1, -8, manaMultiplier = 100, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 1, -7, manaMultiplier = 100, levelRequirement = 66, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 1, -6, manaMultiplier = 100, levelRequirement = 68, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 1, -5, manaMultiplier = 100, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 1, -4, manaMultiplier = 100, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 1, -3, manaMultiplier = 100, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 1, -2, manaMultiplier = 100, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 1, -1, manaMultiplier = 100, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 1, 0, manaMultiplier = 100, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 1, 1, manaMultiplier = 100, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 1, 2, manaMultiplier = 100, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 1, 3, manaMultiplier = 100, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 1, 4, manaMultiplier = 100, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 1, 5, manaMultiplier = 100, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 1, 5, manaMultiplier = 100, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 1, 6, manaMultiplier = 100, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 1, 6, manaMultiplier = 100, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 1, 7, manaMultiplier = 100, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 1, 7, manaMultiplier = 100, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 1, 8, manaMultiplier = 100, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 1, 8, manaMultiplier = 100, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 1, 9, manaMultiplier = 100, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 1, 9, manaMultiplier = 100, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 1, 10, manaMultiplier = 100, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportSlowerProjectiles"] = { name = "Slower Projectiles", description = "Supports projectile skills.", color = 2, support = true, requireSkillTypes = { SkillType.Projectile, SkillType.ProjectileDamage, SkillType.MinionProjectile, SkillType.AnimateWeapon, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.Type51, }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_slower_projectiles_projectile_speed_+%_final"] = { mod("ProjectileSpeed", "MORE", nil), }, ["support_slower_projectiles_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, ["projectiles_damage_+%_to_nearby_targets"] = { mod("Damage", "INC", nil, ModFlag.Projectile) } }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 0.5 }, }, Alternate1 = { { "projectile_damage_+%_vs_nearby_enemies", 0.75 }, }, Alternate2 = { { "projectile_chance_to_not_pierce_%", 3 }, }, }, stats = { "support_slower_projectiles_projectile_speed_+%_final", "support_slower_projectiles_damage_+%_final", }, levels = { [1] = { -20, 10, manaMultiplier = 20, levelRequirement = 31, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { -21, 10, manaMultiplier = 20, levelRequirement = 34, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { -21, 11, manaMultiplier = 20, levelRequirement = 36, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { -22, 11, manaMultiplier = 20, levelRequirement = 38, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { -22, 12, manaMultiplier = 20, levelRequirement = 40, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { -23, 12, manaMultiplier = 20, levelRequirement = 42, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { -23, 13, manaMultiplier = 20, levelRequirement = 44, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { -24, 13, manaMultiplier = 20, levelRequirement = 46, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { -24, 14, manaMultiplier = 20, levelRequirement = 48, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { -25, 14, manaMultiplier = 20, levelRequirement = 50, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { -25, 15, manaMultiplier = 20, levelRequirement = 52, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { -26, 15, manaMultiplier = 20, levelRequirement = 54, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { -26, 16, manaMultiplier = 20, levelRequirement = 56, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { -27, 16, manaMultiplier = 20, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { -27, 17, manaMultiplier = 20, levelRequirement = 60, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { -28, 17, manaMultiplier = 20, levelRequirement = 62, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { -28, 18, manaMultiplier = 20, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { -29, 18, manaMultiplier = 20, levelRequirement = 66, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { -29, 19, manaMultiplier = 20, levelRequirement = 68, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { -30, 19, manaMultiplier = 20, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { -30, 20, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { -31, 20, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { -31, 21, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { -32, 21, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { -32, 22, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { -33, 22, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { -33, 23, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { -34, 23, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { -34, 24, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { -34, 24, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { -35, 24, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { -35, 25, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { -35, 25, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { -35, 25, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { -36, 25, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { -36, 26, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { -36, 26, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { -36, 26, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { -37, 26, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { -37, 27, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportRapidDecay"] = { name = "Swift Affliction", description = "Supports any skill that has a duration, or can hit enemies to inflict ailments on them.", color = 2, support = true, requireSkillTypes = { SkillType.Duration, SkillType.Type55, SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_rapid_decay_damage_over_time_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Dot), }, }, baseMods = { }, qualityStats = { Default = { { "damage_over_time_+%", 0.5 }, }, Alternate1 = { { "base_projectile_speed_+%", 0.5 }, }, Alternate2 = { { "you_and_enemy_movement_velocity_+%_while_affected_by_ailment_you_inflicted", 1 }, }, }, stats = { "support_rapid_decay_damage_over_time_+%_final", "support_swift_affliction_skill_effect_and_damaging_ailment_duration_+%_final", }, levels = { [1] = { 25, -25, manaMultiplier = 40, levelRequirement = 31, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 25, -25, manaMultiplier = 40, levelRequirement = 34, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 26, -25, manaMultiplier = 40, levelRequirement = 36, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 27, -25, manaMultiplier = 40, levelRequirement = 38, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 28, -25, manaMultiplier = 40, levelRequirement = 40, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 28, -25, manaMultiplier = 40, levelRequirement = 42, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 29, -25, manaMultiplier = 40, levelRequirement = 44, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 30, -25, manaMultiplier = 40, levelRequirement = 46, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 31, -25, manaMultiplier = 40, levelRequirement = 48, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 31, -25, manaMultiplier = 40, levelRequirement = 50, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 32, -25, manaMultiplier = 40, levelRequirement = 52, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 33, -25, manaMultiplier = 40, levelRequirement = 54, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 34, -25, manaMultiplier = 40, levelRequirement = 56, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 34, -25, manaMultiplier = 40, levelRequirement = 58, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 35, -25, manaMultiplier = 40, levelRequirement = 60, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 36, -25, manaMultiplier = 40, levelRequirement = 62, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 37, -25, manaMultiplier = 40, levelRequirement = 64, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 37, -25, manaMultiplier = 40, levelRequirement = 66, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 38, -25, manaMultiplier = 40, levelRequirement = 68, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 39, -25, manaMultiplier = 40, levelRequirement = 70, statInterpolation = { 1, 1, }, cost = { }, }, [21] = { 40, -25, manaMultiplier = 40, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [22] = { 40, -25, manaMultiplier = 40, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [23] = { 41, -25, manaMultiplier = 40, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [24] = { 42, -25, manaMultiplier = 40, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [25] = { 43, -25, manaMultiplier = 40, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [26] = { 43, -25, manaMultiplier = 40, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [27] = { 44, -25, manaMultiplier = 40, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [28] = { 45, -25, manaMultiplier = 40, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [29] = { 46, -25, manaMultiplier = 40, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [30] = { 46, -25, manaMultiplier = 40, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [31] = { 47, -25, manaMultiplier = 40, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [32] = { 47, -25, manaMultiplier = 40, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [33] = { 47, -25, manaMultiplier = 40, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [34] = { 48, -25, manaMultiplier = 40, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [35] = { 48, -25, manaMultiplier = 40, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [36] = { 49, -25, manaMultiplier = 40, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [37] = { 49, -25, manaMultiplier = 40, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [38] = { 49, -25, manaMultiplier = 40, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [39] = { 50, -25, manaMultiplier = 40, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [40] = { 50, -25, manaMultiplier = 40, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportSwiftAfflictionPlus"] = { name = "Awakened Swift Affliction", description = "Supports any skill that has a duration, or can hit enemies to inflict ailments on them.", color = 2, support = true, requireSkillTypes = { SkillType.Duration, SkillType.Type55, SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, plusVersionOf = "SupportRapidDecay", statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_rapid_decay_damage_over_time_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Dot), }, }, baseMods = { }, qualityStats = { Default = { { "damage_over_time_+%", 0.5 }, }, }, stats = { "support_rapid_decay_damage_over_time_+%_final", "support_swift_affliction_skill_effect_and_damaging_ailment_duration_+%_final", }, levels = { [1] = { 40, -25, manaMultiplier = 40, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 41, -25, manaMultiplier = 40, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 42, -25, manaMultiplier = 40, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 43, -25, manaMultiplier = 40, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 49, -25, manaMultiplier = 40, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 50, -25, manaMultiplier = 40, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 50, -25, manaMultiplier = 40, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 51, -25, manaMultiplier = 40, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 51, -25, manaMultiplier = 40, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 52, -25, manaMultiplier = 40, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 52, -25, manaMultiplier = 40, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 53, -25, manaMultiplier = 40, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 53, -25, manaMultiplier = 40, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 54, -25, manaMultiplier = 40, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 54, -25, manaMultiplier = 40, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 55, -25, manaMultiplier = 40, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 55, -25, manaMultiplier = 40, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 56, -25, manaMultiplier = 40, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 56, -25, manaMultiplier = 40, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 57, -25, manaMultiplier = 40, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportAdditionalTrapMine"] = { name = "Swift Assembly", description = "Supports skills which throw Traps or Mines.", color = 2, support = true, requireSkillTypes = { SkillType.Trap, SkillType.Mine, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "mine_laying_speed_+%", 0.5 }, { "trap_throwing_speed_+%", 0.5 }, }, Alternate1 = { { "trap_duration_+%", -2 }, }, Alternate2 = { { "trap_throwing_speed_+%_per_frenzy_charge", 0.1 }, { "mine_throwing_speed_+%_per_frenzy_charge", 0.1 }, }, }, stats = { "support_additional_trap_mine_%_chance_for_1_additional_trap_mine", "support_additional_trap_mine_%_chance_for_2_additional_trap_mine", "support_additional_trap_mine_%_chance_for_3_additional_trap_mine", "throw_traps_in_circle_radius", "multi_trap_and_mine_support_flags", }, levels = { [1] = { 9, 6, 3, 20, 4, manaMultiplier = 10, levelRequirement = 4, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [2] = { 10, 6, 3, 20, 4, manaMultiplier = 10, levelRequirement = 6, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [3] = { 10, 7, 3, 20, 4, manaMultiplier = 10, levelRequirement = 9, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [4] = { 11, 7, 3, 20, 4, manaMultiplier = 10, levelRequirement = 12, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [5] = { 11, 7, 4, 20, 4, manaMultiplier = 10, levelRequirement = 16, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [6] = { 12, 8, 4, 20, 4, manaMultiplier = 10, levelRequirement = 20, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [7] = { 12, 8, 4, 20, 4, manaMultiplier = 10, levelRequirement = 24, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [8] = { 13, 8, 4, 20, 4, manaMultiplier = 10, levelRequirement = 28, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [9] = { 13, 9, 4, 20, 4, manaMultiplier = 10, levelRequirement = 32, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [10] = { 13, 9, 4, 20, 4, manaMultiplier = 10, levelRequirement = 36, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [11] = { 14, 9, 5, 20, 4, manaMultiplier = 10, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [12] = { 14, 10, 5, 20, 4, manaMultiplier = 10, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [13] = { 15, 10, 5, 20, 4, manaMultiplier = 10, levelRequirement = 48, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [14] = { 15, 10, 5, 20, 4, manaMultiplier = 10, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [15] = { 16, 11, 5, 20, 4, manaMultiplier = 10, levelRequirement = 55, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [16] = { 16, 11, 5, 20, 4, manaMultiplier = 10, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [17] = { 17, 11, 6, 20, 4, manaMultiplier = 10, levelRequirement = 61, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [18] = { 17, 12, 6, 20, 4, manaMultiplier = 10, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [19] = { 18, 12, 6, 20, 4, manaMultiplier = 10, levelRequirement = 67, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [20] = { 18, 12, 6, 20, 4, manaMultiplier = 10, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [21] = { 18, 13, 6, 20, 4, manaMultiplier = 10, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [22] = { 19, 13, 6, 20, 4, manaMultiplier = 10, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [23] = { 19, 14, 6, 20, 4, manaMultiplier = 10, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [24] = { 20, 14, 7, 20, 4, manaMultiplier = 10, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [25] = { 20, 14, 7, 20, 4, manaMultiplier = 10, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [26] = { 21, 15, 7, 20, 4, manaMultiplier = 10, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [27] = { 21, 15, 7, 20, 4, manaMultiplier = 10, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [28] = { 22, 15, 7, 20, 4, manaMultiplier = 10, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [29] = { 22, 16, 7, 20, 4, manaMultiplier = 10, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [30] = { 23, 16, 8, 20, 4, manaMultiplier = 10, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [31] = { 23, 16, 8, 20, 4, manaMultiplier = 10, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [32] = { 23, 17, 8, 20, 4, manaMultiplier = 10, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [33] = { 24, 17, 8, 20, 4, manaMultiplier = 10, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [34] = { 24, 17, 8, 20, 4, manaMultiplier = 10, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [35] = { 25, 18, 8, 20, 4, manaMultiplier = 10, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [36] = { 25, 18, 9, 20, 4, manaMultiplier = 10, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [37] = { 26, 18, 9, 20, 4, manaMultiplier = 10, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [38] = { 26, 19, 9, 20, 4, manaMultiplier = 10, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [39] = { 27, 19, 9, 20, 4, manaMultiplier = 10, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [40] = { 27, 20, 9, 20, 4, manaMultiplier = 10, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportTrap"] = { name = "Trap", description = "Supports spells, or attacks that use bows or wands. Instead of using that skill, you will throw a trap that will use the skill for you when an enemy walks near it. Traps cannot use channelling skills.", color = 2, baseEffectiveness = 0, support = true, requireSkillTypes = { SkillType.SkillCanTrap, }, addSkillTypes = { SkillType.Trap, SkillType.ManaCostPercent, }, excludeSkillTypes = { SkillType.TriggeredGrantedSkill, SkillType.ManaCostReserved, SkillType.Mine, SkillType.NOT, SkillType.AND, SkillType.ManaCostPercent, SkillType.NOT, SkillType.AND, }, statDescriptionScope = "gem_stat_descriptions", addFlags = { trap = true, }, statMap = { ["base_skill_show_average_damage_instead_of_dps"] = { skill("showAverage", true, { type = "SkillType", skillType = SkillType.SkillCanTrap }), }, }, baseMods = { }, qualityStats = { Default = { { "trap_throwing_speed_+%", 0.5 }, }, Alternate1 = { { "damage_+%", 0.5 }, }, Alternate2 = { { "trap_trigger_radius_+%", 1 }, }, }, stats = { "is_trap", "base_trap_duration", "trap_throwing_speed_+%", "trap_damage_+%", "support_makes_skill_trap_pvp_damage_+%_final", "base_skill_is_trapped", "disable_skill_if_melee_attack", "base_skill_show_average_damage_instead_of_dps", }, levels = { [1] = { 1, 4000, 0, 0, -60, manaMultiplier = 20, levelRequirement = 8, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [2] = { 1, 4000, 1, 2, -60, manaMultiplier = 20, levelRequirement = 10, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [3] = { 1, 4000, 2, 4, -60, manaMultiplier = 20, levelRequirement = 13, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [4] = { 1, 4000, 3, 6, -60, manaMultiplier = 20, levelRequirement = 17, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [5] = { 1, 4000, 4, 8, -60, manaMultiplier = 20, levelRequirement = 21, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [6] = { 1, 4000, 5, 10, -60, manaMultiplier = 20, levelRequirement = 25, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [7] = { 1, 4000, 6, 12, -60, manaMultiplier = 20, levelRequirement = 29, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [8] = { 1, 4000, 7, 14, -60, manaMultiplier = 20, levelRequirement = 33, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [9] = { 1, 4000, 8, 16, -60, manaMultiplier = 20, levelRequirement = 37, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [10] = { 1, 4000, 9, 18, -60, manaMultiplier = 20, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [11] = { 1, 4000, 10, 20, -60, manaMultiplier = 20, levelRequirement = 43, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [12] = { 1, 4000, 11, 22, -60, manaMultiplier = 20, levelRequirement = 46, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [13] = { 1, 4000, 12, 24, -60, manaMultiplier = 20, levelRequirement = 49, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [14] = { 1, 4000, 13, 26, -60, manaMultiplier = 20, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [15] = { 1, 4000, 14, 28, -60, manaMultiplier = 20, levelRequirement = 55, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [16] = { 1, 4000, 15, 30, -60, manaMultiplier = 20, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [17] = { 1, 4000, 16, 32, -60, manaMultiplier = 20, levelRequirement = 61, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [18] = { 1, 4000, 17, 34, -60, manaMultiplier = 20, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [19] = { 1, 4000, 18, 36, -60, manaMultiplier = 20, levelRequirement = 67, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [20] = { 1, 4000, 19, 38, -60, manaMultiplier = 20, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [21] = { 1, 4000, 20, 40, -60, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [22] = { 1, 4000, 21, 42, -60, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [23] = { 1, 4000, 22, 44, -60, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [24] = { 1, 4000, 23, 46, -60, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [25] = { 1, 4000, 24, 48, -60, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [26] = { 1, 4000, 25, 50, -60, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [27] = { 1, 4000, 26, 52, -60, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [28] = { 1, 4000, 27, 54, -60, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [29] = { 1, 4000, 28, 56, -60, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [30] = { 1, 4000, 29, 58, -60, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [31] = { 1, 4000, 30, 60, -60, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [32] = { 1, 4000, 31, 62, -60, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [33] = { 1, 4000, 32, 64, -60, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [34] = { 1, 4000, 33, 66, -60, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [35] = { 1, 4000, 34, 68, -60, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [36] = { 1, 4000, 35, 70, -60, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [37] = { 1, 4000, 36, 72, -60, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [38] = { 1, 4000, 37, 74, -60, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [39] = { 1, 4000, 38, 76, -60, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, [40] = { 1, 4000, 39, 78, -60, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportTrapCooldown"] = { name = "Advanced Traps", description = "Supports skills which throw traps.", color = 2, support = true, requireSkillTypes = { SkillType.Trap, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "trap_damage_+%", 0.5 }, }, Alternate1 = { { "base_skill_area_of_effect_+%", 1 }, }, Alternate2 = { { "skill_effect_duration_+%", 0.5 }, }, }, stats = { "placing_traps_cooldown_recovery_+%", "skill_effect_duration_+%", "trap_throwing_speed_+%", "multi_trap_and_mine_support_flags", }, levels = { [1] = { 50, 10, 15, 16, manaMultiplier = 20, levelRequirement = 31, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 53, 11, 16, 16, manaMultiplier = 20, levelRequirement = 34, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 56, 12, 17, 16, manaMultiplier = 20, levelRequirement = 36, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 59, 13, 18, 16, manaMultiplier = 20, levelRequirement = 38, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 62, 14, 19, 16, manaMultiplier = 20, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 65, 15, 20, 16, manaMultiplier = 20, levelRequirement = 42, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 68, 16, 21, 16, manaMultiplier = 20, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 71, 17, 22, 16, manaMultiplier = 20, levelRequirement = 46, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 74, 18, 23, 16, manaMultiplier = 20, levelRequirement = 48, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 77, 19, 24, 16, manaMultiplier = 20, levelRequirement = 50, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 80, 20, 25, 16, manaMultiplier = 20, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 83, 21, 26, 16, manaMultiplier = 20, levelRequirement = 54, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 86, 22, 27, 16, manaMultiplier = 20, levelRequirement = 56, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 89, 23, 28, 16, manaMultiplier = 20, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 92, 24, 29, 16, manaMultiplier = 20, levelRequirement = 60, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 95, 25, 30, 16, manaMultiplier = 20, levelRequirement = 62, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 98, 26, 31, 16, manaMultiplier = 20, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 101, 27, 32, 16, manaMultiplier = 20, levelRequirement = 66, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 104, 28, 33, 16, manaMultiplier = 20, levelRequirement = 68, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 107, 29, 34, 16, manaMultiplier = 20, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 110, 30, 35, 16, manaMultiplier = 20, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 113, 31, 36, 16, manaMultiplier = 20, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 116, 32, 37, 16, manaMultiplier = 20, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 119, 33, 38, 16, manaMultiplier = 20, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 122, 34, 39, 16, manaMultiplier = 20, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 125, 35, 40, 16, manaMultiplier = 20, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 128, 36, 41, 16, manaMultiplier = 20, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 131, 37, 42, 16, manaMultiplier = 20, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 134, 38, 43, 16, manaMultiplier = 20, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 137, 39, 44, 16, manaMultiplier = 20, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 140, 39, 44, 16, manaMultiplier = 20, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 143, 40, 45, 16, manaMultiplier = 20, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 146, 40, 45, 16, manaMultiplier = 20, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 149, 41, 46, 16, manaMultiplier = 20, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 152, 41, 46, 16, manaMultiplier = 20, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 155, 42, 47, 16, manaMultiplier = 20, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 158, 42, 47, 16, manaMultiplier = 20, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 161, 43, 48, 16, manaMultiplier = 20, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 164, 43, 48, 16, manaMultiplier = 20, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 167, 44, 49, 16, manaMultiplier = 20, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportTrapAndMineDamage"] = { name = "Trap and Mine Damage", description = "Supports skills which throw Traps or Mines.", color = 2, support = true, requireSkillTypes = { SkillType.Trap, SkillType.Mine, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_trap_and_mine_damage_+%_final"] = { mod("Damage", "MORE", nil, 0, bit.bor(KeywordFlag.Trap, KeywordFlag.Mine)), }, ["support_trap_and_mine_damage_mine_throwing_speed_+%_final"] = { mod("MineLayingSpeed", "MORE", nil), }, ["support_trap_and_mine_damage_trap_throwing_speed_+%_final"] = { mod("TrapThrowingSpeed", "MORE", nil), }, }, baseMods = { }, qualityStats = { Default = { { "damage_+%", 0.5 }, }, Alternate1 = { { "base_mana_cost_-%", 0.5 }, { "base_life_cost_+%", -0.5 }, { "base_reservation_efficiency_+%", 1 }, }, Alternate2 = { { "damage_+%_per_power_charge", 0.1 }, }, }, stats = { "support_trap_and_mine_damage_+%_final", "support_trap_and_mine_damage_trap_throwing_speed_+%_final", "support_trap_and_mine_damage_mine_throwing_speed_+%_final", }, levels = { [1] = { 30, -10, -10, manaMultiplier = 30, levelRequirement = 18, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 31, -10, -10, manaMultiplier = 30, levelRequirement = 22, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 32, -10, -10, manaMultiplier = 30, levelRequirement = 26, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 33, -10, -10, manaMultiplier = 30, levelRequirement = 29, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 34, -10, -10, manaMultiplier = 30, levelRequirement = 32, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 35, -10, -10, manaMultiplier = 30, levelRequirement = 35, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 36, -10, -10, manaMultiplier = 30, levelRequirement = 38, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 37, -10, -10, manaMultiplier = 30, levelRequirement = 41, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 38, -10, -10, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 39, -10, -10, manaMultiplier = 30, levelRequirement = 47, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 40, -10, -10, manaMultiplier = 30, levelRequirement = 50, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 41, -10, -10, manaMultiplier = 30, levelRequirement = 53, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 42, -10, -10, manaMultiplier = 30, levelRequirement = 56, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 43, -10, -10, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 44, -10, -10, manaMultiplier = 30, levelRequirement = 60, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 45, -10, -10, manaMultiplier = 30, levelRequirement = 62, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 46, -10, -10, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 47, -10, -10, manaMultiplier = 30, levelRequirement = 66, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 48, -10, -10, manaMultiplier = 30, levelRequirement = 68, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 49, -10, -10, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, 1, 1, }, cost = { }, }, [21] = { 50, -10, -10, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [22] = { 51, -10, -10, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [23] = { 52, -10, -10, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [24] = { 53, -10, -10, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [25] = { 54, -10, -10, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [26] = { 55, -10, -10, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [27] = { 56, -10, -10, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [28] = { 57, -10, -10, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [29] = { 58, -10, -10, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [30] = { 59, -10, -10, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [31] = { 59, -10, -10, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [32] = { 60, -10, -10, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [33] = { 60, -10, -10, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [34] = { 61, -10, -10, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [35] = { 61, -10, -10, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [36] = { 62, -10, -10, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [37] = { 62, -10, -10, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [38] = { 63, -10, -10, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [39] = { 63, -10, -10, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [40] = { 64, -10, -10, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportPhysicalProjectileAttackDamage"] = { name = "Vicious Projectiles", description = "Supports projectile attack skills.", color = 2, support = true, requireSkillTypes = { SkillType.ProjectileAttack, SkillType.AnimateWeapon, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_projectile_attack_speed_+%_final"] = { mod("Speed", "MORE", nil, bit.bor(ModFlag.Attack, ModFlag.Projectile)), }, ["support_projectile_attack_physical_damage_+%_final"] = { mod("PhysicalDamage", "MORE", nil, bit.bor(ModFlag.Attack, ModFlag.Projectile)), }, ["support_phys_chaos_projectile_physical_damage_over_time_+%_final"] = { mod("PhysicalDamage", "MORE", nil, 0, KeywordFlag.PhysicalDot), }, ["support_phys_chaos_projectile_chaos_damage_over_time_+%_final"] = { mod("ChaosDamage", "MORE", nil, 0, KeywordFlag.ChaosDot), }, }, baseMods = { }, qualityStats = { Default = { { "physical_damage_+%", 0.5 }, }, Alternate1 = { { "bleed_on_hit_with_attacks_%", 0.5 }, { "base_chance_to_poison_on_hit_%", 0.5 }, }, Alternate2 = { { "attacks_impale_on_hit_%_chance", 0.5 }, }, }, stats = { "support_projectile_attack_physical_damage_+%_final", "support_projectile_attack_speed_+%_final", "support_phys_chaos_projectile_physical_damage_over_time_+%_final", "support_phys_chaos_projectile_chaos_damage_over_time_+%_final", }, levels = { [1] = { 30, -10, 30, 30, manaMultiplier = 30, levelRequirement = 18, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 31, -10, 31, 31, manaMultiplier = 30, levelRequirement = 22, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 32, -10, 32, 32, manaMultiplier = 30, levelRequirement = 26, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 33, -10, 33, 33, manaMultiplier = 30, levelRequirement = 29, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 34, -10, 34, 34, manaMultiplier = 30, levelRequirement = 32, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 35, -10, 35, 35, manaMultiplier = 30, levelRequirement = 35, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 36, -10, 36, 36, manaMultiplier = 30, levelRequirement = 38, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 37, -10, 37, 37, manaMultiplier = 30, levelRequirement = 41, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 38, -10, 38, 38, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 39, -10, 39, 39, manaMultiplier = 30, levelRequirement = 47, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 40, -10, 40, 40, manaMultiplier = 30, levelRequirement = 50, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 41, -10, 41, 41, manaMultiplier = 30, levelRequirement = 53, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 42, -10, 42, 42, manaMultiplier = 30, levelRequirement = 56, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 43, -10, 43, 43, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 44, -10, 44, 44, manaMultiplier = 30, levelRequirement = 60, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 45, -10, 45, 45, manaMultiplier = 30, levelRequirement = 62, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 46, -10, 46, 46, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 47, -10, 47, 47, manaMultiplier = 30, levelRequirement = 66, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 48, -10, 48, 48, manaMultiplier = 30, levelRequirement = 68, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 49, -10, 49, 49, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 50, -10, 50, 50, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 51, -10, 51, 51, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 52, -10, 52, 52, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 53, -10, 53, 53, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 54, -10, 54, 54, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 55, -10, 55, 55, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 56, -10, 56, 56, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 57, -10, 57, 57, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 58, -10, 58, 58, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 59, -10, 59, 59, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 59, -10, 59, 59, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 60, -10, 60, 60, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 60, -10, 60, 60, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 61, -10, 61, 61, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 61, -10, 61, 61, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 62, -10, 62, 62, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 62, -10, 62, 62, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 63, -10, 63, 63, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 63, -10, 63, 63, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 64, -10, 64, 64, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportViciousProjectilesPlus"] = { name = "Awakened Vicious Projectiles", description = "Supports projectile attack skills.", color = 2, support = true, requireSkillTypes = { SkillType.ProjectileAttack, SkillType.AnimateWeapon, }, addSkillTypes = { }, excludeSkillTypes = { }, plusVersionOf = "SupportPhysicalProjectileAttackDamage", statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_projectile_attack_speed_+%_final"] = { mod("Speed", "MORE", nil, bit.bor(ModFlag.Attack, ModFlag.Projectile)), }, ["support_projectile_attack_physical_damage_+%_final"] = { mod("PhysicalDamage", "MORE", nil, bit.bor(ModFlag.Attack, ModFlag.Projectile)), }, ["support_phys_chaos_projectile_physical_damage_over_time_+%_final"] = { mod("PhysicalDamage", "MORE", nil, 0, KeywordFlag.PhysicalDot), }, ["support_phys_chaos_projectile_chaos_damage_over_time_+%_final"] = { mod("ChaosDamage", "MORE", nil, 0, KeywordFlag.ChaosDot), }, }, baseMods = { }, qualityStats = { Default = { { "physical_damage_+%", 0.5 }, }, }, stats = { "support_projectile_attack_physical_damage_+%_final", "support_projectile_attack_speed_+%_final", "support_phys_chaos_projectile_physical_damage_over_time_+%_final", "support_phys_chaos_projectile_chaos_damage_over_time_+%_final", }, levels = { [1] = { 50, -10, 50, 50, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 51, -10, 51, 51, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 52, -10, 52, 52, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 53, -10, 53, 53, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 59, -10, 59, 59, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 60, -10, 60, 60, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 60, -10, 60, 60, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 61, -10, 61, 61, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 61, -10, 61, 61, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 62, -10, 62, 62, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 62, -10, 62, 62, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 63, -10, 63, 63, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 63, -10, 63, 63, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 64, -10, 64, 64, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 64, -10, 64, 64, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 65, -10, 65, 65, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 65, -10, 65, 65, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 66, -10, 66, 66, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 66, -10, 66, 66, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 67, -10, 67, 67, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportDebilitate"] = { name = "Vile Toxins", description = "Supports any skill that hits enemies.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_debilitate_poison_damage_+%_final"] = { mod("Damage", "MORE", nil, 0, KeywordFlag.Poison), }, ["support_debilitate_hit_damage_+%_final_per_poison_stack"] = { mod("Damage", "MORE", nil, ModFlag.Hit, 0, { type = "Multiplier", actor = "enemy", var = "PoisonStack", limitVar = "VileToxinsPoisonLimit" }), }, ["support_debilitate_hit_damage_max_poison_stacks"] = { mod("Multiplier:VileToxinsPoisonLimit", "BASE", nil), }, }, baseMods = { }, qualityStats = { Default = { { "base_poison_damage_+%", 1 }, }, Alternate1 = { { "base_poison_duration_+%", 0.5 }, }, Alternate2 = { { "faster_poison_%", 0.25 }, }, }, stats = { "support_debilitate_poison_damage_+%_final", "support_debilitate_hit_damage_+%_final_per_poison_stack", "support_debilitate_hit_damage_max_poison_stacks", }, levels = { [1] = { 10, 5, 5, manaMultiplier = 30, levelRequirement = 38, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 10, 5, 5, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 11, 5, 5, manaMultiplier = 30, levelRequirement = 42, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 11, 5, 6, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 12, 5, 6, manaMultiplier = 30, levelRequirement = 46, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 12, 5, 6, manaMultiplier = 30, levelRequirement = 48, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 13, 5, 6, manaMultiplier = 30, levelRequirement = 50, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 13, 5, 6, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 14, 5, 6, manaMultiplier = 30, levelRequirement = 54, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 14, 5, 7, manaMultiplier = 30, levelRequirement = 56, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 15, 5, 7, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 15, 5, 7, manaMultiplier = 30, levelRequirement = 60, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 16, 5, 7, manaMultiplier = 30, levelRequirement = 62, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 16, 5, 7, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 17, 5, 8, manaMultiplier = 30, levelRequirement = 65, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 17, 5, 8, manaMultiplier = 30, levelRequirement = 66, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 18, 5, 8, manaMultiplier = 30, levelRequirement = 67, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 18, 5, 8, manaMultiplier = 30, levelRequirement = 68, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 19, 5, 8, manaMultiplier = 30, levelRequirement = 69, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 19, 5, 8, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, 1, 1, }, cost = { }, }, [21] = { 20, 5, 9, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [22] = { 20, 5, 9, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [23] = { 21, 5, 9, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [24] = { 21, 5, 9, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [25] = { 22, 5, 9, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [26] = { 22, 5, 9, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [27] = { 23, 5, 10, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [28] = { 23, 5, 10, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [29] = { 24, 5, 10, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [30] = { 24, 5, 10, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [31] = { 24, 5, 10, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [32] = { 25, 5, 10, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [33] = { 25, 5, 10, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [34] = { 25, 5, 11, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [35] = { 25, 5, 11, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [36] = { 26, 5, 11, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [37] = { 26, 5, 11, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [38] = { 26, 5, 11, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [39] = { 26, 5, 11, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [40] = { 27, 5, 11, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, } skills["SupportVoidManipulation"] = { name = "Void Manipulation", description = "Supports any skill that deals damage.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, SkillType.DamageOverTime, }, addSkillTypes = { }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_void_manipulation_chaos_damage_+%_final"] = { mod("ChaosDamage", "MORE", nil), }, }, baseMods = { }, qualityStats = { Default = { { "chaos_damage_+%", 0.5 }, }, Alternate1 = { { "base_skill_area_of_effect_+%", 0.5 }, }, Alternate2 = { { "base_life_leech_from_chaos_damage_permyriad", 2 }, }, }, stats = { "support_void_manipulation_chaos_damage_+%_final", "deal_no_elemental_damage", }, levels = { [1] = { 20, manaMultiplier = 30, levelRequirement = 8, statInterpolation = { 1, }, cost = { }, }, [2] = { 20, manaMultiplier = 30, levelRequirement = 10, statInterpolation = { 1, }, cost = { }, }, [3] = { 21, manaMultiplier = 30, levelRequirement = 13, statInterpolation = { 1, }, cost = { }, }, [4] = { 22, manaMultiplier = 30, levelRequirement = 17, statInterpolation = { 1, }, cost = { }, }, [5] = { 23, manaMultiplier = 30, levelRequirement = 21, statInterpolation = { 1, }, cost = { }, }, [6] = { 23, manaMultiplier = 30, levelRequirement = 25, statInterpolation = { 1, }, cost = { }, }, [7] = { 24, manaMultiplier = 30, levelRequirement = 29, statInterpolation = { 1, }, cost = { }, }, [8] = { 25, manaMultiplier = 30, levelRequirement = 33, statInterpolation = { 1, }, cost = { }, }, [9] = { 26, manaMultiplier = 30, levelRequirement = 37, statInterpolation = { 1, }, cost = { }, }, [10] = { 26, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, }, cost = { }, }, [11] = { 27, manaMultiplier = 30, levelRequirement = 43, statInterpolation = { 1, }, cost = { }, }, [12] = { 28, manaMultiplier = 30, levelRequirement = 46, statInterpolation = { 1, }, cost = { }, }, [13] = { 29, manaMultiplier = 30, levelRequirement = 49, statInterpolation = { 1, }, cost = { }, }, [14] = { 29, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, }, cost = { }, }, [15] = { 30, manaMultiplier = 30, levelRequirement = 55, statInterpolation = { 1, }, cost = { }, }, [16] = { 31, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, }, cost = { }, }, [17] = { 32, manaMultiplier = 30, levelRequirement = 61, statInterpolation = { 1, }, cost = { }, }, [18] = { 32, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, }, cost = { }, }, [19] = { 33, manaMultiplier = 30, levelRequirement = 67, statInterpolation = { 1, }, cost = { }, }, [20] = { 34, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, }, cost = { }, }, [21] = { 35, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, }, cost = { }, }, [22] = { 35, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, }, cost = { }, }, [23] = { 36, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, }, cost = { }, }, [24] = { 37, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, }, cost = { }, }, [25] = { 38, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, }, cost = { }, }, [26] = { 38, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, }, cost = { }, }, [27] = { 39, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, }, cost = { }, }, [28] = { 40, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, }, cost = { }, }, [29] = { 41, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, }, cost = { }, }, [30] = { 41, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, }, cost = { }, }, [31] = { 42, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, }, cost = { }, }, [32] = { 42, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, }, cost = { }, }, [33] = { 42, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, }, cost = { }, }, [34] = { 43, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, }, cost = { }, }, [35] = { 43, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, }, cost = { }, }, [36] = { 44, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, }, cost = { }, }, [37] = { 44, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, }, cost = { }, }, [38] = { 44, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, }, cost = { }, }, [39] = { 45, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, }, cost = { }, }, [40] = { 45, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, }, cost = { }, }, }, } skills["SupportVoidManipulationPlus"] = { name = "Awakened Void Manipulation", description = "Supports any skill that deals damage.", color = 2, support = true, requireSkillTypes = { SkillType.Hit, SkillType.Attack, SkillType.DamageOverTime, }, addSkillTypes = { }, excludeSkillTypes = { }, plusVersionOf = "SupportVoidManipulation", statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_void_manipulation_chaos_damage_+%_final"] = { mod("ChaosDamage", "MORE", nil), }, }, baseMods = { }, qualityStats = { Default = { { "chaos_damage_+%", 0.5 }, }, }, stats = { "support_void_manipulation_chaos_damage_+%_final", "supported_chaos_skill_gem_level_+", "deal_no_elemental_damage", }, levels = { [1] = { 35, 0, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, }, cost = { }, }, [2] = { 36, 0, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, }, cost = { }, }, [3] = { 37, 0, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, }, cost = { }, }, [4] = { 38, 0, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, }, cost = { }, }, [5] = { 39, 1, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, }, cost = { }, }, [6] = { 40, 1, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, }, cost = { }, }, [7] = { 40, 1, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, }, cost = { }, }, [8] = { 41, 1, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, }, cost = { }, }, [9] = { 41, 1, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, }, cost = { }, }, [10] = { 42, 1, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, }, cost = { }, }, [11] = { 42, 1, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, }, cost = { }, }, [12] = { 43, 1, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, }, cost = { }, }, [13] = { 43, 1, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, }, cost = { }, }, [14] = { 44, 1, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, }, cost = { }, }, [15] = { 44, 1, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, }, cost = { }, }, [16] = { 45, 1, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, }, cost = { }, }, [17] = { 45, 1, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, }, cost = { }, }, [18] = { 46, 1, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, }, cost = { }, }, [19] = { 46, 1, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, }, cost = { }, }, [20] = { 47, 1, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, }, cost = { }, }, }, } skills["SupportParallelProjectiles"] = { name = "Volley", description = "Supports skills that fire projectiles from the user. Does not affect projectiles fired from other locations as secondary effects.", color = 2, support = true, requireSkillTypes = { SkillType.SkillCanVolley, }, addSkillTypes = { }, excludeSkillTypes = { SkillType.LaunchesSeriesOfProjectiles, SkillType.Type71, SkillType.FiresProjectilesFromSecondaryLocation, }, statDescriptionScope = "gem_stat_descriptions", statMap = { ["support_parallel_projectiles_damage_+%_final"] = { mod("Damage", "MORE", nil, ModFlag.Projectile), }, }, baseMods = { }, qualityStats = { Default = { { "projectile_damage_+%", 1 }, }, Alternate1 = { { "parallel_projectile_firing_point_x_dist_+%", 1 }, }, Alternate2 = { { "base_skill_area_of_effect_+%", 0.5 }, }, }, stats = { "support_parallel_projectile_number_of_points_per_side", "volley_additional_projectiles_fire_parallel_x_dist", "number_of_additional_projectiles", "support_parallel_projectiles_damage_+%_final", }, levels = { [1] = { 2, 80, 2, -12, manaMultiplier = 30, levelRequirement = 4, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [2] = { 2, 80, 2, -12, manaMultiplier = 30, levelRequirement = 6, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [3] = { 2, 80, 2, -11, manaMultiplier = 30, levelRequirement = 9, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [4] = { 2, 80, 2, -11, manaMultiplier = 30, levelRequirement = 12, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [5] = { 2, 80, 2, -10, manaMultiplier = 30, levelRequirement = 16, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [6] = { 2, 80, 2, -10, manaMultiplier = 30, levelRequirement = 20, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [7] = { 2, 80, 2, -9, manaMultiplier = 30, levelRequirement = 24, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [8] = { 2, 80, 2, -9, manaMultiplier = 30, levelRequirement = 28, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [9] = { 2, 80, 2, -8, manaMultiplier = 30, levelRequirement = 32, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [10] = { 2, 80, 2, -8, manaMultiplier = 30, levelRequirement = 36, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [11] = { 2, 80, 2, -7, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [12] = { 2, 80, 2, -7, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [13] = { 2, 80, 2, -6, manaMultiplier = 30, levelRequirement = 48, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [14] = { 2, 80, 2, -6, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [15] = { 2, 80, 2, -5, manaMultiplier = 30, levelRequirement = 55, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [16] = { 2, 80, 2, -5, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [17] = { 2, 80, 2, -4, manaMultiplier = 30, levelRequirement = 61, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [18] = { 2, 80, 2, -4, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [19] = { 2, 80, 2, -3, manaMultiplier = 30, levelRequirement = 67, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [20] = { 2, 80, 2, -3, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [21] = { 2, 80, 2, -2, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [22] = { 2, 80, 2, -2, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [23] = { 2, 80, 2, -1, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [24] = { 2, 80, 2, -1, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [25] = { 2, 80, 2, 0, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [26] = { 2, 80, 2, 0, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [27] = { 2, 80, 2, 1, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [28] = { 2, 80, 2, 1, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [29] = { 2, 80, 2, 2, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [30] = { 2, 80, 2, 2, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [31] = { 2, 80, 2, 2, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [32] = { 2, 80, 2, 3, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [33] = { 2, 80, 2, 3, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [34] = { 2, 80, 2, 3, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [35] = { 2, 80, 2, 3, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [36] = { 2, 80, 2, 4, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [37] = { 2, 80, 2, 4, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [38] = { 2, 80, 2, 4, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [39] = { 2, 80, 2, 4, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, [40] = { 2, 80, 2, 5, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, 1, 1, }, cost = { }, }, }, } skills["SupportChaosAttacks"] = { name = "Withering Touch", description = "Supports attack skills.", color = 2, support = true, requireSkillTypes = { SkillType.Attack, }, addSkillTypes = { SkillType.Duration, }, excludeSkillTypes = { }, statDescriptionScope = "gem_stat_descriptions", baseMods = { }, qualityStats = { Default = { { "chaos_damage_+%", 0.5 }, }, Alternate1 = { { "skill_effect_duration_+%", 1 }, }, Alternate2 = { { "wither_applies_additional_wither_%", 1 }, }, }, stats = { "support_withered_base_duration_ms", "withered_on_hit_chance_%", "physical_damage_%_to_add_as_chaos", }, levels = { [1] = { 2000, 25, 10, manaMultiplier = 30, levelRequirement = 38, statInterpolation = { 1, 1, 1, }, cost = { }, }, [2] = { 2000, 25, 11, manaMultiplier = 30, levelRequirement = 40, statInterpolation = { 1, 1, 1, }, cost = { }, }, [3] = { 2000, 25, 12, manaMultiplier = 30, levelRequirement = 42, statInterpolation = { 1, 1, 1, }, cost = { }, }, [4] = { 2000, 25, 13, manaMultiplier = 30, levelRequirement = 44, statInterpolation = { 1, 1, 1, }, cost = { }, }, [5] = { 2000, 25, 14, manaMultiplier = 30, levelRequirement = 46, statInterpolation = { 1, 1, 1, }, cost = { }, }, [6] = { 2000, 25, 15, manaMultiplier = 30, levelRequirement = 48, statInterpolation = { 1, 1, 1, }, cost = { }, }, [7] = { 2000, 25, 16, manaMultiplier = 30, levelRequirement = 50, statInterpolation = { 1, 1, 1, }, cost = { }, }, [8] = { 2000, 25, 17, manaMultiplier = 30, levelRequirement = 52, statInterpolation = { 1, 1, 1, }, cost = { }, }, [9] = { 2000, 25, 18, manaMultiplier = 30, levelRequirement = 54, statInterpolation = { 1, 1, 1, }, cost = { }, }, [10] = { 2000, 25, 19, manaMultiplier = 30, levelRequirement = 56, statInterpolation = { 1, 1, 1, }, cost = { }, }, [11] = { 2000, 25, 20, manaMultiplier = 30, levelRequirement = 58, statInterpolation = { 1, 1, 1, }, cost = { }, }, [12] = { 2000, 25, 21, manaMultiplier = 30, levelRequirement = 60, statInterpolation = { 1, 1, 1, }, cost = { }, }, [13] = { 2000, 25, 22, manaMultiplier = 30, levelRequirement = 62, statInterpolation = { 1, 1, 1, }, cost = { }, }, [14] = { 2000, 25, 23, manaMultiplier = 30, levelRequirement = 64, statInterpolation = { 1, 1, 1, }, cost = { }, }, [15] = { 2000, 25, 24, manaMultiplier = 30, levelRequirement = 65, statInterpolation = { 1, 1, 1, }, cost = { }, }, [16] = { 2000, 25, 25, manaMultiplier = 30, levelRequirement = 66, statInterpolation = { 1, 1, 1, }, cost = { }, }, [17] = { 2000, 25, 26, manaMultiplier = 30, levelRequirement = 67, statInterpolation = { 1, 1, 1, }, cost = { }, }, [18] = { 2000, 25, 27, manaMultiplier = 30, levelRequirement = 68, statInterpolation = { 1, 1, 1, }, cost = { }, }, [19] = { 2000, 25, 28, manaMultiplier = 30, levelRequirement = 69, statInterpolation = { 1, 1, 1, }, cost = { }, }, [20] = { 2000, 25, 29, manaMultiplier = 30, levelRequirement = 70, statInterpolation = { 1, 1, 1, }, cost = { }, }, [21] = { 2000, 25, 30, manaMultiplier = 30, levelRequirement = 72, statInterpolation = { 1, 1, 1, }, cost = { }, }, [22] = { 2000, 25, 31, manaMultiplier = 30, levelRequirement = 74, statInterpolation = { 1, 1, 1, }, cost = { }, }, [23] = { 2000, 25, 32, manaMultiplier = 30, levelRequirement = 76, statInterpolation = { 1, 1, 1, }, cost = { }, }, [24] = { 2000, 25, 33, manaMultiplier = 30, levelRequirement = 78, statInterpolation = { 1, 1, 1, }, cost = { }, }, [25] = { 2000, 25, 34, manaMultiplier = 30, levelRequirement = 80, statInterpolation = { 1, 1, 1, }, cost = { }, }, [26] = { 2000, 25, 35, manaMultiplier = 30, levelRequirement = 82, statInterpolation = { 1, 1, 1, }, cost = { }, }, [27] = { 2000, 25, 36, manaMultiplier = 30, levelRequirement = 84, statInterpolation = { 1, 1, 1, }, cost = { }, }, [28] = { 2000, 25, 37, manaMultiplier = 30, levelRequirement = 86, statInterpolation = { 1, 1, 1, }, cost = { }, }, [29] = { 2000, 25, 38, manaMultiplier = 30, levelRequirement = 88, statInterpolation = { 1, 1, 1, }, cost = { }, }, [30] = { 2000, 25, 39, manaMultiplier = 30, levelRequirement = 90, statInterpolation = { 1, 1, 1, }, cost = { }, }, [31] = { 2000, 25, 40, manaMultiplier = 30, levelRequirement = 91, statInterpolation = { 1, 1, 1, }, cost = { }, }, [32] = { 2000, 25, 40, manaMultiplier = 30, levelRequirement = 92, statInterpolation = { 1, 1, 1, }, cost = { }, }, [33] = { 2000, 25, 41, manaMultiplier = 30, levelRequirement = 93, statInterpolation = { 1, 1, 1, }, cost = { }, }, [34] = { 2000, 25, 41, manaMultiplier = 30, levelRequirement = 94, statInterpolation = { 1, 1, 1, }, cost = { }, }, [35] = { 2000, 25, 42, manaMultiplier = 30, levelRequirement = 95, statInterpolation = { 1, 1, 1, }, cost = { }, }, [36] = { 2000, 25, 42, manaMultiplier = 30, levelRequirement = 96, statInterpolation = { 1, 1, 1, }, cost = { }, }, [37] = { 2000, 25, 43, manaMultiplier = 30, levelRequirement = 97, statInterpolation = { 1, 1, 1, }, cost = { }, }, [38] = { 2000, 25, 43, manaMultiplier = 30, levelRequirement = 98, statInterpolation = { 1, 1, 1, }, cost = { }, }, [39] = { 2000, 25, 44, manaMultiplier = 30, levelRequirement = 99, statInterpolation = { 1, 1, 1, }, cost = { }, }, [40] = { 2000, 25, 44, manaMultiplier = 30, levelRequirement = 100, statInterpolation = { 1, 1, 1, }, cost = { }, }, }, }
------------------------------------------------ -- Copyright © 2013-2020 Hugula: Arpg game Engine -- -- author pu ------------------------------------------------ local table = table local pairs = pairs local ipairs = ipairs local string_format = string.format local table_insert = table.insert local table_remove = table.remove local class = class local Object = CS.System.Object local GetSetObject = GetSetObject local empty_tab = {} local vm_base = class( function(self) ---属性改变事件监听 self._property_changed = {} self.msg = {} --消息监听 self.property = GetSetObject(self) --设置property getset self.is_active = false ---是否激活。 self.is_res_ready = false ---资源是否准备好 self.auto_context = true ---资源完成自动设置context end ) local add_property_changed = function(self, delegate) if self._property_changed == nil then self._property_changed = {} end table_insert(self._property_changed, delegate) -- Logger.Log("object add_property_changed", delegate, tostring(self), #self._property_changed) end local remove_property_changed = function(self, delegate) local _property_changed = self._property_changed -- Logger.Log("object begin remove_property_changed ", delegate, tostring(self)) -- Logger.LogTable(_property_changed) for i = 1, #_property_changed do if Object.Equals(_property_changed[i], delegate) then table_remove(_property_changed, i) -- Logger.Log("object remove_property_changed ", delegate, i, tostring(self)) return end end end local function property_changed(self, op, delegate) if op == "+" then add_property_changed(self, delegate) else remove_property_changed(self, delegate) end end ---属性改变的时候通知绑定对象 ---@overload fun(property_name:string) ---@return void local function on_Property_changed(self, property_name) local changed = self._property_changed local act for i = 1, #changed do act = changed[i] if act then -- Logger.Log(" for",i,act) act(self, property_name) end end end ---改变属性 ---@overload fun(property_name:string,value:any) ---@return void local function set_property(self, property_name, value) local old = self[property_name] if old ~= value then self[property_name] = value on_Property_changed(self, property_name) end end local function on_push_arg(arg) -- body end local function on_push() -- body end local function on_back() -- body end ---激活的时候 ---@overload fun() local function on_active(self) -- body end ---失活的时候 ---@overload fun() local function on_deactive(self) -- body end ---view销毁的时候 ---@overload fun() local function on_destroy(self) -- body end ---绑定view的context到当前VMBase ---@overload fun() local function bind_view(self) local views = self.views or empty_tab for k, view_base in ipairs(views) do view_base:set_child_context(vm_base) end end ---绑定view的context到当前VMBase ---@overload fun() local function unbind_view(self) local views = self.views or empty_tab for k, view_base in ipairs(views) do view_base:set_child_context(nil) end end ---清理View的资源 ---@overload fun() local function clear(self) local views = self.views if views then for k, v in ipairs(views) do v:clear() end end table.clear(self._property_changed) self.is_res_ready = false end ---注销的时候 ---@overload fun() local function dispose(self) -- body table.clear(self._property_changed) self._push_arg = nil end local function tostring(self) return string_format("VMBase(name=%s).views=%s ", self.name, self.views) end ---注销的时候 ---@overload fun() local function debug_property_changed(self) local changed = self._property_changed Logger.Log(string.format("debug_property_changed(%s) (%s) ", #changed, tostring(self))) Logger.LogTable(changed) end ---INotifyPropertyChanged接口实现 vm_base.PropertyChanged = property_changed vm_base.add_PropertyChanged = add_property_changed vm_base.remove_PropertyChanged = remove_property_changed ---改变属性 vm_base.OnPropertyChanged = on_Property_changed vm_base.SetProperty = set_property --栈相关事件 vm_base.on_push_arg = on_push_arg vm_base.on_push = on_push vm_base.on_back = on_back vm_base.on_active = on_active vm_base.on_deactive = on_deactive vm_base.on_destroy = on_destroy vm_base.clear = clear vm_base.dispose = dispose vm_base.debug_property_changed = debug_property_changed vm_base.__tostring = tostring ---所有视图模型的基类 ---@class VMBase ---@field OnPropertyChanged fun(self:table, property_name:string) ---@field SetProperty fun(self:table, property_name:string, value:any) ---@field on_push_arg fun(arg:any) 入栈资源加载之前调用 由VMState:push() 触发 ---@field on_back fun() 从回退栈激活资源加载完成后调用在on_active之前 ---@field on_active fun(self:table) ---@field on_deactive fun(self:table) ---@field clear fun(self:table) 清理view ---@field dispose fun(self:table) ---@field is_active boolean ---@field is_res_ready boolean VMBase = vm_base
-- map search local worldSearchModule = {} local screenWidth = love.graphics.getWidth() local screenHeight = love.graphics.getHeight() local utf8 = require("utf8") local importUI = require("UI") function worldSearchModule.createWorldDirectoryIfNil() local info = love.filesystem.getInfo( "worldData", info ) if info == nil then -- if the directory does'nt exist -- create this directory os.execute( "mkdir " .. "worldData") end local info2 = love.filesystem.getInfo( "tiledFiles", info2 ) if info2 == nil then os.execute( "mkdir " .. "tiledFiles") end local info3 = love.filesystem.getInfo( "lua_maps", info3 ) if info3 == nil then os.execute( "mkdir " .. "lua_maps") end end -- file browser functions local filesString = nil function worldSearchModule.loadFileBrowser() filesString = browseWorldJsonFiles("tiledFiles" .. "", "") removeWorldFileExtension() end local str = nil function findWorldFileExtensionMatch(str) --prevent listing other file formats than .world if string.find(str, "%.world") then return true else return false end end local worldFileNames = {} function browseWorldJsonFiles(folder, fileTree) --not json file extension, .world extension local filesTable = love.filesystem.getDirectoryItems(folder) for i,v in ipairs(filesTable) do if findWorldFileExtensionMatch(v) then local file = folder.."/"..v if love.filesystem.getInfo(file) then fileTree = fileTree.."\n"..v table.insert(worldFileNames, v) --insert world file names here end elseif not findWorldFileExtensionMatch(v) then -- files that will be ignored when to load --print("not ok for " .. '"' .. v .. '"' .. " file, will be ignored") end end return fileTree end function removeWorldFileExtension() for i, j in ipairs(worldFileNames) do j = string.gsub(j, "%.world", "") --remove the .world file extension worldFileNames[i] = j --modify string on the fly end end function worldSearchModule.returnWorldNames() return worldFileNames end function worldSearchModule.drawFileBrowserResults() if #worldFileNames == 0 then love.graphics.print("no world file found !!", 10, 5) end for i, j in ipairs(worldFileNames) do if j == "" then love.graphics.print("world file name is an empty string !!", 10, 30) else love.graphics.print(" tiledFiles " .. "folder content = ") love.graphics.print(" " .. j .. ".world", 160, (i * 20) - 20 ) end end end return worldSearchModule
local settings = { flib_dictionary_levels_per_batch = { name = "flib-dictionary-levels-per-batch", default_value = 15, minimum_value = 1, maximum_value = 15, }, flib_translations_per_tick = { name = "flib-translations-per-tick", default_value = 50, minimum_value = 1, }, } return settings
local sadotaLoaded = false -- Events -- RegisterNetEvent("ped_sadot:createPED") -- AddEventHandler("ped_sadot:createPED", function() -- create_ped_sadot() -- end) -- Fonction principale -- function create_ped_sadot() ------------------------------------------------------ -- Modèle pour spawn NPC avec animation SADoT SADoJ -- ------ Script réalisé par Sha -- aidé par Chris ------ ------------------------------------------------------ Citizen.CreateThread(function() -- Chargement des skins PNJ Type "sadota" -- RequestModel(GetHashKey("S_M_Y_Construct_02")) while not HasModelLoaded(GetHashKey("S_M_Y_Construct_02")) do Wait(1) end RequestModel(GetHashKey("S_M_Y_Construct_01")) while not HasModelLoaded(GetHashKey("S_M_Y_Construct_01")) do Wait(1) end -- Chargement de l'animation PNJ type "sadota" RequestAnimDict("amb@prop_human_bbq@male@idle_b") while not HasAnimDictLoaded("amb@prop_human_bbq@male@idle_b") do Wait(1) end -- Mettre les coordonnées des PNJ type "sadota" -- Petit marteau local sadota = { {id=1, hash=0xC5FEFADE , x=266.800, y=218.300, z=110.283, a=161.763}, -- Pacifique } -- Responsable chantier local sadotab = { {id=1, hash=0xD7DA9E99 , x=265.291, y=219.814, z=110.283, a=209.204}, -- Pacifique {id=1, hash=0xD7DA9E99 , x=249.450, y=211.398, z=110.283, a=189.738}, -- Pacifique {id=1, hash=0xD7DA9E99 , x=46.100, y=-1116.088, z=29.258, a=318.552}, -- Travaux Fleeca {id=1, hash=0xD7DA9E99 , x=193.438, y=-1667.929, z=29.803, a=200.593}, -- Station7 {id=1, hash=0xD7DA9E99 , x=205.296, y=-1644.279, z=29.803, a=180.126}, -- station7 {id=1, hash=0xD7DA9E99 , x=87.686, y=-1336.656, z=29.343, a=142.877}, -- streapeext {id=1, hash=0xD7DA9E99 , x=76.699, y=-1317.855, z=29.242, a=184.571} --streapeext } -- Marteau Piqueur local sadotac = { {id=1, hash=0xD7DA9E99 , x=239.251, y=229.102, z=110.278, a=345.479}, -- Pacifique {id=1, hash=0xD7DA9E99 , x=54.584, y=-1103.855, z=29.373, a=136.885}, -- Travaux Fleeca {id=1, hash=0xD7DA9E99 , x=209.436, y=-1638.397, z=29.735, a=229.961}, -- Station7 {id=1, hash=0xD7DA9E99 , x=83.214, y=-1330.338, z=29.342, a=27.071} --streapeext } -- Pause Cigarette local sadotad = { {id=1, hash=0xD7DA9E99 , x=254.877, y=200.518, z=105.031, a=307.000}, -- Pacifique {id=1, hash=0xD7DA9E99 , x=53.388, y=-1116.377, z=29.311, a=80.880}, -- Travaux Fleeca {id=1, hash=0xD7DA9E99 , x=191.998, y=-1658.014, z=29.803, a=209.640}, -- Station7 } -- Pause contre mur local sadotae = { {id=1, hash=0xC5FEFADE , x=255.700, y=202.239, z=105.024, a=155.994}, -- Pacifique {id=1, hash=0xC5FEFADE , x=212.795, y=-1654.379, z=29.803, a=51.005}, -- Station7 {id=1, hash=0xC5FEFADE , x=220.858, y=-1661.014, z=29.796, a=223.902}, -- station7 } -- Pause cafe local sadotaa = { {id=1, hash=0xD7DA9E99 , x=268.700, y=223.127, z=110.283, a=124.751}, -- Pacifique {id=1, hash=0xD7DA9E99 , x=254.823, y=201.727, z=105.039, a=240.349}, -- Pacifique } -- Nettoyage balais local sadotaf = { {id=1, hash=0xD7DA9E99 , x=242.947, y=213.155, z=110.283, a=313.299}, -- Pacifique {id=1, hash=0xD7DA9E99 , x=205.925, y=-1656.594, z=29.803, a=192.541}, -- Station7 {id=1, hash=0xD7DA9E99 , x=215.574, y=-1671.396, z=29.803, a=315.726}, -- Station7 } --Nettoyage lingette local sadotag = { {id=1, hash=0xD7DA9E99 , x=236.701, y=227.626, z=106.287, a=343.467}, -- Pacifique {id=1, hash=0xD7DA9E99 , x=204.565, y=-1637.388, z=29.875, a=140.847}, -- Station7 } if sadotaLoaded == false then -- Chargement des coordonnées des PNJ type "sadota" for _, item in pairs(sadota) do local sadota = CreatePed(item.id, item.hash, item.x, item.y, item.z, item.a, false, false) SetPedFleeAttributes(sadota, 0, 0) SetPedArmour(sadota, 200) SetPedMaxHealth(sadota, 200) SetPedRelationshipGroupHash(sadota, GetHashKey("CIVFEMALE")) TaskStartScenarioInPlace(sadota, "WORLD_HUMAN_HAMMERING", 0, true) --TaskPlayAnim(sadota,"amb@prop_human_bbq@male@idle_b", "idle_d", 8.0, 8.0, -1, 1, 10, 0, 0, 0) SetPedCanRagdoll(sadota, false) end for _, item in pairs(sadotaa) do local sadotaa = CreatePed(item.id, item.hash, item.x, item.y, item.z, item.a, false, false) SetPedFleeAttributes(sadotaa, 0, 0) SetPedArmour(sadotaa, 200) SetPedMaxHealth(sadotaa, 200) SetPedRelationshipGroupHash(sadotaa, GetHashKey("CIVFEMALE")) TaskStartScenarioInPlace(sadotaa, "WORLD_HUMAN_AA_COFFEE", 0, true) --TaskPlayAnim(sadotaa,"amb@prop_human_bbq@male@idle_b", "idle_d", 8.0, 8.0, -1, 1, 10, 0, 0, 0) SetPedCanRagdoll(sadotaa, false) end for _, item in pairs(sadotab) do local sadotab = CreatePed(item.id, item.hash, item.x, item.y, item.z, item.a, false, false) SetPedFleeAttributes(sadotab, 0, 0) SetPedArmour(sadotab, 200) SetPedMaxHealth(sadotab, 200) SetPedRelationshipGroupHash(sadotab, GetHashKey("CIVFEMALE")) TaskStartScenarioInPlace(sadotab, "WORLD_HUMAN_CLIPBOARD", 0, true) --TaskPlayAnim(sadotab,"amb@prop_human_bbq@male@idle_b", "idle_d", 8.0, 8.0, -1, 1, 10, 0, 0, 0) SetPedCanRagdoll(sadotab, false) end for _, item in pairs(sadotac) do local sadotac = CreatePed(item.id, item.hash, item.x, item.y, item.z, item.a, false, false) SetPedFleeAttributes(sadotac, 0, 0) SetPedArmour(sadotac, 200) SetPedMaxHealth(sadotac, 200) SetPedRelationshipGroupHash(sadotac, GetHashKey("CIVFEMALE")) TaskStartScenarioInPlace(sadotac, "WORLD_HUMAN_CONST_DRILL", 0, true) --TaskPlayAnim(sadotac,"amb@prop_human_bbq@male@idle_b", "idle_d", 8.0, 8.0, -1, 1, 10, 0, 0, 0) SetPedCanRagdoll(sadotac, false) end for _, item in pairs(sadotad) do local sadotad = CreatePed(item.id, item.hash, item.x, item.y, item.z, item.a, false, false) SetPedFleeAttributes(sadotad, 0, 0) SetPedArmour(sadotad, 200) SetPedMaxHealth(sadotad, 200) SetPedRelationshipGroupHash(sadotad, GetHashKey("CIVFEMALE")) TaskStartScenarioInPlace(sadotad, "WORLD_HUMAN_AA_SMOKE", 0, true) --TaskPlayAnim(sadotad,"amb@prop_human_bbq@male@idle_b", "idle_d", 8.0, 8.0, -1, 1, 10, 0, 0, 0) SetPedCanRagdoll(sadotad, false) end for _, item in pairs(sadotae) do local sadotae = CreatePed(item.id, item.hash, item.x, item.y, item.z, item.a, false, false) SetPedFleeAttributes(sadotae, 0, 0) SetPedArmour(sadotae, 200) SetPedMaxHealth(sadotae, 200) SetPedRelationshipGroupHash(sadotae, GetHashKey("CIVFEMALE")) TaskStartScenarioInPlace(sadotae, "WORLD_HUMAN_LEANING", 0, true) --TaskPlayAnim(sadotae,"amb@prop_human_bbq@male@idle_b", "idle_d", 8.0, 8.0, -1, 1, 10, 0, 0, 0) SetPedCanRagdoll(sadotae, false) end for _, item in pairs(sadotaf) do local sadotaf = CreatePed(item.id, item.hash, item.x, item.y, item.z, item.a, false, false) SetPedFleeAttributes(sadotaf, 0, 0) SetPedArmour(sadotaf, 200) SetPedMaxHealth(sadotaf, 200) SetPedRelationshipGroupHash(sadotaf, GetHashKey("CIVFEMALE")) TaskStartScenarioInPlace(sadotaf, "WORLD_HUMAN_JANITOR", 0, true) --TaskPlayAnim(sadotaf,"amb@prop_human_bbq@male@idle_b", "idle_d", 8.0, 8.0, -1, 1, 10, 0, 0, 0) SetPedCanRagdoll(sadotaf, false) end for _, item in pairs(sadotag) do local sadotag = CreatePed(item.id, item.hash, item.x, item.y, item.z, item.a, false, false) SetPedFleeAttributes(sadotag, 0, 0) SetPedArmour(sadotag, 200) SetPedMaxHealth(sadotag, 200) SetPedRelationshipGroupHash(sadotag, GetHashKey("CIVFEMALE")) TaskStartScenarioInPlace(sadotag, "WORLD_HUMAN_MAID_CLEAN", 0, true) --TaskPlayAnim(sadotag,"amb@prop_human_bbq@male@idle_b", "idle_d", 8.0, 8.0, -1, 1, 10, 0, 0, 0) SetPedCanRagdoll(sadotag, false) end sadotaLoaded = true end end) -- end
local MotionSpecifier = require(script.MotionSpecifier) local SimpleMotion = require(script.SimpleMotion) local RoactMotion = {} RoactMotion.spring = MotionSpecifier.spring RoactMotion.SimpleMotion = SimpleMotion return RoactMotion
local commandHandler = require("commandHandler") local pp = require("pretty-print") local http = require("coro-http") local json = require("json") local utils = require("miscUtils") local discordia = require("discordia") local timer = require("timer") local function printLine(...) local ret = {} for i = 1, select("#", ...) do local arg = tostring(select(i, ...)) table.insert(ret, arg) end return table.concat(ret, "\t") end local function prettyLine(...) local ret = {} for i = 1, select("#", ...) do local arg = pp.strip(pp.dump(select(i, ...))) table.insert(ret, arg) end return table.concat(ret, "\t") end local function code(str) return string.format("```\n%s```", str) end return { name = "lua", description = "Runs arbitrary Lua code. May be enclosed in code block formatting.", usage = " <code>", visible = false, botGuildPermissions = {}, botChannelPermissions = {}, permissions = {"bot.botOwner"}, run = function(self, message, argString, args, guildSettings) if argString=="" then commandHandler.sendUsage(message.channel, guildSettings, self) return end argString = argString:gsub("```lua", ""):gsub("```", "") local lines = {} local iolines = {} local sandbox = table.copy(_G, localtable) sandbox.message = message sandbox.client = message.client sandbox.guildSettings = guildSettings sandbox.commandHandler = commandHandler sandbox.code = code sandbox.timer = timer sandbox.discordia = discordia sandbox.utils = utils sandbox.json = json sandbox.http = http sandbox.io.write = function(...) table.insert(iolines, printLine(...)) end sandbox.print = function(...) table.insert(lines, printLine(...)) end sandbox.p = function(...) table.insert(lines, prettyLine(...)) end local fn, syntaxError = load(argString, "DiscordBot", "t", sandbox) if not fn then return message:reply(code(syntaxError)) end local success, runtimeError = pcall(fn) if not success then return message:reply(code(runtimeError)) end lines = table.concat(lines, "\n") iolines = table.concat(iolines) if #lines>2000 then message:reply{ content = "`print()` output too long, content attached as `print.txt`.", file = {"print.txt", lines} } elseif lines~="" then message:reply(lines) end if #iolines>2000 then message:reply{ content = "`io.write()` output too long, content attached as `iowrite.txt`.", file = {"iowrite.txt", iolines} } elseif iolines~="" then message:reply(iolines) end end, onEnable = function(self, message, guildSettings) return true end, onDisable = function(self, message, guildSettings) return true end, subcommands = {} }
vim.cmd [[cab Wq wq]] vim.cmd [[cab Q! q!]] vim.cmd [[cab Q!! q!]] vim.cmd [[cab q!! q!]] vim.cmd [[cab WQ up]] vim.cmd [[cab Q1 q!]] vim.cmd [[cab W1 updatee!]] vim.cmd [[cab W! update!]] vim.cmd [[cab w; update!]] vim.cmd [[cab W; update!]] vim.cmd [[cab W update]] vim.cmd [[cab Q q]] vim.cmd [[cab w@ update!]] vim.cmd [[cab W@ update!]] vim.cmd [[cab Bd bd!]] vim.cmd [[cab BD bd!]] vim.cmd [[cab bD bd!]] vim.cmd [[cab Bd bd!]] vim.cmd [[cab bd bd!]]
-- crossing -- by mewmew -- local event = require 'utils.event' local math_random = math.random local insert = table.insert local map_functions = require "maps.tools.map_functions" local simplex_noise = require 'utils.simplex_noise' local simplex_noise = simplex_noise.d2 local function on_player_joined_game(event) local player = game.players[event.player_index] if player.online_time < 1 then player.insert({name = "pistol", count = 1}) player.insert({name = "raw-fish", count = 1}) player.insert({name = "firearm-magazine", count = 16}) player.insert({name = "iron-plate", count = 32}) pos = player.character.surface.find_non_colliding_position("player",{0, -40}, 50, 1) game.forces.player.set_spawn_position(pos, player.character.surface) player.teleport(pos, player.character.surface) if global.show_floating_killscore then global.show_floating_killscore[player.name] = false end end end local function on_chunk_generated(event) local surface = game.surfaces[1] local seed = game.surfaces[1].map_gen_settings.seed if event.surface.name ~= surface.name then return end local left_top = event.area.left_top local entities = surface.find_entities_filtered({area = event.area, name = {"iron-ore", "copper-ore", "coal", "stone"}}) for _, entity in pairs(entities) do entity.destroy() end if left_top.x > 128 then if not global.spawn_ores_generated then map_functions.draw_noise_tile_circle({x = 0, y = 0}, "water", surface, 24) global.spawn_ores_generated = true end end if left_top.x < 64 and left_top.x > -64 then for x = 0, 31, 1 do for y = 0, 31, 1 do local pos = {x = left_top.x + x, y = left_top.y + y} local noise_1 = simplex_noise(pos.x * 0.02, pos.y * 0.02, seed) if pos.x > -80 + (noise_1 * 8) and pos.x < 80 + (noise_1 * 8) then local tile = surface.get_tile(pos) if tile.name == "water" or tile.name == "deepwater" then surface.set_tiles({{name = "grass-2", position = pos}}) end end if pos.x > -14 + (noise_1 * 8) and pos.x < 14 + (noise_1 * 8) then if pos.y > 0 then surface.create_entity({name = "stone", position = pos, amount = 1 + pos.y * 0.5}) else surface.create_entity({name = "coal", position = pos, amount = 1 + pos.y * -1 * 0.5}) end end end end end if left_top.y < 64 and left_top.y > -64 then for x = 0, 31, 1 do for y = 0, 31, 1 do local pos = {x = left_top.x + x, y = left_top.y + y} local noise_1 = simplex_noise(pos.x * 0.015, pos.y * 0.015, seed) if pos.y > -80 + (noise_1 * 8) and pos.y < 80 + (noise_1 * 8) then local tile = surface.get_tile(pos) if tile.name == "water" or tile.name == "deepwater" then surface.set_tiles({{name = "grass-2", position = pos}}) end end if pos.y > -14 + (noise_1 * 8) and pos.y < 14 + (noise_1 * 8) then if pos.x > 0 then surface.create_entity({name = "copper-ore", position = pos, amount = 1 + pos.x * 0.5}) else surface.create_entity({name = "iron-ore", position = pos, amount = 1 + pos.x * -1 * 0.5}) end end end end end end local biter_building_inhabitants = { [1] = {{"small-biter",8,16}}, [2] = {{"small-biter",12,24}}, [3] = {{"small-biter",8,16},{"medium-biter",1,2}}, [4] = {{"small-biter",4,8},{"medium-biter",4,8}}, [5] = {{"small-biter",3,5},{"medium-biter",8,12}}, [6] = {{"small-biter",3,5},{"medium-biter",5,7},{"big-biter",1,2}}, [7] = {{"medium-biter",6,8},{"big-biter",3,5}}, [8] = {{"medium-biter",2,4},{"big-biter",6,8}}, [9] = {{"medium-biter",2,3},{"big-biter",7,9}}, [10] = {{"big-biter",4,8},{"behemoth-biter",3,4}} } local function on_entity_died(event) if event.entity.name == "biter-spawner" or event.entity.name == "spitter-spawner" then local e = math.ceil(game.forces.enemy.evolution_factor*10, 0) for _, t in pairs (biter_building_inhabitants[e]) do for x = 1, math.random(t[2],t[3]), 1 do local p = event.entity.surface.find_non_colliding_position(t[1] , event.entity.position, 6, 1) if p then event.entity.surface.create_entity {name=t[1], position=p} end end end end end event.add(defines.events.on_chunk_generated, on_chunk_generated) event.add(defines.events.on_player_joined_game, on_player_joined_game) event.add(defines.events.on_entity_died, on_entity_died)
ys = ys or {} slot1 = class("BattleBuffDiva", ys.Battle.BattleBuffEffect) ys.Battle.BattleBuffDiva = slot1 slot1.__name = "BattleBuffDiva" slot1.Ctor = function (slot0, slot1) slot0.super.Ctor(slot0, slot1) end slot1.onInitGame = function (slot0, slot1, slot2) playBGM(slot0.Battle.BattleDataProxy.GetInstance():GetBGMList()[math.random(#slot0.Battle.BattleDataProxy.GetInstance().GetBGMList())]) end slot1.onTrigger = function (slot0) playBGM(slot0.Battle.BattleDataProxy.GetInstance():GetBGMList(true)[math.random(#slot0.Battle.BattleDataProxy.GetInstance().GetBGMList(true))]) end return
local E, C, L, ET, _ = select(2, shCore()):unpack() if C.main.restyleUI ~= true then return end local _G = _G local unpack, select = unpack, select local CreateFrame = CreateFrame local hooksecurefunc = hooksecurefunc local GetItemInfo = GetItemInfo local GetItemQualityColor = GetItemQualityColor local GetTradePlayerItemLink = GetTradePlayerItemLink local GetTradeTargetItemLink = GetTradeTargetItemLink local function LoadSkin() local TradeFrame = _G['TradeFrame'] TradeFrame:StripLayout(true) TradeFrame:Width(400) TradeFrame:SetLayout() TradeFrame.bg:SetAnchor('TOPLEFT', 10, -11) TradeFrame.bg:SetAnchor('BOTTOMRIGHT', -28, 48) TradeFrame:SetShadow() TradeFrame.shadow:SetAnchor('TOPLEFT', 6, -9) TradeFrame.shadow:SetAnchor('BOTTOMRIGHT', -24, 44) TradeFrameCloseButton:CloseTemplate() ET:HandleEditBox(TradePlayerInputMoneyFrameGold) ET:HandleEditBox(TradePlayerInputMoneyFrameSilver) ET:HandleEditBox(TradePlayerInputMoneyFrameCopper) ET:HandleButton(TradeFrameTradeButton) TradeFrameTradeButton:SetAnchor('BOTTOMRIGHT', -120, 55) ET:HandleButton(TradeFrameCancelButton) TradePlayerItem1:SetAnchor('TOPLEFT', 24, -104) for _, frame in pairs({'TradePlayerItem', 'TradeRecipientItem'}) do for i = 1, MAX_TRADE_ITEMS do local item = _G[frame..i] local button = _G[frame..i..'ItemButton'] local icon = _G[frame..i..'ItemButtonIconTexture'] local name = _G[frame..i..'NameFrame'] item:StripLayout() button:StripLayout() button:SetLayout() --button:StyleButton() --[[button.bg = CreateFrame('frame', nil, button) button.bg:SetTemplate('Default') button.bg:SetAnchor('TOPLEFT', button, 'TOPRIGHT', 4, 0) button.bg:SetAnchor('BOTTOMRIGHT', name, 'BOTTOMRIGHT', -5, 14) button.bg:SetFrameLevel(button:GetFrameLevel() - 4)--]] icon:SetTexCoord(unpack(E.TexCoords)) icon:SetInside() end end hooksecurefunc('TradeFrame_UpdatePlayerItem', function(id) local link = GetTradePlayerItemLink(id) local item = _G['TradePlayerItem'..id..'ItemButton'] local name = _G['TradePlayerItem'..id..'Name'] if link then local quality = select(3, GetItemInfo(link)) if quality then item:SetBackdropBorderColor(GetItemQualityColor(quality)) name:SetTextColor(GetItemQualityColor(quality)) else item:SetBackdropBorderColor(unpack(A.borderColor)) name:SetTextColor(1, 1, 1) end else item:SetBackdropBorderColor(unpack(A.borderColor)) end end) hooksecurefunc('TradeFrame_UpdateTargetItem', function(id) local link = GetTradeTargetItemLink(id) local item = _G['TradeRecipientItem'..id..'ItemButton'] local name = _G['TradeRecipientItem'..id..'Name'] if link then local quality = select(3, GetItemInfo(link)) if quality then item:SetBackdropBorderColor(GetItemQualityColor(quality)) name:SetTextColor(GetItemQualityColor(quality)) else item:SetBackdropBorderColor(unpack(A.borderColor)) name:SetTextColor(1, 1, 1) end else item:SetBackdropBorderColor(unpack(A.borderColor)) end end) local highlights = { 'TradeHighlightPlayerTop', 'TradeHighlightPlayerBottom', 'TradeHighlightPlayerMiddle', 'TradeHighlightPlayerEnchantTop', 'TradeHighlightPlayerEnchantBottom', 'TradeHighlightPlayerEnchantMiddle', 'TradeHighlightRecipientTop', 'TradeHighlightRecipientBottom', 'TradeHighlightRecipientMiddle', 'TradeHighlightRecipientEnchantTop', 'TradeHighlightRecipientEnchantBottom', 'TradeHighlightRecipientEnchantMiddle', } for i = 1, #highlights do _G[highlights[i]]:SetTexture(0, 1, 0, 0.2) end end table.insert(ET['SohighUI'], LoadSkin)
local playsession = { {"matam666", {414}}, {"Jaskarox", {703}}, {"chrisisthebe", {721}}, {"aledeludx", {25937}}, {"wot_tak", {39306}}, {"Hoob", {19465}}, {"nik12111", {1023}} } return playsession
object_building_kashyyyk_kash_dead_forest_cliff_corner = object_building_kashyyyk_shared_kash_dead_forest_cliff_corner:new { } ObjectTemplates:addTemplate(object_building_kashyyyk_kash_dead_forest_cliff_corner, "object/building/kashyyyk/kash_dead_forest_cliff_corner.iff")
local platform = require 'bee.platform' local fs = require 'bee.filesystem' local lt = require 'ltest' local shell = require 'shell' local C local D if platform.OS == 'Windows' then C = 'c:/' D = 'd:/' else C = '/mnt/c/' D = '/mnt/d/' end local function create_file(filename, content) if type(filename) == "userdata" then filename = filename:string() end os.remove(filename) local f = assert(io.open(filename, 'wb')) if content ~= nil then f:write(content) end f:close() end local function read_file(filename) if type(filename) == "userdata" then filename = filename:string() end local f = assert(io.open(filename, 'rb')) local content = f:read 'a' f:close() return content end local function assertPathEquals(p1, p2) lt.assertEquals(fs.path(p1):lexically_normal():string(), fs.path(p2):lexically_normal():string()) end local test_fs = lt.test "filesystem" local ALLOW_WRITE = 0x92 local USER_WRITE = 0x80 function test_fs:test_setup() if fs.exists(fs.path('temp1.txt')) then fs.permissions(fs.path('temp1.txt'), ALLOW_WRITE) os.remove('temp1.txt') end if fs.exists(fs.path('temp2.txt')) then fs.permissions(fs.path('temp2.txt'), ALLOW_WRITE) os.remove('temp2.txt') end end function test_fs:test_path() local path = fs.path('') lt.assertEquals(type(path) == 'userdata' or type(path) == 'table', true) end function test_fs:test_string() lt.assertEquals(fs.path('a/b'):string(), 'a/b') if platform.OS == 'Windows' then lt.assertEquals(fs.path('a\\b'):string(), 'a/b') end end function test_fs:test_filename() local function get_filename(path) return fs.path(path):filename():string() end lt.assertEquals(get_filename('a/b'), 'b') lt.assertEquals(get_filename('a/b/'), '') if platform.OS == 'Windows' then lt.assertEquals(get_filename('a\\b'), 'b') lt.assertEquals(get_filename('a\\b\\'), '') end end function test_fs:test_parent_path() local function get_parent_path(path) return fs.path(path):parent_path():string() end lt.assertEquals(get_parent_path('a/b/c'), 'a/b') lt.assertEquals(get_parent_path('a/b/'), 'a/b') if platform.OS == 'Windows' then lt.assertEquals(get_parent_path('a\\b\\c'), 'a/b') lt.assertEquals(get_parent_path('a\\b\\'), 'a/b') end end function test_fs:test_stem() local function get_stem(path) return fs.path(path):stem():string() end lt.assertEquals(get_stem('a/b/c.ext'), 'c') lt.assertEquals(get_stem('a/b/c'), 'c') lt.assertEquals(get_stem('a/b/.ext'), '.ext') if platform.OS == 'Windows' then lt.assertEquals(get_stem('a\\b\\c.ext'), 'c') lt.assertEquals(get_stem('a\\b\\c'), 'c') lt.assertEquals(get_stem('a\\b\\.ext'), '.ext') end end function test_fs:test_extension() local function get_extension(path) return fs.path(path):extension():string() end lt.assertEquals(get_extension('a/b/c.ext'), '.ext') lt.assertEquals(get_extension('a/b/c'), '') lt.assertEquals(get_extension('a/b/.ext'), '') if platform.OS == 'Windows' then lt.assertEquals(get_extension('a\\b\\c.ext'), '.ext') lt.assertEquals(get_extension('a\\b\\c'), '') lt.assertEquals(get_extension('a\\b\\.ext'), '') end lt.assertEquals(get_extension('a/b/c.'), '.') lt.assertEquals(get_extension('a/b/c..'), '.') lt.assertEquals(get_extension('a/b/c..lua'), '.lua') end function test_fs:test_absolute_relative() local function assertIsAbsolute(path) lt.assertEquals(fs.path(path):is_absolute(), true) lt.assertEquals(fs.path(path):is_relative(), false) end local function assertIsRelative(path) lt.assertEquals(fs.path(path):is_absolute(), false) lt.assertEquals(fs.path(path):is_relative(), true) end assertIsAbsolute(C..'a/b') if not (platform.OS == 'Windows' and platform.CRT == 'libstdc++') then -- TODO: mingw bug assertIsAbsolute('//a/b') end assertIsRelative('./a/b') assertIsRelative('a/b') assertIsRelative('../a/b') if platform.OS == 'Windows' then assertIsRelative('/a/b') else assertIsAbsolute('/a/b') end end function test_fs:test_remove_filename() local function remove_filename(path) return fs.path(path):remove_filename():string() end lt.assertEquals(remove_filename('a/b/c'), 'a/b/') lt.assertEquals(remove_filename('a/b/'), 'a/b/') if platform.OS == 'Windows' then lt.assertEquals(remove_filename('a\\b\\c'), 'a/b/') lt.assertEquals(remove_filename('a\\b\\'), 'a/b/') end end function test_fs:test_replace_filename() local function replace_filename(path, ext) return fs.path(path):replace_filename(ext):string() end lt.assertEquals(replace_filename('a/b/c.lua', 'd.lua'), 'a/b/d.lua') lt.assertEquals(replace_filename('a/b/c', 'd.lua'), 'a/b/d.lua') lt.assertEquals(replace_filename('a/b/', 'd.lua'), 'a/b/d.lua') if platform.OS == 'Windows' then lt.assertEquals(replace_filename('a\\b\\c.lua', 'd.lua'), 'a/b/d.lua') lt.assertEquals(replace_filename('a\\b\\c', 'd.lua'), 'a/b/d.lua') lt.assertEquals(replace_filename('a\\b\\', 'd.lua'), 'a/b/d.lua') end end function test_fs:test_replace_extension() local function replace_extension(path, ext) return fs.path(path):replace_extension(ext):string() end lt.assertEquals(replace_extension('a/b/c.ext', '.lua'), 'a/b/c.lua') lt.assertEquals(replace_extension('a/b/c', '.lua'), 'a/b/c.lua') lt.assertEquals(replace_extension('a/b/.ext', '.lua'), 'a/b/.ext.lua') if platform.OS == 'Windows' then lt.assertEquals(replace_extension('a\\b\\c.ext', '.lua'), 'a/b/c.lua') lt.assertEquals(replace_extension('a\\b\\c', '.lua'), 'a/b/c.lua') lt.assertEquals(replace_extension('a\\b\\.ext', '.lua'), 'a/b/.ext.lua') end lt.assertEquals(replace_extension('a/b/c.ext', 'lua'), 'a/b/c.lua') lt.assertEquals(replace_extension('a/b/c.ext', '..lua'), 'a/b/c..lua') lt.assertEquals(replace_extension('c.ext', '.lua'), 'c.lua') end function test_fs:test_equal_extension() local function equal_extension(path, ext) return lt.assertEquals(fs.path(path):equal_extension(ext), true) end equal_extension('a/b/c.ext', '.ext') equal_extension('a/b/c.ext', 'ext') equal_extension('a/b/c', '') equal_extension('a/b/.ext', '') equal_extension('a/b/c.', '.') equal_extension('a/b/c..', '.') equal_extension('a/b/c..lua', '.lua') equal_extension('a/b/c..lua', 'lua') end function test_fs:test_get_permissions() local filename = 'temp.txt' create_file(filename) lt.assertEquals(fs.permissions(fs.path(filename)) & USER_WRITE, USER_WRITE) shell:add_readonly(filename) lt.assertEquals(fs.permissions(fs.path(filename)) & USER_WRITE, 0) shell:del_readonly(filename) os.remove(filename) end function test_fs:test_set_permissions() local filename = fs.path 'temp.txt' create_file(filename) lt.assertEquals(fs.permissions(filename) & USER_WRITE, USER_WRITE) fs.permissions(filename, ALLOW_WRITE, fs.perm_options.remove) lt.assertEquals(fs.permissions(filename) & USER_WRITE, 0) fs.permissions(filename, ALLOW_WRITE, fs.perm_options.add) lt.assertEquals(fs.permissions(filename) & USER_WRITE, USER_WRITE) fs.permissions(filename, 0) lt.assertEquals(fs.permissions(filename) & USER_WRITE, 0) fs.permissions(filename, ALLOW_WRITE) lt.assertEquals(fs.permissions(filename) & USER_WRITE, USER_WRITE) os.remove(filename:string()) end function test_fs:test_div() local function eq_div(A, B, C) lt.assertEquals(fs.path(A) / B, fs.path(C)) end eq_div('a', 'b', 'a/b') eq_div('a/b', 'c', 'a/b/c') eq_div('a/', 'b', 'a/b') eq_div('a', '/b', '/b') eq_div('', 'a/b', 'a/b') eq_div(C..'a', D..'b', D..'b') eq_div(C..'a/', D..'b', D..'b') if platform.OS == 'Windows' then eq_div('a/', '\\b', '/b') eq_div('a\\b', 'c', 'a/b/c') eq_div('a\\', 'b', 'a/b') eq_div(C..'a', '/b', C..'b') eq_div(C..'a/', '\\b', C..'b') else eq_div('a/b', 'c', 'a/b/c') eq_div(C..'a', '/b', '/b') eq_div(C..'a/', '/b', '/b') end end function test_fs:test_concat() local function concat(a, b, c) lt.assertEquals(fs.path(a) .. b, fs.path(c)) lt.assertEquals(fs.path(a) .. fs.path(b), fs.path(c)) end concat('a', 'b', 'ab') concat('a/b', 'c', 'a/bc') end function test_fs:test_lexically_normal() local function test(path1, path2) return lt.assertEquals(fs.path(path1):lexically_normal():string(), path2) end test("a/", "a/") test("a/b", "a/b") test("./b", "b") test("a/b/../", "a/") test('a/b/c/../../d', 'a/d') if platform.OS == 'Windows' then test("a\\", "a/") test("a\\b", "a/b") test(".\\b", "b") test("a\\b\\..\\", "a/") test('a\\b\\c\\..\\..\\d', 'a/d') end end function test_fs:test_absolute() local function eq_absolute2(path1, path2) return lt.assertEquals(fs.absolute(fs.path(path1)), fs.current_path() / path2) end local function eq_absolute1(path) return eq_absolute2(path, path) end eq_absolute1('a/') eq_absolute1('a/b') eq_absolute1('a/b/') eq_absolute2('a/b', 'a/b') eq_absolute2('./b', 'b') eq_absolute2('a/../b', 'b') eq_absolute2('a/b/../', 'a/') eq_absolute2('a/b/c/../../d', 'a/d') end function test_fs:test_relative() local function relative(a, b, c) return lt.assertEquals(fs.relative(fs.path(a), fs.path(b)):string(), c) end relative(C..'a/b/c', C..'a/b', 'c') relative(C..'a/b', C..'a/b/c', '..') relative(C..'a/b/c', C..'a', 'b/c') relative(C..'a/d/e', C..'a/b/c', '../../d/e') if platform.OS == 'Windows' then --relative(D..'a/b/c', C..'a', '') relative('a', C..'a/b/c', '') relative(C..'a/b', 'a/b/c', '') relative(C..'a\\b\\c', C..'a', 'b/c') else -- TODO --relative(D..'a/b/c', C..'a', '') --relative('a', C..'a/b/c', '') --relative(C..'a/b', 'a/b/c', '') end end function test_fs:test_eq() local function eq(A, B) return lt.assertEquals(fs.path(A), fs.path(B)) end eq('a/b', 'a/b') eq('a/./b', 'a/b') eq('a/b/../c', 'a/c') eq('a/b/../c', 'a/d/../c') if platform.OS == 'Windows' then eq('a/B', 'a/b') eq('a/b', 'a\\b') end end function test_fs:test_exists() local function is_exists(path, b) lt.assertEquals(fs.exists(fs.path(path)), b, path) end local filename = 'temp.txt' os.remove(filename) is_exists(filename, false) create_file(filename) is_exists(filename, true) is_exists(filename .. '/' .. filename, false) os.remove(filename) is_exists(filename, false) is_exists(filename .. '/' .. filename, false) end function test_fs:test_remove() local function remove_ok(path, b) lt.assertEquals(fs.exists(fs.path(path)), b) lt.assertEquals(fs.remove(fs.path(path)), b) lt.assertEquals(fs.exists(fs.path(path)), false) end local function remove_failed(path) lt.assertEquals(fs.exists(fs.path(path)), true) lt.assertError(fs.remove, fs.path(path)) lt.assertEquals(fs.exists(fs.path(path)), true) end local filename = 'temp.txt' os.remove(filename) create_file(filename) remove_ok(filename, true) remove_ok(filename, false) local filename = 'temp' fs.remove_all(fs.path(filename)) fs.create_directories(fs.path(filename)) remove_ok(filename, true) remove_ok(filename, false) local filename = 'temp/temp' fs.remove_all(fs.path(filename)) fs.create_directories(fs.path(filename)) remove_ok(filename, true) remove_ok(filename, false) local filename = 'temp' fs.remove_all(fs.path(filename)) fs.create_directories(fs.path(filename)) create_file('temp/temp.txt') remove_failed(filename) remove_ok('temp/temp.txt', true) remove_ok(filename, true) remove_ok(filename, false) end function test_fs:test_remove_all() local function remove_all(path, n) lt.assertEquals(fs.exists(fs.path(path)), n ~= 0) lt.assertEquals(fs.remove_all(fs.path(path)), n) lt.assertEquals(fs.exists(fs.path(path)), false) end local filename = 'temp.txt' os.remove(filename) create_file(filename) remove_all(filename, 1) remove_all(filename, 0) local filename = 'temp' fs.remove_all(fs.path(filename)) fs.create_directories(fs.path(filename)) remove_all(filename, 1) remove_all(filename, 0) local filename = 'temp/temp' fs.remove_all(fs.path(filename)) fs.create_directories(fs.path(filename)) remove_all(filename, 1) remove_all(filename, 0) local filename = 'temp' fs.remove_all(fs.path(filename)) fs.create_directories(fs.path(filename)) create_file('temp/temp.txt') remove_all(filename, 2) remove_all(filename, 0) end function test_fs:test_is_directory() local function is_directory(path, b) lt.assertEquals(fs.is_directory(fs.path(path)), b, path) end local filename = 'temp.txt' is_directory('.', true) create_file(filename) is_directory(filename, false) os.remove(filename) is_directory(filename, false) end function test_fs:test_is_regular_file() local function is_regular_file(path, b) lt.assertEquals(fs.is_regular_file(fs.path(path)), b, path) end local filename = 'temp.txt' is_regular_file('.', false) create_file(filename) is_regular_file(filename, true) os.remove(filename) is_regular_file(filename, false) end function test_fs:test_create_directory() local function create_directory_ok(path, cb) local fspath = fs.path(path) fs.remove_all(fspath) lt.assertEquals(fs.exists(fs.path(path)), false) lt.assertEquals(fs.create_directory(fspath), true) lt.assertEquals(fs.is_directory(fspath), true) if cb then cb() end lt.assertEquals(fs.remove(fspath), true) lt.assertEquals(fs.exists(fs.path(path)), false) end local function create_directory_failed(path) local fspath = fs.path(path) fs.remove_all(fspath) lt.assertEquals(fs.exists(fs.path(path)), false) lt.assertError(fs.create_directory, fspath) lt.assertEquals(fs.is_directory(fspath), false) lt.assertEquals(fs.exists(fs.path(path)), false) end create_directory_ok('temp', function() create_directory_ok('temp/temp') end) create_directory_failed('temp/temp') end function test_fs:test_create_directories() local function create_directories_ok(path, cb) local fspath = fs.path(path) fs.remove_all(fspath) lt.assertEquals(fs.exists(fs.path(path)), false) lt.assertEquals(fs.create_directories(fspath), true) lt.assertEquals(fs.is_directory(fspath), true) if cb then cb() end lt.assertEquals(fs.remove(fspath), true) lt.assertEquals(fs.exists(fs.path(path)), false) end create_directories_ok('temp', function() create_directories_ok('temp/temp') end) create_directories_ok('temp/temp') end function test_fs:test_rename() local function rename_ok(from, to) lt.assertEquals(fs.exists(fs.path(from)), true) fs.rename(fs.path(from), fs.path(to)) lt.assertEquals(fs.exists(fs.path(from)), false) lt.assertEquals(fs.exists(fs.path(to)), true) fs.remove_all(fs.path(to)) lt.assertEquals(fs.exists(fs.path(to)), false) end local function rename_failed(from, to) lt.assertError(fs.rename, fs.path(from), fs.path(to)) fs.remove_all(fs.path(from)) fs.remove_all(fs.path(to)) lt.assertEquals(fs.exists(fs.path(from)), false) lt.assertEquals(fs.exists(fs.path(to)), false) end os.remove('temp1.txt') os.remove('temp2.txt') create_file('temp1.txt') rename_ok('temp1.txt', 'temp2.txt') fs.remove_all(fs.path('temp1')) fs.remove_all(fs.path('temp2')) fs.create_directories(fs.path('temp1')) rename_ok('temp1', 'temp2') fs.remove_all(fs.path('temp1')) fs.remove_all(fs.path('temp2')) fs.create_directories(fs.path('temp1')) fs.create_directories(fs.path('temp2')) if platform.OS == 'Windows' then rename_failed('temp1', 'temp2') else rename_ok('temp1', 'temp2') end fs.remove_all(fs.path('temp1')) fs.remove_all(fs.path('temp2')) fs.create_directories(fs.path('temp1')) fs.create_directories(fs.path('temp2')) create_file('temp2/temp.txt') rename_failed('temp1', 'temp2') end function test_fs:test_current_path() lt.assertEquals(fs.current_path(), fs.path(shell:pwd())) end function test_fs:test_copy_file() local function copy_file_ok(from, to) lt.assertEquals(fs.exists(fs.path(from)), true) lt.assertEquals(fs.exists(fs.path(to)), true) lt.assertEquals(read_file(from), read_file(to)) fs.remove_all(fs.path(from)) fs.remove_all(fs.path(to)) lt.assertEquals(fs.exists(fs.path(from)), false) lt.assertEquals(fs.exists(fs.path(to)), false) end local function copy_file_failed(from, to) fs.remove_all(fs.path(from)) fs.remove_all(fs.path(to)) lt.assertEquals(fs.exists(fs.path(from)), false) lt.assertEquals(fs.exists(fs.path(to)), false) end for _, copy in ipairs {fs.copy_file, fs.copy} do local NONE = fs.copy_options.none local OVERWRITE = fs.copy_options.overwrite_existing if copy == fs.copy then NONE = NONE | fs.copy_options.recursive OVERWRITE = OVERWRITE | fs.copy_options.recursive end create_file('temp1.txt', tostring(os.time())) os.remove('temp2.txt') copy(fs.path 'temp1.txt', fs.path 'temp2.txt', NONE) copy_file_ok('temp1.txt', 'temp2.txt') create_file('temp1.txt', tostring(os.time())) os.remove('temp2.txt') copy(fs.path 'temp1.txt', fs.path 'temp2.txt', OVERWRITE) copy_file_ok('temp1.txt', 'temp2.txt') if fs.copy ~= copy or platform.CRT == "msvc" then create_file('temp1.txt', tostring(os.time())) create_file('temp2.txt', tostring(os.clock())) copy(fs.path 'temp1.txt', fs.path 'temp2.txt', OVERWRITE) copy_file_ok('temp1.txt', 'temp2.txt') end create_file('temp1.txt', tostring(os.time())) create_file('temp2.txt', tostring(os.clock())) lt.assertError(copy, fs.path 'temp1.txt', fs.path 'temp2.txt', NONE) copy_file_failed('temp1.txt', 'temp2.txt') end create_file('temp1.txt', tostring(os.time())) create_file('temp2.txt', tostring(os.clock())) lt.assertEquals(fs.permissions(fs.path 'temp1.txt') & USER_WRITE, USER_WRITE) fs.permissions(fs.path('temp1.txt'), ALLOW_WRITE, fs.perm_options.remove) lt.assertEquals(fs.permissions(fs.path('temp1.txt')) & USER_WRITE, 0) lt.assertEquals(fs.permissions(fs.path('temp2.txt')) & USER_WRITE, USER_WRITE) fs.copy_file(fs.path('temp1.txt'), fs.path('temp2.txt'), fs.copy_options.overwrite_existing) lt.assertEquals(fs.exists(fs.path('temp1.txt')), true) lt.assertEquals(fs.exists(fs.path('temp2.txt')), true) lt.assertEquals(fs.permissions(fs.path('temp2.txt')) & USER_WRITE, 0) lt.assertEquals(read_file('temp1.txt'), read_file('temp2.txt')) fs.permissions(fs.path('temp1.txt'), ALLOW_WRITE, fs.perm_options.add) fs.permissions(fs.path('temp2.txt'), ALLOW_WRITE, fs.perm_options.add) os.remove('temp1.txt') os.remove('temp2.txt') lt.assertEquals(fs.exists(fs.path('temp1.txt')), false) lt.assertEquals(fs.exists(fs.path('temp2.txt')), false) end function test_fs:test_copy_file_2() local from = fs.path 'temp1.txt' local to = fs.path 'temp2.txt' local FromContext = tostring(os.time()) local ToContext = tostring(os.clock()) local COPIED --copy_options::none create_file(from, FromContext) create_file(to, ToContext) lt.assertError(fs.copy_file, from, to, fs.copy_options.none) lt.assertEquals(ToContext, read_file(to)) --copy_options::skip_existing COPIED = fs.copy_file(from, to, fs.copy_options.skip_existing) lt.assertEquals(COPIED, false) lt.assertEquals(ToContext, read_file(to)) --copy_options::overwrite_existing COPIED = fs.copy_file(from, to, fs.copy_options.overwrite_existing) lt.assertEquals(COPIED, true) lt.assertEquals(FromContext, read_file(to)) --copy_options::update_existing create_file(from, FromContext) create_file(to, ToContext) COPIED = fs.copy_file(from, to, fs.copy_options.update_existing) lt.assertEquals(COPIED, false) lt.assertEquals(ToContext, read_file(to)) --TODO: gcc实现的文件写时间精度太低 --TODO: macos暂时还需要兼容低版本 --create_file(to, ToContext) --create_file(from, FromContext) --COPIED = fs.copy_file(from, to, fs.copy_options.update_existing) --lu.assertEquals(COPIED, true) --lu.assertEquals(FromContext, read_file(to)) --clean os.remove(from:string()) os.remove(to:string()) lt.assertEquals(fs.exists(from), false) lt.assertEquals(fs.exists(to), false) end function test_fs:test_pairs() local function pairs_ok(dir, flags, expected) local fsdir = fs.path(dir) local result = {} for path in fs.pairs(fsdir, flags) do result[path:string()] = true end lt.assertEquals(result, expected) end local function pairs_failed(dir) local fsdir = fs.path(dir) lt.assertError(fsdir.pairs, fsdir) end fs.create_directories(fs.path('temp')) create_file('temp/temp1.txt') create_file('temp/temp2.txt') pairs_ok('temp', nil, { ['temp/temp1.txt'] = true, ['temp/temp2.txt'] = true, }) fs.remove_all(fs.path 'temp') fs.create_directories(fs.path('temp/temp')) create_file('temp/temp1.txt') create_file('temp/temp2.txt') create_file('temp/temp/temp1.txt') create_file('temp/temp/temp2.txt') pairs_ok('temp', nil, { ['temp/temp1.txt'] = true, ['temp/temp2.txt'] = true, ['temp/temp'] = true, }) --pairs_ok('temp', "r", { -- ['temp/temp1.txt'] = true, -- ['temp/temp2.txt'] = true, -- ['temp/temp'] = true, -- ['temp/temp/temp1.txt'] = true, -- ['temp/temp/temp2.txt'] = true, --}) fs.remove_all(fs.path('temp')) pairs_failed('temp.txt') pairs_failed('temp') pairs_failed('temp.txt') create_file('temp.txt') pairs_failed('temp.txt') fs.remove_all(fs.path('temp.txt')) end function test_fs:test_copy_dir() local function each_directory(dir, result) result = result or {} for path in fs.pairs(fs.path(dir)) do if fs.is_directory(path) then each_directory(path, result) end result[path:string()] = true end return result end local function file_equals(a, b) lt.assertEquals(read_file(a), read_file(b)) end fs.create_directories(fs.path('temp/temp')) create_file('temp/temp1.txt', tostring(math.random())) create_file('temp/temp2.txt', tostring(math.random())) create_file('temp/temp/temp1.txt', tostring(math.random())) create_file('temp/temp/temp2.txt', tostring(math.random())) fs.copy(fs.path('temp'), fs.path('temp1'), fs.copy_options.overwrite_existing | fs.copy_options.recursive) lt.assertEquals(each_directory('temp'), { ['temp/temp1.txt'] = true, ['temp/temp2.txt'] = true, ['temp/temp/temp1.txt'] = true, ['temp/temp/temp2.txt'] = true, ['temp/temp'] = true, }) lt.assertEquals(each_directory('temp1'), { ['temp1/temp1.txt'] = true, ['temp1/temp2.txt'] = true, ['temp1/temp/temp1.txt'] = true, ['temp1/temp/temp2.txt'] = true, ['temp1/temp'] = true, }) file_equals('temp/temp1.txt', 'temp1/temp1.txt') file_equals('temp/temp2.txt', 'temp1/temp2.txt') file_equals('temp/temp/temp1.txt', 'temp1/temp/temp1.txt') file_equals('temp/temp/temp2.txt', 'temp1/temp/temp2.txt') fs.remove_all(fs.path('temp')) fs.remove_all(fs.path('temp1')) end function test_fs:test_last_write_time() local function last_write_time(filename) os.remove(filename) local t1 = os.time() create_file(filename) local tf = fs.last_write_time(fs.path(filename)) local t2 = os.time() os.remove(filename) lt.assertEquals(tf >= t1 - 10, true) lt.assertEquals(tf <= t2 + 10, true) end last_write_time('temp.txt') end function test_fs:test_exe_path() local function getexe() local i = 0 while arg[i] ~= nil do i = i - 1 end return fs.path(arg[i + 1]) end assertPathEquals(fs.exe_path(), fs.absolute(getexe())) end --function test_fs:test_dll_path() -- local function getdll() -- local i = 0 -- while arg[i] ~= nil do -- i = i - 1 -- end -- return fs.path(arg[i + 1]):parent_path() / ('bee.' .. __EXT__) -- end -- assertPathEquals(fs.dll_path(), fs.absolute(getdll())) --end function test_fs:test_appdata_path() if platform.OS == 'Windows' then assertPathEquals(fs.appdata_path(), os.getenv "LOCALAPPDATA") elseif platform.OS == 'Linux' then assertPathEquals(fs.appdata_path(), os.getenv "XDG_DATA_HOME" or (os.getenv "HOME" .. "/.local/share")) elseif platform.OS == 'macOS' then --assertPathEquals(fs.appdata_path(), os.getenv "HOME" .. "/Library/Caches") end end function test_fs:test_filelock_1() local lock = fs.path("temp.lock") local f1 = lt.assertIsUserdata(fs.filelock(lock)) lt.assertEquals(fs.filelock(lock), nil) f1:close() local f2 = lt.assertIsUserdata(fs.filelock(lock)) f2:close() fs.remove(fs.path("temp.lock")) end function test_fs:test_filelock_2() local process = shell:runlua([[ local fs = require 'bee.filesystem' fs.filelock(fs.path("temp.lock")) io.stdout:write 'ok' io.stdout:flush() io.read 'a' ]], { stdin = true, stdout = true, stderr = true }) lt.assertEquals(process.stdout:read(2), 'ok') lt.assertEquals(fs.filelock(fs.path("temp.lock")), nil) process.stdin:close() lt.assertEquals(process.stderr:read 'a', '') lt.assertEquals(process:wait(), 0) local f = lt.assertIsUserdata(fs.filelock(fs.path("temp.lock"))) f:close() fs.remove(fs.path("temp.lock")) end function test_fs:test_tostring() local function test(s) lt.assertEquals(fs.path(s):string(), s) lt.assertEquals(tostring(fs.path(s)), s) end test "" test "简体中文" test "繁體中文" test "日本語" test "한국어" test "العربية" test "עברית" test "🤣🤪" end function test_fs:test_canonical() local function test(a, b) lt.assertEquals(fs.canonical(fs.path(a)):string(), fs.absolute(fs.path(b)):string()) end create_file "ABCabc.txt" if platform.OS == 'Windows' then test("abcabc.txt", "ABCabc.txt") end test("ABCabc.txt", "ABCabc.txt") os.remove "ABCabc.txt" end
-- install following packages: -- yarn global add cspell vscode-langservers-extracted eslint_d rustywind @tailwindcss/language-server typescript-language-server -- brew install ripgrep fd require('impatient') local install_path = vim.fn.stdpath 'data' .. '/site/pack/packer/start/packer.nvim' if vim.fn.empty(vim.fn.glob(install_path)) > 0 then vim.fn.execute('!git clone https://github.com/wbthomason/packer.nvim ' .. install_path) end vim.cmd [[ augroup Packer autocmd! autocmd BufWritePost init.lua PackerCompile augroup end ]] require('packer').startup(function(use) use 'lewis6991/impatient.nvim' use 'wbthomason/packer.nvim' use 'numToStr/Comment.nvim' use { 'nvim-telescope/telescope.nvim', requires = { 'nvim-lua/plenary.nvim' } } use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' } use 'navarasu/onedark.nvim' use 'lukas-reineke/indent-blankline.nvim' use { 'lewis6991/gitsigns.nvim', requires = { 'nvim-lua/plenary.nvim' } } use 'nvim-treesitter/nvim-treesitter' use 'nvim-treesitter/nvim-treesitter-textobjects' use 'p00f/nvim-ts-rainbow' use 'neovim/nvim-lspconfig' use 'L3MON4D3/LuaSnip' use 'jose-elias-alvarez/null-ls.nvim' use 'unblevable/quick-scope' use 'gpanders/editorconfig.nvim' use 'tpope/vim-vinegar' use 'norcalli/nvim-colorizer.lua' use 'windwp/nvim-ts-autotag' use 'hrsh7th/nvim-cmp' use 'hrsh7th/cmp-nvim-lsp' use 'hrsh7th/cmp-buffer' use 'hrsh7th/cmp-path' use 'saadparwaiz1/cmp_luasnip' use "rafamadriz/friendly-snippets" use 'karb94/neoscroll.nvim' use { 'appelgriebsch/surround.nvim', config = function() require"surround".setup {mappings_style = "surround"} end } use { 'nvim-lualine/lualine.nvim', requires = { 'kyazdani42/nvim-web-devicons', opt = true } } use { "akinsho/bufferline.nvim", requires = { 'kyazdani42/nvim-web-devicons', opt = true } } use { "moll/vim-bbye", after = "bufferline.nvim", } end) vim.o.hlsearch = true vim.o.mouse = '' vim.o.breakindent = true vim.o.ignorecase = true vim.o.smartcase = true vim.o.updatetime = 250 vim.o.cc = '80' vim.o.smartindent = true vim.o.shiftwidth = 2 vim.o.tabstop = 2 vim.o.expandtab = true vim.o.termguicolors = true vim.o.completeopt = 'menu,menuone,preview,noselect,noinsert' vim.wo.signcolumn = 'yes' vim.wo.number = true vim.opt.showbreak = "↪ " vim.opt.hidden = true vim.opt.list = true vim.opt.wrap = true vim.opt.listchars:append("tab: ›") vim.opt.listchars:append("nbsp:␣") vim.opt.listchars:append("trail:·") vim.opt.listchars:append("extends:⟩") vim.opt.listchars:append("precedes:⟨") vim.opt.cmdheight = 1 vim.g.noswapfile = true vim.g.nobackup = true vim.g.nowritebackup = true vim.g.nowb = true vim.g.netrw_liststyle = 3 vim.g.indent_blankline_char = '┊' vim.g.indent_blankline_filetype_exclude = { 'help', 'packer' } vim.g.indent_blankline_buftype_exclude = { 'terminal', 'nofile' } vim.g.indent_blankline_show_trailing_blankline_indent = false vim.g.loaded_gzip = 0 vim.g.loaded_tar = 0 vim.g.loaded_tarPlugin = 0 vim.g.loaded_zipPlugin = 0 vim.g.loaded_2html_plugin = 0 vim.g.loaded_matchit = 0 vim.g.loaded_matchparen = 0 vim.g.loaded_spec = 0 require('onedark').setup { style = 'warmer' } vim.cmd [[colorscheme onedark]] require('lualine').setup() require('Comment').setup() require('gitsigns').setup() require("bufferline").setup() require("neoscroll").setup() require('telescope').setup { defaults = { mappings = { i = { ["<Esc>"] = require('telescope.actions').close, }, }, }, } require('telescope').load_extension 'fzf' require('nvim-treesitter.configs').setup { highlight = { enable = true, }, incremental_selection = { enable = true, keymaps = { init_selection = 'gnn', node_incremental = 'grn', scope_incremental = 'grc', node_decremental = 'grm', }, }, indent = { enable = true, }, textobjects = { select = { enable = true, lookahead = true, keymaps = { ['af'] = '@function.outer', ['if'] = '@function.inner', ['ac'] = '@class.outer', ['ic'] = '@class.inner', }, }, move = { enable = true, set_jumps = true, goto_next_start = { [']m'] = '@function.outer', [']]'] = '@class.outer', }, goto_next_end = { [']M'] = '@function.outer', [']['] = '@class.outer', }, goto_previous_start = { ['[m'] = '@function.outer', ['[['] = '@class.outer', }, goto_previous_end = { ['[M'] = '@function.outer', ['[]'] = '@class.outer', }, }, }, autotag = { enable = true, }, rainbow = { enable = true, extended_mode = true, max_file_lines = nil, }, } local lspconfig = require 'lspconfig' local on_attach = function(client, bufnr) local opts = { noremap = true, silent = true } vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>f', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts) client.resolved_capabilities.document_formatting = false end local capabilities = vim.lsp.protocol.make_client_capabilities() capabilities = require('cmp_nvim_lsp').update_capabilities(capabilities) local servers = { 'tsserver', 'html', 'cssls', 'jsonls', 'tailwindcss' } for _, lsp in ipairs(servers) do lspconfig[lsp].setup { on_attach = on_attach, capabilities = capabilities, } end require('colorizer').setup { '*'; css = { css = true; } } local luasnip = require 'luasnip' require("luasnip.loaders.from_vscode").load() local cmp = require 'cmp' cmp.setup { snippet = { expand = function(args) luasnip.lsp_expand(args.body) end, }, mapping = { ['<C-p>'] = cmp.mapping.select_prev_item(), ['<C-n>'] = cmp.mapping.select_next_item(), ['<C-d>'] = cmp.mapping.scroll_docs(-4), ['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-Space>'] = cmp.mapping.complete(), ['<C-e>'] = cmp.mapping.close(), ['<CR>'] = cmp.mapping.confirm { behavior = cmp.ConfirmBehavior.Replace, select = true, }, ['<Tab>'] = function(fallback) if cmp.visible() then cmp.select_next_item() elseif luasnip.expand_or_jumpable() then luasnip.expand_or_jump() else fallback() end end, ['<S-Tab>'] = function(fallback) if cmp.visible() then cmp.select_prev_item() elseif luasnip.jumpable(-1) then luasnip.jump(-1) else fallback() end end, }, sources = { { name = 'nvim_lsp' }, { name = 'luasnip' }, { name = 'buffer' }, { name = 'path' } }, } local null_ls = require('null-ls') null_ls.setup({ fallback_severity = vim.diagnostic.severity.INFO, sources = { null_ls.builtins.formatting.eslint_d, null_ls.builtins.formatting.rustywind, null_ls.builtins.diagnostics.eslint_d, null_ls.builtins.diagnostics.cspell, }, on_attach = function(client) if client.resolved_capabilities.document_formatting then vim.cmd([[ augroup LspFormatting autocmd! * <buffer> autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync() augroup END ]]) end end, }) local mapOpts = { noremap = true, silent = true } vim.api.nvim_set_keymap('n', '<leader>q', ':q<CR>', mapOpts) vim.api.nvim_set_keymap('n', '<leader>Q', ':q!<CR>', mapOpts) vim.api.nvim_set_keymap('n', '<leader>w', ':w<CR>', mapOpts) vim.api.nvim_set_keymap('n', '<leader>r', ':e<CR>', mapOpts) vim.api.nvim_set_keymap('n', '<C-w><Left>', '<C-w>h', mapOpts) vim.api.nvim_set_keymap('n', '<C-w><Down>', '<C-w>j', mapOpts) vim.api.nvim_set_keymap('n', '<C-w><Up>', '<C-w>k', mapOpts) vim.api.nvim_set_keymap('n', '<C-w><Right>', '<C-w>l', mapOpts) vim.api.nvim_set_keymap('n', '<C-f>', [[<cmd>lua require('telescope.builtin').git_files{ previewer = false }<CR>]], mapOpts) vim.api.nvim_set_keymap('n', '<C-s>', [[<cmd>lua require('telescope.builtin').live_grep()<CR>]], mapOpts) vim.api.nvim_set_keymap('n', '<leader>gs', [[<cmd>lua require('telescope.builtin').git_status()<CR>]], mapOpts) vim.api.nvim_set_keymap('n', '<leader>b', [[<cmd>lua require('telescope.builtin').buffers()<CR>]], mapOpts) vim.api.nvim_set_keymap('n', '<Tab>', '<cmd>BufferLineCycleNext<CR>', mapOpts) vim.api.nvim_set_keymap('n', '<S-Tab>', '<cmd>BufferLineCyclePrev<CR>', mapOpts) vim.api.nvim_set_keymap('n', '<leader>d', '<cmd>Bdelete<CR>', mapOpts)
local metric_leave = monitoring.counter("player_leave_count", "number of players that left") local metric_leave_timeout = monitoring.counter("player_leave_timeout_count", "number of players left due to timeout") minetest.register_on_leaveplayer(function(_, timed_out) metric_leave.inc() if timed_out then metric_leave_timeout.inc() end end)