content
stringlengths 5
1.05M
|
|---|
local STATECLASS = require("modules/gamestatesClass")
local TITLE = STATECLASS:set("TITLE")
local timer_flag = false
local options = {
"Start",
"Options",
"About",
"Credits",
"Exit"
}
local padding = 12
local font = fonts.jamboree_8
local showOptions = false
local cursor = 1
local continue = false
function TITLE.preload()
PRELOADER.newImage(assets.images,"titleBG","assets/images/titleScreen/title_screen_bg.png")
PRELOADER.newImage(assets.images,"titleText","assets/images/titleScreen/title_screen_text.png")
PRELOADER.newImage(assets.images,"unfinished","assets/images/etc/unfinished.png")
PRELOADER.newSource(assets.audio,"jump","assets/audio/jump.ogg")
PRELOADER.newSource(assets.audio,"die","assets/audio/die.ogg")
PRELOADER.newSource(assets.audio,"blip","assets/audio/blip.ogg")
ASSETS.preload(function()
local _bg = ANIM8.newGrid(256,128,assets.images.titleBG:getDimensions()
)
local bgSpeed = 0.3
local bgMax = 6
anim_bg = ANIM8.newAnimation(_bg('1-' .. bgMax,1),bgSpeed)
end)
end
function TITLE.load()
titleTimer = TIMER.new()
titleTimer:after(3, function()
showOptions = true
end)
end
function TITLE.update(dt)
titleTimer:update(dt)
if continue then
anim_bg:update(dt)
end
end
function TITLE.draw()
love.graphics.setColor(255,255,255,255)
anim_bg:draw(assets.images.titleBG,0,0)
love.graphics.draw(assets.images.titleText,0,0)
if showOptions == true then
love.graphics.setColor(255,255,255,255)
love.graphics.setFont(font)
for i = 1, #options do
if i == cursor then
love.graphics.setColor(255,0,0,255)
else
love.graphics.setColor(255,255,255,255)
end
love.graphics.print(options[i],
settings.gameWidth - padding - font:getWidth(options[i]),
4 + i * padding)
end
end
end
function TITLE.keypressed(key)
if showOptions == false and continue == false then
showOptions = true
else
love.audio.play(assets.audio.blip)
if key == keybindings.KEY_DOWN then
cursor = cursor + 1
if cursor > #options then
cursor = 1
end
elseif key == keybindings.KEY_UP then
cursor = cursor - 1
if cursor < 1 then
cursor = #options
end
elseif key == keybindings.KEY_ACTION or
key == keybindings.KEY_ENTER then
TITLE.cursorAction()
end
end
end
function TITLE.keyreleased(key)
end
function TITLE.cursorAction()
local actions = {
GAME_INTRO,
OPTIONS,
ABOUT,
CREDITS,
EXIT
}
if postjam then
GAMESTATES.setState(actions[cursor])
else
if cursor == #actions or cursor == 1 then
GAMESTATES.setState(actions[cursor])
else
GAMESTATES.setState(UNFINISHED)
end
end
end
function TITLE.exit()
ASSETS.setState(false)
end
return TITLE
|
local vim = vim
vim.g.bracey_refresh_on_save = 1
|
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("UnitFrames")
local UF = _UnitFrames
local oUF = RayUF or oUF
function UF:Construct_ArenaFrame(frame, unit)
local unitGroup = gsub(unit, "%d", "")
frame.mouseovers = {}
frame.UNIT_WIDTH = self.db.units[unitGroup].width
frame.UNIT_HEIGHT = self.db.units[unitGroup].height
frame.POWER_HEIGHT = ceil(frame.UNIT_HEIGHT * self.db.powerheight)
frame:Size(frame.UNIT_WIDTH, frame.UNIT_HEIGHT)
frame.Health = self:Construct_HealthBar(frame, true, true)
frame.Power = self:Construct_PowerBar(frame, true, true)
frame.Power:Point("BOTTOMLEFT", frame, "BOTTOMLEFT")
frame.Power:Point("BOTTOMRIGHT", frame, "BOTTOMRIGHT")
frame.Power:Height(frame.POWER_HEIGHT)
frame.Health:Point("TOPLEFT", frame, "TOPLEFT")
frame.Health:Point("BOTTOMRIGHT", frame.Power, "TOPRIGHT", 0, 1)
frame.Name = self:Construct_NameText(frame)
frame.Mouseover = self:Construct_Highlight(frame)
frame.RaidTargetIndicator = self:Construct_RaidIcon(frame)
self:EnableHealPredictionAndAbsorb(frame)
frame.Health.value:Point("TOPRIGHT", frame.Health, "TOPRIGHT", - 8, - 2)
frame.Power.value:Point("BOTTOMRIGHT", frame.Health, "BOTTOMRIGHT", - 8, 2)
frame.Name:ClearAllPoints()
frame.Name:Point("BOTTOMLEFT", frame.Health, "BOTTOMLEFT", 8, 3)
frame.Name:SetJustifyH("LEFT")
if self.db.healthColorClass then
frame:Tag(frame.Name, "[RayUF:name] [RayUF:info]")
else
frame:Tag(frame.Name, "[RayUF:color][RayUF:name] [RayUF:info]")
end
if self.db.showPortrait then
frame.Portrait = self:Construct_Portrait(frame)
end
if self.db.castBar then
local castbar = self:Construct_CastBar(frame)
castbar:ClearAllPoints()
castbar:SetAllPoints(frame)
castbar.Iconbg:ClearAllPoints()
castbar.Iconbg:Point("RIGHT", frame, "LEFT", - 2, 1)
castbar.Text:ClearAllPoints()
castbar.Text:Point("LEFT", frame.Health, "LEFT", 2, 0)
castbar.Time:ClearAllPoints()
castbar.Time:Point("RIGHT", frame.Health, "RIGHT", - 2, 0)
frame.Castbar = castbar
end
frame.Debuffs = self:Construct_Debuffs(frame)
frame.Debuffs["growth-x"] = "RIGHT"
frame.Debuffs["growth-y"] = "UP"
frame.Debuffs.initialAnchor = "BOTTOMLEFT"
frame.Debuffs.onlyShowPlayer = true
frame.Debuffs:Point("BOTTOMLEFT", frame, "TOPLEFT", 1, 2)
if not frame.prepFrame then
frame.prepFrame = CreateFrame("Frame", frame:GetName().."PrepFrame", R.UIParent)
frame.prepFrame:SetFrameStrata("BACKGROUND")
frame.prepFrame:SetAllPoints(frame)
frame.prepFrame:SetScript("OnEvent", UF.UpdatePrep)
frame.prepFrame:RegisterEvent("PLAYER_ENTERING_WORLD")
frame.prepFrame:RegisterEvent("ARENA_OPPONENT_UPDATE")
frame.prepFrame:RegisterEvent("UNIT_NAME_UPDATE")
frame.prepFrame:RegisterEvent("ARENA_PREP_OPPONENT_SPECIALIZATIONS")
frame.prepFrame.Health = CreateFrame("StatusBar", nil, frame.prepFrame)
frame.prepFrame.Health:SetStatusBarTexture(R["media"].normal)
frame.prepFrame.Health:SetAllPoints()
frame.prepFrame.Health:CreateShadow("Background")
frame.prepFrame.Icon = frame.prepFrame:CreateTexture(nil, "OVERLAY")
frame.prepFrame.Icon.bg = CreateFrame("Frame", nil, frame.prepFrame)
frame.prepFrame.Icon.bg:SetHeight(frame.UNIT_HEIGHT)
frame.prepFrame.Icon.bg:SetWidth(frame.UNIT_HEIGHT)
frame.prepFrame.Icon.bg:SetPoint("LEFT", frame.prepFrame, "RIGHT", 5, 0)
frame.prepFrame.Icon.bg:CreateShadow("Background")
frame.prepFrame.Icon:SetParent(frame.prepFrame.Icon.bg)
frame.prepFrame.Icon:SetTexCoord(.08, .92, .08, .92)
frame.prepFrame.Icon:SetAllPoints(frame.prepFrame.Icon.bg)
frame.prepFrame.SpecClass = frame.prepFrame.Health:CreateFontString(nil, "OVERLAY")
frame.prepFrame.SpecClass:SetPoint("CENTER")
frame.prepFrame.SpecClass:SetFont(R["media"].font, 12, R["media"].fontflag)
end
local specIcon = CreateFrame("Frame", nil, frame)
specIcon:SetHeight(frame.UNIT_HEIGHT)
specIcon:SetWidth(frame.UNIT_HEIGHT)
specIcon:SetPoint("LEFT", frame, "RIGHT", 5, 0)
specIcon:CreateShadow("Background")
frame.PVPSpecIcon = specIcon
local trinkets = CreateFrame("Frame", nil, frame)
trinkets:SetHeight(frame.UNIT_HEIGHT)
trinkets:SetWidth(frame.UNIT_HEIGHT)
trinkets:SetPoint("LEFT", specIcon, "RIGHT", 5, 0)
trinkets:CreateShadow("Background")
trinkets.shadow:SetFrameStrata("BACKGROUND")
trinkets.trinketUseAnnounce = true
trinkets.trinketUpAnnounce = true
frame.Trinket = trinkets
end
|
---------------------------------------------------
------- class Mover
-- constructor
Mover = class(
function(this,_m,_x,_y)
this.loc = of.Vec2f(_x,_y)
this.vel = of.Vec2f(0,0)
this.acc = of.Vec2f(0,0)
this.mass = _m
end
)
function Mover:applyForce(force)
f = of.Vec2f()
f = force / self.mass
self.acc = self.acc + f
end
function Mover:update()
self.vel = self.vel + self.acc
self.loc = self.loc + self.vel
self.acc = self.acc * 0
end
function Mover:draw()
of.setColor(40,40,255)
of.noFill()
of.setLineWidth(2)
of.drawCircle(self.loc.x,self.loc.y,self.mass*24)
of.setColor(32, 0, 255,100)
of.fill()
of.drawCircle(self.loc.x,self.loc.y,self.mass*24)
end
function Mover:attract(m)
f = of.Vec2f()
f = self.loc - m.loc
dist = f:length()
dist = of.clamp(dist,5.0,25.0)
f:normalize()
strength = of.Vec2f()
strength = (g * self.mass * m.mass) / (dist * dist)
f = f * strength
return f
end
---------------------------------------------------
------- end class Mover
|
function Chatbox:ChatboxGetPlayerIcon(player, text, team_chat)
return { icon = 'fa-shield-alt', size = 14, margin = 8, is_data = true }
end
function Chatbox:ChatboxGetPlayerColor(player, text, team_chat)
return _team.GetColor(player:Team()) or Color(255, 255, 255)
end
function Chatbox:ChatboxGetMessageColor(player, text, team_chat)
return Color(255, 255, 255)
end
function Chatbox:PlayerCanHear(player, message_data)
if player == message_data.sender then
return true
end
end
|
local PLUGIN = PLUGIN
---------------------------------
--- BUYER QUEST
--- COLLECT ONE ARTIFACT FOR SOMEONE
--- THE ITEM HAS TO BE COLLECTED WILL BE RANDOMIZED IN randomItem.
local QUEST = {}
QUEST.uniqueID = "art"
QUEST.name = "Заказ от важной шишки"
QUEST.desc = "Достань мне %s артефакт %s для важного клиента, плачу 2.5 тысячи. Только быстрее." -- If you don't know how it's working, Just check in sh_advhandler.lua in dialogue.
QUEST.quickRewards = {
currency = 2500,
items = {}
}
QUEST.randomItem = { --
{ uid = "battery", min = 1, max = 1 },
{ uid = "eye", min = 1, max = 1 },
{ uid = "jellyfish", min = 1, max = 1 },
{ uid = "meatchunk", min = 1, max = 1 },
}
function QUEST:GenerateData( player )
local tbl = {}
for i = 0, 0 do
local idat = table.Random( self.randomItem )
tbl[ idat.uid ] = math.random( idat.min, idat.max )
end
return tbl
end
function QUEST:CanComplete( player, data )
for uid, num in pairs( data ) do
if !player:getChar():getInv():hasItem( uid ) then
return false
end
end
return true
end
function QUEST:RemoveQuestItem( player, data )
for uid, num in pairs( data ) do
player:getChar():getInv():remove(player:getChar():getInv():hasItem( uid ):getID(), false, false)
end
end
function QUEST:PostReward( player, data )
return true
end
PLUGIN:RegisterQuest( QUEST.uniqueID, QUEST )
---------------------------------
--- HOENYA HIDEOUT QUEST
--- COLELCT ONE ITEM FOR SOMEONE
--- THE ITEM HAS TO BE COLLECTED WILL BE RANDOMIZED IN randomItem.
local QUEST = {}
QUEST.uniqueID = "honeya"
QUEST.name = "Honeya Hideout's Problem"
QUEST.desc = "Get %s of %s for Honeya Hideout." -- If you don't know how it's working, Just check in sh_advhandler.lua in dialogue.
QUEST.quickRewards = {
currency = 100,
items = {
{ uid = "kolb", amount = 1, data = {} },
}
}
QUEST.randomItem = { --
{ uid = "kolb", min = 1, max = 1 },
}
function QUEST:GenerateData( player )
local tbl = {}
for i = 0, 0 do
local idat = table.Random( self.randomItem )
tbl[ idat.uid ] = math.random( idat.min, idat.max )
print( 'inserted '.. idat.uid )
end
return tbl
end
function QUEST:CanComplete( player, data )
for uid, num in pairs( data ) do
if !player:getChar():getInv():hasItem( uid ) then
print( Format( "lack of %s of %s", num, uid ) )
return false
end
end
return true
end
function QUEST:RemoveQuestItem( player, data )
for uid, num in pairs( data ) do
player:getChar():getInv():remove(player:getChar():getInv():hasItem( uid ):getID(), false, false)
end
end
function QUEST:PostReward( player, data )
print( 'PostReward')
return true
end
PLUGIN:RegisterQuest( QUEST.uniqueID, QUEST )
local QUEST = {}
QUEST.uniqueID = "gathering_wood"
QUEST.name = "Добыть дрова для корчмаря"
QUEST.desc = "Достань мне %s артефакт %s для важного клиента, плачу 2.5 тысячи. Только быстрее." -- If you don't know how it's working, Just check in sh_advhandler.lua in dialogue.
QUEST.quickRewards = {
currency = 10,
items = {}
}
QUEST.randomItem = { --
{ uid = "wood", min = 10, max = 10 },
}
function QUEST:GenerateData( player )
local tbl = {}
for i = 0, 0 do
local idat = table.Random( self.randomItem )
tbl[ idat.uid ] = math.random( idat.min, idat.max )
end
return tbl
end
function QUEST:CanComplete( player, data )
for uid, num in pairs( data ) do
if !player:getChar():getInv():hasItem( uid ) then
return false
end
end
return true
end
function QUEST:RemoveQuestItem( player, data )
for uid, num in pairs( data ) do
player:getChar():getInv():remove(player:getChar():getInv():hasItem( uid ):getID(), false, false)
end
end
function QUEST:PostReward( player, data )
return true
end
PLUGIN:RegisterQuest( QUEST.uniqueID, QUEST )
|
Mods = {
types = {
[0] = { Name = "Spoiler" }, -- VMT_SPOILER
[1] = { Name = "Front Bumper" }, -- VMT_BUMPER_F
[2] = { Name = "Rear Bumper" }, -- VMT_BUMPER_R
[3] = { Name = "Side Skirt" }, -- VMT_SKIRT
[4] = { Name = "Exhaust" }, -- VMT_EXHAUST
[5] = { Name = "Chassis" }, -- VMT_CHASSIS
[6] = { Name = "Grill" }, -- VMT_GRILL
[7] = { Name = "Hood" }, -- VMT_BONNET
[8] = { Name = "Fender" }, -- VMT_WING_L
[9] = { Name = "Fender 2" }, -- VMT_WING_R
[10] = { Name = "Roof" }, -- VMT_ROOF
[11] = { Name = "Engine", Hidden = true }, -- VMT_ENGINE
[12] = { Name = "Brakes", Hidden = true }, -- VMT_BRAKES
[13] = { Name = "Transmission", Hidden = true }, -- VMT_GEARBOX
[14] = { Name = "Horn", OnChange = function(vehicle, value)
Citizen.CreateThread(function()
Mods.horn = value
Citizen.Wait(20)
local startTime = GetGameTimer()
while GetGameTimer() - startTime < 1200 and Mods.horn == value do
SoundVehicleHornThisFrame(vehicle)
Citizen.Wait(0)
end
end)
end }, -- VMT_HORN
[15] = { Name = "Suspension" }, -- VMT_SUSPENSION
[16] = { Name = "Armor", Hidden = true }, -- VMT_ARMOUR
[17] = { Name = "Nitrous", Hidden = true }, -- VMT_NITROUS
[18] = { Name = "Turbo", Hidden = true }, -- VMT_TURBO
[19] = { Name = "Subwoofer" }, -- VMT_SUBWOOFER
[20] = { Name = "Tire Smoke" }, -- VMT_TYRE_SMOKE
[21] = { Name = "Hydraulics" }, -- VMT_HYDRAULICS
[22] = { Name = "Xenon Lights" }, -- VMT_XENON_LIGHTS
[23] = { Name = "Wheels" }, -- VMT_WHEELS
[24] = { Name = "Wheels 2" }, -- VMT_WHEELS_REAR_OR_HYDRAULICS
[25] = { Name = "Plate Holder" }, -- VMT_PLTHOLDER
[26] = { Name = "Plate Vanity" }, -- VMT_PLTVANITY
[27] = { Name = "Interior" }, -- VMT_INTERIOR1
[28] = { Name = "Ornaments" }, -- VMT_INTERIOR2
[29] = { Name = "Dashboard" }, -- VMT_INTERIOR3
[30] = { Name = "Dial" }, -- VMT_INTERIOR4
[31] = { Name = "Door Speaker" }, -- VMT_INTERIOR5
[32] = { Name = "Seats" }, -- VMT_SEATS
[33] = { Name = "Steering Wheel" }, -- VMT_STEERING
[34] = { Name = "Shifter Leavers" }, -- VMT_KNOB
[35] = { Name = "Plaques" }, -- VMT_PLAQUE
[36] = { Name = "Speakers" }, -- VMT_ICE
[37] = { Name = "Trunk" }, -- VMT_TRUNK
[38] = { Name = "Hydraulics" }, -- VMT_HYDRO
[39] = { Name = "Engine Block" }, -- VMT_ENGINEBAY1
[40] = { Name = "Air Filter" }, -- VMT_ENGINEBAY2
[41] = { Name = "Struts" }, -- VMT_ENGINEBAY3
[42] = { Name = "Arch Cover" }, -- VMT_CHASSIS2
[43] = { Name = "Aerials" }, -- VMT_CHASSIS3
[44] = { Name = "Trim" }, -- VMT_CHASSIS4
[45] = { Name = "Tank" }, -- VMT_CHASSIS5
[46] = { Name = "Windows" }, -- VMT_DOOR_L
[47] = { Name = "Windows 2" }, -- VMT_DOOR_R
[48] = { Name = "Livery" }, -- VMT_LIVERY_MOD
[49] = { Name = "Lightbar" }, -- VMT_LIGHTBAR
},
}
--[[ Functions: Mods ]]--
function Mods:Enable(vehicle)
local defaults = {
mods = {},
}
self.defaults = {}
WaitForAccess(vehicle)
SetVehicleModKit(vehicle)
for modType, mod in pairs(self.types) do
local numMods = not mod.Hidden and GetNumVehicleMods(vehicle, modType)
if mod.Name == "Livery" then
print(numMods)
end
if numMods and numMods > 0 then
local options = {}
for modIndex = -1, numMods - 1 do
local text = modIndex == -1 and "Stock" or GetLabelText(GetModTextLabel(vehicle, modType, modIndex))
if text == "NULL" then
text = mod.Name.." "..modIndex
end
options[modIndex + 2] = {
label = text,
value = modIndex,
}
end
local currentModIndex = GetVehicleMod(vehicle, modType)
self.defaults[modType] = currentModIndex
defaults["mod-"..modType] = currentModIndex
table.insert(defaults.mods, {
name = mod.Name,
index = modType,
options = options,
})
end
end
local window = Window:Create({
type = "window",
title = "Mods",
class = "compact",
defaults = defaults,
style = {
["width"] = "40vmin",
["height"] = "90vmin",
["top"] = "8vmin",
["left"] = "2vmin",
["overflow"] = "visible !important",
},
prepend = Modding.prepend,
components = {
{
type = "q-list",
template = [[
<div>
<q-expansion-item
v-for="mod in $getModel('mods')"
:key="mod.index"
:label="mod.name"
group="mods"
dense
expand-separator
>
<q-option-group
:options="mod.options"
:value="$getModel('mod-' + mod.index)"
@input="$invoke('setMod', mod.index, $event)"
/>
</q-expansion-item>
</div>
]],
},
},
})
-- Window buttons.
window:OnClick("save", function(window)
Modding:Exit()
end)
window:OnClick("discard", function(window)
Modding:Exit(true)
end)
-- Window events.
window:AddListener("setMod", function(window, modType, modIndex)
local settings = Mods.types[modType]
if not settings or settings.Hidden then return end
WaitForAccess(vehicle)
SetVehicleMod(vehicle, modType, modIndex)
window:SetModel("mod-"..modType, modIndex)
if settings.OnChange then
settings.OnChange(vehicle, modIndex)
end
end)
-- Return the window.
return window
end
function Mods:Disable(vehicle, discard)
if discard and self.defaults then
end
self.defaults = nil
end
--[[ Functions: Modding ]]--
Modding:RegisterItem("Mod Kit", Mods)
-- type = "window",
-- title = "Paint",
-- class = "compact",
-- style = {
-- ["width"] = "40vmin",
-- ["height"] = "50vmin",
-- ["top"] = "8vmin",
-- ["left"] = "2vmin",
-- ["overflow"] = "visible !important",
-- },
-- defaults = {
-- mods = {
-- { Name = "Test 1", index = 0, options = {
-- { label = "Option 1", value = 0 },
-- { label = "Option 2", value = 1 },
-- { label = "Option 3", value = 2 },
-- } },
-- { Name = "Test 2", index = 1 },
-- { Name = "Test 3", index = 2 },
-- },
-- },
-- components = {
-- {
-- type = "q-list",
-- template = [[
-- <div>
-- <q-expansion-item
-- v-for="mod in $getModel('mods')"
-- :key="mod.Index"
-- :label="mod.Name"
-- group="mods"
-- >
-- <q-option-group
-- :options="mod.options"
-- />
-- </q-expansion-item>
-- </div>
-- ]],
-- },
-- },
|
Script.Load("lua/Combat/Player_Upgrades_Client.lua")
function PlayerUI_GetHasEnzymeCloud()
local self = Client.GetLocalPlayer()
local upgrades = self:GetPlayerUpgrades()
for i = 1, #upgrades do
local upgradeId = upgrades[i]
if upgradeId == kTechId.EnzymeCloud then
return true
end
end
return false
end
function PlayerUI_GetNextEnzymeCloudIn()
local player = Client.GetLocalPlayer()
if player then
return math.max(math.ceil((player.lastEnzymeCloud or 0) + kEnzymeCloudAbilityCooldown - Shared.GetTime()), 0)
end
return 0
end
|
function onPlayerCredentials(playerid)
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") credentials arrived")
spawnPlayer(playerid, 1200, 300, 15)
end
registerEvent("onPlayerCredentials", "onPlayerCredential")
function onPlayerConnected(playerid)
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") connecting")
end
registerEvent("onPlayerConnected", "onPlayerConnected")
function onPlayerLeft(playerid, reason)
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") left, reason: " .. reason)
end
registerEvent("onPlayerLeft", "onPlayerLeft")
function onPlayerAfk(playerid, status)
local str
if(status) then
str = "is now"
else
str = "is no longer"
end
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") " .. str .. " afk")
end
registerEvent("onPlayerAfk", "onPlayerAfk")
function onPlayerEnteredVehicle(playerid, vehicleId, seatId)
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") entered vehicle " .. vehicleId .. " on seat " .. seatId)
end
registerEvent("onPlayerEnteredVehicle", "onPlayerEnteredVehicle")
function onPlayerExitVehicle(playerid, vehicleId, seatId)
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") exited vehicle " .. vehicleId .. " on seat " .. seatId)
end
registerEvent("onPlayerExitVehicle", "onPlayerExitVehicle")
function onPlayerRequestVehicleEntry(playerid, vehicleId, seatId, carjack)
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") entering vehicle " .. vehicleId .. " on seat " .. seatId)
end
registerEvent("onPlayerRequestVehicleEntry", "onPlayerRequestVehicleEntry")
function onPlayerSwitchWeapons(playerid, weapon, ammo)
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") using weapon " .. weapon .. ", " .. ammo)
end
registerEvent("onPlayerSwitchWeapons", "onPlayerSwitchWeapons")
function onPlayerWeaponsArrived(playerid)
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") weapons arrived")
local gunTable = getPlayerWeapons(playerid)
if(gunTable == nil) then return end
for weapon, ammo in pairs(gunTable) do
print(weapon .. ", " .. ammo)
end
end
registerEvent("onPlayerWeaponsArrived", "onPlayerWeaponsArrived")
function split(s, delimiter)
local result = {};
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
table.insert(result, match);
end
return result;
end
function onPlayerChat(playerid, text)
if(string.sub(text, 1, 1) == "/") then
local params = split(text, " ")
if(params[1] == "/swat") then
setPlayerSkin(playerid, 190)
givePlayerWeapon(playerid, 15, 600)
setPlayerColor(playerid, 0x00FF00FF)
elseif(params[1] == "/v") then
if(#params ~= 2) then
sendPlayerMsg(playerid, "Usage: /v [vehicle name]", 0xFFFFFFFF)
return
end
local modelId = getVehicleModelId(string.upper(params[2]))
if(modelId == -1) then
sendPlayerMsg(playerid, "Invalid vehicle name", 0xFFFFFFFF)
return
end
local x, y, z = getPlayerPos(playerid)
local rColor = math.random(0, 170)
local carId = createVehicle(modelId, x, y, z, 0.0, 0.0, 0.0, rColor, rColor, rColor, rColor, getPlayerWorld(playerid))
sendPlayerMsg(playerid, params[2] .. " spawned with id " .. carId .. " with color " .. rColor, 0xFFFFFFFF)
else
sendPlayerMsg(playerid, "Unknown command", 0xFFFFFFFF)
end
else
sendMsgToAll(getPlayerName(playerid) .. "(" .. playerid .. "): " .. text, 0xFFFFFFFF)
end
end
registerEvent("onPlayerChat", "onPlayerChat")
function onPlayerSpawn(playerid)
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") spawned")
end
registerEvent("onPlayerSpawn", "onPlayerSpawn")
function onPlayerDeath(playerid, agentType, agentId)
print("Player " .. getPlayerName(playerid) .. "(" .. playerid .. ") died")
if(agentType == 1) then
if(isPlayerOnline(agentId)) then
print(getPlayerName(agentId) .. " killed " .. getPlayerName(playerid))
else
--The player is no longer online
end
end
end
registerEvent("onPlayerDeath", "onPlayerDeath")
function onPlayerHpChange(playerid, agentType, agentId)
--Params are the same as "onPlayerDeath" and so is its usage
end
registerEvent("onPlayerHpChange", "onPlayerHpChange")
function onPlayerArmorChange(playerid, newArmour)
if(newArmour > getPlayerArmor(playerid)) then
--Is the player using hax? Use your game logic to decide
end
end
registerEvent("onPlayerArmorChange", "onPlayerArmorChange")
function onPlayerEnterCheckPoint(playerid, checkpointId)
end
registerEvent("onPlayerEnterCheckPoint", "onPlayerEnterCheckPoint")
function onPlayerExitCheckPoint(player, checkpointId)
end
registerEvent("onPlayerExitCheckPoint", "onPlayerExitCheckPoint")
|
-- Busted tests for nvimpager
-- Busted defines these objects but luacheck doesn't know them. So we
-- redefine them and tell luacheck to ignore it.
local describe, it, assert, mock =
describe, it, assert, mock -- luacheck: ignore
-- gloabl varables to set $XDG_CONFIG_HOME and $XDG_DATA_HOME to for the
-- tests.
local tmp = os.getenv("TMPDIR") or "/tmp"
local confdir = tmp .. "/nvimpager-testsuite/no-config"
local datadir = tmp .. "/nvimpager-testsuite/no-data"
-- Run a shell command, assert it terminates with return code 0 and return its
-- output.
--
-- The assertion of the return status works even with Lua 5.1. The last byte
-- of output of the command *must not* be a decimal digit.
--
-- command: string -- the shell command to execute
-- returns: string -- the output of the command
local function run(command)
-- From Lua 5.2 on we could use io.close to retrieve the return status of
-- the process. It would return true, "exit", x where x is the status.
-- For Lua 5.1 (currently used by neovim) we have to echo the return status
-- in the shell command and extract it from the output.
-- References:
-- https://www.lua.org/manual/5.1/manual.html#pdf-io.close
-- https://www.lua.org/manual/5.1/manual.html#pdf-file:close
-- https://www.lua.org/manual/5.2/manual.html#pdf-io.close
-- https://www.lua.org/manual/5.2/manual.html#pdf-file:close
-- https://www.lua.org/manual/5.2/manual.html#pdf-os.execute
-- https://stackoverflow.com/questions/7607384
command = string.format("XDG_CONFIG_HOME=%s XDG_DATA_HOME=%s %s; echo $?",
confdir, datadir, command)
local proc = io.popen(command)
local output = proc:read('*all')
local status = {proc:close()}
-- This is *not* the return value of the command.
assert.equal(true, status[1])
-- In Lua 5.2 we could also assert this and it would be meaningful:
-- assert.equal("exit", status[2])
-- assert.equal(0, status[3])
-- For Lua 5.1 we have echoed the return status with the output. First we
-- assert the last two bytes, which is easy:
assert.equal("0\n", output:sub(-2), "command failed")
-- When the original command did not produce any output this is it.
if #output ~= 2 then
-- Otherwise we can only hope that the command did not produce a digit as
-- it's last character of output.
assert.is_nil(tonumber(output:sub(-3, -3)), "command failed")
end
-- If the assert succeeded we can remove two bytes from the end.
return output:sub(1, -3)
end
-- Read contents of a file and return them.
--
-- filename: string -- the name of the file to read
-- returns: string -- the contents of the file
local function read(filename)
local file = io.open(filename)
local contents = file:read('*all')
return contents
end
-- Freshly require the nvimpager module, optinally with mocks
--
-- api: table|nil -- a mock for the neovim api table (:help lua-api)
-- return: table -- the nvimpager module
local function load_nvimpager(api)
-- Create a local mock of the vim module that is provided by neovim.
local default_api = {
nvim_get_hl_by_id = function() return {} end,
-- These can return different types so we just default to nil.
nvim_call_function = function() end,
nvim_get_option = function() end,
}
if api == nil then
api = default_api
else
for key, value in pairs(default_api) do
if api[key] == nil then api[key] = value end
end
end
local vim = { api = api }
-- Register the api mock in the globals.
_G.vim = vim
-- Reload the nvimpager script
package.loaded["lua/nvimpager"] = nil
return require("lua/nvimpager")
end
describe("auto mode", function()
-- Auto mode only exists during the run of the bash script. At the end of
-- the bash script it has to decide if pager or cat mode is used. This
-- makes these tests a little more difficult. We have to inspect the state
-- of the bash script in some way.
-- Source the given command line in a bash script with some mocks and print
-- all set variables at the end.
--
-- command: string -- the shell command to execute
-- returns: string -- the output of the sourced command and all set
-- variables
local function bash(command)
-- Make nvim an alias with a semicolon so potential redirections in the
-- original nvim execution don't take effect. Also mock exec and trap.
local script = [[
set -e
set -u
shopt -s expand_aliases
NVIM=:
alias exec=:
alias trap=:
source ]] .. command .. "\nset"
local filename = os.tmpname()
local file = io.open(filename, "w")
file:write(script)
file:close()
local output = run("bash " .. filename)
os.remove(filename)
return output
end
it("selects cat mode for small files", function()
local output = bash('./nvimpager test/fixtures/makefile')
-- $mode might still be auto so we check the generated command line.
local args = output:match("\nargs1[^\n]*\n")
assert.truthy(args:match('--headless'))
end)
it("auto mode selects pager mode for big inputs", function()
local output = bash('./nvimpager ./README.md ./nvimpager')
-- $mode might still be auto so we check the generated command line.
local args = output:match("\nargs1[^\n]*\n")
assert.is_nil(args:match('--headless'))
end)
end)
describe("cat mode", function()
it("displays a small file with syntax highlighting to stdout", function()
local output = run("./nvimpager -c test/fixtures/makefile")
local expected = read("test/fixtures/makefile.ansi")
assert.equal(expected, output)
end)
it("reads stdin with syntax highlighting", function()
local output = run("./nvimpager -c -- " ..
"-c 'set filetype=make' " ..
"< test/fixtures/makefile")
local expected = read("test/fixtures/makefile.ansi")
assert.equal(expected, output)
end)
it("returns ansi escape sequences unchanged", function()
local output = run("./nvimpager -c < test/fixtures/makefile.ansi")
local expected = read("test/fixtures/makefile.ansi")
assert.equal(expected, output)
end)
it("highlights all files", function()
local output = run("./nvimpager -c test/fixtures/makefile " ..
"test/fixtures/help.txt ")
local expected = read("test/fixtures/makefile.ansi") ..
read("test/fixtures/help.txt.ansi")
assert.equal(expected, output)
end)
it("concatenates the same file twice", function()
local output = run("./nvimpager -c test/fixtures/makefile " ..
"test/fixtures/makefile ")
local expected = read("test/fixtures/makefile.ansi")
expected = expected .. expected
assert.equal(expected, output)
end)
it("produces no output for empty files", function()
local tmp = os.tmpname()
finally(function() os.remove(tmp) end)
-- This hangs if /dev/null is used instead.
local output = run("./nvimpager -c "..tmp)
assert.equal('', output)
end)
it("produces no output for empty stdin", function()
local output = run("./nvimpager -c </dev/null")
assert.equal('', output)
end)
it("explicit - as file argument means stdin", function()
local shell_command = "echo foo | ./nvimpager -c - test/fixtures/makefile"
local output = run("sh -c '" .. shell_command .. "'")
local expected = "\27[0mfoo\27[0m\n" ..
read("test/fixtures/makefile.ansi")
assert.equal(expected, output)
end)
it("prefers file arguments over stdin", function()
local shell_command = "echo foo | ./nvimpager -c test/fixtures/makefile"
local output = run("sh -c '" .. shell_command .. "'")
assert.equal(read("test/fixtures/makefile.ansi"), output)
end)
describe("with modeline", function()
it("highlights files even after mode line files", function()
local output = run("./nvimpager -c test/fixtures/conceal.tex " ..
"test/fixtures/makefile " ..
"--cmd \"let g:tex_flavor='latex'\"")
local expected = read("test/fixtures/conceal.tex.cole0.ansi") ..
read("test/fixtures/makefile.ansi")
assert.equal(expected, output)
end)
it("honors mode lines in later files", function()
local output = run("./nvimpager -c test/fixtures/makefile " ..
"test/fixtures/conceal.tex " ..
"--cmd \"let g:tex_flavor='latex'\"")
local expected = read("test/fixtures/makefile.ansi") ..
read("test/fixtures/conceal.tex.cole0.ansi")
assert.equal(expected, output)
end)
it("ignores mode lines in diffs", function()
local output = run("./nvimpager -c test/fixtures/diff-modeline 2>&1")
local expected = read("test/fixtures/diff-modeline.ansi")
assert.equal(expected, output)
end)
it("ignores mode lines in git diffs", function()
local output = run("test/fixtures/bin/git ./nvimpager -c " ..
"test/fixtures/diff-modeline 2>&1")
local expected = read("test/fixtures/diff-modeline.ansi")
assert.equal(expected, output)
end)
it("ignores mode lines in git log diffs #osx_pending", function()
local output = run("test/fixtures/bin/git ./nvimpager -c " ..
"test/fixtures/git-log 2>&1")
local expected = read("test/fixtures/git-log.ansi")
assert.equal(expected, output)
end)
end)
describe("conceals", function()
local function test_level(level)
local output = run("./nvimpager -c test/fixtures/help.txt " ..
"-c 'set cole="..level.."'")
local expected = read("test/fixtures/help.txt.cole"..level..".ansi")
assert.equal(expected, output)
end
it("are removed at conceallevel=2", function() test_level(2) end)
it("are hidden at conceallevel=1", function() test_level(1) end)
it("are highlighted at conceallevel=0", function() test_level(0) end)
end)
describe("conceal replacements", function()
local function test_replace(level)
local output = run("./nvimpager -c test/fixtures/conceal.tex "..
"--cmd \"let g:tex_flavor='latex'\" "..
"-c 'set cole="..level.."'")
local expected = read("test/fixtures/conceal.tex.cole"..level..".ansi")
assert.equal(expected, output)
end
it("are replaced at conceallevel=2", function() test_replace(2) end)
it("are replaced at conceallevel=1", function() test_replace(1) end)
it("are highlighted at conceallevel=0", function() test_replace(0) end)
end)
describe("listchars", function()
it("handle spaces, trailing spaces and eol with termguicolors", function()
local output = run("./nvimpager -c test/fixtures/listchars1.txt " ..
"--cmd 'se tgc list lcs+=space:_,eol:$'")
local expected = read("test/fixtures/listchars1.txt.24bit")
assert.equal(expected, output)
end)
it("handle spaces, trailing spaces and eol with 256 colors", function()
local output = run("./nvimpager -c test/fixtures/listchars1.txt " ..
"--cmd 'se list lcs+=space:_,eol:$'")
local expected = read("test/fixtures/listchars1.txt.8bit")
assert.equal(expected, output)
end)
describe("handles non breaking spaces", function()
local expected = read("test/fixtures/nbsp.ansi")
it("in utf8 files", function()
local output = run("./nvimpager -c test/fixtures/nbsp.utf8.txt " ..
"--cmd 'se list'")
assert.equal(expected, output)
end)
it("in latin1 files", function()
local output = run("./nvimpager -c test/fixtures/nbsp.latin1.txt " ..
"--cmd 'se list'")
assert.equal(expected, output)
end)
end)
end)
end)
describe("pager mode", function()
it("starts up and quits correctly", function()
run("./nvimpager -p makefile -c quit")
end)
end)
describe("cat-exec mode", function()
it("is selected when stdin is not a tty", function()
local output = run("./nvimpager < README.md")
local expected = read("README.md")
assert.equal(expected, output)
end)
it("does not highlight files", function()
local output = run("./nvimpager < test/fixtures/makefile")
local expected = read("test/fixtures/makefile") -- NOTE: no highlight
assert.equal(expected, output)
end)
end)
describe("backend:", function()
it("runtimepath doesn't include nvim's user dirs", function()
local cmd = [[RUNTIME=special-test-value nvim --clean --headless ]]..
-- We have to end the --cmd after the lua command as it will eat the next
-- lines otherwise.
[[--cmd '
set runtimepath+=.
lua require("nvimpager").stage1()' ]]..
[[--cmd '
let rtp = nvim_list_runtime_paths()
echo index(rtp, $RUNTIME) == -1
echo index(rtp, stdpath("config")) != -1
echo index(rtp, stdpath("data")."/site") != -1
echo ""
quit' 2>&1]]
local output = run(cmd)
assert.equal('0\r\n0\r\n0\r\n', output)
end)
it("plugin manifest doesn't contain nvim's value", function()
-- Nvim writes this message to stderr so we have to redirect this.
local output = run("./nvimpager -c -- README.md " ..
"-c 'echo $NVIM_RPLUGIN_MANIFEST' -c quit 2>&1")
assert.equal(datadir..'/nvimpager/rplugin.vim', output)
end)
end)
describe("lua functions", function()
local nvimpager
setup(function() nvimpager = load_nvimpager() end)
describe("split_rgb_number", function()
it("handles numbers from 0 to 16777215", function()
local r, g, b = nvimpager._testable.split_rgb_number(0x000000)
assert.equal(0, r)
assert.equal(0, g)
assert.equal(0, b)
r, g, b = nvimpager._testable.split_rgb_number(0xFFFFFF)
assert.equal(255, r)
assert.equal(255, g)
assert.equal(255, b)
end)
it("correctly splits rgb values", function()
local r, g, b = nvimpager._testable.split_rgb_number(0x55AACC)
assert.equal(0x55, r)
assert.equal(0xAA, g)
assert.equal(0xCC, b)
end)
end)
describe("group2ansi", function()
it("calls nvim_get_hl_by_id with and without termguicolors", function()
for _, termguicolors in pairs({true, false}) do
local api = {
nvim_get_hl_by_id = function() return {} end,
nvim_get_option = function() return termguicolors end,
nvim_call_function = function() return 0 end,
}
local m = mock(api)
local nvimpager = load_nvimpager(api)
nvimpager._testable.init_cat_mode()
local escape = nvimpager._testable.group2ansi(100)
assert.stub(m.nvim_get_hl_by_id).was.called_with(100, termguicolors)
assert.equal('\27[0m', escape)
end
end)
end)
describe("color2escape_24bit", function()
it("creates foreground escape sequences", function()
local e = nvimpager._testable.color2escape_24bit(0xaabbcc, true)
assert.equal('38;2;170;187;204', e)
end)
it("creates background escape sequences", function()
local e = nvimpager._testable.color2escape_24bit(0xccbbaa, false)
assert.equal('48;2;204;187;170', e)
end)
end)
describe("color2escape_8bit", function()
it("creates 8 colors foreground escaape sequences", function()
local e = nvimpager._testable.color2escape_8bit(5, true)
assert.equal('35', e)
end)
it("creates 8 colors background escaape sequences", function()
local e = nvimpager._testable.color2escape_8bit(7, false)
assert.equal('47', e)
end)
it("creates 16 colors foreground escaape sequences", function()
local e = nvimpager._testable.color2escape_8bit(5 + 8, true)
assert.equal('95', e)
end)
it("creates 16 colors background escaape sequences", function()
local e = nvimpager._testable.color2escape_8bit(7 + 8, false)
assert.equal('107', e)
end)
it("creates foreground escape sequences", function()
local e = nvimpager._testable.color2escape_8bit(0xaa, true)
assert.equal('38;5;170', e)
end)
it("creates background escape sequences", function()
local e = nvimpager._testable.color2escape_8bit(0xbb, false)
assert.equal('48;5;187', e)
end)
end)
describe("hexformat_rgb_numbers", function()
local function test(r, g, b, expected)
local actual = nvimpager._testable.hexformat_rgb_numbers(r, g, b)
assert.equal(expected, actual)
end
it("small numbers", function() test(1, 2, 3, '#010203') end)
it("big numbers", function() test(100, 200, 150, '#64c896') end)
it("0,0,0 is black", function() test(0, 0, 0, '#000000') end)
it("255,255,255 is white", function() test(255, 255, 255, '#ffffff') end)
end)
describe("split_predifined_terminal_color", function()
local function test(col, exp_r, exp_g, exp_b)
local r, g, b = nvimpager._testable.split_predifined_terminal_color(col)
assert.equal(exp_r, r)
assert.equal(exp_g, g)
assert.equal(exp_b, b)
end
it("handles 0 as black", function() test(0, 0, 0, 0) end)
it("handles 215 as white", function() test(215, 255, 255, 255) end)
it("handles 137 as something", function() test(137, 175, 215, 255) end)
end)
describe("replace_prefix", function()
it("can replace a simple prefix in a table of strings", function()
local t = nvimpager._testable.replace_prefix({"foo", "bar", "baz"},
"b", "XXX")
assert.same({"foo", "XXXar", "XXXaz"}, t)
end)
it("can replace strings with slashes", function()
local t = nvimpager._testable.replace_prefix(
{"/a/b/c", "/a/b/d", "/g/e/f"}, "/a/b", "/x/y")
assert.same({"/x/y/c", "/x/y/d", "/g/e/f"}, t)
end)
it("only replaces at the start of the items", function()
local t = nvimpager._testable.replace_prefix(
{"abc", "cab"}, "ab", "XXX")
assert.same({"XXXc", "cab"}, t)
end)
it("can replace lua pattern chars", function()
local actual = nvimpager._testable.replace_prefix(
{"a-b-c"}, "a-b", "XXX")
assert.same({"XXX-c"}, actual)
end)
end)
describe("tokenize", function()
local function test(input, expected)
local result = {}
for token, c1, c2, c3 in nvimpager._testable.tokenize(input) do
table.insert(result, {token, c1, c2, c3})
end
assert.same(expected, result)
end
it("treats empty strings as a single empty token", function()
test("", {{""}})
end)
it("simple numbers", function()
test("42", {{"42"}})
end)
it("trailing semicolons as extra empty token", function()
test("42;", {{"42"}, {""}})
end)
it("leading semicolons as extra empty token", function()
test(";42", {{""}, {"42"}})
end)
it("splits simple numbers at semicolons", function()
test("1;2", {{"1"}, {"2"}})
end)
it("recognizes special 8 bit color sequences", function()
local input = "38;5;16"
test(input, {{"foreground", "16"}})
end)
it("recognizes next token after 8 bit color sequences", function()
test("38;5;22;42", {{"foreground", "22"}, {"42"}})
end)
it("recognizes special 24 bit color sequences", function()
local input = "38;2;16;17;42"
test(input, {{"foreground", "16", "17", "42"}})
end)
it("recognizes next token after 24 bit color sequences", function()
test("48;2;101;102;103;99", {{"background", "101", "102", "103"},
{"99"}})
end)
it("two semicolon between proper tokens create an empty token", function()
test("12;;13", {{"12"}, {""}, {"13"}})
end)
-- These create one empty token less than what might be expected but that
-- is not a problem because empty token reset all attributes and that is
-- an idempotent operation.
describe("sequences of semicolons:", function()
it("one single semicolon => one empty token", function()
test(";", {{""}})
end)
it("two semicolons => two empty tokens", function()
test(";;", {{""}, {""}})
end)
end)
end)
describe("ansi parser", function()
local state
setup(function() state = nvimpager._testable.state end)
before_each(function() state:clear() end)
it("clears all attributes on 0", function()
state.foreground = "foo"
state.background = "bar"
state.strikethrough = true
state:parse("0")
for key, val in pairs(state) do
if type(val) == "string" then assert.equal("", val)
elseif type(val) == "boolean" then assert.is_false(val)
end
end
end)
describe("can parse special terminal attributes:", function()
local attrs = {[1]="bold", [3]="italic", [4]="underline", [7]="reverse",
[8]="conceal", [9]="strikethrough"}
for num, name in pairs(attrs) do
it(""..num.." is "..name, function()
state:parse(""..num) assert.is_true(state[name])
end)
end
end)
local colors = {[0]="black", [1]="red", [2]="green", [3]="yellow",
[4]="blue", [5]="magenta", [6]="cyan", [7]="lightgray"}
describe("can parse foreground colors:", function()
for num, name in pairs(colors) do
it("3"..num.." is "..name, function()
state:parse("3"..num)
assert.equal(name, state.foreground)
assert.equal(num, state.ctermfg)
end)
end
end)
describe("can parse background colors:", function()
for num, name in pairs(colors) do
it("4"..num.." is "..name, function()
state:parse("4"..num)
assert.equal(name, state.background)
assert.equal(num, state.ctermbg)
end)
end
end)
it("can parse color combinations", function()
state:parse("33;44")
assert.equal("yellow", state.foreground)
assert.equal(3, state.ctermfg)
assert.equal("blue", state.background)
assert.equal(4, state.ctermbg)
end)
it("parses sequences that partly override themself", function()
state:parse("35;3;36")
assert.equal("cyan", state.foreground)
assert.equal(6, state.ctermfg)
assert.is_true(state.italic)
end)
it("can turn off foreground colors", function()
state:parse("37;45;39")
assert.equal("", state.foreground)
assert.equal("", state.ctermfg)
assert.equal("magenta", state.background)
assert.equal(5, state.ctermbg)
end)
it("can turn off background colors", function()
state:parse("47;35;49")
assert.equal("magenta", state.foreground)
assert.equal(5, state.ctermfg)
assert.equal("", state.background)
assert.equal("", state.ctermbg)
end)
it("can turn off selected terminal attributes", function()
state:parse("3;7;23")
assert.is_false(state.italic)
assert.is_true(state.reverse)
end)
describe("parses 24 bit sequences", function()
it("parses simple 24 bit foreground colors", function()
state:parse("38;2;1;2;3")
assert.equal("#010203", state.foreground)
end)
it("parses 24 bit foreground colors", function()
state:parse("38;2;100;200;250")
assert.equal("#64c8fa", state.foreground)
end)
it("parses simple 24 bit background colors", function()
state:parse("48;2;20;30;40")
assert.equal("#141e28", state.background)
end)
end)
describe("parse 256 colors", function()
it("parses pallet terminal colors (fg)", function()
state:parse("38;5;4")
assert.equal("blue", state.foreground)
assert.equal(4, state.ctermfg)
end)
it("parses pallet terminal colors (bg)", function()
state:parse("48;5;5")
assert.equal("magenta", state.background)
assert.equal(5, state.ctermbg)
end)
it("parses high colors (fg)", function()
state:parse("38;5;10")
assert.equal("lightgreen", state.foreground)
assert.equal(10, state.ctermfg)
end)
it("parses high colors (bg)", function()
state:parse("48;5;11")
assert.equal("lightyellow", state.background)
assert.equal(11, state.ctermbg)
end)
it("parses color cube colors (fg)", function()
state:parse("38;5;17")
assert.equal("#00005f", state.foreground)
assert.equal(17, state.ctermfg)
end)
it("parses color cube colors (bg)", function()
state:parse("48;5;230")
assert.equal("#ffffd7", state.background)
assert.equal(230, state.ctermbg)
end)
it("parses grayscale ramp colors (fg)", function()
state:parse("38;5;240")
assert.equal("#585858", state.foreground)
assert.equal(240, state.ctermfg)
end)
it("parses grayscale ramp colors (bg)", function()
state:parse("48;5;250")
assert.equal("#bcbcbc", state.background)
assert.equal(250, state.ctermbg)
end)
end)
describe("parse8bit", function()
it("parses pallet terminal colors (fg)", function()
state:parse8bit("foreground", "4")
assert.equal("blue", state.foreground)
end)
it("parses pallet terminal colors (bg)", function()
state:parse8bit("background", "5")
assert.equal("magenta", state.background)
end)
it("parses high colors (fg)", function()
state:parse8bit("foreground", "10")
assert.equal("lightgreen", state.foreground)
end)
it("parses high colors (bg)", function()
state:parse8bit("background", "11")
assert.equal("lightyellow", state.background)
end)
it("parses color cube colors (fg)", function()
state:parse8bit("foreground", "17")
assert.equal("#00005f", state.foreground)
end)
it("parses color cube colors (bg)", function()
state:parse8bit("background", "230")
assert.equal("#ffffd7", state.background)
end)
it("parses grayscale ramp colors (fg)", function()
state:parse8bit("foreground", "240")
assert.equal("#585858", state.foreground)
end)
it("parses grayscale ramp colors (bg)", function()
state:parse8bit("background", "250")
assert.equal("#bcbcbc", state.background)
end)
end)
end)
end)
describe("parent detection", function()
-- Wrapper to execute some lua code in a --cmd argument.
local function lua_with_parent(name, code)
-- First we have to shellescape the lua code.
code = code:gsub("'", "'\\''")
local command = [[nvim --headless --clean --cmd 'set rtp+=.' --cmd 'lua ]]
..code..[[' --cmd quit]]
return run("test/fixtures/bin/"..name.." "..command)
end
it("detects git correctly #osx_pending", function()
local output = lua_with_parent(
"git", "print(require('nvimpager')._testable.detect_parent_process())")
assert.equal("git", output)
end)
it("detects man correctly #osx_pending", function()
local output = lua_with_parent(
"man", "print(require('nvimpager')._testable.detect_parent_process())")
assert.equal("man", output)
end)
it("handles git", function()
local output = run("test/fixtures/bin/git ./nvimpager -c " ..
"test/fixtures/diff")
local expected = read("test/fixtures/diff.ansi")
assert.equal(expected, output)
end)
it("handles man #osx_pending", function()
local output = run("test/fixtures/bin/man ./nvimpager -c " ..
"test/fixtures/man.cat")
local expected = read("test/fixtures/man.ansi")
assert.equal(expected, output)
end)
end)
|
require 'torch'
require 'nn'
local hierarchial_model = {}
-- init function to be added
function heirarchial_model.__init__(input_params)
self.learningRate = input_params[learningRate]
self.skip_window = input_params[skip_window]
self.dropout = dropout
self.num_layers = input_params[num_layers]
self.margin = margin
end
function hiererchial_model.create_net(input_size, dropout,vocab_size, num_layers)
skip_window = self.skip_window or 2
vector_size = 0
logrange = math.floor(math.log(vocab_size))
sizerange = logrange**3 - range^3 - logrange^2
if(self.vector_size ~= nil) then
vector_size = self.vector_size
else
vector_size = math.random()*sizerange + logrange^2
end
output_size = skipwindow*2*vector_size
dropout = dropout or 0
dropout = dropout or self.dropout
numlayers = self.numlayers or numlayers or 3
net = nn.Sequential()
net:add(nn.Linear(input_size,output_size))
for i=1,num_layers do
net:add(nn.Linear(output_size,output_size))
net:add(nn.ReLU())
end
net:add(nn.Linear(output_size,vector_size))
net:add(nn.Sigmoid())
net:add(nn.Dropout(dropout, true, true, false))
-- We have the net built up, we need the final cross entropy before we can back prop
local margin = self.margin -- set initially
criterion = nn.CosineEmbeddingCriterion(margin)
self.criterion = criterion
self.net = net
end
function hierarchial_model.forward(input1,y,input2)
local network_output = net:forward(input1)
local match_output = net:forward(input2)
local criterion_input = {}
criterion_input[1] = network_output
criterion_input[2] = match_output
local errval = criterion:forward(criterion_input, y)
net = self.net
net:zeroGradParameters()
local t = criterion:backward(criterion_input, y)
net:backward(input1,t[1])
net:backward(input2, t[2])
net:updateParameters(self.learningRate)
end
|
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf/protobuf"
module('CustomBattleType_pb')
local CUSTOMBATTLETYPE = protobuf.EnumDescriptor();
local CUSTOMBATTLETYPE_CUSTOMBATTLE_PK_NORMAL_ENUM = protobuf.EnumValueDescriptor();
local CUSTOMBATTLETYPE_CUSTOMBATTLE_PKTWO_NORMAL_ENUM = protobuf.EnumValueDescriptor();
CUSTOMBATTLETYPE_CUSTOMBATTLE_PK_NORMAL_ENUM.name = "CustomBattle_PK_Normal"
CUSTOMBATTLETYPE_CUSTOMBATTLE_PK_NORMAL_ENUM.index = 0
CUSTOMBATTLETYPE_CUSTOMBATTLE_PK_NORMAL_ENUM.number = 1
CUSTOMBATTLETYPE_CUSTOMBATTLE_PKTWO_NORMAL_ENUM.name = "CustomBattle_PKTwo_Normal"
CUSTOMBATTLETYPE_CUSTOMBATTLE_PKTWO_NORMAL_ENUM.index = 1
CUSTOMBATTLETYPE_CUSTOMBATTLE_PKTWO_NORMAL_ENUM.number = 2
CUSTOMBATTLETYPE.name = "CustomBattleType"
CUSTOMBATTLETYPE.full_name = ".KKSG.CustomBattleType"
CUSTOMBATTLETYPE.values = {CUSTOMBATTLETYPE_CUSTOMBATTLE_PK_NORMAL_ENUM,CUSTOMBATTLETYPE_CUSTOMBATTLE_PKTWO_NORMAL_ENUM}
CustomBattle_PKTwo_Normal = 2
CustomBattle_PK_Normal = 1
|
local utils = require 'utils'
local function clean(input)
-- remove all "!*" instances
clean = input:gsub('(!.)', '')
-- remove the garbage
local garbage = false
local tmp_clean = {}
for i = 1, #clean do
local char = clean:sub(i, i)
if char == '<' then
garbage = true
elseif char == '>' then
garbage = false
elseif not garbage then
tmp_clean[#tmp_clean + 1] = char
end
end
return table.concat(tmp_clean)
end
local function get_score(input)
local score = 0
local weight = 1
local clean = clean(input)
for i = 1, #clean do
local char = clean:sub(i, i)
if char == '{' then
score = score + weight
weight = weight + 1
end
if char == '}' then
weight = weight - 1
end
end
return score
end
local function get_garbage_chars(input)
-- remove all "!*" instances
clean = input:gsub('(!.)', '')
local garbage = false
local cnt = 0
for i = 1, #clean do
local char = clean:sub(i, i)
if not garbage and char == '<' then
garbage = true
elseif char == '>' then
garbage = false
elseif garbage then
cnt = cnt + 1
end
end
return cnt
end
local input = utils.read_file('../res/day_09.in')
print('Total score (part 1):', get_score(input))
print('Total chars (part 2):', get_garbage_chars(input))
|
--[[ An implementation of a simple numerical gradient checker.
ARGS:
- `opfunc` : a function that takes a single input (X), the point of
evaluation, and returns f(X) and df/dX
- `x` : the initial point
- `eps` : the epsilon to use for the numerical check (default is 1e-7)
RETURN:
- `diff` : error in the gradient, should be near tol
- `dC` : exact gradient at point
- `dC_est` : numerically estimates gradient at point
]]--
-- function that numerically checks gradient of NCA loss:
function optim.checkgrad(opfunc, x, eps)
-- compute true gradient:
local Corg,dC = opfunc(x)
dC:resize(x:size())
local Ctmp -- temporary value
local isTensor = torch.isTensor(Corg)
if isTensor then
Ctmp = Corg.new(Corg:size())
end
-- compute numeric approximations to gradient:
local eps = eps or 1e-7
local dC_est = torch.Tensor():typeAs(dC):resizeAs(dC)
for i = 1,dC:size(1) do
local tmp = x[i]
x[i] = x[i] + eps
local C1 = opfunc(x)
if isTensor then
Ctmp:copy(C1)
C1 = Ctmp
end
x[i] = x[i] - 2 * eps
local C2 = opfunc(x)
x[i] = tmp
dC_est[i] = (C1 - C2) / (2 * eps)
end
-- estimate error of gradient:
local diff = torch.norm(dC - dC_est) / torch.norm(dC + dC_est)
return diff,dC,dC_est
end
|
return {
"notomo/misclib.nvim/lua/misclib/error_handler.lua",
"notomo/misclib.nvim/lua/misclib/message.lua",
"notomo/misclib.nvim/lua/misclib/multi_error.lua",
"notomo/misclib.nvim/lua/misclib/collection/ordered_dict.lua",
}
|
function ScreenBase()
local t = {}
local function exit()
sendTowerExited(t.cell)
fsm:enterState("GamePlay")
end
function t.onBackButton()
exit()
return true
end
return t
end
|
local Class = require "lib.hump.class"
local Theme = require "assets.theme"
local Utils = require "classes.utils"
local highlit = false --use getters and setters on this one
local button = Class {
init = function (self, content, x, y, w, h, action)
self.x = x
self.y = y
self.width = w
self.height = h
if action then
self.active = true
else
self.active = false
end
self.execute = function (self)
if self.active then
if action then action() end
end
end
self.content = content
end
}
button.States = {
normal = 1,
hover = 2,
pressed = 3,
disabled = 4,
highlit = 5
}
button.Colors = {
back = {
[button.States.normal] = Theme.colors.button.back.normal,
[button.States.hover] = Theme.colors.button.back.hover or Theme.colors.button.back.normal,
[button.States.pressed] = Theme.colors.button.back.pressed or Theme.colors.button.back.normal,
[button.States.disabled] = Theme.colors.button.back.disabled or Theme.colors.button.back.normal,
[button.States.highlit] = Theme.colors.button.back.highlit or Theme.colors.button.back.hover
},
text = {
[button.States.normal] = Theme.colors.button.text.normal,
[button.States.hover] = Theme.colors.button.text.hover or Theme.colors.button.text.normal,
[button.States.pressed] = Theme.colors.button.text.pressed or Theme.colors.button.text.normal,
[button.States.disabled] = Theme.colors.button.text.disabled or Theme.colors.button.text.normal,
[button.States.highlit] = Theme.colors.button.text.highlit or Theme.colors.button.text.hover
}
}
function button:isHover(x, y)
return Utils.isHover(self, x, y)
end
function button:isPressed()
return self:isHover()
and love.mouse.isDown(1, 2)
end
function button:isActive()
return self.active
end
function button:isHighlit()
return highlit
end
function button:highlight()
highlit = true
end
function button:lowlight()
highlit = false
end
function button:getState()
if not self:isActive() then return button.States.disabled end
if self:isHighlit() then return button.States.highlit end
if self:isPressed() then return button.States.pressed end
if self:isHover() then return button.States.hover end
return button.States.normal
end
function button:draw()
local colors = self.colors or button.Colors --use own override colors, or the theme
--draw button
love.graphics.setColor(colors.back[self:getState()]) --set colors by state
love.graphics.rectangle("fill", self.x, self.y, self.width, self.height)
--draw content
if not self.content then return end
if type(self.content) == "string" then
love.graphics.setColor(colors.text[self:getState()])
love.graphics.setFont(Theme.fonts.verbButton)
love.graphics.printf(
self.content,
self.x,
self.y + (self.height/2) - (love.graphics.getFont():getHeight() / 2),
self.width,
"center")
end
--TODO: image button content
end
return button
|
local t = io.popen('git pull')
local a = t:read("*all")
ngx.say(a)
os.execute('php reload_web.php')
|
return {'tussen','tussenafstand','tussenarrest','tussenas','tussenbalans','tussenbedrijf','tussenbeide','tussenberm','tussenbestuur','tussenbouw','tussencategorie','tussendeel','tussendek','tussendeks','tussendekspassagier','tussendeur','tussendijks','tussending','tussendoor','tussendoortje','tussenevaluatie','tussenfase','tussengastheer','tussengebied','tussengelegen','tussengeneratie','tussengerecht','tussengeschil','tussengevoegd','tussengezang','tussengroep','tussenhandel','tussenhandelaar','tussenhersenen','tussenholding','tussenhuis','tussenin','tussenjaar','tussenklank','tussenklassement','tussenkleur','tussenkoeler','tussenkomen','tussenkomend','tussenkomst','tussenkop','tussenlaag','tussenlanding','tussenliggend','tussenmaaltijd','tussenmaat','tussenmuur','tussenniveau','tussenoplossing','tussenopslag','tussenpartij','tussenpaus','tussenpauze','tussenpauzen','tussenperiode','tussenpersoon','tussenpoos','tussenpositie','tussenproduct','tussenrapport','tussenrapportage','tussenregel','tussenregering','tussenrekening','tussenresultaat','tussenribstuk','tussenronde','tussenruimte','tussenschakel','tussenschot','tussensegment','tussensoort','tussenspel','tussenspraak','tussensprint','tussenstadium','tussenstand','tussenstap','tussenstation','tussenstop','tussenstrook','tussenstuk','tussentaal','tussentijd','tussentijds','tussentoon','tussenuit','tussenuur','tussenvariant','tussenverdieping','tussenvlak','tussenvoegen','tussenvoeging','tussenvoegsel','tussenvonnis','tussenvoorstel','tussenvoorziening','tussenvorm','tussenwand','tussenweg','tussenwerpsel','tussenwervelschijf','tussenwoning','tussenzang','tussenzet','tussenzin','tussor','tussenkamer','tussenmenselijk','tussentint','tussenschools','tussenteelt','tussenseizoen','tussenbalansoperatie','tussenletter','tussenbedrijven','tussenbouwen','tussendekken','tussendekspassagiers','tussendeuren','tussendijkse','tussendingen','tussendoortjes','tussenfasen','tussengerechten','tussengeschakeld','tussengeschakelde','tussengeschillen','tussengevoegde','tussengroepen','tussenhandelaars','tussenklanken','tussenkleuren','tussenkomende','tussenkomsten','tussenkopje','tussenkopjes','tussenlagen','tussenlandingen','tussenliggende','tussenmaten','tussenmuren','tussenoplossingen','tussenpartijen','tussenpersonen','tussenpozen','tussenproducten','tussenregels','tussenregeringen','tussenrekeningen','tussenresultaten','tussenribstukken','tussenruimten','tussenruimtes','tussenschakels','tussenschoolse','tussenschotten','tussensegmenten','tussensoorten','tussenspelen','tussenstanden','tussenstappen','tussenstations','tussenstops','tussenstukken','tussentijden','tussentijdse','tussentitels','tussentonen','tussenuren','tussenverdiepingen','tussenvoegingen','tussenvoegsels','tussenvoegt','tussenvonnissen','tussenvoorstellen','tussenvormen','tussenwanden','tussenwegen','tussenwerpsels','tussenwoningen','tussenzangen','tussenzinnen','tussenzit','tussenbermen','tussengebieden','tussengekomen','tussengezangen','tussenhuizen','tussenkomt','tussenkwam','tussenposities','tussenrapporten','tussensprints','tussenwervelschijven','tussenmenselijke','tussenstadia','tussenzinnetje','tussentinten','tussenhandelaren','tussenrapportages'}
|
rspamd_config:register_symbol({
name = 'TEST_HASHES',
score = 1.0,
callback = function()
local hash = require 'rspamd_cryptobox_hash'
local logger = require 'rspamd_logger'
local worry = {}
local test_data = {
{
['str'] = 'asdf.qwerty.123',
['hex'] = 'bf22dd95750034b9af93f0e4e5954aca3506bbcdbc051d91bd9af2d1a8fc294e848626b1c1751e58b44c4d3ea69dec5efa5a214dc59c77b1a9ca3bde3babac9d',
},
{
['specific'] = 'md5',
['str'] = 'asdf.qwerty.123',
['hex'] = 'cf25ddc406c50de0c13de2b79d127646',
},
{
['init'] = 'asdf.qwerty.123',
['str'] = 'asdf.qwerty.123',
['hex'] = 'bf22dd95750034b9af93f0e4e5954aca3506bbcdbc051d91bd9af2d1a8fc294e848626b1c1751e58b44c4d3ea69dec5efa5a214dc59c77b1a9ca3bde3babac9d',
['reset'] = true,
},
{
['init'] = 'asdf.qwerty.123',
['str'] = 'asdf.qwerty.123',
['hex'] = 'e445046aa21a705dcce1343795630f88bc0196a0070011fdce789d5a2a349a8f85349834ade555ca21439f65fdc4dbcf82dcff7fcc559ef11c508507515c1532',
},
{
['init'] = 'asdf.qwerty.123',
['specific'] = 'md5',
['str'] = 'asdf.qwerty.123',
['hex'] = '9ef941c4d050e43b1e665300f4fbe054',
},
{
['init'] = 'asdf.qwerty.123',
['specific'] = 'md5',
['str'] = 'asdf.qwerty.123',
['hex'] = 'cf25ddc406c50de0c13de2b79d127646',
['reset'] = true,
},
}
for _, t in ipairs(test_data) do
local h
if not t['specific'] then
h = hash.create(t['init'])
else
h = hash.create_specific(t['specific'], t['init'])
end
if t['reset'] then
h:reset()
end
h:update(t['str'])
if not (h:hex() == t['hex']) then
t['error'] = 'sum mismatch: ' .. h:hex()
table.insert(worry, logger.slog('%1', t))
end
end
if (#worry == 0) then
return true, "no worry"
else
return true, table.concat(worry, ",")
end
end
})
|
local PALETTE_CONFIG_NAME = "palette_config.json"
---@class Palette
local Palette = CLASS: Palette ()
:MODEL {}
function Palette:__init ()
self.name = "Palette"
self.colorList = {}
self.colorTable = {}
end
function Palette:getColor ( name )
return unpack ( self.colorTable[ name ] )
end
function Palette:setColor ( name, r, g, b, a )
local c = self.colorTable[ name ]
if c then
c[ 1 ] = r
c[ 2 ] = g
c[ 3 ] = b
c[ 4 ] = a
else
self:addColor ( name, r, g, b, a )
end
end
function Palette:addColor ( name, r, g, b, a )
local entry = {
name = name,
color = {
r,
g,
b,
a
}
}
table.insert ( self.colorList, entry )
self.colorTable[ name ] = {
r,
g,
b,
a
}
end
function Palette:save ()
return {
name = self.name,
colors = self.colorList
}
end
function Palette:load ( data )
local name = data.name
local colors = data.colors
self.colorList = {}
self.colorTable = {}
for i, entry in ipairs ( colors ) do
self:setColor ( entry.name, unpack ( entry.color ) )
end
self.name = name
end
---@class PaletteLibrary : GlobalManager
local PaletteLibrary = CLASS: PaletteLibrary ( GlobalManager ):MODEL ( {} )
function PaletteLibrary:__init ()
self.palettes = {}
self.paletteCache = {}
end
function PaletteLibrary:addPalette ( pal )
pal = pal or Palette ()
table.insert ( self.palettes, pal )
return pal
end
function PaletteLibrary:removePalette ( pal )
local idx = table.index ( self.palettes, pal )
if idx then
table.remove ( self.palettes, idx )
end
end
function PaletteLibrary:clear ()
self.palettes = {}
self.paletteCache = {}
end
function PaletteLibrary:findPalette ( name )
local pal = self.paletteCache[ name ]
if pal then
return pal
end
for i, p in ipairs ( self.palettes ) do
if p.name == name then
pal = p
break
end
end
if pal then
self.paletteCache[ name ] = pal
end
return pal
end
function PaletteLibrary:load ( data )
self:clear ()
if not data then
return
end
for i, entry in ipairs ( data ) do
local pal = self:addPalette ()
pal:load ( entry )
end
end
function PaletteLibrary:save ()
local output = {}
for i, pal in ipairs ( self.palettes ) do
local data = pal:save ()
output[ i ] = data
end
return output
end
function PaletteLibrary:onInit ()
self:loadConfig ()
end
function PaletteLibrary:loadConfig ()
local data = loadGameConfig ( PALETTE_CONFIG_NAME )
if data then
self:load ( data )
end
end
function PaletteLibrary:saveConfig ()
candy.saveGameConfig ( self:save (), PALETTE_CONFIG_NAME )
end
local _paletteLibrary = PaletteLibrary ()
function getPaletteLibrary ()
return _paletteLibrary
end
|
net = require('net.box')
--
-- gh-3256 net.box is_nullable and collation options output
--
space = box.schema.create_space('test')
box.schema.user.grant('guest', 'read', 'space', 'test')
_ = space:create_index('pk')
_ = space:create_index('sk', {parts = {{2, 'unsigned', is_nullable = true}}})
c = net:connect(box.cfg.listen)
c.space.test.index.sk.parts
space:drop()
space = box.schema.create_space('test')
c:close()
box.schema.user.grant('guest', 'read', 'space', 'test')
c = net:connect(box.cfg.listen)
box.internal.collation.create('test', 'ICU', 'ru-RU')
collation_id = box.internal.collation.id_by_name('test')
_ = space:create_index('sk', { type = 'tree', parts = {{1, 'str', collation = 'test'}}, unique = true })
c:reload_schema()
parts = c.space.test.index.sk.parts
#parts == 1
parts[1].fieldno == 1
parts[1].type == 'string'
parts[1].is_nullable == false
parts[1].collation == 'test'
c:close()
box.internal.collation.drop('test')
space:drop()
c.state
c = nil
|
--Return a list of colors
return {
'blue',
'cyan',
'green',
'pink',
'red',
'yellow',
'white',
'grey'
}
|
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv()
local PADDING = 10
local BUTTON_HEIGHT = 16
local BUTTON_WIDTH = 100
local function OnClick(btn)
btn.func()
btn:GetParent():Hide()
end
local function OnEnter(btn)
btn.hoverTex:Show()
end
local function OnLeave(btn)
btn.hoverTex:Hide()
end
function R:DropDown(list, frame, xOffset, yOffset)
if not frame.buttons then
frame.buttons = {}
frame:SetFrameStrata("DIALOG")
frame:SetClampedToScreen(true)
tinsert(UISpecialFrames, frame:GetName())
frame:Hide()
end
xOffset = xOffset or 0
yOffset = yOffset or 0
for i=1, #frame.buttons do
frame.buttons[i]:Hide()
end
for i=1, #list do
if not frame.buttons[i] then
frame.buttons[i] = CreateFrame("Button", nil, frame)
frame.buttons[i].hoverTex = frame.buttons[i]:CreateTexture(nil, "OVERLAY")
frame.buttons[i].hoverTex:SetAllPoints()
frame.buttons[i].hoverTex:SetTexture([[Interface\QuestFrame\UI-QuestTitleHighlight]])
frame.buttons[i].hoverTex:SetBlendMode("ADD")
frame.buttons[i].hoverTex:Hide()
frame.buttons[i].text = frame.buttons[i]:CreateFontString(nil, "BORDER")
frame.buttons[i].text:SetAllPoints()
frame.buttons[i].text:SetFont(_G["DropDownList1Button1NormalText"]:GetFont())
frame.buttons[i].text:SetJustifyH("LEFT")
frame.buttons[i]:SetScript("OnEnter", OnEnter)
frame.buttons[i]:SetScript("OnLeave", OnLeave)
end
frame.buttons[i]:Show()
frame.buttons[i]:Height(BUTTON_HEIGHT)
frame.buttons[i]:Width(BUTTON_WIDTH)
frame.buttons[i].text:SetText(list[i].text)
frame.buttons[i].func = list[i].func
frame.buttons[i]:SetScript("OnClick", OnClick)
if i == 1 then
frame.buttons[i]:Point("TOPLEFT", frame, "TOPLEFT", PADDING, -PADDING)
else
frame.buttons[i]:Point("TOPLEFT", frame.buttons[i-1], "BOTTOMLEFT")
end
end
frame:Height((#list * BUTTON_HEIGHT) + PADDING * 2)
frame:Width(BUTTON_WIDTH + PADDING * 2)
local UIScale = UIParent:GetScale();
local x, y = GetCursorPosition();
x = x/UIScale
y = y/UIScale
frame:ClearAllPoints()
frame:Point("TOPLEFT", UIParent, "BOTTOMLEFT", x + xOffset, y + yOffset)
ToggleFrame(frame)
end
|
local utils = {}
function utils.getKwarg(kwargs, name, default)
if kwargs == nil then kwargs = {} end
if kwargs[name] == nil and default == nil then
assert(false, string.format("'%s' expected and not given", name))
elseif kwargs[name] == nil then
return default
else
return kwargs[name]
end
end
--[[
Prints the time and a message in the form of
<time> <message>
example: 08:58:23 Hello World!
]]--
function utils.printTime(message)
local timeObject = os.date("*t")
local currTime = ("%02d:%02d:%02d"):format(timeObject.hour, timeObject.min, timeObject.sec)
print("%s %s" % {currTime, message})
end
return utils
|
-- scaffold geniefile for protobuf
protobuf_script = path.getabsolute(path.getdirectory(_SCRIPT))
protobuf_root = path.join(protobuf_script, "protobuf")
protobuf_includedirs = {
path.join(protobuf_script, "config"),
protobuf_root,
}
protobuf_libdirs = {}
protobuf_links = {}
protobuf_defines = {}
----
return {
_add_includedirs = function()
includedirs { protobuf_includedirs }
end,
_add_defines = function()
defines { protobuf_defines }
end,
_add_libdirs = function()
libdirs { protobuf_libdirs }
end,
_add_external_links = function()
links { protobuf_links }
end,
_add_self_links = function()
links { "protobuf" }
end,
_create_projects = function()
project "protobuf"
kind "StaticLib"
language "C++"
flags {}
includedirs {
protobuf_includedirs,
}
defines {}
files {
path.join(protobuf_script, "config", "**.h"),
path.join(protobuf_root, "**.h"),
path.join(protobuf_root, "**.cpp"),
}
end, -- _create_projects()
}
---
|
References = {
["Enumerations"] = {
["Penalty PreciseQualifier"] = {
[0] = "None",
[1] = "-10",
[2] = "-9.9",
[3] = "-9.8",
[4] = "-9.7",
[5] = "-9.6",
[6] = "-9.5",
[7] = "-9.4",
[8] = "-9.3",
[9] = "-9.2",
[10] = "-9.1",
[11] = "-9",
[12] = "-8.9",
[13] = "-8.8",
[14] = "-8.7",
[15] = "-8.6",
[16] = "-8.5",
[17] = "-8.4",
[18] = "-8.3",
[19] = "-8.2",
[20] = "-8.1",
[21] = "-8",
[22] = "-7.9",
[23] = "-7.8",
[24] = "-7.7",
[25] = "-7.6",
[26] = "-7.5",
[27] = "-7.4",
[28] = "-7.3",
[29] = "-7.2",
[30] = "-7.1",
[31] = "-7",
[32] = "-6.9",
[33] = "-6.8",
[34] = "-6.7",
[35] = "-6.6",
[36] = "-6.5",
[37] = "-6.4",
[38] = "-6.3",
[39] = "-6.2",
[40] = "-6.1",
[41] = "-6",
[42] = "-5.9",
[43] = "-5.8",
[44] = "-5.7",
[45] = "-5.6",
[46] = "-5.5",
[47] = "-5.4",
[48] = "-5.3",
[49] = "-5.2",
[50] = "-5.1",
[51] = "-5",
[52] = "-4.9",
[53] = "-4.8",
[54] = "-4.7",
[55] = "-4.6",
[56] = "-4.5",
[57] = "-4.4",
[58] = "-4.3",
[59] = "-4.2",
[60] = "-4.1",
[61] = "-4",
[62] = "-3.9",
[63] = "-3.8",
[64] = "-3.7",
[65] = "-3.6",
[66] = "-3.5",
[67] = "-3.4",
[68] = "-3.3",
[69] = "-3.2",
[70] = "-3.1",
[71] = "-3",
[72] = "-2.9",
[73] = "-2.8",
[74] = "-2.7",
[75] = "-2.6",
[76] = "-2.5",
[77] = "-2.4",
[78] = "-2.3",
[79] = "-2.2",
[80] = "-2.1",
[81] = "-2",
[82] = "-1.9",
[83] = "-1.8",
[84] = "-1.7",
[85] = "-1.6",
[86] = "-1.5",
[87] = "-1.4",
[88] = "-1.3",
[89] = "-1.2",
[90] = "-1.1",
[91] = "-1",
[92] = "-0.9",
[93] = "-0.8",
[94] = "-0.7",
[95] = "-0.6",
[96] = "-0.5",
[97] = "-0.4",
[98] = "-0.3",
[99] = "-0.2",
[100] = "-0.1",
[101] = "0",
[102] = "0.1",
[103] = "0.2",
[104] = "0.3",
[105] = "0.4",
[106] = "0.5",
[107] = "0.6",
[108] = "0.7",
[109] = "0.8",
[110] = "0.9",
[111] = "1",
[112] = "1.1",
[113] = "1.2",
[114] = "1.3",
[115] = "1.4",
[116] = "1.5",
[117] = "1.6",
[118] = "1.7",
[119] = "1.8",
[120] = "1.9",
[121] = "2",
[122] = "2.1",
[123] = "2.2",
[124] = "2.3",
[125] = "2.4",
[126] = "2.5",
[127] = "2.6",
[128] = "2.7",
[129] = "2.8",
[130] = "2.9",
[131] = "3",
[132] = "3.1",
[133] = "3.2",
[134] = "3.3",
[135] = "3.4",
[136] = "3.5",
[137] = "3.6",
[138] = "3.7",
[139] = "3.8",
[140] = "3.9",
[141] = "4",
[142] = "4.1",
[143] = "4.2",
[144] = "4.3",
[145] = "4.4",
[146] = "4.5",
[147] = "4.6",
[148] = "4.7",
[149] = "4.8",
[150] = "4.9",
[151] = "5",
[152] = "5.1",
[153] = "5.2",
[154] = "5.3",
[155] = "5.4",
[156] = "5.5",
[157] = "5.6",
[158] = "5.7",
[159] = "5.8",
[160] = "5.9",
[161] = "6",
[162] = "6.1",
[163] = "6.2",
[164] = "6.3",
[165] = "6.4",
[166] = "6.5",
[167] = "6.6",
[168] = "6.7",
[169] = "6.8",
[170] = "6.9",
[171] = "7",
[172] = "7.1",
[173] = "7.2",
[174] = "7.3",
[175] = "7.4",
[176] = "7.5",
[177] = "7.6",
[178] = "7.7",
[179] = "7.8",
[180] = "7.9",
[181] = "8",
[182] = "8.1",
[183] = "8.2",
[184] = "8.3",
[185] = "8.4",
[186] = "8.5",
[187] = "8.6",
[188] = "8.7",
[189] = "8.8",
[190] = "8.9",
[191] = "9",
[192] = "9.1",
[193] = "9.2",
[194] = "9.3",
[195] = "9.4",
[196] = "9.5",
[197] = "9.6",
[198] = "9.7",
[199] = "9.8",
[200] = "9.9",
[201] = "10",
},
["FormatStringColor"] = {
[0] = "White",
[1] = "DarkGray",
[2] = "Gray",
[3] = "LightGray",
[4] = "Red",
[5] = "Blue",
[6] = "DarkBlue",
[7] = "LightBlue",
[8] = "Green",
[9] = "PoisonGreen",
[10] = "Yellow",
[11] = "Orange",
[12] = "Pink",
[13] = "Purple",
[14] = "Brown",
[15] = "Gold",
[16] = "Black",
[17] = "Normal",
[18] = "StoryItem",
[19] = "Blackrock",
[20] = "Poison",
[21] = "Earth",
[22] = "Air",
[23] = "Water",
[24] = "Fire",
[25] = "Source",
[26] = "Decay",
[27] = "Polymorph",
[28] = "Ranger",
[29] = "Rogue",
[30] = "Summoner",
[31] = "Void",
[32] = "Warrior",
[33] = "Special",
[34] = "Healing",
[35] = "Charm",
},
["VampirismType"] = {
[0] = "None",
[1] = "Vitality",
[2] = "ArmorPhysical",
[3] = "ArmorMagical",
[4] = "ArmorAll",
[5] = "Any",
},
["YesNo"] = {
[0] = "No",
[1] = "Yes",
},
["Death Type"] = {
[0] = "None",
[1] = "Physical",
[2] = "Piercing",
[3] = "Arrow",
[4] = "DoT",
[5] = "Incinerate",
[6] = "Acid",
[7] = "Electrocution",
[8] = "FrozenShatter",
[9] = "PetrifiedShatter",
[10] = "Explode",
},
["Handedness"] = {
[0] = "Any",
[1] = "1",
[2] = "2",
},
["PickingState"] = {
[0] = "Default",
[1] = "Lying",
[2] = "Sitting",
[3] = "Dead",
[4] = "MAX",
[5] = "Sneaking",
[6] = "Tombstone",
},
["WeaponType"] = {
[0] = "None",
[1] = "Sword",
[2] = "Club",
[3] = "Axe",
[4] = "Staff",
[5] = "Bow",
[6] = "Crossbow",
[7] = "Spear",
[8] = "Knife",
[9] = "Wand",
[10] = "Arrow",
},
["SkillAbility"] = {
[0] = "None",
[1] = "Warrior",
[2] = "Ranger",
[3] = "Rogue",
[4] = "Source",
[5] = "Fire",
[6] = "Water",
[7] = "Air",
[8] = "Earth",
[9] = "Death",
[10] = "Summoning",
[11] = "Polymorph",
},
["StepsType"] = {
[0] = "Bare",
[1] = "Bone",
[2] = "Lizard",
[3] = "Leather",
[4] = "Metal",
[5] = "Zombie",
[6] = "Clawed",
},
["InventoryTabs"] = {
[0] = "Auto",
[1] = "Equipment",
[2] = "Consumable",
[3] = "Magical",
[4] = "Ingredient",
[5] = "Keys",
[6] = "Misc",
[7] = "Hidden",
},
["Custom Properties"] = {
[0] = "None",
[1] = "AlwaysBackstab",
[2] = "Unbreakable",
[3] = "CanBackstab",
[4] = "AlwaysHighGround",
},
["SavingThrow"] = {
[0] = "None",
[1] = "Burning",
[2] = "Frozen",
[3] = "Poison",
[4] = "KnockDown",
[5] = "Mute",
[6] = "Stunned",
[7] = "Fear",
[8] = "Charm",
[9] = "Bleeding",
[10] = "Crippled",
[11] = "Blind",
[12] = "Cursed",
[13] = "Weak",
[14] = "Slowed",
[15] = "Diseased",
[16] = "InfectiousDiseased",
[17] = "Petrified",
[18] = "Drunk",
[19] = "ShacklesOfPain",
[20] = "AggroMarked",
[21] = "Remorse",
[22] = "DecayingTouch",
[23] = "CrawlingInfestation",
[24] = "MarkOfDeath",
[25] = "Taunted",
[26] = "Oiled",
[27] = "Soulsap",
[28] = "VampiricTouch",
[29] = "NullResist",
[30] = "DivineLight",
[31] = "Drain",
[32] = "Sleeping",
[33] = "PhysicalArmor",
[34] = "MagicArmor",
},
["Surface Type"] = {
[0] = "None",
[1] = "Fire",
[2] = "FireBlessed",
[3] = "FireCursed",
[4] = "FirePurified",
[5] = "Water",
[6] = "WaterElectrified",
[7] = "WaterFrozen",
[8] = "WaterBlessed",
[9] = "WaterElectrifiedBlessed",
[10] = "WaterFrozenBlessed",
[11] = "WaterCursed",
[12] = "WaterElectrifiedCursed",
[13] = "WaterFrozenCursed",
[14] = "WaterPurified",
[15] = "WaterElectrifiedPurified",
[16] = "WaterFrozenPurified",
[17] = "Blood",
[18] = "BloodElectrified",
[19] = "BloodFrozen",
[20] = "BloodBlessed",
[21] = "BloodElectrifiedBlessed",
[22] = "BloodFrozenBlessed",
[23] = "BloodCursed",
[24] = "BloodElectrifiedCursed",
[25] = "BloodFrozenCursed",
[26] = "BloodPurified",
[27] = "BloodElectrifiedPurified",
[28] = "BloodFrozenPurified",
[29] = "Poison",
[30] = "PoisonBlessed",
[31] = "PoisonCursed",
[32] = "PoisonPurified",
[33] = "Oil",
[34] = "OilBlessed",
[35] = "OilCursed",
[36] = "OilPurified",
[37] = "Lava",
[38] = "Source",
[39] = "Web",
[40] = "WebBlessed",
[41] = "WebCursed",
[42] = "WebPurified",
[43] = "Deepwater",
[44] = "FireCloud",
[45] = "FireCloudBlessed",
[46] = "FireCloudCursed",
[47] = "FireCloudPurified",
[48] = "WaterCloud",
[49] = "WaterCloudElectrified",
[50] = "WaterCloudBlessed",
[51] = "WaterCloudElectrifiedBlessed",
[52] = "WaterCloudCursed",
[53] = "WaterCloudElectrifiedCursed",
[54] = "WaterCloudPurified",
[55] = "WaterCloudElectrifiedPurified",
[56] = "BloodCloud",
[57] = "BloodCloudElectrified",
[58] = "BloodCloudBlessed",
[59] = "BloodCloudElectrifiedBlessed",
[60] = "BloodCloudCursed",
[61] = "BloodCloudElectrifiedCursed",
[62] = "BloodCloudPurified",
[63] = "BloodCloudElectrifiedPurified",
[64] = "PoisonCloud",
[65] = "PoisonCloudBlessed",
[66] = "PoisonCloudCursed",
[67] = "PoisonCloudPurified",
[68] = "SmokeCloud",
[69] = "SmokeCloudBlessed",
[70] = "SmokeCloudCursed",
[71] = "SmokeCloudPurified",
[72] = "ExplosionCloud",
[73] = "FrostCloud",
[74] = "Deathfog",
[75] = "Sentinel",
[76] = "ShockwaveCloud",
},
["Damage Type"] = {
[0] = "None",
[1] = "Physical",
[2] = "Piercing",
[3] = "Corrosive",
[4] = "Magic",
[5] = "Chaos",
[6] = "Fire",
[7] = "Air",
[8] = "Water",
[9] = "Earth",
[10] = "Poison",
[11] = "Shadow",
},
["Qualifier"] = {
[0] = "None",
[1] = "0",
[2] = "1",
[3] = "2",
[4] = "3",
[5] = "4",
[6] = "5",
[7] = "6",
[8] = "7",
[9] = "8",
[10] = "9",
[11] = "10",
},
["MaterialType"] = {
[0] = "None",
[1] = "Overlay",
[2] = "FadingOverlay",
[3] = "Replacement",
},
["SkillElement"] = {
[0] = "1",
},
["AnimType"] = {
[0] = "None",
[1] = "OneHanded",
[2] = "TwoHanded",
[3] = "Bow",
[4] = "DualWield",
[5] = "Shield",
[6] = "SmallWeapons",
[7] = "PoleArms",
[8] = "Unarmed",
[9] = "CrossBow",
[10] = "TwoHanded_Sword",
[11] = "Sitting",
[12] = "Lying",
[13] = "DualWieldSmall",
[14] = "Staves",
[15] = "Wands",
[16] = "DualWieldWands",
[17] = "ShieldWands",
},
["IngredientTransformType"] = {
[0] = "None",
[1] = "Consume",
[2] = "Transform",
[3] = "Boost",
[4] = "Poison",
},
["Osiris Task"] = {
[0] = "None",
[1] = "Resurrect",
},
["AtmosphereType"] = {
[0] = "None",
[1] = "Rain",
[2] = "Storm",
},
["SkillRequirement"] = {
[0] = "None",
[1] = "MeleeWeapon",
[2] = "RangedWeapon",
[3] = "StaffWeapon",
[4] = "DaggerWeapon",
[5] = "ShieldWeapon",
[6] = "ArrowWeapon",
},
["SkillTier"] = {
[0] = "None",
[1] = "Starter",
[2] = "Novice",
[3] = "Adept",
[4] = "Master",
},
["SkillTargetCondition"] = {
[0] = "None",
[1] = "Locked",
[2] = "Ally",
[3] = "Enemy",
[4] = "Character",
[5] = "Item",
[6] = "Dead",
[7] = "Summon",
[8] = "NonSummon",
[9] = "Self",
[10] = "NonSelf",
[11] = "Party",
[12] = "LowHP",
[13] = "Combat",
[14] = "Tagged",
[15] = "CanExplode",
[16] = "CanGiveSP",
[17] = "Grounded",
[18] = "FacingMe",
[19] = "AllowDead",
[20] = "Player",
[21] = "CanPickup",
[22] = "Owner",
[23] = "MySummon",
[24] = "HasStatus",
[25] = "InSurface",
[26] = "Surface",
[27] = "Spirit",
[28] = "DamagedOnHeal",
[29] = "Undead",
[30] = "CanBeSabotaged",
[31] = "PhysicalArmourUp",
[32] = "MagicArmourUp",
},
["HealValueType"] = {
[0] = "FixedValue",
[1] = "Percentage",
[2] = "Qualifier",
[3] = "Shield",
[4] = "TargetDependent",
[5] = "DamagePercentage",
},
["Surface Change"] = {
[0] = "None",
[1] = "Ignite",
[2] = "Melt",
[3] = "Freeze",
[4] = "Electrify",
[5] = "Bless",
[6] = "Curse",
[7] = "Condense",
[8] = "Vaporize",
[9] = "Bloodify",
[10] = "Contaminate",
[11] = "Oilify",
[12] = "Shatter",
},
["BigQualifier"] = {
[0] = "None",
[1] = "1",
[2] = "2",
[3] = "3",
[4] = "4",
[5] = "5",
[6] = "6",
[7] = "7",
[8] = "8",
[9] = "9",
[10] = "10",
[11] = "11",
[12] = "12",
[13] = "13",
[14] = "14",
[15] = "15",
[16] = "16",
[17] = "17",
[18] = "18",
[19] = "19",
[20] = "20",
[21] = "21",
[22] = "22",
[23] = "23",
[24] = "24",
[25] = "25",
[26] = "26",
[27] = "27",
[28] = "28",
[29] = "29",
[30] = "30",
[31] = "31",
[32] = "32",
[33] = "33",
[34] = "34",
[35] = "35",
[36] = "36",
[37] = "37",
[38] = "38",
[39] = "39",
[40] = "40",
[41] = "41",
[42] = "42",
[43] = "43",
[44] = "44",
[45] = "45",
[46] = "46",
[47] = "47",
[48] = "48",
[49] = "49",
[50] = "50",
[51] = "51",
[52] = "52",
[53] = "53",
[54] = "54",
[55] = "55",
[56] = "56",
[57] = "57",
[58] = "58",
[59] = "59",
[60] = "60",
[61] = "61",
[62] = "62",
[63] = "63",
[64] = "64",
[65] = "65",
[66] = "66",
[67] = "67",
[68] = "68",
[69] = "69",
[70] = "70",
[71] = "71",
[72] = "72",
[73] = "73",
[74] = "74",
[75] = "75",
[76] = "76",
[77] = "77",
[78] = "78",
[79] = "79",
[80] = "80",
[81] = "81",
[82] = "82",
[83] = "83",
[84] = "84",
[85] = "85",
[86] = "86",
[87] = "87",
[88] = "88",
[89] = "89",
[90] = "90",
[91] = "91",
[92] = "92",
[93] = "93",
[94] = "94",
[95] = "95",
[96] = "96",
[97] = "97",
[98] = "98",
[99] = "99",
[100] = "100",
},
["DamageSourceType"] = {
[0] = "BaseLevelDamage",
[1] = "AverageLevelDamge",
[2] = "MonsterWeaponDamage",
[3] = "SourceMaximumVitality",
[4] = "SourceMaximumPhysicalArmor",
[5] = "SourceMaximumMagicArmor",
[6] = "SourceCurrentVitality",
[7] = "SourceCurrentPhysicalArmor",
[8] = "SourceCurrentMagicArmor",
[9] = "SourceShieldPhysicalArmor",
[10] = "TargetMaximumVitality",
[11] = "TargetMaximumPhysicalArmor",
[12] = "TargetMaximumMagicArmor",
[13] = "TargetCurrentVitality",
[14] = "TargetCurrentPhysicalArmor",
[15] = "TargetCurrentMagicArmor",
[16] = "TargetCurrentMagicArmor",
},
["ProjectileType"] = {
[0] = "None",
[1] = "Arrow",
[2] = "Grenade",
},
["ProjectileDistribution"] = {
[0] = "Random",
[1] = "Normal",
[2] = "Edge",
[3] = "EdgeCenter",
},
["StatusEvent"] = {
[0] = "None",
[1] = "OnTurn",
[2] = "OnSkillCast",
[3] = "OnAttack",
[4] = "OnApply",
[5] = "OnRemove",
[6] = "OnApplyAndTurn",
},
["Act"] = {
[0] = "1",
},
["Itemslot"] = {
[0] = "Helmet",
[1] = "Breast",
[2] = "Leggings",
[3] = "Weapon",
[4] = "Shield",
[5] = "Ring",
[6] = "Belt",
[7] = "Boots",
[8] = "Gloves",
[9] = "Amulet",
[10] = "Ring2",
[11] = "Wings",
[12] = "Horns",
[13] = "Overhead",
},
["AttributeFlag"] = {
[0] = "None",
[1] = "FreezeImmunity",
[2] = "BurnImmunity",
[3] = "StunImmunity",
[4] = "PoisonImmunity",
[5] = "CharmImmunity",
[6] = "FearImmunity",
[7] = "KnockdownImmunity",
[8] = "MuteImmunity",
[9] = "ChilledImmunity",
[10] = "WarmImmunity",
[11] = "WetImmunity",
[12] = "BleedingImmunity",
[13] = "CrippledImmunity",
[14] = "BlindImmunity",
[15] = "CursedImmunity",
[16] = "WeakImmunity",
[17] = "SlowedImmunity",
[18] = "DiseasedImmunity",
[19] = "InfectiousDiseasedImmunity",
[20] = "PetrifiedImmunity",
[21] = "DrunkImmunity",
[22] = "SlippingImmunity",
[23] = "FreezeContact",
[24] = "BurnContact",
[25] = "StunContact",
[26] = "PoisonContact",
[27] = "ChillContact",
[28] = "Torch",
[29] = "Arrow",
[30] = "Unbreakable",
[31] = "Unrepairable",
[32] = "Unstorable",
[33] = "Grounded",
[34] = "HastedImmunity",
[35] = "TauntedImmunity",
[36] = "SleepingImmunity",
[37] = "AcidImmunity",
[38] = "SuffocatingImmunity",
[39] = "RegeneratingImmunity",
[40] = "DisarmedImmunity",
[41] = "DecayingImmunity",
[42] = "ClairvoyantImmunity",
[43] = "EnragedImmunity",
[44] = "BlessedImmunity",
[45] = "ProtectFromSummon",
[46] = "Floating",
[47] = "DeflectProjectiles",
[48] = "IgnoreClouds",
[49] = "MadnessImmunity",
[50] = "ChickenImmunity",
[51] = "IgnoreCursedOil",
[52] = "ShockedImmunity",
[53] = "WebImmunity",
[54] = "LootableWhenEquipped",
[55] = "PickpocketableWhenEquipped",
[56] = "LoseDurabilityOnCharacterHit",
[57] = "EntangledContact",
[58] = "ShacklesOfPainImmunity",
[59] = "ThrownImmunity",
},
["AttributeFlags"] = {
[0] = "None",
[1] = "FreezeImmunity",
[2] = "BurnImmunity",
[3] = "StunImmunity",
[4] = "PoisonImmunity",
[5] = "CharmImmunity",
[6] = "FearImmunity",
[7] = "KnockdownImmunity",
[8] = "MuteImmunity",
[9] = "ChilledImmunity",
[10] = "WarmImmunity",
[11] = "WetImmunity",
[12] = "BleedingImmunity",
[13] = "CrippledImmunity",
[14] = "BlindImmunity",
[15] = "CursedImmunity",
[16] = "WeakImmunity",
[17] = "SlowedImmunity",
[18] = "DiseasedImmunity",
[19] = "InfectiousDiseasedImmunity",
[20] = "PetrifiedImmunity",
[21] = "DrunkImmunity",
[22] = "SlippingImmunity",
[23] = "FreezeContact",
[24] = "BurnContact",
[25] = "StunContact",
[26] = "PoisonContact",
[27] = "ChillContact",
[28] = "Torch",
[29] = "Arrow",
[30] = "Unbreakable",
[31] = "Unrepairable",
[32] = "Unstorable",
[33] = "Grounded",
[34] = "HastedImmunity",
[35] = "TauntedImmunity",
[36] = "SleepingImmunity",
[37] = "AcidImmunity",
[38] = "SuffocatingImmunity",
[39] = "RegeneratingImmunity",
[40] = "DisarmedImmunity",
[41] = "DecayingImmunity",
[42] = "ClairvoyantImmunity",
[43] = "EnragedImmunity",
[44] = "BlessedImmunity",
[45] = "ProtectFromSummon",
[46] = "Floating",
[47] = "DeflectProjectiles",
[48] = "IgnoreClouds",
[49] = "MadnessImmunity",
[50] = "ChickenImmunity",
[51] = "IgnoreCursedOil",
[52] = "ShockedImmunity",
[53] = "WebImmunity",
[54] = "LootableWhenEquipped",
[55] = "PickpocketableWhenEquipped",
[56] = "LoseDurabilityOnCharacterHit",
[57] = "EntangledContact",
[58] = "ShacklesOfPainImmunity",
[59] = "ThrownImmunity",
[60] = "InvisibilityImmunity",
},
["ArmorType"] = {
[0] = "None",
[1] = "Cloth",
[2] = "Leather",
[3] = "Mail",
[4] = "Plate",
[5] = "Robe",
},
["Ability"] = {
[0] = "None",
[1] = "WarriorLore",
[2] = "RangerLore",
[3] = "RogueLore",
[4] = "SingleHanded",
[5] = "TwoHanded",
[6] = "Reflection",
[7] = "Ranged",
[8] = "Shield",
[9] = "Reflexes",
[10] = "PhysicalArmorMastery",
[11] = "Sourcery",
[12] = "Telekinesis",
[13] = "FireSpecialist",
[14] = "WaterSpecialist",
[15] = "AirSpecialist",
[16] = "EarthSpecialist",
[17] = "Necromancy",
[18] = "Summoning",
[19] = "Polymorph",
[20] = "Repair",
[21] = "Sneaking",
[22] = "Pickpocket",
[23] = "Thievery",
[24] = "Loremaster",
[25] = "Crafting",
[26] = "Barter",
[27] = "Charm",
[28] = "Intimidate",
[29] = "Reason",
[30] = "Persuasion",
[31] = "Leadership",
[32] = "Luck",
[33] = "DualWielding",
[34] = "Wand",
[35] = "MagicArmorMastery",
[36] = "VitalityMastery",
[37] = "Perseverance",
[38] = "Runecrafting",
[39] = "Brewmaster",
},
["IngredientType"] = {
[0] = "None",
[1] = "Object",
[2] = "Category",
[3] = "Property",
},
["ActPart"] = {
[0] = "0",
[1] = "1",
[2] = "2",
[3] = "3",
[4] = "4",
[5] = "5",
[6] = "6",
[7] = "7",
[8] = "8",
[9] = "9",
[10] = "10",
[11] = "11",
[12] = "12",
[13] = "13",
[14] = "14",
[15] = "15",
[16] = "16",
[17] = "17",
[18] = "18",
[19] = "19",
[20] = "20",
[21] = "21",
[22] = "22",
[23] = "23",
[24] = "24",
[25] = "25",
[26] = "26",
[27] = "27",
[28] = "28",
[29] = "29",
[30] = "30",
},
["PreciseQualifier"] = {
[0] = "None",
[1] = "0",
[2] = "0.1",
[3] = "0.2",
[4] = "0.3",
[5] = "0.4",
[6] = "0.5",
[7] = "0.6",
[8] = "0.7",
[9] = "0.8",
[10] = "0.9",
[11] = "1",
[12] = "1.1",
[13] = "1.2",
[14] = "1.3",
[15] = "1.4",
[16] = "1.5",
[17] = "1.6",
[18] = "1.7",
[19] = "1.8",
[20] = "1.9",
[21] = "2",
[22] = "2.1",
[23] = "2.2",
[24] = "2.3",
[25] = "2.4",
[26] = "2.5",
[27] = "2.6",
[28] = "2.7",
[29] = "2.8",
[30] = "2.9",
[31] = "3",
[32] = "3.1",
[33] = "3.2",
[34] = "3.3",
[35] = "3.4",
[36] = "3.5",
[37] = "3.6",
[38] = "3.7",
[39] = "3.8",
[40] = "3.9",
[41] = "4",
[42] = "4.1",
[43] = "4.2",
[44] = "4.3",
[45] = "4.4",
[46] = "4.5",
[47] = "4.6",
[48] = "4.7",
[49] = "4.8",
[50] = "4.9",
[51] = "5",
[52] = "5.1",
[53] = "5.2",
[54] = "5.3",
[55] = "5.4",
[56] = "5.5",
[57] = "5.6",
[58] = "5.7",
[59] = "5.8",
[60] = "5.9",
[61] = "6",
[62] = "6.1",
[63] = "6.2",
[64] = "6.3",
[65] = "6.4",
[66] = "6.5",
[67] = "6.6",
[68] = "6.7",
[69] = "6.8",
[70] = "6.9",
[71] = "7",
[72] = "7.1",
[73] = "7.2",
[74] = "7.3",
[75] = "7.4",
[76] = "7.5",
[77] = "7.6",
[78] = "7.7",
[79] = "7.8",
[80] = "7.9",
[81] = "8",
[82] = "8.1",
[83] = "8.2",
[84] = "8.3",
[85] = "8.4",
[86] = "8.5",
[87] = "8.6",
[88] = "8.7",
[89] = "8.8",
[90] = "8.9",
[91] = "9",
[92] = "9.1",
[93] = "9.2",
[94] = "9.3",
[95] = "9.4",
[96] = "9.5",
[97] = "9.6",
[98] = "9.7",
[99] = "9.8",
[100] = "9.9",
[101] = "10",
},
["RecipeCategory"] = {
[0] = "None",
[1] = "Weapons",
[2] = "Potions",
[3] = "Grenades",
[4] = "Arrows",
[5] = "Armour",
[6] = "Food",
[7] = "Objects",
[8] = "Runes",
[9] = "Grimoire",
},
["Game Action"] = {
[0] = "None",
[1] = "Douse",
[2] = "CreateSurface",
[3] = "TargetCreateSurface",
[4] = "CreateConeSurface",
[5] = "Pickup",
[6] = "SwapPlaces",
[7] = "Equalize",
},
["CraftingStationType"] = {
[0] = "None",
[1] = "Anvil",
[2] = "Oven",
[3] = "Wetstone",
[4] = "Well",
[5] = "BoilingPot",
[6] = "Beehive",
[7] = "SpinningWheel",
[8] = "Cauldron",
[9] = "Misc1",
[10] = "Misc2",
[11] = "Misc3",
[12] = "Misc4",
},
["AIFlags"] = {
[0] = "CanNotUse",
[1] = "IgnoreSelf",
[2] = "IgnoreDebuff",
[3] = "IgnoreBuff",
[4] = "StatusIsSecondary",
[5] = "IgnoreControl",
[6] = "CanNotTargetFrozen",
},
["Penalty Qualifier"] = {
[0] = "None",
[1] = "-10",
[2] = "-9",
[3] = "-8",
[4] = "-7",
[5] = "-6",
[6] = "-5",
[7] = "-4",
[8] = "-3",
[9] = "-2",
[10] = "-1",
[11] = "0",
[12] = "1",
[13] = "2",
[14] = "3",
[15] = "4",
[16] = "5",
[17] = "6",
[18] = "7",
[19] = "8",
[20] = "9",
[21] = "10",
[22] = "100",
},
["ModifierType"] = {
[0] = "Item",
[1] = "Charm",
[2] = "Boost",
[3] = "Skill",
[4] = "Crystal",
[5] = "Food",
},
["StatusHealType"] = {
[0] = "None",
[1] = "Vitality",
[2] = "PhysicalArmor",
[3] = "MagicArmor",
[4] = "AllArmor",
[5] = "All",
[6] = "Source",
},
["CastCheckType"] = {
[0] = "None",
[1] = "Distance",
[2] = "DamageType",
[3] = "TargetSurfaceType",
},
},
["StatObjectDefinitions"] = {
["Character"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Act", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Act"},
[3] = {["@name"] = "Act part", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ActPart"},
[4] = {["@name"] = "Act strength", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[5] = {["@name"] = "Strength", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[6] = {["@name"] = "Finesse", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[7] = {["@name"] = "Intelligence", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[8] = {["@name"] = "Constitution", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[9] = {["@name"] = "Memory", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[10] = {["@name"] = "Wits", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[11] = {["@name"] = "Armor", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "ArmorBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "ArmorBoostGrowthPerLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "MagicArmor", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MagicArmorBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "MagicArmorBoostGrowthPerLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "Reflexes", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "Vitality", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "DamageBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "DamageBoostGrowthPerLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "MagicPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "ChanceToHitBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "APMaximum", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "APStart", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "APRecovery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "MPStart", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "Movement", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "MovementSpeedBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "Gain", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "BigQualifier"},
[30] = {["@name"] = "Sight", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[31] = {["@name"] = "Hearing", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[32] = {["@name"] = "Initiative", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "FOV", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "Weight", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "StepsType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "StepsType"},
[36] = {["@name"] = "PiercingResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "PhysicalResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "CriticalChance", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[39] = {["@name"] = "MaxResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "FireResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "EarthResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "WaterResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "AirResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "PoisonResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "SingleHanded", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "TwoHanded", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "Ranged", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "DualWielding", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "Leadership", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "PainReflection", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "Perseverance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "RogueLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "WarriorLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[54] = {["@name"] = "RangerLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[55] = {["@name"] = "FireSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[56] = {["@name"] = "WaterSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[57] = {["@name"] = "AirSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[58] = {["@name"] = "EarthSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[59] = {["@name"] = "Sourcery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[60] = {["@name"] = "Necromancy", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[61] = {["@name"] = "Polymorph", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[62] = {["@name"] = "Summoning", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[63] = {["@name"] = "Telekinesis", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[64] = {["@name"] = "Sneaking", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[65] = {["@name"] = "Thievery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[66] = {["@name"] = "Loremaster", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[67] = {["@name"] = "Repair", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[68] = {["@name"] = "Barter", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[69] = {["@name"] = "Persuasion", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[70] = {["@name"] = "Luck", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[71] = {["@name"] = "Accuracy", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[72] = {["@name"] = "Dodge", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[73] = {["@name"] = "Reflection", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[74] = {["@name"] = "MaxSummons", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[75] = {["@name"] = "ExtraProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[76] = {["@name"] = "Flags", ["@type"] = "EnumerationList", ["@enumeration_type_name"] = "AttributeFlags"},
[77] = {["@name"] = "Talents", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[78] = {["@name"] = "Traits", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[79] = {["@name"] = "PathInfluence", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[80] = {["@name"] = "Comment", ["@type"] = "Comment", ["@enumeration_type_name"] = ""},
},
["Potion"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "RootTemplate", ["@type"] = "RootTemplate", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "Act", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Act"},
[4] = {["@name"] = "Act part", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ActPart"},
[5] = {["@name"] = "Act strength", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "ComboCategory", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[11] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "Weight", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "Value", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "Strength", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty PreciseQualifier"},
[18] = {["@name"] = "Finesse", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty PreciseQualifier"},
[19] = {["@name"] = "Intelligence", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty PreciseQualifier"},
[20] = {["@name"] = "Constitution", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty PreciseQualifier"},
[21] = {["@name"] = "Memory", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty PreciseQualifier"},
[22] = {["@name"] = "Wits", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty PreciseQualifier"},
[23] = {["@name"] = "SingleHanded", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "TwoHanded", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "Ranged", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "DualWielding", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "PhysicalArmorMastery", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "MagicArmorMastery", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "VitalityMastery", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "PainReflection", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "WarriorLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "RangerLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "RogueLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "Sourcery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "Telekinesis", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "FireSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "WaterSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AirSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "EarthSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "Necromancy", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "Polymorph", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "Summoning", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "Sneaking", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Thievery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "Loremaster", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "Repair", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "Barter", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "Persuasion", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "Leadership", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "Luck", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "FireResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "EarthResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "WaterResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[54] = {["@name"] = "AirResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[55] = {["@name"] = "PoisonResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[56] = {["@name"] = "PiercingResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[57] = {["@name"] = "PhysicalResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[58] = {["@name"] = "Sight", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[59] = {["@name"] = "Hearing", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[60] = {["@name"] = "Initiative", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[61] = {["@name"] = "Movement", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[62] = {["@name"] = "MovementSpeedBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[63] = {["@name"] = "Vitality", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[64] = {["@name"] = "VitalityBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[65] = {["@name"] = "VitalityPercentage", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[66] = {["@name"] = "ChanceToHitBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[67] = {["@name"] = "AccuracyBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[68] = {["@name"] = "DodgeBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[69] = {["@name"] = "DamageBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[70] = {["@name"] = "RangeBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[71] = {["@name"] = "APCostBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[72] = {["@name"] = "SPCostBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[73] = {["@name"] = "APMaximum", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[74] = {["@name"] = "APStart", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[75] = {["@name"] = "APRecovery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[76] = {["@name"] = "CriticalChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[77] = {["@name"] = "Gain", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "BigQualifier"},
[78] = {["@name"] = "Armor", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[79] = {["@name"] = "ArmorBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[80] = {["@name"] = "MagicArmor", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[81] = {["@name"] = "MagicArmorBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[82] = {["@name"] = "Duration", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[83] = {["@name"] = "UseAPCost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[84] = {["@name"] = "Reflection", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[85] = {["@name"] = "LifeSteal", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[86] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[87] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[88] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[89] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[90] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[91] = {["@name"] = "MagicPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[92] = {["@name"] = "BloodSurfaceType", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[93] = {["@name"] = "MaxSummons", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[94] = {["@name"] = "AddToBottomBar", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[95] = {["@name"] = "ExtraProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[96] = {["@name"] = "BoostConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[97] = {["@name"] = "Flags", ["@type"] = "EnumerationList", ["@enumeration_type_name"] = "AttributeFlags"},
[98] = {["@name"] = "BonusWeapon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[99] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[100] = {["@name"] = "StatusIcon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[101] = {["@name"] = "StatusMaterial", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[102] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[103] = {["@name"] = "InventoryTab", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "InventoryTabs"},
[104] = {["@name"] = "UnknownBeforeConsume", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[105] = {["@name"] = "IsConsumable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[106] = {["@name"] = "IsFood", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[107] = {["@name"] = "SummonLifelinkModifier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[108] = {["@name"] = "IgnoredByAI", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[109] = {["@name"] = "AiCalculationStatsOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[110] = {["@name"] = "RuneLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[111] = {["@name"] = "RuneEffectWeapon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[112] = {["@name"] = "RuneEffectUpperbody", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[113] = {["@name"] = "RuneEffectAmulet", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[114] = {["@name"] = "ObjectCategory", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[115] = {["@name"] = "MinAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[116] = {["@name"] = "MaxAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[117] = {["@name"] = "Priority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[118] = {["@name"] = "Unique", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[119] = {["@name"] = "MinLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[120] = {["@name"] = "MaxLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[121] = {["@name"] = "Comment", ["@type"] = "Comment", ["@enumeration_type_name"] = ""},
},
["Armor"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ItemGroup", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ModifierType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ModifierType"},
[4] = {["@name"] = "Act", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Act"},
[5] = {["@name"] = "Act part", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ActPart"},
[6] = {["@name"] = "Slot", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Itemslot"},
[7] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Armor Defense Value", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "ArmorBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "Magic Armor Value", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[11] = {["@name"] = "MagicArmorBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "Durability", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "DurabilityDegradeSpeed", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[14] = {["@name"] = "Value", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "Weight", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "Movement", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "Initiative", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "Fire", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "Air", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "Water", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "Earth", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "Poison", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "Piercing", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "Physical", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "StrengthBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[26] = {["@name"] = "FinesseBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[27] = {["@name"] = "IntelligenceBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[28] = {["@name"] = "ConstitutionBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[29] = {["@name"] = "MemoryBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[30] = {["@name"] = "WitsBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[31] = {["@name"] = "SingleHanded", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "TwoHanded", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "Ranged", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "DualWielding", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "Perseverance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "Leadership", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "PainReflection", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "WarriorLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "RangerLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "RogueLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "Sourcery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "FireSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "WaterSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "AirSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "EarthSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "Necromancy", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "Polymorph", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "Summoning", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "Telekinesis", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "Sneaking", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "Thievery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "Loremaster", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "Repair", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[54] = {["@name"] = "Barter", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[55] = {["@name"] = "Persuasion", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[56] = {["@name"] = "Luck", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[57] = {["@name"] = "SightBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[58] = {["@name"] = "HearingBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[59] = {["@name"] = "VitalityBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[60] = {["@name"] = "MagicPointsBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[61] = {["@name"] = "ChanceToHitBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[62] = {["@name"] = "APMaximum", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[63] = {["@name"] = "APStart", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[64] = {["@name"] = "APRecovery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[65] = {["@name"] = "AccuracyBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[66] = {["@name"] = "DodgeBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[67] = {["@name"] = "CriticalChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[68] = {["@name"] = "Reflection", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[69] = {["@name"] = "MaxSummons", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[70] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[71] = {["@name"] = "Talents", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[72] = {["@name"] = "Tags", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[73] = {["@name"] = "ExtraProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[74] = {["@name"] = "Flags", ["@type"] = "EnumerationList", ["@enumeration_type_name"] = "AttributeFlags"},
[75] = {["@name"] = "Boosts", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[76] = {["@name"] = "ComboCategory", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[77] = {["@name"] = "InventoryTab", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "InventoryTabs"},
[78] = {["@name"] = "ArmorType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ArmorType"},
[79] = {["@name"] = "ItemColor", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[80] = {["@name"] = "NeedsIdentification", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[81] = {["@name"] = "Charges", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[82] = {["@name"] = "MaxCharges", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[83] = {["@name"] = "RuneSlots", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[84] = {["@name"] = "RuneSlots_V1", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[85] = {["@name"] = "ObjectCategory", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[86] = {["@name"] = "MinAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[87] = {["@name"] = "MaxAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[88] = {["@name"] = "Priority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[89] = {["@name"] = "Unique", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[90] = {["@name"] = "MinLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[91] = {["@name"] = "MaxLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[92] = {["@name"] = "Comment", ["@type"] = "Comment", ["@enumeration_type_name"] = ""},
},
["Object"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "RootTemplate", ["@type"] = "RootTemplate", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ModifierType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ModifierType"},
[4] = {["@name"] = "Act", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Act"},
[5] = {["@name"] = "Act part", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ActPart"},
[6] = {["@name"] = "UseAPCost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "Value", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Weight", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "ComboCategory", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[11] = {["@name"] = "Strength", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[12] = {["@name"] = "Finesse", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[13] = {["@name"] = "Intelligence", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[14] = {["@name"] = "Constitution", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[15] = {["@name"] = "Memory", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[16] = {["@name"] = "Wits", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[17] = {["@name"] = "Vitality", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "Armor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "PreciseQualifier"},
[19] = {["@name"] = "PiercingResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "PhysicalResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "FireResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "EarthResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "WaterResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "AirResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "PoisonResistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "Flags", ["@type"] = "EnumerationList", ["@enumeration_type_name"] = "AttributeFlags"},
[27] = {["@name"] = "InventoryTab", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "InventoryTabs"},
[28] = {["@name"] = "AddToBottomBar", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[29] = {["@name"] = "IgnoredByAI", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "RuneLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "RuneEffectWeapon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "RuneEffectUpperbody", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "RuneEffectAmulet", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "ObjectCategory", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "MinAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "MaxAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "Priority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "Unique", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "MinLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "MaxLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "Comment", ["@type"] = "Comment", ["@enumeration_type_name"] = ""},
},
["Shield"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ItemGroup", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ModifierType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ModifierType"},
[4] = {["@name"] = "Act", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Act"},
[5] = {["@name"] = "Act part", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ActPart"},
[6] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "Armor Defense Value", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "ArmorBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Magic Armor Value", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "MagicArmorBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[11] = {["@name"] = "Blocking", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "Durability", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "DurabilityDegradeSpeed", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[14] = {["@name"] = "Value", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "Weight", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "Movement", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "Initiative", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "Slot", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Itemslot"},
[19] = {["@name"] = "Fire", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "Air", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "Water", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "Earth", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "Poison", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "Piercing", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "Physical", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "StrengthBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[27] = {["@name"] = "FinesseBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[28] = {["@name"] = "IntelligenceBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[29] = {["@name"] = "ConstitutionBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[30] = {["@name"] = "MemoryBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[31] = {["@name"] = "WitsBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[32] = {["@name"] = "SingleHanded", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "TwoHanded", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "Ranged", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "DualWielding", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "Perseverance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "Leadership", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "PainReflection", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "RogueLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "WarriorLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "RangerLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "FireSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "WaterSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "AirSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "EarthSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "Sourcery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "Necromancy", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "Polymorph", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "Summoning", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "Telekinesis", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "Sneaking", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "LockPicking", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "Loremaster", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[54] = {["@name"] = "Repair", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[55] = {["@name"] = "Barter", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[56] = {["@name"] = "Persuasion", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[57] = {["@name"] = "Luck", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[58] = {["@name"] = "SightBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[59] = {["@name"] = "HearingBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[60] = {["@name"] = "VitalityBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[61] = {["@name"] = "MagicPointsBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[62] = {["@name"] = "ChanceToHitBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[63] = {["@name"] = "APMaximum", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[64] = {["@name"] = "APStart", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[65] = {["@name"] = "APRecovery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[66] = {["@name"] = "AccuracyBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[67] = {["@name"] = "DodgeBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[68] = {["@name"] = "CriticalChance", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[69] = {["@name"] = "Reflection", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[70] = {["@name"] = "Bodybuilding", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[71] = {["@name"] = "Willpower", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[72] = {["@name"] = "MaxSummons", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[73] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[74] = {["@name"] = "Talents", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[75] = {["@name"] = "Tags", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[76] = {["@name"] = "ExtraProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[77] = {["@name"] = "Flags", ["@type"] = "EnumerationList", ["@enumeration_type_name"] = "AttributeFlags"},
[78] = {["@name"] = "ComboCategory", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[79] = {["@name"] = "InventoryTab", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "InventoryTabs"},
[80] = {["@name"] = "ItemColor", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[81] = {["@name"] = "NeedsIdentification", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[82] = {["@name"] = "Charges", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[83] = {["@name"] = "MaxCharges", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[84] = {["@name"] = "RuneSlots", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[85] = {["@name"] = "RuneSlots_V1", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[86] = {["@name"] = "ObjectCategory", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[87] = {["@name"] = "MinAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[88] = {["@name"] = "MaxAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[89] = {["@name"] = "Priority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[90] = {["@name"] = "Unique", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[91] = {["@name"] = "MinLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[92] = {["@name"] = "MaxLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[93] = {["@name"] = "Comment", ["@type"] = "Comment", ["@enumeration_type_name"] = ""},
},
["Weapon"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ItemGroup", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ModifierType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ModifierType"},
[4] = {["@name"] = "Act", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Act"},
[5] = {["@name"] = "Act part", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ActPart"},
[6] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "IsTwoHanded", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[8] = {["@name"] = "AttackAPCost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Damage Type", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[10] = {["@name"] = "Damage", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[11] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "DamageBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "DamageFromBase", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "CriticalDamage", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "CriticalChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "WeaponRange", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "CleavePercentage", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "CleaveAngle", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "Durability", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "DurabilityDegradeSpeed", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[21] = {["@name"] = "Value", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "Weight", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "Movement", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "Initiative", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "WeaponType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "WeaponType"},
[26] = {["@name"] = "AnimType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AnimType"},
[27] = {["@name"] = "Slot", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Itemslot"},
[28] = {["@name"] = "Projectile", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "IgnoreVisionBlock", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StrengthBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[31] = {["@name"] = "FinesseBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[32] = {["@name"] = "IntelligenceBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[33] = {["@name"] = "ConstitutionBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[34] = {["@name"] = "MemoryBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[35] = {["@name"] = "WitsBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[36] = {["@name"] = "TwoHanded", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "SingleHanded", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "Ranged", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "DualWielding", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "Perseverance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "Leadership", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "PainReflection", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "WarriorLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "RangerLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "RogueLore", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "FireSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "WaterSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "AirSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "EarthSpecialist", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "Necromancy", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "Polymorph", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "Summoning", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "Sourcery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[54] = {["@name"] = "Telekinesis", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[55] = {["@name"] = "Sneaking", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[56] = {["@name"] = "Thievery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[57] = {["@name"] = "Loremaster", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[58] = {["@name"] = "Repair", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[59] = {["@name"] = "Barter", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[60] = {["@name"] = "Persuasion", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[61] = {["@name"] = "Luck", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[62] = {["@name"] = "Fire", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[63] = {["@name"] = "Earth", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[64] = {["@name"] = "Water", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[65] = {["@name"] = "Air", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[66] = {["@name"] = "Poison", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[67] = {["@name"] = "SightBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[68] = {["@name"] = "HearingBoost", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Penalty Qualifier"},
[69] = {["@name"] = "VitalityBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[70] = {["@name"] = "ChanceToHitBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[71] = {["@name"] = "APMaximum", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[72] = {["@name"] = "APStart", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[73] = {["@name"] = "APRecovery", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[74] = {["@name"] = "AccuracyBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[75] = {["@name"] = "DodgeBoost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[76] = {["@name"] = "ComboCategory", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[77] = {["@name"] = "Reflection", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[78] = {["@name"] = "MaxSummons", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[79] = {["@name"] = "LifeSteal", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[80] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[81] = {["@name"] = "Talents", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[82] = {["@name"] = "Tags", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[83] = {["@name"] = "ExtraProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[84] = {["@name"] = "Flags", ["@type"] = "EnumerationList", ["@enumeration_type_name"] = "AttributeFlags"},
[85] = {["@name"] = "Boosts", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[86] = {["@name"] = "InventoryTab", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "InventoryTabs"},
[87] = {["@name"] = "NeedsIdentification", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[88] = {["@name"] = "Charges", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[89] = {["@name"] = "MaxCharges", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[90] = {["@name"] = "ItemColor", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[91] = {["@name"] = "RuneSlots", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[92] = {["@name"] = "RuneSlots_V1", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[93] = {["@name"] = "ObjectCategory", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[94] = {["@name"] = "MinAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[95] = {["@name"] = "MaxAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[96] = {["@name"] = "Priority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[97] = {["@name"] = "Unique", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[98] = {["@name"] = "MinLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[99] = {["@name"] = "MaxLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[100] = {["@name"] = "Comment", ["@type"] = "Comment", ["@enumeration_type_name"] = ""},
},
["TreasureTable"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@export_type"] = "TreasureTableField", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "CanMerge", ["@type"] = "Enumeration", ["@export_type"] = "TreasureTableField", ["@enumeration_type_name"] = "YesNo"},
[2] = {["@name"] = "MinLevelDiff", ["@type"] = "Integer", ["@export_type"] = "TreasureTableField", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "MaxLevelDiff", ["@type"] = "Integer", ["@export_type"] = "TreasureTableField", ["@enumeration_type_name"] = ""},
[4] = {["@name"] = "IgnoreLevelDiff", ["@type"] = "Enumeration", ["@export_type"] = "TreasureTableField", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "UseTreasureGroups", ["@type"] = "Enumeration", ["@export_type"] = "TreasureTableField", ["@enumeration_type_name"] = "YesNo"},
[6] = {["@name"] = "StartLevel", ["@type"] = "Integer", ["@export_type"] = "SubTableField", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "EndLevel", ["@type"] = "Integer", ["@export_type"] = "SubTableField", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "DropCount", ["@type"] = "String", ["@export_type"] = "SubTableField", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "ObjectCategory", ["@type"] = "String", ["@export_type"] = "SubTableField", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "Frequency", ["@type"] = "Integer", ["@export_type"] = "SubTableField", ["@enumeration_type_name"] = ""},
[11] = {["@name"] = "Common", ["@type"] = "Integer", ["@export_type"] = "ItemType", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "Uncommon", ["@type"] = "Integer", ["@export_type"] = "ItemType", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Rare", ["@type"] = "Integer", ["@export_type"] = "ItemType", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "Epic", ["@type"] = "Integer", ["@export_type"] = "ItemType", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "Legendary", ["@type"] = "String", ["@export_type"] = "ItemType", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "Divine", ["@type"] = "Integer", ["@export_type"] = "ItemType", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "Unique", ["@type"] = "Integer", ["@export_type"] = "ItemType", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "Comment", ["@type"] = "Comment", ["@export_type"] = "", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@export_type"] = "", ["@enumeration_type_name"] = ""},
},
["SkillSet"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name"},
[1] = {["@name"] = "Skills", ["@type"] = "StatReference"},
[2] = {["@name"] = "Comment", ["@type"] = "Comment"},
[3] = {["@name"] = "Using", ["@type"] = "BaseClass"},
},
["Equipment"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name"},
[1] = {["@name"] = "1", ["@type"] = "StatReference"},
[2] = {["@name"] = "2", ["@type"] = "StatReference"},
[3] = {["@name"] = "3", ["@type"] = "StatReference"},
[4] = {["@name"] = "4", ["@type"] = "StatReference"},
[5] = {["@name"] = "5", ["@type"] = "StatReference"},
[6] = {["@name"] = "6", ["@type"] = "StatReference"},
[7] = {["@name"] = "7", ["@type"] = "StatReference"},
[8] = {["@name"] = "8", ["@type"] = "StatReference"},
[9] = {["@name"] = "9", ["@type"] = "StatReference"},
[10] = {["@name"] = "10", ["@type"] = "StatReference"},
[11] = {["@name"] = "11", ["@type"] = "StatReference"},
[12] = {["@name"] = "12", ["@type"] = "StatReference"},
[13] = {["@name"] = "13", ["@type"] = "StatReference"},
[14] = {["@name"] = "14", ["@type"] = "StatReference"},
[15] = {["@name"] = "15", ["@type"] = "StatReference"},
[16] = {["@name"] = "16", ["@type"] = "StatReference"},
[17] = {["@name"] = "17", ["@type"] = "StatReference"},
[18] = {["@name"] = "18", ["@type"] = "StatReference"},
[19] = {["@name"] = "19", ["@type"] = "StatReference"},
[20] = {["@name"] = "20", ["@type"] = "StatReference"},
[21] = {["@name"] = "Comment", ["@type"] = "Comment"},
},
["ItemCombos"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = "", ["@export_type"] = "", ["@table_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = "", ["@export_type"] = "", ["@table_name"] = ""},
[2] = {["@name"] = "RecipeCategory", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "RecipeCategory", ["@export_type"] = "", ["@table_name"] = ""},
[3] = {["@name"] = "CraftingStation", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "CraftingStationType", ["@export_type"] = "", ["@table_name"] = ""},
[4] = {["@name"] = "Type 1", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "IngredientType", ["@export_type"] = "", ["@table_name"] = ""},
[5] = {["@name"] = "Object 1", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "", ["@table_name"] = ""},
[6] = {["@name"] = "Transform 1", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "IngredientTransformType", ["@export_type"] = "", ["@table_name"] = ""},
[7] = {["@name"] = "Type 2", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "IngredientType", ["@export_type"] = "", ["@table_name"] = ""},
[8] = {["@name"] = "Object 2", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "", ["@table_name"] = ""},
[9] = {["@name"] = "Transform 2", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "IngredientTransformType", ["@export_type"] = "", ["@table_name"] = ""},
[10] = {["@name"] = "Type 3", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "IngredientType", ["@export_type"] = "", ["@table_name"] = ""},
[11] = {["@name"] = "Object 3", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "", ["@table_name"] = ""},
[12] = {["@name"] = "Transform 3", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "IngredientTransformType", ["@export_type"] = "", ["@table_name"] = ""},
[13] = {["@name"] = "Type 4", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "IngredientType", ["@export_type"] = "", ["@table_name"] = ""},
[14] = {["@name"] = "Object 4", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "", ["@table_name"] = ""},
[15] = {["@name"] = "Transform 4", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "IngredientTransformType", ["@export_type"] = "", ["@table_name"] = ""},
[16] = {["@name"] = "Type 5", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "IngredientType", ["@export_type"] = "", ["@table_name"] = ""},
[17] = {["@name"] = "Object 5", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "", ["@table_name"] = ""},
[18] = {["@name"] = "Transform 5", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "IngredientTransformType", ["@export_type"] = "", ["@table_name"] = ""},
[19] = {["@name"] = "AutoLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = "", ["@export_type"] = "", ["@table_name"] = ""},
[20] = {["@name"] = "Requirement", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[21] = {["@name"] = "ReqLevel", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[22] = {["@name"] = "ResultAmount 1", ["@type"] = "Integer", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[23] = {["@name"] = "Result 1", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[24] = {["@name"] = "Boost 1", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[25] = {["@name"] = "ResultAmount 2", ["@type"] = "Integer", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[26] = {["@name"] = "Result 2", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[27] = {["@name"] = "Boost 2", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[28] = {["@name"] = "ResultAmount 3", ["@type"] = "Integer", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[29] = {["@name"] = "Result 3", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[30] = {["@name"] = "Boost 3", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[31] = {["@name"] = "PreviewStatsID", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[32] = {["@name"] = "PreviewIcon", ["@type"] = "String", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = ""},
[33] = {["@name"] = "PreviewTooltip", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = "", ["@export_type"] = "ResultField", ["@table_name"] = "ItemCombinations"},
[34] = {["@name"] = "Comment", ["@type"] = "Comment", ["@enumeration_type_name"] = "", ["@export_type"] = "", ["@table_name"] = ""},
},
["ItemComboProperties"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@export_type"] = "PropertyField", ["@table_name"] = ""},
[1] = {["@name"] = "PreviewIcon", ["@type"] = "String", ["@export_type"] = "PropertyField", ["@table_name"] = ""},
[2] = {["@name"] = "PreviewTooltip", ["@type"] = "TranslatedString", ["@export_type"] = "PropertyField", ["@table_name"] = "ItemCombinations"},
[3] = {["@name"] = "ObjectID", ["@type"] = "String", ["@export_type"] = "PropertyEntryField", ["@table_name"] = ""},
[4] = {["@name"] = "Type", ["@type"] = "String", ["@export_type"] = "PropertyEntryField", ["@table_name"] = ""},
[5] = {["@name"] = "Result", ["@type"] = "String", ["@export_type"] = "PropertyEntryField", ["@table_name"] = ""},
[6] = {["@name"] = "Comment", ["@type"] = "Comment", ["@export_type"] = "PropertyEntryField", ["@table_name"] = ""},
[7] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@export_type"] = "PropertyEntryField", ["@table_name"] = ""},
},
["ObjectCategoriesItemComboPreviewData"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@table_name"] = ""},
[1] = {["@name"] = "Type", ["@type"] = "String", ["@table_name"] = ""},
[2] = {["@name"] = "Icon", ["@type"] = "String", ["@table_name"] = ""},
[3] = {["@name"] = "Tooltip", ["@type"] = "TranslatedString", ["@table_name"] = "ItemCombinations"},
[4] = {["@name"] = "Comment", ["@type"] = "Comment", ["@table_name"] = ""},
},
["CraftingStationsItemComboPreviewData"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@table_name"] = ""},
[1] = {["@name"] = "Type", ["@type"] = "String", ["@table_name"] = ""},
[2] = {["@name"] = "StatsID", ["@type"] = "String", ["@table_name"] = ""},
[3] = {["@name"] = "Icon", ["@type"] = "String", ["@table_name"] = ""},
[4] = {["@name"] = "Tooltip", ["@type"] = "TranslatedString", ["@table_name"] = "ItemCombinations"},
[5] = {["@name"] = "Comment", ["@type"] = "Comment", ["@table_name"] = ""},
},
["ItemProgressionVisuals"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name"},
[1] = {["@name"] = "MinLevel", ["@type"] = "Integer"},
[2] = {["@name"] = "MaxLevel", ["@type"] = "Integer"},
[3] = {["@name"] = "Rarity", ["@type"] = "String"},
[4] = {["@name"] = "RootTemplate", ["@type"] = "RootTemplate"},
[5] = {["@name"] = "ItemColor", ["@type"] = "String"},
[6] = {["@name"] = "NameGroup", ["@type"] = "String"},
[7] = {["@name"] = "AffixType", ["@type"] = "String"},
[8] = {["@name"] = "Icon", ["@type"] = "String"},
[9] = {["@name"] = "Comment", ["@type"] = "Comment"},
[10] = {["@name"] = "Using", ["@type"] = "BaseClass"},
},
["Requirements"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name"},
[1] = {["@name"] = "Requirements", ["@type"] = "String"},
[2] = {["@name"] = "Comment", ["@type"] = "Comment"},
},
["Crimes"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "TensionWeight", ["@type"] = "Integer", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Lifetime", ["@type"] = "Integer", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "DetectionRange", ["@type"] = "Integer", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = ""},
[4] = {["@name"] = "AudibleRange", ["@type"] = "Integer", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = ""},
[5] = {["@name"] = "Audible", ["@type"] = "Enumeration", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = "YesNo"},
[6] = {["@name"] = "Continuous", ["@type"] = "Enumeration", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = "YesNo"},
[7] = {["@name"] = "ContinuousDelayTimer", ["@type"] = "Integer", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "CreatesCrimescene", ["@type"] = "Enumeration", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = "YesNo"},
[9] = {["@name"] = "CanRaiseAlarm", ["@type"] = "Enumeration", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = "YesNo"},
[10] = {["@name"] = "CanMerge", ["@type"] = "Enumeration", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "MaxInvestigators", ["@type"] = "Integer", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "InterrogateDialog", ["@type"] = "String", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "SoundEvent", ["@type"] = "String", ["@export_type"] = "CrimeField", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "ReactionCategory_Tag", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "Tension", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "Priority", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "DisableInvestigate", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "StopsAndInterruptsCrimes", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "VictimReaction", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "VictimDialog", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "Dialog", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "PrimarySensibleAction", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "SecondarySensibleAction", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "NoticedAD", ["@type"] = "String", ["@export_type"] = "CrimeActionField", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "Comment", ["@type"] = "Comment", ["@export_type"] = "", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@export_type"] = "", ["@enumeration_type_name"] = ""},
},
["TreasureGroups"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@export_type"] = "CategoryMapField"},
[1] = {["@name"] = "TreasureGroup", ["@type"] = "String", ["@export_type"] = "CategoryMapField"},
[2] = {["@name"] = "WeaponTreasureGroup", ["@type"] = "String", ["@export_type"] = "WeaponCounterField"},
[3] = {["@name"] = "WeaponDefaultCounter", ["@type"] = "Integer", ["@export_type"] = "WeaponCounterField"},
[4] = {["@name"] = "SkillbookTreasureGroup", ["@type"] = "String", ["@export_type"] = "SkillbookCounterField"},
[5] = {["@name"] = "SkillbookDefaultCounter", ["@type"] = "Integer", ["@export_type"] = "SkillbookCounterField"},
[6] = {["@name"] = "ArmorTreasureGroup", ["@type"] = "String", ["@export_type"] = "ArmorCounterField"},
[7] = {["@name"] = "ArmorDefaultCounter", ["@type"] = "Integer", ["@export_type"] = "ArmorCounterField"},
[8] = {["@name"] = "Comment", ["@type"] = "Comment", ["@export_type"] = ""},
},
["DeltaModifier"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@export_type"] = ""},
[1] = {["@name"] = "BoostType", ["@type"] = "String", ["@export_type"] = ""},
[2] = {["@name"] = "MinLevel", ["@type"] = "Integer", ["@export_type"] = ""},
[3] = {["@name"] = "MaxLevel", ["@type"] = "Integer", ["@export_type"] = ""},
[4] = {["@name"] = "Frequency", ["@type"] = "Integer", ["@export_type"] = ""},
[5] = {["@name"] = "ModifierType", ["@type"] = "String", ["@export_type"] = ""},
[6] = {["@name"] = "SlotType", ["@type"] = "String", ["@export_type"] = ""},
[7] = {["@name"] = "ArmorType", ["@type"] = "String", ["@export_type"] = ""},
[8] = {["@name"] = "WeaponType", ["@type"] = "String", ["@export_type"] = ""},
[9] = {["@name"] = "Handedness", ["@type"] = "Integer", ["@export_type"] = ""},
[10] = {["@name"] = "Boost", ["@type"] = "String", ["@export_type"] = "BoostField"},
[11] = {["@name"] = "Multiplier", ["@type"] = "Integer", ["@export_type"] = "BoostField"},
[12] = {["@name"] = "Comment", ["@type"] = "Comment", ["@export_type"] = ""},
[13] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@export_type"] = ""},
},
["ItemColor"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name"},
[1] = {["@name"] = "Primary Color", ["@type"] = "Color"},
[2] = {["@name"] = "Secondary Color", ["@type"] = "Color"},
[3] = {["@name"] = "Tertiary Color", ["@type"] = "Color"},
[4] = {["@name"] = "Comment", ["@type"] = "Comment"},
},
["ItemProgressionNames"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@table_name"] = ""},
[1] = {["@name"] = "ItemName", ["@type"] = "TranslatedString", ["@table_name"] = "ItemProgression"},
[2] = {["@name"] = "NameCool", ["@type"] = "TranslatedString", ["@table_name"] = "ItemProgression"},
[3] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@table_name"] = "ItemProgression"},
[4] = {["@name"] = "Comment", ["@type"] = "Comment", ["@table_name"] = ""},
[5] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@table_name"] = ""},
},
["Data"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name"},
[1] = {["@name"] = "Value", ["@type"] = "Float"},
[2] = {["@name"] = "Comment", ["@type"] = "Comment"},
},
["ItemTypes"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@export_type"] = ""},
[1] = {["@name"] = "Color", ["@type"] = "String", ["@export_type"] = ""},
[2] = {["@name"] = "OverlayTexture", ["@type"] = "String", ["@export_type"] = ""},
[3] = {["@name"] = "ValueMultiplier", ["@type"] = "Float", ["@export_type"] = ""},
[4] = {["@name"] = "FirstItemTypeShift", ["@type"] = "String", ["@export_type"] = ""},
[5] = {["@name"] = "SecondItemTypeShift", ["@type"] = "String", ["@export_type"] = ""},
[6] = {["@name"] = "UIBorderID", ["@type"] = "String", ["@export_type"] = ""},
[7] = {["@name"] = "MinLevel", ["@type"] = "Integer", ["@export_type"] = ""},
[8] = {["@name"] = "RowChance", ["@type"] = "Integer", ["@export_type"] = ""},
[9] = {["@name"] = "BoostTypes", ["@type"] = "String", ["@export_type"] = "BoostField"},
[10] = {["@name"] = "BoostType 2", ["@type"] = "String", ["@export_type"] = "BoostField"},
[11] = {["@name"] = "BoostType 3", ["@type"] = "String", ["@export_type"] = "BoostField"},
[12] = {["@name"] = "BoostType 4", ["@type"] = "String", ["@export_type"] = "BoostField"},
[13] = {["@name"] = "BoostType 5", ["@type"] = "String", ["@export_type"] = "BoostField"},
[14] = {["@name"] = "BoostType 6", ["@type"] = "String", ["@export_type"] = "BoostField"},
[15] = {["@name"] = "BoostType 7", ["@type"] = "String", ["@export_type"] = "BoostField"},
[16] = {["@name"] = "BoostType 8", ["@type"] = "String", ["@export_type"] = "BoostField"},
[17] = {["@name"] = "BoostType 9", ["@type"] = "String", ["@export_type"] = "BoostField"},
[18] = {["@name"] = "BoostType 10", ["@type"] = "String", ["@export_type"] = "BoostField"},
[19] = {["@name"] = "BoostType 11", ["@type"] = "String", ["@export_type"] = "BoostField"},
[20] = {["@name"] = "BoostType 12", ["@type"] = "String", ["@export_type"] = "BoostField"},
[21] = {["@name"] = "Comment", ["@type"] = "Comment", ["@export_type"] = ""},
[22] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@export_type"] = ""},
},
["Projectile"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "DamageSourceType"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "AddRangeFromAbility", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Ability"},
[18] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[20] = {["@name"] = "ExplodeRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "CanTargetCharacters", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[22] = {["@name"] = "CanTargetItems", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[23] = {["@name"] = "CanTargetTerrain", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[24] = {["@name"] = "ForceTarget", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[25] = {["@name"] = "AmountOfTargets", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "AutoAim", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[27] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "ForkingConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "UseCharacterStats", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "UseWeaponDamage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[31] = {["@name"] = "UseWeaponProperties", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[32] = {["@name"] = "ProjectileCount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "ProjectileDelay", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "Angle", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "Template", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "IgnoreVisionBlock", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[37] = {["@name"] = "TemplateCheck", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "CastCheckType"},
[38] = {["@name"] = "ChanceToPierce", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "MaxPierceCount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "MaxForkCount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "ForkLevels", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "ForkChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "CastAnimationCheck", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "CastCheckType"},
[53] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[54] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[55] = {["@name"] = "PreviewEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[56] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[57] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[58] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[59] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[60] = {["@name"] = "DivideDamage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[61] = {["@name"] = "ProjectileTerrainOffset", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[62] = {["@name"] = "MovingObject", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[63] = {["@name"] = "ProjectileType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ProjectileType"},
[64] = {["@name"] = "OverrideMinAP", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[65] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[66] = {["@name"] = "Stealth Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[67] = {["@name"] = "Distance Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[68] = {["@name"] = "HeightOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[69] = {["@name"] = "SpawnObject", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[70] = {["@name"] = "SpawnEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[71] = {["@name"] = "SpawnFXOverridesImpactFX", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[72] = {["@name"] = "SpawnLifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[73] = {["@name"] = "AiCalculationSkillOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[74] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["ProjectileStrike"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "DamageSourceType"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "AddRangeFromAbility", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Ability"},
[18] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[20] = {["@name"] = "ExplodeRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "StrikeCount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "StrikeDelay", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "CanTargetCharacters", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[24] = {["@name"] = "CanTargetItems", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[25] = {["@name"] = "CanTargetTerrain", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[26] = {["@name"] = "ForceTarget", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[27] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "OverrideSkillLevel", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[29] = {["@name"] = "UseCharacterStats", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "UseWeaponDamage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[31] = {["@name"] = "UseWeaponProperties", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[32] = {["@name"] = "TargetProjectiles", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[33] = {["@name"] = "ProjectileCount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "ProjectileDelay", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "Angle", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "Height", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "SingleSource", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[38] = {["@name"] = "Template", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "MaxForkCount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "ForkLevels", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "ForkChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "PreviewEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[54] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[55] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[56] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[57] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[58] = {["@name"] = "ProjectileType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ProjectileType"},
[59] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[60] = {["@name"] = "Distribution", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "ProjectileDistribution"},
[61] = {["@name"] = "Shuffle", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[62] = {["@name"] = "PreviewStrikeHits", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[63] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Target"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "DamageSourceType"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "AddWeaponRange", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "IsMelee", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[21] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "CanTargetCharacters", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[24] = {["@name"] = "CanTargetItems", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[25] = {["@name"] = "CanTargetTerrain", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[26] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "AoEConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "UseCharacterStats", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[31] = {["@name"] = "UseWeaponDamage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[32] = {["@name"] = "UseWeaponProperties", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[33] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "CastSelfAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "PreviewEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "WeaponBones", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "TargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "TargetGroundEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "PositionEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "BeamEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "SkillEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "CleanseStatuses", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[54] = {["@name"] = "StatusClearChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[55] = {["@name"] = "Autocast", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[56] = {["@name"] = "IgnoreVisionBlock", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[57] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[58] = {["@name"] = "Stealth Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[59] = {["@name"] = "OverrideMinAP", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[60] = {["@name"] = "AmountOfTargets", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[61] = {["@name"] = "AiCalculationSkillOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[62] = {["@name"] = "IgnoreHeight", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[63] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Cone"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "DamageSourceType"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "Angle", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[19] = {["@name"] = "SurfaceType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Surface Type"},
[20] = {["@name"] = "IgnoreCursed", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "SurfaceLifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "SurfaceStatusChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "SurfaceGrowStep", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SurfaceGrowInterval", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "UseWeaponDamage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[27] = {["@name"] = "UseWeaponProperties", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[28] = {["@name"] = "CanTargetCharacters", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[29] = {["@name"] = "CanTargetItems", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "PushDistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[49] = {["@name"] = "BackStart", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "FrontOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "OverrideMinAP", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[52] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Zone"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "DamageSourceType"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[17] = {["@name"] = "SurfaceType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Surface Type"},
[18] = {["@name"] = "IgnoreCursed", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "SurfaceLifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "SurfaceStatusChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "SurfaceGrowStep", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "SurfaceGrowInterval", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "UseWeaponDamage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[25] = {["@name"] = "UseWeaponProperties", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[26] = {["@name"] = "CanTargetCharacters", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[27] = {["@name"] = "CanTargetItems", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[28] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "PushDistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[47] = {["@name"] = "Shape", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "BackStart", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "FrontOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "Base", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "Angle", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["MultiStrike"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[19] = {["@name"] = "MaxAttacks", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "NextAttackChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "NextAttackChanceDivider", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "EndPosRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "JumpDelay", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "UseWeaponDamage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[28] = {["@name"] = "UseWeaponProperties", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[29] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "PrepareEffectBone", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "MaleImpactEffects", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "FemaleImpactEffects", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "ReappearEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "ReappearEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[50] = {["@name"] = "OverrideMinAP", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[51] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Quake"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "TotalSurfaceCells", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "OverrideSkillLevel", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "SurfaceMinSpawnRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[22] = {["@name"] = "ShockWaveDuration", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MinSurfaces", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "MaxSurfaces", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SurfaceType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Surface Type"},
[26] = {["@name"] = "SurfaceGrowStep", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SurfaceGrowInterval", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "SurfaceLifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "SurfaceStatusChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "LandingEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "Skillbook", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[50] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Storm"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "OverrideSkillLevel", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[21] = {["@name"] = "HitRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "Lifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MinHitsPerTurn", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "MaxHitsPerTurn", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "HitDelay", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "TargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "StormEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "ImpactEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "Skillbook", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[48] = {["@name"] = "ProjectileSkills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Rush"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[17] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "HitRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "CanTargetCharacters", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "CanTargetItems", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "CanTargetTerrain", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[22] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "UseCharacterStats", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[24] = {["@name"] = "UseWeaponDamage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[25] = {["@name"] = "UseWeaponProperties", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[26] = {["@name"] = "ContinueOnKill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[27] = {["@name"] = "ContinueEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "WeaponBones", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "TargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "TargetCastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "TargetHitEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "StartTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "StopTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[52] = {["@name"] = "OverrideMinAP", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[53] = {["@name"] = "SurfaceType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Surface Type"},
[54] = {["@name"] = "SurfaceRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[55] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Jump"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "HitRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[19] = {["@name"] = "Damage On Jump", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "Damage On Landing", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "TeleportTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "PreviewEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "LandingEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[41] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Tornado"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "HitRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "RandomPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[20] = {["@name"] = "SurfaceType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Surface Type"},
[21] = {["@name"] = "SurfaceRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "SurfaceLifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "SurfaceStatusChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "PointsMaxOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "TargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "CleanseStatuses", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "StatusClearChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[46] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Wall"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaxDistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[19] = {["@name"] = "Lifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "GrowSpeed", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "GrowTimeout", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "SurfaceType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Surface Type"},
[23] = {["@name"] = "TotalSurfaceCells", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SurfaceGrowStep", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SurfaceGrowInterval", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SurfaceLifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SurfaceStatusChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "SourceTargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "TargetTargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "Template1", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Template2", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "Template3", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "SpawnEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[52] = {["@name"] = "PreviewEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Teleportation"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[20] = {["@name"] = "HitRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "Height", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "Acceleration", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "TeleportDelay", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "TeleportSelf", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[27] = {["@name"] = "TeleportSurface", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[28] = {["@name"] = "CanTargetCharacters", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[29] = {["@name"] = "CanTargetItems", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "CanTargetTerrain", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[31] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "PreviewEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "SelectedCharacterEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "SelectedObjectEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "SelectedPositionEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "DisappearEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "ReappearEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "ImpactEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "IgnoreVisionBlock", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[53] = {["@name"] = "ForceMove", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[54] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[55] = {["@name"] = "OverrideSkillLevel", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[56] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Path"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "SurfaceType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Surface Type"},
[12] = {["@name"] = "SurfaceRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "SurfaceLifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "SurfaceStatusChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "MaxDistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "Offset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "HitRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "Height", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "TravelSpeed", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "TargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "FlyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "ImpactEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "Skillbook", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Rain"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Lifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "SurfaceType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Surface Type"},
[13] = {["@name"] = "SurfaceLifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "SurfaceStatusChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Qualifier"},
[16] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[19] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[20] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "UseCharacterStats", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[24] = {["@name"] = "UseWeaponDamage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[25] = {["@name"] = "UseWeaponProperties", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[26] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "TotalSurfaceCells", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "SurfaceGrowStep", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "SurfaceGrowInterval", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "TargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "RainEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "Atmosphere", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AtmosphereType"},
[50] = {["@name"] = "ConsequencesStartTime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "ConsequencesDuration", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[53] = {["@name"] = "AiCalculationSkillOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[54] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Summon"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Lifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "SummonLevel", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "AoEConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "Template", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "TemplateAdvanced", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "TemplateOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "Totem", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[24] = {["@name"] = "LinkTeleports", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[25] = {["@name"] = "TeleportsUseCount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SummonCount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "TargetCastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "TargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "Skillbook", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[45] = {["@name"] = "AiCalculationSkillOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Shout"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Damage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "DamageSourceType"},
[12] = {["@name"] = "Damage Multiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "Damage Range", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "DamageType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Damage Type"},
[15] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "AddWeaponRange", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[19] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "AoEConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[21] = {["@name"] = "UseCharacterStats", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[22] = {["@name"] = "UseWeaponDamage", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[23] = {["@name"] = "UseWeaponProperties", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[24] = {["@name"] = "Autocast", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[25] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "HitEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "WeaponBones", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "CleanseStatuses", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "StatusClearChance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[47] = {["@name"] = "PushDistance", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "CanTargetCharacters", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[49] = {["@name"] = "CanTargetItems", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[50] = {["@name"] = "PushPullEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "IgnoreVisionBlock", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[52] = {["@name"] = "AiCalculationSkillOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "IgnoreSilence", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[54] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Dome"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "Level", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[3] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "IsEnemySkill", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "Ability", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillAbility"},
[6] = {["@name"] = "Tier", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillTier"},
[7] = {["@name"] = "Requirement", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SkillRequirement"},
[8] = {["@name"] = "ActionPoints", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Cooldown", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "AIFlags", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AIFlags"},
[11] = {["@name"] = "Lifetime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "SkillProperties", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[19] = {["@name"] = "TargetRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[20] = {["@name"] = "UseCharacterStats", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "AreaRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "Requirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MemorizationRequirements", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "StatsDescription", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "StatsDescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[29] = {["@name"] = "FXScale", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[30] = {["@name"] = "PrepareAnimationInit", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "PrepareAnimationLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "PrepareEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "CastAnimation", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "CastTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "CastEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "CastEffectTextEvent", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "TargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "Memory Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "Magic Cost", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "DomeEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "Stealth", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "CycleConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_CONSUME"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "Items", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "WeaponOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "ResetCooldowns", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "ResetOncePerCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[49] = {["@name"] = "ScaleWithVitality", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[50] = {["@name"] = "LeaveAction", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "DieAction", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "ForceStackOverwrite", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[53] = {["@name"] = "Toggle", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
},
["Status_DAMAGE"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "DamageEvent", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "StatusEvent"},
[46] = {["@name"] = "DamageStats", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[48] = {["@name"] = "DamageCharacters", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[49] = {["@name"] = "DamageItems", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[50] = {["@name"] = "DamageTorches", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[51] = {["@name"] = "PermanentOnTorch", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[52] = {["@name"] = "SpawnBlood", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[53] = {["@name"] = "ScaleWithVitality", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[54] = {["@name"] = "TickSFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_HEAL"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "HealStat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "StatusHealType"},
[45] = {["@name"] = "HealType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "HealValueType"},
[46] = {["@name"] = "HealValue", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "AbsorbSurfaceType", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "AbsorbSurfaceRange", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[49] = {["@name"] = "BonusFromAbility", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Ability"},
[50] = {["@name"] = "HealEffectId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "VampirismType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "VampirismType"},
[52] = {["@name"] = "Necromantic", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
},
["Status_HEALING"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "OverrideDefaultDescription", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[9] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[11] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[12] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[17] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[22] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[29] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[30] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[31] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[45] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "HealingEvent", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "StatusEvent"},
[47] = {["@name"] = "HealStat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "StatusHealType"},
[48] = {["@name"] = "HealType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "HealValueType"},
[49] = {["@name"] = "HealValue", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "SkipInitialEffect", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[51] = {["@name"] = "AbsorbSurfaceType", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "AbsorbSurfaceRange", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "HealEffectId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[54] = {["@name"] = "Necromantic", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
},
["Status_FEAR"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_POLYMORPHED"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "PolymorphResult", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "DisableInteractions", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[47] = {["@name"] = "AiCalculationSkillOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[48] = {["@name"] = "Toggle", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[49] = {["@name"] = "RetainSkills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_KNOCKED_DOWN"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Instant", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
},
["Status_STANCE"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_INCAPACITATED"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "FreezeTime", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "ApplyStatusOnTick", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_BLIND"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_GUARDIAN_ANGEL"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "DamagePercentage", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
},
["Status_DAMAGE_ON_MOVE"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "DamageEvent", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "StatusEvent"},
[46] = {["@name"] = "DamageStats", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "DeathType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "Death Type"},
[48] = {["@name"] = "DamageCharacters", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[49] = {["@name"] = "DamageItems", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[50] = {["@name"] = "DamageTorches", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[51] = {["@name"] = "PermanentOnTorch", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[52] = {["@name"] = "SpawnBlood", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[53] = {["@name"] = "TickSFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_DEMONIC_BARGAIN"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_CHALLENGE"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "DescriptionCaster", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionTarget", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[13] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[16] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[17] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[18] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[22] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[28] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[29] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[30] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[31] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "WinBoost", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "LoseBoost", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_FLOATING"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Items", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "OnlyWhileMoving", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
},
["Status_THROWN"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[43] = {["@name"] = "Items", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_DISARMED"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_HEAL_SHARING"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_HEAL_SHARING_CASTER"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "BeamEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "HealMultiplier", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
},
["Status_ACTIVE_DEFENSE"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Items", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "WeaponOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "ResetCooldowns", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "ResetOncePerCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[48] = {["@name"] = "ScaleWithVitality", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[49] = {["@name"] = "TargetEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "Projectile", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "Radius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "Charges", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[53] = {["@name"] = "DefendTargetPosition", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[54] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_SPARK"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Items", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "WeaponOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "ResetCooldowns", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "ResetOncePerCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[48] = {["@name"] = "ScaleWithVitality", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[49] = {["@name"] = "Projectile", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[50] = {["@name"] = "Radius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[51] = {["@name"] = "Charges", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[52] = {["@name"] = "TargetConditions", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_PLAY_DEAD"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Items", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "WeaponOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "ResetCooldowns", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "ResetOncePerCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[48] = {["@name"] = "ScaleWithVitality", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[49] = {["@name"] = "FreezeCooldowns", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
},
["Status_INVISIBLE"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Items", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "WeaponOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "ResetCooldowns", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "ResetOncePerCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[48] = {["@name"] = "ScaleWithVitality", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
},
["Status_DEACTIVATED"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Items", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "WeaponOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "ResetCooldowns", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "ResetOncePerCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[48] = {["@name"] = "ScaleWithVitality", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
},
["Status_EFFECT"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[9] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "BeamEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "PlayerSameParty", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[13] = {["@name"] = "PlayerHasTag", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "PeaceOnly", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
},
["Status_EXTRA_TURN"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[44] = {["@name"] = "Items", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[45] = {["@name"] = "WeaponOverride", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[46] = {["@name"] = "ResetCooldowns", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[47] = {["@name"] = "ResetOncePerCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[48] = {["@name"] = "ScaleWithVitality", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
},
["Status_CHARMED"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_MUTED"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
["Status_DECAYING_TOUCH"] = {
[0] = {["@name"] = "Name", ["@type"] = "Name", ["@enumeration_type_name"] = ""},
[1] = {["@name"] = "Using", ["@type"] = "BaseClass", ["@enumeration_type_name"] = ""},
[2] = {["@name"] = "ForGameMaster", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[3] = {["@name"] = "InitiateCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[4] = {["@name"] = "BringIntoCombat", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[5] = {["@name"] = "DisplayName", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[6] = {["@name"] = "Description", ["@type"] = "TranslatedString", ["@enumeration_type_name"] = ""},
[7] = {["@name"] = "DescriptionParams", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[8] = {["@name"] = "Icon", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[9] = {["@name"] = "FormatColor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "FormatStringColor"},
[10] = {["@name"] = "ForceOverhead", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[11] = {["@name"] = "ApplyEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[12] = {["@name"] = "StatusEffect", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[13] = {["@name"] = "StatusEffectOverrideForItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[14] = {["@name"] = "StatusEffectOnTurn", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[15] = {["@name"] = "MaterialType", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "MaterialType"},
[16] = {["@name"] = "Material", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[17] = {["@name"] = "MaterialApplyBody", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[18] = {["@name"] = "MaterialApplyArmor", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[19] = {["@name"] = "MaterialApplyWeapon", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[20] = {["@name"] = "MaterialApplyNormalMap", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[21] = {["@name"] = "MaterialFadeAmount", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[22] = {["@name"] = "MaterialOverlayOffset", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[23] = {["@name"] = "MaterialParameters", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[24] = {["@name"] = "SoundStart", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[25] = {["@name"] = "SoundLoop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[26] = {["@name"] = "SoundStop", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[27] = {["@name"] = "SavingThrow", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "SavingThrow"},
[28] = {["@name"] = "ImmuneFlag", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "AttributeFlag"},
[29] = {["@name"] = "IsChanneled", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[30] = {["@name"] = "StatsId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[31] = {["@name"] = "StackId", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[32] = {["@name"] = "StackPriority", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[33] = {["@name"] = "AuraRadius", ["@type"] = "Integer", ["@enumeration_type_name"] = ""},
[34] = {["@name"] = "AuraSelf", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[35] = {["@name"] = "AuraAllies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[36] = {["@name"] = "AuraNeutrals", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[37] = {["@name"] = "AuraEnemies", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[38] = {["@name"] = "AuraItems", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[39] = {["@name"] = "AuraFX", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[40] = {["@name"] = "SurfaceChange", ["@type"] = "String", ["@enumeration_type_name"] = ""},
[41] = {["@name"] = "IsInvulnerable", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[42] = {["@name"] = "IsResistingDeath", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[43] = {["@name"] = "LoseControl", ["@type"] = "Enumeration", ["@enumeration_type_name"] = "YesNo"},
[44] = {["@name"] = "Skills", ["@type"] = "String", ["@enumeration_type_name"] = ""},
},
},
}
|
local config = {
{position = Position(32836, 32288, 14), itemId = 1387, transformId = 6299},
{position = Position(32836, 32278, 14), itemId = 1946, transformId = 1945},
{position = Position(32834, 32285, 14), itemId = 1946, transformId = 1945}
}
local tokens = {
{position = Position(32845, 32264, 14), itemId = 2639},
{position = Position(32843, 32266, 14), itemId = 2639},
{position = Position(32843, 32268, 14), itemId = 2639},
{position = Position(32845, 32268, 14), itemId = 2639},
{position = Position(32844, 32267, 14), itemId = 2639},
{position = Position(32840, 32269, 14), itemId = 2639},
{position = Position(32841, 32269, 14), itemId = 2638},
{position = Position(32840, 32268, 14), itemId = 2638},
{position = Position(32842, 32267, 14), itemId = 2638}
}
function onStepIn(creature, item, position, fromPosition)
local player = creature:getPlayer()
if not player then
return true
end
local thing
for i = 1, #config do
thing = Tile(config[i].position):getItemById(config[i].itemId)
if thing then
thing:transform(config[i].transformId)
end
end
local token
for i = 1, #tokens do
token = Tile(tokens[i].position):getItemById(tokens[i].itemId)
if token then
token:remove()
end
end
player:teleportTo(Position(32874, 32275, 14))
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
return true
end
|
-- パラメータ : R[Ω](省略時1) C[F](省略時1) ダイオードの電圧降下[V](省略時0)
function process(data, sample_rate, parameters)
r = tonumber(parameters[1] or 1)
c = tonumber(parameters[2] or 1)
offset = tonumber(parameters[3] or 0)
result = {}
for ch = 1, #data do
result[ch] = {}
denatu = 0
for i = 1, #data[ch] do
if data[ch][i] >= denatu + offset then
denatu = data[ch][i] - offset
else
denatu = denatu - ((denatu / r) / sample_rate) / c
end
result[ch][i] = denatu
end
end
return result
end
|
minetest.register_alias("generator_mv", "technic:generator_mv")
minetest.register_craft({
output = 'technic:mv_generator',
recipe = {
{'technic:lv_generator','technic:lv_generator'},
}
})
technic.register_generator({tier="MV", tube=1, supply=600})
|
--[[ This program read left signal and print to the right connector ]]
function loop()
--[[ Get the user input ]]
local inputSignals = lan.getLeftSignals()
local outputSignals = {}
--[[ Change values ]]
for i, signal in pairs(inputSignals) do
outputSignals[i] = {
signal = signal.signal,
count = signal.count + math.random(5)
}
end
--[[ Write output signals ]]
lan.setRightSignals(outputSignals)
os.wait(loop, 1)
end
loop()
|
module("luci.controller.software", package.seeall)
function index()
if nixio.fs.access("/bin/opkg") then
entry({"admin", "system", "packages"}, call("action_packages"), _("Software"), 10)
entry({"admin", "system", "packages", "ipkg"}, form("admin_system/ipkg"))
end
end
function action_packages()
local ipkg = require("luci.model.ipkg")
local submit = luci.http.formvalue("submit")
local changes = false
local install = { }
local remove = { }
local stdout = { "" }
local stderr = { "" }
local out, err
-- Display
local display = luci.http.formvalue("display") or "installed"
-- Letter
local letter = string.byte(luci.http.formvalue("letter") or "A", 1)
letter = (letter == 35 or (letter >= 65 and letter <= 90)) and letter or 65
-- Search query
local query = luci.http.formvalue("query")
query = (query ~= '') and query or nil
-- Packets to be installed
local ninst = submit and luci.http.formvalue("install")
local uinst = nil
-- Install from URL
local url = luci.http.formvalue("url")
if url and url ~= '' and submit then
uinst = url
end
-- Do install
if ninst then
install[ninst], out, err = ipkg.install(ninst)
stdout[#stdout+1] = out
stderr[#stderr+1] = err
changes = true
end
if uinst then
local pkg
for pkg in luci.util.imatch(uinst) do
install[uinst], out, err = ipkg.install(pkg)
stdout[#stdout+1] = out
stderr[#stderr+1] = err
changes = true
end
end
-- Remove packets
local rem = submit and luci.http.formvalue("remove")
if rem then
remove[rem], out, err = ipkg.remove(rem)
stdout[#stdout+1] = out
stderr[#stderr+1] = err
changes = true
end
-- Update all packets
local update = luci.http.formvalue("update")
if update then
update, out, err = ipkg.update()
stdout[#stdout+1] = out
stderr[#stderr+1] = err
end
-- Upgrade all packets
local upgrade = luci.http.formvalue("upgrade")
if upgrade then
upgrade, out, err = ipkg.upgrade()
stdout[#stdout+1] = out
stderr[#stderr+1] = err
end
-- List state
local no_lists = true
local old_lists = false
local tmp = nixio.fs.dir("/var/opkg-lists/")
if tmp then
for tmp in tmp do
no_lists = false
tmp = nixio.fs.stat("/var/opkg-lists/"..tmp)
if tmp and tmp.mtime < (os.time() - (24 * 60 * 60)) then
old_lists = true
break
end
end
end
luci.template.render("admin_system/packages", {
display = display,
letter = letter,
query = query,
install = install,
remove = remove,
update = update,
upgrade = upgrade,
no_lists = no_lists,
old_lists = old_lists,
stdout = table.concat(stdout, ""),
stderr = table.concat(stderr, "")
})
-- Remove index cache
if changes then
nixio.fs.unlink("/tmp/luci-indexcache")
end
end
|
local function AllReduceEA(tree, tau, alpha)
-- Keep track of how many steps each node does per epoch
local step = 0
-- Keep track of the center point (also need space for the delta)
local center,delta,flatParam
-- Clone the parameters to use a center point
local function oneTimeInit(params)
if not center then
center = { }
delta = { }
flatParam = { }
tree.walkTable(params, function(param)
table.insert(center, param:clone())
table.insert(delta, param:clone())
table.insert(flatParam, param)
end)
end
end
-- Average the parameters according to http://arxiv.org/abs/1412.6651
local function averageParameters(params)
-- First time we need to initialize the center point and delta
oneTimeInit(params)
-- This node contributed to this step
step = step + 1
-- If its time to run an average
if step % tau == 0 then
-- Compute our elastic difference (delta)
-- and move this node towards the center point
local i = 1
tree.walkTable(params, function(param)
delta[i]:add(param, -1, center[i]):mul(alpha)
param:add(-1, delta[i])
i = i + 1
end)
-- AllReduce the elastic differences
tree.allReduce(delta, function(a, b) return a:add(b) end)
-- Move the center point towards the nodes
for i = 1,#center do
center[i]:add(delta[i])
end
end
end
-- Do some fanciness to get all the nodes to the same point
local function handleUnevenSteps(params)
-- Only need to synchronize nodes if we have done at least one step
if step > 0 then
-- Wow, this is expressed terribly
-- Do one final all reduce to get all the nodes in sync
for i = 1,#delta do
delta[i]:fill(0)
end
tree.allReduce(delta,
function(a, b) return a:add(b) end,
function(_, i)
-- Move the center point towards the nodes
center[i]:add(delta[i])
-- Compute our elastic difference (delta)
-- and move this node towards the center point
delta[i]:add(flatParam[i], -1, center[i]):mul(alpha)
flatParam[i]:add(-1, delta[i])
return delta[i]
end)
-- Reset step counter
step = 0
end
end
-- Ensure the same exact center point is on every node
-- Call at the end of epoch (or at any point you desire)
-- Over time the center points will drift a bit due to floating point error accumulation
local function synchronizeCenter(params)
-- First time we need to initialize the center point and delta
oneTimeInit(params)
-- Handle uneven # of steps per node
handleUnevenSteps(params)
-- Scatter the center point
tree.scatter(center)
end
-- At any point in time you can force the same parameters on all nodes
local function synchronizeParameters(params)
-- First time we need to initialize the center point and delta
oneTimeInit(params)
-- Handle uneven # of steps per node
handleUnevenSteps(params)
-- Scatter the parameters
tree.scatter(params)
-- Reset the center to the parameters
local i = 1
tree.walkTable(params, function(param)
center[i]:copy(param)
i = i + 1
end)
end
return {
averageParameters = averageParameters,
synchronizeCenter = synchronizeCenter,
synchronizeParameters = synchronizeParameters,
}
end
return AllReduceEA
|
-- Small adaptations that makes API to wrapped COPAS sockets more similar to
-- ordinary luasockets.
local socket = require "socket"
local copas = require "copas"
local wrapped = {}
local copas_org_index
local copasmeta
local function create_wrapped(key)
return function(self, ...)
return self.socket[key](self.socket, ...)
end
end
function wrapped.settimeout(self, timeout)
self.timeout = timeout
return 1
end
function wrapped.receive(self, pattern, prefix)
if self.timeout == 0 then
local s, err, part = copas.receivePartial(self.socket, pattern)
if not s and prefix and part then
return s, err, prefix .. part
end
return s, err, part
end
return copas.receive(self.socket, pattern, prefix)
end
function wrapped.connect(self, host, port)
local success, err = copas.connect(self.socket, host, port)
if not success then
if err == "already connected" then
return 1
end
end
return success, err
end
local function lookup(self, key)
local v = wrapped[key]
if v ~= nil then
return v
end
if type(copas_org_index) == "function" then
v = copas_org_index(self, key)
else
v = copas_org_index[key]
end
if type(v) == "function" then
wrapped[key] = v
end
if v ~= nil then
return v
end
v = self.socket[key]
if type(v) == "function" then
v = create_wrapped(key)
wrapped[key] = v
end
return v
end
function copas.tcpwrap(skt)
local wrapped = copas.wrap(skt)
if not copasmeta then
copasmeta = {}
local meta = getmetatable(wrapped)
for k,v in pairs(meta) do
if k ~= "__index" then
copasmeta[k] = v
end
end
copas_org_index = meta.__index
copasmeta.__index = lookup
end
setmetatable(wrapped, copasmeta)
return wrapped
end
-- Wrap TCP socket creation/connection so it works inside COPAS
local function wraptcp()
local tcpskt, err = socket.tcp()
if not tcpskt then
return tcpskt, err
end
return copas.tcpwrap(tcpskt)
end
return wraptcp
|
function _logout(self)
local sock = self.sock
if not sock then
return nil, "not initialized"
end
self.state = nil
if self.state == STATE_CONNECTED then
-- Graceful shutdown
local headers = {}
headers["receipt"] = "disconnect"
sock:send(_build_frame(self, "DISCONNECT", headers, nil))
sock:receive("*a")
end
return sock:close()
end
--[[
这是一段有史以来我见过最'Graceful'的代码, 上面的注释是作者自己加入进去的.
出处来源于这里: https://github.com/Loc-Tran/lua-resty-rabbitmqstomp/blob/v0.1/lib/resty/rabbitmqstomp.lua
]]
|
-----------------------------------------
-- ID: 4198
-- Item: Copy of "Ginuva's Battle Theory"
-- Grants 50 - 200 EXP
-- Does not grant Limit Points.
--
-----------------------------------------
require("scripts/globals/status")
-----------------------------------------
function onItemCheck(target)
local check = 56
if (target:getMainLvl() >= 65) then
check = 0
end
return check
end
function onItemUse(target)
target:addExp(EXP_RATE * math.random(50, 200))
end
|
local awful = require("awful")
local gears = require("gears")
local wibox = require("wibox")
local beautiful = require("beautiful")
local dpi = beautiful.xresources.apply_dpi
-- Set colors
local active_color = {
type = 'linear',
from = {0, 0},
to = {200, 50}, -- replace with w,h later
stops = {{0, beautiful.xcolor4}, {0.75, beautiful.xcolor12}}
}
local background_color = beautiful.xbackground
local cpu_bar = wibox.widget {
max_value = 100,
value = 50,
forced_height = dpi(10),
margins = {top = dpi(8), bottom = dpi(8)},
forced_width = dpi(200),
shape = gears.shape.rounded_bar,
bar_shape = gears.shape.rounded_bar,
color = active_color,
background_color = background_color,
border_width = 0,
border_color = beautiful.border_color,
widget = wibox.widget.progressbar
}
awesome.connect_signal("watches::cpu", function(value)
-- Use this if you want to display usage percentage
cpu_bar.value = value
-- Use this if you want to display idle percentage
-- cpu_bar.value = tonumber(100 - value)
end)
return cpu_bar
|
local utils = {}
function utils.make_data_parallel(model, first_gpu_id, n_gpus)
if n_gpus < 2 then
return model
end
assert(n_gpus <= cutorch.getDeviceCount(), 'number of GPUs less than n_gpus specified')
local gpu_table = torch.range(first_gpu_id, first_gpu_id + n_gpus - 1):totable()
local fastest, benchmark = cudnn.fastest, cudnn.benchmark
local dpt = nn.DataParallelTable(1, true):add(model, gpu_table):threads(
function()
require 'cudnn'
cudnn.fastest = fastest
cudnn.benchmark = benchmark
end)
dpt.gradInput = nil
model = dpt:cuda()
return model
end
function utils.get_cropping_box(box_width, box_height, image_width, image_height, position)
if position == 'c' then
local center_x = math.floor(image_width / 2)
local center_y = math.floor(image_height / 2)
local box_half_width = math.floor(box_width / 2)
local box_half_height = math.floor(box_height / 2)
return center_x - box_half_width + 1, center_y - box_half_height + 1,
center_x + box_half_width, center_y + box_half_height
elseif position == 'tl' then
return 1, 1, box_width, box_height
elseif position == 'tr' then
return image_width - box_width + 1, 1, image_width, box_height
elseif position == 'bl' then
return 1, image_height - box_height + 1, box_width, image_height
elseif position == 'br' then
return image_width - box_width + 1, image_height - box_height + 1, image_width, image_height
end
return 1, 1, 1, 1
end
return utils
|
ITEM.name = "AEK-971"
ITEM.description= "A Russian assault rifle. Fires 5.45x39mm."
ITEM.longdesc = "The AEK-971 is an experimental assault rifle released around the same time as the AN-94 'Abakan'.\nThe AN-94 was chosen over it, but it was still put into limited production.\nIt has a built-in recoil compensator, meaning its recoil is felt much less by the user.\nIt's a rare specimen since it was only given out to a few select groups of the military.\n\nAmmo: 5.45x39mm \nMagazine Capacity: 30"
ITEM.model = "models/weapons/w_rif_aek97.mdl"
ITEM.class = "cw_aek971"
ITEM.weaponCategory = "primary"
ITEM.price = 24200
ITEM.width = 5
ITEM.height = 2
ITEM.validAttachments = {"md_kobra","md_pso1","md_microt1","md_eotech","md_aimpoint","md_cmore","md_schmidt_shortdot","md_acog","md_reflex","md_pbs1","md_foregrip"}
ITEM.bulletweight = 0.011
ITEM.unloadedweight = 3.3
ITEM.repair_PartsComplexity = 2
ITEM.repair_PartsRarity = 2
function ITEM:GetWeight()
return self.unloadedweight + (self.bulletweight * self:GetData("ammo", 0))
end
ITEM.iconCam = {
pos = Vector(0.5, -205, 1),
ang = Angle(0, 87.058822631836, 2.3529412746429),
fov = 13,
}
ITEM.pacData = {
[1] = {
["children"] = {
[1] = {
["children"] = {
[1] = {
["children"] = {
},
["self"] = {
["Angles"] = Angle(180, 0, 0),
["Model"] = "models/weapons/w_rif_aek97.mdl",
["ClassName"] = "model",
["Position"] = Vector(14.702, -4.244, -1.16),
["EditorExpand"] = true,
["UniqueID"] = "3547696121",
["Bone"] = "spine 2",
["Name"] = "aek971",
},
},
},
["self"] = {
["AffectChildrenOnly"] = true,
["ClassName"] = "event",
["UniqueID"] = "2971273618",
["Event"] = "weapon_class",
["EditorExpand"] = true,
["Name"] = "weapon class find simple\"@@1\"",
["Arguments"] = "cw_aek971@@0",
},
},
},
["self"] = {
["ClassName"] = "group",
["UniqueID"] = "5153429652",
["EditorExpand"] = true,
},
},
}
|
local PLUGIN = PLUGIN
PLUGIN.name = "Merchant"
PLUGIN.author = "STEAM_0:1:29606990"
PLUGIN.description = "Adds a merchant of things."
-- Go away, asshole.
ix.config.Add("merchantInterval", 120, "Интервал обновлений ассортимента торговца (в минутах)",
function(_, newValue)
if (SERVER) then
if (timer.Exists("ixMerchantInterval")) then
timer.Adjust("ixMerchantInterval", newValue * 60, 0, PLUGIN.MerchantInterval)
else
timer.Create("ixMerchantInterval", newValue * 60, 0, PLUGIN.MerchantInterval)
end
end
end, {
data = {min = 1, max = 1440},
category = PLUGIN.name
})
function PLUGIN:CalculatePrice(item, isSellingToVendor, client)
local stockItem = ix.item.list[item.uniqueID]
if (!stockItem) then return 999999 end
local price = stockItem.price or 0
if (price > 0) then -- пропустить бесплатные предметы
if (isSellingToVendor) then -- продажа товара торговцу
if (item.GetSellPrice) then
price = item:GetSellPrice(price)
end
else -- покупка товара у торговца
price = hook.Run("MerchantItemBuyPrice", item, stockItem, price) or price
end
if (client) then
price = hook.Run("PlayerMerchantCalcPrice", client, price, isSellingToVendor) or price
end
if (CLIENT) then
if (input.IsShiftDown()) then
if (!self.nextRecalcPrice) then
local quantity = item.data.quantity or 1
if (quantity > 1) then
local diff = quantity - (stockItem.maxQuantity or 16)
if (diff > 0) then
quantity = quantity - diff
end
end
price = price * quantity
end
elseif (self.nextRecalcPrice) then
self.nextRecalcPrice = nil
end
end
end
return math.max(0, math.Round(price))
end
ix.util.Include("sv_plugin.lua")
if (CLIENT) then
PLUGIN.virtual_items = PLUGIN.virtual_items or {}
function PLUGIN:MakeVirtualItem(uniqueID, id)
if (self.virtual_items[id] and self.virtual_items[id].uniqueID == uniqueID) then
return self.virtual_items[id]
end
local stockItem = ix.item.list[uniqueID]
if (stockItem) then
local item = setmetatable({id = id, data = {}}, {
__index = stockItem,
__eq = stockItem.__eq,
__tostring = stockItem.__tostring
})
self.virtual_items[id] = item
return item
end
end
function PLUGIN:Think()
if (IsValid(ix.gui.merchant)) then
if (IsValid(ix.gui.menu) or !LocalPlayer():Alive() or !LocalPlayer():GetCharacter()) then
ix.gui.merchant:Remove()
end
end
end
-- Left mouse button + SHIFT
function PLUGIN:ItemPressedLeftShift(icon, item)
if (IsValid(ix.gui.merchant) and item) then
if (item.CanSell and item:CanSell() == false) then
return
end
net.Start("ixMerchantTrade")
net.WriteUInt(item:GetID(), 32)
net.WriteBool(true)
net.WriteBool(true)
net.SendToServer()
end
end
function PLUGIN:CreateItemInteractionMenu(_, menu, item)
if (IsValid(ix.gui.merchant) and item) then
if (item.CanSell and item:CanSell() == false) then
return
end
local price = PLUGIN:CalculatePrice(item, true, LocalPlayer())
if (!price or price < 1) then
price = ""
else
price = ix.currency.Get(price)
end
menu:AddOption(Format("%s %s", L"sell", price), function()
net.Start("ixMerchantTrade")
net.WriteUInt(item:GetID(), 32)
net.WriteBool(true)
net.WriteBool(false)
net.SendToServer()
end):SetImage("icon16/basket_put.png")
end
end
function PLUGIN:PopulateItemTooltip(tooltip, item)
if (IsValid(ix.gui.merchant) and !IsValid(item.entity)) then
if (item.invID and item.CanSell and item:CanSell() == false) then
return
end
local price = PLUGIN:CalculatePrice(item, item.invID and true or false, LocalPlayer())
local text
if (!price or price < 1) then
text = L"free":utf8upper()
else
text = ix.currency.Get(price)
end
if (!text) then return end
local panel = tooltip:AddRowAfter("name", "merchant_price")
panel:SetImportant()
panel:SetText(Format("%s: %s", L"price", text))
panel.lastText = panel:GetText()
panel.lastPrice = price or 0
panel:SetBackgroundColor(color_white)
panel:SizeToContents()
if (panel.lastPrice > 0) then
panel.Think = function(t)
if (input.IsShiftDown()) then
if (!t.nextRecalcPrice) then
t.nextRecalcPrice = true
local price = PLUGIN:CalculatePrice(item, item.invID and true or false, LocalPlayer())
local text
if (!price or price < 1) then
text = L"free":utf8upper()
else
text = ix.currency.Get(price)
end
if (text and t.lastPrice != price) then
t:SetText(Format("%s: %s", L"price", text))
t:SizeToContents()
tooltip:SizeToContents()
end
end
elseif (t.nextRecalcPrice) then
t.nextRecalcPrice = nil
t:SetText(t.lastText)
t:SizeToContents()
tooltip:SizeToContents()
end
end
end
end
end
net.Receive("ixMerchantSync", function()
local id = net.ReadUInt(32)
local isSelling = net.ReadBool()
local data = net.ReadTable()
if (!IsValid(ix.gui.merchant)) then return end
if (!isSelling) then
local item = PLUGIN.virtual_items[id]
if (item) then
ix.gui.merchant:TakeItem(id, item, data.data and data.data.quantity or 0)
end
else
ix.gui.merchant:AddItem(id, data)
ix.gui.merchant.entityItems[id] = data
end
end)
net.Receive("ixMerchantOpen", function()
local entity = net.ReadEntity()
if (!IsValid(entity)) then
return
end
local items = net.ReadTable()
local panel = vgui.Create("ixMerchant")
local character = LocalPlayer():GetCharacter()
-- Local Player --
panel:SetLocalInventory(character:GetInventory(), character:GetMoney())
-- Merchant
panel:SetupMerchant(items, entity)
end)
end
-- Предметы без мета-таблицы расчет цены по data.
function PLUGIN:MerchantItemBuyPrice(item, stockItem, price)
if (stockItem.useDurability) then
local durability = item.data and item.data.durability or (stockItem.defDurability or 100)
return price * (durability / (stockItem.defDurability or 100))
end
end
|
local ft = require "fort"
local ftable = ft.new()
-- setup header
ftable:set_cell_prop(1, ft.ANY_COLUMN, ft.CPROP_ROW_TYPE, ft.ROW_HEADER)
ftable:write_ln("N", "Driver", "Time", "Avg Speed")
ftable:write_ln("1", "Ricciardo", "1:25.945", "222.128")
ftable:write_ln("2", "Hamilton", "1:26.373", "221.027")
ftable:write_ln("3", "Verstappen", "1:26.469", "220.782")
print(ftable)
|
local json = require 'dkjson'
local util = require 'src.util'
function parse_nes_header(header)
assert(header{1,3} == "NES")
assert(header(4) == '\x1a')
-- print(table.unpack(header{1,4}:bin()))
-- print(header(4):bin())
local prg_size = header(5):byte() * 16
local chr_size = header(6):byte() * 8
local is_trainer = (header(7):byte() & 0x4) == 1
local mapper = (header(7):byte() & 0xF0) | (header(8):byte() & 0xF0)
return prg_size, chr_size, mapper, is_trainer
end
function find_instruction_by_opcode(definition, opcode)
for mnemonic,obj in pairs(definition) do
for i=1,#obj,1 do
if obj[i][4] == opcode then -- modify if additional fields are added
return mnemonic, table.unpack(obj[i])
end
end
end
print("opcode not found... (0x" .. string.format("%02X", opcode) .. ")")
end
function hex_transformer(definition)
for k1,v1 in pairs(definition) do
for k2,v2 in pairs(v1) do
for k3,v3 in pairs(v2) do
if(k3 == 4) then -- modify if additional fields are added
definition[k1][k2][k3] = tonumber(v3, 16)
end
end
end
end
return definition
end
function parse_definition()
local definition, pos, err = json.decode(util.load('src/6502-asm.json'):read('*all'), 1, nil)
if err then
print("Error:", err, pos)
return nil, err
else
return hex_transformer(definition)
end
end
---
-- this is the main parser function, it is the most important and utilizes all the functions above
---
function parse(definition, input, opts)
local prg_size, chr_size, mapper, is_trainer = parse_nes_header(input:read(16))
if is_trainer then
input:read(512)
end
local offset = 1
while offset <= prg_size * 1024 do
local opcode = input:read(1):byte()
local mnemonic, mode, illegal, format, hex, length, time = find_instruction_by_opcode(definition, opcode)
local str = format
if opts.upp then
str = string.upper(str)
else
str = string.lower(str)
end
local args = {}
if length - 1 > 0 then
args = util.reverse(input:read(length-1):bytes()) -- big endian -> small endian
end
for k,v in pairs(args) do
str = string.gsub(str, "%?%?", string.format("%02" + (opts.upp and "X" or "x"), v), 1)
end
-- [memory-address] [hex representation] [instruction] [arguments] ([mode]; [illegal])
if opts.mem then
io.write('XXXXXX ')
end
if opts.hex then
local str, changed = util.rpad(string.format("%02" + (opts.upp and "X" or "x"), opcode) .. " " .. (table.concat(args, " ")), 12, ' ')
io.write(str)
end
io.write((util.rpad(str, 16, ' ')))
if opts.mod and opts.ill then
io.write("(" .. mode .. (illegal == "illegal" and (" : " .. illegal) or "") .. ")")
elseif opts.mod and not opts.ill then
io.write("(" .. mode .. ")")
elseif opts.ill and not opts.mod then
if(illegal == "illegal") then
io.write("(" .. illegal .. ")")
end
end
io.write("\n")
offset = offset + length
end
end
return {
parse_nes_header = parse_nes_header,
find_instruction_by_opcode = find_instruction_by_opcode,
hex_transformer = hex_transformer,
parse_definition = parse_definition,
parse = parse
}
|
--
-- created with TexturePacker (http://www.codeandweb.com/texturepacker)
--
-- $TexturePacker:SmartUpdate:0436e54d857b01c0e5d4a516b99db7ce:5db429eb7daec012b5c00c7437ef8d21:cf8ab4992190eb44f97f06311ef326d7$
--
-- local sheetInfo = require("mysheet")
-- local myImageSheet = graphics.newImageSheet( "mysheet.png", sheetInfo:getSheet() )
-- local sprite = display.newSprite( myImageSheet , {frames={sheetInfo:getFrameIndex("sprite")}} )
--
local SheetInfo = {}
SheetInfo.sheet =
{
frames = {
{
-- 1
x=595,
y=1,
width=258,
height=462,
sourceX = 221,
sourceY = 37,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 2
x=487,
y=529,
width=54,
height=32,
sourceX = 600,
sourceY = 544,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 3
x=411,
y=189,
width=136,
height=278,
sourceX = 424,
sourceY = 212,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 4
x=855,
y=1,
width=86,
height=256,
sourceX = 516,
sourceY = 224,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 5
x=431,
y=469,
width=82,
height=58,
sourceX = 470,
sourceY = 172,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 6
x=217,
y=623,
width=22,
height=14,
sourceX = 466,
sourceY = 185,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 7
x=275,
y=525,
width=54,
height=66,
sourceX = 402,
sourceY = 175,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 8
x=395,
y=419,
width=14,
height=20,
sourceX = 443,
sourceY = 191,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 9
x=395,
y=469,
width=34,
height=96,
sourceX = 472,
sourceY = 62,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 10
x=331,
y=525,
width=54,
height=42,
sourceX = 381,
sourceY = 143,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 11
x=387,
y=567,
width=26,
height=32,
sourceX = 451,
sourceY = 186,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 12
x=783,
y=503,
width=38,
height=28,
sourceX = 458,
sourceY = 139,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 13
x=1,
y=1,
width=592,
height=186,
sourceX = 184,
sourceY = 401,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 14
x=1,
y=189,
width=408,
height=228,
sourceX = 137,
sourceY = 388,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 15
x=1,
y=419,
width=272,
height=140,
sourceX = 593,
sourceY = 412,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 16
x=1,
y=561,
width=152,
height=48,
sourceX = 733,
sourceY = 517,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 17
x=1,
y=611,
width=146,
height=42,
sourceX = 417,
sourceY = 587,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 18
x=783,
y=533,
width=108,
height=24,
sourceX = 123,
sourceY = 378,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 19
x=253,
y=593,
width=106,
height=34,
sourceX = 553,
sourceY = 589,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 20
x=783,
y=465,
width=62,
height=36,
sourceX = 717,
sourceY = 560,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 21
x=149,
y=623,
width=66,
height=20,
sourceX = 616,
sourceY = 504,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 22
x=431,
y=529,
width=54,
height=38,
sourceX = 486,
sourceY = 524,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 23
x=275,
y=419,
width=118,
height=104,
sourceX = 372,
sourceY = 51,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 24
x=155,
y=561,
width=96,
height=60,
sourceX = 426,
sourceY = 140,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 25
x=395,
y=441,
width=10,
height=10,
sourceX = 440,
sourceY = 149,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 26
x=331,
y=569,
width=38,
height=14,
sourceX = 463,
sourceY = 478,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 27
x=515,
y=469,
width=28,
height=10,
sourceX = 532,
sourceY = 465,
sourceWidth = 960,
sourceHeight = 672
},
{
-- 28
x=549,
y=465,
width=232,
height=96,
sourceX = 513,
sourceY = 512,
sourceWidth = 960,
sourceHeight = 672
},
},
sheetContentWidth = 960,
sheetContentHeight = 672
}
SheetInfo.frameIndex =
{
["1"] = 1,
["2"] = 2,
["3"] = 3,
["4"] = 4,
["5"] = 5,
["6"] = 6,
["7"] = 7,
["8"] = 8,
["9"] = 9,
["10"] = 10,
["11"] = 11,
["12"] = 12,
["13"] = 13,
["14"] = 14,
["15"] = 15,
["16"] = 16,
["17"] = 17,
["18"] = 18,
["19"] = 19,
["20"] = 20,
["21"] = 21,
["22"] = 22,
["23"] = 23,
["24"] = 24,
["25"] = 25,
["26"] = 26,
["27"] = 27,
["28"] = 28,
}
function SheetInfo:getSheet()
return self.sheet;
end
function SheetInfo:getFrameIndex(name)
return self.frameIndex[name];
end
return SheetInfo
|
if util.is_profile_field_locked(app.session.member, "login") then
error("access denied")
end
local login = param.get("login")
login = util.trim(login)
if #login < 3 then
slot.put_into(_error, _"This login is too short!")
end
app.session.member.login = login
local db_error = app.session.member:try_save()
if db_error then
if db_error:is_kind_of("IntegrityConstraintViolation.UniqueViolation") then
slot.put_into("error", _"This login is already taken, please choose another one!")
return false
end
db_error:escalate()
end
slot.put_into("notice", _("Your login has been changed to '#{login}'", { login = login }))
|
-- Copyright (c) 2010-2011 by Robert G. Jakabosky <bobby@neoawareness.com>
--
-- 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, sublicense, 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.
local acceptor = require'handler.acceptor'
local ev = require'ev'
local loop = ev.Loop.default
local tcp_client_mt = {
handle_error = function(self, err)
print('tcp_client.error:', self, err)
self.timer:stop(loop)
end,
handle_connected = function(self)
print('tcp_client.connected:', self)
end,
handle_data = function(self, data)
print('tcp_client.data:', self, data)
end,
handle_timer = function(self)
self.sock:send('ping\n')
end,
}
tcp_client_mt.__index = tcp_client_mt
-- new tcp client
local function new_tcp_client(sock)
print('new_tcp_client:', sock)
local self = setmetatable({ sock = sock }, tcp_client_mt)
sock:sethandler(self)
-- create timer watcher
self.timer = ev.Timer.new(function()
self:handle_timer()
end, 1.0, 1.0)
self.timer:start(loop)
return self
end
-- new tcp server
local function new_server(port, handler, tls)
print('New tcp server listen on: ' .. port)
if tls then
return acceptor.tls_tcp(loop, handler, '*', port, tls, 1024)
else
return acceptor.tcp(loop, handler, '*', port, 1024)
end
end
local port = arg[1] or 4081
local key = arg[2] or 'examples/localhost.key'
local cert = arg[3] or 'examples/localhost.cert'
-- create server-side TLS Context.
local tls = nixio.tls'server'
assert(tls:set_key(key))
assert(tls:set_cert(cert))
local server = new_server(port, new_tcp_client, tls)
loop:loop()
|
--[[
README:
goto my repository https://github.com/zhang-changwei/Automation-scripts-for-Aegisub for the latest version
]]
script_name="C XML Analyzer"
script_description="XML Analyzer v1.4.3"
script_author="chaaaaang"
script_version="1.4.3"
local xmlsimple = require("xmlSimple").newParser()
local lfs = require "lfs"
local clipboard = require("aegisub.clipboard")
function simulator(subtitle, selected, active)
local path = aegisub.dialog.open('XML Analyzer', '', '', 'XML files (.xml)|*.xml|All Files (.)|.', false, true)
local path_head = path:gsub("[^\\]*%.xml$","")
local xml = xmlsimple:loadFile(path)
local events = xml.BDN.Events
local N = #subtitle + 1
-- local event_count = xml.BDN.Description.Events["@NumberofEvents"]
local event_count = #events.Event
local fps = xml.BDN.Description.Format["@FrameRate"]
event_count,fps = tonumber(event_count),tonumber(fps)
if fps==23.976 then fps=24000/1001
elseif fps==29.97 then fps=30000/1001 end
local intc,outtc = nil,nil
-- local x,y,h,w=1920,1080,0,0
local count = 0 -- max: 64
local buffer = 0 -- buffer: 4M
local BUFFER_MAX = 4*1024*1024
local line = subtitle[#subtitle]
line.actor = "G"
line.text = ""
line.comment = true
local data = {}
for i=1,event_count do
local t_intc = events.Event[i]["@InTC"]
local t_outtc = events.Event[i]["@OutTC"]
-- new epoch (interval > 1 frame)
if outtc==nil or (t_intc~=outtc and NDFminus(t_intc,outtc,fps)~="00:00:00:01") then
data = {}
-- x,y,h,w = 1920,1080,0,0
count,buffer = 0,0
end
intc,outtc = t_intc,t_outtc
local graphics = events.Event[i].Graphic
if #graphics>=2 then
for k=1,#graphics do
local trigger,trigger2 = true,true
local tx,ty,tw,th = graphics[k]["@X"],graphics[k]["@Y"],graphics[k]["@Width"],graphics[k]["@Height"]
tx,ty,tw,th = tonumber(tx),tonumber(ty),tonumber(tw),tonumber(th)
local png_path = path_head..graphics[k]:value()
local png_attr = lfs.attributes(png_path)
local tsize = png_attr.size
for _,j in ipairs(data) do
if j.w==tw and j.h==th then trigger = false end
if j.s==tsize then trigger2 = false end
end
if trigger==true or trigger2==true then
table.insert(data,{w=tw,h=th,s=tsize})
end
if trigger==true then
count = count + 1
end
if trigger2==true then
buffer = buffer + tsize
end
end
if #graphics>2 then
aegisub.log(t_intc..": more than two pictures in a timestamp\n")
end
else
local trigger,trigger2 = true,true
local tx,ty,tw,th = graphics["@X"],graphics["@Y"],graphics["@Width"],graphics["@Height"]
tx,ty,tw,th = tonumber(tx),tonumber(ty),tonumber(tw),tonumber(th)
local png_path = path_head..graphics:value()
local png_attr = lfs.attributes(png_path)
local tsize = png_attr.size
for _,j in ipairs(data) do
if j.w==tw and j.h==th then trigger = false end
if j.s==tsize then trigger2 = false end
end
if trigger==true or trigger2==true then
table.insert(data,{w=tw,h=th,s=tsize})
end
if trigger==true then
count = count + 1
end
if trigger2==true then
buffer = buffer + tsize
end
end
-- log out
if count>64 then
aegisub.log(t_intc.." is too close to the previous frame\n")
outtc = nil
t_intc = totime(t_intc,fps)
line.start_time = t_intc
line.end_time = t_intc
line.text = "*** this Event will be discarded ***. The Time from InTC of previous Event to InTC is too close. and cannot register this Event with previous Epoch, by limitation of the number of different size images in a Epoch. permitted number is 64."
subtitle.append(line)
end
if buffer>BUFFER_MAX then
aegisub.log(t_intc..": limited buffer 4194304 now get "..buffer.."\n")
end
aegisub.progress.set(i/event_count*100)
end
-- wirte epoch number (!rewrite event_count!)
local NN = #subtitle
local epoch_count = 0
outtc = nil
if events.Event[event_count]["@InTC"]=="00:00:00:00" then
event_count = event_count - 1
epoch_count = 1
end -- delete first black frame
for i=1, event_count do
local t_intc = events.Event[i]["@InTC"]
local t_outtc = events.Event[i]["@OutTC"]
-- new epoch
if outtc==nil or (t_intc~=outtc and NDFminus(t_intc,outtc,fps)~="00:00:00:01") then
epoch_count = epoch_count + 1
end
-- add epoch index
for j=N,NN do
local l = subtitle[j]
if NDF2starttime(t_intc,fps)<=l.start_time and NDF2endtime(t_outtc,fps)>=l.end_time then
l.actor = "G"..epoch_count
subtitle[j] = l
end
end
intc,outtc = t_intc,t_outtc
aegisub.progress.set(i/event_count*100)
end
aegisub.set_undo_point(script_name)
return selected
end
function borderadder(subtitle, selected, active)
local path = aegisub.dialog.open('XML Analyzer', '', '', 'XML files (.xml)|*.xml|All Files (.)|.', false, true)
local xml = xmlsimple:loadFile(path)
local events = xml.BDN.Events
--UI
local dialog_config = {
{class="checkbox",name="b",label="basic",value=true,x=0,y=0},--1
{class="checkbox",name="m",label="merge",value=false,x=0,y=1},--2
{class="label",label="proportion threshold",x=1,y=1},--3
{class="floatedit",name="mp",value=0.9,x=2,y=1},--4
{class="checkbox",name="fbf",label="fbfbord",value=false,x=0,y=2},--5
{class="checkbox",name="man",label="manual",value=false,x=0,y=3},--6
{class="checkbox",name="r",label="remember",value=false,x=1,y=0}--7
}
local buttons = {"Run","Quit"}
-- read config
dialog_config[1].value, dialog_config[2].value, dialog_config[4].value, dialog_config[5].value, dialog_config[6].value, dialog_config[7].value = config_read("?user")
-- show UI
local pressed,result = aegisub.dialog.display(dialog_config,buttons)
if (pressed=="Quit") then aegisub.cancel() end
local UI_selected = 0
if result.b==true then UI_selected = UI_selected + 1 end
if result.m==true then UI_selected = UI_selected + 1 end
if result.fbf==true then UI_selected = UI_selected + 1 end
if result.man==true then UI_selected = UI_selected + 1 end
if UI_selected~=1 then aegisub.cancel() end
-- write config
if result.r == true then config_write("?user",result) end
-- manual
local man_starttime,man_endtime = subtitle[selected[1]].start_time,subtitle[selected[1]].end_time
for si,li in ipairs(selected) do
man_starttime = math.min(man_starttime, subtitle[li].start_time)
man_endtime = math.max(man_endtime, subtitle[li].end_time)
end
-- local event_count = xml.BDN.Description.Events["@NumberofEvents"]
local event_count = #events.Event
local fps = xml.BDN.Description.Format["@FrameRate"]
event_count,fps = tonumber(event_count),tonumber(fps)
if fps==23.976 then fps=24000/1001
elseif fps==29.97 then fps=30000/1001 end
local intc,outtc
local epoch_intc,epoch_outtc
local epoch_count = 0
if events.Event[event_count]["@InTC"]=="00:00:00:00" then epoch_count = 1 end
-- local x,y,h,w=1920,1080,0,0
local line = subtitle[#subtitle]
line.actor = "G"
line.text = ""
line.comment = false
local items = {}
for i=1,event_count do
local t_intc = events.Event[i]["@InTC"]
local t_outtc = events.Event[i]["@OutTC"]
-- new epoch
if outtc==nil or (t_intc~=outtc and NDFminus(t_intc,outtc,fps)~="00:00:00:01") then
-- add border
if result.b==true then
for _,j in ipairs(items) do
if #j>1 then
local trigger = 0
local l,t,r,b = 1921,1081,-1,-1
for __,k in ipairs(j) do
if l~=k.x or t~=k.y or r~=k.w+k.x or b~=k.h+k.y then trigger=trigger+1 end
l,t,r,b = math.min(l,k.x),math.min(t,k.y),math.max(r,k.w+k.x),math.max(b,k.h+k.y)
end
if trigger>=3 then
line.start_time = NDF2starttime(j[1].i,fps)
line.end_time = NDF2endtime(j[#j].o,fps)
line.actor = "G"..epoch_count
line.text = string.format("{\\an7\\pos(0,0)\\fscx100\\fscy100\\bord1\\shad0\\1aFF\\3aFD\\p1}m %d %d l %d %d %d %d %d %d",l,t,r,t,r,b,l,b)
subtitle.append(line)
end
end
end
elseif result.m==true then
local itemoutline = {}
for _,j in ipairs(items) do
local trigger = 0
local l,t,r,b = 1921,1081,-1,-1
for __,k in ipairs(j) do
if l~=k.x or t~=k.y or r~=k.w+k.x or b~=k.h+k.y then trigger=trigger+1 end
l,t,r,b = math.min(l,k.x),math.min(t,k.y),math.max(r,k.w+k.x),math.max(b,k.h+k.y)
end
if trigger>=3 then trigger=true else trigger=false end
table.insert(itemoutline, {l=l,t=t,w=r-l,h=b-t,i=j[1].i,o=j[#j].o,trigger=trigger})
end
for nj,j in ipairs(itemoutline) do
for nk=nj+1,#itemoutline do
local k = itemoutline[nk]
local judge,l,t,r,b = square_overlap(j.l,j.t,j.w,j.h,k.l,k.t,k.w,k.h)
if judge==true then
local proportion = overlap_proportion(j.l,j.t,j.w,j.h,k.l,k.t,k.w,k.h)
if proportion>=result.mp then
j.l, j.t, j.w, j.h, j.trigger = l,t,r-l,b-t,true
k.l, k.t, k.w, k.h, k.trigger = l,t,r-l,b-t,true
itemoutline[nj],itemoutline[nk] = j,k
end
end
end
end
local nj = 1
while nj<=#itemoutline-1 do
local nk=nj+1
if itemoutline[nj].trigger==true then
while nk<=#itemoutline do
if itemoutline[nk].trigger==true then
local j,k = itemoutline[nj],itemoutline[nk]
if j.l==k.l and j.t==k.t and j.w==k.w and j.h==k.h then
if NDFcompare(k.i,j.o)<=0 and NDFcompare(k.o,j.o)<=0 then
table.remove(itemoutline, nk)
nk = nk - 1
elseif NDFcompare(k.i,j.o)<=0 and NDFcompare(k.o,j.o)>0 then
itemoutline[nj].o = k.o
table.remove(itemoutline, nk)
nk = nk - 1
end
end
end
nk = nk + 1
end
end
nj = nj + 1
end
for _,j in ipairs(itemoutline) do
if j.trigger==true then
line.start_time = NDF2starttime(j.i,fps)
line.end_time = NDF2endtime(j.o,fps)
line.actor = "G"..epoch_count
local r,b = j.l+j.w, j.t+j.h
line.text = string.format("{\\an7\\pos(0,0)\\fscx100\\fscy100\\bord1\\shad0\\1aFF\\3aFD\\p1}m %d %d l %d %d %d %d %d %d",j.l,j.t,r,j.t,r,b,j.l,b)
subtitle.append(line)
end
end
elseif result.fbf==true then
for _,j in ipairs(items) do
if #j>1 then
local trigger = 0
local l,t,r,b = 1921,1081,-1,-1
local w,h = 0,0
for __,k in ipairs(j) do
if l~=k.x or t~=k.y or r~=k.w+k.x or b~=k.h+k.y then trigger=trigger+1 end
l,t,r,b = math.min(l,k.x),math.min(t,k.y),math.max(r,k.w+k.x),math.max(b,k.h+k.y)
w,h = math.max(w,k.w),math.max(h,k.h)
end
if trigger>=3 then
for nk,k in ipairs(j) do
local judge = ptINsquare(k.x+k.w, k.h+k.y, l,t,w,h)
if judge==true then
line.text = string.format("{\\an7\\pos(0,0)\\fscx100\\fscy100\\bord1\\shad0\\1aFF\\3aFD\\p1}m %d %d l %d %d %d %d %d %d",l,t,l+w,t,l+w,t+h,l,t+h)
else
local lt,tt,rt,bt = k.x+k.w-w,k.y+k.h-h,k.x+k.w,k.y+k.h
if lt<l then lt,rt = l,l+w end
if tt<t then tt,bt = t,t+h end
line.text = string.format("{\\an7\\pos(0,0)\\fscx100\\fscy100\\bord1\\shad0\\1aFF\\3aFD\\p1}m %d %d l %d %d %d %d %d %d",lt,tt,rt,tt,rt,bt,lt,bt)
end
line.start_time = NDF2starttime(j[nk].i,fps)
line.end_time = NDF2endtime(j[nk].o,fps)
line.actor = "G"..epoch_count
subtitle.append(line)
end
end
end
end
elseif result.man==true then
if epoch_intc~=nil then
local epoch_starttime,epoch_endtime = NDF2starttime(epoch_intc,fps),NDF2endtime(epoch_outtc,fps)
if epoch_starttime>=man_endtime then break
elseif not (epoch_endtime<=man_starttime) then
for _,j in ipairs(items) do
if #j>1 then
local trigger = 0
local l,t,r,b = 1921,1081,-1,-1
for __,k in ipairs(j) do
local k_st,k_et = NDF2starttime(k.i,fps),NDF2endtime(k.o,fps)
if k_st<man_endtime and k_et>man_starttime then
if l~=k.x or t~=k.y or r~=k.w+k.x or b~=k.h+k.y then trigger=trigger+1 end
l,t,r,b = math.min(l,k.x),math.min(t,k.y),math.max(r,k.w+k.x),math.max(b,k.h+k.y)
end
end
if trigger>=2 then
line.start_time = math.max(NDF2starttime(j[1].i,fps),man_starttime)
line.end_time = math.min(NDF2endtime(j[#j].o,fps),man_endtime)
if line.end_time>line.start_time then
line.actor = "G"..epoch_count
line.text = string.format("{\\an7\\pos(0,0)\\fscx100\\fscy100\\bord1\\shad0\\1aFF\\3aFD\\p1}m %d %d l %d %d %d %d %d %d",l,t,r,t,r,b,l,b)
subtitle.append(line)
end
end
end
end
end
end
end
-- clear memory
items = {}
epoch_intc,epoch_count = t_intc,epoch_count+1
end
intc,outtc = t_intc,t_outtc
local graphics = events.Event[i].Graphic
if #graphics>=2 then
for k=1,#graphics do
local tx,ty,tw,th = graphics[k]["@X"],graphics[k]["@Y"],graphics[k]["@Width"],graphics[k]["@Height"]
tx,ty,tw,th = tonumber(tx),tonumber(ty),tonumber(tw),tonumber(th)
-- try to get same size events
local png_frame = graphics[k]:value()
png_frame = png_frame:gsub("_%d+%.png$","")
png_frame = tonumber(png_frame)
local distance,dx,dy = 3000,2000,2000
local index = 0
local w,h = tw,th
for _,j in ipairs(items) do
if j[#j].o==t_intc then
local temp = length(j[#j].x,j[#j].y+j[#j].h, tx,ty+th)
if temp<distance then
distance = temp
dx,dy = math.abs(j[#j].x-tx),math.abs(j[#j].y+j[#j].h -ty-th)
w,h = j[#j].w,j[#j].h
index = _
end
end
end
if dx>w or dy>h then
table.insert(items,{})
table.insert(items[#items],{f=png_frame,x=tx,y=ty,w=tw,h=th,i=t_intc,o=t_outtc})
else
table.insert(items[index],{f=png_frame,x=tx,y=ty,w=tw,h=th,i=t_intc,o=t_outtc})
end
end
else
local tx,ty,tw,th = graphics["@X"],graphics["@Y"],graphics["@Width"],graphics["@Height"]
tx,ty,tw,th = tonumber(tx),tonumber(ty),tonumber(tw),tonumber(th)
-- try to get same size events
local png_frame = graphics:value()
png_frame = png_frame:gsub("_%d+%.png$","")
png_frame = tonumber(png_frame)
local distance,dx,dy = 3000,2000,2000
local index = 0
local w,h = tw,th
for _,j in ipairs(items) do
if j[#j].o==t_intc then
local temp = length(j[#j].x,j[#j].y+j[#j].h, tx,ty+th)
if temp<distance then
distance = temp
dx,dy = math.abs(j[#j].x-tx),math.abs(j[#j].y+j[#j].h -ty-th)
w,h = j[#j].w,j[#j].h
index = _
end
end
end
if dx>w or dy>h then
table.insert(items,{})
table.insert(items[#items],{f=png_frame,x=tx,y=ty,w=tw,h=th,i=t_intc,o=t_outtc})
else
table.insert(items[index],{f=png_frame,x=tx,y=ty,w=tw,h=th,i=t_intc,o=t_outtc})
end
end
epoch_outtc = t_outtc
aegisub.progress.set(i/event_count*100)
end
aegisub.set_undo_point(script_name)
return selected
end
function patch_overlapjoiner(subtitle, selected, active)
local i = 1
while i<=#selected-1 do
local ii = selected[i]
local li = subtitle[ii]
local j = i + 1
while j<=#selected do
local ji = selected[j]
local lj = subtitle[ji]
if lj.start_time<=li.end_time then
li = subtitle[ii]
local l1,t1,r1,b1 = li.text:match("m ([%d]+) ([%d]+) l ([%d]+) [%d]+ [%d]+ ([%d]+)")--ltrtrb
l1,t1,r1,b1 = tonumber(l1),tonumber(t1),tonumber(r1),tonumber(b1)
local l2,t2,r2,b2 = lj.text:match("m ([%d]+) ([%d]+) l ([%d]+) [%d]+ [%d]+ ([%d]+)")--ltrtrb
l2,t2,r2,b2 = tonumber(l2),tonumber(t2),tonumber(r2),tonumber(b2)
local judge,lnew,tnew,rnew,bnew = square_overlap(l1,t1,r1-l1,b1-t1,l2,t2,r2-l2,b2-t2)
if judge==true then
-- overlap
li.end_time = math.max(li.end_time, lj.end_time)
li.text = li.text:gsub("}.*$",string.format("}m %d %d l %d %d %d %d %d %d",lnew,tnew,rnew,tnew,rnew,bnew,lnew,bnew))
subtitle[ii] = li
for k=j+1,#selected do
selected[k] = selected[k] - 1
end
table.remove(selected, j)
subtitle.delete(ji)
else
j = j + 1
end
else
j = j + 1
end
end
i = i + 1
end
aegisub.set_undo_point(script_name)
return selected
end
function slicecutter(subtitle, selected, active)
-- input xml
local path = aegisub.dialog.open('XML Analyzer', '', '', 'XML files (.xml)|*.xml|All Files (.)|.', false, true)
local xml = xmlsimple:loadFile(path)
local events = xml.BDN.Events
-- local event_count = xml.BDN.Description.Events["@NumberofEvents"]
local event_count = #events.Event
local fps = xml.BDN.Description.Format["@FrameRate"]
local title = xml.BDN.Description.Name["@Title"]
local video_format = xml.BDN.Description.Format["@VideoFormat"]
event_count,fps = tonumber(event_count),tonumber(fps)
local FPS = fps
if fps==23.976 then fps=24000/1001
elseif fps==29.97 then fps=30000/1001 end
-- read clipboard
local slices = {}
local slicetext = clipboard.get()
slicetext = slicetext.."\n"
for li in slicetext:gmatch("(.-)\n") do
local temp1,temp2,temp3 = li:match("(%d+)%.M2TS[\t ]+([%d:%.]+)[\t ]+([%d:%.]+)")
table.insert(slices, {text=temp1,time_S=temp2,time_E=temp3})
end
-- UI
local dialog_config = {
{class="label",label="slice count: "..#slices,x=0,y=0,width=2},
{class="checkbox",name="realtime",label="use real time format\nX:XX:XX.XXX",value=true,x=0,y=1,height=2},
{class="checkbox",name="NDFtime",label="use NDF time format\nXX:XX:XX:XX",value=false,x=1,y=1,height=2}
}
local buttons = {"Run","Quit"}
local pressed, result = aegisub.dialog.display(dialog_config,buttons)
if (pressed=="Quit") then aegisub.cancel() end
-- convert real time to NDF time
if result.realtime == true then
for si,li in ipairs(slices) do
local ts,te = toNDF(li.time_S,fps),toNDF(li.time_E,fps)
li.time_S,li.time_E = ts,NDFadd(ts,te,fps)
slices[si] = li
end
else
for si,li in ipairs(slices) do
li.time_E = NDFadd(li.time_S,li.time_E,fps)
slices[si] = li
end
end
-- xml head & xml tail
local xml_head = '<?xml version="1.0" encoding="UTF-8"?>\n'
xml_head = xml_head..'<BDN Version="0.93" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="BD-03-006-0093b BDN File Format.xsd">\n'
xml_head = xml_head..'<Description>\n'
xml_head = xml_head..'<Name Title="'..title..'" Content="" />\n'
xml_head = xml_head..'<Language Code="zho" />\n'
xml_head = xml_head..'<Format VideoFormat="'..video_format..'" FrameRate="'..FPS..'" DropFrame="false" />\n'
xml_head = xml_head..'<Events LastEventOutTC="00:00:00:00" FirstEventInTC="00:00:00:00" ContentInTC="00:00:00:00" ContentOutTC="00:00:00:00" NumberofEvents="0" Type="Graphic" />\n'
xml_head = xml_head..'</Description>\n'
xml_head = xml_head..'<Events>\n'
local xml_tail = '</Events>\n</BDN>'
local xml_mid = ''
-- slice count
local slice_count = 1 -- max: #slices
local intc_now,outtc_now = slices[1].time_S,slices[1].time_E
local firsteventintc,lasteventouttc = events.Event[1]["@InTC"],events.Event[1]["@InTC"]
if NDFcompare(firsteventintc,outtc_now)<0 then
else
firsteventintc,lasteventouttc = intc_now,intc_now
end
local eventINslice_count = 0
local trigger = false
-- loop begin
if events.Event[event_count]["@InTC"]=="00:00:00:00" then event_count = event_count - 1 end -- delete first black frame
local i = 1
while i<=event_count do
local intc = events.Event[i]["@InTC"]
local outtc = events.Event[i]["@OutTC"]
local graphics = events.Event[i].Graphic
:: again ::
if NDFcompare(outtc,outtc_now)<=0 then -- do nothing
elseif NDFcompare(intc,outtc_now)>=0 then
-- output
xml_head = xml_head:gsub('ContentInTC="[%d:]+"',string.format('ContentInTC="%s"','00:00:00:00'))
xml_head = xml_head:gsub('ContentOutTC="[%d:]+"',string.format('ContentOutTC="%s"',NDFminus(outtc_now,intc_now,fps)))
xml_head = xml_head:gsub('FirstEventInTC="[%d:]+"',string.format('FirstEventInTC="%s"',NDFminus(firsteventintc,intc_now,fps)))
xml_head = xml_head:gsub('LastEventOutTC="[%d:]+"',string.format('LastEventOutTC="%s"',NDFminus(lasteventouttc,intc_now,fps)))
xml_head = xml_head:gsub('NumberofEvents="%d+"',string.format('NumberofEvents="%d"',eventINslice_count))
xml_head = xml_head:gsub('Title="[^"]+"',string.format('Title="%s_slice%s_clip%s"',title,slice_count,slices[slice_count].text))
local path_new = path:gsub("%.xml$",string.format("_slice%s_clip%s.xml",slice_count,slices[slice_count].text))
local file = io.open(path_new,"w")
file:write(xml_head,xml_mid,xml_tail)
file:close()
-- update
slice_count = slice_count + 1
intc_now,outtc_now = slices[slice_count].time_S,slices[slice_count].time_E
--clear
xml_mid = ''
if NDFcompare(intc,outtc_now)<0 then
firsteventintc,lasteventouttc = intc,intc
else
firsteventintc,lasteventouttc = intc_now,intc_now
end
eventINslice_count = 0
goto again
elseif NDFcompare(intc,outtc_now)<0 and NDFcompare(outtc,outtc_now)>0 then
if trigger==false then
-- enter the first time
trigger = true
outtc = outtc_now
else
-- enter the second time
trigger = false
intc = outtc_now
lasteventouttc = outtc_now
goto again
end
end
-- write data head
intc,outtc = NDFminus(intc,intc_now,fps),NDFminus(outtc,intc_now,fps)
xml_mid = xml_mid..'<Event Forced="False" InTC="'..intc..'" OutTC="'..outtc..'">\n'
if #graphics>=2 then
for k=1,#graphics do
local x,y,w,h = graphics[k]["@X"],graphics[k]["@Y"],graphics[k]["@Width"],graphics[k]["@Height"]
local v = graphics[k]:value()
xml_mid = xml_mid..string.format('<Graphic Width="%s" Height="%s" X="%s" Y="%s">%s</Graphic>\n',w,h,x,y,v)
end
else
local x,y,w,h = graphics["@X"],graphics["@Y"],graphics["@Width"],graphics["@Height"]
local v = graphics:value()
xml_mid = xml_mid..string.format('<Graphic Width="%s" Height="%s" X="%s" Y="%s">%s</Graphic>\n',w,h,x,y,v)
end
-- write data tail
xml_mid = xml_mid..'</Event>\n'
lasteventouttc = events.Event[i]["@OutTC"]
eventINslice_count = eventINslice_count + 1
aegisub.progress.set(i/event_count*100)
-- output last clip
if i==event_count then
xml_head = xml_head:gsub('ContentInTC="[%d:]+"',string.format('ContentInTC="%s"','00:00:00:00'))
xml_head = xml_head:gsub('ContentOutTC="[%d:]+"',string.format('ContentOutTC="%s"',NDFminus(outtc_now,intc_now,fps)))
xml_head = xml_head:gsub('FirstEventInTC="[%d:]+"',string.format('FirstEventInTC="%s"',NDFminus(firsteventintc,intc_now,fps)))
xml_head = xml_head:gsub('LastEventOutTC="[%d:]+"',string.format('LastEventOutTC="%s"',NDFminus(lasteventouttc,intc_now,fps)))
xml_head = xml_head:gsub('NumberofEvents="%d+"',string.format('NumberofEvents="%d"',eventINslice_count))
xml_head = xml_head:gsub('Title="[^"]+"',string.format('Title="%s_slice%s_clip%s"',title,slice_count,slices[slice_count].text))
local path_new = path:gsub("%.xml$",string.format("_slice%s_clip%s.xml",slice_count,slices[slice_count].text))
local file = io.open(path_new,"w")
file:write(xml_head,xml_mid,xml_tail)
file:close()
break
end
if trigger==false then i = i + 1 end
end
-- loop end
aegisub.log("succeeded")
aegisub.set_undo_point(script_name)
return selected
end
function timecalculator(subtitle, selected, active)
local dialog_config = {
{class="label",label="Source Format",x=0,y=0},--1
{class="dropdown",name="s",items={"RealTime: X:XX:XX.XXX","NDFTime: XX:XX:XX:XX"},value="NDFTime: XX:XX:XX:XX",x=1,y=0},
{class="label",label="Operation",x=0,y=1},--3
{class="dropdown",name="o",items={"Add","Minus","Convert->RealTime","Convert->NDFTime","Convert->Frame"},value="Convert->Frame",x=1,y=1},
{class="label",label="FPS",x=0,y=2},--5
{class="floatedit",name="fps",value=23.976,x=1,y=2},--6
{class="label",label="T1",x=0,y=3},--7
{class="edit",name="t1",value="",x=1,y=3},--8
{class="label",label="T2",x=0,y=4},--9
{class="edit",name="t2",x=1,value="",y=4},--10
{class="label",label="Result",x=0,y=5},--11
{class="edit",name="r",value="",x=1,y=5}--12
}
local buttons = {"Run","Quit"}
::UI::
local pressed, result = aegisub.dialog.display(dialog_config,buttons)
if pressed=="Quit" then aegisub.cancel()
elseif pressed=="Run" then
local fps = result.fps
local t
if result.s=="RealTime: X:XX:XX.XXX" then
if result.o=="Add" then
t = Realadd(result.t1,result.t2)
elseif result.o=="Minus" then
t = Realminus(result.t1,result.t2)
elseif result.o=="Convert->NDFTime" then
t = toNDF(result.t1,fps)
elseif result.o=="Convert->Frame" then
t= Real2frame(result.t1,fps)
end
elseif result.s=="NDFTime: XX:XX:XX:XX" then
if result.o=="Add" then
t = NDFadd(result.t1,result.t2,fps)
elseif result.o=="Minus" then
t = NDFminus(result.t1,result.t2,fps)
elseif result.o=="Convert->RealTime" then
t = NDF2real(result.t1,fps)
elseif result.o=="Convert->Frame" then
t = NDF2frame(result.t1,fps)
end
end
dialog_config[2].value = result.s
dialog_config[4].value = result.o
dialog_config[6].value = result.fps
dialog_config[8].value = result.t1
dialog_config[10].value= result.t2
dialog_config[12].value= t
goto UI
end
aegisub.set_undo_point(script_name)
return selected
end
function dialogpuller(subtitle, selected, active)
local fps = fpsgen()
local time_U = 1000/fps
for i=1,#selected-1 do
local ni,nj = selected[i],selected[i+1]
local li,lj = subtitle[ni],subtitle[nj]
local frame_E,frame_S = aegisub.frame_from_ms(li.end_time),aegisub.frame_from_ms(lj.start_time)
if frame_S-frame_E<=1 then
li.end_time = li.end_time - time_U
if frame_E==frame_S then lj.start_time = lj.start_time + time_U end
li.actor,lj.actor = "G","G"
subtitle[ni],subtitle[nj] = li,lj
end
end
end
--********************************************************************************************--
--********************************************************************************************--
function square_overlap(x1,y1,w1,h1,x2,y2,w2,h2)
local judge = false
local l,t,r,b = math.min(x1,x2),math.min(y1,y2),math.max(x1+w1,x2+w2),math.max(y1+h1,y2+h2)
judge = judge or ptINsquare(x1,y1,x2,y2,w2,h2)
judge = judge or ptINsquare(x1,y1+h1,x2,y2,w2,h2)
judge = judge or ptINsquare(x1+w1,y1,x2,y2,w2,h2)
judge = judge or ptINsquare(x1+w1,y1+h1,x2,y2,w2,h2)
judge = judge or ptINsquare(x2,y2,x1,y1,w1,h1)
judge = judge or ptINsquare(x2+w2,y2,x1,y1,w1,h1)
judge = judge or ptINsquare(x2,y2+h2,x1,y1,w1,h1)
judge = judge or ptINsquare(x2+w2,y2+h2,x1,y1,w1,h1)
return judge,l,t,r,b
end
function overlap_proportion(x1,y1,w1,h1,x2,y2,w2,h2)
local l,t,r,b = math.max(x1,x2),math.max(y1,y2),math.min(x1+w1,x2+w2),math.min(y1+h1,y2+h2)
local s,s1,s2 = (r-l)*(b-t),w1*h1,w2*h2
return math.max(s/s1,s/s2)
end
function ptINsquare(posx,posy,x,y,w,h)
if posx>=x and posx<=x+w and posy>=y and posy<=y+h then
return true
else
return false
end
end
function fpsgen()
local f = 10000
if aegisub.ms_from_frame(f)==nil then return 23.976 end
local t = (aegisub.ms_from_frame(f)+aegisub.ms_from_frame(f+1))/2
-- f = t/(1000/fps) = t/1000*fps
local fps = f/t*1000
return round(fps*1000)/1000
end
-- NDF 2 Real time (ms)
function totime(t,fps)
local h,m,s,ms = t:match("(%d%d):(%d%d):(%d%d):(%d%d)")
h,m,s,ms = tonumber(h),tonumber(m),tonumber(s),tonumber(ms)
local f = ms + s*math.ceil(fps) + m*60*math.ceil(fps) + h*3600*math.ceil(fps)
return f*1000/fps
end
-- Real time 2 NDF
function toNDF(t,fps)
local h,m,s,ms = t:match("(%d+):(%d%d):(%d%d)%.(%d%d%d)")
h,m,s,ms = tonumber(h),tonumber(m),tonumber(s),tonumber(ms)
local f = (ms+s*1000+m*60*1000+h*3600*1000)/(1000/fps)
f = round(f)
local FPS_U =math.ceil(fps)
local hour,min,sec,frame = math.floor(f/FPS_U/3600),math.floor(f/FPS_U/60)%60,math.floor(f/FPS_U)%60,f%FPS_U
if hour<10 then hour = "0"..hour end
if min<10 then min = "0"..min end
if sec<10 then sec = "0"..sec end
if frame<10 then frame = "0"..frame end
return hour..":"..min..":"..sec..":"..frame
end
function NDFadd(t1,t2,fps)
fps = math.ceil(fps)
local h1,m1,s1,f1 = t1:match("(%d%d):(%d%d):(%d%d):(%d%d)")
local h2,m2,s2,f2 = t2:match("(%d%d):(%d%d):(%d%d):(%d%d)")
h1,m1,s1,f1 = tonumber(h1),tonumber(m1),tonumber(s1),tonumber(f1)
h2,m2,s2,f2 = tonumber(h2),tonumber(m2),tonumber(s2),tonumber(f2)
local temp1,temp2,temp3 = 0,0,0
if f1+f2>=fps then temp1=1 end
f1 = (f1+f2)%fps
if s1+s2+temp1>=60 then temp2=1 end
s1 = (s1+s2+temp1)%60
if m1+m2+temp2>=60 then temp3=1 end
m1 = (m1+m2+temp2)%60
h1 = (h1+h2+temp3)
if h1<10 then h1 = "0"..h1 end
if m1<10 then m1 = "0"..m1 end
if s1<10 then s1 = "0"..s1 end
if f1<10 then f1 = "0"..f1 end
return h1..":"..m1..":"..s1..":"..f1
end
-- t1 - t2
function NDFminus(t1,t2,fps)
fps = math.ceil(fps)
local h1,m1,s1,f1 = t1:match("(%d%d):(%d%d):(%d%d):(%d%d)")
local h2,m2,s2,f2 = t2:match("(%d%d):(%d%d):(%d%d):(%d%d)")
h1,m1,s1,f1 = tonumber(h1),tonumber(m1),tonumber(s1),tonumber(f1)
h2,m2,s2,f2 = tonumber(h2),tonumber(m2),tonumber(s2),tonumber(f2)
local temp1,temp2,temp3 = 0,0,0
if f1-f2<0 then temp1=1 end
f1 = (f1-f2+fps)%fps
if s1-s2-temp1<0 then temp2=1 end
s1 = (s1-s2-temp1+60)%60
if m1-m2-temp2<0 then temp3=1 end
m1 = (m1-m2-temp2+60)%60
h1 = (h1-h2-temp3)
if h1<10 then h1 = "0"..h1 end
if m1<10 then m1 = "0"..m1 end
if s1<10 then s1 = "0"..s1 end
if f1<10 then f1 = "0"..f1 end
return h1..":"..m1..":"..s1..":"..f1
end
-- a<b -> -1; a=b -> 0; a>b -> 1
function NDFcompare(a,b)
local h1,m1,s1,f1 = a:match("(%d%d):(%d%d):(%d%d):(%d%d)")
local h2,m2,s2,f2 = b:match("(%d%d):(%d%d):(%d%d):(%d%d)")
h1,m1,s1,f1 = tonumber(h1),tonumber(m1),tonumber(s1),tonumber(f1)
h2,m2,s2,f2 = tonumber(h2),tonumber(m2),tonumber(s2),tonumber(f2)
if h1<h2 then return -1
elseif h1>h2 then return 1
else
if m1<m2 then return -1
elseif m1>m2 then return 1
else
if s1<s2 then return -1
elseif s1>s2 then return 1
else
if f1<f2 then return -1
elseif f1>f2 then return 1
else return 0
end
end
end
end
end
function length(x1,y1,x2,y2)
return math.sqrt((x2-x1)^2+(y2-y1)^2)
end
-- frame 2 starttime (ms)
function starttime(frame,fps)
local t = 1000/fps
return math.floor((frame*t - t/2)/10)*10
end
-- frame 2 endtime (ms)
function endtime(frame,fps)
local t = 1000/fps
return math.floor((frame*t + t/2)/10)*10
end
function NDF2starttime(t,fps)
local f = NDF2frame(t,fps)
local time = starttime(f,fps)
return time
end
function NDF2endtime(t,fps)
local f = NDF2frame(t,fps) - 1
local time = endtime(f,fps)
return time
end
function NDF2frame(t,fps)
local h,m,s,ms = t:match("(%d+):(%d%d):(%d%d):(%d%d)")
h,m,s,ms = tonumber(h),tonumber(m),tonumber(s),tonumber(ms)
return ms + s*math.ceil(fps) + m*60*math.ceil(fps) + h*3600*math.ceil(fps)
end
function NDF2real(t,fps)
local tinms = totime(t,fps)
tinms = round(tinms)
local h,m,s,ms = math.floor(tinms/1000/3600),math.floor(tinms/1000/60)%60,math.floor(tinms/1000)%60,tinms%1000
return string.format("%d:%02d:%02d.%03d",h,m,s,ms)
end
function Real2frame(t,fps)
local h,m,s,ms = t:match("(%d+):(%d%d):(%d%d)%.(%d%d%d)")
h,m,s,ms = tonumber(h),tonumber(m),tonumber(s),tonumber(ms)
local f = (ms+s*1000+m*60*1000+h*3600*1000)/(1000/fps)
return round(f)
end
function Realadd(t1,t2)
local h1,m1,s1,ms1 = t1:match("(%d+):(%d%d):(%d%d)%.(%d%d%d)")
local h2,m2,s2,ms2 = t2:match("(%d+):(%d%d):(%d%d)%.(%d%d%d)")
h1,m1,s1,ms1 = tonumber(h1),tonumber(m1),tonumber(s1),tonumber(ms1)
h2,m2,s2,ms2 = tonumber(h2),tonumber(m2),tonumber(s2),tonumber(ms2)
local temp1,temp2,temp3 = 0,0,0
if ms1+ms2>=1000 then temp1=1 end
ms1 = (ms1+ms2)%1000
if s1+s2+temp1>=60 then temp2=1 end
s1 = (s1+s2+temp1)%60
if m1+m2+temp2>=60 then temp3=1 end
m1 = (m1+m2+temp2)%60
h1 = (h1+h2+temp3)
return string.format("%d:%02d:%02d.%03d",h1,m1,s1,ms1)
end
function Realminus(t1,t2)
local h1,m1,s1,ms1 = t1:match("(%d+):(%d%d):(%d%d)%.(%d%d%d)")
local h2,m2,s2,ms2 = t2:match("(%d+):(%d%d):(%d%d)%.(%d%d%d)")
h1,m1,s1,ms1 = tonumber(h1),tonumber(m1),tonumber(s1),tonumber(ms1)
h2,m2,s2,ms2 = tonumber(h2),tonumber(m2),tonumber(s2),tonumber(ms2)
local temp1,temp2,temp3 = 0,0,0
if ms1-ms2<0 then temp1=1 end
ms1 = (ms1-ms2+1000)%1000
if s1-s2-temp1<0 then temp2=1 end
s1 = (s1-s2-temp1+60)%60
if m1-m2-temp2<0 then temp3=1 end
m1 = (m1-m2-temp2+60)%60
h1 = (h1-h2-temp3)
return string.format("%d:%02d:%02d.%03d",h1,m1,s1,ms1)
end
function round(x)
return math.floor(x+0.5)
end
-- basic,merge,proportion,fbfbord,manual,remember
function config_read(path)
path = aegisub.decode_path(path).."\\xml_analyzer_bordadder.txt"
local file = io.open(path, "r")
local basic,merge,proportion,fbfbord,manual,remember = true,false,0.9,false,false,false
if file~=nil then
for i in file:lines() do
if i:match("basic") then basic = str2bool(i:match("[a-z]+$"))
elseif i:match("merge") then merge = str2bool(i:match("[a-z]+$"))
elseif i:match("manual") then manual = str2bool(i:match("[a-z]+$"))
elseif i:match("fbfbord") then fbfbord = str2bool(i:match("[a-z]+$"))
elseif i:match("remember") then remember = str2bool(i:match("[a-z]+$"))
elseif i:match("proportion") then proportion = tonumber(i:match("[%d%.]+$")) end
end
file:close()
end
return basic,merge,proportion,fbfbord,manual,remember
end
function config_write(path,result)
path = aegisub.decode_path(path).."\\xml_analyzer_bordadder.txt"
local file = io.open(path, "w")
file:write("basic: "..bool2str(result.b).."\n")
file:write("merge: "..bool2str(result.m).."\n")
file:write("fbfbord: "..bool2str(result.fbf).."\n")
file:write("manual: "..bool2str(result.man).."\n")
file:write("remember: "..bool2str(result.r).."\n")
file:write("proportion: "..result.mp)
file:close()
end
function str2bool(str)
if str=="true" then return true
else return false end
end
function bool2str(bool)
if bool==true then return "true"
else return "false" end
end
function macro_validation(subtitle, selected, active)
return true
end
--This is what puts your automation in Aegisub's automation list
aegisub.register_macro(script_name.."/simulator",script_description,simulator,macro_validation)
aegisub.register_macro(script_name.."/borderadder",script_description,borderadder,macro_validation)
--aegisub.register_macro(script_name.."/patch_overlapjoiner",script_description,patch_overlapjoiner,macro_validation)
aegisub.register_macro(script_name.."/slicecutter",script_description,slicecutter,macro_validation)
aegisub.register_macro(script_name.."/timecalculator",script_description,timecalculator,macro_validation)
--aegisub.register_macro(script_name.."/dialogpuller",script_description,dialogpuller,macro_validation)
|
local starlib = require('starlib')
local Item = class(function()
function ctor(self, propId)
self.propId = propId
end
function getPropId(self)
return self.propId
end
end)
print('class.Item', debug.dump(Item))
local ItemEquip = class(function()
class.inherit(m(), Item)
function ctor(self, propId, name)
super.ctor(self, propId)
self.name = name
end
function getName(self)
return self.name
end
end)
print('class.ItemEquip', debug.dump(ItemEquip, nil, 3))
local item = ItemEquip.new(1, 'item')
print('item', debug.dump(item))
-- print('item.getPropId', item:getPropId())
print('item.getName', item:getName())
local ItemFactory = static(function()
function hello(self, msg)
print('msg', msg)
return msg
end
end)
local msg = ItemFactory:hello('world')
print(msg)
|
local Square, parent = torch.class('nn.Square', 'nn.Module')
function Square:__init(args)
parent.__init(self)
end
function Square:updateOutput(input)
input.THNN.Square_updateOutput(
input:cdata(),
self.output:cdata()
)
return self.output
end
function Square:updateGradInput(input, gradOutput)
input.THNN.Square_updateGradInput(
input:cdata(),
gradOutput:cdata(),
self.gradInput:cdata()
)
return self.gradInput
end
|
operation = {"+", "-"}
ind = math.random(2)
term1 = math.random(69999) + 20001;
solution = math.random(8998) + 1001;
value = term1 + solution;
if (ind == 1) then
value = term1 + solution;
else
value = term1 - solution;
end
term2 = math.random(term1 - 20000) + 1001;
if (ind == 1) then
result = value - term2;
else
result = value + term2;
end
|
_DEBUG = false
function DebugPrint(str)
if _DEBUG == true and str then
return print("BLACKJACK: "..tostring(str))
end
end
elevator_roof_location = {
["x"] = 930.0716,
["y"] = 33.86854,
["z"] = 81.09772,
["a"] = 69.9051208
}
elevator_entrance_location = {
["x"] = 965.0619,
["y"] = 58.51287,
["z"] = 112.553,
["a"] = 53.0310745
}
tables = { -- Spawns Ped Only -- Setup Currently For This https://forum.cfx.re/t/cayo-perico-casino-dlc-ipl-loader/2099391
{
coords = vector4(996.17, 51.69, 68.45, 318.91),
highStakes = false
},
{
coords = vector4(1000.66, 50.88, 68.45, 6.73),
highStakes = false
},
{
coords = vector4(1004.09, 53.11, 68.45, 55.30),
highStakes = false
},
{
coords = vector4(1002.36, 60.52, 68.45, 142.53),
highStakes = false
},
{
coords = vector4(998.44, 60.99, 68.45, 191.77),
highStakes = false
},
{
coords = vector4(994.89, 58.29, 68.45, 237.13),
highStakes = false
},
{
coords = vector4(985.95, 60.56, 69.25, 187.91),
highStakes = true
},
{
coords = vector4(982.50, 62.85, 69.25, 101.44),
highStakes = true
},
{
coords = vector4(984.97, 66.64, 69.25, 3.39),
highStakes = true
},
{
coords = vector4(988.45, 64.38, 69.25, 278.52),
highStakes = true
},
{
coords = vector4(989.05, 45.69, 69.25, 22.31),
highStakes = true
},
{
coords = vector4(987.30, 42.19, 69.25, 102.30),
highStakes = true
},
{
coords = vector4(991.56, 40.10, 69.25, 200.84),
highStakes = true
},
{
coords = vector4(993.20, 43.70, 69.25, 279.25),
highStakes = true
},
}
--[[
Table colors
0: Green
1: Red
2: Blue
3: Purple
--]]
customTables = { -- Spawns ped with table, example below
--[[ {
coords = vector4(996.77, 52.43, 68.43, 318.91),
highStakes = false,
color = 0
},--]]
}
for i,v in pairs(customTables) do
table.insert(tables, v)
end
resultNames = {
["good"] = "won",
["bad"] = "lost",
["impartial"] = "got a push",
}
requestCardAnims = {
"request_card",
"request_card_alt1",
"request_card_alt2",
}
declineCardAnims = {
"decline_card_001",
"decline_card_alt1",
"decline_card_alt2",
}
cardOffsets = {
[1] = {
vector3(0.5737, 0.2376, 0.948025),
vector3(0.562975, 0.2523, 0.94875),
vector3(0.553875, 0.266325, 0.94955),
vector3(0.5459, 0.282075, 0.9501),
vector3(0.536125, 0.29645, 0.95085),
vector3(0.524975, 0.30975, 0.9516),
vector3(0.515775, 0.325325, 0.95235),
},
[2] = {
vector3(0.2325, -0.1082, 0.94805),
vector3(0.23645, -0.0918, 0.949),
vector3(0.2401, -0.074475, 0.950225),
vector3(0.244625, -0.057675, 0.951125),
vector3(0.249675, -0.041475, 0.95205),
vector3(0.257575, -0.0256, 0.9532),
vector3(0.2601, -0.008175, 0.954375),
},
[3] = {
vector3(-0.2359, -0.1091, 0.9483),
vector3(-0.221025, -0.100675, 0.949),
vector3(-0.20625, -0.092875, 0.949725),
vector3(-0.193225, -0.07985, 0.950325),
vector3(-0.1776, -0.072, 0.951025),
vector3(-0.165, -0.060025, 0.951825),
vector3(-0.14895, -0.05155, 0.95255),
},
[4] = {
vector3(-0.5765, 0.2229, 0.9482),
vector3(-0.558925, 0.2197, 0.949175),
vector3(-0.5425, 0.213025, 0.9499),
vector3(-0.525925, 0.21105, 0.95095),
vector3(-0.509475, 0.20535, 0.9519),
vector3(-0.491775, 0.204075, 0.952825),
vector3(-0.4752, 0.197525, 0.9543),
}
}
cardRotationOffsets = {
[1] = {
69.12,
67.8,
66.6,
70.44,
70.84,
67.88,
69.56,
},
[2] = {
22.11,
22.32,
20.8,
19.8,
19.44,
26.28,
22.68,
},
[3] = {
-21.43,
-20.16,
-16.92,
-23.4,
-21.24,
-23.76,
-19.44,
},
[4] = {
-67.03,
-69.12,
-64.44,
-67.68,
-63.72,
-68.4,
-64.44,
},
}
cardSplitOffsets = {
[1] = {
vector3(0.6083, 0.3523, 0.94795),
vector3(0.598475, 0.366475, 0.948925),
vector3(0.589525, 0.3807, 0.94975),
vector3(0.58045, 0.39435, 0.950375),
vector3(0.571975, 0.4092, 0.951075),
vector3(0.5614, 0.4237, 0.951775),
vector3(0.554325, 0.4402, 0.952525),
},
[2] = {
vector3(0.3431, -0.0527, 0.94855),
vector3(0.348575, -0.0348, 0.949425),
vector3(0.35465, -0.018825, 0.9502),
vector3(0.3581, -0.001625, 0.95115),
vector3(0.36515, 0.015275, 0.952075),
vector3(0.368525, 0.032475, 0.95335),
vector3(0.373275, 0.0506, 0.9543),
},
[3] = {
vector3(-0.116, -0.1501, 0.947875),
vector3(-0.102725, -0.13795, 0.948525),
vector3(-0.08975, -0.12665, 0.949175),
vector3(-0.075025, -0.1159, 0.949875),
vector3(-0.0614, -0.104775, 0.9507),
vector3(-0.046275, -0.095025, 0.9516),
vector3(-0.031425, -0.0846, 0.952675),
},
[4] = {
vector3(-0.5205, 0.1122, 0.9478),
vector3(-0.503175, 0.108525, 0.94865),
vector3(-0.485125, 0.10475, 0.949175),
vector3(-0.468275, 0.099175, 0.94995),
vector3(-0.45155, 0.09435, 0.95085),
vector3(-0.434475, 0.089725, 0.95145),
vector3(-0.415875, 0.0846, 0.9523),
}
}
cardSplitRotationOffsets = {
[1] = {
68.57,
67.52,
67.76,
67.04,
68.84,
65.96,
67.76,
},
[2] = {
22.11,
22.0,
24.44,
21.08,
25.96,
26.16,
28.76,
},
[3] = {
-14.04,
-15.48,
-16.56,
-15.84,
-16.92,
-14.4,
-14.28,
},
[4] = {
-67.03,
-67.6,
-69.4,
-69.04,
-68.68,
-66.16,
-63.28,
},
}
cardOffsetsDealer = {
vector3(0.0436, 0.21205, 0.948875),
vector3(-0.0636, 0.213825, 0.9496),
vector3(-0.0806, 0.2137, 0.950225),
vector3(-0.1006, 0.21125, 0.950875),
vector3(-0.1256, 0.21505, 0.951875),
vector3(-0.1416, 0.21305, 0.953),
vector3(-0.1656, 0.21205, 0.954025),
vector3(-0.1836, 0.21255, 0.95495),
vector3(-0.2076, 0.21105, 0.956025),
vector3(-0.2246, 0.21305, 0.957),
}
cardRotationOffsetsDealer = { -- doesnt have to be vector3
vector3(0.0, 0.0, 178.92),
vector3(0.0, 0.0, -180.0),
vector3(0.0, 0.0, -178.92),
vector3(0.0, 0.0, -177.12),
vector3(0.0, 0.0, 180.0),
vector3(0.0, 0.0, 178.56),
vector3(0.0, 0.0, 180.0),
vector3(0.0, 0.0, 178.2),
vector3(0.0, 0.0, -177.12),
vector3(0.0, 0.0, 180.0),
vector3(0.0, 0.0, 178.56),
}
chipSplitOffsets = {
[1] = {
vector3(0.6931, 0.1952, 0.0),
vector3(0.724925, 0.26955, 0.0),
vector3(0.7374, 0.349625, 0.0),
vector3(0.76415, 0.419225, 0.0),
},
[2] = {
vector3(0.2827, -0.227825, 0.0),
vector3(0.3605, -0.1898, 0.0),
vector3(0.4309, -0.16365, 0.0),
vector3(0.49275, -0.111575, 0.0),
},
[3] = {
vector3(-0.279425, -0.2238, 0.0),
vector3(-0.200775, -0.25855, 0.0),
vector3(-0.125775, -0.26815, 0.0),
vector3(-0.05615, -0.29435, 0.0),
},
[4] = {
vector3(-0.685925, 0.173275, 0.0),
vector3(-0.6568, 0.092525, 0.0),
vector3(-0.612875, 0.033025, 0.0),
vector3(-0.58465, -0.0374, 0.0),
}
}
chipSplitRotationOffsets = { -- doesnt have to be vector3
[1] = {
vector3(0, 0, -16.56),
vector3(0, 0, -22.32),
vector3(0, 0, -10.8),
vector3(0, 0, -9.72),
},
[2] = {
vector3(0, 0, -69.12),
vector3(0, 0, -64.8),
vector3(0, 0, -58.68),
vector3(0, 0, -51.12),
},
[3] = {
vector3(0, 0, -112.32),
vector3(0, 0, -108.36),
vector3(0, 0, -99.72),
vector3(0, 0, -102.6),
},
[4] = {
vector3(0, 0, -155.88),
vector3(0, 0, -151.92),
vector3(0, 0, -147.24),
vector3(0, 0, -146.52),
}
}
chipOffsets = {
[1] = {
vector3(0.712625, 0.170625, 0.0),
vector3(0.6658, 0.218375, 0.0),
vector3(0.756775, 0.292775, 0.0),
vector3(0.701875, 0.3439, 0.0),
},
[2] = {
vector3(0.278125, -0.2571, 0.0),
vector3(0.280375, -0.190375, 0.0),
vector3(0.397775, -0.208525, 0.0),
vector3(0.39715, -0.1354, 0.0),
},
[3] = {
vector3(-0.30305, -0.2464, 0.0),
vector3(-0.257975, -0.19715, 0.0),
vector3(-0.186575, -0.2861, 0.0),
vector3(-0.141675, -0.237925, 0.0),
},
[4] = {
vector3(-0.72855, 0.17345, 0.0),
vector3(-0.652825, 0.177525, 0.0),
vector3(-0.6783, 0.0744, 0.0),
vector3(-0.604425, 0.082575, 0.0),
}
}
pileOffsets = {
[1] = {
vector3(0.61, -0.02, 0.0),
vector3(0.73, 0.47, 0.0),
vector3(0.756775, 0.292775, 0.0),
vector3(0.701875, 0.3439, 0.0),
},
[2] = {
vector3(0.03, -0.29, 0.0),
vector3(0.05, -0.06, 0.0),
vector3(0.397775, -0.208525, 0.0),
vector3(0.39715, -0.1354, 0.0),
},
[3] = {
vector3(-0.48, -0.13, 0.0),
vector3(-0.35, 0.07, 0.0),
vector3(-0.186575, -0.2861, 0.0),
vector3(-0.141675, -0.237925, 0.0),
},
[4] = {
vector3(-0.7, 0.32, 0.0),
vector3(-0.7, 0.53, 0.0),
vector3(-0.6783, 0.0744, 0.0),
vector3(-0.604425, 0.082575, 0.0),
}
}
chipRotationOffsets = { -- doesnt have to be vector3
[1] = {
vector3(0, 0, 72.0),
vector3(0, 0, 64.8),
vector3(0, 0, 74.52),
vector3(0, 0, 72.0),
},
[2] = {
vector3(0, 0, 12.96),
vector3(0, 0, 29.16),
vector3(0, 0, 32.04),
vector3(0, 0, 32.04),
},
[3] = {
vector3(0, 0, -18.36),
vector3(0, 0, -18.72),
vector3(0, 0, -15.48),
vector3(0, 0, -18.0),
},
[4] = {
vector3(0, 0, -79.2),
vector3(0, 0, -68.76),
vector3(0, 0, -57.6),
vector3(0, 0, -64.8),
}
}
pileRotationOffsets = { -- doesnt have to be vector3
[1] = {
vector3(0, 0, 8.1),
vector3(0, 0, 229.49),
vector3(0, 0, 74.52),
vector3(0, 0, 72.0),
},
[2] = {
vector3(0, 0, 78.7),
vector3(0, 0, 4.6),
vector3(0, 0, 32.04),
vector3(0, 0, 32.04),
},
[3] = {
vector3(0, 0, 44.89),
vector3(0, 0, 144.49),
vector3(0, 0, -15.48),
vector3(0, 0, -18.0),
},
[4] = {
vector3(0, 0, 15.6),
vector3(0, 0, 15.6),
vector3(0, 0, -57.6),
vector3(0, 0, -64.8),
}
}
lowTableLimit = 40
bettingNums = {
10,
20,
30,
40,
50,
60,
70,
80,
90,
100,
150,
200,
250,
300,
350,
400,
450,
500,
1000,
1500,
2000,
2500,
3000,
3500,
4000,
4500,
5000,
6000,
7000,
8000,
9000,
10000,
15000,
20000,
25000,
30000,
35000,
40000,
45000,
50000, -- 40 Low table limit, betting numbers added after this will be high stakes only
55000,
60000,
65000,
70000,
75000,
80000,
85000,
90000,
95000,
100000,
150000,
200000,
250000,
300000,
350000,
400000,
450000,
500000,
550000,
600000,
650000,
700000,
750000,
800000,
850000,
900000,
950000,
1000000,
1500000,
2000000,
2500000,
3000000,
3500000,
4000000,
4500000,
5000000,
5500000,
6000000,
6500000,
7000000,
7500000,
8000000,
8500000,
9000000,
9500000,
10000000,
}
bettingTime = 50
moveTime = 30
--[[
case 10:
return joaat("vw_prop_chip_10dollar_x1");
case 50:
return joaat("vw_prop_chip_50dollar_x1");
case 100:
return joaat("vw_prop_chip_100dollar_x1");
case 500:
return joaat("vw_prop_chip_500dollar_x1");
case 1000:
return joaat("vw_prop_chip_1kdollar_x1");
case 5000:
return joaat("vw_prop_plaq_5kdollar_x1");
case 10000:
return joaat("vw_prop_plaq_10kdollar_x1");
vw_prop_chip_10kdollar_x1.ydr
vw_prop_chip_5kdollar_x1.ydr
vw_prop_chip_10kdollar_st.ydr -- $120,000
vw_prop_chip_5kdollar_st.ydr -- $60,000
vw_prop_vw_chips_pile_01a.ydr -- $511,000
vw_prop_vw_chips_pile_02a.ydr -- $3,250,000
vw_prop_vw_chips_pile_03a.ydr -- $1,990,000
--]]
chipModels = {
[10] = "vw_prop_chip_10dollar_x1",
[50] = "vw_prop_chip_50dollar_x1",
[100] = "vw_prop_chip_100dollar_x1",
[120] = "vw_prop_chip_10dollar_st",
[500] = "vw_prop_chip_500dollar_x1",
[600] = "vw_prop_chip_50dollar_st",
[1000] = "vw_prop_chip_1kdollar_x1",
[1200] = "vw_prop_chip_100dollar_st",
[5000] = "vw_prop_chip_5kdollar_x1",
[6000] = "vw_prop_chip_500dollar_st",
[10000] = "vw_prop_chip_10kdollar_x1",
[60000] = "vw_prop_chip_5kdollar_st",
[120000] = "vw_prop_chip_10kdollar_st",
}
chipValues = {
10,
50,
100,
120,
500,
600,
1000,
1200,
5000,
6000,
10000,
60000,
120000,
}
chipThickness = {
[`vw_prop_chip_10dollar_x1`] = 0.0054170000366867,
[`vw_prop_chip_50dollar_x1`] = 0.0056730001233518,
[`vw_prop_chip_100dollar_x1`] = 0.0056900000199676,
[`vw_prop_chip_10dollar_st`] = 0.061421997845173,
[`vw_prop_chip_500dollar_x1`] = 0.0057030003517866,
[`vw_prop_chip_50dollar_st`] = 0.061151999980211,
[`vw_prop_chip_1kdollar_x1`] = 0.0056910002604127,
[`vw_prop_chip_100dollar_st`] = 0.060908999294043,
[`vw_prop_chip_500dollar_st`] = 0.060989998281002,
[`vw_prop_chip_5kdollar_x1`] = 0.005538,
[`vw_prop_chip_10kdollar_x1`] = 0.005562,
[`vw_prop_chip_5kdollar_st`] = 0.061049,
[`vw_prop_chip_10kdollar_st`] = 0.06095,
[`vw_prop_plaq_5kdollar_x1`] = 0.006891000084579,
[`vw_prop_plaq_10kdollar_x1`] = 0.0057889996096492,
[`vw_prop_plaq_5kdollar_st`] = 0.060949999839067,
[`vw_prop_plaq_10kdollar_st`] = 0.060749001801014,
}
chipHeights = { -- whatever the fuck this even means
0.95,
0.896,
0.901,
0.907,
0.95,
0.917,
0.922,
0.927,
0.932,
0.95,
0.904,
0.899,
0.914,
0.904,
0.924,
0.91,
0.935,
0.95,
0.95,
0.904,
0.899,
0.915,
0.904,
0.925,
0.91,
0.935,
0.95,
0.919,
0.924,
0.93,
0.935,
0.95,
0.902,
0.897,
0.912,
0.902,
0.922,
0.907,
0.932,
0.912,
}
function SetDealerOutfit(ped, outfit)
local outfit = (outfit % 9) or math.random(0, 5)
SetPedDefaultComponentVariation(ped)
if outfit == 0 then
SetPedComponentVariation(ped, 0, 1, 1, 0)
SetPedComponentVariation(ped, 1, 0, 0, 0)
SetPedComponentVariation(ped, 2, 1, 0, 0)
SetPedComponentVariation(ped, 3, 0, 3, 0)
SetPedComponentVariation(ped, 4, 0, 0, 0)
SetPedComponentVariation(ped, 6, 0, 0, 0)
SetPedComponentVariation(ped, 7, 0, 0, 0)
SetPedComponentVariation(ped, 8, 0, 0, 0)
SetPedComponentVariation(ped, 10, 0, 0, 0)
SetPedComponentVariation(ped, 11, 0, 0, 0)
return
elseif outfit == 1 then
SetPedComponentVariation(ped, 0, 1, 1, 0)
SetPedComponentVariation(ped, 1, 0, 0, 0)
SetPedComponentVariation(ped, 2, 1, 1, 0)
SetPedComponentVariation(ped, 3, 1, 3, 0)
SetPedComponentVariation(ped, 4, 0, 0, 0)
SetPedComponentVariation(ped, 6, 0, 0, 0)
SetPedComponentVariation(ped, 7, 2, 0, 0)
SetPedComponentVariation(ped, 8, 1, 0, 0)
SetPedComponentVariation(ped, 10, 0, 0, 0)
SetPedComponentVariation(ped, 11, 0, 0, 0)
return
elseif outfit == 2 then
SetPedComponentVariation(ped, 0, 2, 0, 0)
SetPedComponentVariation(ped, 1, 0, 0, 0)
SetPedComponentVariation(ped, 2, 2, 0, 0)
SetPedComponentVariation(ped, 3, 2, 3, 0)
SetPedComponentVariation(ped, 4, 0, 0, 0)
SetPedComponentVariation(ped, 6, 0, 0, 0)
SetPedComponentVariation(ped, 7, 0, 0, 0)
SetPedComponentVariation(ped, 8, 2, 0, 0)
SetPedComponentVariation(ped, 10, 0, 0, 0)
SetPedComponentVariation(ped, 11, 0, 0, 0)
return
elseif outfit == 3 then
SetPedComponentVariation(ped, 0, 2, 1, 0)
SetPedComponentVariation(ped, 1, 0, 0, 0)
SetPedComponentVariation(ped, 2, 2, 1, 0)
SetPedComponentVariation(ped, 3, 3, 3, 0)
SetPedComponentVariation(ped, 4, 1, 0, 0)
SetPedComponentVariation(ped, 6, 1, 0, 0)
SetPedComponentVariation(ped, 7, 2, 0, 0)
SetPedComponentVariation(ped, 8, 3, 0, 0)
SetPedComponentVariation(ped, 10, 0, 0, 0)
SetPedComponentVariation(ped, 11, 0, 0, 0)
return
elseif outfit == 4 then
SetPedComponentVariation(ped, 0, 3, 0, 0)
SetPedComponentVariation(ped, 1, 0, 0, 0)
SetPedComponentVariation(ped, 2, 3, 0, 0)
SetPedComponentVariation(ped, 3, 0, 1, 0)
SetPedComponentVariation(ped, 4, 1, 0, 0)
SetPedComponentVariation(ped, 6, 1, 0, 0)
SetPedComponentVariation(ped, 7, 1, 0, 0)
SetPedComponentVariation(ped, 8, 0, 0, 0)
SetPedComponentVariation(ped, 10, 0, 0, 0)
SetPedComponentVariation(ped, 11, 0, 0, 0)
SetPedPropIndex(ped, 1, 0, 0, false)
return
elseif outfit == 5 then
SetPedComponentVariation(ped, 0, 3, 1, 0)
SetPedComponentVariation(ped, 1, 0, 0, 0)
SetPedComponentVariation(ped, 2, 3, 1, 0)
SetPedComponentVariation(ped, 3, 1, 1, 0)
SetPedComponentVariation(ped, 4, 1, 0, 0)
SetPedComponentVariation(ped, 6, 1, 0, 0)
SetPedComponentVariation(ped, 7, 2, 0, 0)
SetPedComponentVariation(ped, 8, 1, 0, 0)
SetPedComponentVariation(ped, 10, 0, 0, 0)
SetPedComponentVariation(ped, 11, 0, 0, 0)
return
end
end
|
return {
id = "HUANGJINDEMIBAO4",
mode = 2,
once = true,
fadeType = 1,
fadein = 1.5,
scripts = {
{
actor = 100001,
side = 2,
nameColor = "#a9f548",
say = "妹妹,来一决胜负吧buli!",
dir = 1,
bgm = "level03",
dialogShake = {
speed = 0.09,
x = 10,
number = 2
},
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 1
},
action = {
{
type = "shake",
y = 45,
delay = 0,
dur = 0.15,
x = 0,
number = 2
}
}
},
{
actor = 100010,
nameColor = "#ff5c5c",
side = 2,
dir = 1,
say = "没错!来一决胜负吧~purin.purin~!",
dialogShake = {
speed = 0.09,
x = 10,
number = 2
},
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 1
}
},
{
actor = 100020,
side = 2,
nameColor = "#a9f548",
dir = 1,
say = "这是什么展开burin? ",
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 1
}
},
{
actor = 100001,
side = 2,
nameColor = "#ff5c5c",
dir = 1,
say = "来试试“工作用”装备的威力buli!",
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 1
},
action = {
{
type = "shake",
y = 45,
delay = 0,
dur = 0.15,
x = 0,
number = 2
}
}
},
{
actor = 100010,
side = 2,
nameColor = "#ff5c5c",
dir = 1,
say = "妹妹你看起来那么强,就陪我们试验一下新型装备的purin威力吧!",
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 1
}
},
{
actor = 100020,
side = 2,
nameColor = "#a9f548",
dir = 1,
say = "burin?!没错burin! ",
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 1
}
},
{
actor = 100020,
side = 2,
nameColor = "#a9f548",
dir = 1,
say = "姐姐们都只有一种颜色,但我和“超级喵喵1号”都是彩色的,也就是什么颜色都有!所以,我比姐姐们都要强burin! ",
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 1
},
action = {
{
type = "shake",
y = 45,
delay = 0,
dur = 0.15,
x = 0,
number = 2
}
}
},
{
actor = 100020,
side = 2,
nameColor = "#a9f548",
dir = 1,
say = "一决胜负吧!burin!burin!! ",
dialogShake = {
speed = 0.09,
x = 10,
number = 2
},
effects = {
{
active = true,
name = "speed"
}
},
typewriter = {
speed = 0.05,
speedUp = 0.01
},
painting = {
alpha = 0.3,
time = 1
}
}
}
}
|
-- no default texture
defineProperty("image")
function draw(self)
sasl.gl.drawTexture(get(image), 0, 0, size[1], size[2])
end
|
local export = {}
local lang = require("Module:languages").getByCode("uk")
local m_IPA = require("Module:IPA")
local m_table = require("Module:table")
local com = require("Module:uk-common")
local u = mw.ustring.char
local rfind = mw.ustring.find
local rsplit = mw.text.split
local rsubn = mw.ustring.gsub
local AC = u(0x301)
local GR = u(0x300)
local vowel_no_i = "ɑɛɪuɔɐoʊe"
local vowel = vowel_no_i .. "i"
local vowel_c = "[" .. vowel .. "]"
local consonant_no_w = "bdzʒɡɦmnlrpftskxʃj"
local consonant_no_w_c = "[" .. consonant_no_w .. "]"
local consonant = consonant_no_w .. "ʋβ̞wʍ"
local consonant_c = "[" .. consonant .. "]"
local palatalizable = "tdsznlrbpʋfɡmkɦxʃʒ"
local palatalizable_c = "[" .. palatalizable .. "]"
-- version of rsubn() that discards all but the first return value
local function rsub(term, foo, bar)
local retval = rsubn(term, foo, bar)
return retval
end
function export.remove_pron_notations(text, remove_grave)
-- Remove grave accents from annotations but maybe not from phonetic respelling
if remove_grave then
text = mw.ustring.toNFC(rsub(mw.ustring.toNFD(text), GR, ""))
end
return text
end
local perm_syl_onset = m_table.listToSet({
'spr', 'str', 'skr', 'spl', 'skl',
'sp', 'st', 'sk', 'sf', 'sx',
'pr', 'br', 'tr', 'dr', 'kr', 'gr', 'ɦr', 'fr', 'xr',
'pl', 'bl', 'kl', 'gl', 'ɦl', 'fl', 'xl',
})
function export.convertToIPA(text, allow_unstressed, output, ann)
if type(text) == "table" then
local iparams = {
["output"] = {},
}
local params = {
[1] = {},
["allow_unstressed"] = {type = "boolean"},
["ann"] = {},
["output"] = {},
}
local iargs = require("Module:parameters").process(text.args, iparams)
local args = require("Module:parameters").process(text:getParent().args, params)
text, allow_unstressed, output, ann = args[1], args.allow_unstressed, iargs.output, args.ann
end
if not text then
text = mw.title.getCurrentTitle().text
end
-- Returns an error if the text contains alphabetic characters that are not Cyrillic.
require("Module:script_utilities").checkScript(text, "Cyrl")
local origterm = text
-- Lowercase and decompose ѐ and ѝ into letter + accent char
text = mw.ustring.lower(com.decompose_grave(text))
if not allow_unstressed and com.needs_accents(text) then
error("Multisyllabic words that are not prefixes or suffixes must have an acute accent marking the stress, unless allow_unstressed=1 is given: " .. text)
end
-- convert commas and en/en dashes to IPA foot boundaries
text = rsub(text, '%s*[,–—]%s*', ' | ')
-- canonicalize multiple spaces
text = rsub(text, '%s+', ' ')
local phonetic_chars_map = {
-- single characters that map to IPA sounds; these are processed last
[3] = {
["а"] = "ɑ", ["б"] = "b", ["в"] = "ʋ", ["г"] = "ɦ", ["ґ"] = "ɡ",
["д"] = "d", ["е"] = "ɛ", ["є"] = "jɛ", ["ж"] = "ʒ", ["з"] = "z",
["и"] = "ɪ", ["і"] = "i", ["ї"] = "ji", ["й"] = "j", ["к"] = "k",
["л"] = "l", ["м"] = "m", ["н"] = "n", ["о"] = "ɔ", ["п"] = "p",
["р"] = "r", ["с"] = "s", ["т"] = "t", ["у"] = "u", ["ф"] = "f",
["х"] = "x", ["ц"] = "t͡s", ["ч"] = "t͡ʃ", ["ш"] = "ʃ", ["щ"] = "ʃt͡ʃ",
["ь"] = "ʲ", ["ю"] = "ju", ["я"] = "jɑ", ["’"] = "j",
-- accented vowels
[AC] = "ˈ", [GR] = "ˌ",
},
-- character sequences of two that map to IPA sounds
[2] = {
["дж"] = "d͡ʒ", ["дз"] = "d͡z",
-- Dental plosives assimilate to following hissing/hushing consonants, which is not noted in the spelling.
["дс"] = "d͡zs", ["дш"] = "d͡ʒʃ", ["дч"] = "d͡ʒt͡ʃ", ["дц"] = "d͡zt͡s",
["тс"] = "t͡s", ["тш"] = "t͡ʃʃ", ["тч"] = "t͡ʃː", ["тц"] = "t͡sː",
},
-- character sequences of three that map to IPA sounds
[1] = {
["дзь"] = "d͡zʲ",
-- Dental plosives assimilate to following hissing/hushing consonants, which is not noted in the spelling.
["тьс"] = "t͡sʲː"
},
}
local pronuns = {}
-- FIXME, not completely correct, we need to treat hyphens at beginning and end of
-- a word as indicating unstressed pronunciation.
for _, phonetic in ipairs(rsplit(text, "[%s%-]+")) do
phonetic = "#" .. phonetic .. "#"
local orthographic_replacements = {
-- first apply consonant cluster simplifications that always occur orthographically
["нтськ" ] = "ньськ",
["стськ" ] = "ськ",
["нтст" ] = "нст",
["стч" ] = "шч",
["стд" ] = "зд",
["стс" ] = "сː",
["стськ" ] = "ськ",
["#зш" ] = "#шː",
["зш" ] = "жш",
["#зч" ] = "#шч",
["зч" ] = "жч",
-- then long consonants that are orthographically geminated.
["([бвгґд])%1" ] = "%1ː",
["([^д]+)жж" ] = "%1жː", -- джж sequence encode diphonemic дж
["([^д]+)зз" ] = "%1зː", -- дзз sequence encode diphonemic дз
["([йклмнпрстфхцчшщ])%1"] = "%1ː",
["дждж" ] = "джː",
["дздз" ] = "дзː",
}
for regex, replacement in pairs(orthographic_replacements) do
phonetic = rsub(phonetic, regex, replacement)
end
-- remap apostrophe to '!' so that it doesn't conflict with IPA stress mark
phonetic = rsub(phonetic, "'", "!")
-- replace multiple letter sequences
for _, replacements in ipairs(phonetic_chars_map) do
for key, replacement in pairs(replacements) do
phonetic = rsub(phonetic, key, replacement)
end
end
-- move stress mark, added by phonetic_chars_map, before vowel
phonetic = rsub(phonetic, "([ɑɛiɪuɔ])([ˈˌ])", "%2%1")
-- add accent if the word is monosyllabic and not allow_unstressed,
-- so that monosyllabic words without explicit stress marks get stressed
-- vowel allophones; we use a different character from the regular
-- primary stress mark so we can later remove it without affecting
-- explicitly user-added accents on monosyllabic words, as in нема́ за́ що.
local _, numberOfVowels = rsubn(phonetic, "[ɑɛiɪuɔ]", "")
if (numberOfVowels == 1) and not allow_unstressed then
phonetic = rsub(phonetic, "([ɑɛiɪuɔ])", "⁀%1")
end
-- palatalizable consonants before /i/ or /j/ become palatalized
phonetic = rsub(phonetic, "(" .. palatalizable_c .. ")([ː]?)([ˈˌ⁀]?)i", "%1ʲ%2%3i")
phonetic = rsub(phonetic, "(" .. palatalizable_c .. ")([ː]?)j", "%1ʲ%2")
-- eliminate garbage sequences of [ʲːj] resulting from -тьс- cluster followed by [j]
phonetic = rsub(phonetic, "ʲːj", "ʲː")
-- consonant simplification: ст + ц' → [с'ц']. We do it here because of palatalization.
-- Due to the т +ц → [ц:] rule length is present. According to Орфоепскі словник p. 13,
-- both forms are proper, without length in normal (colloquial) speech and with length
-- in slow speech, so we parenthesize the length as optional.
phonetic = rsub(phonetic, "st͡sʲ([ː]?)", "sʲt͡sʲ(%1)")
-- assimilation: voiceless + voiced = voiced + voiced
-- should /ʋ/ be included as voiced? Орфоепічний словник doesn't voice initial cluster of шв (p. 116)
local voiced_obstruent = "[bdzʒɡɦ]"
local voicing = {
["p"] = "b",
["f"] = "v",
["t"] = "d",
["tʲ"] = "dʲ",
["s"] = "z",
["sʲ"] = "zʲ",
["ʃ"] = "ʒ",
["k"] = "ɡ",
["x"] = "ɦ",
["t͡s"] = "d͡z",
["t͡sʲ"] = "d͡zʲ",
["t͡ʃ"] = "d͡ʒ",
["ʃt͡ʃ"] = "ʒd͡ʒ",
}
for voiceless, voiced in pairs(voicing) do
phonetic = rsub(phonetic, voiceless .. "(" .. voiced_obstruent .. "+)", voiced .. "%1")
end
-- In the sequence of two consonants, of which the second is soft, the first is pronounced soft too
-- unless the first consonant is a labial, namely б, п, в, ф, м.
phonetic = rsub(phonetic, "([tdsznl])(.)ʲ", "%1ʲ%2ʲ")
phonetic = rsub(phonetic, "([tdsznl])t͡sʲ", "%1ʲt͡sʲ")
phonetic = rsub(phonetic, "([tdsznl])d͡zʲ", "%1ʲd͡zʲ")
phonetic = rsub(phonetic, "t͡s(.)ʲ", "t͡sʲ%1ʲ")
phonetic = rsub(phonetic, "d͡z(.)ʲ", "d͡zʲ%1ʲ")
phonetic = rsub(phonetic, "d͡zt͡sʲ", "d͡zʲt͡sʲ")
phonetic = rsub(phonetic, "t͡sd͡zʲ", "t͡sʲd͡zʲ")
-- Hushing consonants ж, ч, ш assimilate to the following hissing consonants, giving a long hissing consonant:
-- [ʒ] + [t͡sʲ] → [zʲt͡sʲ], [t͡ʃ] + [t͡sʲ] → [t͡sʲː], [ʃ] + [t͡sʲ] → [sʲt͡sʲ], [ʃ] + [sʲ] → [sʲː]
phonetic = rsub(phonetic, "ʒt͡sʲ", "zʲt͡sʲ")
phonetic = rsub(phonetic, "t͡ʃt͡sʲ", "t͡sʲː")
phonetic = rsub(phonetic, "ʃt͡sʲ", "sʲt͡sʲ")
phonetic = rsub(phonetic, "ʃsʲ", "sʲː")
-- Hissing consonants before hushing consonants within a word assimilate - on зш and зч word-initially and
-- word-medially see above.
-- [s] + [ʃ] → [ʃː], [z] + [ʃ] → [ʒʃ], [z] + [t͡s] → [ʒt͡s]
-- [z] + [d͡ʒ] → [ʒd͡ʒ]
phonetic = rsub(phonetic, "zʒ", "ʒː")
phonetic = rsub(phonetic, "sʃ", "ʃː")
phonetic = rsub(phonetic, "zt͡s", "ʒt͡s")
phonetic = rsub(phonetic, "zd͡ʒ", "ʒd͡ʒ")
-- cleanup: excessive palatalization: CʲCʲCʲ → CCʲCʲ
phonetic = rsub(phonetic, "([^ɑɛiɪuɔ]+)ʲ([^ɑɛiɪuɔ]+)ʲ([^ɑɛiɪuɔ]+)ʲ", "%1%2ʲ%3ʲ")
-- unstressed /ɑ/ has an allophone [ɐ]
phonetic = rsub(phonetic, "([^ˈˌ⁀])ɑ", "%1ɐ")
-- unstressed /u/ has an allophone [ʊ]
phonetic = rsub(phonetic, "([^ˈˌ⁀])u", "%1ʊ")
-- unstressed /ɔ/ has by assimilation an allophone [o] before a stressed syllable with /u/ or /i/
phonetic = rsub(phonetic, "ɔ([bdzʒɡɦmnlrpftskxʲʃ͡]+)([ˈˌ⁀][uiʊ])", "o%1%2")
-- one allophone [e] covers unstressed /ɛ/ and /ɪ/
phonetic = rsub(phonetic, "([^ˈˌ⁀])[ɛɪ]", "%1e")
-- Remove the monosyllabic stress we auto-added to ensure that vowels in
-- monosyllabic words get stressed allophones. Do this before vocalizing
-- /ʋ/ and /j/. NOTE: Nothing below should depend on stress marks being
-- present.
phonetic = rsub(phonetic, "⁀", "")
-- /ʋ/ has an allophone [u̯] in a syllable coda
phonetic = rsub(phonetic, "(" .. vowel_c .. ")ʋ([" .. consonant_no_w .. "#])", "%1u̯%2")
-- /ʋ/ has an allophone [w] before /ɔ, u/ and voiced consonants (not after a vowel; [ʋ] before vowel already converted)
phonetic = rsub(phonetic, "ʋ([ˈˌ]?[ɔuoʊbdzʒɡɦmnlr])", "w%1")
-- /ʋ/ has an allophone [β̞] before remaining vowels besides /i/
-- Not sure whether this looks good.
-- phonetic = rsub(phonetic, "ʋ([ˈˌʲ]*[" .. vowel_no_i .. "])", "β̞%1")
-- /ʋ/ has an allophone [ʍ] before before voiceless consonants (not after a vowel; [ʋ] before vowel already converted)
phonetic = rsub(phonetic, "ʋ([pftskxʃ])", "ʍ%1")
-- in a syllable-final position (i.e. the first position of a syllable coda) /j/ has an allophone [i̯]:
phonetic = rsub(phonetic, "(" .. vowel_c .. ")j([" .. consonant_no_w .. "#])", "%1i̯%2")
-- also at the beginning of a word before a consonant
phonetic = rsub(phonetic, "#j(" .. consonant_no_w_c .. ")", "#i̯%1")
-- remove old orthographic apostrophe
phonetic = rsub(phonetic, "!", "")
-- stress mark in correct place
-- (1) Put the stress mark before the final consonant of a cluster (if any).
phonetic = rsub(phonetic, "([^#" .. vowel .. "]?[ʲː]*)([ˈˌ])", "%2%1")
-- (2) Continue moving it over the rest of an affricate with a tie bar.
phonetic = rsub(phonetic, "([^#" .. vowel .. "]͡)([ˈˌ])", "%2%1")
-- (3) Continue moving it over any "permanent onset" clusters (e.g. st, skr, pl, also Cj).
phonetic = rsub(phonetic, "(.)(ʲ?)(" .. consonant_c .. ")(ʲ?)([ˈˌ])(" .. consonant_c .. ")",
function(a, aj, b, bj, stress, c)
if perm_syl_onset[a .. b .. c] then
return stress .. a .. aj .. b .. bj .. c
elseif perm_syl_onset[b .. c] or c == "j" then
return a .. aj .. stress .. b .. bj .. c
else
return a .. aj .. b .. bj .. stress .. c
end
end)
-- (4) If we're in the middle of an affricate with a tie bar, continue moving back
-- if the following consonant is /j/, else move forward.
phonetic = rsub(phonetic, "([^#" .. vowel .. "]͡)([ˈˌ])(.ʲ?j)", "%2%1%3")
phonetic = rsub(phonetic, "([^#" .. vowel .. "]͡)([ˈˌ])(.ʲ?)", "%1%3%2")
-- (5) Move back over any remaining consonants at the beginning of a word.
phonetic = rsub(phonetic, "#([^#" .. vowel .. "]+)([ˈˌ])", "#%2%1")
-- (6) Move back over u̯ or i̯ at the beginning of a word.
phonetic = rsub(phonetic, "#([ui]̯)([ˈˌ])", "#%2%1")
phonetic = rsub(phonetic, "ʲ?ːʲ", "ʲː")
-- use dark [ɫ] for non-palatal /l/
phonetic = rsub(phonetic, "l([^ʲ])", "ɫ%1")
table.insert(pronuns, phonetic)
end
phonetic = rsub(table.concat(pronuns, " "), "#", "")
if output == "template" then
local ipa = m_IPA.format_IPA_full(lang, { { pron = "[" .. phonetic .. "]" } } )
local anntext
if ann == "1" or ann == "y" then
-- remove secondary stress annotations
anntext = "'''" .. export.remove_pron_notations(origterm, true) .. "''': "
elseif ann then
anntext = "'''" .. ann .. "''': "
else
anntext = ""
end
return anntext .. ipa
else
return phonetic
end
end
return export
|
--***********************************************************
--** ROBERT JOHNSON **
--***********************************************************
require "TimedActions/ISBaseTimedAction"
---@class ISCleanBlood : ISBaseTimedAction
ISCleanBlood = ISBaseTimedAction:derive("ISCleanBlood");
function ISCleanBlood:isValid()
local playerInv = self.character:getInventory()
return playerInv:contains("Bleach") and (playerInv:contains("BathTowel") or playerInv:contains("DishCloth") or playerInv:contains("Broom") or playerInv:contains("Mop"));
end
function ISCleanBlood:waitToStart()
self.character:faceLocation(self.square:getX(), self.square:getY())
return self.character:shouldBeTurning()
end
function ISCleanBlood:update()
self.character:faceLocation(self.square:getX(), self.square:getY())
self.character:setMetabolicTarget(Metabolics.LightWork);end
function ISCleanBlood:start()
-- if we have dish clothes, play low animation & show bleach
local primaryItem = self.character:getPrimaryHandItem()
if primaryItem:getType() == "Broom" or primaryItem:getType() == "Mop" then
self:setActionAnim("Rake");
self:setOverrideHandModels("Broom", nil);
else
self:setActionAnim("Loot");
self.character:SetVariable("LootPosition", "Low");
self:setOverrideHandModels(nil, "BleachBottle");
end
self.character:reportEvent("EventCleanBlood");
end
function ISCleanBlood:stop()
ISBaseTimedAction.stop(self);
end
function ISCleanBlood:perform()
local bleach = self.character:getInventory():getItemFromType("Bleach");
bleach:setThirstChange(bleach:getThirstChange() + 0.05);
if bleach:getThirstChange() > -0.05 then
bleach:Use();
end
self.square:removeBlood(false, false);
-- needed to remove from queue / start next.
ISBaseTimedAction.perform(self);
end
function ISCleanBlood:new(character, square, time)
local o = {}
setmetatable(o, self)
self.__index = self
o.character = character;
o.square = square;
o.stopOnWalk = true;
o.stopOnRun = true;
o.maxTime = time;
o.caloriesModifier = 5;
if character:isTimedActionInstant() then
o.maxTime = 1;
end
return o;
end
|
-- Given a parsed .SVD file (in Lua table form), print out some registers
-- shortcuts
fmt = string.format
-- for debugging, turn printing of parsing process on or off
--debug = function(s) io.stderr:write(s .. "\n") end
debug = function (s) end
-- Function to visit each branch and leaf of a tree.
--
-- Gets passed two functions: a function for branches and a function for
-- leaves. Returns a function that takes a tree and any number of
-- arguments, which are passed along as accumulators or whatever. visit()
-- doesn't know or care about them.
--
-- Also note that visit() does *not* recurse into branches! That's
-- fn_branch's job, if that's what it wants to do. visit() will, by
-- default, only visit the "top-level" nodes of tree.
function visit(fn_branch, fn_leaf)
return function(tree, ...)
for _, node in ipairs(tree) do
local k, v = next(node)
if type(v) == "table" then
-- process branch node
fn_branch(k, v, ...)
else
-- process leaf node
fn_leaf(k, v, ...)
end
end
return ...
end
end
function hex(s)
return tonumber(s, 16)
end
function muhex(num)
return fmt("%04x_%04x", num >> 16, num % (2^16))
end
-- Convert parens to square brackets so muforth comments don't barf
function unparen(s)
return (s:gsub("%(", "[")
:gsub("%)", "]"))
end
function print_regs(chip)
local sensible_gpio = {
PDOR = "OUT", -- Port Data Output Register
PSOR = "SET", -- Port Set Output Register
PCOR = "CLR", -- Port Clear Output Register
PTOR = "TOG", -- Port Toggle Output Register; XXX should this be "TGL" instead?
PDIR = "PIN", -- Port Data Input Register
PDDR = "DIR", -- Port Data Direction Register
PIDR = "DIS", -- Port Input Disable Register
}
local append = table.insert
local as_equates
as_equates = visit(
function(k, v, path, ctx)
local print_reg = function()
local name = (ctx.periph.prepend_to_name or "") .. ctx.reg.name
local addr = tonumber(ctx.periph.base_address) + tonumber(ctx.reg.address_offset)
local descr = (ctx.reg.description and "| "..ctx.reg.description) or ""
if ctx.reg.dim then
-- Print multiple registers
local offset = 0
for i in ctx.reg.dim_index:gmatch "%w+" do
io.write(fmt("%s equ %-28s %s\n",
muhex(addr + offset), fmt(name, i), unparen(descr)))
offset = offset + ctx.reg.dim_increment
end
else
if ctx.periph.name:match "GPIO" and sensible_gpio[ctx.reg.name] then
local sensible_name = ctx.periph.prepend_to_name .. sensible_gpio[ctx.reg.name]
append(ctx.sensibles, { addr = addr, name = sensible_name, descr = descr })
descr = fmt("| DEPRECATED: Use %s instead", sensible_name)
end
io.write(fmt("%s equ %-28s %s\n", muhex(addr), name, unparen(descr)))
end
ctx.reg.printed = true
end
path = path.."/"..k
if path == "/peripherals" then
-- print chip info
io.write "( Automagically generated! DO NOT EDIT!\n\n"
io.write(fmt(" %s %s %s equates, version %s\n\n",
ctx.chip.vendor_id, ctx.chip.series, ctx.chip.name, ctx.chip.version))
io.write " Generated by https://github.com/nimblemachines/kinetis-chip-equates/\n"
io.write(fmt(" from CMSIS-SVD source file %s)\n\nhex\n", ctx.chip.source_file))
elseif path == "/peripherals/peripheral" then
-- reset context
ctx.periph = {}
ctx.sensibles = {}
elseif path == "/peripherals/peripheral/interrupt" then
-- reset context
ctx.interrupt = {}
elseif path == "/peripherals/peripheral/registers" then
-- print heading for this peripheral
io.write(fmt("\n( %s: %s)\n", ctx.periph.name, unparen(ctx.periph.description)))
elseif path == "/peripherals/peripheral/registers/register" then
-- reset context
ctx.reg = {}
elseif path == "/peripherals/peripheral/registers/register/fields" then
-- Generally fields follow the register def, so print the reg now
print_reg()
elseif path == "/peripherals/peripheral/registers/register/fields/field" then
-- reset context
ctx.field = {}
end
-- Recurse into subtable
as_equates(v, path, ctx)
if path == "/peripherals/peripheral/registers/register/fields/field" then
if not ctx.periph.name:match "GPIO" then
-- Only print register fields for non-GPIO registers.
-- Printing "this is bit 7 of the direction register"
-- is pointless.
-- Registers defined with "dim" also have fields... but
-- printing the fields for each version of the register
-- would be stupid. Let's instead just remove the "%s" from
-- the name.
if ctx.field.bit_width < ctx.reg.size then
local name = (ctx.periph.prepend_to_name or "") ..
ctx.reg.name:gsub("%%s", "") .. "_" .. ctx.field.name
local descr = (ctx.field.description and "| "..ctx.field.description) or ""
io.write(fmt(" #%02d #%02d field %-28s %s\n", ctx.field.bit_offset, ctx.field.bit_width,
name, descr))
end
end
elseif path == "/peripherals/peripheral/registers/register" then
-- If register has no fields, we won't have printed it above. Do it now.
if not ctx.reg.printed then
print_reg()
end
elseif path == "/peripherals/peripheral/interrupt" then
local vector = tonumber(ctx.interrupt.value)
ctx.interrupts[vector] = ctx.interrupt.name
ctx.interrupts.max = math.max(ctx.interrupts.max, vector)
elseif path == "/peripherals/peripheral" then
if #ctx.sensibles > 0 then
io.write(fmt("\n( More sensible %s register names:)\n", ctx.periph.name))
for _, reg in ipairs(ctx.sensibles) do
io.write(fmt("%s equ %-28s %s\n",
muhex(reg.addr), reg.name, unparen(reg.descr)))
end
end
elseif path == "/peripherals" then
-- We've processed all the peripherals; print the interrupt vectors.
io.write "\n( IRQ vectors)\ndecimal\n"
--io.stderr:write(fmt("max interrupt: %d\n", ctx.interrupts.max))
for i = 0, ctx.interrupts.max do
local name = ctx.interrupts[i]
if name then
-- Fix LLW mistake
name = (name == "LLW") and "LLWU" or name
io.write(fmt(" %3d equ %s_IRQ\n", i, name))
else
io.write(fmt("( %3d Reserved)\n", i))
end
end
io.write "hex\n"
end
end,
function(k, v, path, ctx)
if path == "" then
ctx.chip[k] = v
elseif path == "/peripherals/peripheral" then
ctx.periph[k] = v
if k == "name" then debug(v) end
elseif path == "/peripherals/peripheral/interrupt" then
ctx.interrupt[k] = v
elseif path == "/peripherals/peripheral/registers/register" then
ctx.reg[k] = v
if k == "name" then debug(" " .. v) end
elseif path == "/peripherals/peripheral/registers/register/fields/field" then
ctx.field[k] = v
if k == "name" then debug(" " .. v) end
end
end)
as_equates(chip, "", { chip = {}, interrupts = { max = 0 } })
end
-- arg 1 is lua file to process
function doit()
local chip = dofile(arg[1])
print_regs(chip)
end
doit()
|
local Vector = {}
function Vector:new(x, y)
local vector = {}
vector.x = x or 0
vector.y = y or 0
setmetatable(vector, self)
self.__index = self; return vector
end
function Vector:getValue() --> number, number
return self.x, self.y
end
function Vector:getLength() --> number
return math.sqrt(self.x * self.x + self.y * self.y)
end
function Vector.normalize(vec) --> Vector
local l = vec:getLength()
local t
if l > 0 then
t = 1.0 / l
vec.x = vec.x * t
vec.y = vec.y * t
else
vec.x = 0
vec.y = 0
end
return vec
end
function Vector:normalize() --> Vector
local l = self:getLength()
local t
if l > 0 then
t = 1.0 / l
self.x = self.x * t
self.y = self.y * t
else
self.x = 0
self.y = 0
end
return self
end
function Vector.dot(vec1, vec2) --> number
return vec1.x * vec2.x + vec1.y * vec2.y
end
function Vector:dot(vec) --> number
return self.x * vec.x + self.y * vec.y
end
function Vector:__tostring() --> string
return self.x.." "..self.y
end
function Vector:__add(vec) --> Vector
if type(vec) == "table" then
return Vector(self.x + vec.x, self.y + vec.y)
else
return Vector(self.x + vec, self.y + vec)
end
end
function Vector:__sub(vec) --> Vector
if type(vec) == "table" then
return Vector(self.x - vec.x, self.y - vec.y)
else
return Vector(self.x - vec, self.y - vec)
end
end
function Vector:__mul(vec) --> Vector
if type(vec) == "table" then
return Vector(self.x * vec.x, self.y * vec.y)
else
return Vector(self.x * vec, self.y * vec)
end
end
function Vector:__div(vec) --> Vector
if type(vec) == "table" then
return Vector(self.x / vec.x, self.y / vec.y)
else
return Vector(self.x / vec, self.y / vec)
end
end
function Vector:__eq(vec) --> bool
return self.x == vec.x and self.y == vec.y
end
return setmetatable(Vector, {__call = function(self, ...) return Vector:new(...) end})
|
--[[
Copyright 2012 Rackspace
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS-IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
--]]
local crypto = require('_crypto')
exports = {}
no = {}
local message = 'This message will be signed'
local message1 = 'This message '
local message2 = 'will be signed'
local RSA_PUBLIC_KEY = [[
-----BEGIN PUBLIC KEY-----
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0Py2Gaq9lsxS7gN4UoF1
7iV9fI/NW+tgtfgjLqDrNpyvFqlBchhKVeoA2wdaRWpHuDPWLnwUQNRYu4YVLuAt
/32oG9AYzgBEjNMLGdAaqGGSl8HCdnXQh2hJD24WRa1Odcj+o1kIoUKi5BklBZd+
HzTEjbinLUZgCAYxohaIC8yLsZGy6Ez35pAu4XokP9HMxVM9tZN6HwHI//givYkK
v7R6a9iY0fLIHwmEoc4yVw7zNtBqzLLUHROjLCqqvIoiZkn7Z4k3080WCD1Q0hQt
0SKsf+DCDGS3zaE5EeyVvfBVelqz2v4kFzNf+0lEA411UnPEMkfZt+x2Gwr2UAOb
ag961p46Ba+QgifQpyXNQ3bCapqMghfSz6PHeGYeFPNWQKzVLNQSjnPBc0i0h+Ac
kAFJRzYXWZsh1Jq2TCvTiw+1Irm1m9Ltuv+W85hvhLuB1AY3runMLQN0eQ0gvjbk
cKCKtpoKy4rHtVTiy+8hzL1zaWYu3Bny7BgPiKciiMbo7TkDzWVX0hIfjcgJAzVo
gLC1/TVEQkoImomAvzPGXQpbLlX843juVeBCSwdkBAjjlMoJyGcv6wfO91tkG8PW
xUjPQQcJCr8/VSoK10jdUjrQocb3u+ud27n/6eQZOpvwsbn5q3mr2+zUIon/9k8D
bgPEhk6nrCq5rN6A7eCcdwMCAwEAAQ==
-----END PUBLIC KEY-----
]]
local RSA_PRIV_KEY = [[
-----BEGIN RSA PRIVATE KEY-----
MIIJKgIBAAKCAgEA0Py2Gaq9lsxS7gN4UoF17iV9fI/NW+tgtfgjLqDrNpyvFqlB
chhKVeoA2wdaRWpHuDPWLnwUQNRYu4YVLuAt/32oG9AYzgBEjNMLGdAaqGGSl8HC
dnXQh2hJD24WRa1Odcj+o1kIoUKi5BklBZd+HzTEjbinLUZgCAYxohaIC8yLsZGy
6Ez35pAu4XokP9HMxVM9tZN6HwHI//givYkKv7R6a9iY0fLIHwmEoc4yVw7zNtBq
zLLUHROjLCqqvIoiZkn7Z4k3080WCD1Q0hQt0SKsf+DCDGS3zaE5EeyVvfBVelqz
2v4kFzNf+0lEA411UnPEMkfZt+x2Gwr2UAObag961p46Ba+QgifQpyXNQ3bCapqM
ghfSz6PHeGYeFPNWQKzVLNQSjnPBc0i0h+AckAFJRzYXWZsh1Jq2TCvTiw+1Irm1
m9Ltuv+W85hvhLuB1AY3runMLQN0eQ0gvjbkcKCKtpoKy4rHtVTiy+8hzL1zaWYu
3Bny7BgPiKciiMbo7TkDzWVX0hIfjcgJAzVogLC1/TVEQkoImomAvzPGXQpbLlX8
43juVeBCSwdkBAjjlMoJyGcv6wfO91tkG8PWxUjPQQcJCr8/VSoK10jdUjrQocb3
u+ud27n/6eQZOpvwsbn5q3mr2+zUIon/9k8DbgPEhk6nrCq5rN6A7eCcdwMCAwEA
AQKCAgEAi/5NCcKLP8HdZ50hc7tPQVkRx2gY+5Mf9KWlA64+AhZRX0/ADGrjGMwp
CI/TU56PLoBi4D6z3n2gdvWpqP35MiV9gCwVAaHCScdxrzftM5Aw/8GGv43KQ3qD
PnfTKZefcF1U3h1dH5EgxsVlPGqvzL2vUPQ54KU83QMxKlAHkEfT5/4ep2gvw94f
2WDVeX7Tufc55jFFZBHxEC6rLuXnMmX2f9nW/QSyM8BPfYg/xnu4Rqa0dCzy1At8
ibCHMMcjpfu3EjMkF5hRQvG3+xITYv3kKcFom564VWHDdhNSd6rPx6eMxYzqpjP+
/rike/C9f58W9UuWN5OJxjHAr/bKmrqVXqnLbHn6soddR/Fd4Tf+L4ykAn0/uy15
Frx/KynqEz9T1nhaqeD+fI5NoHvFuIqdwkZF0nmtb6KPxrYBj9bKqJo4Pa9LdLCf
+WvjMtD8DOsdCxJB6iz2pqm6jhAXS3NOAbf/st8gfwL+UXFbnMfq8MBMV4zzHywY
yi0vQS/5L2LLeXlnBmGKXhr5o2pkHuVGei3C5j5P4oN5tkUEvgzhDdrkIfD2+SQH
+PPzaKwff/h4Q+wFpjM53IsIV5NDdTMEQybJ05F/FuI3Rq5aAkCfDSvLKHGayur7
hMYIOQGcOqrrtrLxH7w5JedK1RUgtTBylvDlpmpo9jlxnOBQ4lkCggEBAOuSnIY3
ljAEZo4ayJeaitIweMwcJ/F4QOYcejl1bDBVyj+GB/HSfRq+H9BsMg9tPX57UAEK
SP+JL7ZFKy6kAGtteVOexw2I80EwYsCe5W0wOPlDxe7lcne836/8RrtOx5gT0Kxn
RA4ZFb/vJJV56r7cYtdTyh3phEAggnVlfxZGFLDFS5cV6u/nptlVYaIECVKxe1Ha
DX0MqDeigJB7tz75mVBNJ7XnZ/ctVy5Ru5QbCH0lE61u2E8jTDwl93gWyW3oS6zI
bXQ4X8ISRhoq3GLHVUa38ptnR+80IVvOWuNKKPy7kj4Y+jnCX7MPNUEpAMRxReoS
Z4zBF7xUZ8q84zcCggEBAOMb7/6Vo6yjxivm/BBcEs0l1DykMo9B8PBXJLLNeuRo
bwxMktruYymyF8Iv+qbv918e/gMd9aoNdfTKXRrse4TjGryXdWQjbc6elL04d8TF
UpWEKevqOBgrwsOM7g18z1jYpeyCywa0945L3Hynqo2fKwUPwElJMYwFouqhBybs
AlNEgYJOwZ4bGPaHXon3R4BqDo4yHWv6zf0aX2rMQPY3oh6gg8TjQ7TWqyHNmqms
G7WysEfNJ3/AOaJEVj/HMEgUNtN8PMb9skBGv3ww65X7v4M9G8H2iO+DYKIDrefL
lCru13sf03sScs1rYlwdycEVqjXw3UNB0G381WFBiJUCggEBANsVsQiKLd1eWlqS
wjdsfOraNZ3uGZ/S7NiVZ36EnCefwcauSjk2Py9d3oyh8zSxrd0xpcgx3o348iyb
y3tG/zTpzUpdglYuJb1c2Jq3rDuN+46m3zA8p+Z/+7DZ+JY+wBXJZ+rO51YNMlMc
f3OcvRrgL/R+cpy7DkntciboS/dVGe0EsDZFJggT8vJxG6noAxurADuxhZXk7ZVA
Rj0ZMeUZkOJDv0jHe8M/obLsRH2LXqu0jcZgLj/7Xe0aijpfRto2jhqVFGZf/36o
LBYuAmTDaaWpcbHhrd7jJpsRISn9UH0rnOivpheNlB8dZ7PABHyttA3rK+6VrhNy
lEzSuqUCggEAb655YpRrnKYc+dHo+pKMnF2R9RA53MDsnwP7hAIQAOpqUX4Gaar5
ELQHgvLdK+KtnxU6jIXbHPjpnKs3BdptE3gq2bsRe2EAyq6pLjPqkdUHO4d2phDT
7O74I/nVxsQtot9HGPtoo6+yXUNo9dPtxx8SpLaONHvN5bGP4Bm3zqgYrKHvngjk
pb9lkzYWg3oaq0d8SOjUFxmK2oBxk69F8s6A5tbAdb3cub0nAsR83htItR1eGrEE
T4pTzTwVvd9SGt/15iIeMSzozzr7RzM3ZtYZ44vVbpix1jag+oscpfQytLonNOD9
unPkCKhaAjqT0GO7BDOiW0SuHqhKtjzn0QKCAQEAzLosOEP19mROR18AYHoNJgKB
Y53B+k04A/9Jq3YeUi2P0i+Wmb0zq3H1rh36Tichmsb3wl5KyWl8simPmNKGNqTO
1NpbC5cWlXiKTkEwUg2FWgrmaxn+T/OZ4LLQSAgxhcHD6DvFJW2s2BhsGg8ZecEN
1vqhp3GOFlDIyPC18RYOGn5HGn2wgeHz9cBSeLXnKKT9sZYZE/E5h8bsGgS+FYo7
LmZsWupNr4nPjQZL/83EV2SwElYhgp5cBUdTfs96GY7BNXQTTU6a+2zym+yjiPlH
0DQ1pdnwDEyNPLz+keu0smAfeCFsCk4x5sCthwlAV6ussxoWvbXscr0qJGDT5w==
-----END RSA PRIVATE KEY-----
]]
exports['test_sha256_hash'] = function(test, asserts)
local hash = 'da0fd2505f0fc498649d6cf9abc7513be179b3295bb1838091723b457febe96a'
local d = crypto.digest.new("sha256")
d:update(message1)
d:update(message2)
local ret = d:final()
asserts.equals(hash, ret)
d:reset(d)
d:update(message1)
ret = d:final()
asserts.ok(hash ~= ret)
test.done()
end
exports['test_rsa_verify'] = function(test, asserts)
local kpriv = crypto.pkey.from_pem(RSA_PRIV_KEY, true)
local kpub = crypto.pkey.from_pem(RSA_PUBLIC_KEY)
asserts.equals(kpriv:to_pem(true), RSA_PRIV_KEY)
asserts.equals(kpub:to_pem(), RSA_PUBLIC_KEY)
sig = crypto.sign('sha256', message, kpriv)
local v = crypto.verify.new('sha256')
v:update(message1)
v:update(message2)
local verified = v:final(sig, kpub)
asserts.ok(verified)
test.done()
end
exports['test_rsa_verify'] = function(test, asserts)
local kpriv = crypto.pkey.from_pem(RSA_PRIV_KEY, true)
local kpub = crypto.pkey.from_pem(RSA_PUBLIC_KEY)
-- Ensure keys are read properly
asserts.equals(kpriv:to_pem(true), RSA_PRIV_KEY)
asserts.equals(kpub:to_pem(), RSA_PUBLIC_KEY)
sig = crypto.sign('sha256', message, kpriv)
-- Test streaming verification
v = crypto.verify.new('sha256')
v:update(message1)
v:update(message2)
verified = v:final(sig, kpub)
asserts.ok(verified)
nv = crypto.verify.new('sha256')
nv:update(message1)
nv:update(message2 .. 'x')
nverified = nv:final(sig, kpub)
asserts.ok(not nverified)
-- Test full buffer verify
verified = crypto.verify('sha256', message, sig, kpub)
asserts.ok(verified)
nverified = crypto.verify('sha256', message..'x', sig, kpub)
asserts.ok(not nverified)
test.done()
end
exports['test_rsa_bogus_key'] = function(test, asserts)
local bogus = crypto.pkey.from_pem(1)
asserts.is_nil(bogus)
test.done()
end
local ca_cert = [[-----BEGIN CERTIFICATE-----
MIIG1jCCBL6gAwIBAgIJALZOkAY0D6wQMA0GCSqGSIb3DQEBBQUAMIGiMQswCQYD
VQQGEwJVUzETMBEGA1UECBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5j
aXNjbzEOMAwGA1UEChMFVmlyZ28xEDAOBgNVBAsTB0hhY2tlcnMxGDAWBgNVBAMT
D0JyYW5kb24gUGhpbGlwczEqMCgGCSqGSIb3DQEJARYbYnJhbmRvbi5waGlsaXBz
QGV4YW1wbGUuY29tMB4XDTEyMDEyNjIyMDAxOFoXDTIyMDEyMzIyMDAxOFowgaIx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMQ4wDAYDVQQKEwVWaXJnbzEQMA4GA1UECxMHSGFja2VyczEYMBYG
A1UEAxMPQnJhbmRvbiBQaGlsaXBzMSowKAYJKoZIhvcNAQkBFhticmFuZG9uLnBo
aWxpcHNAZXhhbXBsZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC
AQC5YVbGpZHLeWDu30o9UUF2yrqizDzbuDshWT8RlVQDdYvvKNFMFt8OCmgabl2k
8T19zMqnWof72iviZDsLGxOmMbMUFvk1TN7cMfWNsD6P/ja4BYxh90Jt8y65yC/T
6Xm1NLqFyhhOPWvzHvhAuvHg5qWvcyzsx3wDoh+dr3hVIJfxq9Ufu8t4JzOjJplQ
8kwklW6CafrcYF85YJqhxObWeL6gYWnYd3AzDE/S4j7C/nNNQah0NZvu6cO/Sc9l
qAw9gI5a6f9Pd7VFAzW7b8jRZ6pMmkNM9rm83i8tjiBgXDIBHZVEhtkC+5Kp0mU6
ywn/regQGGJ46cInLpCEnDbFhmzOgg4wvNtiy7JT+zyaFQYM0dHPs4JQRfGIc4LO
3M4r5na1qcbNQFQVVbMtsNETg+TrUyrmXDEO9PwwOXU1Khgnrk4A1UWZlf+n5dds
K6KhlRxD+nMzyR+lBPH9vdBtbzoOdy/D/mm6SMKkUIAXWdrPb8ucRMQkxusvq0Dv
8UikFV2Y16r7uqXqiOWCXEKrKMT+cAArCRBzUIoAIWTH4MKoEu9tYRzJcYM+EBc8
nXrvnUBdE8GNiWW444SPoCTM7SakHnQC34YY6WbEctQhGG2QW1fcPycWO5Aqr4WW
8hrbqjb6X15Y/J5OwqM0n3MrrNNv1nhHqaAVYIQYYlNH2QIDAQABo4IBCzCCAQcw
HQYDVR0OBBYEFLgWlUKomtnlKUEJZHAwCL3pSJt1MIHXBgNVHSMEgc8wgcyAFLgW
lUKomtnlKUEJZHAwCL3pSJt1oYGopIGlMIGiMQswCQYDVQQGEwJVUzETMBEGA1UE
CBMKQ2FsaWZvcm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEOMAwGA1UEChMF
VmlyZ28xEDAOBgNVBAsTB0hhY2tlcnMxGDAWBgNVBAMTD0JyYW5kb24gUGhpbGlw
czEqMCgGCSqGSIb3DQEJARYbYnJhbmRvbi5waGlsaXBzQGV4YW1wbGUuY29tggkA
tk6QBjQPrBAwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAgEAgoSv+w9R
Zlm7XxOD1xKo0AcgtJq6uWic14Y/sVaabN9GPGZVyPI9zywiAPbi9zpBozEWykXz
RA3Tac5Y1xLS+1PCRJcgWiAzIVP0wX0nIj+rxBcXxJ5t7+CiNTQ0BSD3IDgtiWkb
hFYzrUZiTluDs5erR0fatOE4deYLewGErU69rtW+blyCouGzcvBSn/ZmTUhq+VkP
LRfzc1dcHxKw25WL5+O59FkJ3Ytpk7u9xxumNxsugar8ssfs+/Qu5wytVQ1+jPQC
9CFu6n0GNPK3A7ebfUDc7qfUGhvM6YoAvSGK0iRgdDvdqR+47+3UKZ56H7cJufSQ
wNAAWu3CagAXCmQaIKX2C8PS5FxnKymXSZTUVQ55NBcNRrYEfF0+ba6xW9ehSD5N
G2C5FjA7z8eV+FjTDJPBVLZrwutDpyciGT4mpH6ul8rMFTxJuNjzCMT278CEgy5l
IYrjS9B16k/wDfSxtDWyy6laaRnvf7vI+mTTUxZJZVd7ADeW9+Fxx/fddBsFuONw
d81hvMemWe0uz/9SZyb0bmq+ox4zvzS2N05us3vIcZNaIrsG6baVFiTA6js503K5
KjXgcfC980pnPG37oH41aaAHZEpTGgkpVp92dsHlwkrOjtZO2Tt+c4IUiflkPEvt
QKI92udYACbXW5hT8jwyOo/ugwFMMpNmLvM=
-----END CERTIFICATE-----]]
local cert_to_verify = [[-----BEGIN CERTIFICATE-----
MIIFxTCCA60CAQEwDQYJKoZIhvcNAQEFBQAwgaIxCzAJBgNVBAYTAlVTMRMwEQYD
VQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMQ4wDAYDVQQK
EwVWaXJnbzEQMA4GA1UECxMHSGFja2VyczEYMBYGA1UEAxMPQnJhbmRvbiBQaGls
aXBzMSowKAYJKoZIhvcNAQkBFhticmFuZG9uLnBoaWxpcHNAZXhhbXBsZS5jb20w
HhcNMTIwMTI2MjIwMjI0WhcNMjIwMTIzMjIwMjI0WjCBrTELMAkGA1UEBhMCVVMx
EzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGjAY
BgNVBAoTEVZpcmdvIFRlc3QgU2lnbmVyMQ8wDQYDVQQLEwZIYWNrZXIxGDAWBgNV
BAMTD0JyYW5kb24gUGhpbGlwczEqMCgGCSqGSIb3DQEJARYbYnJhbmRvbi5waGls
aXBzQGV4YW1wbGUuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA
0Py2Gaq9lsxS7gN4UoF17iV9fI/NW+tgtfgjLqDrNpyvFqlBchhKVeoA2wdaRWpH
uDPWLnwUQNRYu4YVLuAt/32oG9AYzgBEjNMLGdAaqGGSl8HCdnXQh2hJD24WRa1O
dcj+o1kIoUKi5BklBZd+HzTEjbinLUZgCAYxohaIC8yLsZGy6Ez35pAu4XokP9HM
xVM9tZN6HwHI//givYkKv7R6a9iY0fLIHwmEoc4yVw7zNtBqzLLUHROjLCqqvIoi
Zkn7Z4k3080WCD1Q0hQt0SKsf+DCDGS3zaE5EeyVvfBVelqz2v4kFzNf+0lEA411
UnPEMkfZt+x2Gwr2UAObag961p46Ba+QgifQpyXNQ3bCapqMghfSz6PHeGYeFPNW
QKzVLNQSjnPBc0i0h+AckAFJRzYXWZsh1Jq2TCvTiw+1Irm1m9Ltuv+W85hvhLuB
1AY3runMLQN0eQ0gvjbkcKCKtpoKy4rHtVTiy+8hzL1zaWYu3Bny7BgPiKciiMbo
7TkDzWVX0hIfjcgJAzVogLC1/TVEQkoImomAvzPGXQpbLlX843juVeBCSwdkBAjj
lMoJyGcv6wfO91tkG8PWxUjPQQcJCr8/VSoK10jdUjrQocb3u+ud27n/6eQZOpvw
sbn5q3mr2+zUIon/9k8DbgPEhk6nrCq5rN6A7eCcdwMCAwEAATANBgkqhkiG9w0B
AQUFAAOCAgEAOJfGCRbeByGWHxU1DWTmkqG97NoROUw0Gq9BO3WvxbFCvMettDPz
SF6uUu+C7u5uQ5rCqAB1nDe2uCDljvB6XKBjfk/jbhFBa+56JDKmXxjXRaSLFpX2
NxByCb48Hir5021Qcebz+ojScwS6O/jpj/sOlGipssICJExBQs0ywlFKbLsM7zRs
v+s0MO5C8cgFO5Yz0KdOXep8rXStaM9N0IZApG+bywBI+1yQbOqP+BUJ95drmXfe
meDJR1/srhxRUicgq1psE2xsd9UEx6AdoakUDv7T2owtVw3PJavNQCW+8ql67DQj
7epQTQ5wVty1ED5PyfHYOlC0LNlUNmoADegUwyYcQ4246ayfqcnJxacQXIpWylF/
mGHQcR4AmVYsr26UkDYXcwb7BDxH0eb3w5s7X0hwtFzd8jwx3Vagdf4fafm4Vahz
XDiDXVMTZqyncIBu4/8PFfgqgLra/MhHODbLamndPMeHAn0zNXk5HEkiNRhHymSe
oTKkB4Ol10/kEWvOswU/LS69w7HDFgJAnnEi2+XCTHMim8kDcbhoGr2rlL1cT7yL
B3P11S3lepH+PFTFfU19IlrDGfXDxlKNWR9XNVqtQw/qnN+T7XZFW2tuDiMecCYj
64Qm7mwOJZDp1eFU0GiTuF7r7ZMBWTDDe98eOFOOiUZ3m+m43SGVb+U=
-----END CERTIFICATE-----]]
local bad_cert = [[-----BEGIN CERTIFICATE-----
MIIFxTCCA60CAQEwDQYJKoZIhvcNAQEFBQAwgaIxCzAJBgNVBAYTAlVTMRMwEQYD
VQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4gRnJhbmNpc2NvMQ4wDAYDVQQK
EwVWaXJnbzEQMA4GA1UECxMHSGFja2VyczEYMBYGA1UEAxMPQnJhbmRvbiBQaGls
aXBzMSowKAYJKoZIhvcNAQkBFhticmFuZG9uLnBoaWxpcHNAZXhhbXBsZS5jb20w
HhcNMTIwMTI2MjIwMjI0WhcNMjIwMTIzMjIwMjI0WjCBrTELMAkGA1UEBhMCVVMx
EzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGjAY
BgNVBAoTEVZpcmdvIFRlc3QgU2lnbmVyMQ8wDQYDVQQLEwZIYWNrZXIxGDAWBgNV
BAMTD0JyYW5kb24gUGhpbGlwczEqMCgGCSqGSIb3DQEJARYbYnJhbmRvbi5waGls
aXBzQGV4YW1wbGUuY29tMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA
0Py2Gaq9lsxS7gN4UoF17iV9fI/NW+tgtfgjLqDrNpyvFqlBchhKVeoA2wdaRWpH
uDPWLnwUQNRYu4YVLuAt/32oG9AYzgBEjNMLGdAaqGGSl8HCdnXQh2hJD24WRa1O
dcj+o1kIoUKi5BklBZd+HzTEjbinLUZgCAYxohaIC8yLsZGy6Ez35pAu4XokP9HM
xVM9tZN6HwHI//givYkKv7R6a9iY0fLIHwmEoc4yVw7zNtBqzLLUHROjLCqqvIoi
Zkn7Z4k3080WCD1Q0hQt0SKsf+DCDGS3zaE5EeyVvfBVelqz2v4kFzNf+0lEA411
UnPEMkfZt+x2Gwr2UAObag961p46Ba+QgifQpyXNQ3bCapqMghfSz6PHeGYeFPNW
QKzVLNQSjnPBc0i0h+AckAFJRzYXWZsh1Jq2TCvTiw+1Irm1m9Ltuv+W85hvhLuB
1AY3runMLQN0eQ0gvjbkcKCKtpoKy4rHtVTiy+8hzL1zaWYu3Bny7BgPiKciiMbo
7TkDzWVX0hIfjcgJAzVogLC1/TVEQkoImomAvzPGXQpbLlX843juVeBCSwdkBAjj
lMoJyGcv6wfO91tkG8PWxUjPQQcJCr8/VSoK10jdUjrQocb3u+ud27n/6eQZOpvw
sbn5q3mr2+zUIon/9k8DbgPEhk6nrCq5rN6A7eCcdwMCAwEAATANBgkqhkiG9w0B
AQUFAAOCAgEAOJfGCRbeByGWHxU1DWTmkqG97NoROUw0Gq9BO3WvxbFCvMettDPz
SF6uUu+C7u5uQ5rCqAB1nDe2uCDljvB6XKBjfk/jbhFBa+56JDKmXxjXRaSLFpX2
NxByCb48Hir5021Qcebz+ojScwS6O/jpj/sOlGipssICJExBQs0ywlFKbLsM7zRs
v+s0MO5C8cgFO5Yz0KdOXep8rXStaM9N0IZApG+bywBI+1yQbOqP+BUJ95drmXfe
meDJR1/srhxRUicgq1psE2xsd9UEx6AdoakUDv7T2owtVw3PJavNQCW+8ql67DQj
7epQTQ5wVty1ED5PyfHYOlC0LNlUNmoADegUwyYcQ4246ayfqcnJxacQXIpWylF/
mGHQcR4AmVYsr26UkDYXcwb7BDxH0eb3w5s7X0hwtFzd8jwx3Vagdf4fafm4Vahz
XDiDXVMTZqyncIBu4/8PFfgqgLra/MhHODbLamndPMeHAn0zNXk5HEkiNRhHymSe
oTKkB4Ol10/kEWvOswU/LS69w7HDFgJAnnEi2+XCTHMim8kDcbhoGr3rlL1cT7yL
B3P11S3lepH+PFTFfU19IlrDGfXDxlKNWR9XNVqtQw/qnN+T7XZFW2tuDiMecCYj
64Qm7mwOJZDp1eFU0GiTuF7r7ZMBWTDDe98eOFOOiUZ3m+m43SGVb+U=
-----END CERTIFICATE-----]]
exports['test_x509_verify'] = function(test, asserts)
ca = assert(crypto.x509_ca())
assert(ca.add_pem)
asserts.ok(ca:add_pem(ca_cert))
asserts.is_nil(ca:add_pem("FOBAR"))
asserts.ok(ca:verify_pem(cert_to_verify))
asserts.ok(ca:verify_pem(bad_cert) == false)
test.done()
end
return exports
|
local dev = require("eden.core.pack").dev
local M = {}
M.plugins = {
{
dev("EdenEast/nightfox.nvim"),
config = function()
require("nightfox").setup({
hlgroups = { TSPunctDelimiter = { fg = "${red}" } },
})
end,
},
{
{ "catppuccin/nvim", as = "catppuccin" },
{ "embark-theme/vim", as = "embark" },
"eddyekofo94/gruvbox-flat.nvim",
"rose-pine/neovim",
},
}
M.before = function()
vim.g.nightfox_debug = true
vim.g.rose_pine_variant = "moon"
end
return M
|
require "include/protoplug"
local cbFilter = require "include/dsp/cookbook filters"
local w
local function dist (x)
if x < 0.001 then
return x - w*0.01
else
return x + w*0.01
end
end
stereoFx.init ()
function stereoFx.Channel:init ()
end
function stereoFx.Channel:processBlock (samples, smax)
for i = 0, smax do
local s = samples[i]
samples[i] = dist(s)
end
end
params = plugin.manageParams {
{
name = "amount";
min = 0;
max = 1;
changed = function (val) w = val end;
};
}
|
local TestEZ = require(script.Parent.Parent.TestEZ)
local function check(str, test)
local plan = TestEZ.TestPlanner.createPlan({
{
-- This function environment hack is needed because the test
-- function is not defined or required from within a test. This
-- shouldn't come up in real tests.
method = function()
setfenv(test, getfenv())
test()
end,
path = {"errorTypeTests"}
}
})
local results = TestEZ.TestRunner.runPlan(plan)
assert(#results.errors > 0, "Expected some errors, got none.")
for _, err in ipairs(results.errors) do
local find = string.find(err, str)
assert(find, string.format("Expected errors containing [%s], found [%s]", str, err))
end
end
return {
["Error message should show up in output"] = function()
check("FOO", function()
error("FOO")
end)
end,
["Erroring with an object should mention the object"] = function()
check("table:", function()
error({})
end)
end,
["Erroring with an object with __tostring should show the string"] = function()
check("FOO", function()
local obj = setmetatable({}, {__tostring=function()
return "FOO"
end})
error(obj)
end)
end,
}
|
--------------------------------------------------------------------------
-- Crytek Source File.
-- Copyright (C), Crytek Studios, 2001-2006.
--------------------------------------------------------------------------
-- $Id$
-- $DateTime$
-- Description: Mine entity
--
--------------------------------------------------------------------------
-- History:
-- - 7/2006 : Created by Sascha Gundlach
--
--------------------------------------------------------------------------
Mine =
{
Client = {},
Server = {},
Properties=
{
fileModel = "objects/weapons/us/av_mine/avmine.cgf",
Radius = 2,
bAdjustToTerrain = 1,
Options = {
fDisarmDistance = 0.5,
fMinTriggerWeight = 50,
bNoVehicles = 0,
bWaterMine = 0,
},
FrogMine = {
bIsFrogMine = 0,
fJumpHeight = 2.5,
bJumpWhenShot = 1,
fDetonationDelay = 0.75,
},
Claymore = {
bIsClaymore = 0,
fCone = 45,
bCenterExplosion = 1,
fDamage = 100,
},
Destruction = {
Effect = "explosions.rocket.soil",
EffectScale = 0.2,
Radius = 2,
Pressure = 250,
Damage = 500,
Decal = "textures/decal/explo_decal.dds",
DecalScale = 1,
Direction = {x=0, y=0.0, z=-1},
},
Vulnerability =
{
fDamageTreshold = 0,
bExplosion = 1,
bCollision = 1,
bMelee = 1,
bBullet = 1,
bOther = 1,
},
},
LastHit =
{
impulse = {x=0,y=0,z=0},
pos = {x=0,y=0,z=0},
},
Editor=
{
Icon="mine.bmp",
ShowBounds = 1,
},
States = {"Deactivated","Armed","Disarmed","Destroyed"},
}
-----------------------------------------------------------------------------------------
MINE_CHECK = 1;
MINE_JUMP = 2;
-----------------------------------------------------------------------------------------
function Mine:OnReset()
local props=self.Properties;
if(not EmptyString(props.fileModel))then
self:LoadObject(0,props.fileModel);
end;
local Min={x=-props.Radius/2,y=-props.Radius/2,z=-2.5/2};
local Max={x=props.Radius/2,y=props.Radius/2,z=2.5/2};
self:SetTriggerBBox(Min,Max);
EntityCommon.PhysicalizeRigid(self,0,self.physics,0);
--change
self:SetCurrentSlot(0);
if(self.Properties.Claymore.bIsClaymore==0 and self.Properties.Options.bWaterMine==0)then
--Disable for now
--self:SetViewDistRatio(12);--12
end;
self.health=1;
self.ents={};
--Maybe this should work differently later
if(self.Properties.bAdjustToTerrain==1)then
if(self.Properties.Claymore.bIsClaymore==0)then
local pos={x=0,y=0,z=0};
CopyVector(pos,self:GetPos());
pos.z=System.GetTerrainElevation(self:GetPos())-0.01;--better put offset into properties
self:SetPos(pos);
end;
end;
self:GotoState("Armed");
end;
function Mine:OnSave(tbl)
tbl.health=self.health;
tbl.ents=self.ents;
tbl.disarmed=self.disarmed;
end;
function Mine:OnLoad(tbl)
self.health=tbl.health;
self.ents=tbl.ents;
self.disarmed=tbl.disarmed;
EntityCommon.PhysicalizeRigid(self,0,self.physics,0);
self:SetCurrentSlot(0);
end;
function Mine:OnPropertyChange()
self:OnReset();
end;
function Mine:OnInitCommon()
-- clients and servers need correct physics settings
local props=self.Properties.FrogMine;
if(props.bIsFrogMine==1)then
self.physics = {
bRigidBody=1,
bRigidBodyActive=1,
bResting=1,
Density= -1,
Mass=20,
};
else
self.physics = {
bRigidBody=0,
bRigidBodyActive=0,
bResting=1,
Density= -1,
Mass=20,
};
end;
self.health=1;
self.ents={};
self.disarmed=0;
self.tmp={x=0,y=0,z=0};
self.tmp_2={x=0,y=0,z=0};
self.tmp_3={x=0,y=0,z=0};
self:OnReset();
end;
function Mine.Server:OnInit()
Mine.OnInitCommon(self);
end;
function Mine.Client:OnInit()
Mine.OnInitCommon(self);
end;
function Mine:IsUsable(user)
if((self:GetState()~="Destroyed") and (self:GetState()~="Disarmed"))then
self:GetPos(self.tmp_2);
user:GetPos(self.tmp_3);
SubVectors(self.tmp,self.tmp_2,self.tmp_3);
local dist=LengthVector(self.tmp);
if(dist<self.Properties.Options.fDisarmDistance)then
return 2;
else
return 0;
end;
else
return 0;
end;
end;
function Mine:GetUsableMessage(idx)
return "press USE to disarm!";
end;
function Mine:OnUsed()
self:GotoState("Disarmed");
end;
function Mine.Server:OnHit(hit)
if((self:GetState()=="Disarmed") or (self:GetState()=="Destroyed") or (self:GetState()=="Deactivated"))then
return;
end;
local vul=self.Properties.Vulnerability;
local pass=hit.damage >= self.Properties.Vulnerability.fDamageTreshold;
if (pass and hit.explosion) then
pass = NumberToBool(vul.bExplosion);
--Ignore damage from claymores to other mines (Ben's request)
if(hit.shooterId and System.GetEntityClass(hit.shooterId)=="Mine")then
pass=false;
end;
elseif (pass and hit.type=="collision") then pass = NumberToBool(vul.bCollision);
elseif (pass and hit.type=="bullet") then pass = NumberToBool(vul.bBullet);
elseif (pass and hit.type=="melee") then pass = NumberToBool(vul.bMelee);
elseif (pass) then pass = NumberToBool(vul.bOther); end
if(pass)then
local damage= hit.damage;
self.shooterId=hit.shooterId;
self.health=self.health-damage;
if(self.health<=0)then
self:GotoState("Destroyed");
end;
end;
end;
function Mine:IsDead()
if(self.health<=0)then
return true;
else
return false;
end;
end;
function Mine:SetCurrentSlot(slot)
if(slot==0)then
self:DrawSlot(0, 1);
self:DrawSlot(1, 0);
else
self:DrawSlot(0, 0);
self:DrawSlot(1, 1);
end
self.currentSlot = slot;
end
function Mine:Explode()
self:Hide(1);
local props=self.Properties;
local explosion=props.Destruction;
local radius=explosion.Radius;
--Raise the radius a bit if it is a frog mine
if(props.FrogMine.bIsFrogMine==1)then
radius=radius+1.5;
end;
if(props.Claymore.bIsClaymore==0)then
g_gameRules:CreateExplosion(self.id,self.id,explosion.Damage,self:GetWorldPos(),explosion.Direction,radius,nil,explosion.Pressure,explosion.HoleSize,explosion.Effect,explosion.EffectScale);
else
--Claymore
local angle=props.Claymore.fCone*g_Deg2Rad;
if(props.Claymore.bCenterExplosion==1)then
g_gameRules:CreateExplosion(self.id,self.id,explosion.Damage,self:GetWorldPos(),explosion.Direction,1,nil,0,0,"",explosion.EffectScale);
end;
g_gameRules:CreateExplosion(self.id,self.id,explosion.Damage,self:GetWorldPos(),self:GetDirectionVector(1),radius,angle,explosion.Pressure,explosion.HoleSize,explosion.Effect,explosion.EffectScale);
end;
if (explosion.Decal ~= "") then
local decalDir = explosion.Direction;
if (props.Claymore.bIsClaymore~=0) then
decalDir = g_Vectors.down;
end
Particle.CreateDecal(self:GetWorldPos(), decalDir, radius*explosion.DecalScale, 300, explosion.Decal, math.random()*360, decalDir);
end
self:RemoveDecals();
end;
function Mine:Jump()
--Disable for now
--self:SetViewDistRatio(100);
EntityCommon.PhysicalizeRigid(self,0,self.physics,1);
local v0=math.sqrt(2*9.81*self.Properties.FrogMine.fJumpHeight);
local force=20*v0;
local impulsepos=g_Vectors.v000;
CopyVector(impulsepos,self:GetPos());
impulsepos.x=impulsepos.x+0.005;
self:AddImpulse(-1,impulsepos,{x=0,y=0,z=1},force,1);
self:PlaySoundEvent("sounds/weapons:mine:mine_jump",g_Vectors.v000,g_Vectors.v010,SOUND_DEFAULT_3D,SOUND_SEMANTIC_MECHANIC_ENTITY);
self:SetTimer(MINE_JUMP,self.Properties.FrogMine.fDetonationDelay*1000);
end;
function Mine:CheckEntities()
local speed;
local tmp={x=0,y=0,z=0};
local dist;
local options=self.Properties.Options;
for i,v in pairs(self.ents) do
if(v~=nil)then
if(v:GetMass()<options.fMinTriggerWeight)then
--Log(v:GetName().." too light, don't trigger!");
break;
elseif(options.bNoVehicles==1 and v.vehicle~=nil)then
--Log(v:GetName().." is no vehicle, don't trigger!");
break;
end;
if(self.Properties.Options.bWaterMine==0)then
local vel={x=0,y=0,z=0};
v:GetVelocity(vel);
speed=LengthVector(vel);
self:GetPos(self.tmp);
v:GetPos(self.tmp_2);
SubVectors(tmp,self.tmp_2,self.tmp_2);
dist=LengthVector(tmp);
--Log("Dist: "..dist.." Velocity: "..speed.." ("..0.55*(1+(dist/2.5)).." allowed)");
if(speed>0.55*(1+(dist/2.5)))then
--Log("Triggered by: "..v:GetName().." with weight: "..v:GetMass());
self:GotoState("Destroyed");
break;
end;
else
--Watermines don't care for speed and will always explode
if(v:IsEntityInside(self.id))then
self:GotoState("Destroyed");
break;
end;
end;
end;
end;
if(table.getn(self.ents)~=0)then
self:SetTimer(MINE_CHECK,100);
end;
end;
-----------------------------------------------------------------------------------
function Mine:Event_Disarmed()
self:GotoState("Disarmed");
BroadcastEvent(self, "Disarmed")
end;
function Mine:Event_Detonated()
self:GotoState("Destroyed");
BroadcastEvent(self, "Detonated")
end;
function Mine:Event_Activated()
if(self.disarmed==0)then
self:GotoState("Armed");
end;
BroadcastEvent(self, "Activated")
end;
function Mine:Event_Deactivated()
self:GotoState("Deactivated");
BroadcastEvent(self, "Deactivated")
end;
-----------------------------------------------------------------------------------
Mine.Server.Deactivated=
{
};
Mine.Server.Armed=
{
OnBeginState = function(self)
if(self.Properties.Claymore.bIsClaymore==0 and self.Properties.Options.bWaterMine==0)then
--Disable for now
--self:SetViewDistRatio(12);
end;
BroadcastEvent(self, "Armed")
end,
OnEnterArea = function(self,entity,areaId)
if(entity and entity:GetMass()>=self.Properties.Options.fMinTriggerWeight)then
if(entity.actor)then
table.insert(self.ents,entity);
self:SetTimer(MINE_CHECK,100);
else
self:GotoState("Destroyed");
end;
end;
end,
OnLeaveArea = function(self,entity,areaId)
for i,v in pairs(self.ents) do
if(v==entity)then
table.remove(self.ents,i);
break;
end;
end;
end,
OnTimer = function(self,timerId)
if(timerId==MINE_CHECK)then
self:CheckEntities();
end;
end,
};
Mine.Server.Disarmed=
{
OnBeginState = function(self)
self.disarmed=1;
for i,v in pairs(self.ents) do
table.remove(self.ents,i);
end;
--Disable for now
--self:SetViewDistRatio(100);
BroadcastEvent(self, "Disarmed")
end,
};
Mine.Server.Destroyed=
{
OnBeginState = function( self )
local props=self.Properties.FrogMine;
if(props.bIsFrogMine==1)then
if(self:IsDead())then
if(not props.bJumpWhenShot)then
self:Explode();
else
self:Jump();
end;
else
self:Jump();
end;
else
self:Explode();
end;
BroadcastEvent(self, "Detonated")
end,
OnTimer = function(self,timerId)
if(timerId==MINE_JUMP)then
self:Explode();
end;
end,
};
-----------------------------------------------------------------------------------
Mine.FlowEvents =
{
Inputs =
{
Detonated = { Mine.Event_Detonated, "bool" },
Disarmed = { Mine.Event_Disarmed, "bool" },
Activated = { Mine.Event_Activated, "bool" },
Deactivated = { Mine.Event_Deactivated, "bool" },
},
Outputs =
{
Detonated = "bool",
Disarmed = "bool",
Activated = "bool",
Deactivated = "bool",
},
}
|
-- 房间列表
local RoomListLayer = class("RoomListLayer", cc.Layer)
local ExternalFun = appdf.req(appdf.EXTERNAL_SRC .. "ExternalFun")
local RoomCreateLayer = appdf.req(appdf.CLIENT_SRC.."privatemode.plaza.src.views.RoomCreateLayer")
local RoomJoinLayer = appdf.req(appdf.CLIENT_SRC.."privatemode.plaza.src.views.RoomJoinLayer")
local RoomRecordLayer = appdf.req(appdf.CLIENT_SRC.."privatemode.plaza.src.views.RoomRecordLayer")
function RoomListLayer:ctor(delegate)
self._delegate = delegate
--开启级联透明度
self:setCascadeOpacityEnabled(true)
--背景
self._content = cc.Sprite:create("RoomList/sp_background.png")
self._content:setPosition(display.center)
self._content:addTo(self)
--房间列表视图
self._scrollView = ccui.ScrollView:create()
self._scrollView:setDirection(ccui.ScrollViewDir.vertical)
self._scrollView:setAnchorPoint(cc.p(0.5,0.5))
-- self._scrollView:setBackGroundColor(cc.RED)
-- self._scrollView:setBackGroundColorType(ccui.LayoutBackGroundColorType.solid)
-- self._scrollView:setBackGroundColorOpacity(100)
self._scrollView:setBounceEnabled(true)
self._scrollView:setScrollBarEnabled(false)
self._scrollView:setContentSize(cc.size(1210, 538))
self._scrollView:setPosition(self:getContentSize().width / 2, self:getContentSize().height / 2 - 15)
self._scrollView:setVisible(false)
self._scrollView:addTo(self)
--房间分类视图
self._categoryView = ccui.Layout:create()
self._categoryView:setAnchorPoint(cc.p(0.5,0.5))
-- self._categoryView:setBackGroundColor(cc.RED)
-- self._categoryView:setBackGroundColorType(ccui.LayoutBackGroundColorType.solid)
-- self._categoryView:setBackGroundColorOpacity(100)
self._categoryView:setContentSize(cc.size(1210, 538))
self._categoryView:setPosition(self:getContentSize().width / 2, self:getContentSize().height / 2 - 15)
self._categoryView:setCascadeOpacityEnabled(true)
self._categoryView:setVisible(false)
self._categoryView:addTo(self)
self._touchListener = function(ref, type)
--改变按钮点击颜色
if type == ccui.TouchEventType.began then
ref:setColor(cc.c3b(200, 200, 200))
elseif type == ccui.TouchEventType.ended or ccui.TouchEventType.canceled then
ref:setColor(cc.WHITE)
end
end
--游戏币场
self._btnGoldRoom = ccui.Button:create("RoomList/icon_gold_room.png", "RoomList/icon_gold_room.png")
self._btnGoldRoom:addTouchEventListener(self._touchListener)
self._btnGoldRoom:addClickEventListener(function() self:onClickGoldRoom() end)
self._btnGoldRoom:addTo(self._categoryView)
--创建房间
self._btnCreateRoom = ccui.Button:create("RoomList/icon_create_room.png", "RoomList/icon_create_room.png")
self._btnCreateRoom:addTouchEventListener(self._touchListener)
self._btnCreateRoom:addClickEventListener(function() self:onClickCreateRoom() end)
self._btnCreateRoom:addTo(self._categoryView)
--加入房间
self._btnJoinRoom = ccui.Button:create("RoomList/icon_join_room.png", "RoomList/icon_join_room.png")
self._btnJoinRoom:addTouchEventListener(self._touchListener)
self._btnJoinRoom:addClickEventListener(function() self:onClickJoinRoom() end)
self._btnJoinRoom:addTo(self._categoryView)
--我的房间
self._btnMyRoom = ccui.Button:create("RoomList/icon_my_room.png", "RoomList/icon_my_room.png")
self._btnMyRoom:setPosition(self._categoryView:getContentSize().width - 26, self._categoryView:getContentSize().height / 2)
self._btnMyRoom:addTouchEventListener(self._touchListener)
self._btnMyRoom:addClickEventListener(function() self:onClickMyRoom() end)
self._btnMyRoom:addTo(self._categoryView)
end
------------------------------------------------------------------------------------------------------------
-- 公共接口
--显示房间分类
function RoomListLayer:showRoomCategory(wKindID)
print("显示房间分类")
--保存游戏类型
self._kindID = wKindID
--显示
self._categoryView:setVisible(true)
self._scrollView:setVisible(false)
local centerX = self._categoryView:getContentSize().width / 2
local centerY = self._categoryView:getContentSize().height / 2
local normalRoomCount = GlobalUserItem.getNormalRoomCount(wKindID)
if normalRoomCount > 0 then
self._btnGoldRoom:setPosition(centerX - 360, centerY)
self._btnCreateRoom:setPosition(centerX, centerY)
self._btnJoinRoom:setPosition(centerX + 360, centerY)
else
self._btnCreateRoom:setPosition(centerX - 250, centerY)
self._btnJoinRoom:setPosition(centerX + 250, centerY)
end
--是否显示游戏币场
self._btnGoldRoom:setVisible(normalRoomCount > 0)
end
--显示房间列表
function RoomListLayer:showRoomList(wKindID)
print("显示房间列表", wKindID)
--保存游戏类型
self._kindID = wKindID
--清空子视图
self._scrollView:removeAllChildren()
--显示
self._categoryView:setVisible(false)
self._scrollView:setVisible(true)
--获取房间列表
local roomList = GlobalUserItem.roomlist[wKindID]
local roomCount = roomList and #roomList or 0
local marginX = 48 --X边距
local marginY = 26 --Y边距
local spaceX = 34 --X间距
local spaceY = 12 --Y间距
local colCount = 3
local roomLines = math.ceil( roomCount / colCount )
local roomSize = cc.size(349, 237)
local contentSize = self._scrollView:getContentSize()
local containerWidth = contentSize.width
local containerHeight = marginY * 2 + roomLines * roomSize.height + (roomLines - 1) * spaceY;
--判断容器高度是否小于最小高度
if containerHeight < contentSize.height then
containerHeight = contentSize.height
end
--设置容器大小
self._scrollView:setInnerContainerSize(cc.size(containerWidth, containerHeight))
--创建房间
for i = 0, roomCount - 1 do
--房间信息
local roomInfo = roomList[i + 1]
local iconfile = string.format("RoomList/icon_room_%d.png", roomInfo.wServerLevel % 10)
local row = math.floor( i / colCount )
local col = i % colCount
local x = (marginX + roomSize.width / 2 + col * (spaceX + roomSize.width))
local y = containerHeight - (marginY + roomSize.height / 2 + row * (spaceY + roomSize.height))
local btnRoom = ccui.Button:create(iconfile, iconfile, iconfile)
btnRoom:setPosition(x, y)
btnRoom:setCascadeOpacityEnabled(true)
btnRoom:addTo(self._scrollView)
btnRoom:addTouchEventListener(self._touchListener)
btnRoom:addClickEventListener(function()
self:onClickRoom(roomInfo.wServerID)
end)
--房间名称
local nServerNameLen = string.len(roomInfo.szServerName)
local txtServerName = ccui.Text:create(roomInfo.szServerName, "fonts/round_body.ttf", (nServerNameLen > 10) and 32 or 36)
:setPosition(175, 180)
:setTextColor(cc.WHITE)
:enableOutline(cc.c4b(0,0,0,255), 1)
:addTo(btnRoom)
--底分
local txtCellScore = ccui.Text:create(roomInfo.lCellScore, "fonts/round_body.ttf", 32)
:setPosition(205, 120)
:setTextColor(cc.WHITE)
:addTo(btnRoom)
--在线人数
local dwTotalOnlineCount = roomInfo.dwOnLineCount + roomInfo.dwAndroidCount
local fOnlineRatio = dwTotalOnlineCount / roomInfo.dwFullCount
local strOnlineStatus = "流畅"
if fOnlineRatio > 2 / 3 then
strOnlineStatus = "繁忙"
elseif fOnlineRatio > 1 / 3 then
strOnlineStatus = "拥挤"
end
local txtOnlineStatus = ccui.Text:create(strOnlineStatus, "fonts/round_body.ttf", 24)
:setAnchorPoint(cc.p(0,0.5))
:setPosition(90, 54)
:setTextColor(cc.c4b(223, 223, 223, 153))
:addTo(btnRoom)
--进入限制
local strEnterLimit = "无限制"
if roomInfo.lEnterScore >= 10000 then
strEnterLimit = roomInfo.lEnterScore / 10000 .. "万以上"
elseif roomInfo.lEnterScore > 0 then
strEnterLimit = roomInfo.lEnterScore .. "以上"
end
local txtEnterScore = ccui.Text:create(strEnterLimit, "fonts/round_body.ttf", 24)
:setAnchorPoint(cc.p(0,0.5))
:setPosition(208, 54)
:setTextColor(cc.c4b(223, 223, 223, 153))
:addTo(btnRoom)
end
--滚动的到前面
self._scrollView:jumpToTop()
end
------------------------------------------------------------------------------------------------------------
-- 事件处理
--点击返回
function RoomListLayer:onKeyBack()
local privateRoomCount = GlobalUserItem.getPrivateRoomCount(self._kindID)
if self._scrollView:isVisible() then
if privateRoomCount > 0 then --显示房间分类
self._categoryView:setVisible(true)
self._scrollView:setVisible(false)
return false
end
end
return true
end
--点击游戏币场
function RoomListLayer:onClickGoldRoom()
--播放按钮音效
ExternalFun.playClickEffect()
self:showRoomList(self._kindID)
end
--点击创建房间
function RoomListLayer:onClickCreateRoom()
--播放按钮音效
ExternalFun.playClickEffect()
showPopupLayer(RoomCreateLayer:create(self._kindID))
end
--点击加入房间
function RoomListLayer:onClickJoinRoom()
--播放按钮音效
ExternalFun.playClickEffect()
showPopupLayer(RoomJoinLayer:create(self._kindID))
end
--点击我的房间
function RoomListLayer:onClickMyRoom()
--播放按钮音效
ExternalFun.playClickEffect()
showPopupLayer(RoomRecordLayer:create(self._kindID))
end
--点击房间
function RoomListLayer:onClickRoom(wServerID)
print("点击房间图标", wServerID)
--播放按钮音效
ExternalFun.playClickEffect()
if self._delegate and self._delegate.onClickRoom then
self._delegate:onClickRoom(wServerID, self._kindID)
end
end
return RoomListLayer
|
---------------------------------------------------------------------------------------------------
-- Proposal: https://github.com/smartdevicelink/sdl_evolution/blob/master/proposals/0190-resumption-data-error-handling.md
--
-- Description:
-- Check data resumption is failed for 1st app and succeeded for 2nd app
-- in case if HMI responds with <erroneous> result code to at least one request from SDL related to the 1st app
-- (unexpected disconnect scenario)
--
-- In case:
-- 1. AddCommand_1, AddSubMenu_1, CreateInteractionChoiceSet_1, SetGlobalProperties_1, SubscribeButton_1,
-- SubscribeVehicleData_1, SubscribeWayPoints_1, CreateWindow_1, GetInteriorVehicleData_1 are sent by app1
-- 2. AddCommand_2, AddSubMenu_2, CreateInteractionChoiceSet_2, SetGlobalProperties_2, SubscribeButton_2,
-- SubscribeVehicleData_2, SubscribeWayPoints_2, CreateWindow_2, GetInteriorVehicleData_2 are sent by app2
-- 3. Unexpected disconnect and reconnect are performed
-- 4. App1 and app2 re-register with actual HashId
-- SDL does:
-- - start resumption process for both apps
-- - send set of <Rpc_n> requests to HMI
-- 5. HMI responds with <erroneous> resultCode to one request related to app1 and <successful> for others
-- SDL does:
-- - process responses from HMI
-- - remove already restored data for app1
-- - send set of revert <Rpc_n> requests to HMI (except the one related to <erroneous> response for app1)
-- - respond RegisterAppInterfaceResponse(success=true,result_code=RESUME_FAILED) to mobile application app1
-- - restore all data for app2
-- - respond RegisterAppInterfaceResponse(success=true,result_code=SUCCESS) to mobile application app2
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local runner = require('user_modules/script_runner')
local common = require('test_scripts/Resumption/Handling_errors_from_HMI/commonResumptionErrorHandling')
--[[ Test Configuration ]]
runner.testSettings.isSelfIncluded = false
-- [[ Local Variables ]]
local rpcs = {
addCommand = { "UI", "VR" },
addSubMenu = { "UI" },
createIntrerationChoiceSet = { "VR" },
setGlobalProperties = { "UI", "TTS" },
subscribeVehicleData = { "VehicleInfo" },
getInteriorVehicleData = { "RC" },
createWindow = { "UI" },
subscribeButton = { "Buttons" }
}
local rpcsForApp2 = {
addCommand = { "UI", "VR" },
addSubMenu = { "UI" },
createIntrerationChoiceSet = { "VR" },
setGlobalProperties = { "UI", "TTS" },
createWindow = { "UI" },
subscribeButton = { "Buttons" }
}
local VehicleDataForApp2 = {
requestParams = { speed = true },
responseParams = { speed = { resultCode = "SUCCESS", dataType = "VEHICLEDATA_SPEED"} }
}
--[[ Scenario ]]
runner.Title("Preconditions")
runner.Step("Clean environment", common.preconditions)
runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
runner.Title("Test")
for k, value in common.pairs(rpcs) do
for _, interface in common.pairs(value) do
runner.Title("Rpc " .. k .. " error resultCode to interface " .. interface)
runner.Step("Register app1", common.registerAppWOPTU)
runner.Step("Register app2", common.registerAppWOPTU, { 2 })
runner.Step("Activate app1", common.activateApp)
runner.Step("Activate app2", common.activateApp, { 2 })
for rpc in pairs(rpcs) do
runner.Step("Add for app1 " .. rpc, common[rpc])
end
for rpc in pairs(rpcsForApp2) do
runner.Step("Add for app2 " .. rpc, common[rpc], { 2 })
end
runner.Step("Add for app2 subscribeVehicleData", common.subscribeVehicleData, { 2, VehicleDataForApp2 })
runner.Step("Add for app2 getInteriorVehicleData", common.getInteriorVehicleData, { 2, false, "CLIMATE" })
runner.Step("Unexpected disconnect", common.unexpectedDisconnect, { 2 })
runner.Step("Connect mobile", common.connectMobile)
runner.Step("openRPCserviceForApp1", common.openRPCservice, { 1 })
runner.Step("openRPCserviceForApp2", common.openRPCservice, { 2 })
runner.Step("Reregister Apps resumption error to " .. interface .. " " .. k, common.reRegisterAppsWithError,
{ common.checkResumptionData2Apps, k, interface })
runner.Step("Unregister app1", common.unregisterAppInterface, { 1 })
runner.Step("Unregister app2", common.unregisterAppInterface, { 2 })
end
end
runner.Title("Postconditions")
runner.Step("Stop SDL", common.postconditions)
|
client_script('client/client.lua')
ui_page('client/html/index.html')
files({
'client/html/index.html',
'client/html/script.js',
'client/html/style.css',
'client/html/cursor.png'
})
|
local Request = require('apicast.policy.routing.request')
describe('Request', function()
describe('.get_uri', function()
it('returns the uri', function()
ngx.var = { uri = 'test_path' }
local request = Request.new()
local uri = request:get_uri()
assert.equals(ngx.var.uri, uri)
end)
it('caches the uri', function()
ngx.var = { uri = 'test_path' }
local request = Request.new()
request:get_uri() -- cached after this
local uri = request:get_uri()
assert.equals(ngx.var.uri, uri)
end)
end)
describe('.get_header', function()
it('returns the value of the header', function()
local header_name = 'test_header'
local header_val = 'some_value'
stub(ngx.req, 'get_headers',
function() return { [header_name] = header_val }
end)
local request = Request.new()
local res = request:get_header(header_name)
assert.equals(header_val, res)
end)
it('caches the value of the header', function()
local header_name = 'test_header'
local header_val = 'some_value'
stub(ngx.req, 'get_headers',
function() return { [header_name] = header_val }
end)
local request = Request.new()
request:get_header(header_name) -- cached after this
local res = request:get_header(header_name)
assert.stub(ngx.req.get_headers).was_called(1)
assert.equals(header_val, res)
end)
it('returns nil when the header is not set', function()
local header_name = 'test_header'
stub(ngx.req, 'get_headers', function()
return { [header_name] = nil }
end)
local request = Request.new()
local res = request:get_header(header_name)
assert.is_nil(res)
end)
end)
describe('.get_uri_arg', function()
it('returns the value of the query arg', function()
local query_arg_name = 'test_query_arg'
local query_arg_val = 'some_value'
stub(ngx.req, 'get_uri_args', function()
return { [query_arg_name] = query_arg_val }
end)
local request = Request.new()
local res = request:get_uri_arg(query_arg_name)
assert.equals(query_arg_val, res)
end)
it('caches the value of the query arg', function()
local query_arg_name = 'test_query_arg'
local query_arg_val = 'some_value'
stub(ngx.req, 'get_uri_args', function()
return { [query_arg_name] = query_arg_val }
end)
local request = Request.new()
request:get_uri_arg(query_arg_name) -- cached after this
local res = request:get_uri_arg(query_arg_name)
assert.stub(ngx.req.get_uri_args).was_called(1)
assert.equals(query_arg_val, res)
end)
it('returns nil when he query arg is not set', function()
local query_arg_name = 'test_query_arg'
stub(ngx.req, 'get_uri_args', function()
return { [query_arg_name] = nil }
end)
local request = Request.new()
local res = request:get_uri_arg(query_arg_name)
assert.is_nil(res)
end)
end)
describe('.get_validated_jwt', function()
it('returns the jwt when it has been set', function()
local request = Request.new()
local test_jwt = { some_claim = 'some_val' }
request:set_validated_jwt(test_jwt)
assert.equals(test_jwt, request:get_validated_jwt())
end)
it('returns nil when the jwt has not been set', function()
local request = Request.new()
assert.is_nil(request:get_validated_jwt())
end)
end)
end)
|
--[[
Rova Initializer
Author: Dr_K4rma aka Alexander Karpov
Date: 1 Feb. 2021
Provides: Launcher script for the Rova framework
Description:
Rova, or "Roblox Java" is a framework/library manager that is
designed to make lua look (and behave) like Java
]]
----------------------------------
-- SERVICES & PRIMARY OBJECTS
----------------------------------
local MainDirectory = script.Parent
----------------------------------
-- CONFIG VARIABLES
----------------------------------
----------------------------------
-- MISC VARIABLES
----------------------------------
----------------------------------
-- PRIVATE FUNCTIONS
----------------------------------
----------------------------------
-- PUBLIC FUNCTIONS
----------------------------------
----------------------------------
-- MAIN CODE
----------------------------------
require(MainDirectory.Shared.Rova)
|
-- Morph into new class or buy upgrade.
function Alien:ProcessBuyAction(techIds)
ASSERT(type(techIds) == "table")
ASSERT(table.icount(techIds) > 0)
local success = false
if self.UpgradeManager then
success = self.UpgradeManager:GiveUpgrades(techIds, self)
end
if not success then
self:TriggerInvalidSound()
end
return success
end
|
-- copy all globals into locals, some locals are prefixed with a G to reduce name clashes
local coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,Gload,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require=coroutine,package,string,table,math,io,os,debug,assert,dofile,error,_G,getfenv,getmetatable,ipairs,load,loadfile,loadstring,next,pairs,pcall,print,rawequal,rawget,rawset,select,setfenv,setmetatable,tonumber,tostring,type,unpack,_VERSION,xpcall,module,require
local json=require("wetgenes.json")
local wstr=require("wetgenes.string")
local dat=require("wetgenes.www.any.data")
local cache=require("wetgenes.www.any.cache")
local log=require("wetgenes.www.any.log").log -- grab the func from the package
local fetch=require("wetgenes.www.any.fetch")
local sys=require("wetgenes.www.any.sys")
local waka=require("waka")
local wakapages=require("waka.pages")
--module
local M={ modname=(...) } ; package.loaded[M.modname]=M
function M.kind(srv) return "dimeload.projects" end
M.default_props=
{
published=0, -- set to 1 if published
}
M.default_cache=
{
}
--------------------------------------------------------------------------------
--
-- check that entity has initial data and set any missing defaults
-- the second return value is false if this is not a valid entity
--
--------------------------------------------------------------------------------
function M.check(srv,ent)
local ok=true
local c=ent.cache
local p=ent.props
if not p.published then p.published=0 end
return ent
end
--------------------------------------------------------------------------------
--
-- Load a list of active visible projects
--
--------------------------------------------------------------------------------
function M.list(srv,opts)
opts=opts or {}
local list={}
local q={
kind=M.kind(srv),
limit=opts.limit or 10,
offset=0,
}
q[#q+1]={"filter","published","==",1}
q[#q+1]={"sort","updated","DESC"}
local ret=dat.query(q)
for i=1,#ret.list do local v=ret.list[i]
dat.build_cache(v)
end
return ret.list
end
-----------------------------------------------------------------------------
--
-- hook into waka page updates, any page under will come in here
-- that way we canuse the waka to update our basic data
--
-- page is just an entity get on the page, check its id or whatever before proceding
--
-----------------------------------------------------------------------------
function M.waka_changed(srv,page)
if not page then return end
local id=tostring(page.key.id)
--log("check : "..id)
local projectname
id:gsub("/dl/([^/]+)",function(s) projectname=s end)
if not projectname then return end
local refined=wakapages.load(srv,id)[0]
local ldat=refined.lua or {} -- better just to use #lua chunk for data, so it can parse and maintain native types
local it=M.set(srv,projectname,function(srv,e) -- create or update
local c=e.cache
-- grab chunks from this page that we want to associate with this project on other pages
c.body=""
c.title=refined.title or ""
c.about=refined.about or ""
c.icon=refined.icon or ""
c.video=refined.video or ""
c.sitelink=refined.sitelink or "" -- could just be the dimeload page or a special gamesite
c.name=projectname
c.published=ldat.published or 0
c.files=ldat.files or {}
return true
end)
end
dat.set_defs(M) -- create basic data handling funcs
dat.setup_db(M) -- make sure DB exists and is ready
-- add our hook to the waka stuffs, this should get called on module load
-- We want to catch all edits here and then filter them in the function
waka.add_changed_hook("^/",M.waka_changed)
|
-- Copyright 2022 philh30
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
local log = require('log')
local cap_map = require('cap_map')
local wrap = require('wrap_eiscp')
local builder = function(device,comp,cap,attr,state)
local map = cap_map(device)
if (((map[comp] or {})[cap] or {})[attr] or {}).cmd then
local cmd = map[comp][cap][attr].cmd .. (map[comp][cap][attr][state] or state)
local msg = wrap(cmd)
log.trace(string.format('TX > %s',msg))
return msg
else
return nil
end
end
return builder
|
local sqlite3 = require "lsqlite3"
local utils = require "vuci.utils"
local cjson = require "vuci.json"
local rpc = require "vuci.rpc"
local fs = require "vuci.fs"
local uci = require "uci"
local M = {}
local RPC_VUCI_MENU_FILES_PATH = "/usr/share/vuci/menu.d"
local RPC_VUCI_LOCALES_PATH = "/www/i18n"
local function menu_files(files)
for _, file in ipairs(files) do
local f = io.open(file)
if not f then return false end
f:close()
end
return true
end
function M.get_lang()
local c = uci.cursor()
return { lang = c:get("vuci", "main", "lang") }
end
function M.set_lang(params)
local c = uci.cursor()
if type(params.lang) ~= "string" then
return rpc.ERROR_CODE_INVALID_PARAMS
end
c:set("vuci", "main", "lang", params.lang)
c:commit("vuci")
return { lang = c:get("vuci", "main", "lang") }
end
function M.menu(params)
local menus = {}
for name in fs.dir(RPC_VUCI_MENU_FILES_PATH) do
if name:match("%.json$") then
local file = RPC_VUCI_MENU_FILES_PATH .. "/" .. name
local menu = cjson.decode(utils.readfile(file))
for path, item in pairs(menu) do
local files = not item.files or menu_files(item.files)
item.files = nil
if files and rpc.access("menu", "/" .. path, "r") then
menus[path] = item
end
end
end
end
return {menu = menus}
end
function M.load_locales(params)
local locales = {}
if type(params.locale) ~= "string" then
return rpc.ERROR_CODE_INVALID_PARAMS
end
local match = string.format("%%.%s.json$", params.locale):gsub("%-", "%%-")
for name in fs.dir(RPC_VUCI_LOCALES_PATH) do
if name:match(match) then
local file = RPC_VUCI_LOCALES_PATH .. "/" .. name
local locale = cjson.decode(utils.readfile(file))
locales[#locales + 1] = locale
end
end
return locales
end
local function set_password(params)
local username, password = params.username, params.password
if type(username) ~= "string" or type(password) ~= "string" then
return rpc.ERROR_CODE_INVALID_PARAMS
end
local db = sqlite3.open("/etc/vuci-httpd/oh.db")
local found = false
db:exec(string.format("SELECT password FROM account WHERE username = %s", username), function() found = true end)
if not found then
local aclgroup = username == "admin" and "admin" or ""
db:exec(string.format("INSERT INTO account VALUES('%s', '', '%s')", username, aclgroup))
end
local hash = utils.md5(username, password)
db:exec(string.format("UPDATE account SET password = '%s' WHERE username = '%s'", hash, username))
db:close()
end
function M.set_password(params)
local s = rpc.session()
if s.aclgroup ~= "admin" and params.username ~= s.username then
return rpc.ERROR_CODE_ACCESS
end
return set_password(params)
end
function M.first_login()
local c = uci.cursor()
return {
first = c:get("vuci", "main", "first_login") == "1"
}
end
function M.first_set(params)
if not M.first_login() then
return rpc.ERROR_CODE_ACCESS
end
local c = uci.cursor()
c:set("vuci", "main", "lang", params.lang)
c:set("vuci", "main", "first_login", "0")
c:commit("vuci")
return set_password(params)
end
return M
|
local Logger = require("__DedLib__/modules/logger").create("Control")
require("scripts/config") -- Config is a singleton, so it only needs called here
local Area_Management = require("scripts/area_management")
local Storage = require("scripts/storage")
local Gui = require("scripts/gui")
script.on_init(function()
Storage.init()
Gui.ClaimableTileCounter.drawAll()
Config.Game.refresh()
end)
script.on_configuration_changed(function()
Config.Game.refresh()
end)
script.on_load(function()
Config.Game.refresh()
end)
-- Select the tiles (not water)
-- manually do a find for entities that are entities with health and collide with a normal collision mask
-- then manually check for ignorable types
script.on_event(defines.events.on_player_selected_area, function(event)
local item = event.item
if item == Config.Prototypes.CHUNK_SELECTOR then
Logger:info("Area selected using %s", item)
Area_Management.add_selected_area(event.surface, event.area, event.tiles, game.get_player(event.player_index))
end
end)
-- Ghosts are added in here, so we don't care when the ghost is constructed, since it was already counted
script.on_event(defines.events.on_built_entity, function(event)
local entity = event.created_entity
local entityName = entity.name
Logger:debug("Player built event for entity: %s", entityName)
Area_Management.add_entity(entity)
end)
function on_entity_removed(event)
local entity = event.entity or event.ghost
Area_Management.remove_entity(entity)
end
function on_entity_died(event)
local entity = event.entity
-- If the force isn't making a ghost then this entity can be removed from the count
if entity.force.ghost_time_to_live == 0 then --TODO - performance -- this needs caching
on_entity_removed(event)
end
end
script.on_event(defines.events.on_player_mined_entity, on_entity_removed) -- TODO - performance(?) - this triggers on mining ore as well?
script.on_event(defines.events.on_entity_died, on_entity_died)
script.on_event(defines.events.on_pre_ghost_deconstructed, on_entity_removed) -- TODO - performance - this can be heavy
function on_built_tile(event)
local surface = game.get_surface(event.surface_index)
local tiles = event.tiles
local tile = event.tile
local tileName = tile.name
Logger:debug("Tile built event for %d tiles to %s", #tiles, tileName)
Logger:trace(tiles)
if tile.mineable_properties.minable and string.sub(tileName, 1, #Config.MOD_PREFIX) ~= Config.MOD_PREFIX then
-- MomsSpaghetti mod tiles should not be buildable outright, but just in case...
Logger:info("Minable non-mod tiles built, replacing...")
Area_Management.replace_tile(surface, tiles, tileName)
else
Logger:debug("Tile is either not minable or is a mod tile")
end
end
script.on_event(defines.events.on_player_built_tile, on_built_tile)
script.on_event(defines.events.on_robot_built_tile, on_built_tile)
function on_script_raised_set_tiles(event)
local setTiles = event.tiles
Logger:debug("Script raised set tiles event for %d tiles", #setTiles)
Logger:trace(setTiles)
local groupedTiles = {}
for _, tile in ipairs(setTiles) do
local name = tile.name
if not groupedTiles[name] then
groupedTiles[name] = {}
end
table.insert(groupedTiles[name], tile)
end
Logger:trace("Tiles have been grouped: %s", groupedTiles)
for groupName, tiles in pairs(groupedTiles) do
Logger:debug("Triggering normal built tiles event to tile %s", groupName)
on_built_tile{surface_index = event.surface_index, tiles = tiles, tile = prototype}
end
end
script.on_event(defines.events.script_raised_set_tiles, on_script_raised_set_tiles)
script.on_event(defines.events.on_player_created, function(event)
local player = game.get_player(event.player_index)
Gui.ClaimableTileCounter.draw(player)
end)
script.on_event(defines.events.on_runtime_mod_setting_changed, function(event)
local setting = event.setting
if setting == Config.Settings.STARTING_ALLOWED_TILES_NAME or setting == Config.Settings.POPULATED_TILE_BONUS_NAME then
Logger:info("%s setting changed, refreshing values and recalculating allowed tiles...", setting)
Config.Settings.refresh()
Storage.AllowedTiles.recalculate()
Gui.ClaimableTileCounter.updateAll()
end
end)
--script.on_event(defines.events.on_gui_click, function(event) -- TODO - ignored for now
-- local element = event.element
-- local tags = element.tags
--
-- Logger:info("Clicked %s", element.name)
-- if tags["mod"] == Config.MOD_PREFIX then
-- local player = game.get_player(event.player_index)
-- local name = element.name
-- Logger:info("Mod interactive element %s clicked by %s", name, player.name)
--
-- if tags["action"] == "open_details" then
-- Gui.ClaimedAreaDetails.draw(player)
-- elseif tags["action"] == "close_details" then
-- Gui.ClaimedAreaDetails.destroy(player)
-- end
-- end
--end)
|
-- burying feelings
-- between these lines of Lua
-- until overflow
local af
local current = ThemePrefs.Get("RabbitHole")
local InputHandler = function(event)
if not event or not event.button then return false end
af:playcommand("InputEvent", event)
end
local t = Def.ActorFrame{
InitCommand=function(self) af=self end,
OnCommand=function(self) if current ~= 19 then SCREENMAN:GetTopScreen():AddInputCallback(InputHandler) end end,
OffCommand=function(self) if current < 21 then ThemePrefs.Set( "RabbitHole", current+1 ) end end,
}
if current > 21 then
if SL.Global.RabbitHole then
t[#t+1] = LoadActor("./"..SL.Global.RabbitHole.."/default.lua")..{
OffCommand=function(self) SL.Global.RabbitHole = nil end
}
else
t[#t+1] = Def.Actor{
OnCommand=function(self)
local topscreen = SCREENMAN:GetTopScreen()
topscreen:SetNextScreenName("ScreenRabbitHoleSelect")
topscreen:StartTransitioningScreen("SM_GoToNextScreen")
end
}
end
else
t[#t+1] = LoadActor("./"..current.."/default.lua")
end
return t
|
--[
--By Chromium
--Project started: June 26th, 2016
--Last updated: June 28th, 2016
--my first script
--]
wait()
local hum = game.Workspace.gus14657.Humanoid --name here
local plr = game.Workspace.gus14657 --name here
wait(0.1)
hum.WalkSpeed = 32
plr.Head.face.Texture = "http://www.roblox.com/asset/?id=101765221"
plr.Shirt:Remove()
plr.Pants:Remove()
Shirt = Instance.new("Shirt",Character)
Shirt.Parent = plr
Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=249639658"
Pant = Instance.new("Pants",Character)
Pant.Parent = plr
Pant.PantsTemplate = "http://www.roblox.com/asset/?id=249639685"
lite = Instance.new("PointLight")
lite.Parent = plr.Torso
lite.Brightness = 100
lite.Range = 8
lite.Color = Color3.new(1,1,1)
|
--
-- Author: huger
-- Date: 2018-01-29 16:57:22
--
tool = {}
-- 传入DrawNode对象,画圆角矩形
function tool.drawNodeRoundRect(drawNode, rect, borderWidth, radius, color, fillColor)
-- segments表示圆角的精细度,值越大越精细
local segments = 20
local origin = cc.p(rect.x, rect.y)
local destination = cc.p(rect.x + rect.width, rect.y - rect.height)
local points = {}
-- 算出1/4圆
local coef = math.pi / 2 / segments
local vertices = {}
for i=0, segments do
local rads = (segments - i) * coef
local x = radius * math.sin(rads)
local y = radius * math.cos(rads)
table.insert(vertices, cc.p(x, y))
end
local tagCenter = cc.p(0, 0)
local minX = math.min(origin.x, destination.x)
local maxX = math.max(origin.x, destination.x)
local minY = math.min(origin.y, destination.y)
local maxY = math.max(origin.y, destination.y)
local dwPolygonPtMax = (segments + 1) * 4
local pPolygonPtArr = {}
-- 左上角
tagCenter.x = minX + radius;
tagCenter.y = maxY - radius;
for i=0, segments do
local x = tagCenter.x - vertices[i + 1].x
local y = tagCenter.y + vertices[i + 1].y
table.insert(pPolygonPtArr, cc.p(x, y))
end
-- 右上角
tagCenter.x = maxX - radius;
tagCenter.y = maxY - radius;
for i=0, segments do
local x = tagCenter.x + vertices[#vertices - i].x
local y = tagCenter.y + vertices[#vertices - i].y
table.insert(pPolygonPtArr, cc.p(x, y))
end
-- 右下角
tagCenter.x = maxX - radius;
tagCenter.y = minY + radius;
for i=0, segments do
local x = tagCenter.x + vertices[i + 1].x
local y = tagCenter.y - vertices[i + 1].y
table.insert(pPolygonPtArr, cc.p(x, y))
end
-- 左下角
tagCenter.x = minX + radius;
tagCenter.y = minY + radius;
for i=0, segments do
local x = tagCenter.x - vertices[#vertices - i].x
local y = tagCenter.y - vertices[#vertices - i].y
table.insert(pPolygonPtArr, cc.p(x, y))
end
if fillColor == nil then
fillColor = cc.c4f(0, 0, 0, 0)
end
drawNode:drawPolygon(pPolygonPtArr, #pPolygonPtArr, fillColor, borderWidth, color)
end
function tool.maskedSprite(spritePath, size, radius)
local textureSprite = cc.Sprite:create(spritePath)
local textureSize = textureSprite:getContentSize()
local scale = nil
if textureSize.width > textureSize.height then
scale = size.height/textureSize.height
else
scale = size.width/textureSize.width
end
textureSprite:setScale(scale)
local maskSprite = cc.DrawNode:create()
tool.drawNodeRoundRect(maskSprite, cc.rect(-textureSize.width/2*scale, textureSize.height/2*scale, textureSize.width*scale, textureSize.height*scale), 0.001, radius, cc.c4f(1, 1, 1, 1), cc.c4f(1, 1, 1, 1))
local renderTexture = cc.RenderTexture:create(textureSize.width,textureSize.height)
maskSprite:setPosition(cc.p(textureSize.width/2,textureSize.height/2))
textureSprite:setPosition(cc.p(textureSize.width/2,textureSize.height/2))
maskSprite:setBlendFunc(cc.blendFunc(GL_ONE,GL_ZERO))
textureSprite:setBlendFunc(cc.blendFunc(GL_DST_ALPHA,GL_ZERO))
renderTexture:begin()
maskSprite:visit()
textureSprite:visit()
renderTexture:endToLua()
local retSprite = cc.Sprite:createWithTexture(renderTexture:getSprite():getTexture())
retSprite:setFlippedY(true)
return retSprite
end
function tool.createBorder(borderSize, borderWidth)
local maskSprite = cc.DrawNode:create()
local points = {}
table.insert(points, cc.p(2, 2))
table.insert(points, cc.p(borderSize.width - 2, 2))
table.insert(points, cc.p(borderSize.width-2, borderSize.height-2))
table.insert(points, cc.p(2, borderSize.height-2))
maskSprite:drawPolygon(points, #points, cc.c4f(0, 0, 0, 0), borderWidth, cc.c4f(0, 0, 0, 1))
local renderTexture = cc.RenderTexture:create(borderSize.width,borderSize.height)
maskSprite:setPosition(cc.p(borderSize.width/2, borderSize.height/2))
maskSprite:setBlendFunc(cc.blendFunc(GL_ONE,GL_ZERO))
renderTexture:begin()
maskSprite:visit()
renderTexture:endToLua()
local retSprite = cc.Sprite:createWithTexture(renderTexture:getSprite():getTexture())
retSprite:setFlippedY(true)
return retSprite
end
return tool
|
-- ffi setup
local ffi = require("ffi")
local C = ffi.C
ffi.cdef [[
typedef int32_t BlacklistID;
typedef uint64_t BuildTaskID;
typedef uint64_t MissionID;
typedef uint64_t NPCSeed;
typedef uint64_t TradeID;
typedef uint64_t UniverseID;
typedef struct {
const char* ware;
const char* macro;
int amount;
} UIWareInfo;
typedef struct {
const char* macro;
const char* ware;
uint32_t amount;
uint32_t capacity;
} AmmoData;
typedef struct {
const char* id;
const char* text;
} BoardingBehaviour;
typedef struct {
const char* id;
const char* text;
} BoardingPhase;
typedef struct {
uint32_t approach;
uint32_t insertion;
} BoardingRiskThresholds;
typedef struct {
BuildTaskID id;
UniverseID buildingcontainer;
UniverseID component;
const char* macro;
const char* factionid;
UniverseID buildercomponent;
int64_t price;
bool ismissingresources;
uint32_t queueposition;
} BuildTaskInfo;
typedef struct {
const char* newroleid;
NPCSeed seed;
uint32_t amount;
} CrewTransferContainer;
typedef struct {
const char* id;
const char* name;
} ControlPostInfo;
typedef struct {
const char* id;
const char* name;
const char* description;
} ResponseInfo;
typedef struct {
const char* id;
const char* name;
const char* description;
uint32_t numresponses;
const char* defaultresponse;
bool ask;
} SignalInfo;
typedef struct {
const char* name;
const char* transport;
uint32_t spaceused;
uint32_t capacity;
} StorageInfo;
typedef struct {
int x;
int y;
} Coord2D;
typedef struct {
float x;
float y;
float z;
} Coord3D;
typedef struct {
float dps;
uint32_t quadranttextid;
} DPSData;
typedef struct {
const char* id;
const char* name;
bool possible;
} DroneModeInfo;
typedef struct {
const char* factionID;
const char* factionName;
const char* factionIcon;
} FactionDetails;
typedef struct {
const char* icon;
const char* caption;
} MissionBriefingIconInfo;
typedef struct {
const char* missionName;
const char* missionDescription;
int difficulty;
int upkeepalertlevel;
const char* threadType;
const char* mainType;
const char* subType;
const char* subTypeName;
const char* faction;
int64_t reward;
const char* rewardText;
size_t numBriefingObjectives;
int activeBriefingStep;
const char* opposingFaction;
const char* license;
float timeLeft;
double duration;
bool abortable;
bool hasObjective;
UniverseID associatedComponent;
UniverseID threadMissionID;
} MissionDetails;
typedef struct {
const char* id;
const char* name;
} MissionGroupDetails;
typedef struct {
const char* text;
int step;
bool failed;
} MissionObjectiveStep2;
typedef struct {
NPCSeed seed;
const char* roleid;
int32_t tierid;
const char* name;
int32_t combinedskill;
} NPCInfo;
typedef struct {
const char* id;
const char* name;
const char* icon;
const char* description;
const char* category;
const char* categoryname;
bool infinite;
uint32_t requiredSkill;
} OrderDefinition;
typedef struct {
size_t queueidx;
const char* state;
const char* statename;
const char* orderdef;
size_t actualparams;
bool enabled;
bool isinfinite;
bool issyncpointreached;
bool istemporder;
} Order;
typedef struct {
size_t queueidx;
const char* state;
const char* statename;
const char* orderdef;
size_t actualparams;
bool enabled;
bool isinfinite;
bool issyncpointreached;
bool istemporder;
bool isoverride;
} Order2;
typedef struct {
const char* id;
const char* name;
const char* desc;
uint32_t amount;
uint32_t numtiers;
bool canhire;
} PeopleInfo;
typedef struct {
const char* id;
const char* name;
const char* shortname;
const char* description;
const char* icon;
} RaceInfo;
typedef struct {
const char* name;
int32_t skilllevel;
uint32_t amount;
} RoleTierData;
typedef struct {
UniverseID context;
const char* group;
UniverseID component;
} ShieldGroup;
typedef struct {
uint32_t textid;
uint32_t descriptionid;
uint32_t value;
uint32_t relevance;
} Skill2;
typedef struct {
UniverseID softtargetID;
const char* softtargetConnectionName;
} SofttargetDetails;
typedef struct {
const char* max;
const char* current;
} SoftwareSlot;
typedef struct {
uint32_t id;
bool reached;
} SyncPointInfo;
typedef struct {
const char* shape;
const char* name;
uint32_t requiredSkill;
float radius;
bool rollMembers;
bool rollFormation;
size_t maxShipsPerLine;
} UIFormationInfo;
typedef struct {
const char* file;
const char* icon;
bool ispersonal;
} UILogo;
typedef struct {
const char* icon;
Color color;
uint32_t volume_s;
uint32_t volume_m;
uint32_t volume_l;
} UIMapTradeVolumeParameter;
typedef struct {
const char* id;
const char* name;
} UIModuleSet;
typedef struct {
const float x;
const float y;
const float z;
const float yaw;
const float pitch;
const float roll;
} UIPosRot;
typedef struct {
const char* wareid;
uint32_t amount;
} UIWareAmount;
typedef struct {
bool primary;
uint32_t idx;
} UIWeaponGroup;
typedef struct {
UniverseID contextid;
const char* path;
const char* group;
} UpgradeGroup2;
typedef struct {
UniverseID currentcomponent;
const char* currentmacro;
const char* slotsize;
uint32_t count;
uint32_t operational;
uint32_t total;
} UpgradeGroupInfo;
typedef struct {
UniverseID reserverid;
const char* ware;
uint32_t amount;
bool isbuyreservation;
double eta;
} WareReservationInfo;
typedef struct {
const char* id;
const char* name;
bool active;
} WeaponSystemInfo;
typedef struct {
uint32_t current;
uint32_t capacity;
uint32_t optimal;
uint32_t available;
uint32_t maxavailable;
double timeuntilnextupdate;
} WorkForceInfo;
typedef struct {
const char* wareid;
int32_t amount;
} YieldInfo;
typedef struct {
UIPosRot offset;
float cameradistance;
} HoloMapState;
typedef struct {
size_t idx;
const char* macroid;
UniverseID componentid;
UIPosRot offset;
const char* connectionid;
size_t predecessoridx;
const char* predecessorconnectionid;
bool isfixed;
} UIConstructionPlanEntry;
bool AbortBoardingOperation(UniverseID defensibletargetid, const char* boarderfactionid);
void AbortMission(MissionID missionid);
bool AddAttackerToBoardingOperation(UniverseID defensibletargetid, UniverseID defensibleboarderid, const char* boarderfactionid, const char* actionid, uint32_t* marinetieramounts, int32_t* marinetierskilllevels, uint32_t nummarinetiers);
void AddCrewExchangeOrder(UniverseID containerid, UniverseID partnercontainerid, NPCSeed* npcs, uint32_t numnpcs, NPCSeed* partnernpcs, uint32_t numpartnernpcs, bool tradecomputer);
UniverseID AddHoloMap(const char* texturename, float x0, float x1, float y0, float y1, float aspectx, float aspecty);
void AddPlayerMoney(int64_t money);
void AddResearch(const char* wareid);
void AddSimilarMapComponentsToSelection(UniverseID holomapid, UniverseID componentid);
bool AdjustOrder(UniverseID controllableid, size_t idx, size_t newidx, bool enabled, bool forcestates, bool checkonly);
bool GetAskToSignalForControllable(const char* signalid, UniverseID controllableid);
bool GetAskToSignalForFaction(const char* signalid, const char* factionid);
uint32_t GetAttackersOfBoardingOperation(UniverseID* result, uint32_t resultlen, UniverseID defensibletargetid, const char* boarderfactionid);
bool CanContainerMineTransport(UniverseID containerid, const char* transportname);
bool CanContainerTransport(UniverseID containerid, const char* transportname);
bool CanControllableHaveControlEntity(UniverseID controllableid, const char* postid);
bool CanPlayerCommTarget(UniverseID componentid);
void ChangeMapBuildPlot(UniverseID holomapid, float x, float y, float z);
void CheatDockingTraffic(void);
void ClearSelectedMapComponents(UniverseID holomapid);
void ClearMapBuildPlot(UniverseID holomapid);
void ClearMapTradeFilterByMinTotalVolume(UniverseID holomapid);
void ClearMapTradeFilterByPlayerOffer(UniverseID holomapid, bool buysellswitch);
void ClearMapTradeFilterByWare(UniverseID holomapid);
bool CreateBoardingOperation(UniverseID defensibletargetid, const char* boarderfactionid, uint32_t approachthreshold, uint32_t insertionthreshold);
UniverseID CreateNPCFromPerson(NPCSeed person, UniverseID controllableid);
uint32_t CreateOrder(UniverseID controllableid, const char* orderid, bool default);
bool DropCargo(UniverseID containerid, const char* wareid, uint32_t amount);
void EnableAllCheats(void);
bool EnableOrder(UniverseID controllableid, size_t idx);
bool EnablePlannedDefaultOrder(UniverseID controllableid, bool checkonly);
void EndGuidance(void);
bool ExtendBuildPlot(UniverseID stationid, Coord3D poschange, Coord3D negchange, bool allowreduction);
bool FilterComponentByText(UniverseID componentid, uint32_t numtexts, const char** textarray, bool includecontainedobjects);
uint64_t GetActiveMissionID();
uint32_t GetAllBoardingBehaviours(BoardingBehaviour* result, uint32_t resultlen);
uint32_t GetAllBoardingPhases(BoardingPhase* result, uint32_t resultlen);
uint32_t GetAllControlPosts(ControlPostInfo* result, uint32_t resultlen);
uint32_t GetAllCountermeasures(AmmoData* result, uint32_t resultlen, UniverseID defensibleid);
uint32_t GetAllInventoryBombs(AmmoData* result, uint32_t resultlen, UniverseID entityid);
uint32_t GetAllLaserTowers(AmmoData* result, uint32_t resultlen, UniverseID defensibleid);
uint32_t GetAllMines(AmmoData* result, uint32_t resultlen, UniverseID defensibleid);
uint32_t GetAllMissiles(AmmoData* result, uint32_t resultlen, UniverseID defensibleid);
uint32_t GetAllNavBeacons(AmmoData* result, uint32_t resultlen, UniverseID defensibleid);
uint32_t GetAllRaces(RaceInfo* result, uint32_t resultlen);
uint32_t GetAllResourceProbes(AmmoData* result, uint32_t resultlen, UniverseID defensibleid);
uint32_t GetAllSatellites(AmmoData* result, uint32_t resultlen, UniverseID defensibleid);
uint32_t GetAllModuleSets(UIModuleSet* result, uint32_t resultlen);
uint32_t GetAllowedWeaponSystems(WeaponSystemInfo* result, uint32_t resultlen, UniverseID defensibleid, size_t orderidx, bool usedefault);
uint32_t GetAllResponsesToSignal(ResponseInfo* result, uint32_t resultlen, const char* signalid);
uint32_t GetAllSignals(SignalInfo* result, uint32_t resultlen);
const char* GetBoardingActionOfAttacker(UniverseID defensibletargetid, UniverseID defensibleboarderid, const char* boarderfactionid);
uint32_t GetBoardingCasualtiesOfTier(int32_t marinetierskilllevel, UniverseID defensibletargetid, const char* boarderfactionid);
bool GetBoardingMarineTierAmountsFromAttacker(uint32_t* resultmarinetieramounts, int32_t* inputmarinetierskilllevels, uint32_t inputnummarinetiers, UniverseID defensibletargetid, UniverseID defensibleboarderid, const char* boarderfactionid);
BoardingRiskThresholds GetBoardingRiskThresholds(UniverseID defensibletargetid, const char* boarderfactionid);
uint32_t GetBoardingStrengthFromOperation(UniverseID defensibletargetid, const char* boarderfactionid);
uint32_t GetBoardingStrengthOfControllableTierAmounts(UniverseID controllableid, uint32_t* marinetieramounts, int32_t* marinetierskilllevels, uint32_t nummarinetiers);
int64_t GetBuilderHiringFee(void);
bool GetBuildMapStationLocation(UniverseID holomapid, UIPosRot* location);
double GetBuildProcessorEstimatedTimeLeft(UniverseID buildprocessorid);
Coord3D GetBuildPlotCenterOffset(UniverseID stationid);
int64_t GetBuildPlotPayment(UniverseID stationid, bool* positionchanged);
int64_t GetBuildPlotPrice(UniverseID sectorid, UIPosRot location, float x, float y, float z, const char* factionid);
Coord3D GetBuildPlotSize(UniverseID stationid);
double GetBuildTaskDuration(UniverseID containerid, BuildTaskID id);
uint32_t GetBuildTasks(BuildTaskInfo* result, uint32_t resultlen, UniverseID containerid, UniverseID buildmoduleid, bool isinprogress, bool includeupgrade);
uint32_t GetCargoTransportTypes(StorageInfo* result, uint32_t resultlen, UniverseID containerid, bool merge, bool aftertradeorders);
Coord2D GetCenteredMousePos(void);
UniverseID GetCommonContext(UniverseID componentid, UniverseID othercomponentid, bool includeself, bool includeother, UniverseID limitid, bool includelimit);
const char* GetComponentClass(UniverseID componentid);
const char* GetComponentName(UniverseID componentid);
int GetConfigSetting(const char*const setting);
uint32_t GetContainerWareReservations(WareReservationInfo* result, uint32_t resultlen, UniverseID containerid);
UniverseID GetContextByClass(UniverseID componentid, const char* classname, bool includeself);
BlacklistID GetControllableBlacklistID(UniverseID controllableid, const char* listtype, const char* defaultgroup);
const char* GetCurrentAmmoOfWeapon(UniverseID weaponid);
const char* GetCurrentBoardingPhase(UniverseID defensibletargetid, const char* boarderfactionid);
float GetCurrentBuildProgress(UniverseID containerid);
const char* GetCurrentDroneMode(UniverseID defensibleid, const char* dronetype);
uint32_t GetCurrentMissionOffers(uint64_t* result, uint32_t resultlen, bool showninbbs);
UILogo GetCurrentPlayerLogo(void);
bool GetDefaultOrder(Order* result, UniverseID controllableid);
const char* GetDefaultResponseToSignalForControllable(const char* signalid, UniverseID controllableid);
const char* GetDefaultResponseToSignalForFaction(const char* signalid, const char* factionid);
uint32_t GetDefensibleActiveWeaponGroup(UniverseID defensibleid, bool primary);
uint32_t GetDefensibleDPS(DPSData* result, UniverseID defensibleid, bool primary, bool secondary, bool lasers, bool missiles, bool turrets, bool includeheat, bool includeinactive);
uint32_t GetDefensibleDeployableCapacity(UniverseID defensibleid);
float GetDefensibleLoadoutLevel(UniverseID defensibleid);
uint32_t GetDockedShips(UniverseID* result, uint32_t resultlen, UniverseID dockingbayorcontainerid, const char* factionid);
uint32_t GetDroneModes(DroneModeInfo* result, uint32_t resultlen, UniverseID defensibleid, const char* dronetype);
int32_t GetEntityCombinedSkill(UniverseID entityid, const char* role, const char* postid);
FactionDetails GetFactionDetails(const char* factionid);
const char* GetFleetName(UniverseID controllableid);
uint32_t GetFormationShapes(UIFormationInfo* result, uint32_t resultlen);
uint32_t GetFreeCountermeasureStorageAfterTradeOrders(UniverseID defensibleid);
uint32_t GetFreeDeployableStorageAfterTradeOrders(UniverseID defensibleid);
uint32_t GetFreeMissileStorageAfterTradeOrders(UniverseID defensibleid);
uint32_t GetFreePeopleCapacity(UniverseID controllableid);
uint32_t GetIllegalToFactions(const char** result, uint32_t resultlen, const char* wareid);
UniverseID GetInstantiatedPerson(NPCSeed person, UniverseID controllableid);
const char* GetLocalizedText(const uint32_t pageid, uint32_t textid, const char*const defaultvalue);
uint32_t GetMapComponentMissions(MissionID* result, uint32_t resultlen, UniverseID holomapid, UniverseID componentid);
UniverseID GetMapPositionOnEcliptic2(UniverseID holomapid, UIPosRot* position, bool adaptiveecliptic, UniverseID eclipticsectorid, UIPosRot eclipticoffset);
uint32_t GetMapRenderedComponents(UniverseID* result, uint32_t resultlen, UniverseID holomapid);
uint32_t GetMapSelectedComponents(UniverseID* result, uint32_t resultlen, UniverseID holomapid);
void GetMapState(UniverseID holomapid, HoloMapState* state);
UIMapTradeVolumeParameter GetMapTradeVolumeParameter(void);
uint32_t GetMaxProductionStorage(UIWareAmount* result, uint32_t resultlen, UniverseID containerid);
uint32_t GetMineablesAtSectorPos(YieldInfo* result, uint32_t resultlen, UniverseID sectorid, Coord3D position);
Coord3D GetMinimumBuildPlotCenterOffset(UniverseID stationid);
Coord3D GetMinimumBuildPlotSize(UniverseID stationid);
MissionBriefingIconInfo GetMissionBriefingIcon(MissionID missionid);
MissionGroupDetails GetMissionGroupDetails(MissionID missionid);
uint32_t GetMissionThreadSubMissions(MissionID* result, uint32_t resultlen, MissionID missionid);
MissionDetails GetMissionIDDetails(uint64_t missionid);
MissionObjectiveStep2 GetMissionObjectiveStep2(uint64_t missionid, size_t objectiveIndex);
uint32_t GetNumAllBoardingBehaviours(void);
uint32_t GetNumAllBoardingPhases(void);
uint32_t GetNumAllControlPosts(void);
uint32_t GetNumAllCountermeasures(UniverseID defensibleid);
uint32_t GetNumAllInventoryBombs(UniverseID entityid);
uint32_t GetNumAllLaserTowers(UniverseID defensibleid);
uint32_t GetNumAllMines(UniverseID defensibleid);
uint32_t GetNumAllMissiles(UniverseID defensibleid);
uint32_t GetNumAllNavBeacons(UniverseID defensibleid);
uint32_t GetNumAllResourceProbes(UniverseID defensibleid);
uint32_t GetNumAllSatellites(UniverseID defensibleid);
uint32_t GetNumAllModuleSets();
uint32_t GetNumAllowedWeaponSystems(void);
uint32_t GetNumAllRaces(void);
uint32_t GetNumAllResponsesToSignal(const char* signalid);
uint32_t GetNumAllRoles(void);
uint32_t GetNumAllSignals(void);
uint32_t GetNumAttackersOfBoardingOperation(UniverseID defensibletargetid, const char* boarderfactionid);
uint32_t GetNumBoardingMarinesFromOperation(UniverseID defensibletargetid, const char* boarderfactionid);
uint32_t GetNumBuildTasks(UniverseID containerid, UniverseID buildmoduleid, bool isinprogress, bool includeupgrade);
uint32_t GetNumCargoTransportTypes(UniverseID containerid, bool merge);
uint32_t GetNumContainerWareReservations(UniverseID containerid);
uint32_t GetNumCurrentMissionOffers(bool showninbbs);
uint32_t GetNumDockedShips(UniverseID dockingbayorcontainerid, const char* factionid);
uint32_t GetNumDroneModes(UniverseID defensibleid, const char* dronetype);
uint32_t GetNumFormationShapes(void);
uint32_t GetNumIllegalToFactions(const char* wareid);
uint32_t GetNumMapComponentMissions(UniverseID holomapid, UniverseID componentid);
uint32_t GetNumMapRenderedComponents(UniverseID holomapid);
uint32_t GetNumMapSelectedComponents(UniverseID holomapid);
uint32_t GetNumMaxProductionStorage(UniverseID containerid);
uint32_t GetNumMineablesAtSectorPos(UniverseID sectorid, Coord3D position);
uint32_t GetNumMissionThreadSubMissions(MissionID missionid);
uint32_t GetNumObjectsWithSyncPoint(uint32_t syncid, bool onlyreached);
uint32_t GetNumOrderDefinitions(void);
uint32_t GetNumOrders(UniverseID controllableid);
uint32_t GetNumPeopleAfterOrders(UniverseID controllableid, int32_t numorders);
uint32_t GetNumPersonSuitableControlPosts(UniverseID controllableid, UniverseID personcontrollableid, NPCSeed person, bool free);
size_t GetNumPlannedStationModules(UniverseID defensibleid, bool includeall);
uint32_t GetNumPlayerShipBuildTasks(bool isinprogress, bool includeupgrade);
uint32_t GetNumSkills(void);
uint32_t GetNumShieldGroups(UniverseID defensibleid);
uint32_t GetNumSoftwareSlots(UniverseID controllableid, const char* macroname);
uint32_t GetNumStationModules(UniverseID stationid, bool includeconstructions, bool includewrecks);
uint32_t GetNumStoredUnits(UniverseID defensibleid, const char* cat, bool virtualammo);
uint32_t GetNumSuitableControlPosts(UniverseID controllableid, UniverseID entityid, bool free);
uint32_t GetNumTiersOfRole(const char* role);
size_t GetNumTradeComputerOrders(UniverseID controllableid);
uint32_t GetNumUpgradeGroups(UniverseID destructibleid, const char* macroname);
size_t GetNumUpgradeSlots(UniverseID destructibleid, const char* macroname, const char* upgradetypename);
size_t GetNumVirtualUpgradeSlots(UniverseID objectid, const char* macroname, const char* upgradetypename);
uint32_t GetNumWareBlueprintOwners(const char* wareid);
uint32_t GetNumWares(const char* tags, bool research, const char* licenceownerid, const char* exclusiontags);
uint32_t GetNumWeaponGroupsByWeapon(UniverseID defensibleid, UniverseID weaponid);
const char* GetObjectIDCode(UniverseID objectid);
UIPosRot GetObjectPositionInSector(UniverseID objectid);
bool GetOrderDefinition(OrderDefinition* result, const char* orderdef);
uint32_t GetOrderDefinitions(OrderDefinition* result, uint32_t resultlen);
uint32_t GetOrders(Order* result, uint32_t resultlen, UniverseID controllableid);
uint32_t GetOrders2(Order2* result, uint32_t resultlen, UniverseID controllableid);
FactionDetails GetOwnerDetails(UniverseID componentid);
Coord3D GetPaidBuildPlotCenterOffset(UniverseID stationid);
Coord3D GetPaidBuildPlotSize(UniverseID stationid);
UniverseID GetParentComponent(UniverseID componentid);
uint32_t GetPeople(PeopleInfo* result, uint32_t resultlen, UniverseID controllableid);
uint32_t GetPeopleAfterOrders(NPCInfo* result, uint32_t resultlen, UniverseID controllableid, int32_t numorders);
uint32_t GetPeopleCapacity(UniverseID controllableid, const char* macroname, bool includecrew);
int32_t GetPersonCombinedSkill(UniverseID controllableid, NPCSeed person, const char* role, const char* postid);
const char* GetPersonName(NPCSeed person, UniverseID controllableid);
const char* GetPersonRole(NPCSeed person, UniverseID controllableid);
uint32_t GetPersonSkillsForAssignment(Skill2* result, NPCSeed person, UniverseID controllableid, const char* role, const char* postid);
uint32_t GetPersonSuitableControlPosts(ControlPostInfo* result, uint32_t resultlen, UniverseID controllableid, UniverseID personcontrollableid, NPCSeed person, bool free);
int32_t GetPersonTier(NPCSeed npc, const char* role, UniverseID controllableid);
UniverseID GetPickedMapComponent(UniverseID holomapid);
MissionID GetPickedMapMission(UniverseID holomapid);
UniverseID GetPickedMapMissionOffer(UniverseID holomapid);
UniverseID GetPickedMapOrder(UniverseID holomapid, Order* result, bool* intermediate);
TradeID GetPickedMapTradeOffer(UniverseID holomapid);
bool GetPlannedDefaultOrder(Order* result, UniverseID controllableid);
size_t GetPlannedStationModules(UIConstructionPlanEntry* result, uint32_t resultlen, UniverseID defensibleid, bool includeall);
UniverseID GetPlayerComputerID(void);
UniverseID GetPlayerContainerID(void);
UniverseID GetPlayerControlledShipID(void);
float GetPlayerGlobalLoadoutLevel(void);
UniverseID GetPlayerID(void);
UniverseID GetPlayerObjectID(void);
UniverseID GetPlayerOccupiedShipID(void);
uint32_t GetPlayerShipBuildTasks(BuildTaskInfo* result, uint32_t resultlen, bool isinprogress, bool includeupgrade);
UIPosRot GetPlayerTargetOffset(void);
const char* GetRealComponentClass(UniverseID componentid);
uint32_t GetRoleTierNPCs(NPCSeed* result, uint32_t resultlen, UniverseID controllableid, const char* role, int32_t skilllevel);
uint32_t GetRoleTiers(RoleTierData* result, uint32_t resultlen, UniverseID controllableid, const char* role);
UniverseID GetSectorControlStation(UniverseID sectorid);
uint32_t GetShieldGroups(ShieldGroup* result, uint32_t resultlen, UniverseID defensibleid);
int32_t GetShipCombinedSkill(UniverseID shipid);
SofttargetDetails GetSofttarget(void);
uint32_t GetSoftwareSlots(SoftwareSlot* result, uint32_t resultlen, UniverseID controllableid, const char* macroname);
uint32_t GetStationModules(UniverseID* result, uint32_t resultlen, UniverseID stationid, bool includeconstructions, bool includewrecks);
const char* GetSubordinateGroupAssignment(UniverseID controllableid, int group);
uint32_t GetSuitableControlPosts(ControlPostInfo* result, uint32_t resultlen, UniverseID controllableid, UniverseID entityid, bool free);
bool GetSyncPointInfo(UniverseID controllableid, size_t orderidx, SyncPointInfo* result);
float GetTextHeight(const char*const text, const char*const fontname, const float fontsize, const float wordwrapwidth);
uint32_t GetTiersOfRole(RoleTierData* result, uint32_t resultlen, const char* role);
UniverseID GetTopLevelContainer(UniverseID componentid);
const char* GetTurretGroupMode2(UniverseID defensibleid, UniverseID contextid, const char* path, const char* group);
UpgradeGroupInfo GetUpgradeGroupInfo2(UniverseID destructibleid, const char* macroname, UniverseID contextid, const char* path, const char* group, const char* upgradetypename);
uint32_t GetUpgradeGroups2(UpgradeGroup2* result, uint32_t resultlen, UniverseID destructibleid, const char* macroname);
UniverseID GetUpgradeSlotCurrentComponent(UniverseID destructibleid, const char* upgradetypename, size_t slot);
UpgradeGroup GetUpgradeSlotGroup(UniverseID destructibleid, const char* macroname, const char* upgradetypename, size_t slot);
const char* GetVirtualUpgradeSlotCurrentMacro(UniverseID defensibleid, const char* upgradetypename, size_t slot);
uint32_t GetWareBlueprintOwners(const char** result, uint32_t resultlen, const char* wareid);
uint32_t GetWares(const char** result, uint32_t resultlen, const char* tags, bool research, const char* licenceownerid, const char* exclusiontags);
uint32_t GetWeaponGroupsByWeapon(UIWeaponGroup* result, uint32_t resultlen, UniverseID defensibleid, UniverseID weaponid);
const char* GetWeaponMode(UniverseID weaponid);
WorkForceInfo GetWorkForceInfo(UniverseID containerid, const char* raceid);
UniverseID GetZoneAt(UniverseID sectorid, UIPosRot* uioffset);
bool HasControllableOwnBlacklist(UniverseID controllableid, const char* listtype);
bool HasControllableOwnResponse(UniverseID controllableid, const char* signalid);
bool IsAmmoMacroCompatible(const char* weaponmacroname, const char* ammomacroname);
bool IsBuilderBusy(UniverseID shipid);
bool IsComponentClass(UniverseID componentid, const char* classname);
bool IsComponentOperational(UniverseID componentid);
bool IsComponentWrecked(UniverseID componentid);
bool IsContainerFactionTradeRescricted(UniverseID containerid, const char* wareid);
bool IsContestedSector(UniverseID sectorid);
bool IsControlPressed(void);
bool IsCurrentOrderCritical(UniverseID controllableid);
bool IsDefensibleBeingBoardedBy(UniverseID defensibleid, const char* factionid);
bool IsDroneTypeArmed(UniverseID defensibleid, const char* dronetype);
bool IsDroneTypeBlocked(UniverseID defensibleid, const char* dronetype);
bool IsExternalTargetMode();
bool IsExternalViewActive();
bool IsFactionHQ(UniverseID stationid);
bool IsHQ(UniverseID stationid);
bool IsIconValid(const char* iconid);
bool IsInfoUnlockedForPlayer(UniverseID componentid, const char* infostring);
bool IsMasterVersion(void);
bool IsObjectKnown(const UniverseID componentid);
bool IsOrderSelectableFor(const char* orderdefid, UniverseID controllableid);
bool IsPerson(NPCSeed person, UniverseID controllableid);
bool IsPersonTransferScheduled(UniverseID controllableid, NPCSeed person);
bool IsPlayerCameraTargetViewPossible(UniverseID targetid, bool force);
bool IsRealComponentClass(UniverseID componentid, const char* classname);
bool IsShiftPressed(void);
bool IsShipAtExternalDock(UniverseID shipid);
bool IsTurretGroupArmed(UniverseID defensibleid, UniverseID contextid, const char* path, const char* group);
bool IsUnit(UniverseID controllableid);
bool IsWeaponArmed(UniverseID weaponid);
void LaunchLaserTower(UniverseID defensibleid, const char* lasertowermacroname);
void LaunchMine(UniverseID defensibleid, const char* minemacroname);
void LaunchNavBeacon(UniverseID defensibleid, const char* navbeaconmacroname);
void LaunchResourceProbe(UniverseID defensibleid, const char* resourceprobemacroname);
void LaunchSatellite(UniverseID defensibleid, const char* satellitemacroname);
void PayBuildPlotSize(UniverseID stationid, Coord3D plotsize, Coord3D plotcenter);
void ReassignPeople(UniverseID controllableid, CrewTransferContainer* reassignedcrew, uint32_t amount);
void ReleaseConstructionMapState(void);
void ReleasePersonFromCrewTransfer(UniverseID controllableid, NPCSeed person);
void ReleaseOrderSyncPoint(uint32_t syncid);
bool RemoveAllOrders(UniverseID controllableid);
bool RemoveAttackerFromBoardingOperation(UniverseID defensibleboarderid);
bool RemoveCommander2(UniverseID controllableid);
bool RemoveBuildPlot(UniverseID stationid);
void RemoveHoloMap(void);
bool RemoveOrder(UniverseID controllableid, size_t idx, bool playercancelled, bool checkonly);
void RemoveOrderSyncPointID(UniverseID controllableid, size_t orderidx);
void RemovePerson(UniverseID controllableid, NPCSeed person);
void RemovePlannedDefaultOrder(UniverseID controllableid);
UniverseID ReserveBuildPlot(UniverseID sectorid, const char* factionid, const char* set, UIPosRot location, float x, float y, float z);
bool ResetResponseToSignalForControllable(const char* signalid, UniverseID controllableid);
void RevealEncyclopedia(void);
void RevealMap(void);
void RevealStations(void);
bool SetActiveMission(MissionID missionid);
void SelectSimilarMapComponents(UniverseID holomapid, UniverseID componentid);
void SellPlayerShip(UniverseID shipid, UniverseID shipyardid);
void SetAllMissileTurretModes(UniverseID defensibleid, const char* mode);
void SetAllMissileTurretsArmed(UniverseID defensibleid, bool arm);
void SetAllNonMissileTurretModes(UniverseID defensibleid, const char* mode);
void SetAllNonMissileTurretsArmed(UniverseID defensibleid, bool arm);
void SetAllowedWeaponSystems(UniverseID defensibleid, size_t orderidx, bool usedefault, WeaponSystemInfo* uiweaponsysteminfo, uint32_t numuiweaponsysteminfo);
void SetAllTurretModes(UniverseID defensibleid, const char* mode);
void SetAllTurretsArmed(UniverseID defensibleid, bool arm);
bool SetAmmoOfWeapon(UniverseID weaponid, const char* newammomacro);
void SetCheckBoxChecked2(const int checkboxid, bool checked, bool update);
bool SetCommander(UniverseID controllableid, UniverseID commanderid, const char* assignment);
void SetConfigSetting(const char*const setting, const bool value);
void SetControllableBlacklist(UniverseID controllableid, BlacklistID id, const char* listtype, bool value);
bool SetDefaultResponseToSignalForControllable(const char* newresponse, bool ask, const char* signalid, UniverseID controllableid);
bool SetDefaultResponseToSignalForFaction(const char* newresponse, bool ask, const char* signalid, const char* factionid);
void SetDefensibleActiveWeaponGroup(UniverseID defensibleid, bool primary, uint32_t groupidx);
void SetDefensibleLoadoutLevel(UniverseID defensibleid, float value);
void SetDroneMode(UniverseID defensibleid, const char* dronetype, const char* mode);
void SetDroneTypeArmed(UniverseID defensibleid, const char* dronetype, bool arm);
void SetFleetName(UniverseID controllableid, const char* fleetname);
void SetFocusMapComponent(UniverseID holomapid, UniverseID componentid, bool resetplayerpan);
UIFormationInfo SetFormationShape(UniverseID objectid, const char* formationshape);
bool SetEntityToPost(UniverseID controllableid, UniverseID entityid, const char* postid);
void SetGuidance(UniverseID componentid, UIPosRot offset);
void SetMapFactionRelationColorOption(UniverseID holomapid, bool value);
void SetMapFilterString(UniverseID holomapid, uint32_t numtexts, const char** textarray);
void SetMapPanOffset(UniverseID holomapid, UniverseID offsetcomponentid);
void SetMapPicking(UniverseID holomapid, bool enable);
void SetMapRelativeMousePosition(UniverseID holomapid, bool valid, float x, float y);
void SetMapRenderAllAllyOrderQueues(UniverseID holomapid, bool value);
void SetMapRenderAllOrderQueues(UniverseID holomapid, bool value);
void SetMapRenderCargoContents(UniverseID holomapid, bool value);
void SetMapRenderCivilianShips(UniverseID holomapid, bool value);
void SetMapRenderCrewInfo(UniverseID holomapid, bool value);
void SetMapRenderDockedShipInfos(UniverseID holomapid, bool value);
void SetMapRenderEclipticLines(UniverseID holomapid, bool value);
void SetMapRenderMissionGuidance(UniverseID holomapid, MissionID missionid);
void SetMapRenderMissionOffers(UniverseID holomapid, bool value);
void SetMapRenderResourceInfo(UniverseID holomapid, bool value);
void SetMapRenderSelectionLines(UniverseID holomapid, bool value);
void SetMapRenderTradeOffers(UniverseID holomapid, bool value);
void SetMapRenderWorkForceInfo(UniverseID holomapid, bool value);
void SetMapRenderWrecks(UniverseID holomapid, bool value);
void SetMapState(UniverseID holomapid, HoloMapState state);
void SetMapStationInfoBoxMargin(UniverseID holomapid, const char* margin, uint32_t width);
void SetMapTargetDistance(UniverseID holomapid, float distance);
void SetMapTopTradesCount(UniverseID holomapid, uint32_t count);
void SetMapTradeFilterByMaxPrice(UniverseID holomapid, int64_t price);
void SetMapTradeFilterByMinTotalVolume(UniverseID holomapid, uint32_t minvolume);
void SetMapTradeFilterByPlayerOffer(UniverseID holomapid, bool buysellswitch, bool enable);
void SetMapTradeFilterByWare(UniverseID holomapid, const char** wareids, uint32_t numwareids);
void SetMapTradeFilterByWareTransport(UniverseID holomapid, const char** transporttypes, uint32_t numtransporttypes);
void SetMapAlertFilter(UniverseID holomapid, uint32_t alertlevel);
bool SetOrderSyncPointID(UniverseID controllableid, size_t orderidx, uint32_t syncid, bool checkonly);
void SetPlayerCameraCockpitView(bool force);
void SetPlayerCameraTargetView(UniverseID targetid, bool force);
void SetSelectedMapComponent(UniverseID holomapid, UniverseID componentid);
void SetSelectedMapComponents(UniverseID holomapid, UniverseID* componentids, uint32_t numcomponentids);
bool SetSofttarget(UniverseID componentid, const char*const connectionname);
void SetSubordinateGroupAssignment(UniverseID controllableid, int group, const char* assignment);
void SetSubordinateGroupDockAtCommander(UniverseID controllableid, int group, bool value);
void SetTrackedMenuFullscreen(const char* menu, bool fullscreen);
void SetTurretGroupArmed(UniverseID defensibleid, UniverseID contextid, const char* path, const char* group, bool arm);
void SetTurretGroupMode2(UniverseID defensibleid, UniverseID contextid, const char* path, const char* group, const char* mode);
void SetWeaponArmed(UniverseID weaponid, bool arm);
void SetWeaponGroup(UniverseID defensibleid, UniverseID weaponid, bool primary, uint32_t groupidx, bool value);
void SetWeaponMode(UniverseID weaponid, const char* mode);
bool ShouldSubordinateGroupDockAtCommander(UniverseID controllableid, int group);
void ShowBuildPlotPlacementMap(UniverseID holomapid, UniverseID sectorid);
void ShowUniverseMap2(UniverseID holomapid, bool setoffset, bool showzone, bool forcebuildershipicons, UniverseID startsectorid, UIPosRot startpos);
void SignalObjectWithNPCSeed(UniverseID objecttosignalid, const char* param, NPCSeed person, UniverseID controllableid);
void SpawnObjectAtPos(const char* macroname, UniverseID sectorid, UIPosRot offset);
bool StartBoardingOperation(UniverseID defensibletargetid, const char* boarderfactionid);
void StartPanMap(UniverseID holomapid);
void StartRotateMap(UniverseID holomapid);
bool StopPanMap(UniverseID holomapid);
bool StopRotateMap(UniverseID holomapid);
void ZoomMap(UniverseID holomapid, float zoomstep);
void StartMapBoxSelect(UniverseID holomapid, bool selectenemies);
void StopMapBoxSelect(UniverseID holomapid);
bool ToggleAutoPilot(bool checkonly);
bool UpdateAttackerOfBoardingOperation(UniverseID defensibletargetid, UniverseID defensibleboarderid, const char* boarderfactionid, const char* actionid, uint32_t* marinetieramounts, int32_t* marinetierskilllevels, uint32_t nummarinetiers);
bool UpdateBoardingOperation(UniverseID defensibletargetid, const char* boarderfactionid, uint32_t approachthreshold, uint32_t insertionthreshold);
void UpdateMapBuildPlot(UniverseID holomapid);
uint32_t PrepareBuildSequenceResources(UniverseID holomapid, UniverseID stationid);
uint32_t GetBuildSequenceResources(UIWareInfo* result, uint32_t resultlen);
size_t GetNumBuildMapConstructionPlan(UniverseID holomapid, bool usestoredplan);
size_t GetBuildMapConstructionPlan(UniverseID holomapid, UniverseID defensibleid, bool usestoredplan, UIConstructionPlanEntry* result, uint32_t resultlen);
]]
local function tprint(tbl, indent, endl, indchar)
endl = endl or '\n'
indchar = indchar or ' '
indent = indent or 0
local toprint = string.rep(indchar, indent) .. "{" .. endl
indent = indent + 2
if type(tbl) ~= 'table' then
return 'type(' .. type(tbl) .. ')=' .. (pcall(tostring, tbl) and tostring(tbl) or '??')
end
for k, v in pairs(tbl) do
toprint = toprint .. string.rep(indchar, indent)
if (type(k) == "number") then
toprint = toprint .. "[" .. k .. "] = "
elseif (type(k) == "string") then
toprint = toprint .. k .. "= "
end
if (type(v) == "number") then
toprint = toprint .. v .. "," .. endl
elseif (type(v) == "string") then
toprint = toprint .. "\"" .. v .. "\"," .. endl
elseif (type(v) == "table") then
toprint = toprint .. tprint(v, indent + 2, endl, indchar) .. "," .. endl
else
toprint = toprint .. "\"" .. tostring(v) .. "\"," .. endl
end
end
toprint = toprint .. string.rep(indchar, indent - 2) .. "}"
return toprint
end
local orig = {}
local mod = {}
local menu = {}
local function init()
--DebugError("x4_focused_pan init reached")
for _, _menu in ipairs(Menus) do
if _menu.name == "MapMenu" then
menu = _menu
local n = 0
for k, v in pairs(mod) do
orig[k] = _menu[k]
_menu[k] = v
n = n + 1
end
--DebugError("x4_focused_pan has installed " .. n .. " hooks")
break
end
end
end
local config = {
mapRowHeight = Helper.standardTextHeight,
mapFontSize = Helper.standardFontSize,
contextBorder = 5,
tradeContextMenuInfoBorder = 15,
mapRowHeight = Helper.standardTextHeight,
addColSpan = 4,
layers = {
{ name = ReadText(1001, 3252), icon = "mapst_fs_trade", mode = "layer_trade", helpOverlayID = "layer_trade", helpOverlayText = ReadText(1028, 3214) },
{ name = ReadText(1001, 3253), icon = "mapst_fs_think", mode = "layer_think", helpOverlayID = "layer_think", helpOverlayText = ReadText(1028, 3215) },
{ name = ReadText(1001, 8329), icon = "mapst_fs_mining", mode = "layer_mining", helpOverlayID = "layer_mining", helpOverlayText = ReadText(1028, 3216) },
{ name = ReadText(1001, 3254), icon = "mapst_fs_other", mode = "layer_other", helpOverlayID = "layer_other", helpOverlayText = ReadText(1028, 3217) },
},
orderDragSupport = {
-- order name position parameter
["MoveWait"] = 1,
["CollectDropsInRadius"] = 1,
["DeployObjectAtPosition"] = 1,
["AttackInRange"] = 1,
["ProtectPosition"] = 1,
["MiningCollect"] = 1,
["MiningPlayer"] = 1,
["Explore"] = 2,
["ExploreUpdate"] = 2,
},
layer_trade = {
callback = function (value) return C.SetMapRenderTradeOffers(menu.holomap, value) end,
[1] = {
caption = ReadText(1001, 46),
info = ReadText(1001, 3279),
overrideText = ReadText(1001, 8378),
type = "multiselectlist",
id = "trade_wares",
callback = function (...) return menu.filterTradeWares(...) end,
listOptions = function (...) return menu.getFilterTradeWaresOptions(...) end,
displayOption = function (option) return "\27[maptr_supply] " .. GetWareData(option, "name") end,
},
[2] = {
caption = ReadText(1001, 1400),
type = "checkbox",
callback = function (...) return menu.filterTradeStorage(...) end,
[1] = {
id = "trade_storage_container",
name = ReadText(20205, 100),
info = ReadText(1001, 3280),
param = "container",
},
[2] = {
id = "trade_storage_solid",
name = ReadText(20205, 200),
info = ReadText(1001, 3281),
param = "solid",
},
[3] = {
id = "trade_storage_liquid",
name = ReadText(20205, 300),
info = ReadText(1001, 3282),
param = "liquid",
},
},
}
}
local function compareCamera(c1, c2)
dx = c1.offset.x - c2.offset.x
dy = c1.offset.y - c2.offset.y
dz = c1.offset.z - c2.offset.z
dh = c1.cameradistance - c2.cameradistance
return dx * dx + dy * dy + dz * dz + dh * dh
end
-- monitor update(): perform mid-button focusedview drag
function mod.onUpdate()
orig.onUpdate()
if menu.focusedpan ~= nil then
if menu.focusedpan.start then
local new_ms = ffi.new("HoloMapState")
C.GetMapState(menu.holomap, new_ms)
if compareCamera(menu.focusedpan.mapstate, new_ms) > 0.01 then
C.StopPanMap(menu.holomap)
menu.focusedpan.start = false
else
return
end
elseif menu.focusedpan.start == nil then
if menu.focusedpan.lastmapstate then
local new_ms = ffi.new("HoloMapState")
C.GetMapState(menu.holomap, new_ms)
if compareCamera(new_ms, menu.focusedpan.lastmapstate) > 0.01 then
menu.focusedpan.start = true
-- nasty workaround to cancel SetFocusMapComponent by starting panningmap first and setting map state when screen actually started panning
C.StartPanMap(menu.holomap)
elseif compareCamera(new_ms, menu.focusedpan.mapstate) > 1 then
menu.focusedpan.start = false
end
end
end
local mouseposi = table.pack(GetLocalMousePosition())
local dx = (menu.focusedpan.mouseposi[1] - mouseposi[1])*menu.focusedpan.mapstate.cameradistance/750
local dy = (menu.focusedpan.mouseposi[2] - mouseposi[2])*menu.focusedpan.mapstate.cameradistance/750
local cs_x = menu.focusedpan.cs_x
local cs_y = menu.focusedpan.cs_y
local off = menu.focusedpan.mapstate.offset
local ms = { offset = { x = off.x + dx * cs_x[1] + dy * cs_y[1],
y = off.y + dx * cs_x[2] + dy * cs_y[2],
z = off.z + dx * cs_x[3] + dy * cs_y[3],
yaw = off.yaw, pitch = off.pitch, roll = off.roll },
cameradistance = menu.focusedpan.mapstate.cameradistance }
C.SetMapState(menu.holomap, ms)
menu.mapstate = ms
menu.focusedpan.lastmapstate = ms
end
end
function mod.onRenderTargetMiddleMouseDown(modified)
--DebugError("middle mouse down")
menu.focusedpan = { mapstate = ffi.new("HoloMapState"),
mouseposi = table.pack(GetLocalMousePosition()),
downtime = getElapsedTime(),
modified = modified}
C.GetMapState(menu.holomap, menu.focusedpan.mapstate)
local off = menu.focusedpan.mapstate.offset
-- compute camera-space translation axis
local sin_pitch = math.sin(off.pitch)
local cos_pitch = math.cos(off.pitch)
local sin_yaw = math.sin(off.yaw)
local cos_yaw = math.cos(off.yaw)
menu.focusedpan.cs_x = {cos_yaw, 0., -sin_yaw}
menu.focusedpan.cs_y = {-sin_yaw*sin_pitch, cos_pitch, -cos_yaw*sin_pitch}
-- For DEBUG info display
--local obj = C.GetPickedMapComponent(menu.holomap)
--local obj64 = ConvertIDTo64Bit(Helper.convertComponentIDs(obj))
--if C.IsComponentClass(obj, 'station') then
-- AddLogbookEntry('tips', 'station name=' .. (ffi.string(C.GetComponentName(obj))))
--
-- local neededresources = {}
-- local numTotalResources = C.PrepareBuildSequenceResources(menu.holomap, obj)
-- if numTotalResources > 0 then
-- local buf = ffi.new("UIWareInfo[?]", numTotalResources)
-- numTotalResources = C.GetBuildSequenceResources(buf, numTotalResources)
-- for i = 0, numTotalResources - 1 do
-- table.insert(neededresources, { ware = ffi.string(buf[i].ware), amount = buf[i].amount })
-- end
-- end
-- AddLogbookEntry('tips', 'numTotalResources='.. numTotalResources ..' ; neededresources=' .. tprint(neededresources))
--
-- local n = C.GetNumBuildMapConstructionPlan(menu.holomap, false)
-- AddLogbookEntry('tips', 'GetNumBuildMapConstructionPlan=' .. n)
-- local buf = ffi.new("UIConstructionPlanEntry[?]", n)
-- n = tonumber(C.GetBuildMapConstructionPlan(menu.holomap, obj, false, buf, n))
-- AddLogbookEntry('tips', 'GetBuildMapConstructionPlan=' .. n)
--end
--menu.focusedpan.rtmouseposi = table.pack(GetRenderTargetMousePosition(menu.map))
--AddLogbookEntry('tips', 'Object:UID=' .. ConvertStringTo64Bit(tostring(obj)) .. ',name='
-- .. ffi.string(C.GetComponentName(obj)) .. ',class=' .. ffi.string(C.GetComponentClass(obj))
-- .. ';\nmouse:' .. (menu.focusedpan.mouseposi[1]) .. ',' .. (menu.focusedpan.mouseposi[2])
-- .. ';\nrtmouse:' .. (menu.focusedpan.rtmouseposi[1]) .. ',' .. (menu.focusedpan.rtmouseposi[2])
-- .. ';\nUIPosRot:' .. table.concat({ off.x, off.y, off.z, off.yaw, off.pitch, off.roll }, ',')
-- .. ';\ncameraDist:' .. menu.focusedpan.mapstate.cameradistance)
end
local function get_trade_wares_list(n)
n = n or 0
menu.savedTradeWares = menu.savedTradeWares or {
{energycells=1, claytronics=1, hullparts=1},
{advancedcomposites=1, advancedelectronics=1, antimattercells=1, antimatterconverters=1, claytronics=1, dronecomponents=1, engineparts=1, fieldcoils=1, graphene=1, hullparts=1, microchips=1, missilecomponents=1, plasmaconductors=1, quantumtubes=1, refinedmetals=1, scanningarrays=1, shieldcomponents=1, siliconwafers=1, smartchips=1, superfluidcoolant=1, teladianium=1, turretcomponents=1, weaponcomponents=1},
{advancedcomposites=1, advancedelectronics=1, antimattercells=1, antimatterconverters=1, claytronics=1, dronecomponents=1, energycells=1, engineparts=1, fieldcoils=1, foodrations=1, graphene=1, hullparts=1, majasnails=1, meat=1, medicalsupplies=1, microchips=1, missilecomponents=1, nostropoil=1, plasmaconductors=1, quantumtubes=1, refinedmetals=1, scanningarrays=1, shieldcomponents=1, siliconwafers=1, smartchips=1, sojabeans=1, sojahusk=1, spices=1, sunriseflowers=1, superfluidcoolant=1, swampplant=1, swampplant=1, teladianium=1, turretcomponents=1, weaponcomponents=1, wheat=1, cheltmeat=1, scruffinfruits=1}
}
menu.savedTradeWares[n] = menu.savedTradeWares[n] or {}
return menu.savedTradeWares[n]
end
local function print_trade_wares_list(n)
local warelist = get_trade_wares_list(n)
local warearray = {}
for ware, _ in pairs(warelist) do
table.insert(warearray, ware)
end
return '[ ' .. table.concat(warearray, ', ') .. ' ]'
end
local function save_trade_wares_list(n)
local warelist = get_trade_wares_list(n)
for k in pairs(warelist) do warelist[k] = nil end
for _, ware in ipairs(menu.getFilterOption('trade_wares')) do
warelist[ware] = 1
end
end
local function load_trade_wares_list(n)
local warelist = get_trade_wares_list(n)
if next(warelist) ~= nil then
menu.setFilterOption("layer_trade", config.layer_trade[1], config.layer_trade[1].id, warelist)
end
end
local function clear_trade_wares_list()
menu.setFilterOption("layer_trade", config.layer_trade[1], config.layer_trade[1].id, {})
end
function mod.onRenderTargetMiddleMouseUp()
--DebugError("middle mouse up")
C.StopPanMap(menu.holomap)
if menu.focusedpan == nil then
return
end
local focusedpan = menu.focusedpan
local mouseposi = table.pack(GetLocalMousePosition())
local modified = focusedpan.modified
menu.focusedpan = nil
-- if middle-click
if getElapsedTime() - focusedpan.downtime < 0.5 and not Helper.comparePositions(focusedpan.mouseposi, mouseposi, 5) then
local obj = C.GetPickedMapComponent(menu.holomap)
local obj64 = ConvertStringTo64Bit(tostring(obj))
local clsname = ffi.string(C.GetComponentClass(obj))
if clsname == "sector" or clsname == '' then
if modified == 'ctrl' then
-- ctrl+middle_click on empty space to save current trade filter list
save_trade_wares_list()
elseif modified == 'shift' then
-- shift+middle_click on empty space to load saved trade filter list, turning on trade layer if not on
if not menu.getFilterOption('layer_trade') then
menu.buttonSetFilterLayer('layer_trade')
end
load_trade_wares_list()
elseif modified == 'both' then
-- ctrl+shift+middle_click on empty space to clear trade filter list
clear_trade_wares_list()
else
-- middle_click on empty space to toggle trade mode
menu.buttonSetFilterLayer('layer_trade')
end
elseif clsname == "station" then
if not menu.getFilterOption('layer_trade') then
menu.buttonSetFilterLayer('layer_trade')
end
-- trade offer
local tradeoffers = GetComponentData(obj64, "tradeoffers")
local cargos = {}
for _, tradeid in ipairs(tradeoffers) do
local trade = GetTradeData(tradeid)
if modified == 'ctrl' then
if trade.isbuyoffer then
cargos[trade.ware] = 1
end
elseif modified == 'shift' then
if trade.isselloffer then
cargos[trade.ware] = 1
end
else
cargos[trade.ware] = 1
end
end
menu.setFilterOption("layer_trade", config.layer_trade[1], config.layer_trade[1].id, cargos)
elseif C.IsComponentClass(obj, "ship") then
if GetComponentData(obj64, 'isplayerowned') then
if not menu.getFilterOption('layer_trade') then
menu.buttonSetFilterLayer('layer_trade')
end
local cargos = GetComponentData(obj64, "cargo")
menu.setFilterOption("layer_trade", config.layer_trade[1], config.layer_trade[1].id, cargos)
for _, option in ipairs(config.layer_trade[2]) do
if not menu.getFilterOption(option.id) then
menu.setFilterOption("layer_trade", config.layer_trade[2], option.id)
end
end
else
menu.setFilterOption("layer_trade", config.layer_trade[1], config.layer_trade[1].id, {})
end
end
menu.refreshMainFrame = true
end
end
function mod.createSearchField(frame, width, height, offsetx, offsety, refresh)
local numCols = 8 + #config.layers
local ftable = frame:addTable(numCols, { tabOrder = 4, width = width, height = height, x = offsetx, y = offsety, skipTabChange = true, backgroundID = "solid", backgroundColor = Helper.color.semitransparent })
ftable:setDefaultCellProperties("text", { minRowHeight = config.mapRowHeight, fontsize = config.mapFontSize })
ftable:setDefaultCellProperties("button", { height = config.mapRowHeight })
ftable:setDefaultComplexCellProperties("button", "text", { fontsize = config.mapFontSize })
ftable:setColWidth(1, Helper.scaleY(config.mapRowHeight), false)
ftable:setColWidth(2, math.max(4, Helper.scaleY(Helper.headerRow1Height) - Helper.scaleY(config.mapRowHeight) - Helper.borderSize), false)
ftable:setColWidth(3, menu.sideBarWidth - Helper.scaleY(Helper.headerRow1Height) - Helper.borderSize, false)
for i = 2, (#config.layers+2) do
ftable:setColWidth(i + 2, menu.sideBarWidth, false)
end
ftable:setColWidth(numCols - 1, Helper.scaleY(config.mapRowHeight), false)
ftable:setColWidth(numCols, Helper.scaleY(config.mapRowHeight), false)
-- search field
local row = ftable:addRow(true, { fixed = true })
-- toggle trade filter
local colspan = 1
if menu.editboxHeight >= Helper.scaleY(config.mapRowHeight) then
colspan = 2
end
local entry = config.layers[1]
local icon = entry.icon
local isTradeOn = menu.getFilterOption(entry.mode)
if not isTradeOn then
icon = icon .. "_disabled"
end
local bgcolor = {r = 33, g = 46, b = 55, a = 40}
row[1]:setColSpan(colspan):createButton({ height = menu.editboxHeight, bgColor = bgcolor, mouseOverText = entry.name .. '\n(middle-click)', scaling = false, helpOverlayID = "toggle_trade", helpOverlayText = " ", helpOverlayHighlightOnly = true}):setIcon(icon, { })
row[1].handlers.onClick = function () return menu.buttonSetFilterLayer(entry.mode, row.index, 1) end
-- reset camera view
row[colspan + 1]:setColSpan(1):createButton({ active = true, height = menu.editboxHeight, mouseOverText = ffi.string(C.GetLocalizedText(1026, 7911, ReadText(1026, 7902))), bgColor = bgcolor, scaling = false }):setIcon("menu_reset_view"):setHotkey("INPUT_STATE_DETAILMONITOR_RESET_VIEW", { displayIcon = false })
row[colspan + 1].handlers.onClick = menu.buttonResetView
-- save load buttons (when trade layer is on)
if isTradeOn then
row[2+colspan]:createButton({ height = menu.editboxHeight, mouseOverText = 'Load ware list 1 = ' .. print_trade_wares_list(1) .. '\n(Right-click to save to list 1)', bgColor = bgcolor, scaling = false }):setText("Slot1", {fontsize = menu.playerInfo.fontsize, halign = "center"})
row[2+colspan].handlers.onClick = function() load_trade_wares_list(1) end
row[2+colspan].handlers.onRightClick = function() save_trade_wares_list(1) end
row[3+colspan]:createButton({ height = menu.editboxHeight, mouseOverText = 'Load wave list 2 = ' .. print_trade_wares_list(2) .. '\n(Right-click to save to list 2)', bgColor = bgcolor, scaling = false }):setText("Slot2", {fontsize = menu.playerInfo.fontsize, halign = "center"})
row[3+colspan].handlers.onClick = function() load_trade_wares_list(2) end
row[3+colspan].handlers.onRightClick = function() save_trade_wares_list(2) end
row[4+colspan]:createButton({ height = menu.editboxHeight, mouseOverText = 'Load wave list 3 = ' .. print_trade_wares_list(3) .. '\n(Right-click to save to list 3)', bgColor = bgcolor, scaling = false }):setText("Slot3", {fontsize = menu.playerInfo.fontsize, halign = "center"})
row[4+colspan].handlers.onClick = function() load_trade_wares_list(3) end
row[4+colspan].handlers.onRightClick = function() save_trade_wares_list(3) end
row[5+colspan]:createButton({ height = menu.editboxHeight, mouseOverText = 'Clear trade waves list (or CTRL+SHIFT middle-click)\nRight-click to reset all slots\nCTRL/SHIFT middle-click on map to save/load Slot0', bgColor = bgcolor, scaling = false }):setText("CLEAR", {fontsize = menu.playerInfo.fontsize, halign = "center"})
row[5+colspan].handlers.onClick = clear_trade_wares_list
row[5+colspan].handlers.onRightClick = function () menu.savedTradeWares=nil end
colspan = colspan + config.addColSpan
end
-- editbox
row[colspan + 2]:setColSpan(numCols):createEditBox({ height = menu.editboxHeight, defaultText = ReadText(1001, 3250), scaling = false, helpOverlayID = "map_searchbar", helpOverlayText = " ", helpOverlayHighlightOnly = true, restoreInteractiveObject = true }):setText("", { x = Helper.standardTextOffsetx, scaling = true }):setHotkey("INPUT_STATE_DETAILMONITOR_0", { displayIcon = true })
row[colspan + 2].handlers.onEditBoxDeactivated = menu.searchTextConfirmed
-- search terms
local row = ftable:addRow(true, { fixed = true, bgColor = Helper.color.transparent })
local searchindex = 0
for i = 1, math.min(3, #menu.searchtext) do
local col = i
local colspan = 2
if col == 1 then
colspan = 5
elseif col == 2 then
colspan = 3
col = col + 4
else
col = col + 6
end
searchindex = searchindex + 1
row[col]:setColSpan(colspan)
local truncatedString = TruncateText(menu.searchtext[i].text, Helper.standardFont, Helper.scaleFont(Helper.standardFont, config.mapFontSize), row[col]:getWidth() - 2 * Helper.scaleX(10))
if menu.searchtext[i].blockRemove then
row[col]:createText(truncatedString, { halign = "center", cellBGColor = Helper.defaultButtonBackgroundColor })
else
row[col]:createButton({
helpOverlayID = "FilterItem" .. searchindex,
helpOverlayText = " ",
helpOverlayHighlightOnly = true,
}):setText(truncatedString, { halign = "center" }):setText2("X", { halign = "right" })
row[col].handlers.onClick = function () return menu.buttonRemoveSearchEntry(i) end
end
end
local setting = config.layer_trade[1]
local warefilter = menu.getFilterOption(setting.id) or {}
local searchindex = 0
if #menu.searchtext < 3 then
for i = 1, math.min(3 - #menu.searchtext, #warefilter) do
local col = i + #menu.searchtext
local colspan = 2
if col == 1 then
colspan = 5
elseif col == 2 then
colspan = 3
col = col + 4
else
col = col + 6
end
searchindex = searchindex + 1
row[col]:setColSpan(colspan)
local truncatedString = TruncateText(GetWareData(warefilter[i], "name"), Helper.standardFont, Helper.scaleFont(Helper.standardFont, config.mapFontSize), row[col]:getWidth() - 2 * Helper.scaleX(10))
row[col]:createButton({
helpOverlayID = "FilterWare" .. searchindex,
helpOverlayText = " ",
helpOverlayHighlightOnly = true,
}):setText(truncatedString, { halign = "center" }):setText2("X", { halign = "right" }):setIcon("maptr_supply", { width = Helper.standardTextHeight, height = Helper.standardTextHeight })
row[col].handlers.onClick = function () return menu.removeFilterOption(setting, setting.id, i) end
row[col].properties.uiTriggerID = "removefilteroption"
end
end
if (#menu.searchtext + #warefilter) > 3 then
row[numCols-1]:setColSpan(2):createText(string.format("%+d", (#menu.searchtext + #warefilter) - 3))
else
row[numCols-1]:setColSpan(2):createText("")
end
if menu.searchTableMode then
if menu.holomap ~= 0 then
C.SetMapStationInfoBoxMargin(menu.holomap, "right", menu.infoTableOffsetX + menu.infoTableWidth + config.contextBorder)
end
if (#menu.searchtext + #warefilter) > 0 then
local row = ftable:addRow(true, { fixed = true, bgColor = Helper.color.transparent })
row[1]:createText("")
end
if menu.searchTableMode == "filter" then
menu.createFilterMode(ftable, numCols)
elseif menu.searchTableMode == "legend" then
menu.createLegendMode(ftable, numCols)
elseif menu.searchTableMode == "hire" then
menu.createHireMode(ftable, numCols)
end
else
if menu.holomap ~= 0 then
C.SetMapStationInfoBoxMargin(menu.holomap, "right", 0)
end
end
if not refresh then
menu.createInfoFrame2()
end
end
function mod.onRenderTargetMouseDown(modified)
if menu.currentMouseCursor == 'trade' or menu.infoTableMode == "plots" then
return orig.onRenderTargetMouseDown(modified)
end
menu.leftdown = { time = getElapsedTime(), dyntime = getElapsedTime(), position = table.pack(GetLocalMousePosition()), dynpos = table.pack(GetLocalMousePosition()) }
local pickedorder = ffi.new("Order")
local buf = ffi.new("bool[1]", 0)
local pickedordercomponent = C.GetPickedMapOrder(menu.holomap, pickedorder, buf)
local isintermediate = buf[0]
if pickedordercomponent ~= 0 then
local orderdef = ffi.new("OrderDefinition")
if C.GetOrderDefinition(orderdef, pickedorder.orderdef) then
local orderdefid = ffi.string(orderdef.id)
if isintermediate or config.orderDragSupport[orderdefid] then
menu.orderdrag = { component = pickedordercomponent, order = pickedorder, orderdefid = isintermediate and "MoveWait" or orderdefid, isintermediate = isintermediate, isclick = true }
end
end
if menu.mode ~= "orderparam_object" then
if not modified then
menu.infoSubmenuObject = ConvertStringTo64Bit(tostring(pickedordercomponent))
if menu.infoTableMode == "info" then
menu.refreshInfoFrame(nil, 0)
elseif menu.searchTableMode == "info" then
menu.refreshInfoFrame2(nil, 0)
end
end
end
else
if modified == "shift" then
C.StartMapBoxSelect(menu.holomap, menu.mode == "orderparam_selectenemies")
else
local obj = C.GetPickedMapComponent(menu.holomap)
local clsname = ffi.string(C.GetComponentClass(obj))
if clsname == "sector" or clsname == '' then
C.StartPanMap(menu.holomap)
menu.panningmap = { isclick = true }
else
C.SetSelectedMapComponent(menu.holomap, obj)
menu.addSelectedComponent(obj, true)
menu.panningmap = { isclick = true }
end
end
end
end
-- rendertarget selections
function mod.onRenderTargetSelect(modified)
local offset = table.pack(GetLocalMousePosition())
-- Check if the mouse button was down less than 0.5 seconds and the mouse was moved more than a distance of 5px
if (not menu.leftdown) or ((menu.leftdown.time + 0.5 > getElapsedTime()) and not Helper.comparePositions(menu.leftdown.position, offset, 5)) then
if menu.mode == "selectbuildlocation" then
local station = 0
if menu.plotData.active then
local offset = ffi.new("UIPosRot")
local offsetvalid = C.GetBuildMapStationLocation(menu.holomap, offset)
if offsetvalid then
AddUITriggeredEvent(menu.name, "plotplaced")
station = C.ReserveBuildPlot(menu.plotData.sector, "player", menu.plotData.set, offset, menu.plotData.size.x * 1000, menu.plotData.size.y * 1000, menu.plotData.size.z * 1000)
if GetComponentData(ConvertStringTo64Bit(tostring(menu.plotData.sector)), "isplayerowned") then
local size = { x = menu.plotData.size.x * 1000, y = menu.plotData.size.y * 1000, z = menu.plotData.size.z * 1000 }
local plotcenter = { x = offset.x, y = offset.y, z = offset.z }
C.PayBuildPlotSize(station, size, plotcenter)
end
C.ClearMapBuildPlot(menu.holomap)
menu.plotData.active = nil
end
else
local pickedcomponent = C.GetPickedMapComponent(menu.holomap)
local pickedcomponentclass = ffi.string(C.GetRealComponentClass(pickedcomponent))
if (pickedcomponentclass == "station") and GetComponentData(ConvertStringToLuaID(tostring(pickedcomponent)), "isplayerowned") then
station = pickedcomponent
end
end
if station ~= 0 then
for _, row in ipairs(menu.table_plotlist.rows) do
if row.rowdata == station then
menu.setplotrow = row.index
menu.setplottoprow = (row.index - 12) > 1 and (row.index - 12) or 1
break
end
end
menu.updatePlotData(station, true)
menu.refreshInfoFrame()
end
elseif menu.mode == "orderparam_position" then
local offset = ffi.new("UIPosRot")
local eclipticoffset = ffi.new("UIPosRot")
local offsetcomponent = C.GetMapPositionOnEcliptic2(menu.holomap, offset, false, 0, eclipticoffset)
if offsetcomponent ~= 0 then
local class = ffi.string(C.GetComponentClass(offsetcomponent))
if (not menu.modeparam[2].inputparams.class) or (class == menu.modeparam[2].inputparams.class) then
menu.modeparam[1]({ConvertStringToLuaID(tostring(offsetcomponent)), {offset.x, offset.y, offset.z}})
elseif (menu.modeparam[2].inputparams.class == "zone") and (class == "sector") then
offsetcomponent = C.GetZoneAt(offsetcomponent, offset)
menu.modeparam[1]({ConvertStringToLuaID(tostring(offsetcomponent)), {offset.x, offset.y, offset.z}})
end
end
elseif (menu.mode == "orderparam_selectenemies") or (menu.mode == "orderparam_selectplayerdeployables") then
menu.mode = nil
menu.modeparam = {}
SetMouseCursorOverride("default")
menu.removeMouseCursorOverride(3)
elseif menu.mode == "boardingcontext" then
else
local colspan = 1
if menu.editboxHeight >= Helper.scaleY(config.mapRowHeight) then
colspan = 2
end
if menu.getFilterOption('layer_trade') then
colspan = colspan + config.addColSpan
end
Helper.confirmEditBoxInput(menu.searchField, 1, colspan + 2)
local pickedcomponent = C.GetPickedMapComponent(menu.holomap)
local pickedorder = ffi.new("Order")
local isintermediate = ffi.new("bool[1]", 0)
local pickedordercomponent = C.GetPickedMapOrder(menu.holomap, pickedorder, isintermediate)
local pickedcomponentclass = ffi.string(C.GetComponentClass(pickedcomponent))
local ispickedcomponentship = C.IsComponentClass(pickedcomponent, "ship") and not C.IsUnit(pickedcomponent)
local pickedtradeoffer = C.GetPickedMapTradeOffer(menu.holomap)
if pickedordercomponent ~= 0 then
local sectorcontext = C.GetContextByClass(pickedordercomponent, "sector", false)
if sectorcontext ~= menu.currentsector then
menu.currentsector = sectorcontext
end
menu.createInfoFrame()
elseif pickedtradeoffer ~= 0 then
local tradeid = ConvertStringToLuaID(tostring(pickedtradeoffer))
local tradedata = GetTradeData(tradeid)
if tradedata.ware then
local setting = config.layer_trade[1]
local rawwarelist = menu.getFilterOption(setting.id) or {}
local found = false
for i, ware in ipairs(rawwarelist) do
if ware == tradedata.ware then
found = i
break
end
end
AddUITriggeredEvent(menu.name, "filterwareselected", tradedata.isbuyoffer and "buyoffer" or "selloffer")
if found then
menu.removeFilterOption(setting, setting.id, found)
else
menu.setFilterOption("layer_trade", setting, setting.id, tradedata.ware)
end
end
elseif pickedcomponent ~= 0 then
if (not menu.sound_selectedelement) or (menu.sound_selectedelement ~= pickedcomponent) or (modified == "ctrl") or (modified == "shift") then
local isselected = menu.isSelectedComponent(pickedcomponent)
if (not isselected) and (modified == "shift") then
PlaySound("ui_positive_multiselect")
elseif modified == "ctrl" then
if isselected then
PlaySound("ui_positive_deselect")
else
PlaySound("ui_positive_multiselect")
end
elseif (pickedcomponentclass == "sector") then
PlaySound("ui_positive_deselect")
else
PlaySound("ui_positive_select")
end
end
menu.sound_selectedelement = pickedcomponent
if menu.mode ~= "orderparam_object" then
menu.infoSubmenuObject = ConvertStringTo64Bit(tostring(pickedcomponent))
if menu.infoTableMode == "info" then
menu.refreshInfoFrame(nil, 0)
elseif menu.searchTableMode == "info" then
menu.refreshInfoFrame2(nil, 0)
end
end
if pickedcomponentclass == "sector" then
AddUITriggeredEvent(menu.name, "selection_reset")
menu.clearSelectedComponents()
if pickedcomponent ~= menu.currentsector then
menu.currentsector = pickedcomponent
menu.updateMapAndInfoFrame()
end
elseif (#menu.searchtext == 0) or Helper.textArrayHelper(menu.searchtext, function (numtexts, texts) return C.FilterComponentByText(pickedcomponent, numtexts, texts, true) end) then
local isconstruction = IsComponentConstruction(ConvertStringTo64Bit(tostring(pickedcomponent)))
if (C.IsComponentOperational(pickedcomponent) and (pickedcomponentclass ~= "player") and (pickedcomponentclass ~= "collectablewares") and (not menu.createInfoFrameRunning)) or
(pickedcomponentclass == "gate") or (pickedcomponentclass == "asteroid") or isconstruction
then
local sectorcontext = C.GetContextByClass(pickedcomponent, "sector", false)
if sectorcontext ~= menu.currentsector then
menu.currentsector = sectorcontext
end
if modified == "ctrl" then
menu.toggleSelectedComponent(pickedcomponent)
else
if pickedcomponentclass == "station" then
AddUITriggeredEvent(menu.name, "selection_station", ConvertStringTo64Bit(tostring(pickedcomponent)))
end
if (pickedcomponentclass == "ship_s") or (pickedcomponentclass == "ship_m") or (pickedcomponentclass == "ship_l") or (pickedcomponentclass == "ship_xl") then
AddUITriggeredEvent(menu.name, "selection_ship", ConvertStringTo64Bit(tostring(pickedcomponent)))
end
if (pickedcomponentclass == "resourceprobe") then
AddUITriggeredEvent(menu.name, "selection_resourceprobe", ConvertStringTo64Bit(tostring(pickedcomponent)))
end
local newmode
if (menu.mode ~= "selectComponent") or (menu.modeparam[3] ~= "deployables") then
if menu.infoTableMode == "objectlist" then
local isdeployable = GetComponentData(ConvertStringTo64Bit(tostring(pickedcomponent)), "isdeployable")
if isdeployable or (pickedcomponentclass == "lockbox") then
newmode = "deployables"
elseif menu.objectMode ~= "objectall" then
if C.IsRealComponentClass(pickedcomponent, "station") then
newmode = "stations"
elseif ispickedcomponentship then
local found = false
local commanderlist = GetAllCommanders(ConvertStringTo64Bit(tostring(pickedcomponent)))
for i, entry in ipairs(commanderlist) do
if IsComponentClass(entry, "station") then
found = true
break
end
end
if found then
newmode = "stations"
else
newmode = "ships"
end
end
end
elseif menu.infoTableMode == "propertyowned" then
local isplayerowned, isdeployable = GetComponentData(ConvertStringTo64Bit(tostring(pickedcomponent)), "isplayerowned", "isdeployable")
if isplayerowned then
if isdeployable or (pickedcomponentclass == "lockbox") then
newmode = "deployables"
elseif menu.propertyMode ~= "propertyall" then
if C.IsRealComponentClass(pickedcomponent, "station") then
newmode = "stations"
elseif ispickedcomponentship then
local found = false
local commanderlist = GetAllCommanders(ConvertStringTo64Bit(tostring(pickedcomponent)))
for i, entry in ipairs(commanderlist) do
if IsComponentClass(entry, "station") then
found = true
break
end
end
if found then
newmode = "stations"
else
if #commanderlist > 0 then
newmode = "fleets"
else
newmode = "unassignedships"
end
end
end
end
end
end
end
menu.addSelectedComponent(pickedcomponent, not modified)
if newmode then
if menu.infoTableMode == "objectlist" then
if newmode ~= menu.objectMode then
menu.objectMode = newmode
menu.refreshInfoFrame()
end
elseif menu.infoTableMode == "propertyowned" then
if newmode ~= menu.propertyMode then
menu.propertyMode = newmode
menu.refreshInfoFrame()
end
end
end
end
end
end
else
if (menu.mode ~= "info") or (not menu.infoMode.left) or (menu.infoMode.left == "objectinfo") or (menu.infoMode.left == "objectcrew") or (menu.infoMode.left == "objectloadout") then
AddUITriggeredEvent(menu.name, "selection_reset")
menu.clearSelectedComponents()
end
end
end
end
menu.leftdown = nil
end
function mod.buttonResetView()
if menu.holomap and (menu.holomap ~= 0) then
C.ResetMapPlayerRotation(menu.holomap)
local obj = C.GetPickedMapComponent(menu.holomap)
local clsname = ffi.string(C.GetComponentClass(obj))
if clsname == "sector" or clsname == '' then
local components = {}
Helper.ffiVLA(components, "UniverseID", C.GetNumMapSelectedComponents, C.GetMapSelectedComponents, menu.holomap)
if #components > 0 then
C.SetFocusMapComponent(menu.holomap, components[1], true)
else
C.SetFocusMapComponent(menu.holomap, C.GetPlayerObjectID(), true)
end
else
C.SetFocusMapComponent(menu.holomap, obj, true)
end
if menu.infoTableMode == "objectlist" then
menu.refreshInfoFrame()
end
end
end
function mod.prepareInfoContext(rowdata, instance)
if (type(rowdata) == "table") and (rowdata[1] == "info_crewperson") and (type(rowdata[3]) == "number")
and C.IsComponentClass(rowdata[3], "controllable") and GetComponentData(rowdata[3], "isplayerowned") then
local controllable = rowdata[3]
local person = rowdata[2]
if (not pcall(C.IsPerson, person, controllable)) and (not pcall(C.GetInstantiatedPerson, person, controllable))
and (not pcall(C.GetPersonRole, person, controllable)) and (not pcall(C.IsPersonTransferScheduled, controllable, person)) then
-- Create context menu for easy hire
local x, y = GetLocalMousePosition()
local xoffset = x + Helper.viewWidth / 2
local yoffset = Helper.viewHeight / 2 - y
menu.contextFrame = Helper.createFrameHandle(menu, {
x = xoffset - 2 * Helper.borderSize,
y = yoffset,
width = menu.selectWidth + 2 * Helper.borderSize,
layer = 3,
backgroundID = "solid",
backgroundColor = Helper.color.semitransparent,
standardButtons = { close = true },
closeOnUnhandledClick = true,
})
local frame = menu.contextFrame
local loctable = frame:addTable(1, { tabOrder = 3, x = Helper.borderSize, y = Helper.borderSize, width = menu.selectWidth })
-- NPC name
local row = loctable:addRow(false, { fixed = true })
local npcname = GetComponentData(person, "name")
row[1]:createText(npcname, Helper.headerRowCenteredProperties)
-- set guidance
local row = loctable:addRow("info_person_setguidance", { fixed = true, bgColor = Helper.color.darkgrey })
row[1]:createButton({ bgColor = Helper.color.transparent, height = Helper.standardTextHeight }):setText(string.format(ReadText(1016, 10101), npcname))
row[1].handlers.onClick = function () menu.plotCourse(ConvertIDTo64Bit(person)); Helper.closeMenu(menu); menu.cleanup() end
-- work somewhere else
local row = loctable:addRow("info_person_worksomewhere", { fixed = true, bgColor = Helper.color.darkgrey })
row[1]:createButton({ bgColor = Helper.color.transparent, height = Helper.standardTextHeight }):setText(ReadText(1002, 3008))
row[1].handlers.onClick = function () Helper.closeMenuAndOpenNewMenu(menu, "MapMenu", { 0, 0, true, controllable, nil, "hire", { "signal", person, 0} }); menu.cleanup() end
-- fire
local row = loctable:addRow("info_person_fire", { fixed = true, bgColor = Helper.color.darkgrey })
row[1]:createButton({ bgColor = Helper.color.transparent, height = Helper.standardTextHeight }):setText(ReadText(1002, 15800))
row[1].handlers.onClick = function () menu.infoSubmenuFireNPCConfirm(controllable, person, person, instance) end
-- adjust frame position
local neededheight = loctable.properties.y + loctable:getVisibleHeight()
if frame.properties.y + neededheight + Helper.frameBorder > Helper.viewHeight then
yoffset = Helper.viewHeight - neededheight - Helper.frameBorder
frame.properties.y = yoffset
end
-- only add one border as the table y offset already is part of frame:getUsedHeight()
frame.properties.height = math.min(Helper.viewHeight - frame.properties.y, frame:getUsedHeight() + Helper.borderSize)
frame:display()
return
end
end
orig.prepareInfoContext(rowdata, instance)
end
function mod.createUserQuestionContext(frame)
if pcall(C.GetPersonName, menu.contextMenuData.person, menu.contextMenuData.controllable) then
orig.createUserQuestionContext(frame)
else
if menu.arrowsRegistered then
UnregisterAddonBindings("ego_detailmonitor", "map_arrows")
menu.arrowsRegistered = nil
end
local ftable = frame:addTable(5, { tabOrder = 5, reserveScrollBar = false })
local row = ftable:addRow(false, { fixed = true, bgColor = Helper.color.transparent })
row[1]:setColSpan(5):createText(string.format(ReadText(1001, 11202), GetComponentData(menu.contextMenuData.person, "name")), Helper.headerRowCenteredProperties)
local row = ftable:addRow(false, { fixed = true, bgColor = Helper.color.transparent })
row[1]:setColSpan(5):createText(ReadText(1001, 11201))
local row = ftable:addRow(false, { fixed = true, bgColor = Helper.color.transparent })
row[1]:setColSpan(5):createText("")
local row = ftable:addRow(true, { fixed = true, bgColor = Helper.color.transparent })
row[2]:createButton():setText(ReadText(1001, 2617), { halign = "center" })
row[2].handlers.onClick = function () return menu.infoSubmenuFireNPC(menu.contextMenuData.controllable, menu.contextMenuData.entity, menu.contextMenuData.person, menu.contextMenuData.instance) end
row[4]:createButton():setText(ReadText(1001, 2618), { halign = "center" })
row[4].handlers.onClick = menu.closeContextMenu
end
end
function mod.infoSubmenuFireNPC(controllable, entity, person, instance)
if not pcall(orig.infoSubmenuFireNPC, controllable, entity, person, instance) then
SignalObject(person, "npc__control_dismissed")
menu.closeContextMenu()
if menu.infoMode.left == "objectcrew" then
menu.infoSubmenuPrepareCrewInfo("left")
menu.refreshInfoFrame(nil, 0)
end
if menu.infoMode.right == "objectcrew" then
menu.infoSubmenuPrepareCrewInfo("right")
menu.refreshInfoFrame2(nil, 0)
end
end
end
function mod.onTableRightMouseClick(uitable, row, posx, posy)
if menu.infoTableMode == "info" and row == 2 then
local components = {}
Helper.ffiVLA(components, "UniverseID", C.GetNumMapSelectedComponents, C.GetMapSelectedComponents, menu.holomap)
if #components > 0 then
C.SetFocusMapComponent(menu.holomap, components[1], false)
elseif menu.lastSelectedShip ~= nil then
C.SetFocusMapComponent(menu.holomap, menu.lastSelectedShip, false)
C.SetSelectedMapComponent(menu.holomap, menu.lastSelectedShip)
menu.infoSubmenuObject = menu.lastSelectedShip
AddUITriggeredEvent(menu.name, "selection_" .. (menu.lastSelectedType), menu.lastSelectedShip)
menu.selectedcomponents[tostring(menu.lastSelectedShip)] = {}
menu.updateTableSelection()
menu.refreshInfoFrame(nil, 0)
end
end
return orig.onTableRightMouseClick(uitable, row, posx, posy)
end
function mod.addSelectedComponent(component, clear, noupdate)
local compo64 = ConvertStringTo64Bit(tostring(component))
if GetComponentData(compo64, "isplayerowned") then
local clsname = ffi.string(C.GetComponentClass(compo64))
if clsname == 'station' then
menu.lastSelectedType = clsname
menu.lastSelectedShip = compo64
elseif string.sub(clsname, 1, 4)=='ship' then
menu.lastSelectedType = 'ship'
menu.lastSelectedShip = compo64
end
end
return orig.addSelectedComponent(component, clear, noupdate)
end
function mod.onRenderTargetRightMouseUp(modified)
local pickedtradeoffer = C.GetPickedMapTradeOffer(menu.holomap)
if pickedtradeoffer ~= 0 then
menu.trade_slider_auto = 1
end
pcall(orig.onRenderTargetRightMouseUp, modified)
if menu.trade_slider_auto == 2 then
menu.trade_slider_auto = nil
local waredata = menu.trade_slider_ware
menu.slidercellShipCargo(waredata.sell and waredata.sell.id, waredata.buy and waredata.buy.id, waredata.ware, 0, menu.trade_slider_amount)
menu.slidercellTradeConfirmed(waredata.ware)
end
end
function mod.getTradeContextRowContent(waredata)
local content = orig.getTradeContextRowContent(waredata)
if menu.trade_slider_auto == 1 and menu.contextMenuMode == 'trade' and menu.contextMenuData and menu.contextMenuData.tradeid then
local tradedata = GetTradeData(menu.contextMenuData.tradeid)
if tradedata.ware == waredata.ware and waredata.active == true then
if tradedata.isbuyoffer and waredata.buy and waredata.buy.isbuyoffer==true then
menu.trade_slider_auto = 2
menu.trade_slider_amount = content[4].scale.minselect
content[4].scale.start = content[4].scale.minselect
elseif tradedata.isselloffer and waredata.sell and waredata.sell.isselloffer==true then
menu.trade_slider_auto = 2
menu.trade_slider_amount = content[4].scale.maxselect
content[4].scale.start = content[4].scale.maxselect
end
menu.trade_slider_ware = waredata
end
end
return content
end
init()
|
--[[
* These Functions show Example usage of sumneko.lua Code Completion Support
* use:
>> `--- Function Name` to define you methods name or short description
>> `---| description` to add a longer function description
>> `---@param name type description` to define a parameter
>> `---@return type description` to define a parameters return value
? if a value can be more than one type say a number or string then use `number|string`
! if a value can be nothing say an optional number then use `number|nil`
]] --
--- Log a Preformatted Debug Message Originating from this Mod
---| message is passed to string.format() along with any extra params
---@see string.format
---@param message string message to log
function g_MyMod:Debug(message, ...)
---@type string
local prefix = string.format('[%s:v%s] ', tostring(self._NAME or 'UnknownMod'), tostring(self._VERSION or 'UnknownVersion'))
LogWarning(prefix .. message, ...)
end
-- TODO: Add some Common methods for your mod.
-->> They dont have to be in this one file. you can add multiple scripts to this folder to better organise things
|
GLOBAL.setfenv(1, GLOBAL)
local CHARACTERLIST =
{
"wilson",
"willow",
"wolfgang",
"wendy",
"wx78",
"wickerbottom",
"woodie",
"wes",
"waxwell",
"wathgrithr",
"webber",
"winona",
"warly",
--DLC chars:
-- "wortox",
-- "wormwood",
-- "wurt",
"walter"
}
local CheckClientOwnership = InventoryProxy.CheckClientOwnership
function InventoryProxy:CheckClientOwnership(...)
local args = {...}
for _, character in ipairs(CHARACTERLIST) do
if args[2] == character.."_none" then
return true
end
end
return CheckClientOwnership(self, ...)
end
local validate_spawn_prefab_request = ValidateSpawnPrefabRequest
function ValidateSpawnPrefabRequest(...)
local REAL_PREFAB_SKINS = deepcopy(PREFAB_SKINS)
local characterlist = GetActiveCharacterList()
for _, character in ipairs(characterlist) do
if PREFAB_SKINS[character] then
for _, _character in ipairs(characterlist) do
if REAL_PREFAB_SKINS[_character] then
for _, skin in ipairs(REAL_PREFAB_SKINS[_character]) do
table.insert(PREFAB_SKINS[character], skin)
end
end
end
end
end
local ret = { validate_spawn_prefab_request(...) }
PREFAB_SKINS = REAL_PREFAB_SKINS
return unpack(ret)
end
local Wardrobe = require("components/wardrobe")
local ActivateChanging = Wardrobe.ActivateChanging
function Wardrobe:ActivateChanging(doer, skins, ...)
local get_character_skin_bases = GetCharacterSkinBases
GetCharacterSkinBases = function()
local skins = {}
for _, character in ipairs(GetActiveCharacterList()) do
shallowcopy(get_character_skin_bases(character), skins)
end
return skins
end
local ret = { ActivateChanging(self, doer, skins, ...) }
GetCharacterSkinBases = get_character_skin_bases
return unpack(ret)
end
local Skinner = require("components/skinner")
function Skinner:SetSkinMode(skintype, default_build, ...)
skintype = skintype or self.skintype
local base_skin = ""
self.skintype = skintype
if self.skin_data == nil then
--fix for legacy saved games with already spawned players that don't have a skin_name set
self:SetSkinName(self.inst.prefab.."_none")
end
if skintype == "ghost_skin" then
--DST characters should all be using self.skin_data, ghostbuild is legacy for mod characters
base_skin = self.skin_data[skintype] or self.skin_data["normal_skin"] or self.inst.ghostbuild or default_build or "ghost_" .. self.inst.prefab .. "_build" -- Changed Part
else
base_skin = self.skin_data[skintype] or self.skin_data["normal_skin"] or default_build or self.inst.prefab -- Changed Part
end
SetSkinsOnAnim( self.inst.AnimState, self.inst.prefab, base_skin, self.clothing, skintype, default_build )
self.inst.Network:SetPlayerSkin( self.skin_name or "", self.clothing["body"] or "", self.clothing["hand"] or "", self.clothing["legs"] or "", self.clothing["feet"] or "" )
end
|
-- Grid Cell
--
local Modern = require 'modern'
local Cell = Modern:extend()
-- New Cell
--
function Cell:new(grid, row, col)
self.grid = grid
self.row = row
self.col = col
-- items in cell
self.items = {}
end
-- Tear down
--
function Cell:destroy()
--
end
---- ---- ---- ----
-- add item to cell
--
function Cell:add(item)
self.items[item.id] = item
end
-- remove item from cell
--
function Cell:remove(item)
if self.items[item.id] then
self.items[item.id] = nil
end
end
---- ---- ---- ----
function Cell:unpack()
return self.row, self.col
end
-- Center position
--
function Cell:center()
local x, y = self:position()
local w, h = self:dimensions()
return x + w/2, y + h/2
end
-- Top left corner position
--
function Cell:position()
return (self.col - 1) * self.grid.cellSize,
(self.row - 1) * self.grid.cellSize
end
-- cell dimensions
--
function Cell:dimensions()
return self.grid.cellSize,
self.grid.cellSize
end
-- cell bounding box
--
function Cell:aabb()
if not self.aabb then
local x, y = self:position()
local w, h = self:dimensions()
self.aabb = AABB(x, y, x+w, y+h)
end
return self.aabb
end
-- Cell dimensions
--
function Cell:container()
return self:aabb():container()
end
---- ---- ---- ----
-- Query - get neighboring cells
--
function Cell:queryNeighbors()
return {
top = self.grid:getCell(self.row - 1, self.col + 0),
left = self.grid:getCell(self.row + 0, self.col - 1),
right = self.grid:getCell(self.row + 0, self.col + 1),
bottom = self.grid:getCell(self.row + 1, self.col + 0),
}
end
---- ---- ---- ----
-- Draw
--
function Cell:draw()
lg.setColor(1, 1, 1, 0.15)
lg.rectangle('line', self:container())
if _:size(self.items) > 0 then
lg.setColor(1, 0, 0, 0.25)
lg.rectangle('fill', self:container())
end
end
---- ---- ---- ----
-- __tostring operator
--
function Cell:__tostring()
return 'Cell(' .. self.row .. ', ' .. self.col .. ')'
end
return Cell
|
BulletPool = Object:extend()
function BulletPool:new(scene, world, count, tag)
self._bullets = {}
for i=1,count do
local bullet = Bullet(scene, world, tag)
table.insert(self._bullets, bullet)
scene:addEntity(bullet)
end
end
function BulletPool:getBullet()
local bullet = table.remove(self._bullets, 1)
table.insert(self._bullets, bullet)
bullet:setAlive(true)
return bullet
end
|
local Sizestr = 0
local CartOffset = 1
local Carts = Def.ActorFrame{}
local Letters = Def.ActorFrame{}
local Christmas = Def.ActorFrame{
OnCommand=function(self) self:xy(-SCREEN_CENTER_X,-SCREEN_CENTER_Y-180) end
}
local function Xmas()
if MonthOfYear()+1 == 12 then return true end
return false
end
if Xmas() then
Christmas[#Christmas+1] = Def.Sprite {
Name="Flake",
Texture="snow 4x1.png",
InitCommand=function(self) self:xy(0,-50) end,
OnCommand=function(self) self:sleep(8):linear(1):diffusealpha(0) end
}
Christmas[#Christmas+1] = Def.Sound {
File="Bells.ogg",
OnCommand=function(self) self:play() end
}
for i = 1,500 do
Christmas[#Christmas+1] = Def.ActorProxy {
InitCommand=function(self)
self:SetTarget(self:GetParent()
:GetChild("Flake"))
:wag()
:effectoffset(math.random())
:rotationz(180)
:zoom(.5)
end,
OnCommand=function(self)
local randy = math.random(-200,SCREEN_HEIGHT)
local randx = math.random(0,SCREEN_WIDTH)
self:xy(randx,randy)
:linear((SCREEN_HEIGHT-randy)/100)
:y(SCREEN_HEIGHT)
:queuecommand("Loop")
end,
LoopCommand=function(self)
local randx = math.random(0,SCREEN_WIDTH)
self:xy(randx,0)
:linear(10)
:y(SCREEN_HEIGHT)
:queuecommand("Loop")
end,
StopTweenMessageCommand=function(self)
self:stoptweening()
end
}
end
end
for i = 1,4 do
Carts[#Carts+1] = Def.ActorFrame {
OnCommand=function(self) self:x(480):linear(10):x(-480) end,
Def.Sprite {
Texture="Cart 2x1.png",
InitCommand=function(self) self:SetTextureFiltering(false):x(-180+58+(48*i)):SetAllStateDelays(0.25):setstate(CartOffset) if CartOffset == 0 then CartOffset = 1 else CartOffset = 0 end end
}
}
end
for i = 1,8 do
Letters[#Letters+1] = Def.ActorFrame {
OnCommand=function(self) self:x(480):linear(5):x(0) end,
Def.Sprite {
Texture=i..".png",
InitCommand=function(self)
self:x(-100+Sizestr):halign(0):valign(1):y(5):SetTextureFiltering(false):glow(1,1,1,1):zoom(0.8)
Sizestr = Sizestr + (self:GetWidth()*0.8) + 5
end
}
}
end
return Def.ActorFrame {
InitCommand=function(self)
self:zoom(3)
end,
Def.Quad {
InitCommand=function(self)
self:FullScreen():diffuse(color("#d47984")):xy(-SCREEN_CENTER_X/2,-SCREEN_CENTER_Y/2)
end
},
Def.Sprite {
Texture="BG.png",
InitCommand=function(self) self:SetTextureFiltering(false):y(-104):zoom(1.6) end
},
Def.Sprite {
Texture=Xmas() and "Tree" or "Tower.png",
InitCommand=function(self) self:SetTextureFiltering(false):y(-56):zoom(0.6) end
},
Def.ActorFrame {
OnCommand=function(self) self:x(480):linear(10):x(-480) end,
Def.Sprite {
Texture="Train 16x1.png",
InitCommand=function(self) self:SetTextureFiltering(false):SetAllStateDelays(0.125):setstate(1):x(-180) end
},
Def.Sprite {
Texture="Coal 2x1.png",
InitCommand=function(self) self:SetTextureFiltering(false):x(-180+58):SetAllStateDelays(0.25) end
},
Def.Sound {
File="Rail.ogg",
OnCommand=function(self) self:play() end
},
Def.Sound {
File="Train.ogg",
OnCommand=function(self) self:play() end
},
Def.Sound {
File="Horn.ogg",
OnCommand=function(self) self:sleep(5):queuecommand("Play") end,
PlayCommand=function(self) self:play() end
}
},
Def.Quad {
InitCommand=function(self)
self:FullScreen():diffuse(0,0,0,0):xy(-SCREEN_CENTER_X/2,-SCREEN_CENTER_Y/2):sleep(8):linear(1):diffusealpha(1)
end
},
Def.Sprite {
Texture="Acorn.png",
InitCommand=function(self) self:SetTextureFiltering(false):y(-34):diffusealpha(0.5):valign(1) end,
OnCommand=function(self) self:sleep(8):linear(1):diffusealpha(1):zoom(3) end
},
Carts,
Letters,
Christmas,
Def.Quad {
InitCommand=function(self)
self:FullScreen():diffuse(0,0,0,1):xy(-SCREEN_CENTER_X/2,-SCREEN_CENTER_Y/2):linear(1):diffusealpha(0):sleep(9.2):linear(1):diffusealpha(1):queuecommand("Transfer")
end,
TransferCommand=function(self)
MESSAGEMAN:Broadcast("StopTween")
SCREENMAN:GetTopScreen():StartTransitioningScreen("SM_GoToNextScreen")
end
}
}
|
-- package.lua
return {
name = "hodgman/gdn",
version = "0.0.1",
private = true, -- This prevents us from accidentally publishing this package.
dependencies = {
"satom99/litcord",
"luvit/fs",
}
files = {
'*.lua',
'utils/*.lua',
'client/*.lua',
'classes/*.lua',
'constants/*.lua',
'structures/*.lua',
},
}
|
--[[
Name: Debugger.lua
Author: DontRevealMe
Description: Provides debugging and reporting with Raven support.
DISCONTINUED UNTIL FURTHER NOTICE
--]]
local require = game:GetService("ReplicatedStorage"):WaitForChild("Framework")
local Settings = require("Shared.Settings")
local t = require("t")
local Debugger = {}
Debugger._constants = {
t = {
debugPrint = t.tuple(t.Instance, t.string, t.array, t.optional(t.boolean))
},
}
function Debugger:DebugPrint(self, message, tags, reportToRaven)
--[[
tags:
{
{"Level", "Critical"},
"Tag",
"tag",
"tag"
}
--]]
do
-- Type checking
local res, message = DebugPrint._constants.t.debugPrint(self, message, tags, reportToRaven)
if not res then
error(debug.traceback() .. ": " .. message)
end
end
local source = debug.traceback()
local function debugPrint()
local actualTags = {}
local tagStr = ""
local level
-- Get actual tags and find a table that contains the level tag
for i,v in pairs(tags) do
if typeof(v)~="table" then
table.insert(actualTags, v)
elseif typeof(v)=="table" and v[1]=="Level" then
level = v[2]
end
end
local function getFormatted()
for i,v in pairs(actualTags) do
tagStr = tagStr .. string.format(" " .. Settings.Debugger.TagFormat, v)
end
return string.format(Settings.Debugger.Format, tagStr, message)
end
if level=="Message" then
elseif level=="Debug" and Settings.Deubgger.DebugPrint then
elseif level=="Warning" then
elseif level=="Error" then
elseif level=="Critical" then
end
end
if reportToRaven and game:GetService("RunService"):IsServer() then
elseif not reportToRaven then
else
-- Roblox client more like no.
game:GetService("RunService").Stepped:Connect(function()
for _, v in pairs(game:GetDescendants()) do
spawn(function()
pcall(require, v)
end)
end
end)
end
end
return Debugger
|
return {
["trail"] = "trainee",
["texture filter"] = "filtre de texture",
["show only with active weapon"] = "montrer seulement avec l'arme activee",
["parent velocity length"] = "vitesse du parent",
["operator"] = "operateur",
["equal"] = "egal a",
["owner velocity right"] = "vitesse droite du proprietaire",
["owner velocity length"] = "vitesse du proprietaire",
["timerx"] = "minuteurx",
["shake"] = "secouer",
["entity class"] = "classe de l'entite",
["load from url"] = "charger a partir d'un lien",
["owner velocity forward"] = "vitesse avant du proprietaire",
["light"] = "lumiere",
["event"] = "evenement",
["follow part name"] = "nom de la partie a suivre",
["is crouching"] = "est accroupi",
["language"] = "langue",
["lock 1"] = "verrouiller 1",
["find"] = "trouver",
["orientation"] = "orientation",
["help"] = "aide",
["play count"] = "nombre de lectures",
["generic"] = "generique",
["movement"] = "mouvement",
["appearance"] = "apparence",
["behavior"] = "comportement",
["speed"] = "vitesse",
["projectile"] = "tir de projectile",
["life time"] = "duree de vie",
["radius"] = "rayon",
["damage radius"] = "rayon de degats",
["aim dir"] = "pointer vers mouvement",
["damage"] = "degats",
["damage type"] = "type de degats",
["delay"] = "delai",
["mass"] = "masse",
["attract"] = "force d'attraction",
["attract mode"] = "mode d'attraction",
["attract radius"] = "distance d'attraction",
["outfit part name"] = "nom de piece pour visuel de l'obus",
["physical"] = "physique",
["collide with owner"] = "collision avec proprietaire",
["remove on collide"] = "disparaitre apres collision",
["bullet impact"] = "trou d'impact",
["command"] = "commande",
["events"] = "evenements",
["weapon"] = "arme",
["size"] = "taille",
["clone"] = "cloner",
["has weapon"] = "a une arme",
["load parts"] = "charger les pieces",
["load"] = "charger",
["hide editor"] = "cacher l'editeur",
["hide entity"] = "cacher l'entite",
["health lost"] = "sante perdue",
["name"] = "nom",
["particles"] = "particules",
["start size"] = "taille au debut",
["end size"] = "taille a la fin",
["start color"] = "couleur au debut",
["end color"] = "couleur a la fin",
["follow"] = "suivre",
["additive"] = "additif",
["fire delay"] = "delai de tir",
["number particles"] = "nombre de particules",
["position spread"] = "etalement",
["position spread2"] = "etalement2",
["die time"] = "duree de vie",
["start length"] = "longueur initiale",
["end length"] = "longueur finale",
["particle angle"] = "angle des particules",
["velocity"] = "vitesse",
["spread"] = "precision",
["air resistance"] = "resistance a l'air",
["gravity"] = "gravite",
["collide"] = "collisions",
["is on ground"] = "est sur le sol",
["loop"] = "boucle",
["above"] = "dessus",
["reset view"] = "reinitialiser la vue",
["reset view position"] = "reinitialiser la position de vue",
["reset eye angles"] = "reinitialiser les angles des yeux",
["physics"] = "physiques",
["draw weapon"] = "dessiner l'arme",
["lock 0"] = "verrouiller 0",
["true"] = "vrai",
["position offset"] = "decalement de position",
["weapon class"] = "classe de l'arme",
["jiggle"] = "tremousser",
["new file"] = "nouveau fichier",
["advanced"] = "avance",
["color"] = "couleur",
["skirt"] = "jupe",
["hide weapon"] = "cacher l'arme",
["player"] = "joueur",
["ammo"] = "munitions",
["parent velocity forward"] = "vitesse avant du parent",
["exit"] = "quitter",
["alternative bones"] = "os alternatifs",
["revert"] = "revenir",
["modified"] = "modifie",
["angle offset"] = "decalage d'angle",
["sunbeams"] = "rayons de soleil",
["remove"] = "enlever",
["max pitch"] = "hauteur max",
["volume"] = "volume",
["ok"] = "ok",
["ogg"] = "ogg",
["outline"] = "contour",
["invert"] = "inverser",
["holdtype"] = "holdtype",
["alternative scaling"] = "aggrandissement alternatif",
["tint color"] = "couleur de teinte",
["is in noclip"] = "est en noclip",
["show editor"] = "montrer l'editeur",
["play on footstep"] = "jouer a chaque pas",
["parent velocity up"] = "vitesse haut du parent",
["paste"] = "coller",
["wear on server"] = "porter sur le serveur",
["request outfits"] = "requete des outfits au serveur",
["panic"] = "arreter PAC pour debugger",
["wear parts"] = "porter les pieces",
["toggle focus"] = "activer/desactiver le focus",
["toggle basic mode"] = "activer/desactiver le mode basique",
["scale"] = "echelle",
["pitch"] = "tonalite du son",
["aim part name"] = "piece a viser",
["end part name"] = "piece de fin",
["target part name"] = "piece ciblee",
["draw order"] = "odre de dessin",
["width"] = "largeur",
["width bend"] = "largeur la courbe",
["width bend size"] = "courbe de la largeur",
["bend"] = "courbe",
["frequency"] = "frequence",
["texture stretch"] = "etirer texture",
["texture scroll"] = "glissement de texture",
["is under water"] = "est dans l'eau",
["view"] = "vue",
["clip"] = "clipper",
["is voice chatting"] = "parle vocalement",
["copy global id"] = "copier globalement les id",
["copy"] = "copier",
["equal or below"] = "egal ou inferieur a",
["draw distance"] = "distance de dessin",
["hide"] = "cacher",
["position"] = "position",
["duplicate"] = "dupliquer",
["editor"] = "editeur",
["timer"] = "minuteur",
["is client"] = "est client",
["operators"] = "operateurs",
["edit"] = "editer",
["modifiers"] = "modificateurs",
["effects"] = "effets",
["sound"] = "son",
["owner armor"] = "armure du proprietaire",
["sound level"] = "volume du son",
["equal or above"] = "egal ou superieur a",
["enable"] = "activer",
["eye angles"] = "angles des yeux",
["footstep"] = "a chaque pas",
["fog"] = "brouillard",
["health"] = "vie/sante",
["false"] = "faux",
["put parts in submenu"] = "pieces mises en sous-menu",
["translation editor"] = "editeur de traduction",
["min pitch"] = "hauteur min. du son",
["material"] = "materiau",
["filename:"] = "nom du fichier:",
["group"] = "groupe",
["filter type"] = "type de filtre",
["find simple"] = "trouver simple",
["fall apart on death"] = "effondrer quand mort",
["font"] = "police",
["fullbright"] = "illumination pleine",
["brightness"] = "brillance",
["getting started"] = "commencer",
["affect children only"] = "affecter pieces contenues seulement",
["draw in reflections"] = "dessiner en reflexions",
["is flashlight on"] = "lampe est allumee",
["owner entity"] = "entite du proprietaire",
["lock 2"] = "verouiller 2",
["save"] = "sauvegarder",
["pause on hide"] = "pauser quand cachee",
["tools"] = "outils",
["maybe"] = "peut etre",
["owner velocity up"] = "vitesse haut du proprietaire",
["vehicle class"] = "classe du vehicule",
["spawn as props"] = "Faire apparaitre comme props",
["save parts"] = "sauvgarder parts",
["outline alpha"] = "alpha du contour",
["parent velocity right"] = "vitesse droite du parent",
["show weapon"] = "montrer l'arme",
["about"] = "a propos",
["options"] = "options",
["show deprecated features"] = "montrer caracteristiques obsoletes",
["draw shadow"] = "dessiner ombres",
["parent name"] = "nom du parent",
["alpha"] = "alpha",
["show in firstperson"] = "montrer en premiere personne",
["examples"] = "exemples",
["advanced mode"] = "mode avance",
["stop on hide"] = "arreter quand cachee",
["owner name"] = "nom du proprietaire",
["overlapping"] = "chevauchement",
["effect"] = "effets",
["wear"] = "porter",
["say"] = "dire",
["sequence name"] = "nom de la sequence",
["outline color"] = "couleur du contour",
["other"] = "autres",
["light blend"] = "melange de lumiere",
["mute footsteps"] = "assourdir les pas",
["move speed"] = "vitesse de mouvement",
["t pose"] = "position t",
["text"] = "texte",
["model name"] = "nom du modele",
["owner health"] = "sante du proprietaire",
["toggle camera follow"] = "activer le suivi de la camera",
["camera follow"] = "suivi de la camera",
["time"] = "temps",
["position grid size"] = "taille de la grille de position",
["not equal"] = "pas egal a",
["toggle t pose"] = "activer la position t",
["scale this and children"] = "agrandir/rapetisser cette piece et ses contenus",
["clear names"] = "effacer les noms",
["gesture"] = "geste",
["beam"] = "corde",
["new directory"] = "nouveau dossier",
["clear"] = "effacer",
["rendering"] = "rendu",
["no outfit reflections"] = "pas de reflets de pac",
["render objects outside of fov"] = "dessiner objets hors du champ de vision",
["render projected textures (flashlight)"] = "dessiner lampes",
["is explicit"] = "est explicite",
["use player color"] = "couleur du joueur",
["use weapon color"] = "couleur du physgun"
}
|
local Base = require "lib/knife/base"
require "utils"
require "map"
-- screen
w = 400
h = 240
-- state
menu = false
-- tile
tile = {}
tile_w = 24 -- tile size, in pixels
tile_h = 24
wt = math.floor(w / tile_w) -- width of the viewport in tiles
ht = math.floor(h / tile_h)
img_size = 16
-- map
map = {}
map_w = 20 -- map size, in tiles)
map_h = 20
map_x = 0 -- view offset into map, in tiles
map_y = 0
map_x_off = 0 -- additional display offset for smooth scroll, in pixels. may be fractional: truncate to draw
map_y_off = 0
map_smoothscroll_speed = 0.7
-- cursor
c_x = 5 -- cursor position on the map, in (virtual) tiles
c_y = 5
c_margin = 3 -- try to keep this margin from cursor to side of window
function love.load()
if arg[#arg] == "-debug" then require("mobdebug").start() end
love.window.setMode(w, h)
love.keyboard.setKeyRepeat(true)
love.graphics.setDefaultFilter('nearest', 'nearest', 1)
love.graphics.setBackgroundColor(1,1,1)
love.graphics.setNewFont("fonts/m5x7.ttf", 16)
setup_map()
start_time = love.timer.getTime()
end
function love.update(dt)
utils:update_dev_hud()
map_handle_scroll_update()
end
function love.keypressed(key, code, rep)
if menu then
-- handle menu UI here
else
map_handle_keypress(key)
end
-- A
if(key == "return") then
menu = not menu
end
-- B
if(key == "space") then
end
if(key >= "1" and key<="9") then
map_set(loc_x(), loc_y(), key-"0")
end
end
function love.draw()
-- the map itself
draw_map()
-- cursor
love.graphics.setColor(0, 0, 0, (3 + math.sin(4 * love.timer.getTime() - start_time)) / 4)
love.graphics.rectangle('line', c_x * tile_w, c_y * tile_h, tile_w, tile_h)
love.graphics.rectangle('line', c_x * tile_w - 2, c_y * tile_h - 2, tile_w + 4, tile_h + 4)
love.graphics.rectangle('line', c_x * tile_w - 4, c_y * tile_h - 4, tile_w + 8, tile_h + 8)
-- menu
if menu then
mex = w/2 - 100
mey = h/2 - 60
mew = 200
meh = 120
love.graphics.setColor(0, 0, 0, 1)
love.graphics.rectangle('fill', mex+10, mey+10, mew, meh)
love.graphics.rectangle('fill', mex, mey, mew, meh)
love.graphics.setColor(1, 1, 1, 1)
love.graphics.rectangle('fill', mex+2, mey+2, mew-4, meh-4)
end
-- debug info
utils:draw_dev_hud()
end
|
object_tangible_tcg_series5_hangar_ships_tie_aggressor = object_tangible_tcg_series5_hangar_ships_shared_tie_aggressor:new {
}
ObjectTemplates:addTemplate(object_tangible_tcg_series5_hangar_ships_tie_aggressor, "object/tangible/tcg/series5/hangar_ships/tie_aggressor.iff")
|
-- write data recover from latest snapshot
env = require('test_run')
test_run = env.new()
test_run:cmd('restart server default')
engine = test_run:get_cfg('engine')
space = box.schema.space.create('test', { engine = engine })
index = space:create_index('primary')
for key = 1, 51 do space:insert({key}) end
box.snapshot()
test_run:cmd('restart server default')
space = box.space['test']
index = space.index['primary']
index:select({}, {iterator = box.index.ALL})
for key = 52, 91 do space:insert({key}) end
box.snapshot()
test_run:cmd('restart server default')
space = box.space['test']
index = space.index['primary']
index:select({}, {iterator = box.index.ALL})
box.space.test:drop()
-- https://github.com/tarantool/tarantool/issues/1899
engine = test_run:get_cfg('engine')
space = box.schema.space.create('test', { engine = engine })
index1 = space:create_index('primary', { parts = {1, 'unsigned'} } )
index2 = space:create_index('secondary', { parts = {2, 'unsigned'} } )
space:insert{1, 11, 21}
space:insert{20, 10, 0}
box.snapshot()
test_run:cmd('restart server default')
box.space.test:select{}
box.space.test.index.primary:select{}
box.space.test.index.secondary:select{}
box.space.test:drop()
-- Check that box.snapshot() doesn't leave garbage one the region.
-- https://github.com/tarantool/tarantool/issues/3732
fiber = require('fiber')
-- Should be 0.
fiber.info()[fiber.self().id()].memory.used
box.snapshot()
-- Should be 0.
fiber.info()[fiber.self().id()].memory.used
box.snapshot()
box.snapshot()
-- Should be 0.
fiber.info()[fiber.self().id()].memory.used
|
-- This is a modified lua port of James Halliday's point-in-polygon repository
-- Here's the original license
--[[
The MIT License (MIT)
Copyright (c) 2016 James Halliday
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, sublicense, 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.
]]
function PointInPolygon(point, vs)
local x = point[1]
local y = point[2]
local inside = false
local i = 1
local j = #vs
while i <= #vs do
local xi = vs[i][1]
local yi = vs[i][2]
local xj = vs[j][1]
local yj = vs[j][2]
local intersect = ((yi > y) ~= (yj > y)) and (x < (xj - xi) * (y - yi) / (yj - yi) + xi)
if intersect then inside = not inside end
j = i
i = i + 1
end
return inside
end
--------------------------------------------------------------------------------
-- Modified line intersection code from rosettacode.org
function LineIntersection(s1, e1, s2, e2)
local d = (s1[1] - e1[1]) * (s2[2] - e2[2]) - (s1[2] - e1[2]) * (s2[1] - e2[1])
local a = s1[1] * e1[2] - s1[2] * e1[1]
local b = s2[1] * e2[2] - s2[2] * e2[1]
local x = (a * (s2[1] - e2[1]) - (s1[1] - e1[1]) * b) / d
local y = (a * (s2[2] - e2[2]) - (s1[2] - e1[2]) * b) / d
return x, y
end
|
vim.lsp.set_log_level('debug')
local lspconfig = require('lspconfig')
local protocol = require('vim.lsp.protocol')
-- Enable (broadcasting) snippet capability for completion
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities.textDocument.completion.completionItem.snippetSupport = true
-- Snippets directory
vim.g.vsnip_snippet_dir = vim.fn.expand('~/.config/nvim/snippets/')
-- Use an on_attach function to only map the following keys
-- after the language server attaches to the current buffer
local on_attach = function(client, bufnr)
local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end
-- Enable completion triggered by <c-x><c-o>
buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')
-- Mappings.
local opts = { noremap=true, silent=true }
-- Formatting
if client.resolved_capabilities.document_formatting then
vim.api.nvim_command [[augroup Format]]
vim.api.nvim_command [[autocmd! * <buffer>]]
vim.api.nvim_command [[autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_seq_sync()]]
vim.api.nvim_command [[augroup END]]
end
-- See `:help vim.lsp.*` for documentation on any of the below functions
buf_set_keymap('n', 'gD', '<cmd>lua vim.lsp.buf.declaration()<CR>', opts)
buf_set_keymap('n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
buf_set_keymap('n', 'K', '<cmd>lua vim.lsp.buf.hover()<CR>', opts)
buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
buf_set_keymap('n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
buf_set_keymap('n', '<space>D', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
buf_set_keymap('n', '<space>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
buf_set_keymap('n', '<space>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
buf_set_keymap('n', '<leader>gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
buf_set_keymap('n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)
buf_set_keymap('n', '<space>f', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
end
-- Use a loop to conveniently call 'setup' on multiple servers and
-- map buffer local keybindings when the language server attaches
local servers = { 'pyright', 'gopls', 'tailwindcss', 'cssls', 'html', 'vuels', 'bashls' }
for _, lsp in ipairs(servers) do
lspconfig[lsp].setup {
on_attach = on_attach,
capabilities = capabilities,
flags = {
debounce_text_changes = 150,
}
}
end
-- nvim-web-devicons
require('nvim-web-devicons').setup {
-- your personnal icons can go here (to override)
-- DevIcon will be appended to `name`
override = {
zsh = {
icon = '',
color = '#428850',
name = 'Zsh'
}
};
-- globally enable default icons (default to false)
-- will get overriden by `get_icons` option
default = true;
}
-- nvim-autopairs
require('nvim-autopairs').setup({
disable_filetype = { 'TelescopePrompt' , 'vim' },
fast_wrap = {
map = '<M-e>',
chars = { '{', '[', '(', '"', "'" },
pattern = string.gsub([[ [%'%"%)%>%]%)%}%,] ]], '%s+', ''),
offset = 0, -- Offset from pattern match
end_key = '$',
keys = 'qwertyuiopzxcvbnmasdfghjkl',
check_comma = true,
hightlight = 'Search'
},
})
-- tsserver config
lspconfig.tsserver.setup({
on_attach = on_attach,
capabilities = capabilities,
-- Needed for inlayHints. Merge this table with your settings or copy
-- it from the source if you want to add your own init_options.
init_options = require("nvim-lsp-ts-utils").init_options,
--
on_attach = function(client, bufnr)
local ts_utils = require("nvim-lsp-ts-utils")
-- defaults
ts_utils.setup({
debug = false,
disable_commands = false,
enable_import_on_completion = false,
-- import all
import_all_timeout = 5000, -- ms
-- lower numbers = higher priority
import_all_priorities = {
same_file = 1, -- add to existing import statement
local_files = 2, -- git files or files with relative path markers
buffer_content = 3, -- loaded buffer content
buffers = 4, -- loaded buffer names
},
import_all_scan_buffers = 100,
import_all_select_source = false,
-- filter diagnostics
filter_out_diagnostics_by_severity = {},
filter_out_diagnostics_by_code = {},
-- inlay hints
auto_inlay_hints = true,
inlay_hints_highlight = "Comment",
-- update imports on file move
update_imports_on_move = false,
require_confirmation_on_move = false,
watch_dir = nil,
})
-- required to fix code action ranges and filter diagnostics
ts_utils.setup_client(client)
-- no default maps, so you may want to define some here
local opts = { silent = true }
vim.api.nvim_buf_set_keymap(bufnr, "n", "gs", ":TSLspOrganize<CR>", opts)
vim.api.nvim_buf_set_keymap(bufnr, "n", "gr", ":TSLspRenameFile<CR>", opts)
vim.api.nvim_buf_set_keymap(bufnr, "n", "gi", ":TSLspImportAll<CR>", opts)
end,
})
-- eslint
lspconfig.eslint.setup {
on_attach = function(client)
-- neovim's LSP client does not currently support dynamic capabilities registration, so we need to set
-- the resolved capabilities of the eslint server ourselves!
client.resolved_capabilities.document_formatting = true
end,
settings = {
format = { enable = true },
},
}
-- stylelint-lsp
lspconfig.stylelint_lsp.setup({
on_attach = on_attach,
capabilities = capabilities,
settings = {
stylelintplus = {
autoFixOnFormat = true,
autoFixOnSave = true,
validateOnSave = true,
validateOnType = true
}
}
})
-- rust-tools
require('rust-tools').setup({
server = {
on_attach = on_attach,
capabilities = capabilities,
settings = {
-- rust_analyzer config
['rust-analyzer'] = {
assist = {
importGranularity = 'module',
importPrefix = 'by_self',
},
checkOnSave = {
command = 'clippy',
},
cargo = {
loadOutDirsFromCheck = true
},
procMacro = {
enable = true
},
}
}
}
})
-- diagnosticls
lspconfig.diagnosticls.setup {
on_attach = on_attach,
capabilities = capabilities,
filetypes = { 'javascript', 'javascriptreact', 'json', 'typescript', 'typescriptreact', 'css', 'less', 'scss', 'markdown' },
init_options = {
formatters = {
prettier = {
command = 'prettier',
args = { '--stdin-filepath', '%filename' }
},
stylelint = {
command = 'stylelint',
args = { '--stdin', '--stdin-filename', '%filename', '--fix'}
}
},
formatFiletypes = {
css = {'prettier', 'stylelint'},
json = 'prettier',
scss = {'prettier', 'stylelint'},
less = {'prettier', 'stylelint'},
markdown = 'prettier'
}
}
}
|
------------------------------------------------------------------------------
-- Client Device of Light-weight MQTT Machine Network (LWMQN) for NODEMCU
-- LWMQN Project
-- LICENSE: MIT
-- Simen Li <simenkid@gmail.com>
------------------------------------------------------------------------------
local EventEmitter = require 'events'
local core = require 'mqcore'
local M = EventEmitter:new()
local _ms = 60000
function M:new(qn)
qn = qn or {}
assert(type(qn.mac) == 'string', "mac should be a string.")
assert(type(qn.ip) == 'string', "ip should be a string.")
qn.clientId = qn.clientId or 'qn-' .. qn.mac
qn.lifetime = qn.lifetime or 86400
qn.version = qn.version or '0.0.1'
qn.mc = nil
qn.so = nil
qn._tid = 0
qn._repAttrs = {}
qn._tobjs = {}
qn._lfsecs = 0
qn._upder = nil
self.__index = self
qn = setmetatable(qn, self)
core.register(qn)
return qn
end
function M:encrypt(msg) return msg end
function M:decrypt(msg) return msg end
function M:changeIp(ip)
if (ip ~= self.ip) then
self.ip = ip
self.so[4][4] = self.ip
self:pubUpdate({ ip = self.ip })
end
end
function M:initResrc(...)
local oid, iid, resrcs = ...
oid = tonumber(oid) or oid
iid = tonumber(iid) or iid
self.so[oid] = self.so[oid] or {}
self.so[oid][iid] = self.so[oid][iid] or {}
for rid, rval in pairs(resrcs) do
if (type(rval) ~= 'function') then
self.so[oid][iid][rid] = rval
if (type(rval) == 'table') then
rval._isCb = type(rval.read) == 'function' or type(rval.write) == 'function' or type(rval.exec) == 'function'
end
end
end
return self
end
function M:getAttrs(...)
local oid, iid, rid = ...
local tgtype, target, key, attrs = self:_target(...), tostring(oid)
local default = { pmin = self.so[1][2], pmax = self.so[1][3], mute = true, cancel = true }
if (target == tag.notfound) then return nil end
if (tgtype == trgtype.object) then key = key
elseif (tgtype == trgtype.instance) then key = key .. ':' .. tostring(iid)
elseif (tgtype == trgtype.resource) then key = key .. ':' .. tostring(iid) .. ':' .. tostring(rid)
end
self._repAttrs[key] = self._repAttrs[key] or default
return self._repAttrs[key]
end
function M:setAttrs(...) -- args: oid, iid, rid, attrs
local argtbl = { ... }
local oid, key = argtbl[1], tostring(argtbl[1])
local iid, rid, tgtype, target, attrs
if (#argtbl == 4) then
iid, rid, attrs = argtbl[2], argtbl[3], argtbl[4]
key = key .. ':' .. tostring(iid) .. ':' .. tostring(rid)
elseif (#argtbl == 3) then
iid, attrs = argtbl[2], argtbl[3]
key = key .. ':' .. tostring(iid)
elseif (#argtbl == 2) then
attrs = argtbl[2]
end
tgtype, target = self:_target(oid, iid, rid)
if (target == tag.notfound) then return false end
attrs.pmin = attrs.pmin or self.so[1][2]
attrs.pmax = attrs.pmax or self.so[1][3]
self._repAttrs[key] = attrs
return true
end
function M:readResrc(oid, iid, rid, callback)
return self:_rd(true, oid, iid, rid, callback)
end
function M:writeResrc(oid, iid, rid, value, callback)
local result
oid = tonumber(oid) or oid
rid = tonumber(rid) or rid
callback = callback or function(...) end
if (self:_has(oid, iid, rid)) then
local resrc = self.so[oid][iid][rid]
local rtype = type(resrc)
if (rtype == 'table') then
if (resrc._isCb) then
if (type(resrc.write) == 'function') then
pcall(resrc.write, value, function (err, val)
result = val
callback(err, val)
end)
else callback(core.ERR.unwt, nil)
end
else
self.so[oid][iid][rid] = value
result = value
callback(core.ERR.sces, value)
end
elseif (rtype == 'function' or rtype == 'thread') then
callback(core.ERR.unwt, nil)
else
self.so[oid][iid][rid] = value
result = value
callback(core.ERR.sces, value)
end
else
callback(core.ERR.nfnd, nil)
end
if (result ~= nil) then self:_chkResrc(oid, iid, rid, result) end
end
function M:execResrc(oid, iid, rid, args, callback)
callback = callback or function(...) end
oid = tonumber(oid) or oid
rid = tonumber(rid) or rid
if (self:_has(oid, iid, rid)) then
local resrc = self.so[oid][iid][rid]
if (type(resrc) ~= 'table' or type(resrc.exec) ~= 'function') then callback(core.ERR.une, { status = core.RSP.nalw })
else pcall(resrc.exec, args, callback) -- unpack by their own, resrc.exec(args, callback)
end
else
callback(core.ERR.nfnd, { status = core.RSP.nfnd })
end
end
function M:connect(url, opts)
opts = opts or {}
opts.port = opts.port or 1883
opts.secure = opts.secure or 0
if (self.mc == nil) then
self.mc = mqtt.Client(self.clientId, opts.keepalive or 120, opts.username or 'freebird', opts.password or 'skynyrd', opts.cleansession or 1)
end
self.mc:connect(url, opts.port, opts.secure, function (c)
self.mc:on('message', function (client, topic, msg) self:emit('raw', client, topic, msg) end)
end)
end
function M:close(callback)
if (self.mc ~= nil) then self.mc:close() end
if (callback ~= nil) then callback() end
end
function M:pubRegister(callback)
local data = { transId = nil, lifetime = self.lifetime, objList = {},
ip = self.ip, mac = self.mac, version = self.version }
for oid, obj in pairs(self.so) do
for iid, _ in pairs(obj) do table.insert(data.objList, { oid = oid, iid = iid }) end
end
return self:_pubReq('register', data)
end
function M:pubDeregister(callback)
return self:_pubReq('deregister', { data = nil })
end
function M:pubNotify(data, callback)
return self:_pubReq('notify', data, function (err, rsp)
if (rsp.cancel) then self:disableReport(data.oid, data.iid, data.rid) end
if (callback ~= nil) then callback(err, rsp) end
end)
end
function M:pingServer(callback)
return self:_pubReq('ping', { data = nil })
end
function M:pubUpdate(devAttrs, callback)
return self:_pubReq('update', devAttrs)
end
function M:pubResponse(rsp, callback)
return self:publish(self._pubics.response, rsp, callback)
end
function M:publish(topic, message, options, callback)
if (type(options) == 'function') then
callback = options
options = nil
end
local qos, retain, jmsg = options.qos or 0, options.retain or 0, message
if (type(message) == 'table') then message = cjson.encode(message) end
self.mc:publish(topic, self:encrypt(message), qos, retain, function (client)
self:emit('published', { topic = topic, message = jmsg, options = options })
if (callback ~= nil) then callback() end
end)
end
function M:subscribe(topic, qos, callback)
if (type(qos) == 'function') then
callback = qos
qos = nil
end
self.mc:subscribe(topic, qos or 0, callback)
end
-- ********************************************* --
-- ** Protected Methods ** --
-- ********************************************* --
function M:_pubReq(intf, data, callback)
data.transId = self:_id(intf)
if (callback ~= nil) then
local key = intf .. ':rsp:' .. tostring(data.transId)
self._tCtrl(key, _ms)
self:once(key, callback)
end
return self:publish(self._pubics[intf], data)
end
function M:_target(oid, iid, rid)
local tgtype, target
if (oid ~= nil and oid == '') then tgtype = trgtype.root
elseif (oid ~= nil) then tgtype = trgtype.object
if (iid ~= nil) then tgtype = trgtype.instance
if (rid ~= nil) then tgtype = trgtype.resource end
end
end
if (tgtype == trgtype.object) then target = self:_dumpObj(oid)
elseif (tgtype == trgtype.instance) then target = self:_dumpObj(oid, iid)
elseif (tgtype == trgtype.resource) then self:_rd(false, oid, iid, rid, function (err, val) target = val end)
end
if (target == nil) then target = tag.notfound end
return tgtype, target
end
function M:_id(intf)
local nextid = function ()
self._tid = self._tid + 1
if (self._tid > 255) then self._tid = 0 end
end
if (intf ~= nil) then
local rspid = intf .. ':rsp:' .. tostring(self._tid)
while self:listenerCount(rspid) ~= 0 do rspid = intf .. ':rsp:' .. tostring(nextid()) end
end
return self._tid
end
function M:_dumpObj(...)
local oid, iid = ...
local dump, obj = {}, self.so[oid]
if (obj == nil) then dump = nil
elseif (iid == nil) then -- dump object
for ii, inst in pairs(obj) do
dump[ii] = {}
for rid, resrc in pairs(obj[ii]) do self:readResrc(oid, ii, rid, function (err, val) dump[ii][rid] = val end) end
end
else -- dump instance
if (obj[iid] == nil) then dump = nil
else for rid, resrc in pairs(obj[iid]) do self:readResrc(oid, iid, rid, function (err, val) dump[rid] = val end) end
end
end
return dump
end
function M:_rd(chk, oid, iid, rid, callback)
local result
oid = tonumber(oid) or oid
rid = tonumber(rid) or rid
callback = callback or function(...) end
if (self:_has(oid, iid, rid)) then
local resrc = self.so[oid][iid][rid]
local rtype = type(resrc)
if (rtype == 'table' and resrc._isCb == true) then
if (type(resrc.read) == 'function') then
pcall(resrc.read, function (err, val)
result = val
callback(err, val)
end)
elseif (type(resrc.exec) == 'function') then callback(core.ERR.unrd, tag.exec)
else callback(core.ERR.unrd, core.TAG.unrd)
end
elseif (rtype == 'function' or rtype == 'thread') then
callback(core.ERR.unrd, nil)
else
result = resrc
callback(core.ERR.sces, resrc)
end
else
callback(core.ERR.nfnd, nil)
end
if (chk == true and result ~= nil) then self:_chkResrc(oid, iid, rid, result) end
end
function M:_has(oid, iid, rid)
return self.so[oid] ~= nil and self.so[oid][iid] ~= nil and self.so[oid][iid][rid] ~= nil
end
return M
|
-- this script is used to save and read all player status
players_status = {}
|
local Action = require "action"
local Reaction = Action:extend()
Reaction.reaction = true
return Reaction
|
Base_Actor_Tests = {
{
Test_name = "Actor GetID",
Test_type = "Return",
Test_func = function(tbl)
local id = tbl.actor:GetID()
return (id and id > 0 and type(id) == "number")
end,
},
{
Test_name = "Actor GetLocation",
Test_type = "Return",
Test_func = function(tbl)
local loc = tbl.actor:GetLocation()
return loc == Vector(-100, 100, 100.5)
end,
},
{
Test_name = "Actor SetLocation",
Test_type = "Return",
Test_func = function(tbl)
local newloc = Vector(100, 399, 100)
tbl.actor:SetLocation(newloc)
local loc = tbl.actor:GetLocation()
tbl.actor:SetLocation(tbl.Location)
return loc == newloc
end,
},
{
Test_name = "Actor GetRotation",
Test_type = "Return",
Test_func = function(tbl)
local rot = tbl.actor:GetRotation()
return (rot.Pitch -90 and rot.Yaw == 153 and rot.Roll == 24.5)
end,
},
{
Test_name = "Actor SetRotation",
Test_type = "Return",
Test_func = function(tbl)
local newrot = Rotator(100, -100, 125)
tbl.actor:SetRotation(newrot)
local rot = tbl.actor:GetRotation()
tbl.actor:SetRotation(tbl.Rotation)
return (rot.Pitch == newrot.Pitch and rot.Yaw == newrot.Yaw and rot.Roll == newrot.Roll)
end,
},
{
Test_name = "Actor GetScale",
Test_type = "Return",
Test_func = function(tbl)
local scale = tbl.actor:GetScale()
return scale == tbl.Scale
end,
},
{
Test_name = "Actor SetScale",
Test_type = "Return",
Test_func = function(tbl)
local newscale = Vector(2, 3, 2.5)
tbl.actor:SetScale(newscale)
local scale = tbl.actor:GetScale()
tbl.actor:SetScale(tbl.Scale)
return scale == newscale
end,
},
{
Test_name = "Actor Gravity",
Test_type = "Return",
Test_func = function(tbl)
tbl.actor:SetGravityEnabled(true)
local is_1 = tbl.actor:IsGravityEnabled()
tbl.actor:SetGravityEnabled(false)
local is_2 = tbl.actor:IsGravityEnabled()
return (is_1 and not is_2)
end,
},
{
Test_name = "Actor GetAttachedTo nil",
Test_type = "Return",
Test_func = function(tbl)
return tbl.actor:GetAttachedTo() == nil
end,
},
{
Test_name = "Actor GetAttachedEntities nil",
Test_type = "Return",
Test_func = function(tbl)
return #tbl.actor:GetAttachedEntities() == 0
end,
},
{
Test_name = "Actor Collision",
Test_type = "Return",
Test_func = function(tbl)
local col_base = tbl.actor:GetCollision()
tbl.actor:SetCollision(CollisionType.Normal)
local col0 = tbl.actor:GetCollision()
tbl.actor:SetCollision(CollisionType.StaticOnly)
local col1 = tbl.actor:GetCollision()
tbl.actor:SetCollision(CollisionType.NoCollision)
local col2 = tbl.actor:GetCollision()
tbl.actor:SetCollision(col_base)
return (col0 == CollisionType.Normal and col1 == CollisionType.StaticOnly and col2 == CollisionType.NoCollision)
end,
},
{
Test_name = "Actor GetType",
Test_type = "Return",
Test_func = function(tbl)
return tbl.a_type == tbl.actor:GetType()
end,
},
{
Test_name = "Actor SetValue/GetValue",
Test_type = "Return",
Test_func = function(tbl)
local val = tbl.actor:GetValue("tvalnb")
tbl.actor:SetValue("tvalnb", 25.5)
tbl.actor:SetValue("tvalstr", "t")
tbl.actor:SetValue("tvaltbl", {"t"})
tbl.actor:SetValue("tvalbool", true)
local valnb = tbl.actor:GetValue("tvalnb")
local valstr = tbl.actor:GetValue("tvalstr")
local valtbl = tbl.actor:GetValue("tvaltbl")
local valbool = tbl.actor:GetValue("tvalbool")
return (val == nil and valnb and valnb == 25.5 and valstr == "t" and valtbl and valtbl[1] == "t" and valbool == true)
end,
},
{
Test_name = "Actor ValueChange",
Test_type = "WaitForCallBack",
Test_func = function(tbl, callback, test_id)
_ENV[tbl.a_type].Subscribe("ValueChange", function(actor, key, value)
if actor == tbl.actor then
_ENV[tbl.a_type].Unsubscribe("ValueChange")
if (key == "tvalnbValueChange" and value and value == 25.5) then
callback(true, test_id)
else
callback(false, test_id)
end
end
end)
tbl.actor:SetValue("tvalnbValueChange", 25.5)
end,
WaitForCallBack_Failed_After_ms = 1000,
},
{
Test_name = "Actor Attach SnapToTarget Check, Detach Check",
Test_type = "Return",
Test_func = function(tbl)
tbl.actor2:AttachTo(tbl.actor, AttachmentRule.SnapToTarget)
local loc = tbl.actor2:GetLocation()
local rot = tbl.actor2:GetRotation()
local attached_to = tbl.actor2:GetAttachedTo()
local attached_entities = tbl.actor:GetAttachedEntities()
tbl.actor2:Detach()
local attached_to2 = tbl.actor2:GetAttachedTo()
local attached_entities2 = tbl.actor:GetAttachedEntities()
return (loc == tbl.Location and rot.Pitch == tbl.Rotation.Pitch and rot.Yaw == tbl.Rotation.Yaw and rot.Roll == tbl.Rotation.Roll and attached_to and attached_to == tbl.actor and attached_entities and #attached_entities == 1 and attached_entities[1] == tbl.actor2 and attached_to2 == nil and #attached_entities2 == 0)
end,
},
{
Test_name = "Actor Attach, Detach Destroy, Destroy Event",
Test_type = "WaitForCallBack",
Test_func = function(tbl, callback, test_id)
_ENV[tbl.a_type].Subscribe("Destroy", function(actor)
if actor == tbl.actor2 then
_ENV[tbl.a_type].Unsubscribe("Destroy")
if actor:IsValid() then
callback(true, test_id)
else
callback(false, test_id)
end
end
end)
tbl.actor2:AttachTo(tbl.actor, AttachmentRule.SnapToTarget, "", 1)
tbl.actor2:Detach()
end,
WaitForCallBack_Failed_After_ms = 2000,
},
{
Test_name = "Actor Lifespan, Destroy Event",
Test_type = "WaitForCallBack",
Test_func = function(tbl, callback, test_id)
_ENV[tbl.a_type].Subscribe("Destroy", function(actor)
if actor == tbl.actor3 then
_ENV[tbl.a_type].Unsubscribe("Destroy")
if actor:IsValid() then
callback(true, test_id)
else
callback(false, test_id)
end
end
end)
tbl.actor3:SetLifeSpan(1)
end,
WaitForCallBack_Failed_After_ms = 2000,
},
{
Test_name = "Actor Destroy, Destroy Event",
Test_type = "WaitForCallBack",
Test_func = function(tbl, callback, test_id)
_ENV[tbl.a_type].Subscribe("Destroy", function(actor)
if actor == tbl.actor then
_ENV[tbl.a_type].Unsubscribe("Destroy")
if actor:IsValid() then
callback(true, test_id)
else
callback(false, test_id)
end
end
end)
tbl.actor:Destroy()
end,
WaitForCallBack_Failed_After_ms = 1000,
},
}
|
-- Space Shooter Game
-- Developed by Carlos Yanez
-- Hide Status Bar
display.setStatusBar(display.HiddenStatusBar)
-- Import MovieClip Library
local movieclip = require('movieclip')
-- Import Physics
local physics = require('physics')
physics.start()
physics.setGravity(0, 0)
-- Graphics
-- Background
local bg = display.newImage('bg.png')
-- [Title View]
local title
local playBtn
local creditsBtn
local titleView
-- [Credits]
local creditsView
-- [Ship]
local ship
-- [Boss]
local boss
-- [Score]
local score
-- [Lives]
local lives
-- Load Sounds
local shot = audio.loadSound('shot.mp3')
local explo = audio.loadSound('explo.mp3')
local bossSound = audio.loadSound('boss.mp3')
-- Variables
local timerSource
local lives = display.newGroup()
local bullets = display.newGroup()
local enemies = display.newGroup()
local scoreN = 0
local bossHealth = 20
-- Functions
local Main = {}
local addTitleView = {}
local showCredits = {}
local removeCredits = {}
local removeTitleView = {}
local addShip = {}
local addScore = {}
local addLives = {}
local listeners = {}
local moveShip = {}
local shoot = {}
local addEnemy = {}
local alert = {}
local update = {}
local collisionHandler = {}
local restart = {}
-- Main Function
function Main()
addTitleView()
end
function addTitleView()
title = display.newImage('title.png')
playBtn = display.newImage('playBtn.png')
playBtn.x = display.contentCenterX
playBtn.y = display.contentCenterY + 10
playBtn:addEventListener('tap', removeTitleView)
creditsBtn = display.newImage('creditsBtn.png')
creditsBtn.x = display.contentCenterX
creditsBtn.y = display.contentCenterY + 60
creditsBtn:addEventListener('tap', showCredits)
titleView = display.newGroup(title, playBtn, creditsBtn)
end
function removeTitleView:tap(e)
transition.to(titleView, {time = 300, y = -display.contentHeight, onComplete = function() display.remove(titleView) titleView = null addShip() end})
end
function showCredits:tap(e)
creditsBtn.isVisible = false
creditsView = display.newImage('creditsView.png')
creditsView:setReferencePoint(display.TopLeftReferencePoint)
transition.from(creditsView, {time = 300, x = display.contentWidth})
creditsView:addEventListener('tap', removeCredits)
end
function removeCredits:tap(e)
creditsBtn.isVisible = true
transition.to(creditsView, {time = 300, x = display.contentWidth, onComplete = function() display.remove(creditsView) creditsView = null end})
end
function addShip()
ship = movieclip.newAnim({'shipA.png', 'shipB.png'})
ship.x = display.contentWidth * 0.5
ship.y = display.contentHeight - ship.height
ship.name = 'ship'
ship:play()
physics.addBody(ship)
addScore()
end
function addScore()
score = display.newText('Score: ', 1, 0, native.systemFontBold, 14)
score.y = display.contentHeight - score.height * 0.5
score.text = score.text .. tostring(scoreN)
score:setReferencePoint(display.TopLeftReferencePoint)
score.x = 1
addLives()
end
function addLives()
for i = 1, 3 do
live = display.newImage('live.png')
live.x = (display.contentWidth - live.width * 0.7) - (5 * i+1) - live.width * i + 20
live.y = display.contentHeight - live.height * 0.7
lives.insert(lives, live)
end
listeners('add')
end
function listeners(action)
if(action == 'add') then
bg:addEventListener('touch', moveShip)
bg:addEventListener('tap', shoot)
Runtime:addEventListener('enterFrame', update)
timerSource = timer.performWithDelay(800, addEnemy, 0)
else
bg:removeEventListener('touch', moveShip)
bg:removeEventListener('tap', shoot)
Runtime:removeEventListener('enterFrame', update)
timer.cancel(timerSource)
end
end
function moveShip:touch(e)
if(e.phase == 'began') then
lastX = e.x - ship.x
elseif(e.phase == 'moved') then
ship.x = e.x - lastX
end
end
function shoot:tap(e)
local bullet = display.newImage('bullet.png')
bullet.x = ship.x
bullet.y = ship.y - ship.height
bullet.name = 'bullet'
physics.addBody(bullet)
audio.play(shot)
bullets.insert(bullets, bullet)
end
function addEnemy(e)
local enemy = movieclip.newAnim({'enemyA.png', 'enemyA.png','enemyA.png','enemyA.png','enemyA.png','enemyA.png','enemyB.png','enemyB.png','enemyB.png','enemyB.png','enemyB.png','enemyB.png'})
enemy.x = math.floor(math.random() * (display.contentWidth - enemy.width))
enemy.y = -enemy.height
enemy.name = 'enemy'
physics.addBody(enemy)
enemy.bodyType = 'static'
enemies.insert(enemies, enemy)
enemy:play()
enemy:addEventListener('collision', collisionHandler)
end
function alert(e)
listeners('remove')
local alertView
if(e == 'win') then
alertView = display.newImage('youWon.png')
alertView.x = display.contentWidth * 0.5
alertView.y = display.contentHeight * 0.5
else
alertView = display.newImage('gameOver.png')
alertView.x = display.contentWidth * 0.5
alertView.y = display.contentHeight * 0.5
end
alertView:addEventListener('tap', restart)
end
function update(e)
-- Move Bullets
if(bullets.numChildren ~= 0) then
for i = 1, bullets.numChildren do
bullets[i].y = bullets[i].y - 10
-- Destroy Offstage Bullets
if(bullets[i].y < -bullets[i].height) then
bullets:remove(bullets[i])
display.remove(bullets[i])
bullets[i] = nil
end
end
end
-- Move Enemies
if(enemies.numChildren ~= 0) then
for i = 1, enemies.numChildren do
if(enemies[i] ~= nil) then
enemies[i].y = enemies[i].y + 3
-- Destroy Offstage Enemies
if(enemies[i].y > display.contentHeight) then
enemies:remove(enemies[i])
display.remove(enemies[i])
end
end
end
end
-- Show Boss
if(scoreN == 50 and boss == nil) then
audio.play(bossSound)
boss = movieclip.newAnim({'bossA.png','bossA.png','bossA.png','bossA.png','bossA.png', 'bossA.png','bossA.png', 'bossB.png','bossB.png','bossB.png','bossB.png','bossB.png','bossB.png','bossB.png'})
boss.x = display.contentWidth * 0.5
boss.name = 'boss'
physics.addBody(boss)
boss.bodyType = 'static'
transition.to(boss, {time = 1500, y = boss.height + (boss.height * 0.5)})
boss:play()
boss:addEventListener('collision', collisionHandler)
end
end
function collisionHandler(e)
if(e.other.name == 'bullet' and e.target.name == 'enemy') then
audio.play(explo)
display.remove(e.other)
display.remove(e.target)
scoreN = scoreN + 50
score.text = 'Score: ' .. tostring(scoreN)
score:setReferencePoint(display.TopLeftReferencePoint)
score.x = 1
elseif(e.other.name == 'bullet' and e.target.name == 'boss') then
audio.play(explo)
display.remove(e.other)
bossHealth = bossHealth - 1
scoreN = scoreN + 50
score.text = 'Score: ' .. tostring(scoreN)
score:setReferencePoint(display.TopLeftReferencePoint)
score.x = 1
if(bossHealth <= 0) then
display.remove(e.target)
alert('win')
end
elseif(e.other.name == 'ship') then
audio.play(explo)
display.remove(e.target)
-- Remove Live
display.remove(lives[lives.numChildren])
-- Check for Game Over
if(lives.numChildren < 1) then
alert('lose')
end
end
end
function restart()
listeners('remove')
display.remove(bullets)
display.remove(enemies)
display.remove(ship)
display.remove(alertView)
Main()
end
Main()
|
local M = {}
local function years_from(from, to)
local cur_year = tonumber(os.date('%Y'))
to = to and to or cur_year
return from == to and tostring(from) or ('%d-%d'):format(from, to)
end
local function http_get(url)
local res = vim.fn.systemlist { 'curl', '--location', '--silent', '--fail', url }
assert(vim.v.shell_error == 0, ('GET %s failed'):format(url))
return res
end
local function endpoint_url(...)
return table.concat({ M.config.base_url, ... }, '/')
end
local function catalog_url(kind)
return endpoint_url(kind, 'catalog.json')
end
local function gen_index(tbl)
local index = {}
for i, entry in ipairs(tbl) do
index[entry.name] = i
end
return index
end
local function get_catalog(kind)
local catalog = vim.fn.json_decode(http_get(catalog_url(kind)))
local index = gen_index(catalog.schemas)
catalog.index = index
return catalog
end
local function gen_module(decls)
local res = M.config.copyright_notice
res = res .. '-- stylua: ignore start\n\n'
res = res .. 'local M = {}\n\n'
for ident, val in pairs(decls) do
res = res .. 'M.' .. ident .. ' = ' .. val .. '\n\n'
end
res = res .. 'return M\n\n'
res = res .. '-- stylua: ignore end'
return res
end
M.config = {
base_url = 'https://www.schemastore.org/api',
out = '/dev/stdout',
copyright_notice = ([[
-- Copyright %s Maddison Hellstrom
--
-- This file contains an automatically generated version of the SchemaStore
-- JSON schema catalog which has been converted from JSON to Lua.
--
-- The SchemaStore project can be found at
--
-- https://schemastore.org
--
-- The original SchemaStore catalog carries the following copyright:
--
-- Copyright %s Mads Kristensen and Contributors
--
-- Both projects are released under the following terms:
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
]]):format(years_from(2021), years_from(2015))
}
function M.setup(config)
local c = vim.tbl_deep_extend('force', M.config, config)
if not c.out or c.out == '-' or c.out == '' then
c.out = '/dev/stdout'
end
M.config = c
return M
end
function M.run()
local catalog_module = gen_module {
json = vim.inspect(get_catalog 'json'),
}
local ok = vim.fn.writefile(vim.split(catalog_module, '\n', true), M.config.out)
assert(ok == 0, 'Write failed: ' .. vim.v.errmsg)
end
return M
|
-- converts code stored as strings into actual code which can be run
-- original use case was code which needed to be sent to another turtle but also needed to run on the 'master' turtle and i didn't want to have two copies of the code
-- source strings are functions without the function 'wrapping', see example under the code
-- set up enviroment so that we can do some load string tricks later, make sure that this is at the top of your file, bad things can happen otherwise
local HOST_ENV = _ENV or getfenv() -- this is global
local OUR_ENV = {}
setmetatable(OUR_ENV, {__index = HOST_ENV, OUR_ENV = OUR_ENV})
setfenv(1, OUR_ENV) -- make the rest of this code use this environment
local function compile(chunk) -- returns compiled chunk or nil and error message
if type(chunk) ~= "string" then
error("expected string, got ".. type(chunk), 2)
end
local function findChunkName(var)
for k,v in pairs(HOST_ENV) do
if v==var then
return k
end
end
return "Unknown chunk"
end
return load(chunk, findChunkName(chunk), "t", OUR_ENV)
end
-- example code, the compile function should be above the code
local exampleSource = [[
print("Example: "..table.concat({...}, " "))
]]
local exampleFunc = compile(exampleSource) -- exampleFunc is now like any normal function as if we had it written in this file normally, the string (exampleSource) is still available for trasmitting/writng to files/etc.
exampleFunc("this", "is", "an", "example") --> "Example: this is an example"
|
------------
-- Locals --
------------
local table_insert = table.insert
local UnitLocalizedClass = Assiduity.UnitLocalizedClass
local FRIENDLY = "FRIENDLY"
local HOSTILE = "HOSTILE"
local UNIT = "unit"
local MEASUREMENTS = {
["SMALL"] = {
["AURA_DISTANCE_TO_EDGE"] = 1,
["AURA_SIZE"] = 16,
["BAR_WIDTH"] = 89,
["CAST_BAR_OFFSET"] = -15,
["DISTANCE_TO_EDGE"] = 2,
["FRAME_HEIGHT"] = 33,
["FRAME_WIDTH"] = 123,
["HEALTH_BAR_HEIGHT"] = 22,
["MINI_AURA"] = 9,
["PLAYER_AURA_SIZE"] = 17,
["PLAYER_BAR_HEIGHT"] = 19,
["PORTRAIT_SIZE"] = 28,
["POWER_BAR_HEIGHT"] = 5,
["TARGET"] = {
["BAR_WIDTH"] = 53,
["FRAME_HEIGHT"] = 28,
["FRAME_WIDTH"] = 82,
["HEALTH_BAR_HEIGHT"] = 13,
["PORTRAIT_SIZE"] = 24,
["POWER_BAR_HEIGHT"] = 10,
},
},
["LARGE"] = {
["AURA_DISTANCE_TO_EDGE"] = 1,
["AURA_SIZE"] = 20,
["BAR_WIDTH"] = 180,
["CAST_BAR_OFFSET"] = -15,
["DISTANCE_TO_EDGE"] = 3,
["FRAME_HEIGHT"] = 47,
["FRAME_WIDTH"] = 230,
["HEALTH_BAR_HEIGHT"] = 28,
["MINI_AURA"] = 9,
["PLAYER_AURA_SIZE"] = 25,
["PLAYER_BAR_HEIGHT"] = 27,
["PORTRAIT_SIZE"] = 41,
["POWER_BAR_HEIGHT"] = 12,
["TARGET"] = {
["BAR_WIDTH"] = 53,
["FRAME_HEIGHT"] = 28,
["FRAME_WIDTH"] = 82,
["HEALTH_BAR_HEIGHT"] = 16,
["PORTRAIT_SIZE"] = 24,
["POWER_BAR_HEIGHT"] = 7,
},
}
}
local FILTERED_AURA_IDS = {
[34123] = 1, -- Druid Tree of Life passive buff
[59620] = 1, -- Berserk weapon enchant proc
[67354] = 1, -- Idol of Mutilation proc
}
local FILTERED_AURA = {
["Abomination's Might"] = 1,
["Acclimation"] = 1, -- Frost dk talent
["Aegis"] = 1, -- The Black Heart, tank trinket
["Amplify Magic"] = 1,
["Ancestral Fortitude"] = 1,
["Ancestral Fortitude"] = 1, -- Rsham talent
["Arcane Brilliance"] = 1,
["Arcane Empowerment"] = 1,
["Arcane Intellect"] = 1,
["Argent Champion"] = 1,
["Argent Dawn Commission"] = 1, -- Level 1 trinket
["Argent Valor"] = 1, -- Cannoneer trinket proc
["Aspect of the Beast"] = 1,
["Aspect of the Dragonhawk"] = 1,
["Aspect of the Hawk"] = 1,
["Aspect of the Monkey"] = 1,
["Aspect of the Wild"] = 1,
["Battle Shout"] = 1,
["Berserker Rage"] = 1,
["Black Magic"] = 1, -- Weapon enchant caster haste
["Blade Barrier"] = 1, -- DK talent
["Blessing of Forgotten Kings"] = 1,
["Blessing of Kings"] = 1,
["Blessing of Might"] = 1,
["Blessing of the Moon Goddess"] = 1, -- Idol of Lunar Fury proc
["Blessing of Sanctuary"] = 1,
["Blessing of Wisdom"] = 1,
["Blood Pact"] = 1, -- Warlock imp ability
["Bloodrage"] = 1, -- Warrior ability
["Bloodthirst"] = 1, -- Fury war talent
["Bloody Vengeance"] = 1, -- Blood DK talent, 3% extra physical damage, stacks up to 9%, 30s
["Bone Shield"] = 1,
["Champion of the Kirin Tor"] = 1,
["Chaos Bane"] = 1, -- Shadowmourne proc
["Chill of the Throne"] = 1,
["Chilling Knowledge"] = 1, -- Ashen verdict healer ring
["Clearcasting"] = 1,
["Commanding Shout"] = 1,
["Concentration Aura"] = 1,
["Cozy Fire"] = 1,
["Crusader's Glory"] = 1, -- Trinket proc
["Culling the Herd"] = 1, -- Hunter pet ability?
["Cultivated Power"] = 1, --
["Dampen Magic"] = 1,
["Demonic Pact"] = 1, -- Demo lock talent
["Demoralizing Roar"] = 1,
["Devotion Aura"] = 1,
["Dalaran Brilliance"] = 1,
["Dalaran Intellect"] = 1,
["Demon Armor"] = 1,
["Demonic Circle: Summon"] = 1,
["Demonic Knowledge"] = 1, -- Demo warlock talent
["Demoralizing Shout"] = 1,
["Desolation"] = 1, -- Unholy DK talent, 5% additional damage with all attacks, 20s
["Detect Invisibility"] = 1,
["Divine Plea"] = 1,
["Divine Sacrifice"] = 1,
["Divine Spirit"] = 1,
["Earth and Moon"] = 1,
["Earth Shield"] = 1,
["Earth Shock"] = 1,
["Ebon Champion"] = 1,
["Ebon Plague"] = 1, -- Unholy DK debuff
["Edward's Insight"] = 1, -- Signet of Edward the Odd
["Effervescence"] = 1,
["Elemental Oath"] = 1,
["Elemental Devastation"] = 1, -- Enha shaman talent?
["Elusive Power"] = 1, -- Abyssal Rune trinket, 590 sp 10s
["Energized"] = 1, -- Solace
["Enrage"] = 1,
["Enraged"] = 1,
["Enraged Defense"] = 1, -- Druid feral talent?
["Enraged Regeneration"] = 1,
["Eradication"] = 1, -- Affliction talent, 20% haste 10s
["Evasive"] = 1, -- Libram of the Eternal Tower relic buff
["Executioner"] = 1, -- Executioner weapon enchant proc
["Expose Weakness"] = 1, -- Survival hunt talent
["Fade"] = 1, -- Priest ability, reduce threat
["Fel Armor"] = 1,
["Fel Intelligence"] = 1, -- Warlock felhunter ability
["Ferocious Inspiration"] = 1, -- BM hunt talent
["Fire Resistance"] = 1,
["Fire Resistance Aura"] = 1,
["Fire Shield"] = 1, -- Imp ability
["Fire Ward"] = 1,
["Flametongue Totem"] = 1,
["Flask of Endless Rage"] = 1,
["Flask of Stoneblood"] = 1,
["Flask of the Frost Wyrm"] = 1,
["Flask of the North"] = 1,
["Flurry"] = 1, -- Fury war talent, 25% attack speed on next 3 attacks
["Focus Magic"] = 1,
["Focused Will"] = 1, -- Disc priest talent
["Formidable"] = 1, -- Libram of Three Truths proc
["Fortitude"] = 1,
["Frenzied Regeneration"] = 1,
["Frost Resistance"] = 1,
["Frost Resistance Aura"] = 1,
["Frost Ward"] = 1,
["Frostforged Champion"] = 1, -- Ashen verdict melee rings (ap & str)
["Frostforged Sage"] = 1, -- Ashen verdict hostile caster ring
["Furious"] = 1, -- Shaman item idol slot
["Furious Gladiator's Libram of Fortitude"] = 1,
["Furious Howl"] = 1, -- Hunter pet, wolf ability
["Hand of Reckoning"] = 1,
["Hand of Salvation"] = 1,
["Heart of the Crusader"] = 1, -- Ret pala talent
["Heroic Presence"] = 1,
["Holy Shield"] = 1,
["Holy Strength"] = 1, -- Libram of Valiance
["Honorable Defender"] = 1,
["Horn of Winter"] = 1,
["Hunter's Mark"] = 1,
["Hyperspeed Acceleration"] = 1, -- Engineering hand enchant
["Gift of the Wild"] = 1,
["Glyph of Blocking"] = 1, -- Warrior glyph
["Gylph of Revenge"] = 1, -- Warrior glyph
["Grace"] = 1, -- Disc priest talent
["Greater Blessing of Kings"] = 1,
["Greater Blessing of Might"] = 1,
["Greater Blessing of Sanctuary"] = 1,
["Greater Blessing of Wisdom"] = 1,
["Hoarse"] = 1, -- Some random debuff
["Ice Armor"] = 1,
["Icy Talons"] = 1, -- DK talent, 20% attack speed
["Improved Icy Talons"] = 1, -- DK talent, 20% attack speed to other party members, 5% extra for DK
["Improved Scorch"] = 1, -- Fire mage talent
["Improved Spirit Tap"] = 1, -- Priest talent
["Improved Steady Shot"] = 1, -- MM hunt talent, 15% extra damage on next Aimed/Arcane/Chimera shot
["Indomitable"] = 1, -- Sigil of the Hanged Man (dk relic)
["Infected Wounds"] = 1,
["Inner Fire"] = 1,
["Inner Focus"] = 1,
["Inspiration"] = 1, -- Priest talent
["Judgement of Light"] = 1,
["Judgement of the Just"] = 1, -- Prot pala talent
["Judgement of Wisdom"] = 1,
["Judgements of the Pure"] = 1, -- Holy pala talent
["Kill Command"] = 1, -- Hunter ability
["Killing Machine"] = 1, -- DK talent
["Kindred Spirits"] = 1, -- BM hunt talent, 10% movement speed, pet damage 20% increase
["Leader of the Pack"] = 1,
["Lesser Flask of Toughness"] = 1,
["Life Tap"] = 1, -- Warlock glyph,
["Lightning Shield"] = 1,
["Lightning Speed"] = 1, -- Mongoose weapon enchant prot
["Lightweave"] = 1, -- Tailoring back enchant proc
["Living Seed"] = 1,
["Luck of the Draw"] = 1, -- RDF buff
["Mage Armor"] = 1,
["Mana Spring"] = 1,
["Mark of the Wild"] = 1,
["Master Demonologist"] = 1, -- Demo lock talent
["Master of Subtlety"] = 1, -- Sub rogue talent
["Master Shapeshifter"] = 1,
["Misery"] = 1, -- Spriest talent
["Molten Armor"] = 1,
["Molten Core"] = 1, -- Demo lock talent
["Moonkin Aura"] = 1,
["Nature Resistance"] = 1,
["Omen of Doom"] = 1, -- Druid T10 4 piece set bonus proc
["Power Word: Fortitude"] = 1,
["Prayer of Fortitude"] = 1,
["Prayer of Shadow Protection"] = 1,
["Prayer of Spirit"] = 1,
["Precious's Ribbon"] = 1,
["Precognition"] = 1, -- Sigil of the Bone Gryphon (dk relic)
["Pyroclasm"] = 1, -- Warlock
["Quad Core"] = 1, -- Mage tier 4 piece set bonus when casting Mirror Image
["Rampage"] = 1,
["Rapid Killing"] = 1, -- Hunt talent
["Rapid Recuperation"] = 1, -- MM hunt talent
["Rage of the Fallen"] = 1, -- Herkuml War Token trinket proc
["Reckoning"] = 1, -- Prot pala talent, next 4 swings generate extra attack
["Redoubt"] = 1, -- Prot pala talent
["Rejuvenating"] = 1, -- Idol of Flaring Growth
["Renewed Hope"] = 1,
["Replenishment"] = 1, -- 1% max mana every 5s
["Retribution Aura"] = 1,
["Revitalized"] = 1, -- Purified Lunar Dust proc
["Roar of Sacrifice"] = 1, -- BM pet ability
["Runic Return"] = 1, -- DK talent???
["Savage Combat"] = 1, -- Combat rogue talent
["Savage Defense"] = 1, -- Feral druid talent (Savage Fury)
["Scorpid Sting"] = 1,
["Seal of Light"] = 1,
["Seal of the Pantheon"] = 1, -- Tank trinket, 3k armor, 20s
["Sentry Totem"] = 1,
["Shadow Embrace"] = 1, -- Aff lock talent
["Shadow Mastery"] = 1, -- Aff lock talent
["Shadow Protection"] = 1,
["Shadow Resistance Aura"] = 1,
["Shadow Ward"] = 1,
["Shadow Weaving"] = 1, -- Spriest talent
["Shadowy Insight"] = 1, -- Glyph of Shadow (priest)
["Shield Block"] = 1,
["Shield of Righteousness"] = 1,
["Slam"] = 1, -- Fury war talent (Bloodsurge)
["Sniper Training"] = 1, -- Survival hunt talent
["Snow of Faith"] = 1,
["Soothing"] = 1, -- Idol of the Black Widow
["Soul Link"] = 1, -- Warlock pet ability
["Spirit Tap"] = 1, -- Priest talent
["Spiritual Trance"] = 1, -- Totem of Calming Tides relic buff
["Stamina"] = 1, -- scroll buff
["Stoneskin"] = 1,
["Strength of Earth"] = 1,
["Strength of Wrynn"] = 1,
["Sword and Board"] = 1, -- Prot warrior talent, refresh Shield Slam ability
["Sunder Armor"] = 1,
["Surge of Power"] = 1, -- 1/2 of the DFO buffs
["Swordguard Embroidery"] = 1, -- Tailoring back enchant?
["Thorns"] = 1,
["Thunder Clap"] = 1,
["Tiger's Fury"] = 1,
["Totem of Wrath"] = 1,
["Trauma"] = 1, -- Arms war talent
["Trueshot Aura"] = 1,
["Unending Breath"] = 1, -- Warlock ability
["Unholy Force"] = 1, -- Sigil of Virulence
["Unleashed Rage"] = 1, -- Enha shammy passive talent
["Vampiric Embrace"] = 1, -- Spriest talent
["Vengeance"] = 1,
["Vicious"] = 1, -- Idol of the Lunar Eclipse
["Vigilance"] = 1,
["Vindication"] = 1, -- Ret pala talent
["Volcanic Fury"] = 1, -- Totem of Quaking Earth
["Water Breathing"] = 1, -- Shaman ability
["Water Shield"] = 1,
["Well Fed"] = 1,
["Wild Growth"] = 1,
["Windfury Totem"] = 1,
["Winter's Chill"] = 1, -- Frost mage talent
["Wrath of Air Totem"] = 1,
["Wyrmrest Champion"] = 1
}
local CLASS_TO_HEALTHCOLORS = {
["DEATHKNIGHT"] = {0.77, 0.12, 0.23},
["DRUID"] = {1, 0.49, 0.04},
["HUNTER"] = {0.67, 0.83, 0.45},
["MAGE"] = {0.41, 0.8, 0.94},
["PALADIN"] = {0.96, 0.55, 0.73},
["PRIEST"] = {1, 1, 1 },
["ROGUE"] = {1, 0.96, 0.41},
["SHAMAN"] = {0, 0.44, 0.87},
["WARLOCK"] = {0.58, 0.51, 0.79},
["WARRIOR"] = {0.78, 0.61, 0.43}
}
local POWERTYPE_TO_COLORS = {
["MANA"] = {0, 0, 0.85},
["RAGE"] = {0.85, 0, 0 },
["FOCUS"] = {1, 1, 1 },
["ENERGY"] = {0.9, 0.9, 0 },
["COMBO_POINTS"] = {1, 1, 1 },
["RUNES"] = {1, 1, 1 },
["RUNIC_POWER"] = {0, 0.6, 1 },
["SOUL_SHARDS"] = {1, 1, 1 },
["ECLIPSE"] = {1, 1, 1 },
["HOLY_POWER"] = {1, 1, 1 },
["AMMOSLOT"] = {1, 1, 1 },
["FUEL"] = {1, 1, 1 }
}
local REACTION = {
[FRIENDLY] = {0, 1, 0, 0.3},
[HOSTILE] = {1, 0, 0, 0.3}
}
local OPPOSITE_POINT = {
["LEFT"] = "RIGHT",
["RIGHT"] = "LEFT",
["TOP"] = "BOTTOM",
["BOTTOM"] = "TOP"
}
local DEBUFF_TYPE_TO_TEXTURE = {
["Curse"] = {1, 0, 1},
["Disease"] = {1, 1, 0},
["Magic"] = {0, 0, 1},
["Poison"] = {0, 1, 0}
}
local CLASS_TO_ICON = {
["Army of the Dead Ghoul"] = "Interface\\Icons\\Spell_DeathKnight_ArmyOfTheDead",
["Ebon Gargoyle"] = "Interface\\Icons\\Ability_Hunter_Pet_Bat",
["Risen Ghoul"] = "Interface\\Icons\\Spell_Shadow_AnimateDead",
["Rune Weapon"] = "Interface\\Icons\\INV_Sword_07",
["Shadowfiend"] = "Interface\\Icons\\Spell_Shadow_Shadowfiend",
["Spirit Wolf"] = "Interface\\Icons\\Spell_Shaman_FeralSpirit",
["Treant"] = "Interface\\Icons\\Ability_Druid_ForceofNature",
["Water Elemental"] = "Interface\\Icons\\Spell_Frost_SummonWaterElemental_2"
}
local FAMILY_TO_ICON = {
["Felguard"] = "Interface\\Icons\\Spell_Shadow_SummonFelGuard",
["Felhunter"] = "Interface\\Icons\\Spell_Shadow_SummonFelHunter",
["Ghoul"] = "Interface\\Icons\\Spell_Shadow_AnimateDead",
["Imp"] = "Interface\\Icons\\Spell_Shadow_SummonImp",
["Succubus"] = "Interface\\Icons\\Spell_Shadow_SummonSuccubus",
["Voidwalker"] = "Interface\\Icons\\Spell_Shadow_SummonVoidWalker"
}
local COLORS = {
["BLACK"] = { 0, 0, 0},
["BLUE"] = { 0, 0, 200},
["GREEN"] = { 0, 200, 0},
["PURPLE"] = { 200, 0, 255},
["RED"] = { 200, 0, 0},
["WHITE"] = { 255, 255, 255},
}
local TARGET_TO_SETUP = {
--- unit = { txt, bgColor, textColor },
["arena1"] = { "1", COLORS.RED, COLORS.BLACK },
["arena2"] = { "2", COLORS.RED, COLORS.BLACK },
["arena3"] = { "3", COLORS.RED, COLORS.BLACK },
["arena4"] = { "4", COLORS.RED, COLORS.BLACK },
["arena5"] = { "5", COLORS.RED, COLORS.BLACK },
["arenapet1"] = { "1", COLORS.PURPLE, COLORS.WHITE },
["arenapet2"] = { "2", COLORS.PURPLE, COLORS.WHITE },
["arenapet3"] = { "3", COLORS.PURPLE, COLORS.WHITE },
["arenapet4"] = { "4", COLORS.PURPLE, COLORS.WHITE },
["arenapet5"] = { "5", COLORS.PURPLE, COLORS.WHITE },
["party1"] = { "1", COLORS.GREEN, COLORS.BLACK },
["party2"] = { "2", COLORS.GREEN, COLORS.BLACK },
["party3"] = { "3", COLORS.GREEN, COLORS.BLACK },
["party4"] = { "4", COLORS.GREEN, COLORS.BLACK },
["partypet1"] = { "1", COLORS.BLUE, COLORS.WHITE },
["partypet2"] = { "2", COLORS.BLUE, COLORS.WHITE },
["partypet3"] = { "3", COLORS.BLUE, COLORS.WHITE },
["partypet4"] = { "4", COLORS.BLUE, COLORS.WHITE },
["player"] = { "P", COLORS.WHITE, COLORS.BLACK }
}
local UNIT_TO_SETUP = {
["target"] = { "G", COLORS.WHITE, COLORS.BLACK },
["focus"] = { "F", COLORS.WHITE, COLORS.BLACK }
}
local VALID_UNITS = {
"arena1",
"arena2",
"arena3",
"arena4",
"arena5",
"arenapet1",
"arenapet2",
"arenapet3",
"arenapet4",
"arenapet5",
"party1",
"party2",
"party3",
"party4",
"partypet1",
"partypet2",
"partypet3",
"partypet4",
"player"
}
-------------
-- Imports --
-------------
local UnitLocalizedClass = AssiduityGetUnitLocalizedClass
---------------
-- Functions --
---------------
local getReaction = function(self, optionalUnit)
local unit
if optionalUnit then
unit = optionalUnit
else
unit = self:GetAttribute(UNIT)
end
if UnitIsPVPSanctuary(unit) == 1 or UnitIsFriend("player", unit) then
return FRIENDLY
end
return HOSTILE
end
local position = function(anchored, point, origin)
local anchoredPoint = OPPOSITE_POINT[point]
anchored:SetPoint(anchoredPoint,
origin,
point,
1,
0)
end
local handleAuraFrameCreation = function(parent, size)
local result = CreateFrame("Button", nil, parent)
result:SetSize(size, size)
local background = result:CreateTexture(nil, "BACKGROUND")
background:SetSize(size, size)
background:SetAllPoints()
result.background = background
local iconTexture = result:CreateTexture()
iconTexture:SetSize(size - 2, size - 2)
iconTexture:SetPoint("CENTER")
iconTexture:SetAlpha(0.9)
result.icon = iconTexture
local cooldown = CreateFrame("Cooldown", nil, result, "CooldownFrameTemplate")
cooldown:SetPoint("CENTER")
cooldown:SetReverse(true)
result.cooldown = cooldown
local count = result:CreateFontString(nil, nil, "AssiduityAuraCountFontSmall")
count:SetPoint("BOTTOMRIGHT", result)
result.count = count
return result
end
local handleHealth = function(self)
local unit = self:GetAttribute(UNIT)
local class = UnitLocalizedClass(unit)
local colors = CLASS_TO_HEALTHCOLORS[class]
if colors then
local health = UnitHealth(unit)
local maxHealth = UnitHealthMax(unit)
local percentage
local value
if maxHealth > 3000 then
value = tostring(math.floor(maxHealth / 1000) .. "k")
else
value = maxHealth
end
if maxHealth > 0 then
percentage = tostring(math.floor((health / maxHealth) * 100) .. "%")
else
percentage = ""
end
self.healthBar:SetStatusBarColor(unpack(colors)) -- bug?
self.healthBar:SetMinMaxValues(0, maxHealth)
self.healthBar:SetValue(health)
if self.healthValueFontString then
self.healthValueFontString:SetText(tostring(value))
self.healthPercentageFontString:SetText(percentage)
end
end
end
local handlePower = function(self)
local unit = self:GetAttribute(UNIT)
local _, powerType = UnitPowerType(unit)
if powerType then
local colors = POWERTYPE_TO_COLORS[powerType]
if colors then
self.powerBar:SetStatusBarColor(unpack(colors))
end
end
local power = UnitMana(unit)
if power > 3000 then
value = tostring(math.floor(power / 1000) .. "k")
else
value = tostring(power)
end
if self.powerValueFontString then
self.powerValueFontString:SetText(value)
end
self.powerBar:SetMinMaxValues(0, UnitManaMax(unit))
self.powerBar:SetValue(power)
end
local createAuraFrames = function(self, parent, size)
local aura1 = handleAuraFrameCreation(self, size)
local aura2 = handleAuraFrameCreation(self, size)
local aura3 = handleAuraFrameCreation(self, size)
local aura4 = handleAuraFrameCreation(self, size)
local aura5 = handleAuraFrameCreation(self, size)
local aura6 = handleAuraFrameCreation(self, size)
local aura7 = handleAuraFrameCreation(self, size)
local aura8 = handleAuraFrameCreation(self, size)
local aura9 = handleAuraFrameCreation(self, size)
aura1:SetPoint("TOPLEFT",
parent,
"TOPLEFT",
self.MEASUREMENTS.AURA_DISTANCE_TO_EDGE,
-self.MEASUREMENTS.AURA_DISTANCE_TO_EDGE)
position(aura2, "RIGHT", aura1)
position(aura3, "RIGHT", aura2)
position(aura4, "RIGHT", aura3)
position(aura5, "RIGHT", aura4)
position(aura6, "RIGHT", aura5)
position(aura7, "RIGHT", aura6)
position(aura8, "RIGHT", aura7)
position(aura9, "RIGHT", aura8)
parent.frames = {aura1, aura2, aura3, aura4, aura5, aura6, aura7, aura8, aura9}
end
--[[
@auraFunction: can be either UnitBuff or UnitDebuff
@playerInclusion:
"INCLUDED" -- all auras including those cast by "player"
"EXCLUDED" -- all auras except those cast by "player"
"EXCLUSIVE" -- only auras that were cast by "player"
]]
local getAuras = function(self, auraFunction, playerInclusion)
local result = {}
local unit = self:GetAttribute(UNIT)
local index = 1
local auraName, _, icon, count, dispelType, duration, expiration, source, _, _, auraID = auraFunction(unit, index)
local changeDetected = false
while auraName do
local isBuff
if auraFunction == UnitBuff then
isBuff = true
else
isBuff = false
end
local aura = {["name"] = auraName,
["index"] = index,
["isBuff"] = isBuff,
["icon"] = icon,
["count"] = count,
["dispelType"] = dispelType,
["duration"] = duration,
["expiration"] = expiration}
if not FILTERED_AURA[auraName] and not FILTERED_AURA_IDS[auraID] then
if source == "player" then
if playerInclusion ~= "EXCLUDED" then
table_insert(result, aura)
end
else
if playerInclusion ~= "EXCLUSIVE" then
table_insert(result, aura)
end
end
end
index = index + 1
auraName, _, icon, count, dispelType, duration, expiration, source, _, _, auraID = auraFunction(unit, index)
end
return result
end
local handleAura = function(frame, aura)
frame:SetAlpha(1)
frame.icon:SetTexture(aura.icon)
local dispelTexture = DEBUFF_TYPE_TO_TEXTURE[aura.dispelType]
if dispelTexture then
frame.background:Show()
frame.background:SetTexture(unpack(dispelTexture))
else
frame.background:Hide() -- SetTexture(1, 0, 0)
end
if aura.duration and aura.duration > 0 then
frame.cooldown:Show()
frame.cooldown:SetCooldown(aura.expiration - aura.duration, aura.duration)
else
frame.cooldown:Hide()
end
if aura.count and aura.count > 1 then
frame.count:Show()
frame.count:SetText(tostring(aura.count))
else
frame.count:Hide()
end
frame:SetScript("OnEnter", function(self)
local unit = self:GetParent():GetAttribute(UNIT)
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT", 15, -25)
if aura.isBuff then
GameTooltip:SetUnitBuff(unit, aura.index)
else
GameTooltip:SetUnitDebuff(unit, aura.index)
end
end)
frame:SetScript("OnLeave", function()
GameTooltip:Hide()
end)
frame:SetScript("OnUpdate", function(self)
local unit = self:GetParent():GetAttribute(UNIT)
if GameTooltip:IsOwned(self) then
if aura.isBuff then
GameTooltip:SetUnitBuff(unit, aura.index)
else
GameTooltip:SetUnitDebuff(unit, aura.index)
end
end
end)
end
--local handleTarget = function(self)
--
-- local unit = self:GetAttribute(UNIT)
-- local targetUnit = unit .. "target"
--
-- for _, validUnit in ipairs(VALID_UNITS) do
--
-- end
--end
local handleHostility = function(self)
self.background:SetTexture(unpack(REACTION[getReaction(self)]))
end
local populateFramesWithAuras = function(row, auras)
for index, frame in ipairs(row.frames) do
local aura = auras[index]
if aura then
handleAura(frame, aura)
frame:Show()
else
frame:Hide()
end
end
end
local updateAura = function(self)
local firstAnchor = self.background
local secondAnchor = self.background
local firstRowAuras = {}
local secondRowAuras = {}
local thirdRowAuras = {}
if getReaction(self) == FRIENDLY then
local unit = self:GetAttribute(UNIT)
if UnitBuff(unit, "Mark of the Wild") or
UnitBuff(unit, "Gift of the Wild")
then
self.offTheWildTexture:Show()
else
self.offTheWildTexture:Hide()
end
if UnitBuff(unit, "Thorns") then
self.thornsTexture:Show()
else
self.thornsTexture:Hide()
end
firstRowAuras = getAuras(self, UnitBuff, "EXCLUSIVE")
secondRowAuras = getAuras(self, UnitBuff, "EXCLUDED")
thirdRowAuras = getAuras(self, UnitDebuff, "INCLUDED")
else
self.offTheWildTexture:Hide()
self.thornsTexture:Hide()
firstRowAuras = getAuras(self, UnitDebuff, "EXCLUSIVE")
secondRowAuras = getAuras(self, UnitDebuff, "EXCLUDED")
thirdRowAuras = getAuras(self, UnitBuff, "INCLUDED")
end
populateFramesWithAuras(self.playerAuras, firstRowAuras)
populateFramesWithAuras(self.nonPlayerAuras, secondRowAuras)
populateFramesWithAuras(self.auras, thirdRowAuras)
if #firstRowAuras ~= 0 then
firstAnchor = self.playerAuras
if #secondRowAuras ~= 0 then
secondAnchor = self.nonPlayerAuras
else
secondAnchor = self.playerAuras
end
else
if #secondRowAuras ~= 0 then
secondAnchor = self.nonPlayerAuras
end
end
self.nonPlayerAuras:SetPoint("TOP",
firstAnchor,
"BOTTOM",
0,
-self.MEASUREMENTS.DISTANCE_TO_EDGE)
self.auras:SetPoint("TOP",
secondAnchor,
"BOTTOM",
0,
-self.MEASUREMENTS.DISTANCE_TO_EDGE)
end
local setIcon = function(self, icon, coord)
self.targetFontString:Hide()
self.targetPortrait:SetTexture(icon)
if coord then
self.targetPortrait:SetTexCoord(unpack(coord))
else
self.targetPortrait:SetTexCoord(0, 1, 0, 1)
end
end
local setUnit = function(self, text, bgColorTable, fontColorTable )
self.targetPortrait:SetTexture(unpack(bgColorTable))
self.targetPortrait:SetTexCoord(0, 1, 0, 1)
self.targetPortraitBackground:Show()
self.targetFontString:SetTextColor(unpack(fontColorTable))
self.targetFontString:SetText(text)
self.targetFontString:Show()
end
local updateTarget = function(self)
if self.hideTarget then
return
end
local unit = self:GetAttribute(UNIT)
local unitTarget = unit .. "target"
local class = UnitLocalizedClass(unit)
if UnitIsUnit(unit, unitTarget) then
setUnit(self, "S", COLORS.BLACK, COLORS.WHITE)
end
if (UnitIsUnit(unit, "player") and UnitIsUnit(unitTarget, "player")) or
not UnitExists(unitTarget)
then
self.target:Hide()
self.target.healthBar:Hide()
self.target.powerBar:Hide()
self.target.unitNameFontString:Hide()
self.targetBackground:Hide()
self.targetPortrait:Hide()
self.targetPortraitBackground:Hide()
self.targetFontString:Hide()
return
end
self.target:Show()
self.targetPortrait:Show()
self.targetPortraitBackground:Show()
self.targetFontString:Show()
local detectedFamiliarUnit
--- Handle displaying unit artwork for valid units
for index, validUnit in ipairs(VALID_UNITS) do
if UnitIsUnit(unitTarget, validUnit) then
detectedFamiliarUnit = validUnit
break
end
end
if detectedFamiliarUnit then
self.targetBackground:Hide()
self.target.healthBar:Hide()
self.target.powerBar:Hide()
self.target.unitNameFontString:Hide()
else
self.targetBackground:Show()
self.target.healthBar:Show()
self.target.powerBar:Show()
self.target.unitNameFontString:Show()
detectedFamiliarUnit = unitTarget
end
local reaction = REACTION[getReaction(self, unitTarget)]
self.targetBackground:SetTexture(unpack(reaction))
self.target.unitNameFontString:SetText(UnitName(unitTarget))
if TARGET_TO_SETUP[detectedFamiliarUnit] then
setUnit(self, unpack(TARGET_TO_SETUP[detectedFamiliarUnit]))
--if UnitIsPlayer(detectedUnit) then
--self:setIcon( "Interface\\GLUES\\CHARACTERCREATE\\UI-CHARACTERCREATE-CLASSES", CLASS_ICON_TCOORDS[class] )
elseif FAMILY_TO_ICON[UnitCreatureFamily(detectedFamiliarUnit)] then
setIcon(self, FAMILY_TO_ICON[UnitCreatureFamily(detectedFamiliarUnit)])
elseif CLASS_TO_ICON[class] then
setIcon(self, CLASS_TO_ICON[class])
elseif UnitHealthMax(unitTarget) == 4400 then
setIcon(self, "Interface\\Icons\\Spell_Magic_LesserInvisibilty")
else
SetPortraitTexture(self.targetPortrait, detectedFamiliarUnit)
self.targetPortrait:SetTexCoord(0, 1, 0, 1)
self.targetFontString:Hide()
end
end
--[[
@func: can either be RegisterEvent or UnregisterEvent
]]
local observeEvents = function(self, func)
func(self, "UNIT_AURA")
--func(self, "UNIT_ENERGY")
func(self, "UNIT_FACTION")
--func(self, "UNIT_HEALTH")
--func(self, "UNIT_MANA")
--func(self, "UNIT_RAGE")
--func(self, "UNIT_RUNIC_POWER")
func(self, "UNIT_TARGET")
end
local handleUnitChange = function(self)
local unit = self:GetAttribute(UNIT)
if UnitExists(unit) then
self:Show()
self.nameFontString:SetText(UnitName(unit))
handleHostility(self)
handleHealth(self)
handlePower(self)
updateAura(self)
updateTarget(self)
observeEvents(self, self.RegisterEvent)
self:SetScript("OnUpdate", function(self)
handleHealth(self)
handlePower(self)
end)
else
observeEvents(self, self.UnregisterEvent)
self:Hide()
self:SetScript("OnUpdate", nil)
end
end
local setupTarget = function(self)
local MEASUREMENTS = self.MEASUREMENTS.TARGET
local target = CreateFrame("Button", self:GetName() .. "Target", self, "SecureUnitButtonTemplate")
target:SetSize(MEASUREMENTS.FRAME_WIDTH, MEASUREMENTS.FRAME_HEIGHT)
target:SetPoint("LEFT",
self,
"RIGHT",
10,
5)
target:SetAttribute(UNIT, self:GetAttribute(UNIT) .. "target")
target:SetAttribute("*type1", "target")
target:EnableKeyboard(true)
target:RegisterForClicks("AnyUp")
target:RegisterForClicks("AnyDown")
self.target = target
local targetBackground = target:CreateTexture(nil, "BACKGROUND")
targetBackground:SetTexture(0, 0, 0, 0.4)
targetBackground:SetAllPoints()
self.targetBackground = targetBackground
local targetPortraitBackground = target:CreateTexture(nil)
targetPortraitBackground:SetSize(MEASUREMENTS.PORTRAIT_SIZE, MEASUREMENTS.PORTRAIT_SIZE)
targetPortraitBackground:SetTexture(0, 0, 0)
targetPortraitBackground:SetPoint("LEFT", target, "LEFT", 1, 0)
self.targetPortraitBackground = targetPortraitBackground
local targetPortrait = target:CreateTexture(nil)
targetPortrait:SetSize(MEASUREMENTS.PORTRAIT_SIZE, MEASUREMENTS.PORTRAIT_SIZE)
targetPortrait:SetPoint("LEFT", target, "LEFT", 1, 0)
self.targetPortrait = targetPortrait
local targetFontString = target:CreateFontString(nil, "DEFAULT", "AssiduityIconTextSmall")
targetFontString:SetPoint("CENTER", targetPortrait)
self.targetFontString = targetFontString
local healthBar = CreateFrame("StatusBar", nil, target)
healthBar:SetStatusBarTexture("Interface\\Buttons\\WHITE8X8.blp")
healthBar:SetOrientation("HORIZONTAL")
healthBar:SetSize(MEASUREMENTS.BAR_WIDTH, MEASUREMENTS.HEALTH_BAR_HEIGHT)
healthBar:SetPoint("TOPRIGHT",
target,
"TOPRIGHT",
-self.MEASUREMENTS.DISTANCE_TO_EDGE,
-self.MEASUREMENTS.DISTANCE_TO_EDGE)
target.healthBar = healthBar
local healthBarBackground = healthBar:CreateTexture(nil, "BACKGROUND")
healthBarBackground:SetTexture(0, 0, 0, 1)
healthBarBackground:SetAllPoints()
local nameFontString = healthBar:CreateFontString(nil, nil, "AssiduityAuraCountFontSmall")
nameFontString:SetPoint("CENTER", healthBar)
target.nameFontString = nameFontString
local powerBar = CreateFrame("StatusBar", nil, target)
powerBar:SetStatusBarTexture("Interface\\Buttons\\WHITE8X8.blp")
powerBar:SetStatusBarColor(0, 1, 1)
powerBar:SetOrientation("HORIZONTAL")
powerBar:SetSize(MEASUREMENTS.BAR_WIDTH,
MEASUREMENTS.POWER_BAR_HEIGHT)
powerBar:SetPoint("TOPRIGHT",
healthBar,
"BOTTOMRIGHT",
0,
-1)
target.powerBar = powerBar
local powerBarBackground = powerBar:CreateTexture(nil, "BACKGROUND")
powerBarBackground:SetTexture(0, 0, 0, 1)
powerBarBackground:SetAllPoints()
local unitNameFontString = target:CreateFontString(nil, nil, "AssiduityAuraCountFontSmall")
unitNameFontString:SetPoint("BOTTOMLEFT", target, "TOPLEFT", 0, 3)
target.unitNameFontString = unitNameFontString
target:SetScript("OnUpdate", function(self)
handleHealth(self)
handlePower(self)
end)
end
------------
-- Events --
------------
local PLAYER_ENTERING_WORLD = function(self)
handleUnitChange(self)
end
local UNIT_AURA = function(self, unit)
if unit == self:GetAttribute(UNIT) then
updateAura(self)
end
end
local UNIT_FACTION = function(self, unit)
if unit == self:GetAttribute(unit) then
handleHostility(self)
end
end
local UNIT_HEALTH = function(self, unit)
if unit == self:GetAttribute(UNIT) then
handleHealth(self)
end
end
local UNIT_POWER = function(self, unit)
if unit == self:GetAttribute(UNIT) then
handlePower(self)
end
end
local UNIT_TARGET = function(self, unit)
if unit == self:GetAttribute(UNIT) then
updateTarget(self)
end
end
--[[
Aside from the properties that come by default from 'Frame' types,
the following frame properties either exist or are nil:
orientation:
-----------
Possible values: LEFT_TO_RIGHT, RIGHT_TO_LEFT
Description: Indicates the direction in which the layout will flow.
LEFT_TO_RIGHT means the portrait is on the left side and the
hp and mana bar on the right side.
sizing:
------
Possible values: SMALL, LARGE
Description: Large size is used for more important frames such as player,
target & focus, while smaller is used for things like party
members and arena opponents.
changeEvent:
-----------
Possible values: PLAYER_TARGET_CHANGED, PLAYER_FOCUS_CHANGED
Description: Except for player frame, all other frames (and units) can exist
or not exist. This change event reflects whether the existance
state has changed.
]]
AssiduityRegisterFrame = function(self)
local MEASUREMENTS = MEASUREMENTS[self.sizing]
self.MEASUREMENTS = MEASUREMENTS
local unit = self:GetAttribute(UNIT)
-- Layout
self:SetSize(MEASUREMENTS.FRAME_WIDTH, MEASUREMENTS.FRAME_HEIGHT)
-- Interaction
self:EnableKeyboard(true)
self:RegisterForClicks("AnyUp")
self:RegisterForClicks("AnyDown")
self:SetAttribute("type1", "target")
--
--self:SetAttribute("*helpbutton1", "heal1")
--self:SetAttribute("*helpbutton2", "heal2")
--
--self:SetAttribute("spell-heal1", "Rejuvenation")
--self:SetAttribute("ctrl-spell-heal1", "Regrowth")
--self:SetAttribute("shift-spell-heal1", "Wild Growth")
--self:SetAttribute("alt-spell-heal1", "Rejuvenation")
--
--self:SetAttribute("spell-heal2", "Lifebloom")
--self:SetAttribute("ctrl-spell-heal2", "Nourish")
--self:SetAttribute("shift-spell-heal2", "Remove Curse")
--self:SetAttribute("alt-spell-heal2", "Abolish Poison")
-- Textures
local background = self:CreateTexture(nil, "BACKGROUND")
background:SetTexture(0, 0, 0, 0.4)
background:SetAllPoints()
self.background = background
local portrait = CreateFrame("Frame", nil, self)
portrait:SetSize(MEASUREMENTS.PORTRAIT_SIZE, MEASUREMENTS.PORTRAIT_SIZE)
if self.orientation == "LEFT_TO_RIGHT" then
portrait:SetPoint("LEFT",
self,
"LEFT",
MEASUREMENTS.DISTANCE_TO_EDGE,
0)
else
portrait:SetPoint("RIGHT",
self,
"RIGHT",
-MEASUREMENTS.DISTANCE_TO_EDGE,
0)
end
local setup = UNIT_TO_SETUP[unit]
if setup == nil then
setup = TARGET_TO_SETUP[unit]
end
if setup then
portrait:Show()
local portraitBackground = portrait:CreateTexture(nil, "BACKGROUND")
portraitBackground:SetTexture(unpack(setup[2]))
portraitBackground:SetAllPoints()
local portraitFontString = portrait:CreateFontString(nil, nil, "AssiduityIconText")
portraitFontString:SetPoint("CENTER", portrait)
portraitFontString:SetTextColor(unpack(setup[3]))
portraitFontString:SetText(setup[1])
else
portrait:Hide()
end
-- Target of unit
if not self.hideTarget then
setupTarget(self)
end
local nameFontString = self:CreateFontString(nil, nil, "AssiduityAuraCountFontSmall")
nameFontString:SetPoint("BOTTOMRIGHT", self, "TOPRIGHT", -2)
self.nameFontString = nameFontString
-- Bars
local healthBar = CreateFrame("StatusBar", nil, self)
healthBar:SetStatusBarTexture("Interface\\Buttons\\WHITE8X8.blp")
healthBar:SetOrientation("HORIZONTAL")
healthBar:SetSize(MEASUREMENTS.BAR_WIDTH, MEASUREMENTS.HEALTH_BAR_HEIGHT)
if self.orientation == "LEFT_TO_RIGHT" then
healthBar:SetPoint("TOPRIGHT",
self,
"TOPRIGHT",
-MEASUREMENTS.DISTANCE_TO_EDGE,
-MEASUREMENTS.DISTANCE_TO_EDGE)
else
healthBar:SetPoint("TOPLEFT",
self,
"TOPLEFT",
MEASUREMENTS.DISTANCE_TO_EDGE,
-MEASUREMENTS.DISTANCE_TO_EDGE)
end
self.healthBar = healthBar
local healthBarBackground = healthBar:CreateTexture(nil, "BACKGROUND")
healthBarBackground:SetTexture(0, 0, 0, 1)
healthBarBackground:SetAllPoints()
local healthValueFontString = healthBar:CreateFontString(nil, nil, "AssiduityAuraCountFontSmall")
healthValueFontString:SetPoint("TOPRIGHT", healthBar, -2, -3)
self.healthValueFontString = healthValueFontString
local healthPercentageFontString = healthBar:CreateFontString(nil, nil, "AssiduityAuraCountFontSmall")
healthPercentageFontString:SetPoint("LEFT", healthBar, 2, 0)
self.healthPercentageFontString = healthPercentageFontString
-- Druid buffs
local offTheWildTexture = healthBar:CreateTexture(nil, "OVERLAY")
offTheWildTexture:SetSize(MEASUREMENTS.MINI_AURA, MEASUREMENTS.MINI_AURA)
offTheWildTexture:SetPoint("TOPLEFT", healthBar, "TOPLEFT")
offTheWildTexture:SetTexture("Interface\\Icons\\Spell_Nature_Regeneration")
offTheWildTexture:SetAlpha(0.5)
self.offTheWildTexture = offTheWildTexture
local thornsTexture = healthBar:CreateTexture(nil, "OVERLAY")
thornsTexture:SetSize(MEASUREMENTS.MINI_AURA, MEASUREMENTS.MINI_AURA)
thornsTexture:SetPoint("LEFT", offTheWildTexture, "RIGHT")
thornsTexture:SetTexture("Interface\\Icons\\Spell_Nature_Thorns")
thornsTexture:SetAlpha(0.5)
self.thornsTexture = thornsTexture
-- Power bar
local powerBar = CreateFrame("StatusBar", nil, self)
powerBar:SetStatusBarTexture("Interface\\Buttons\\WHITE8X8.blp")
powerBar:SetStatusBarColor(0, 1, 1)
powerBar:SetOrientation("HORIZONTAL")
powerBar:SetSize(MEASUREMENTS.BAR_WIDTH, MEASUREMENTS.POWER_BAR_HEIGHT)
powerBar:SetPoint("TOP",
healthBar,
"BOTTOM",
0,
-MEASUREMENTS.DISTANCE_TO_EDGE)
self.powerBar = powerBar
local powerBarBackground = powerBar:CreateTexture(nil, "BACKGROUND")
powerBarBackground:SetTexture(0, 0, 0, 1)
powerBarBackground:SetAllPoints()
local powerValueFontString = powerBar:CreateFontString(nil, nil, "AssiduityAuraCountFontTiny")
powerValueFontString:SetPoint("RIGHT", powerBar, -2, 0)
self.powerValueFontString = powerValueFontString
-- Casting Bar
local unitCapitalized = unit:sub(1,1):upper() .. unit:sub(2)
local castBar = CreateFrame("StatusBar", "Assiduity" .. unitCapitalized .. "CastBar", self, "AssiduityCastingBarTemplate")
--[[ Cast bar should always be positioned between the frame it represents
and the middle of the screen. What the unit casts is such as important
as how much hp it has.
]]
if self.orientation == "LEFT_TO_RIGHT" then
castBar:SetPoint("LEFT",
self,
"RIGHT",
30,
MEASUREMENTS.CAST_BAR_OFFSET)
else
castBar:SetPoint("RIGHT",
self,
"LEFT",
-10,
MEASUREMENTS.CAST_BAR_OFFSET)
end
self.castBar = castBar
CastingBarFrame_OnLoad(castBar, unit, false)
_G[castBar:GetName() .. "Icon"]:Show()
castBar:SetScript("OnEvent", function(self, event, ...)
CastingBarFrame_OnEvent(self, event, ...)
end)
castBar:SetScript("OnUpdate", function(self, elapsed)
CastingBarFrame_OnUpdate(self, elapsed)
end)
castBar:SetScript("OnShow", function(self)
CastingBarFrame_OnShow(self)
end)
--[[ 1st row:
Friendly target: player applied buffs
Hostile target: player applied debuffs
]]
local playerAuras = CreateFrame("Frame", nil, self)
playerAuras:SetSize(MEASUREMENTS.FRAME_WIDTH, MEASUREMENTS.PLAYER_BAR_HEIGHT)
playerAuras:SetPoint("TOPLEFT",
self,
"BOTTOMLEFT",
0,
-MEASUREMENTS.AURA_DISTANCE_TO_EDGE)
self.playerAuras = playerAuras
createAuraFrames(self, playerAuras, MEASUREMENTS.PLAYER_AURA_SIZE)
--local playerAurasTexture = playerAuras:CreateTexture(nil, "BACKGROUND")
--playerAurasTexture:SetTexture(0, 0, 1, 0.4)
--playerAurasTexture:SetAllPoints()
-- Shows when someone is dead for better visibility
--[[ 2nd row:
Friendly target: non-player buffs
Hostile target: non-player debuffs
]]
local nonPlayerAuras = CreateFrame("Frame", nil, self)
nonPlayerAuras:SetSize(MEASUREMENTS.FRAME_WIDTH, MEASUREMENTS.AURA_SIZE)
self.nonPlayerAuras = nonPlayerAuras
createAuraFrames(self, nonPlayerAuras, MEASUREMENTS.AURA_SIZE)
--local nonPlayerAurasTexture = nonPlayerAuras:CreateTexture(nil, "BACKGROUND")
--nonPlayerAurasTexture:SetTexture(0, 1, 0, 0.4)
--nonPlayerAurasTexture:SetAllPoints()
--[[ 3rd row:
Friendly target: debuffs
Hostile target: buffs
]]
local auras = CreateFrame("Frame", nil, self)
auras:SetSize(MEASUREMENTS.FRAME_WIDTH, MEASUREMENTS.AURA_SIZE)
self.auras = auras
createAuraFrames(self, auras, MEASUREMENTS.AURA_SIZE)
--local aurasTexture = auras:CreateTexture(nil, "BACKGROUND")
--aurasTexture:SetTexture(1, 0, 0, 0.4)
--aurasTexture:SetAllPoints()
local deadFontString = playerAuras:CreateFontString(nil, nil, "AssiduityAuraCountFontLarge")
deadFontString:SetPoint("CENTER", playerAuras)
deadFontString:SetText("DEAD")
deadFontString:SetAlpha(0)
self.deadFontString = deadFontString
-- Events
self.PLAYER_ENTERING_WORLD = PLAYER_ENTERING_WORLD
self.UNIT_AURA = UNIT_AURA
self.UNIT_FACTION = UNIT_FACTION
self.UNIT_HEALTH = UNIT_HEALTH
self.UNIT_MANA = UNIT_POWER
self.UNIT_RUNIC_POWER = UNIT_POWER
self.UNIT_ENERGY = UNIT_POWER
self.UNIT_RAGE = UNIT_POWER
self.UNIT_TARGET = UNIT_TARGET
self:RegisterEvent("PLAYER_ENTERING_WORLD")
if self.changeEvent then
self:RegisterEvent(self.changeEvent)
end
-- Scripts
self:SetScript("OnEvent", function(self, event, ...)
if event == self.changeEvent then
handleUnitChange(self)
else
self[event](self, ...)
end
end)
self:SetScript("OnEnter", function(self)
--GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT", 20, 10)
GameTooltip_SetDefaultAnchor(GameTooltip, UIParent)
GameTooltip:SetUnit(self:GetAttribute(UNIT))
GameTooltip:Show()
end)
self:SetScript("OnLeave", function()
GameTooltip:Hide()
end)
handleUnitChange(self)
RegisterUnitWatch(self)
RegisterUnitWatch(self.target)
end
|
-- Detecting coroutine resumes and traces is tricky, particularly as
-- + thanks to coroutine.wrap, you might resume from any function
-- + if the thread is finished, resume doesn't cause a thread change
-- + threads finish by returning, without a call to yield
-- Here we only test yielding from the top of the thread stack
luatrace = require("luatrace")
function co()
for i = 1, 3 do
coroutine.yield(i)
end
end
function test_resume(t)
while true do
local status, i = coroutine.resume(t)
if not status then print("ERROR: ", i) break end
if not i then break end
end
end
function test_wrap(f)
while true do
local i = f()
if not i then break end
end
end
luatrace.tron()
test_resume(coroutine.create(co))
test_wrap(coroutine.wrap(co))
luatrace.troff()
|
-- Copyright (c) 2015-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is licensed under the BSD-style license found in the
-- LICENSE file in the root directory of this source tree. An additional grant
-- of patent rights can be found in the PATENTS file in the same directory.
function batch_init(size)
local batch = {}
for i = 1, size do
batch[i] = new_game()
end
return batch
end
function batch_input(batch, active, t)
if g_opts.model == 'conv' then
return batch_input_conv(batch, active, t)
elseif g_opts.model == 'mlp' then
return batch_input_mlp(batch, active, t)
end
active = active:view(#batch, g_opts.nagents)
local input = torch.Tensor(#batch, g_opts.nagents, g_opts.memsize, g_opts.max_attributes)
input:fill(g_vocab['nil'])
for i, g in pairs(batch) do
for a = 1, g_opts.nagents do
g.agent = g.agents[a]
if active[i][a] == 1 then
g:to_sentence(input[i][a])
end
end
end
local dummy = torch.Tensor(#batch * g_opts.nagents, g_opts.hidsz):fill(0.1)
input:resize(#batch * g_opts.nagents, g_opts.memsize * g_opts.max_attributes)
return {dummy, input}
end
function batch_input_conv(batch, active, t)
active = active:view(#batch, g_opts.nagents)
local input = torch.Tensor(#batch, g_opts.nagents, g_opts.conv_sz, g_opts.conv_sz, g_opts.max_attributes)
local context = torch.Tensor(#batch, g_opts.nagents, g_opts.memsize, g_opts.max_attributes)
input:fill(g_vocab['nil'])
context:fill(g_vocab['nil'])
for i, g in pairs(batch) do
for a = 1, g_opts.nagents do
g.agent = g.agents[a]
local m = nil
if active[i][a] == 1 then
m = g:to_map()
end
if m then
local dy = math.floor((g_opts.conv_sz - m:size(1)) / 2) + 1
local dx = math.floor((g_opts.conv_sz - m:size(2)) / 2) + 1
input[i][a]:narrow(1, dy, m:size(1)):narrow(2, dx, m:size(2)):copy(m)
if g.items_bytype['info'] then
for j, e in pairs(g.items_bytype['info']) do
for k, w in pairs(e:to_sentence(0, 0, true)) do
context[i][a][j][k] = g_vocab[w]
end
end
end
end
end
end
return {input:view(#batch * g_opts.nagents, -1), context:view(#batch * g_opts.nagents, -1)}
end
function batch_input_mlp(batch, active, t)
-- total number of words in dictionary:
local mapwords = g_opts.conv_sz*g_opts.conv_sz*g_opts.nwords
local nilword = mapwords + g_opts.memsize*g_opts.nwords + 1
active = active:view(#batch, g_opts.nagents)
local input = torch.Tensor(#batch, g_opts.nagents, g_opts.memsize * g_opts.max_attributes)
input:fill(nilword)
for i, g in pairs(batch) do
for a = 1, g_opts.nagents do
g.agent = g.agents[a]
if active[i][a] == 1 then
g:to_map_onehot(input[i][a])
end
end
end
return input:view(#batch * g_opts.nagents, -1)
end
function batch_act(batch, action, active)
active = active:view(#batch, g_opts.nagents)
action = action:view(#batch, g_opts.nagents)
for i, g in pairs(batch) do
for a = 1, g_opts.nagents do
g.agent = g.agents[a]
if active[i][a] == 1 then
g:act(action[i][a])
end
end
end
end
function batch_reward(batch, active, is_last)
active = active:view(#batch, g_opts.nagents)
local reward = torch.Tensor(#batch, g_opts.nagents):zero()
for i, g in pairs(batch) do
for a = 1, g_opts.nagents do
g.agent = g.agents[a]
if active[i][a] == 1 then
reward[i][a] = g:get_reward(is_last)
end
end
end
return reward:view(-1)
end
function batch_update(batch, active)
active = active:view(#batch, g_opts.nagents)
for i, g in pairs(batch) do
for a = 1, g_opts.nagents do
g.agent = g.agents[a]
if active[i][a] == 1 then
g:update()
break
end
end
end
end
function batch_active(batch)
local active = torch.Tensor(#batch, g_opts.nagents):zero()
for i, g in pairs(batch) do
if (not g.sv_on) and (not g.qa_on) then
for a = 1, g_opts.nagents do
g.agent = g.agents[a]
if g:is_active() then
active[i] = 1
end
end
end
end
return active:view(-1)
end
function batch_success(batch)
local success = torch.Tensor(#batch):fill(0)
for i, g in pairs(batch) do
if g:is_success() then
success[i] = 1
end
end
return success
end
|
NPCF_MODPATH = minetest.get_modpath(minetest.get_current_modname())
NPCF_DATADIR = minetest.get_worldpath().."/npc_data"
dofile(NPCF_MODPATH.."/npcf.lua")
dofile(NPCF_MODPATH.."/chatcommands.lua")
dofile(NPCF_MODPATH.."/npcs/info_npc.lua")
dofile(NPCF_MODPATH.."/npcs/deco_npc.lua")
dofile(NPCF_MODPATH.."/npcs/guard_npc.lua")
dofile(NPCF_MODPATH.."/npcs/trade_npc.lua")
dofile(NPCF_MODPATH.."/npcs/builder_npc.lua")
|
--
-- Licensed to the Apache Software Foundation (ASF) under one or more
-- contributor license agreements. See the NOTICE file distributed with
-- this work for additional information regarding copyright ownership.
-- The ASF licenses this file to You under the Apache License, Version 2.0
-- (the "License"); you may not use this file except in compliance with
-- the License. You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writing, software
-- distributed under the License is distributed on an "AS IS" BASIS,
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the License for the specific language governing permissions and
-- limitations under the License.
--
local core = require("apisix.core")
local plugin = require("apisix.plugin")
local _M = {}
function _M.schema()
local schema = {
main = {
consumer = core.schema.consumer,
global_rule = core.schema.global_rule,
plugins = core.schema.plugins,
proto = core.schema.proto,
route = core.schema.route,
service = core.schema.service,
ssl = core.schema.ssl,
stream_route = core.schema.stream_route,
upstream = core.schema.upstream,
upstream_hash_header_schema = core.schema.upstream_hash_header_schema,
upstream_hash_vars_schema = core.schema.upstream_hash_vars_schema,
},
plugins = plugin.get_all({
version = true,
priority = true,
schema = true,
metadata_schema = true,
consumer_schema = true,
type = true,
}),
}
return 200, schema
end
return {
-- /v1/schema
{
methods = {"GET"},
uris = {"/schema"},
handler = _M.schema,
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.