content
stringlengths 5
1.05M
|
---|
local S = df_trees.S
--stem
minetest.register_node("df_trees:nether_cap_stem", {
description = S("Nether Cap Stem"),
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
tiles = {"dfcaverns_nether_cap_stem.png"},
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1, cools_lava = 1, freezes_water = 1, nether_cap = 1},
sounds = df_trees.sounds.wood,
})
--cap
minetest.register_node("df_trees:nether_cap", {
description = S("Nether Cap"),
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
tiles = {"dfcaverns_nether_cap.png"},
is_ground_content = false,
groups = {tree = 1, choppy = 2, oddly_breakable_by_hand = 1, puts_out_fire = 1, cools_lava = 1, freezes_water = 1, nether_cap = 1},
sounds = df_trees.sounds.nethercap_wood,
})
--gills
minetest.register_node("df_trees:nether_cap_gills", {
description = S("Nether Cap Gills"),
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
tiles = {"dfcaverns_nether_cap_gills.png"},
is_ground_content = false,
light_source = 6,
groups = {snappy = 3, leafdecay = 3, leaves = 1, puts_out_fire = 1, cools_lava = 1, freezes_water = 1, nether_cap = 1},
sounds = df_trees.sounds.leaves,
drawtype = "plantlike",
paramtype = "light",
drop = {
max_items = 1,
items = {
{
items = {'df_trees:nether_cap_sapling'},
rarity = 5,
},
{
items = {'df_trees:nether_cap_gills'},
}
}
},
after_place_node = df_trees.after_place_leaves,
})
df_trees.register_leafdecay({
trunks = {"df_trees:nether_cap"}, -- don't need stem nodes here
leaves = {"df_trees:nether_cap_gills"},
radius = 1,
})
--Wood
minetest.register_craft({
output = 'df_trees:nether_cap_wood 4',
recipe = {
{'df_trees:nether_cap'},
}
})
minetest.register_craft({
output = 'df_trees:nether_cap_wood 4',
recipe = {
{'df_trees:nether_cap_stem'},
}
})
minetest.register_node("df_trees:nether_cap_wood", {
description = S("Nether Cap Planks"),
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
paramtype2 = "facedir",
place_param2 = 0,
tiles = {"dfcaverns_nether_cap_wood.png"},
is_ground_content = false,
groups = {choppy = 2, oddly_breakable_by_hand = 2, wood = 1, freezes_water = 1},
sounds = df_trees.sounds.wood,
})
df_trees.register_all_stairs("nether_cap_wood")
-- sapling
minetest.register_node("df_trees:nether_cap_sapling", {
description = S("Nether Cap Spawn"),
_doc_items_longdesc = df_trees.doc.nether_cap_desc,
_doc_items_usagehelp = df_trees.doc.nether_cap_usage,
drawtype = "plantlike",
visual_scale = 1.0,
tiles = {"dfcaverns_nether_cap_sapling.png"},
inventory_image = "dfcaverns_nether_cap_sapling.png",
wield_image = "dfcaverns_nether_cap_sapling.png",
paramtype = "light",
sunlight_propagates = true,
walkable = false,
is_ground_content = false,
floodable = true, -- nether cap spawn aren't tough enough to freeze water yet
selection_box = {
type = "fixed",
fixed = {-4 / 16, -0.5, -4 / 16, 4 / 16, 7 / 16, 4 / 16}
},
groups = {snappy = 2, dig_immediate = 3,
attached_node = 1, sapling = 1, light_sensitive_fungus = 11},
sounds = df_trees.sounds.leaves,
on_construct = function(pos)
local node_below_name = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name
if minetest.get_item_group(node_below_name, "cools_lava") == 0 or minetest.get_item_group(node_below_name, "nether_cap") > 0 then
return
end
minetest.get_node_timer(pos):start(math.random(
df_trees.config.nether_cap_delay_multiplier*df_trees.config.tree_min_growth_delay,
df_trees.config.nether_cap_delay_multiplier*df_trees.config.tree_max_growth_delay))
end,
on_destruct = function(pos)
minetest.get_node_timer(pos):stop()
end,
on_timer = function(pos)
if df_farming and df_farming.kill_if_sunlit(pos) then
return
end
minetest.set_node(pos, {name="air"})
df_trees.spawn_nether_cap(pos)
end,
})
local c_stem = minetest.get_content_id("df_trees:nether_cap_stem")
local c_cap = minetest.get_content_id("df_trees:nether_cap")
local c_gills = minetest.get_content_id("df_trees:nether_cap_gills")
df_trees.spawn_nether_cap = function(pos)
local x, y, z = pos.x, pos.y, pos.z
local stem_height = math.random(1,3)
local cap_radius = math.random(2,3)
local maxy = y + stem_height + 3
local vm = minetest.get_voxel_manip()
local minp, maxp = vm:read_from_map(
{x = x - cap_radius, y = y, z = z - cap_radius},
{x = x + cap_radius, y = maxy + 3, z = z + cap_radius}
)
local area = VoxelArea:new({MinEdge = minp, MaxEdge = maxp})
local data = vm:get_data()
subterrane.giant_mushroom(area:indexp(pos), area, data, c_stem, c_cap, c_gills, stem_height, cap_radius)
vm:set_data(data)
vm:write_to_map()
vm:update_map()
end
df_trees.spawn_nether_cap_vm = function(vi, area, data)
local stem_height = math.random(1,3)
local cap_radius = math.random(2,3)
subterrane.giant_mushroom(vi, area, data, c_stem, c_cap, c_gills, stem_height, cap_radius)
end
local water = df_trees.node_names.water_source
local river_water = df_trees.node_names.river_water_source
local ice = df_trees.node_names.ice
local water_flowing = df_trees.node_names.water_flowing
local river_water_flowing = df_trees.node_names.river_water_flowing
local snow = df_trees.node_names.snow
minetest.register_abm{
label = "water freezing",
nodenames = {water, river_water,},
neighbors = {"group:freezes_water"},
interval = 1,
chance = 5,
catch_up = true,
action = function(pos)
minetest.swap_node(pos, {name=ice})
end,
}
minetest.register_abm{
label = "flowing water freezing",
nodenames = {water_flowing, river_water_flowing},
neighbors = {"group:freezes_water"},
interval = 1,
chance = 1,
catch_up = true,
action = function(pos)
minetest.swap_node(pos, {name=snow})
end,
} |
-- init mqtt client with keepalive timer 120sec
m = mqtt.Client("esp8266", 120, access_token, "password", 1)
print("Connecting to MQTT broker...")
m:connect(mqtt_ip, mqtt_port, 0, 1, function(client) print("Connected to MQTT!") end,
function(client, reason) print("Could not connect, failed reason: " .. reason) end)
m:on("offline", function(client) print("MQTT offline") end)
pin = 5
print("Collecting Temperature and Humidity...")
tmr.alarm(2, 10000, tmr.ALARM_AUTO, function()
status, temp, humi, temp_dec, humi_dec = dht.read(pin)
if status == dht.OK then
-- Integer firmware using this example
print(string.format("DHT Temperature:%d.%03d;Humidity:%d.%03d\r\n",
math.floor(temp),
temp_dec,
math.floor(humi),
humi_dec))
m:publish("v1/devices/me/telemetry", string.format("[{\"temperature\":%d}, {\"humidity\":%d}]", math.floor(temp), math.floor(humi)), 0, 0, function(client) print("Data sent") end)
elseif status == dht.ERROR_CHECKSUM then
print("DHT Checksum error.")
elseif status == dht.ERROR_TIMEOUT then
print("DHT timed out.")
end
end) |
require "/scripts/vec2.lua"
require "/scripts/messageutil.lua"
require "/scripts/navigationtools/minimap.lua"
require "/interface/navigationtools/tilestore.lua"
local _init = init
local _uninit = uninit
local _update = update
local isAlive = true
local _teleportOut = teleportOut
local lastDeathTime = nil
local playerPosition
function init(...)
if _init then
_init(...)
end
sb.logInfo("----- Navigation Tools Player Init -----")
message.setHandler("ClearMiniMap", function(...)
promises:add(player.confirm(root.assetJson("/interface/confirmation/navigationtools/clearMinimapConfirmation.config")), function (choice)
if choice then
minimap.tileStore:clearAllTiles(world.size())
end
end)
end)
message.setHandler("AddDeathMarker", function(_, _, position)
-- This will catch instances where a death caused by damage was captured twice, and only create 1 death marker
if lastDeathTime == nil or player.playTime() - lastDeathTime >= 5.0 then
minimap.addDeathMarker(position)
end
lastDeathTime = player.playTime()
end)
message.setHandler("ClearDeathMarkers", function(_, _, deathMarkerId)
promises:add(player.confirm(root.assetJson("/interface/confirmation/navigationtools/deleteDeathMarkerConfirmation.config")), function (choice)
if choice then
minimap.clearDeathMarkers()
end
end)
end)
message.setHandler("RenameMarker", function(_, _, renameArgs)
openRenameDialog(renameArgs.markerId, renameArgs.initialName)
end)
message.setHandler("OpenMiniMap", function(_, _)
if player.getProperty("navigation_tools_minimap_state") == "closed" then
openMiniMap("small")
end
end)
message.setHandler("ExpandMiniMap", function(_, _)
if player.getProperty("navigation_tools_minimap_state") == "small" then
openMiniMap("large")
elseif player.getProperty("navigation_tools_minimap_state") == "large" then
openMiniMap("larger")
end
end)
message.setHandler("ContractMiniMap", function(_, _)
if player.getProperty("navigation_tools_minimap_state") == "larger" then
openMiniMap("large")
elseif player.getProperty("navigation_tools_minimap_state") == "large" then
openMiniMap("small")
end
end)
minimap.tileStore = TileStore:new()
minimap.init(...)
updatePlayerPos()
lastDeathTime = nil
local lastMapState = player.getProperty("navigation_tools_minimap_state")
if lastMapState == nil then
-- sb.logInfo("#*#*#*#* player: No existing minimap state *#*#*#*#")
player.setProperty("navigation_tools_minimap_state", "closed")
co = nil
elseif lastMapState == "closed" then
-- sb.logInfo("#*#*#*#* player: Existing minimap state was 'closed' *#*#*#*#")
co = nil
elseif lastMapState == "small" or lastMapState == "large" or lastMapState == "larger" then
-- sb.logInfo("#*#*#*#* player: Existing minimap state was '" .. lastMapState .. "' *#*#*#*#")
co = coroutine.create(openMiniMapDelayed)
coroutine.resume(co, "small", 5.0)
end
sb.logInfo("----- End Navigation Tools Player Init -----")
end
function openMiniMapDelayed(size, seconds)
local startTime = os.time()
local diff = os.difftime(os.time(), startTime)
while diff < seconds do
coroutine.yield("#*#*#*#* player: Waiting to open minimap (" .. size .. "): " .. tostring(diff) .. "/" .. tostring(seconds) .. " *#*#*#*#")
diff = os.difftime(os.time(), startTime)
-- Break early if we register that we are already moving after teleport
if not status.statusProperty("navigation_tools_teleporting") then
diff = seconds
end
end
openMiniMap(size)
end
function openMiniMap(size)
size = size or "small"
local configData = {}
if size == "larger" then
configData = root.assetJson("/interface/navigationtools/minimapguilarger.config")
elseif size == "large" then
configData = root.assetJson("/interface/navigationtools/minimapguilarge.config")
else
configData = root.assetJson("/interface/navigationtools/minimapgui.config")
end
status.setStatusProperty("navigation_tools_teleporting", false)
player.interact("ScriptPane", configData)
end
function openRenameDialog(markerId, initialName)
local configData = root.assetJson("/interface/navigationtools/renamemarkergui.config")
configData.markerId = markerId
configData.initialName = initialName
player.interact("ScriptPane", configData)
end
function update(dt)
if _update then
_update(dt)
end
local hp = status.resource("health")
if hp <= 0 then
sb.logInfo("#*#*#*#* player_init: update(): player died - health = " .. hp .. " *#*#*#*#")
status.setStatusProperty("navigation_tools_teleporting", true)
if playerPosition then
sb.logInfo("#*#*#*#* player_init: update(): player position is known *#*#*#*#")
-- world.sendEntityMessage(player.id(), "AddDeathMarker", playerPosition) -- doesn't seem to work
minimap.addDeathMarker(playerPosition)
else
sb.logInfo("#*#*#*#* player_init: update(): player position is unknown *#*#*#*#")
end
return
end
updatePlayerPos()
promises:update()
minimap.update(dt)
if co and coroutine.status(co) ~= "dead" then
local success, info = coroutine.resume(co)
-- sb.logInfo(tostring(info))
if coroutine.status(co) == "dead" then
co = nil
end
end
end
function updatePlayerPos()
local newPlayerPosition = world.entityPosition(player.id())
playerPosition = newPlayerPosition or playerPosition
end
function teleportOut(...)
-- sb.logInfo("#*#*#*#* player_init: TELEPORTING OUT *#*#*#*#")
status.setStatusProperty("navigation_tools_teleporting", true)
_teleportOut(...)
end
function uninit(...)
local hp = status.resource("health")
sb.logInfo("#*#*#*#* player_uninit: health = " .. hp .. " *#*#*#*#")
status.setStatusProperty("navigation_tools_teleporting", true)
if hp <= 0 then
sb.logInfo("#*#*#*#* player_uninit: player died - health = " .. hp .. " *#*#*#*#")
if playerPosition then
sb.logInfo("#*#*#*#* player_uninit: player position is known *#*#*#*#")
minimap.addDeathMarker(playerPosition)
else
sb.logInfo("#*#*#*#* player_uninit: player position is unknown - no death marker created *#*#*#*#")
end
end
_uninit(...)
end
|
local inspect = require 'inspect'
local log = function(level, msg, ...)
if type(msg) ~= 'string' then
msg = inspect(msg)
end
if length({ ... }) > 0 then
msg = msg .. ' :: ' .. inspect({ ... })
end
ngx.log(level, '[metrix] ' .. msg)
end
local stderr = function(...)
log(ngx.STDERR, ...)
end
local emerg = function(...)
log(ngx.EMERG, ...)
end
local alert = function(...)
log(ngx.ALERT, ...)
end
local crit = function(...)
log(ngx.CRIT, ...)
end
local err = function(...)
log(ngx.ERR, ...)
end
local warn = function(...)
log(ngx.WARN, ...)
end
local notice = function(...)
log(ngx.NOTICE, ...)
end
local info = function(...)
log(ngx.INFO, ...)
end
local debug = function(...)
log(ngx.DEBUG, ...)
end
local exports = {}
exports.log = log
exports.stderr = stderr
exports.stderror = stderr
exports.emerg = emerg
exports.emergency = emerg
exports.alert = alert
exports.crit = crit
exports.critical = crit
exports.err = err
exports.error = err
exports.warn = warn
exports.warning = warn
exports.notice = notice
exports.info = info
exports.debug = debug
return exports
|
local fs = require('diagnosticls-configs.fs')
return {
sourceName = 'redpen',
-- command = fs.get_executable('redpen'),
command = './bin/redpen',
args = { '--limit', '50', '%filepath' },
debounce = 100,
isStdout = false,
isStderr = true,
formatPattern = {
[[^.*:(\d+):\s(.*)(\r|\n)*$]],
{ line = 1, column = 0, message = { '[redpen] ', 2 } },
},
rootPatterns = { '.git' },
}
|
function onUpdate(elapsed)
-- start of "update", some variables weren't updated yet
if curStep == 464 then
doTweenAngle('left', 'camGame', 10, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', 10, stepCrochet*0.005, 'circOut')
elseif curStep == 468 then
doTweenAngle('left', 'camGame', -10, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', -10, stepCrochet*0.005, 'circOut')
elseif curStep == 472 then
doTweenAngle('left', 'camGame', 0, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', 0, stepCrochet*0.005, 'circOut')
end
if curStep == 496 then
doTweenAngle('left', 'camGame', 10, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', 10, stepCrochet*0.005, 'circOut')
elseif curStep == 500 then
doTweenAngle('left', 'camGame', -10, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', -10, stepCrochet*0.005, 'circOut')
elseif curStep == 504 then
doTweenAngle('left', 'camGame', 0, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', 0, stepCrochet*0.005, 'circOut')
end
if curStep == 592 then
doTweenAngle('left', 'camGame', 10, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', 10, stepCrochet*0.005, 'circOut')
elseif curStep == 596 then
doTweenAngle('left', 'camGame', -10, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', -10, stepCrochet*0.005, 'circOut')
elseif curStep == 600 then
doTweenAngle('left', 'camGame', 0, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', 0, stepCrochet*0.005, 'circOut')
end
if curStep == 624 then
doTweenAngle('left', 'camGame', 10, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', 10, stepCrochet*0.005, 'circOut')
elseif curStep == 628 then
doTweenAngle('left', 'camGame', -10, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', -10, stepCrochet*0.005, 'circOut')
elseif curStep == 632 then
doTweenAngle('left', 'camGame', 0, stepCrochet*0.005, 'circOut')
doTweenAngle('left2', 'camHUD', 0, stepCrochet*0.005, 'circOut')
end
end |
-- java.require
APITest = java.require('party/iroiro/jua/APITest')
System = java.require('java/lang/System')
Thread = java.require('java/lang/Thread')
Class = java.require('java/lang/Class')
Short = java.require('java/lang/Short')
APITest:assertTrue(Class ~= nil)
-- static memebers
Thread:sleep(1000)
APITest:assertTrue(true)
System.out:println('Print')
-- static fields
APITest:assertTrue(Short.MAX_VALUE == 0x7fff)
-- java.new
instance = java.new(APITest)
class = instance:getClass()
APITest:assertTrue(class:equals(APITest))
APITest:assertTrue(instance.testPublic == 443)
-- array
a = APITest.array
b = APITest.arrays
APITest:assertTrue(type(a) == 'table')
APITest:assertTrue(type(b) == 'table')
total = 0
for i, v in ipairs(a) do
total = v + total
end
APITest:assertTrue(total == sum)
total = 0
for i, v in ipairs(b) do
for j, u in ipairs(v) do
total = u + total
end
end
error = sum * #b - total
APITest:assertTrue(#a == #b)
APITest:assertTrue(error * error < 0.000000001)
if (error ~= 0) then
System.out:println(string.format("Calculation Error: %.20f", error))
end
|
Citizen.CreateThread(function()
while true do
Citizen.Wait(0)
N_0xf4f2c0d4ee209e20()
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_UNARMED"),1.6)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_KNIFE"),0.3)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_DAGGER"),0.3)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_MACHETE"),0.3)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_BATTLEAXE"),0.3)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_STONE_HATCHET"),0.3)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_KNUCKLE"),0.2)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_NIGHTSTICK"),0.0)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_RAYPISTOL"),0.0)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_PUMPSHOTGUN_MK2"),2.5)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_COMBATPISTOL"),1.3)
N_0x4757f00bc6323cfe(GetHashKey("WEAPON_MACHINEPISTOL"),1.4)
--[[HideHudComponentThisFrame(1)
HideHudComponentThisFrame(2)
HideHudComponentThisFrame(3)
HideHudComponentThisFrame(4)
HideHudComponentThisFrame(5)
HideHudComponentThisFrame(6)
HideHudComponentThisFrame(7)
HideHudComponentThisFrame(8)
HideHudComponentThisFrame(9)
HideHudComponentThisFrame(11)
HideHudComponentThisFrame(12)
HideHudComponentThisFrame(13)
HideHudComponentThisFrame(15)
HideHudComponentThisFrame(17)
HideHudComponentThisFrame(18)
HideHudComponentThisFrame(20)
HideHudComponentThisFrame(21)
HideHudComponentThisFrame(22)
HideHudComponentThisFrame(23)
HideHudComponentThisFrame(24)
HideHudComponentThisFrame(25)
HideHudComponentThisFrame(26)
HideHudComponentThisFrame(27)
HideHudComponentThisFrame(28)
HideHudComponentThisFrame(29)
HideHudComponentThisFrame(30)
HideHudComponentThisFrame(31)
HideHudComponentThisFrame(32)
HideHudComponentThisFrame(33)
HideHudComponentThisFrame(34)
HideHudComponentThisFrame(35)
HideHudComponentThisFrame(36)
HideHudComponentThisFrame(37)
HideHudComponentThisFrame(38)
HideHudComponentThisFrame(39)
HideHudComponentThisFrame(40)
HideHudComponentThisFrame(41)
HideHudComponentThisFrame(42)
HideHudComponentThisFrame(43)
HideHudComponentThisFrame(44)
HideHudComponentThisFrame(45)
HideHudComponentThisFrame(46)
HideHudComponentThisFrame(47)
HideHudComponentThisFrame(48)
HideHudComponentThisFrame(49)
HideHudComponentThisFrame(50)
HideHudComponentThisFrame(51)]]
RemoveAllPickupsOfType(0x6C5B941A)
RemoveAllPickupsOfType(0xF33C83B0)
RemoveAllPickupsOfType(0xDF711959)
RemoveAllPickupsOfType(0xB2B5325E)
RemoveAllPickupsOfType(0x85CAA9B1)
RemoveAllPickupsOfType(0xB2930A14)
RemoveAllPickupsOfType(0xFE2A352C)
RemoveAllPickupsOfType(0x693583AD)
RemoveAllPickupsOfType(0x1D9588D3)
RemoveAllPickupsOfType(0x3A4C2AD2)
RemoveAllPickupsOfType(0x4D36C349)
RemoveAllPickupsOfType(0x2F36B434)
RemoveAllPickupsOfType(0xA9355DCD)
RemoveAllPickupsOfType(0x96B412A3)
RemoveAllPickupsOfType(0x9299C95B)
RemoveAllPickupsOfType(0xF9AFB48F)
RemoveAllPickupsOfType(0x8967B4F3)
RemoveAllPickupsOfType(0x3B662889)
RemoveAllPickupsOfType(0xFD16169E)
RemoveAllPickupsOfType(0xCB13D282)
RemoveAllPickupsOfType(0xC69DE3FF)
RemoveAllPickupsOfType(0x278D8734)
RemoveAllPickupsOfType(0x5EA16D74)
RemoveAllPickupsOfType(0x295691A9)
RemoveAllPickupsOfType(0x81EE601E)
RemoveAllPickupsOfType(0x88EAACA7)
RemoveAllPickupsOfType(0x872DC888)
RemoveAllPickupsOfType(0xC5B72713)
RemoveAllPickupsOfType(0x9CF13918)
RemoveAllPickupsOfType(0x0968339D)
RemoveAllPickupsOfType(0xBFEE6C3B)
RemoveAllPickupsOfType(0xBED46EC5)
RemoveAllPickupsOfType(0x079284A9)
RemoveAllPickupsOfType(0x8ADDEC75)
DisablePlayerVehicleRewards(PlayerId())
end
end) |
if _G.WOW_PROJECT_ID == _G.WOW_PROJECT_MAINLINE then
return -- Don't load for Retail
end
LibQuestXPDB = {
[1] = {["xp"] = 540, ["level"] = 4},
[2] = {["xp"] = 2450, ["level"] = 30},
[5] = {["xp"] = 390, ["level"] = 20},
[6] = {["xp"] = 335, ["level"] = 5},
[7] = {["xp"] = 170, ["level"] = 2},
[8] = {["xp"] = 110, ["level"] = 5},
[9] = {["xp"] = 1050, ["level"] = 15},
[10] = {["xp"] = 6290, ["level"] = 48},
[11] = {["xp"] = 840, ["level"] = 10},
[12] = {["xp"] = 910, ["level"] = 12},
[13] = {["xp"] = 980, ["level"] = 14},
[14] = {["xp"] = 1600, ["level"] = 17},
[15] = {["xp"] = 250, ["level"] = 3},
[16] = {["xp"] = 0, ["level"] = nil},
[17] = {["xp"] = 4820, ["level"] = 42},
[18] = {["xp"] = 355, ["level"] = 4},
[19] = {["xp"] = 2000, ["level"] = 25},
[20] = {["xp"] = 1650, ["level"] = 21},
[21] = {["xp"] = 450, ["level"] = 5},
[22] = {["xp"] = 910, ["level"] = 12},
[23] = {["xp"] = 1950, ["level"] = 24},
[24] = {["xp"] = 2200, ["level"] = 27},
[25] = {["xp"] = 2000, ["level"] = 25},
[26] = {["xp"] = 115, ["level"] = nil},
[27] = {["xp"] = 115, ["level"] = nil},
[28] = {["xp"] = 880, ["level"] = nil},
[29] = {["xp"] = 880, ["level"] = nil},
[30] = {["xp"] = 880, ["level"] = nil},
[31] = {["xp"] = 1150, ["level"] = nil},
[32] = {["xp"] = 7850, ["level"] = 48},
[33] = {["xp"] = 170, ["level"] = 2},
[34] = {["xp"] = 1950, ["level"] = 24},
[35] = {["xp"] = 420, ["level"] = 10},
[36] = {["xp"] = 420, ["level"] = 10},
[37] = {["xp"] = 210, ["level"] = 10},
[38] = {["xp"] = 910, ["level"] = 13},
[39] = {["xp"] = 1050, ["level"] = 10},
[40] = {["xp"] = 85, ["level"] = 10},
[45] = {["xp"] = 420, ["level"] = 10},
[46] = {["xp"] = 840, ["level"] = 10},
[47] = {["xp"] = 630, ["level"] = 7},
[48] = {["xp"] = 5290, ["level"] = 44},
[49] = {["xp"] = 6600, ["level"] = 44},
[50] = {["xp"] = 6600, ["level"] = 44},
[51] = {["xp"] = 6600, ["level"] = 44},
[52] = {["xp"] = 630, ["level"] = 10},
[53] = {["xp"] = 7900, ["level"] = 44},
[54] = {["xp"] = 225, ["level"] = 5},
[55] = {["xp"] = 4050, ["level"] = 32},
[56] = {["xp"] = 1450, ["level"] = 24},
[57] = {["xp"] = 2100, ["level"] = 26},
[58] = {["xp"] = 2450, ["level"] = 30},
[59] = {["xp"] = 210, ["level"] = 10},
[60] = {["xp"] = 475, ["level"] = 7},
[61] = {["xp"] = 790, ["level"] = 7},
[62] = {["xp"] = 475, ["level"] = 7},
[63] = {["xp"] = 1150, ["level"] = nil},
[64] = {["xp"] = 910, ["level"] = 12},
[65] = {["xp"] = 1350, ["level"] = 18},
[66] = {["xp"] = 230, ["level"] = 28},
[67] = {["xp"] = 1150, ["level"] = 28},
[68] = {["xp"] = 1700, ["level"] = 28},
[69] = {["xp"] = 570, ["level"] = 28},
[70] = {["xp"] = 1700, ["level"] = 28},
[71] = {["xp"] = 210, ["level"] = 10},
[72] = {["xp"] = 230, ["level"] = 28},
[74] = {["xp"] = 1150, ["level"] = 28},
[75] = {["xp"] = 1150, ["level"] = 28},
[76] = {["xp"] = 840, ["level"] = 10},
[77] = {["xp"] = 6290, ["level"] = 48},
[78] = {["xp"] = 570, ["level"] = 28},
[79] = {["xp"] = 230, ["level"] = 28},
[80] = {["xp"] = 230, ["level"] = 28},
[81] = {["xp"] = 6290, ["level"] = 48},
[82] = {["xp"] = 4500, ["level"] = 47},
[83] = {["xp"] = 780, ["level"] = 9},
[84] = {["xp"] = 135, ["level"] = 6},
[85] = {["xp"] = 135, ["level"] = 6},
[86] = {["xp"] = 405, ["level"] = 6},
[87] = {["xp"] = 880, ["level"] = 8},
[88] = {["xp"] = 780, ["level"] = 9},
[89] = {["xp"] = 1550, ["level"] = 20},
[90] = {["xp"] = 2000, ["level"] = 25},
[91] = {["xp"] = 1850, ["level"] = 23},
[92] = {["xp"] = 1350, ["level"] = 18},
[93] = {["xp"] = 780, ["level"] = 20},
[94] = {["xp"] = 1250, ["level"] = 21},
[95] = {["xp"] = 1000, ["level"] = 25},
[96] = {["xp"] = 2350, ["level"] = nil},
[97] = {["xp"] = 230, ["level"] = 28},
[98] = {["xp"] = 4050, ["level"] = 32},
[99] = {["xp"] = 1050, ["level"] = 15},
[100] = {["xp"] = 0, ["level"] = nil},
[101] = {["xp"] = 2550, ["level"] = 25},
[102] = {["xp"] = 980, ["level"] = 14},
[103] = {["xp"] = 1150, ["level"] = 16},
[104] = {["xp"] = 1550, ["level"] = 20},
[105] = {["xp"] = 11900, ["level"] = 60},
[106] = {["xp"] = 135, ["level"] = 6},
[107] = {["xp"] = 135, ["level"] = 6},
[109] = {["xp"] = 630, ["level"] = 10},
[110] = {["xp"] = 625, ["level"] = 48},
[111] = {["xp"] = 135, ["level"] = 6},
[112] = {["xp"] = 315, ["level"] = 7},
[113] = {["xp"] = 625, ["level"] = 48},
[114] = {["xp"] = 790, ["level"] = 7},
[115] = {["xp"] = 1850, ["level"] = 23},
[116] = {["xp"] = 1050, ["level"] = 15},
[117] = {["xp"] = 0, ["level"] = nil},
[118] = {["xp"] = 340, ["level"] = 18},
[119] = {["xp"] = 680, ["level"] = 18},
[120] = {["xp"] = 490, ["level"] = 14},
[121] = {["xp"] = 245, ["level"] = 14},
[122] = {["xp"] = 1700, ["level"] = 18},
[123] = {["xp"] = 210, ["level"] = 10},
[124] = {["xp"] = 1150, ["level"] = 20},
[125] = {["xp"] = 880, ["level"] = 16},
[126] = {["xp"] = 1650, ["level"] = 21},
[127] = {["xp"] = 1250, ["level"] = 21},
[128] = {["xp"] = 2000, ["level"] = 25},
[129] = {["xp"] = 540, ["level"] = 15},
[130] = {["xp"] = 270, ["level"] = 15},
[131] = {["xp"] = 270, ["level"] = 15},
[132] = {["xp"] = 680, ["level"] = 18},
[133] = {["xp"] = 1650, ["level"] = 27},
[134] = {["xp"] = 1200, ["level"] = 30},
[135] = {["xp"] = 680, ["level"] = 18},
[136] = {["xp"] = 580, ["level"] = 16},
[138] = {["xp"] = 580, ["level"] = 16},
[139] = {["xp"] = 580, ["level"] = 16},
[140] = {["xp"] = 1150, ["level"] = 16},
[141] = {["xp"] = 340, ["level"] = 18},
[142] = {["xp"] = 1350, ["level"] = 18},
[143] = {["xp"] = 490, ["level"] = 14},
[144] = {["xp"] = 245, ["level"] = 14},
[145] = {["xp"] = 1000, ["level"] = 18},
[146] = {["xp"] = 340, ["level"] = 18},
[147] = {["xp"] = 840, ["level"] = 10},
[148] = {["xp"] = 485, ["level"] = 24},
[149] = {["xp"] = 485, ["level"] = 24},
[150] = {["xp"] = 1550, ["level"] = 20},
[151] = {["xp"] = 1250, ["level"] = 14},
[152] = {["xp"] = 1450, ["level"] = 19},
[153] = {["xp"] = 1050, ["level"] = 15},
[154] = {["xp"] = 195, ["level"] = 24},
[155] = {["xp"] = 1700, ["level"] = 18},
[156] = {["xp"] = 970, ["level"] = 24},
[157] = {["xp"] = 1450, ["level"] = 24},
[158] = {["xp"] = 485, ["level"] = 24},
[159] = {["xp"] = 970, ["level"] = 24},
[160] = {["xp"] = 610, ["level"] = 30},
[161] = {["xp"] = 1350, ["level"] = 18},
[162] = {["xp"] = 8150, ["level"] = 49},
[163] = {["xp"] = 390, ["level"] = 20},
[164] = {["xp"] = 920, ["level"] = 23},
[165] = {["xp"] = 1000, ["level"] = 25},
[166] = {["xp"] = 2600, ["level"] = 22},
[167] = {["xp"] = 1550, ["level"] = 20},
[168] = {["xp"] = 1350, ["level"] = 18},
[169] = {["xp"] = 2650, ["level"] = 26},
[170] = {["xp"] = 170, ["level"] = 2},
[171] = {["xp"] = 2380, ["level"] = 60},
[172] = {["xp"] = 0, ["level"] = nil},
[173] = {["xp"] = 1150, ["level"] = 28},
[174] = {["xp"] = 2000, ["level"] = 25},
[175] = {["xp"] = 1000, ["level"] = 25},
[176] = {["xp"] = 880, ["level"] = 11},
[177] = {["xp"] = 1500, ["level"] = 25},
[178] = {["xp"] = 1400, ["level"] = 23},
[179] = {["xp"] = 80, ["level"] = 1},
[180] = {["xp"] = 2650, ["level"] = 26},
[181] = {["xp"] = 2450, ["level"] = 30},
[182] = {["xp"] = 355, ["level"] = 4},
[183] = {["xp"] = 250, ["level"] = 3},
[184] = {["xp"] = 590, ["level"] = 9},
[185] = {["xp"] = 1250, ["level"] = 31},
[186] = {["xp"] = 1450, ["level"] = 33},
[187] = {["xp"] = 2450, ["level"] = 35},
[188] = {["xp"] = 3710, ["level"] = 37},
[189] = {["xp"] = 2450, ["level"] = 35},
[190] = {["xp"] = 1250, ["level"] = 31},
[191] = {["xp"] = 1450, ["level"] = 33},
[192] = {["xp"] = 2900, ["level"] = 38},
[193] = {["xp"] = 4370, ["level"] = 40},
[194] = {["xp"] = 1550, ["level"] = 34},
[195] = {["xp"] = 1750, ["level"] = 36},
[196] = {["xp"] = 3400, ["level"] = 41},
[197] = {["xp"] = 5050, ["level"] = 43},
[198] = {["xp"] = 670, ["level"] = 32},
[199] = {["xp"] = 1350, ["level"] = 18},
[200] = {["xp"] = 1650, ["level"] = 35},
[201] = {["xp"] = 270, ["level"] = 32},
[202] = {["xp"] = 5450, ["level"] = 40},
[203] = {["xp"] = 2150, ["level"] = 33},
[204] = {["xp"] = 3100, ["level"] = 34},
[205] = {["xp"] = 4370, ["level"] = 40},
[206] = {["xp"] = 7200, ["level"] = 46},
[207] = {["xp"] = 4900, ["level"] = 38},
[208] = {["xp"] = 7550, ["level"] = 43},
[209] = {["xp"] = 4820, ["level"] = 42},
[210] = {["xp"] = 1850, ["level"] = 37},
[211] = {["xp"] = 11900, ["level"] = 60},
[212] = {["xp"] = 6550, ["level"] = 40},
[213] = {["xp"] = 3500, ["level"] = 36},
[214] = {["xp"] = 1900, ["level"] = 17},
[215] = {["xp"] = 1450, ["level"] = 33},
[216] = {["xp"] = 1950, ["level"] = 24},
[217] = {["xp"] = 1600, ["level"] = 17},
[218] = {["xp"] = 560, ["level"] = 5},
[219] = {["xp"] = 2550, ["level"] = 25},
[220] = {["xp"] = 390, ["level"] = nil},
[221] = {["xp"] = 1750, ["level"] = 29},
[222] = {["xp"] = 1900, ["level"] = 31},
[223] = {["xp"] = 3150, ["level"] = 31},
[224] = {["xp"] = 910, ["level"] = 12},
[225] = {["xp"] = 610, ["level"] = 30},
[226] = {["xp"] = 1250, ["level"] = 21},
[227] = {["xp"] = 245, ["level"] = 30},
[228] = {["xp"] = 1850, ["level"] = 30},
[229] = {["xp"] = 245, ["level"] = 30},
[230] = {["xp"] = 1000, ["level"] = 25},
[231] = {["xp"] = 1200, ["level"] = 30},
[232] = {["xp"] = 550, ["level"] = 45},
[233] = {["xp"] = 190, ["level"] = 3},
[234] = {["xp"] = 270, ["level"] = 4},
[235] = {["xp"] = 155, ["level"] = 20},
[237] = {["xp"] = 1050, ["level"] = 15},
[238] = {["xp"] = 550, ["level"] = 45},
[239] = {["xp"] = 210, ["level"] = 10},
[240] = {["xp"] = 780, ["level"] = 20},
[242] = {["xp"] = 0, ["level"] = nil},
[243] = {["xp"] = 2850, ["level"] = 46},
[244] = {["xp"] = 290, ["level"] = 16},
[245] = {["xp"] = 1250, ["level"] = 21},
[246] = {["xp"] = 950, ["level"] = 17},
[247] = {["xp"] = 3050, ["level"] = 30},
[248] = {["xp"] = 1750, ["level"] = 22},
[249] = {["xp"] = 2100, ["level"] = 26},
[250] = {["xp"] = 680, ["level"] = 18},
[251] = {["xp"] = 245, ["level"] = 30},
[252] = {["xp"] = 245, ["level"] = 30},
[253] = {["xp"] = 3650, ["level"] = 30},
[254] = {["xp"] = 0, ["level"] = nil},
[255] = {["xp"] = 1450, ["level"] = 19},
[256] = {["xp"] = 1750, ["level"] = 22},
[257] = {["xp"] = 880, ["level"] = 16},
[258] = {["xp"] = 950, ["level"] = 17},
[261] = {["xp"] = 4140, ["level"] = 39},
[262] = {["xp"] = 510, ["level"] = 25},
[263] = {["xp"] = 1050, ["level"] = 15},
[264] = {["xp"] = 540, ["level"] = 15},
[265] = {["xp"] = 200, ["level"] = 25},
[266] = {["xp"] = 200, ["level"] = 25},
[267] = {["xp"] = 910, ["level"] = 12},
[268] = {["xp"] = 510, ["level"] = 25},
[269] = {["xp"] = 590, ["level"] = 29},
[270] = {["xp"] = 1200, ["level"] = 29},
[271] = {["xp"] = 1550, ["level"] = 20},
[272] = {["xp"] = 880, ["level"] = nil},
[273] = {["xp"] = 270, ["level"] = 15},
[274] = {["xp"] = 340, ["level"] = 18},
[275] = {["xp"] = 2650, ["level"] = 26},
[276] = {["xp"] = 1250, ["level"] = 21},
[277] = {["xp"] = 1850, ["level"] = 23},
[278] = {["xp"] = 1350, ["level"] = 18},
[279] = {["xp"] = 1750, ["level"] = 22},
[280] = {["xp"] = 680, ["level"] = 18},
[281] = {["xp"] = 510, ["level"] = 25},
[282] = {["xp"] = 335, ["level"] = 5},
[283] = {["xp"] = 1950, ["level"] = 20},
[284] = {["xp"] = 510, ["level"] = 25},
[285] = {["xp"] = 1000, ["level"] = 25},
[286] = {["xp"] = 1500, ["level"] = 25},
[287] = {["xp"] = 590, ["level"] = 9},
[288] = {["xp"] = 220, ["level"] = 27},
[289] = {["xp"] = 1750, ["level"] = 29},
[290] = {["xp"] = 1200, ["level"] = 30},
[291] = {["xp"] = 420, ["level"] = 10},
[292] = {["xp"] = 1200, ["level"] = 30},
[293] = {["xp"] = 2450, ["level"] = 30},
[294] = {["xp"] = 1950, ["level"] = 24},
[295] = {["xp"] = 2200, ["level"] = 27},
[296] = {["xp"] = 2950, ["level"] = 29},
[297] = {["xp"] = 1350, ["level"] = 18},
[298] = {["xp"] = 270, ["level"] = 15},
[299] = {["xp"] = 2300, ["level"] = 28},
[301] = {["xp"] = 540, ["level"] = 15},
[302] = {["xp"] = 270, ["level"] = 15},
[303] = {["xp"] = 2450, ["level"] = 30},
[304] = {["xp"] = 2540, ["level"] = 31},
[305] = {["xp"] = 970, ["level"] = 24},
[306] = {["xp"] = 485, ["level"] = 24},
[307] = {["xp"] = 1350, ["level"] = 15},
[308] = {["xp"] = 0, ["level"] = nil},
[309] = {["xp"] = 1050, ["level"] = 15},
[310] = {["xp"] = 135, ["level"] = 6},
[311] = {["xp"] = 630, ["level"] = 7},
[312] = {["xp"] = 910, ["level"] = 12},
[313] = {["xp"] = 630, ["level"] = 7},
[314] = {["xp"] = 910, ["level"] = 12},
[315] = {["xp"] = 780, ["level"] = 9},
[316] = {["xp"] = 120, ["level"] = 1},
[317] = {["xp"] = 680, ["level"] = 6},
[318] = {["xp"] = 160, ["level"] = 7},
[319] = {["xp"] = 530, ["level"] = 8},
[320] = {["xp"] = 880, ["level"] = 8},
[321] = {["xp"] = 590, ["level"] = 29},
[322] = {["xp"] = 1200, ["level"] = 29},
[323] = {["xp"] = 2300, ["level"] = 28},
[324] = {["xp"] = 1750, ["level"] = 29},
[325] = {["xp"] = 590, ["level"] = 29},
[328] = {["xp"] = 1850, ["level"] = 37},
[329] = {["xp"] = 1850, ["level"] = 37},
[330] = {["xp"] = 370, ["level"] = 37},
[331] = {["xp"] = 3710, ["level"] = 37},
[332] = {["xp"] = 130, ["level"] = 2},
[333] = {["xp"] = 85, ["level"] = 2},
[334] = {["xp"] = 130, ["level"] = 2},
[335] = {["xp"] = 2450, ["level"] = 30},
[336] = {["xp"] = 2450, ["level"] = 30},
[337] = {["xp"] = 1500, ["level"] = 25},
[338] = {["xp"] = 6550, ["level"] = 40},
[339] = {["xp"] = 1090, ["level"] = 40},
[340] = {["xp"] = 1090, ["level"] = 40},
[341] = {["xp"] = 1090, ["level"] = 40},
[342] = {["xp"] = 1090, ["level"] = 40},
[343] = {["xp"] = 195, ["level"] = 24},
[344] = {["xp"] = 485, ["level"] = 24},
[345] = {["xp"] = 485, ["level"] = 24},
[346] = {["xp"] = 1950, ["level"] = 24},
[347] = {["xp"] = 970, ["level"] = 24},
[348] = {["xp"] = 8300, ["level"] = 45},
[349] = {["xp"] = 0, ["level"] = nil},
[350] = {["xp"] = 250, ["level"] = 31},
[351] = {["xp"] = 6290, ["level"] = 48},
[353] = {["xp"] = 1050, ["level"] = 15},
[354] = {["xp"] = 880, ["level"] = 11},
[355] = {["xp"] = 85, ["level"] = 10},
[356] = {["xp"] = 660, ["level"] = 11},
[357] = {["xp"] = 530, ["level"] = 8},
[358] = {["xp"] = 700, ["level"] = 8},
[359] = {["xp"] = 195, ["level"] = 9},
[360] = {["xp"] = 390, ["level"] = 9},
[361] = {["xp"] = 475, ["level"] = 7},
[362] = {["xp"] = 420, ["level"] = 10},
[363] = {["xp"] = 40, ["level"] = 1},
[364] = {["xp"] = 170, ["level"] = 2},
[365] = {["xp"] = 630, ["level"] = 7},
[366] = {["xp"] = 350, ["level"] = 8},
[367] = {["xp"] = 540, ["level"] = 6},
[368] = {["xp"] = 780, ["level"] = 9},
[369] = {["xp"] = 220, ["level"] = 11},
[370] = {["xp"] = 780, ["level"] = 9},
[371] = {["xp"] = 840, ["level"] = 10},
[372] = {["xp"] = 910, ["level"] = 12},
[373] = {["xp"] = 870, ["level"] = 22},
[374] = {["xp"] = 630, ["level"] = 7},
[375] = {["xp"] = 700, ["level"] = 8},
[376] = {["xp"] = 170, ["level"] = 2},
[377] = {["xp"] = 3150, ["level"] = 26},
[378] = {["xp"] = 3300, ["level"] = 27},
[379] = {["xp"] = 4300, ["level"] = 46},
[380] = {["xp"] = 355, ["level"] = 4},
[381] = {["xp"] = 355, ["level"] = 4},
[382] = {["xp"] = 670, ["level"] = 5},
[383] = {["xp"] = 335, ["level"] = 5},
[384] = {["xp"] = 630, ["level"] = 7},
[385] = {["xp"] = 1050, ["level"] = 15},
[386] = {["xp"] = 3050, ["level"] = 25},
[387] = {["xp"] = 3150, ["level"] = 26},
[388] = {["xp"] = 3150, ["level"] = 26},
[389] = {["xp"] = 435, ["level"] = 22},
[391] = {["xp"] = 3550, ["level"] = 29},
[392] = {["xp"] = 590, ["level"] = 29},
[393] = {["xp"] = 590, ["level"] = 29},
[394] = {["xp"] = 250, ["level"] = 31},
[395] = {["xp"] = 630, ["level"] = 31},
[396] = {["xp"] = 3800, ["level"] = 31},
[397] = {["xp"] = 245, ["level"] = 30},
[398] = {["xp"] = 840, ["level"] = 10},
[399] = {["xp"] = 1050, ["level"] = 15},
[400] = {["xp"] = 110, ["level"] = 5},
[401] = {["xp"] = 1850, ["level"] = 30},
[403] = {["xp"] = 0, ["level"] = nil},
[404] = {["xp"] = 405, ["level"] = 6},
[405] = {["xp"] = 175, ["level"] = 8},
[407] = {["xp"] = 160, ["level"] = 7},
[408] = {["xp"] = 910, ["level"] = 13},
[409] = {["xp"] = 680, ["level"] = 12},
[410] = {["xp"] = 0, ["level"] = nil},
[411] = {["xp"] = 910, ["level"] = 12},
[412] = {["xp"] = 840, ["level"] = 10},
[413] = {["xp"] = 420, ["level"] = 10},
[414] = {["xp"] = 630, ["level"] = 10},
[415] = {["xp"] = 85, ["level"] = 10},
[416] = {["xp"] = 880, ["level"] = 11},
[417] = {["xp"] = 660, ["level"] = 11},
[418] = {["xp"] = 880, ["level"] = 11},
[419] = {["xp"] = 420, ["level"] = 10},
[420] = {["xp"] = 335, ["level"] = 5},
[421] = {["xp"] = 840, ["level"] = 10},
[422] = {["xp"] = 880, ["level"] = 11},
[423] = {["xp"] = 980, ["level"] = 14},
[424] = {["xp"] = 1050, ["level"] = 15},
[425] = {["xp"] = 680, ["level"] = 12},
[426] = {["xp"] = 880, ["level"] = 8},
[427] = {["xp"] = 700, ["level"] = 8},
[428] = {["xp"] = 225, ["level"] = 12},
[429] = {["xp"] = 440, ["level"] = 11},
[430] = {["xp"] = 660, ["level"] = 11},
[431] = {["xp"] = 0, ["level"] = nil},
[432] = {["xp"] = 590, ["level"] = 9},
[433] = {["xp"] = 660, ["level"] = 11},
[434] = {["xp"] = 1900, ["level"] = 31},
[435] = {["xp"] = 880, ["level"] = 11},
[436] = {["xp"] = 340, ["level"] = 18},
[437] = {["xp"] = 980, ["level"] = 14},
[438] = {["xp"] = 880, ["level"] = 16},
[439] = {["xp"] = 290, ["level"] = 16},
[440] = {["xp"] = 580, ["level"] = 16},
[441] = {["xp"] = 580, ["level"] = 16},
[442] = {["xp"] = 1950, ["level"] = 20},
[443] = {["xp"] = 1250, ["level"] = 17},
[444] = {["xp"] = 315, ["level"] = 17},
[445] = {["xp"] = 630, ["level"] = 10},
[446] = {["xp"] = 290, ["level"] = 16},
[447] = {["xp"] = 910, ["level"] = 12},
[448] = {["xp"] = 580, ["level"] = 16},
[449] = {["xp"] = 440, ["level"] = 11},
[450] = {["xp"] = 1350, ["level"] = 15},
[451] = {["xp"] = 2050, ["level"] = 18},
[452] = {["xp"] = 1050, ["level"] = 15},
[453] = {["xp"] = 1000, ["level"] = 25},
[454] = {["xp"] = 105, ["level"] = 15},
[455] = {["xp"] = 1250, ["level"] = 21},
[456] = {["xp"] = 170, ["level"] = 2},
[457] = {["xp"] = 250, ["level"] = 3},
[458] = {["xp"] = 40, ["level"] = 1},
[459] = {["xp"] = 250, ["level"] = 3},
[460] = {["xp"] = 630, ["level"] = 17},
[461] = {["xp"] = 680, ["level"] = 18},
[462] = {["xp"] = 0, ["level"] = nil},
[463] = {["xp"] = 830, ["level"] = 21},
[464] = {["xp"] = 2100, ["level"] = 26},
[465] = {["xp"] = 1600, ["level"] = 26},
[466] = {["xp"] = 1750, ["level"] = 22},
[467] = {["xp"] = 460, ["level"] = 23},
[468] = {["xp"] = 165, ["level"] = 21},
[469] = {["xp"] = 830, ["level"] = 21},
[470] = {["xp"] = 2400, ["level"] = 24},
[471] = {["xp"] = 2100, ["level"] = 26},
[472] = {["xp"] = 1000, ["level"] = 25},
[473] = {["xp"] = 210, ["level"] = 26},
[474] = {["xp"] = 2100, ["level"] = 26},
[475] = {["xp"] = 270, ["level"] = 6},
[476] = {["xp"] = 540, ["level"] = 6},
[477] = {["xp"] = 980, ["level"] = 14},
[478] = {["xp"] = 740, ["level"] = 14},
[479] = {["xp"] = 1150, ["level"] = 16},
[480] = {["xp"] = 1750, ["level"] = 22},
[481] = {["xp"] = 100, ["level"] = 14},
[482] = {["xp"] = 100, ["level"] = 14},
[483] = {["xp"] = 780, ["level"] = 9},
[484] = {["xp"] = 1750, ["level"] = 22},
[485] = {["xp"] = 6290, ["level"] = 48},
[486] = {["xp"] = 1150, ["level"] = 12},
[487] = {["xp"] = 700, ["level"] = 8},
[488] = {["xp"] = 450, ["level"] = 5},
[489] = {["xp"] = 630, ["level"] = 7},
[490] = {["xp"] = 630, ["level"] = 7},
[491] = {["xp"] = 1700, ["level"] = 18},
[492] = {["xp"] = 880, ["level"] = 11},
[493] = {["xp"] = 1150, ["level"] = 20},
[494] = {["xp"] = 780, ["level"] = 20},
[495] = {["xp"] = 410, ["level"] = 39},
[496] = {["xp"] = 175, ["level"] = 22},
[497] = {["xp"] = 435, ["level"] = 22},
[498] = {["xp"] = 2200, ["level"] = 22},
[499] = {["xp"] = 1750, ["level"] = 22},
[500] = {["xp"] = 4350, ["level"] = 36},
[501] = {["xp"] = 1950, ["level"] = 24},
[502] = {["xp"] = 1450, ["level"] = 24},
[503] = {["xp"] = 3500, ["level"] = 36},
[504] = {["xp"] = 6550, ["level"] = 40},
[505] = {["xp"] = 2150, ["level"] = 33},
[506] = {["xp"] = 2600, ["level"] = 36},
[507] = {["xp"] = 6000, ["level"] = 42},
[508] = {["xp"] = 5450, ["level"] = 40},
[509] = {["xp"] = 2300, ["level"] = 28},
[510] = {["xp"] = 1550, ["level"] = 34},
[511] = {["xp"] = 1550, ["level"] = 34},
[512] = {["xp"] = 3500, ["level"] = 36},
[513] = {["xp"] = 1150, ["level"] = 28},
[514] = {["xp"] = 1550, ["level"] = 34},
[515] = {["xp"] = 3050, ["level"] = 30},
[516] = {["xp"] = 1250, ["level"] = 21},
[517] = {["xp"] = 1200, ["level"] = 30},
[518] = {["xp"] = 3100, ["level"] = 39},
[519] = {["xp"] = 4590, ["level"] = 41},
[520] = {["xp"] = 6300, ["level"] = 43},
[521] = {["xp"] = 5050, ["level"] = 43},
[522] = {["xp"] = 980, ["level"] = 38},
[523] = {["xp"] = 5450, ["level"] = 40},
[524] = {["xp"] = 3650, ["level"] = 30},
[525] = {["xp"] = 1550, ["level"] = 34},
[526] = {["xp"] = 1750, ["level"] = 29},
[527] = {["xp"] = 1950, ["level"] = 24},
[528] = {["xp"] = 2000, ["level"] = 25},
[529] = {["xp"] = 2100, ["level"] = 26},
[530] = {["xp"] = 1550, ["level"] = 20},
[531] = {["xp"] = 1550, ["level"] = 20},
[532] = {["xp"] = 2100, ["level"] = 26},
[533] = {["xp"] = 3100, ["level"] = 34},
[535] = {["xp"] = 310, ["level"] = 34},
[536] = {["xp"] = 1850, ["level"] = 30},
[537] = {["xp"] = 4370, ["level"] = 40},
[538] = {["xp"] = 980, ["level"] = 38},
[539] = {["xp"] = 2300, ["level"] = 28},
[540] = {["xp"] = 4900, ["level"] = 38},
[541] = {["xp"] = 2450, ["level"] = 30},
[542] = {["xp"] = 4900, ["level"] = 38},
[543] = {["xp"] = 6550, ["level"] = 40},
[544] = {["xp"] = 3850, ["level"] = 34},
[545] = {["xp"] = 2450, ["level"] = 35},
[546] = {["xp"] = 2550, ["level"] = 25},
[547] = {["xp"] = 3050, ["level"] = 30},
[549] = {["xp"] = 1750, ["level"] = 22},
[550] = {["xp"] = 2710, ["level"] = 32},
[551] = {["xp"] = 1090, ["level"] = 40},
[552] = {["xp"] = 2900, ["level"] = 33},
[553] = {["xp"] = 3600, ["level"] = 33},
[554] = {["xp"] = 2150, ["level"] = 40},
[555] = {["xp"] = 2540, ["level"] = 31},
[556] = {["xp"] = 2710, ["level"] = 32},
[557] = {["xp"] = 3100, ["level"] = 34},
[558] = {["xp"] = 955, ["level"] = 60},
[559] = {["xp"] = 2710, ["level"] = 32},
[560] = {["xp"] = 270, ["level"] = 32},
[561] = {["xp"] = 270, ["level"] = 32},
[562] = {["xp"] = 2000, ["level"] = 32},
[563] = {["xp"] = 3350, ["level"] = 32},
[564] = {["xp"] = 3100, ["level"] = 34},
[565] = {["xp"] = 3100, ["level"] = 34},
[566] = {["xp"] = 4370, ["level"] = 40},
[567] = {["xp"] = 2300, ["level"] = 28},
[568] = {["xp"] = 3500, ["level"] = 36},
[569] = {["xp"] = 3710, ["level"] = 37},
[570] = {["xp"] = 2900, ["level"] = 38},
[571] = {["xp"] = 3400, ["level"] = 41},
[572] = {["xp"] = 3400, ["level"] = 41},
[573] = {["xp"] = 6600, ["level"] = 44},
[574] = {["xp"] = 3920, ["level"] = 38},
[575] = {["xp"] = 1250, ["level"] = 31},
[576] = {["xp"] = 3600, ["level"] = 42},
[577] = {["xp"] = 1750, ["level"] = 36},
[578] = {["xp"] = 3710, ["level"] = 37},
[579] = {["xp"] = 0, ["level"] = nil},
[580] = {["xp"] = 6810, ["level"] = 50},
[581] = {["xp"] = 2300, ["level"] = 34},
[582] = {["xp"] = 2750, ["level"] = 37},
[583] = {["xp"] = 245, ["level"] = 30},
[584] = {["xp"] = 4590, ["level"] = 41},
[585] = {["xp"] = 3250, ["level"] = 40},
[586] = {["xp"] = 5790, ["level"] = 46},
[587] = {["xp"] = 2250, ["level"] = 41},
[588] = {["xp"] = 550, ["level"] = 45},
[589] = {["xp"] = 5540, ["level"] = 45},
[590] = {["xp"] = 110, ["level"] = 5},
[591] = {["xp"] = 5790, ["level"] = 46},
[592] = {["xp"] = 7200, ["level"] = 46},
[593] = {["xp"] = 0, ["level"] = nil},
[594] = {["xp"] = 3600, ["level"] = 42},
[595] = {["xp"] = 3400, ["level"] = 41},
[596] = {["xp"] = 2750, ["level"] = 37},
[597] = {["xp"] = 3400, ["level"] = 41},
[598] = {["xp"] = 4820, ["level"] = 42},
[599] = {["xp"] = 1140, ["level"] = 41},
[600] = {["xp"] = 4590, ["level"] = 41},
[601] = {["xp"] = 3710, ["level"] = 37},
[602] = {["xp"] = 1850, ["level"] = 37},
[603] = {["xp"] = 1850, ["level"] = 37},
[604] = {["xp"] = 4820, ["level"] = 42},
[605] = {["xp"] = 3300, ["level"] = 35},
[606] = {["xp"] = 1140, ["level"] = 41},
[607] = {["xp"] = 3400, ["level"] = 41},
[608] = {["xp"] = 6000, ["level"] = 42},
[609] = {["xp"] = 5290, ["level"] = 44},
[610] = {["xp"] = 3100, ["level"] = 39},
[611] = {["xp"] = 4370, ["level"] = 40},
[613] = {["xp"] = 6600, ["level"] = 44},
[614] = {["xp"] = 4820, ["level"] = 42},
[615] = {["xp"] = 680, ["level"] = 50},
[616] = {["xp"] = 370, ["level"] = 37},
[617] = {["xp"] = 5050, ["level"] = 43},
[618] = {["xp"] = 7200, ["level"] = 42},
[619] = {["xp"] = 0, ["level"] = nil},
[620] = {["xp"] = 2400, ["level"] = 42},
[621] = {["xp"] = 5290, ["level"] = 44},
[622] = {["xp"] = 3710, ["level"] = 37},
[623] = {["xp"] = 3750, ["level"] = 43},
[624] = {["xp"] = 5050, ["level"] = 43},
[625] = {["xp"] = 5050, ["level"] = 43},
[626] = {["xp"] = 8800, ["level"] = 51},
[627] = {["xp"] = 2750, ["level"] = 37},
[628] = {["xp"] = 3920, ["level"] = 38},
[629] = {["xp"] = 3710, ["level"] = 37},
[630] = {["xp"] = 4820, ["level"] = 42},
[631] = {["xp"] = 2540, ["level"] = 31},
[632] = {["xp"] = 2540, ["level"] = 31},
[633] = {["xp"] = 2540, ["level"] = 31},
[634] = {["xp"] = 1250, ["level"] = 31},
[635] = {["xp"] = 330, ["level"] = 35},
[636] = {["xp"] = 330, ["level"] = 35},
[637] = {["xp"] = 2450, ["level"] = 30},
[638] = {["xp"] = 920, ["level"] = 37},
[639] = {["xp"] = 3710, ["level"] = 37},
[640] = {["xp"] = 4370, ["level"] = 40},
[641] = {["xp"] = 435, ["level"] = 40},
[642] = {["xp"] = 3710, ["level"] = 37},
[643] = {["xp"] = 4590, ["level"] = 41},
[644] = {["xp"] = 4820, ["level"] = 42},
[645] = {["xp"] = 1200, ["level"] = 42},
[646] = {["xp"] = 6000, ["level"] = 42},
[647] = {["xp"] = 3050, ["level"] = 30},
[648] = {["xp"] = 7850, ["level"] = 48},
[649] = {["xp"] = 625, ["level"] = 48},
[650] = {["xp"] = 6290, ["level"] = 48},
[651] = {["xp"] = 3920, ["level"] = 38},
[652] = {["xp"] = 4820, ["level"] = 42},
[653] = {["xp"] = 3250, ["level"] = 40},
[654] = {["xp"] = 5790, ["level"] = 46},
[655] = {["xp"] = 310, ["level"] = 34},
[656] = {["xp"] = 10200, ["level"] = 50},
[657] = {["xp"] = 0, ["level"] = nil},
[658] = {["xp"] = 3500, ["level"] = 36},
[659] = {["xp"] = 1450, ["level"] = 33},
[660] = {["xp"] = 3710, ["level"] = 37},
[661] = {["xp"] = 4600, ["level"] = 37},
[662] = {["xp"] = 4370, ["level"] = 40},
[663] = {["xp"] = 820, ["level"] = 35},
[664] = {["xp"] = 4370, ["level"] = 40},
[665] = {["xp"] = 4370, ["level"] = 40},
[666] = {["xp"] = 5450, ["level"] = 40},
[667] = {["xp"] = 6600, ["level"] = 44},
[668] = {["xp"] = 2150, ["level"] = 40},
[669] = {["xp"] = 4370, ["level"] = 40},
[670] = {["xp"] = 4370, ["level"] = 40},
[671] = {["xp"] = 2900, ["level"] = 33},
[672] = {["xp"] = 3100, ["level"] = 34},
[673] = {["xp"] = 4370, ["level"] = 40},
[674] = {["xp"] = 310, ["level"] = 34},
[675] = {["xp"] = 310, ["level"] = 34},
[676] = {["xp"] = 2710, ["level"] = 32},
[677] = {["xp"] = 2710, ["level"] = 32},
[678] = {["xp"] = 3920, ["level"] = 38},
[679] = {["xp"] = 4370, ["level"] = 40},
[680] = {["xp"] = 5450, ["level"] = 40},
[681] = {["xp"] = 2540, ["level"] = 31},
[682] = {["xp"] = 4600, ["level"] = 37},
[683] = {["xp"] = 1200, ["level"] = 30},
[684] = {["xp"] = 5150, ["level"] = 39},
[685] = {["xp"] = 5450, ["level"] = 40},
[686] = {["xp"] = 1200, ["level"] = 30},
[687] = {["xp"] = 2150, ["level"] = 40},
[688] = {["xp"] = 3250, ["level"] = 40},
[689] = {["xp"] = 2540, ["level"] = 31},
[690] = {["xp"] = 2000, ["level"] = 32},
[691] = {["xp"] = 4350, ["level"] = 36},
[692] = {["xp"] = 4590, ["level"] = 41},
[693] = {["xp"] = 4140, ["level"] = 39},
[694] = {["xp"] = 4140, ["level"] = 39},
[695] = {["xp"] = 410, ["level"] = 39},
[696] = {["xp"] = 4140, ["level"] = 39},
[697] = {["xp"] = 5150, ["level"] = 39},
[698] = {["xp"] = 4370, ["level"] = 40},
[699] = {["xp"] = 4820, ["level"] = 42},
[700] = {["xp"] = 2540, ["level"] = 31},
[701] = {["xp"] = 3710, ["level"] = 37},
[702] = {["xp"] = 370, ["level"] = 37},
[703] = {["xp"] = 3250, ["level"] = 40},
[704] = {["xp"] = 3920, ["level"] = 38},
[705] = {["xp"] = 3710, ["level"] = 37},
[706] = {["xp"] = 5540, ["level"] = 45},
[707] = {["xp"] = 920, ["level"] = 37},
[708] = {["xp"] = 3250, ["level"] = 40},
[709] = {["xp"] = 4370, ["level"] = 40},
[710] = {["xp"] = 3710, ["level"] = 37},
[711] = {["xp"] = 4140, ["level"] = 39},
[712] = {["xp"] = 4820, ["level"] = 42},
[713] = {["xp"] = 3710, ["level"] = 37},
[714] = {["xp"] = 3710, ["level"] = 37},
[715] = {["xp"] = 2750, ["level"] = 37},
[716] = {["xp"] = 3600, ["level"] = 42},
[717] = {["xp"] = 6810, ["level"] = 50},
[718] = {["xp"] = 2900, ["level"] = 38},
[719] = {["xp"] = 3300, ["level"] = 35},
[720] = {["xp"] = 1650, ["level"] = 35},
[721] = {["xp"] = 3300, ["level"] = 35},
[722] = {["xp"] = 4370, ["level"] = 40},
[723] = {["xp"] = 3250, ["level"] = 40},
[724] = {["xp"] = 4370, ["level"] = 40},
[725] = {["xp"] = 2150, ["level"] = 40},
[726] = {["xp"] = 3250, ["level"] = 40},
[727] = {["xp"] = 1090, ["level"] = 40},
[728] = {["xp"] = 1090, ["level"] = 40},
[729] = {["xp"] = 1150, ["level"] = 20},
[730] = {["xp"] = 490, ["level"] = 14},
[731] = {["xp"] = 1950, ["level"] = 20},
[732] = {["xp"] = 5050, ["level"] = 43},
[733] = {["xp"] = 4370, ["level"] = 40},
[734] = {["xp"] = 0, ["level"] = nil},
[735] = {["xp"] = 7900, ["level"] = 44},
[736] = {["xp"] = 7900, ["level"] = 44},
[737] = {["xp"] = 3250, ["level"] = 40},
[738] = {["xp"] = 1950, ["level"] = 38},
[739] = {["xp"] = 4820, ["level"] = 42},
[741] = {["xp"] = 1150, ["level"] = 20},
[742] = {["xp"] = 155, ["level"] = 20},
[743] = {["xp"] = 700, ["level"] = 8},
[744] = {["xp"] = 880, ["level"] = 11},
[745] = {["xp"] = 540, ["level"] = 6},
[746] = {["xp"] = 700, ["level"] = 8},
[747] = {["xp"] = 170, ["level"] = 2},
[748] = {["xp"] = 450, ["level"] = 5},
[749] = {["xp"] = 530, ["level"] = 8},
[750] = {["xp"] = 250, ["level"] = 3},
[751] = {["xp"] = 530, ["level"] = 8},
[752] = {["xp"] = 85, ["level"] = 2},
[753] = {["xp"] = 250, ["level"] = 3},
[754] = {["xp"] = 540, ["level"] = 6},
[755] = {["xp"] = 250, ["level"] = 3},
[756] = {["xp"] = 630, ["level"] = 7},
[757] = {["xp"] = 445, ["level"] = 4},
[758] = {["xp"] = 700, ["level"] = 8},
[759] = {["xp"] = 840, ["level"] = 10},
[760] = {["xp"] = 1050, ["level"] = 10},
[761] = {["xp"] = 680, ["level"] = 6},
[762] = {["xp"] = 6600, ["level"] = 44},
[763] = {["xp"] = 335, ["level"] = 5},
[764] = {["xp"] = 630, ["level"] = 10},
[765] = {["xp"] = 910, ["level"] = 12},
[766] = {["xp"] = 700, ["level"] = 8},
[767] = {["xp"] = 55, ["level"] = 6},
[768] = {["xp"] = 880, ["level"] = 8},
[769] = {["xp"] = 420, ["level"] = 10},
[770] = {["xp"] = 910, ["level"] = 12},
[771] = {["xp"] = 630, ["level"] = 7},
[772] = {["xp"] = 475, ["level"] = 7},
[773] = {["xp"] = 840, ["level"] = 10},
[775] = {["xp"] = 420, ["level"] = 10},
[776] = {["xp"] = 1250, ["level"] = 14},
[777] = {["xp"] = 0, ["level"] = nil},
[778] = {["xp"] = 6900, ["level"] = 45},
[779] = {["xp"] = 0, ["level"] = nil},
[780] = {["xp"] = 445, ["level"] = 4},
[781] = {["xp"] = 355, ["level"] = 4},
[782] = {["xp"] = 5050, ["level"] = 43},
[783] = {["xp"] = 40, ["level"] = 1},
[784] = {["xp"] = 630, ["level"] = 7},
[785] = {["xp"] = 350, ["level"] = 8},
[786] = {["xp"] = 700, ["level"] = 8},
[787] = {["xp"] = 40, ["level"] = 1},
[788] = {["xp"] = 170, ["level"] = 2},
[789] = {["xp"] = 250, ["level"] = 3},
[790] = {["xp"] = 450, ["level"] = 5},
[791] = {["xp"] = 630, ["level"] = 7},
[792] = {["xp"] = 445, ["level"] = 4},
[793] = {["xp"] = 8500, ["level"] = 50},
[794] = {["xp"] = 670, ["level"] = 5},
[795] = {["xp"] = 0, ["level"] = nil},
[804] = {["xp"] = 110, ["level"] = 5},
[805] = {["xp"] = 225, ["level"] = 5},
[806] = {["xp"] = 910, ["level"] = 12},
[808] = {["xp"] = 780, ["level"] = 9},
[809] = {["xp"] = 455, ["level"] = 13},
[810] = {["xp"] = 450, ["level"] = 5},
[812] = {["xp"] = 980, ["level"] = 9},
[813] = {["xp"] = 0, ["level"] = nil},
[814] = {["xp"] = 540, ["level"] = 6},
[815] = {["xp"] = 700, ["level"] = 8},
[816] = {["xp"] = 880, ["level"] = 11},
[817] = {["xp"] = 700, ["level"] = 8},
[818] = {["xp"] = 630, ["level"] = 7},
[819] = {["xp"] = 1050, ["level"] = 15},
[821] = {["xp"] = 1350, ["level"] = 15},
[822] = {["xp"] = 0, ["level"] = nil},
[823] = {["xp"] = 315, ["level"] = 7},
[824] = {["xp"] = 2200, ["level"] = 27},
[825] = {["xp"] = 700, ["level"] = 8},
[826] = {["xp"] = 840, ["level"] = 10},
[827] = {["xp"] = 910, ["level"] = 12},
[828] = {["xp"] = 90, ["level"] = 12},
[829] = {["xp"] = 455, ["level"] = 12},
[830] = {["xp"] = 630, ["level"] = 7},
[831] = {["xp"] = 630, ["level"] = 7},
[832] = {["xp"] = 680, ["level"] = 12},
[833] = {["xp"] = 630, ["level"] = 10},
[834] = {["xp"] = 780, ["level"] = 9},
[835] = {["xp"] = 880, ["level"] = 11},
[836] = {["xp"] = 7850, ["level"] = 48},
[837] = {["xp"] = 630, ["level"] = 10},
[838] = {["xp"] = 815, ["level"] = 55},
[839] = {["xp"] = 10, ["level"] = 1},
[840] = {["xp"] = 455, ["level"] = 12},
[841] = {["xp"] = 0, ["level"] = nil},
[842] = {["xp"] = 910, ["level"] = 12},
[843] = {["xp"] = 1850, ["level"] = 23},
[844] = {["xp"] = 910, ["level"] = 12},
[845] = {["xp"] = 910, ["level"] = 13},
[846] = {["xp"] = 2100, ["level"] = 26},
[847] = {["xp"] = 3710, ["level"] = 37},
[848] = {["xp"] = 1050, ["level"] = 15},
[849] = {["xp"] = 2100, ["level"] = 26},
[850] = {["xp"] = 880, ["level"] = 16},
[851] = {["xp"] = 1000, ["level"] = 18},
[852] = {["xp"] = 1100, ["level"] = 19},
[853] = {["xp"] = 800, ["level"] = 15},
[854] = {["xp"] = 225, ["level"] = 12},
[855] = {["xp"] = 1250, ["level"] = 14},
[857] = {["xp"] = 2450, ["level"] = 30},
[858] = {["xp"] = 1350, ["level"] = 18},
[860] = {["xp"] = 85, ["level"] = 10},
[861] = {["xp"] = 840, ["level"] = 10},
[862] = {["xp"] = 1850, ["level"] = 23},
[863] = {["xp"] = 1700, ["level"] = 18},
[864] = {["xp"] = 7200, ["level"] = 46},
[865] = {["xp"] = 1350, ["level"] = 18},
[866] = {["xp"] = 1150, ["level"] = 16},
[867] = {["xp"] = 1050, ["level"] = 15},
[868] = {["xp"] = 1750, ["level"] = 22},
[869] = {["xp"] = 910, ["level"] = 13},
[870] = {["xp"] = 680, ["level"] = 13},
[871] = {["xp"] = 910, ["level"] = 12},
[872] = {["xp"] = 1050, ["level"] = 15},
[873] = {["xp"] = 2750, ["level"] = 27},
[874] = {["xp"] = 550, ["level"] = 27},
[875] = {["xp"] = 1150, ["level"] = 16},
[876] = {["xp"] = 1950, ["level"] = 20},
[877] = {["xp"] = 1150, ["level"] = 16},
[878] = {["xp"] = 1650, ["level"] = 21},
[879] = {["xp"] = 1500, ["level"] = 25},
[880] = {["xp"] = 1150, ["level"] = 16},
[881] = {["xp"] = 1450, ["level"] = 16},
[882] = {["xp"] = 1800, ["level"] = 19},
[883] = {["xp"] = 1300, ["level"] = 22},
[884] = {["xp"] = 1450, ["level"] = 24},
[885] = {["xp"] = 1500, ["level"] = 25},
[886] = {["xp"] = 85, ["level"] = 10},
[887] = {["xp"] = 740, ["level"] = 14},
[888] = {["xp"] = 1150, ["level"] = 16},
[889] = {["xp"] = 0, ["level"] = nil},
[890] = {["xp"] = 100, ["level"] = 14},
[891] = {["xp"] = 1550, ["level"] = 20},
[892] = {["xp"] = 100, ["level"] = 14},
[893] = {["xp"] = 1950, ["level"] = 24},
[894] = {["xp"] = 740, ["level"] = 14},
[895] = {["xp"] = 1150, ["level"] = 16},
[896] = {["xp"] = 1700, ["level"] = 18},
[897] = {["xp"] = 2400, ["level"] = 24},
[898] = {["xp"] = 1950, ["level"] = 20},
[899] = {["xp"] = 1950, ["level"] = 20},
[900] = {["xp"] = 490, ["level"] = 14},
[901] = {["xp"] = 740, ["level"] = 14},
[902] = {["xp"] = 1150, ["level"] = 16},
[903] = {["xp"] = 1050, ["level"] = 15},
[905] = {["xp"] = 1250, ["level"] = 17},
[906] = {["xp"] = 3050, ["level"] = 25},
[907] = {["xp"] = 1700, ["level"] = 18},
[908] = {["xp"] = 2750, ["level"] = 27},
[909] = {["xp"] = 3050, ["level"] = 30},
[910] = {["xp"] = 955, ["level"] = 60},
[911] = {["xp"] = 955, ["level"] = 60},
[912] = {["xp"] = 225, ["level"] = 12},
[913] = {["xp"] = 1950, ["level"] = 20},
[914] = {["xp"] = 2600, ["level"] = 22},
[915] = {["xp"] = 955, ["level"] = 60},
[916] = {["xp"] = 355, ["level"] = 4},
[917] = {["xp"] = 560, ["level"] = 5},
[918] = {["xp"] = 630, ["level"] = 7},
[919] = {["xp"] = 790, ["level"] = 7},
[920] = {["xp"] = 45, ["level"] = 5},
[921] = {["xp"] = 335, ["level"] = 5},
[922] = {["xp"] = 315, ["level"] = 7},
[923] = {["xp"] = 980, ["level"] = 9},
[924] = {["xp"] = 1250, ["level"] = 14},
[925] = {["xp"] = 955, ["level"] = 60},
[926] = {["xp"] = 0, ["level"] = nil},
[927] = {["xp"] = 455, ["level"] = 12},
[928] = {["xp"] = 225, ["level"] = 5},
[929] = {["xp"] = 335, ["level"] = 5},
[930] = {["xp"] = 840, ["level"] = 10},
[931] = {["xp"] = 840, ["level"] = 10},
[932] = {["xp"] = 630, ["level"] = 7},
[933] = {["xp"] = 780, ["level"] = 9},
[934] = {["xp"] = 660, ["level"] = 11},
[935] = {["xp"] = 1100, ["level"] = 11},
[936] = {["xp"] = 680, ["level"] = 50},
[937] = {["xp"] = 440, ["level"] = 11},
[938] = {["xp"] = 910, ["level"] = 12},
[939] = {["xp"] = 7890, ["level"] = 54},
[940] = {["xp"] = 440, ["level"] = 11},
[941] = {["xp"] = 910, ["level"] = 12},
[942] = {["xp"] = 1550, ["level"] = 20},
[943] = {["xp"] = 2400, ["level"] = 24},
[944] = {["xp"] = 630, ["level"] = 17},
[945] = {["xp"] = 1350, ["level"] = 18},
[947] = {["xp"] = 1250, ["level"] = 17},
[948] = {["xp"] = 630, ["level"] = 17},
[949] = {["xp"] = 1250, ["level"] = 17},
[950] = {["xp"] = 950, ["level"] = 17},
[951] = {["xp"] = 1950, ["level"] = 20},
[952] = {["xp"] = 880, ["level"] = 11},
[953] = {["xp"] = 910, ["level"] = 12},
[954] = {["xp"] = 680, ["level"] = 12},
[955] = {["xp"] = 910, ["level"] = 12},
[956] = {["xp"] = 910, ["level"] = 13},
[957] = {["xp"] = 680, ["level"] = 13},
[958] = {["xp"] = 910, ["level"] = 12},
[959] = {["xp"] = 1350, ["level"] = 18},
[960] = {["xp"] = 0, ["level"] = nil},
[961] = {["xp"] = 0, ["level"] = nil},
[962] = {["xp"] = 1350, ["level"] = 18},
[963] = {["xp"] = 880, ["level"] = 16},
[964] = {["xp"] = 6500, ["level"] = 57},
[965] = {["xp"] = 680, ["level"] = 18},
[966] = {["xp"] = 1350, ["level"] = 18},
[967] = {["xp"] = 1000, ["level"] = 18},
[968] = {["xp"] = 1950, ["level"] = 20},
[969] = {["xp"] = 9550, ["level"] = 60},
[970] = {["xp"] = 1650, ["level"] = 21},
[971] = {["xp"] = 2750, ["level"] = 23},
[972] = {["xp"] = 0, ["level"] = nil},
[973] = {["xp"] = 1950, ["level"] = 24},
[974] = {["xp"] = 8170, ["level"] = 55},
[975] = {["xp"] = 0, ["level"] = nil},
[976] = {["xp"] = 2900, ["level"] = 24},
[977] = {["xp"] = 6750, ["level"] = 58},
[978] = {["xp"] = 8170, ["level"] = 55},
[979] = {["xp"] = 4350, ["level"] = 57},
[980] = {["xp"] = 4050, ["level"] = 55},
[981] = {["xp"] = 2540, ["level"] = 31},
[982] = {["xp"] = 1250, ["level"] = 17},
[983] = {["xp"] = 840, ["level"] = 10},
[984] = {["xp"] = 740, ["level"] = 14},
[985] = {["xp"] = 980, ["level"] = 14},
[986] = {["xp"] = 1550, ["level"] = 20},
[990] = {["xp"] = 365, ["level"] = 19},
[991] = {["xp"] = 1450, ["level"] = 19},
[992] = {["xp"] = 4300, ["level"] = 46},
[993] = {["xp"] = 780, ["level"] = 20},
[994] = {["xp"] = 1750, ["level"] = 22},
[995] = {["xp"] = 780, ["level"] = 20},
[996] = {["xp"] = 0, ["level"] = nil},
[997] = {["xp"] = 225, ["level"] = 5},
[998] = {["xp"] = 0, ["level"] = nil},
[1000] = {["xp"] = 815, ["level"] = 55},
[1001] = {["xp"] = 1150, ["level"] = 12},
[1002] = {["xp"] = 980, ["level"] = 14},
[1003] = {["xp"] = 1150, ["level"] = 16},
[1004] = {["xp"] = 815, ["level"] = 55},
[1007] = {["xp"] = 1150, ["level"] = 20},
[1008] = {["xp"] = 1450, ["level"] = 19},
[1009] = {["xp"] = 2550, ["level"] = 25},
[1010] = {["xp"] = 780, ["level"] = 20},
[1011] = {["xp"] = 2350, ["level"] = 29},
[1012] = {["xp"] = 3350, ["level"] = 32},
[1013] = {["xp"] = 3150, ["level"] = 26},
[1014] = {["xp"] = 3300, ["level"] = 27},
[1015] = {["xp"] = 815, ["level"] = 55},
[1016] = {["xp"] = 1950, ["level"] = 24},
[1017] = {["xp"] = 2550, ["level"] = 25},
[1018] = {["xp"] = 815, ["level"] = 55},
[1019] = {["xp"] = 815, ["level"] = 55},
[1020] = {["xp"] = 1950, ["level"] = 20},
[1021] = {["xp"] = 2710, ["level"] = 32},
[1022] = {["xp"] = 2450, ["level"] = 30},
[1023] = {["xp"] = 1250, ["level"] = 21},
[1024] = {["xp"] = 830, ["level"] = 21},
[1025] = {["xp"] = 1950, ["level"] = 24},
[1026] = {["xp"] = 2200, ["level"] = 27},
[1027] = {["xp"] = 2300, ["level"] = 28},
[1028] = {["xp"] = 1700, ["level"] = 28},
[1029] = {["xp"] = 230, ["level"] = 28},
[1030] = {["xp"] = 1700, ["level"] = 28},
[1031] = {["xp"] = 2710, ["level"] = 32},
[1032] = {["xp"] = 2710, ["level"] = 32},
[1033] = {["xp"] = 1750, ["level"] = 22},
[1034] = {["xp"] = 1850, ["level"] = 23},
[1035] = {["xp"] = 3050, ["level"] = 30},
[1036] = {["xp"] = 955, ["level"] = 60},
[1037] = {["xp"] = 610, ["level"] = 30},
[1038] = {["xp"] = 610, ["level"] = 30},
[1039] = {["xp"] = 1200, ["level"] = 30},
[1040] = {["xp"] = 610, ["level"] = 30},
[1041] = {["xp"] = 1200, ["level"] = 30},
[1042] = {["xp"] = 245, ["level"] = 30},
[1043] = {["xp"] = 2450, ["level"] = 30},
[1044] = {["xp"] = 3050, ["level"] = 30},
[1045] = {["xp"] = 2450, ["level"] = 30},
[1046] = {["xp"] = 3050, ["level"] = 30},
[1047] = {["xp"] = 815, ["level"] = 55},
[1048] = {["xp"] = 7200, ["level"] = 42},
[1049] = {["xp"] = 5850, ["level"] = 38},
[1050] = {["xp"] = 5850, ["level"] = 38},
[1051] = {["xp"] = 4350, ["level"] = 33},
[1052] = {["xp"] = 2150, ["level"] = 40},
[1053] = {["xp"] = 6550, ["level"] = 40},
[1054] = {["xp"] = 2000, ["level"] = 25},
[1055] = {["xp"] = 230, ["level"] = 28},
[1056] = {["xp"] = 680, ["level"] = 18},
[1057] = {["xp"] = 2200, ["level"] = 27},
[1058] = {["xp"] = 2100, ["level"] = 26},
[1059] = {["xp"] = 2200, ["level"] = 27},
[1060] = {["xp"] = 1550, ["level"] = 20},
[1061] = {["xp"] = 315, ["level"] = 17},
[1062] = {["xp"] = 1450, ["level"] = 19},
[1063] = {["xp"] = 680, ["level"] = 18},
[1064] = {["xp"] = 340, ["level"] = 18},
[1065] = {["xp"] = 1350, ["level"] = 18},
[1066] = {["xp"] = 1850, ["level"] = 23},
[1067] = {["xp"] = 1400, ["level"] = 23},
[1068] = {["xp"] = 1850, ["level"] = 23},
[1069] = {["xp"] = 1950, ["level"] = 20},
[1070] = {["xp"] = 830, ["level"] = 21},
[1071] = {["xp"] = 1650, ["level"] = 21},
[1072] = {["xp"] = 830, ["level"] = 21},
[1073] = {["xp"] = 1650, ["level"] = 21},
[1074] = {["xp"] = 830, ["level"] = 21},
[1075] = {["xp"] = 830, ["level"] = 21},
[1076] = {["xp"] = 1650, ["level"] = 21},
[1077] = {["xp"] = 830, ["level"] = 21},
[1078] = {["xp"] = 2100, ["level"] = 26},
[1079] = {["xp"] = 2200, ["level"] = 22},
[1080] = {["xp"] = 2200, ["level"] = 22},
[1081] = {["xp"] = 3400, ["level"] = 28},
[1082] = {["xp"] = 870, ["level"] = 22},
[1083] = {["xp"] = 2100, ["level"] = 26},
[1084] = {["xp"] = 2300, ["level"] = 28},
[1085] = {["xp"] = 165, ["level"] = 21},
[1086] = {["xp"] = 2300, ["level"] = 23},
[1087] = {["xp"] = 1500, ["level"] = 25},
[1088] = {["xp"] = 2350, ["level"] = 29},
[1089] = {["xp"] = 2350, ["level"] = 29},
[1090] = {["xp"] = 2200, ["level"] = 22},
[1091] = {["xp"] = 175, ["level"] = 22},
[1092] = {["xp"] = 1300, ["level"] = 22},
[1093] = {["xp"] = 1650, ["level"] = 21},
[1094] = {["xp"] = 830, ["level"] = 21},
[1095] = {["xp"] = 1100, ["level"] = 27},
[1096] = {["xp"] = 2200, ["level"] = 27},
[1097] = {["xp"] = 105, ["level"] = 15},
[1098] = {["xp"] = 3050, ["level"] = 25},
[1100] = {["xp"] = 1100, ["level"] = 27},
[1101] = {["xp"] = 3300, ["level"] = 27},
[1102] = {["xp"] = 3300, ["level"] = 27},
[1103] = {["xp"] = 0, ["level"] = nil},
[1104] = {["xp"] = 1850, ["level"] = 30},
[1105] = {["xp"] = 2450, ["level"] = 30},
[1106] = {["xp"] = 1650, ["level"] = 35},
[1107] = {["xp"] = 3300, ["level"] = 35},
[1108] = {["xp"] = 4140, ["level"] = 39},
[1109] = {["xp"] = 3150, ["level"] = 26},
[1110] = {["xp"] = 2540, ["level"] = 31},
[1111] = {["xp"] = 1750, ["level"] = 36},
[1112] = {["xp"] = 1750, ["level"] = 36},
[1113] = {["xp"] = 4350, ["level"] = 33},
[1114] = {["xp"] = 870, ["level"] = 36},
[1115] = {["xp"] = 1750, ["level"] = 36},
[1116] = {["xp"] = 4350, ["level"] = 36},
[1117] = {["xp"] = 4350, ["level"] = 36},
[1118] = {["xp"] = 1260, ["level"] = 43},
[1119] = {["xp"] = 5290, ["level"] = 44},
[1120] = {["xp"] = 525, ["level"] = 44},
[1121] = {["xp"] = 525, ["level"] = 44},
[1122] = {["xp"] = 2600, ["level"] = 44},
[1123] = {["xp"] = 2040, ["level"] = 55},
[1124] = {["xp"] = 4050, ["level"] = 55},
[1125] = {["xp"] = 8170, ["level"] = 55},
[1126] = {["xp"] = 8730, ["level"] = 57},
[1130] = {["xp"] = 0, ["level"] = nil},
[1131] = {["xp"] = 2450, ["level"] = 30},
[1132] = {["xp"] = 780, ["level"] = 20},
[1133] = {["xp"] = 0, ["level"] = nil},
[1134] = {["xp"] = 1650, ["level"] = 21},
[1135] = {["xp"] = 3650, ["level"] = 30},
[1136] = {["xp"] = 5550, ["level"] = 37},
[1137] = {["xp"] = 1950, ["level"] = 38},
[1138] = {["xp"] = 1250, ["level"] = 17},
[1139] = {["xp"] = 8300, ["level"] = 45},
[1140] = {["xp"] = 2300, ["level"] = 28},
[1141] = {["xp"] = 980, ["level"] = 14},
[1142] = {["xp"] = 3650, ["level"] = 30},
[1143] = {["xp"] = 2540, ["level"] = 31},
[1144] = {["xp"] = 3650, ["level"] = 30},
[1145] = {["xp"] = 1450, ["level"] = 33},
[1146] = {["xp"] = 2150, ["level"] = 33},
[1147] = {["xp"] = 3300, ["level"] = 35},
[1148] = {["xp"] = 3300, ["level"] = 35},
[1149] = {["xp"] = 1050, ["level"] = 26},
[1150] = {["xp"] = 2450, ["level"] = 30},
[1151] = {["xp"] = 3050, ["level"] = 30},
[1152] = {["xp"] = 1200, ["level"] = 30},
[1153] = {["xp"] = 2350, ["level"] = 29},
[1154] = {["xp"] = 1850, ["level"] = 30},
[1159] = {["xp"] = 1200, ["level"] = 30},
[1160] = {["xp"] = 5250, ["level"] = 36},
[1164] = {["xp"] = 3500, ["level"] = 36},
[1166] = {["xp"] = 5700, ["level"] = 41},
[1167] = {["xp"] = 570, ["level"] = 28},
[1168] = {["xp"] = 4590, ["level"] = 41},
[1169] = {["xp"] = 6850, ["level"] = 41},
[1170] = {["xp"] = 455, ["level"] = 41},
[1171] = {["xp"] = 455, ["level"] = 41},
[1172] = {["xp"] = 5700, ["level"] = 41},
[1173] = {["xp"] = 6900, ["level"] = 45},
[1175] = {["xp"] = 2900, ["level"] = 33},
[1176] = {["xp"] = 1850, ["level"] = 30},
[1177] = {["xp"] = 3500, ["level"] = 36},
[1178] = {["xp"] = 920, ["level"] = 37},
[1179] = {["xp"] = 2450, ["level"] = 30},
[1180] = {["xp"] = 920, ["level"] = 37},
[1181] = {["xp"] = 370, ["level"] = 37},
[1182] = {["xp"] = 3710, ["level"] = 37},
[1183] = {["xp"] = 920, ["level"] = 37},
[1184] = {["xp"] = 1650, ["level"] = 35},
[1185] = {["xp"] = 4350, ["level"] = 57},
[1186] = {["xp"] = 370, ["level"] = 37},
[1187] = {["xp"] = 4590, ["level"] = 41},
[1188] = {["xp"] = 1140, ["level"] = 41},
[1189] = {["xp"] = 1140, ["level"] = 41},
[1190] = {["xp"] = 2250, ["level"] = 41},
[1191] = {["xp"] = 0, ["level"] = nil},
[1192] = {["xp"] = 0, ["level"] = nil},
[1193] = {["xp"] = 0, ["level"] = nil},
[1194] = {["xp"] = 2250, ["level"] = 41},
[1195] = {["xp"] = 2550, ["level"] = 25},
[1196] = {["xp"] = 590, ["level"] = 29},
[1197] = {["xp"] = 2350, ["level"] = 29},
[1198] = {["xp"] = 2900, ["level"] = 24},
[1199] = {["xp"] = 3050, ["level"] = 25},
[1200] = {["xp"] = 3300, ["level"] = 27},
[1201] = {["xp"] = 3300, ["level"] = 35},
[1202] = {["xp"] = 3300, ["level"] = 35},
[1203] = {["xp"] = 4100, ["level"] = 35},
[1204] = {["xp"] = 3920, ["level"] = 38},
[1205] = {["xp"] = 5540, ["level"] = 45},
[1206] = {["xp"] = 3300, ["level"] = 35},
[1218] = {["xp"] = 1650, ["level"] = 35},
[1219] = {["xp"] = 820, ["level"] = 35},
[1220] = {["xp"] = 3300, ["level"] = 35},
[1221] = {["xp"] = 3150, ["level"] = 26},
[1222] = {["xp"] = 3710, ["level"] = 37},
[1238] = {["xp"] = 2450, ["level"] = 35},
[1239] = {["xp"] = 2450, ["level"] = 35},
[1240] = {["xp"] = 3300, ["level"] = 35},
[1241] = {["xp"] = 230, ["level"] = 28},
[1242] = {["xp"] = 230, ["level"] = 28},
[1243] = {["xp"] = 230, ["level"] = 28},
[1244] = {["xp"] = 2450, ["level"] = 30},
[1245] = {["xp"] = 245, ["level"] = 30},
[1246] = {["xp"] = 250, ["level"] = 31},
[1247] = {["xp"] = 250, ["level"] = 31},
[1248] = {["xp"] = 720, ["level"] = 33},
[1249] = {["xp"] = 1450, ["level"] = 33},
[1250] = {["xp"] = 290, ["level"] = 33},
[1251] = {["xp"] = 820, ["level"] = 35},
[1252] = {["xp"] = 820, ["level"] = 35},
[1253] = {["xp"] = 820, ["level"] = 35},
[1258] = {["xp"] = 4370, ["level"] = 40},
[1259] = {["xp"] = 435, ["level"] = 40},
[1260] = {["xp"] = 980, ["level"] = 38},
[1261] = {["xp"] = 4370, ["level"] = 40},
[1262] = {["xp"] = 4370, ["level"] = 40},
[1264] = {["xp"] = 1450, ["level"] = 33},
[1265] = {["xp"] = 330, ["level"] = 35},
[1266] = {["xp"] = 870, ["level"] = 36},
[1267] = {["xp"] = 5850, ["level"] = 38},
[1268] = {["xp"] = 1650, ["level"] = 35},
[1269] = {["xp"] = 920, ["level"] = 37},
[1270] = {["xp"] = 3710, ["level"] = 37},
[1271] = {["xp"] = 0, ["level"] = nil},
[1273] = {["xp"] = 4600, ["level"] = 37},
[1274] = {["xp"] = 230, ["level"] = 28},
[1275] = {["xp"] = 2900, ["level"] = 24},
[1276] = {["xp"] = 1850, ["level"] = 37},
[1282] = {["xp"] = 330, ["level"] = 35},
[1284] = {["xp"] = 1650, ["level"] = 35},
[1285] = {["xp"] = 390, ["level"] = 38},
[1286] = {["xp"] = 3920, ["level"] = 38},
[1287] = {["xp"] = 3920, ["level"] = 38},
[1288] = {["xp"] = 390, ["level"] = 38},
[1301] = {["xp"] = 820, ["level"] = 35},
[1302] = {["xp"] = 820, ["level"] = 35},
[1318] = {["xp"] = 14300, ["level"] = 60},
[1319] = {["xp"] = 330, ["level"] = 35},
[1320] = {["xp"] = 1650, ["level"] = 35},
[1321] = {["xp"] = 330, ["level"] = 35},
[1322] = {["xp"] = 3710, ["level"] = 37},
[1323] = {["xp"] = 1850, ["level"] = 37},
[1324] = {["xp"] = 2900, ["level"] = 38},
[1338] = {["xp"] = 980, ["level"] = 14},
[1339] = {["xp"] = 540, ["level"] = 15},
[1358] = {["xp"] = 1050, ["level"] = 15},
[1359] = {["xp"] = 105, ["level"] = 15},
[1360] = {["xp"] = 5050, ["level"] = 43},
[1361] = {["xp"] = 670, ["level"] = 32},
[1362] = {["xp"] = 670, ["level"] = 32},
[1363] = {["xp"] = 455, ["level"] = 41},
[1364] = {["xp"] = 4590, ["level"] = 41},
[1365] = {["xp"] = 4100, ["level"] = 35},
[1366] = {["xp"] = 3800, ["level"] = 31},
[1367] = {["xp"] = 720, ["level"] = 33},
[1368] = {["xp"] = 720, ["level"] = 33},
[1369] = {["xp"] = 2900, ["level"] = 33},
[1370] = {["xp"] = 1650, ["level"] = 35},
[1371] = {["xp"] = 2450, ["level"] = 35},
[1372] = {["xp"] = 480, ["level"] = 42},
[1373] = {["xp"] = 3710, ["level"] = 37},
[1374] = {["xp"] = 3710, ["level"] = 37},
[1375] = {["xp"] = 3710, ["level"] = 37},
[1380] = {["xp"] = 6000, ["level"] = 42},
[1381] = {["xp"] = 6000, ["level"] = 42},
[1382] = {["xp"] = 2450, ["level"] = 35},
[1383] = {["xp"] = 6000, ["level"] = 42},
[1384] = {["xp"] = 2710, ["level"] = 32},
[1385] = {["xp"] = 2450, ["level"] = 35},
[1386] = {["xp"] = 2710, ["level"] = 32},
[1387] = {["xp"] = 3800, ["level"] = 31},
[1388] = {["xp"] = 480, ["level"] = 42},
[1389] = {["xp"] = 3300, ["level"] = 35},
[1391] = {["xp"] = 3600, ["level"] = 42},
[1392] = {["xp"] = 3100, ["level"] = 39},
[1393] = {["xp"] = 3920, ["level"] = 38},
[1394] = {["xp"] = 5250, ["level"] = 36},
[1395] = {["xp"] = 4150, ["level"] = 45},
[1396] = {["xp"] = 3710, ["level"] = 37},
[1398] = {["xp"] = 4820, ["level"] = 42},
[1418] = {["xp"] = 1650, ["level"] = 35},
[1419] = {["xp"] = 4370, ["level"] = 40},
[1420] = {["xp"] = 3250, ["level"] = 40},
[1421] = {["xp"] = 3300, ["level"] = 35},
[1422] = {["xp"] = 0, ["level"] = nil},
[1423] = {["xp"] = 0, ["level"] = nil},
[1424] = {["xp"] = 6300, ["level"] = 43},
[1425] = {["xp"] = 3600, ["level"] = 42},
[1426] = {["xp"] = 6300, ["level"] = 43},
[1427] = {["xp"] = 5050, ["level"] = 43},
[1428] = {["xp"] = 5540, ["level"] = 45},
[1429] = {["xp"] = 5290, ["level"] = 44},
[1430] = {["xp"] = 5290, ["level"] = 44},
[1431] = {["xp"] = 610, ["level"] = 30},
[1432] = {["xp"] = 1200, ["level"] = 30},
[1433] = {["xp"] = 290, ["level"] = 33},
[1434] = {["xp"] = 2900, ["level"] = 33},
[1435] = {["xp"] = 2900, ["level"] = 33},
[1436] = {["xp"] = 2900, ["level"] = 33},
[1437] = {["xp"] = 2150, ["level"] = 33},
[1438] = {["xp"] = 2900, ["level"] = 33},
[1439] = {["xp"] = 2900, ["level"] = 33},
[1440] = {["xp"] = 3600, ["level"] = 33},
[1441] = {["xp"] = 3600, ["level"] = 33},
[1442] = {["xp"] = 0, ["level"] = nil},
[1444] = {["xp"] = 5290, ["level"] = 44},
[1445] = {["xp"] = 10200, ["level"] = 50},
[1446] = {["xp"] = 11400, ["level"] = 53},
[1447] = {["xp"] = 1250, ["level"] = 31},
[1448] = {["xp"] = 5050, ["level"] = 43},
[1449] = {["xp"] = 2500, ["level"] = 43},
[1450] = {["xp"] = 1260, ["level"] = 43},
[1451] = {["xp"] = 2500, ["level"] = 43},
[1452] = {["xp"] = 5050, ["level"] = 43},
[1453] = {["xp"] = 1450, ["level"] = 33},
[1454] = {["xp"] = 4140, ["level"] = 39},
[1455] = {["xp"] = 2050, ["level"] = 39},
[1456] = {["xp"] = 4140, ["level"] = 39},
[1457] = {["xp"] = 3100, ["level"] = 39},
[1458] = {["xp"] = 2900, ["level"] = 33},
[1459] = {["xp"] = 3300, ["level"] = 35},
[1462] = {["xp"] = 0, ["level"] = nil},
[1463] = {["xp"] = 0, ["level"] = nil},
[1464] = {["xp"] = 0, ["level"] = nil},
[1465] = {["xp"] = 2150, ["level"] = 33},
[1466] = {["xp"] = 4370, ["level"] = 40},
[1467] = {["xp"] = 4370, ["level"] = 40},
[1468] = {["xp"] = 0, ["level"] = nil},
[1469] = {["xp"] = 3750, ["level"] = 43},
[1470] = {["xp"] = 80, ["level"] = nil},
[1471] = {["xp"] = 630, ["level"] = 10},
[1472] = {["xp"] = 155, ["level"] = nil},
[1473] = {["xp"] = 630, ["level"] = nil},
[1474] = {["xp"] = 1550, ["level"] = nil},
[1475] = {["xp"] = 10200, ["level"] = 50},
[1476] = {["xp"] = 1550, ["level"] = nil},
[1477] = {["xp"] = 1380, ["level"] = 45},
[1478] = {["xp"] = 210, ["level"] = nil},
[1479] = {["xp"] = 955, ["level"] = 60},
[1480] = {["xp"] = 1450, ["level"] = 33},
[1481] = {["xp"] = 2900, ["level"] = 33},
[1482] = {["xp"] = 3300, ["level"] = 35},
[1483] = {["xp"] = 415, ["level"] = 21},
[1484] = {["xp"] = 290, ["level"] = 33},
[1485] = {["xp"] = 80, ["level"] = nil},
[1486] = {["xp"] = 1900, ["level"] = 17},
[1487] = {["xp"] = 2500, ["level"] = 21},
[1488] = {["xp"] = 5450, ["level"] = 40},
[1489] = {["xp"] = 290, ["level"] = 16},
[1490] = {["xp"] = 115, ["level"] = 16},
[1491] = {["xp"] = 2050, ["level"] = 18},
[1492] = {["xp"] = 440, ["level"] = 11},
[1498] = {["xp"] = 630, ["level"] = nil},
[1499] = {["xp"] = 10, ["level"] = nil},
[1501] = {["xp"] = 840, ["level"] = nil},
[1502] = {["xp"] = 210, ["level"] = 10},
[1503] = {["xp"] = 840, ["level"] = 10},
[1504] = {["xp"] = 630, ["level"] = nil},
[1505] = {["xp"] = 85, ["level"] = nil},
[1506] = {["xp"] = 210, ["level"] = nil},
[1507] = {["xp"] = 155, ["level"] = nil},
[1508] = {["xp"] = 390, ["level"] = nil},
[1509] = {["xp"] = 390, ["level"] = nil},
[1510] = {["xp"] = 780, ["level"] = nil},
[1511] = {["xp"] = 1550, ["level"] = nil},
[1512] = {["xp"] = 390, ["level"] = nil},
[1513] = {["xp"] = 1150, ["level"] = nil},
[1514] = {["xp"] = 0, ["level"] = nil},
[1515] = {["xp"] = 1150, ["level"] = nil},
[1516] = {["xp"] = 270, ["level"] = 4},
[1517] = {["xp"] = 270, ["level"] = 4},
[1518] = {["xp"] = 445, ["level"] = 4},
[1519] = {["xp"] = 270, ["level"] = 4},
[1520] = {["xp"] = 180, ["level"] = 4},
[1521] = {["xp"] = 445, ["level"] = 4},
[1522] = {["xp"] = 420, ["level"] = nil},
[1523] = {["xp"] = 420, ["level"] = nil},
[1524] = {["xp"] = 630, ["level"] = nil},
[1525] = {["xp"] = 840, ["level"] = nil},
[1526] = {["xp"] = 1150, ["level"] = 13},
[1527] = {["xp"] = 1150, ["level"] = 13},
[1528] = {["xp"] = 780, ["level"] = nil},
[1529] = {["xp"] = 780, ["level"] = nil},
[1530] = {["xp"] = 390, ["level"] = nil},
[1531] = {["xp"] = 2450, ["level"] = nil},
[1532] = {["xp"] = 2450, ["level"] = nil},
[1534] = {["xp"] = 1150, ["level"] = nil},
[1535] = {["xp"] = 780, ["level"] = nil},
[1536] = {["xp"] = 1150, ["level"] = nil},
[1558] = {["xp"] = 955, ["level"] = 60},
[1559] = {["xp"] = 0, ["level"] = nil},
[1560] = {["xp"] = 8500, ["level"] = 50},
[1578] = {["xp"] = 910, ["level"] = 12},
[1579] = {["xp"] = 455, ["level"] = 12},
[1580] = {["xp"] = 910, ["level"] = 12},
[1581] = {["xp"] = 700, ["level"] = 8},
[1582] = {["xp"] = 1350, ["level"] = 18},
[1598] = {["xp"] = 80, ["level"] = nil},
[1599] = {["xp"] = 80, ["level"] = nil},
[1618] = {["xp"] = 1150, ["level"] = 16},
[1638] = {["xp"] = 85, ["level"] = nil},
[1639] = {["xp"] = 85, ["level"] = nil},
[1640] = {["xp"] = 210, ["level"] = nil},
[1641] = {["xp"] = 0, ["level"] = nil},
[1642] = {["xp"] = 90, ["level"] = nil},
[1643] = {["xp"] = 455, ["level"] = nil},
[1644] = {["xp"] = 910, ["level"] = nil},
[1645] = {["xp"] = 0, ["level"] = nil},
[1646] = {["xp"] = 90, ["level"] = nil},
[1647] = {["xp"] = 455, ["level"] = nil},
[1648] = {["xp"] = 910, ["level"] = nil},
[1649] = {["xp"] = 390, ["level"] = nil},
[1650] = {["xp"] = 1550, ["level"] = nil},
[1651] = {["xp"] = 780, ["level"] = nil},
[1652] = {["xp"] = 1950, ["level"] = nil},
[1653] = {["xp"] = 780, ["level"] = nil},
[1654] = {["xp"] = 2600, ["level"] = 22},
[1655] = {["xp"] = 0, ["level"] = nil},
[1656] = {["xp"] = 110, ["level"] = 5},
[1657] = {["xp"] = 510, ["level"] = nil},
[1658] = {["xp"] = 2000, ["level"] = nil},
[1661] = {["xp"] = 0, ["level"] = nil},
[1665] = {["xp"] = 420, ["level"] = nil},
[1666] = {["xp"] = 420, ["level"] = 10},
[1667] = {["xp"] = 840, ["level"] = 10},
[1678] = {["xp"] = 1050, ["level"] = nil},
[1679] = {["xp"] = 85, ["level"] = nil},
[1680] = {["xp"] = 90, ["level"] = 11},
[1681] = {["xp"] = 660, ["level"] = 11},
[1682] = {["xp"] = 630, ["level"] = 10},
[1683] = {["xp"] = 840, ["level"] = nil},
[1684] = {["xp"] = 85, ["level"] = nil},
[1685] = {["xp"] = 420, ["level"] = nil},
[1686] = {["xp"] = 840, ["level"] = 10},
[1687] = {["xp"] = 955, ["level"] = 60},
[1688] = {["xp"] = 630, ["level"] = nil},
[1689] = {["xp"] = 630, ["level"] = nil},
[1690] = {["xp"] = 5050, ["level"] = 43},
[1691] = {["xp"] = 5290, ["level"] = 44},
[1692] = {["xp"] = 420, ["level"] = 10},
[1693] = {["xp"] = 630, ["level"] = 10},
[1698] = {["xp"] = 155, ["level"] = 20},
[1699] = {["xp"] = 1300, ["level"] = 22},
[1700] = {["xp"] = 570, ["level"] = 28},
[1701] = {["xp"] = 2300, ["level"] = 28},
[1702] = {["xp"] = 435, ["level"] = 22},
[1703] = {["xp"] = 1150, ["level"] = 28},
[1704] = {["xp"] = 570, ["level"] = 28},
[1705] = {["xp"] = 2300, ["level"] = 28},
[1706] = {["xp"] = 3050, ["level"] = 30},
[1707] = {["xp"] = 3950, ["level"] = 44},
[1708] = {["xp"] = 1750, ["level"] = 29},
[1709] = {["xp"] = 3050, ["level"] = 30},
[1710] = {["xp"] = 1850, ["level"] = 30},
[1711] = {["xp"] = 3050, ["level"] = 30},
[1712] = {["xp"] = 3250, ["level"] = 40},
[1713] = {["xp"] = 3250, ["level"] = 40},
[1714] = {["xp"] = 0, ["level"] = nil},
[1715] = {["xp"] = 420, ["level"] = nil},
[1716] = {["xp"] = 780, ["level"] = nil},
[1717] = {["xp"] = 390, ["level"] = nil},
[1718] = {["xp"] = 610, ["level"] = nil},
[1719] = {["xp"] = 2450, ["level"] = nil},
[1738] = {["xp"] = 1550, ["level"] = nil},
[1739] = {["xp"] = 1150, ["level"] = nil},
[1740] = {["xp"] = 3050, ["level"] = 25},
[1758] = {["xp"] = 610, ["level"] = nil},
[1778] = {["xp"] = 230, ["level"] = 13},
[1779] = {["xp"] = 0, ["level"] = nil},
[1780] = {["xp"] = 225, ["level"] = nil},
[1781] = {["xp"] = 0, ["level"] = nil},
[1782] = {["xp"] = 3400, ["level"] = 28},
[1783] = {["xp"] = 680, ["level"] = 13},
[1784] = {["xp"] = 680, ["level"] = 13},
[1785] = {["xp"] = 1150, ["level"] = 13},
[1786] = {["xp"] = 680, ["level"] = nil},
[1787] = {["xp"] = 680, ["level"] = nil},
[1788] = {["xp"] = 1150, ["level"] = nil},
[1789] = {["xp"] = 0, ["level"] = nil},
[1790] = {["xp"] = 0, ["level"] = nil},
[1791] = {["xp"] = 245, ["level"] = 30},
[1792] = {["xp"] = 5450, ["level"] = 40},
[1793] = {["xp"] = 0, ["level"] = nil},
[1794] = {["xp"] = 0, ["level"] = nil},
[1795] = {["xp"] = 2450, ["level"] = nil},
[1796] = {["xp"] = 2540, ["level"] = 31},
[1798] = {["xp"] = 610, ["level"] = nil},
[1799] = {["xp"] = 4370, ["level"] = 40},
[1800] = {["xp"] = 955, ["level"] = 60},
[1801] = {["xp"] = 610, ["level"] = nil},
[1802] = {["xp"] = 2450, ["level"] = nil},
[1803] = {["xp"] = 610, ["level"] = nil},
[1804] = {["xp"] = 2450, ["level"] = nil},
[1805] = {["xp"] = 2450, ["level"] = nil},
[1806] = {["xp"] = 2200, ["level"] = 22},
[1818] = {["xp"] = 85, ["level"] = nil},
[1819] = {["xp"] = 840, ["level"] = nil},
[1820] = {["xp"] = 210, ["level"] = 10},
[1821] = {["xp"] = 660, ["level"] = 11},
[1822] = {["xp"] = 880, ["level"] = 11},
[1823] = {["xp"] = 155, ["level"] = 20},
[1824] = {["xp"] = 1550, ["level"] = 20},
[1825] = {["xp"] = 780, ["level"] = 20},
[1838] = {["xp"] = 3650, ["level"] = 30},
[1839] = {["xp"] = 1200, ["level"] = 30},
[1840] = {["xp"] = 1200, ["level"] = 30},
[1841] = {["xp"] = 1200, ["level"] = 30},
[1842] = {["xp"] = 1200, ["level"] = 30},
[1843] = {["xp"] = 1850, ["level"] = 30},
[1844] = {["xp"] = 1200, ["level"] = 30},
[1845] = {["xp"] = 1850, ["level"] = 30},
[1846] = {["xp"] = 1200, ["level"] = 30},
[1847] = {["xp"] = 1850, ["level"] = 30},
[1848] = {["xp"] = 3050, ["level"] = 30},
[1858] = {["xp"] = 455, ["level"] = 13},
[1859] = {["xp"] = 210, ["level"] = 10},
[1860] = {["xp"] = 420, ["level"] = 10},
[1861] = {["xp"] = 840, ["level"] = 10},
[1878] = {["xp"] = 0, ["level"] = nil},
[1879] = {["xp"] = 85, ["level"] = 10},
[1880] = {["xp"] = 840, ["level"] = 10},
[1881] = {["xp"] = 85, ["level"] = 10},
[1882] = {["xp"] = 840, ["level"] = 10},
[1883] = {["xp"] = 85, ["level"] = 10},
[1884] = {["xp"] = 840, ["level"] = 10},
[1885] = {["xp"] = 210, ["level"] = 10},
[1886] = {["xp"] = 680, ["level"] = 13},
[1898] = {["xp"] = 230, ["level"] = 13},
[1899] = {["xp"] = 230, ["level"] = 13},
[1918] = {["xp"] = 550, ["level"] = 27},
[1919] = {["xp"] = 105, ["level"] = 15},
[1920] = {["xp"] = 1150, ["level"] = 16},
[1921] = {["xp"] = 800, ["level"] = 15},
[1938] = {["xp"] = 2300, ["level"] = 28},
[1939] = {["xp"] = 1050, ["level"] = 26},
[1940] = {["xp"] = 1600, ["level"] = 26},
[1941] = {["xp"] = 1050, ["level"] = 15},
[1942] = {["xp"] = 2100, ["level"] = 26},
[1943] = {["xp"] = 210, ["level"] = 26},
[1944] = {["xp"] = 2100, ["level"] = 26},
[1945] = {["xp"] = 1600, ["level"] = 26},
[1946] = {["xp"] = 2100, ["level"] = 26},
[1947] = {["xp"] = 390, ["level"] = 38},
[1948] = {["xp"] = 4370, ["level"] = 40},
[1949] = {["xp"] = 1950, ["level"] = 38},
[1950] = {["xp"] = 1850, ["level"] = 30},
[1951] = {["xp"] = 6550, ["level"] = 40},
[1952] = {["xp"] = 4370, ["level"] = 40},
[1953] = {["xp"] = 435, ["level"] = 40},
[1954] = {["xp"] = 3250, ["level"] = 40},
[1955] = {["xp"] = 3250, ["level"] = 40},
[1956] = {["xp"] = 5450, ["level"] = 40},
[1957] = {["xp"] = 3250, ["level"] = 40},
[1958] = {["xp"] = 4370, ["level"] = 40},
[1959] = {["xp"] = 105, ["level"] = 15},
[1960] = {["xp"] = 1150, ["level"] = 16},
[1961] = {["xp"] = 800, ["level"] = 15},
[1962] = {["xp"] = 1050, ["level"] = 15},
[1963] = {["xp"] = 680, ["level"] = 13},
[1978] = {["xp"] = 910, ["level"] = 13},
[1998] = {["xp"] = 880, ["level"] = 16},
[1999] = {["xp"] = 1550, ["level"] = 20},
[2000] = {["xp"] = 290, ["level"] = 16},
[2038] = {["xp"] = 1050, ["level"] = 15},
[2039] = {["xp"] = 270, ["level"] = 15},
[2040] = {["xp"] = 2350, ["level"] = 20},
[2041] = {["xp"] = 270, ["level"] = 15},
[2078] = {["xp"] = 1150, ["level"] = 20},
[2098] = {["xp"] = 1550, ["level"] = 20},
[2118] = {["xp"] = 980, ["level"] = 14},
[2138] = {["xp"] = 1150, ["level"] = 16},
[2139] = {["xp"] = 1350, ["level"] = 18},
[2158] = {["xp"] = 110, ["level"] = 5},
[2159] = {["xp"] = 110, ["level"] = 5},
[2160] = {["xp"] = 110, ["level"] = 5},
[2161] = {["xp"] = 110, ["level"] = 5},
[2178] = {["xp"] = 910, ["level"] = 12},
[2198] = {["xp"] = 4590, ["level"] = 41},
[2199] = {["xp"] = 3400, ["level"] = 41},
[2200] = {["xp"] = 7200, ["level"] = 42},
[2201] = {["xp"] = 7550, ["level"] = 43},
[2202] = {["xp"] = 4820, ["level"] = 42},
[2203] = {["xp"] = 5290, ["level"] = 44},
[2204] = {["xp"] = 7900, ["level"] = 44},
[2205] = {["xp"] = 210, ["level"] = 10},
[2206] = {["xp"] = 840, ["level"] = 10},
[2218] = {["xp"] = 420, ["level"] = 10},
[2238] = {["xp"] = 840, ["level"] = 10},
[2239] = {["xp"] = 840, ["level"] = 10},
[2240] = {["xp"] = 6550, ["level"] = 40},
[2241] = {["xp"] = 420, ["level"] = 10},
[2242] = {["xp"] = 840, ["level"] = 10},
[2258] = {["xp"] = 4140, ["level"] = 39},
[2259] = {["xp"] = 115, ["level"] = 16},
[2260] = {["xp"] = 580, ["level"] = 16},
[2278] = {["xp"] = 9050, ["level"] = 47},
[2279] = {["xp"] = 7550, ["level"] = 47},
[2280] = {["xp"] = 7550, ["level"] = 47},
[2281] = {["xp"] = 115, ["level"] = 16},
[2282] = {["xp"] = 1550, ["level"] = 20},
[2283] = {["xp"] = 3400, ["level"] = 41},
[2284] = {["xp"] = 6850, ["level"] = 41},
[2298] = {["xp"] = 115, ["level"] = 16},
[2299] = {["xp"] = 115, ["level"] = 16},
[2300] = {["xp"] = 115, ["level"] = 16},
[2318] = {["xp"] = 4820, ["level"] = 42},
[2338] = {["xp"] = 480, ["level"] = 42},
[2339] = {["xp"] = 7900, ["level"] = 44},
[2340] = {["xp"] = 2600, ["level"] = 44},
[2341] = {["xp"] = 7900, ["level"] = 44},
[2342] = {["xp"] = 5050, ["level"] = 43},
[2359] = {["xp"] = 1550, ["level"] = nil},
[2360] = {["xp"] = 390, ["level"] = nil},
[2361] = {["xp"] = 7900, ["level"] = 44},
[2378] = {["xp"] = 115, ["level"] = 16},
[2379] = {["xp"] = 0, ["level"] = nil},
[2380] = {["xp"] = 115, ["level"] = 16},
[2381] = {["xp"] = 1350, ["level"] = 18},
[2382] = {["xp"] = 115, ["level"] = 16},
[2383] = {["xp"] = 40, ["level"] = 1},
[2398] = {["xp"] = 435, ["level"] = 40},
[2399] = {["xp"] = 85, ["level"] = 10},
[2418] = {["xp"] = 3500, ["level"] = 36},
[2438] = {["xp"] = 405, ["level"] = 6},
[2439] = {["xp"] = 600, ["level"] = 47},
[2440] = {["xp"] = 600, ["level"] = 47},
[2458] = {["xp"] = 1150, ["level"] = nil},
[2459] = {["xp"] = 880, ["level"] = 8},
[2460] = {["xp"] = 155, ["level"] = nil},
[2478] = {["xp"] = 1550, ["level"] = nil},
[2479] = {["xp"] = 780, ["level"] = nil},
[2480] = {["xp"] = 155, ["level"] = nil},
[2498] = {["xp"] = 80, ["level"] = 9},
[2499] = {["xp"] = 780, ["level"] = 9},
[2500] = {["xp"] = 4140, ["level"] = 39},
[2501] = {["xp"] = 5290, ["level"] = 44},
[2518] = {["xp"] = 1150, ["level"] = 12},
[2519] = {["xp"] = 85, ["level"] = 10},
[2520] = {["xp"] = 910, ["level"] = 12},
[2521] = {["xp"] = 12250, ["level"] = 55},
[2522] = {["xp"] = 0, ["level"] = nil},
[2523] = {["xp"] = 0, ["level"] = nil},
[2541] = {["xp"] = 700, ["level"] = 8},
[2561] = {["xp"] = 1050, ["level"] = 10},
[2581] = {["xp"] = 6810, ["level"] = 50},
[2582] = {["xp"] = 0, ["level"] = nil},
[2583] = {["xp"] = 6810, ["level"] = 50},
[2584] = {["xp"] = 0, ["level"] = nil},
[2585] = {["xp"] = 6810, ["level"] = 50},
[2586] = {["xp"] = 0, ["level"] = nil},
[2601] = {["xp"] = 6810, ["level"] = 50},
[2602] = {["xp"] = 0, ["level"] = nil},
[2603] = {["xp"] = 6810, ["level"] = 50},
[2604] = {["xp"] = 0, ["level"] = nil},
[2605] = {["xp"] = 6550, ["level"] = 49},
[2606] = {["xp"] = 655, ["level"] = 49},
[2607] = {["xp"] = 0, ["level"] = nil},
[2608] = {["xp"] = 155, ["level"] = 20},
[2609] = {["xp"] = 1150, ["level"] = 20},
[2621] = {["xp"] = 1700, ["level"] = 50},
[2622] = {["xp"] = 1700, ["level"] = 50},
[2623] = {["xp"] = 8170, ["level"] = 55},
[2641] = {["xp"] = 6550, ["level"] = 49},
[2661] = {["xp"] = 655, ["level"] = 49},
[2662] = {["xp"] = 0, ["level"] = nil},
[2681] = {["xp"] = 10900, ["level"] = 57},
[2701] = {["xp"] = 8730, ["level"] = 57},
[2702] = {["xp"] = 4350, ["level"] = 57},
[2721] = {["xp"] = 9020, ["level"] = 58},
[2741] = {["xp"] = 6040, ["level"] = 47},
[2742] = {["xp"] = 6040, ["level"] = 47},
[2743] = {["xp"] = 4750, ["level"] = 60},
[2744] = {["xp"] = 9550, ["level"] = 60},
[2745] = {["xp"] = 250, ["level"] = 31},
[2746] = {["xp"] = 630, ["level"] = 31},
[2747] = {["xp"] = 0, ["level"] = nil},
[2748] = {["xp"] = 0, ["level"] = nil},
[2749] = {["xp"] = 0, ["level"] = nil},
[2750] = {["xp"] = 0, ["level"] = nil},
[2751] = {["xp"] = 2710, ["level"] = 32},
[2752] = {["xp"] = 2710, ["level"] = 32},
[2753] = {["xp"] = 3500, ["level"] = 36},
[2754] = {["xp"] = 3500, ["level"] = 36},
[2755] = {["xp"] = 350, ["level"] = 36},
[2756] = {["xp"] = 4370, ["level"] = 40},
[2757] = {["xp"] = 2150, ["level"] = 40},
[2758] = {["xp"] = 4370, ["level"] = 40},
[2759] = {["xp"] = 2150, ["level"] = 40},
[2760] = {["xp"] = 4370, ["level"] = 40},
[2761] = {["xp"] = 5540, ["level"] = 45},
[2762] = {["xp"] = 5540, ["level"] = 45},
[2763] = {["xp"] = 5540, ["level"] = 45},
[2764] = {["xp"] = 4150, ["level"] = 45},
[2765] = {["xp"] = 5540, ["level"] = 45},
[2766] = {["xp"] = 5540, ["level"] = 45},
[2767] = {["xp"] = 6900, ["level"] = 45},
[2768] = {["xp"] = 9050, ["level"] = 47},
[2769] = {["xp"] = 575, ["level"] = 46},
[2770] = {["xp"] = 10200, ["level"] = 50},
[2771] = {["xp"] = 5540, ["level"] = 45},
[2772] = {["xp"] = 5540, ["level"] = 45},
[2773] = {["xp"] = 5540, ["level"] = 45},
[2781] = {["xp"] = 7200, ["level"] = 46},
[2782] = {["xp"] = 3000, ["level"] = 47},
[2783] = {["xp"] = 6500, ["level"] = 57},
[2784] = {["xp"] = 680, ["level"] = 50},
[2801] = {["xp"] = 870, ["level"] = 57},
[2821] = {["xp"] = 5790, ["level"] = 46},
[2822] = {["xp"] = 5790, ["level"] = 46},
[2841] = {["xp"] = 4950, ["level"] = 35},
[2842] = {["xp"] = 330, ["level"] = 35},
[2843] = {["xp"] = 0, ["level"] = nil},
[2844] = {["xp"] = 4900, ["level"] = 49},
[2845] = {["xp"] = 6550, ["level"] = 49},
[2846] = {["xp"] = 8650, ["level"] = 46},
[2847] = {["xp"] = 2750, ["level"] = 45},
[2848] = {["xp"] = 4150, ["level"] = 45},
[2849] = {["xp"] = 4150, ["level"] = 45},
[2850] = {["xp"] = 4150, ["level"] = 45},
[2851] = {["xp"] = 4150, ["level"] = 45},
[2852] = {["xp"] = 4150, ["level"] = 45},
[2853] = {["xp"] = 5540, ["level"] = 45},
[2854] = {["xp"] = 2750, ["level"] = 45},
[2855] = {["xp"] = 4150, ["level"] = 45},
[2856] = {["xp"] = 4150, ["level"] = 45},
[2857] = {["xp"] = 4150, ["level"] = 45},
[2858] = {["xp"] = 4150, ["level"] = 45},
[2859] = {["xp"] = 4150, ["level"] = 45},
[2860] = {["xp"] = 5540, ["level"] = 45},
[2861] = {["xp"] = 575, ["level"] = 46},
[2862] = {["xp"] = 3600, ["level"] = 42},
[2863] = {["xp"] = 3750, ["level"] = 43},
[2864] = {["xp"] = 550, ["level"] = 45},
[2865] = {["xp"] = 8300, ["level"] = 45},
[2866] = {["xp"] = 3750, ["level"] = 43},
[2867] = {["xp"] = 2500, ["level"] = 43},
[2869] = {["xp"] = 3750, ["level"] = 43},
[2870] = {["xp"] = 4150, ["level"] = 45},
[2871] = {["xp"] = 5540, ["level"] = 45},
[2872] = {["xp"] = 550, ["level"] = 45},
[2873] = {["xp"] = 5540, ["level"] = 45},
[2874] = {["xp"] = 5540, ["level"] = 45},
[2875] = {["xp"] = 5540, ["level"] = 45},
[2876] = {["xp"] = 6900, ["level"] = 45},
[2877] = {["xp"] = 6290, ["level"] = 48},
[2878] = {["xp"] = 0, ["level"] = nil},
[2879] = {["xp"] = 6810, ["level"] = 50},
[2880] = {["xp"] = 5540, ["level"] = 45},
[2881] = {["xp"] = 0, ["level"] = nil},
[2882] = {["xp"] = 0, ["level"] = nil},
[2902] = {["xp"] = 2500, ["level"] = 43},
[2903] = {["xp"] = 5050, ["level"] = 43},
[2904] = {["xp"] = 3650, ["level"] = 30},
[2922] = {["xp"] = 2650, ["level"] = 26},
[2923] = {["xp"] = 210, ["level"] = 26},
[2924] = {["xp"] = 3650, ["level"] = 30},
[2925] = {["xp"] = 245, ["level"] = 30},
[2926] = {["xp"] = 3300, ["level"] = 27},
[2927] = {["xp"] = 220, ["level"] = 27},
[2928] = {["xp"] = 3650, ["level"] = 30},
[2929] = {["xp"] = 4950, ["level"] = 35},
[2930] = {["xp"] = 3650, ["level"] = 30},
[2931] = {["xp"] = 230, ["level"] = 28},
[2932] = {["xp"] = 4820, ["level"] = 42},
[2933] = {["xp"] = 5050, ["level"] = 43},
[2934] = {["xp"] = 5540, ["level"] = 45},
[2935] = {["xp"] = 4150, ["level"] = 45},
[2936] = {["xp"] = 8300, ["level"] = 45},
[2937] = {["xp"] = 12250, ["level"] = 55},
[2938] = {["xp"] = 12250, ["level"] = 55},
[2939] = {["xp"] = 600, ["level"] = 47},
[2940] = {["xp"] = 600, ["level"] = 47},
[2941] = {["xp"] = 1570, ["level"] = 48},
[2942] = {["xp"] = 6810, ["level"] = 50},
[2943] = {["xp"] = 4700, ["level"] = 48},
[2944] = {["xp"] = 6290, ["level"] = 48},
[2945] = {["xp"] = 4650, ["level"] = 34},
[2946] = {["xp"] = 6810, ["level"] = 50},
[2947] = {["xp"] = 3100, ["level"] = 34},
[2948] = {["xp"] = 3300, ["level"] = 35},
[2949] = {["xp"] = 3100, ["level"] = 34},
[2950] = {["xp"] = 3300, ["level"] = 35},
[2951] = {["xp"] = 0, ["level"] = nil},
[2952] = {["xp"] = 2450, ["level"] = 30},
[2953] = {["xp"] = 0, ["level"] = nil},
[2954] = {["xp"] = 6810, ["level"] = 50},
[2962] = {["xp"] = 3650, ["level"] = 30},
[2963] = {["xp"] = 680, ["level"] = 50},
[2964] = {["xp"] = 6810, ["level"] = 50},
[2965] = {["xp"] = 680, ["level"] = 50},
[2966] = {["xp"] = 6810, ["level"] = 50},
[2967] = {["xp"] = 680, ["level"] = 50},
[2968] = {["xp"] = 6810, ["level"] = 50},
[2969] = {["xp"] = 4500, ["level"] = 47},
[2970] = {["xp"] = 4500, ["level"] = 47},
[2971] = {["xp"] = 3350, ["level"] = 32},
[2972] = {["xp"] = 7550, ["level"] = 47},
[2973] = {["xp"] = 5540, ["level"] = 45},
[2974] = {["xp"] = 5540, ["level"] = 45},
[2975] = {["xp"] = 3750, ["level"] = 43},
[2976] = {["xp"] = 6900, ["level"] = 45},
[2977] = {["xp"] = 680, ["level"] = 50},
[2978] = {["xp"] = 2500, ["level"] = 43},
[2979] = {["xp"] = 5790, ["level"] = 46},
[2980] = {["xp"] = 5290, ["level"] = 44},
[2981] = {["xp"] = 1260, ["level"] = 43},
[2982] = {["xp"] = 5290, ["level"] = 44},
[2983] = {["xp"] = 420, ["level"] = nil},
[2984] = {["xp"] = 420, ["level"] = nil},
[2985] = {["xp"] = 780, ["level"] = nil},
[2986] = {["xp"] = 780, ["level"] = nil},
[2987] = {["xp"] = 5050, ["level"] = 43},
[2988] = {["xp"] = 5540, ["level"] = 45},
[2989] = {["xp"] = 6290, ["level"] = 48},
[2990] = {["xp"] = 3000, ["level"] = 47},
[2991] = {["xp"] = 9050, ["level"] = 47},
[2992] = {["xp"] = 1510, ["level"] = 47},
[2993] = {["xp"] = 3000, ["level"] = 47},
[2994] = {["xp"] = 10600, ["level"] = 51},
[2995] = {["xp"] = 4500, ["level"] = 47},
[2996] = {["xp"] = 610, ["level"] = nil},
[2997] = {["xp"] = 90, ["level"] = nil},
[2998] = {["xp"] = 225, ["level"] = nil},
[2999] = {["xp"] = 90, ["level"] = nil},
[3000] = {["xp"] = 225, ["level"] = nil},
[3001] = {["xp"] = 610, ["level"] = nil},
[3002] = {["xp"] = 3000, ["level"] = 47},
[3022] = {["xp"] = 3000, ["level"] = 47},
[3042] = {["xp"] = 8300, ["level"] = 45},
[3062] = {["xp"] = 8500, ["level"] = 50},
[3063] = {["xp"] = 5100, ["level"] = 50},
[3065] = {["xp"] = 40, ["level"] = 1},
[3082] = {["xp"] = 40, ["level"] = 1},
[3083] = {["xp"] = 40, ["level"] = 1},
[3084] = {["xp"] = 40, ["level"] = 1},
[3085] = {["xp"] = 40, ["level"] = 1},
[3086] = {["xp"] = 40, ["level"] = 1},
[3087] = {["xp"] = 40, ["level"] = 1},
[3088] = {["xp"] = 40, ["level"] = 1},
[3089] = {["xp"] = 40, ["level"] = 1},
[3090] = {["xp"] = 40, ["level"] = 1},
[3091] = {["xp"] = 40, ["level"] = 1},
[3092] = {["xp"] = 40, ["level"] = 1},
[3093] = {["xp"] = 40, ["level"] = 1},
[3094] = {["xp"] = 40, ["level"] = 1},
[3095] = {["xp"] = 40, ["level"] = 1},
[3096] = {["xp"] = 40, ["level"] = 1},
[3097] = {["xp"] = 40, ["level"] = 1},
[3098] = {["xp"] = 40, ["level"] = 1},
[3099] = {["xp"] = 40, ["level"] = 1},
[3100] = {["xp"] = 40, ["level"] = 1},
[3101] = {["xp"] = 40, ["level"] = 1},
[3102] = {["xp"] = 40, ["level"] = 1},
[3103] = {["xp"] = 40, ["level"] = 1},
[3104] = {["xp"] = 40, ["level"] = 1},
[3105] = {["xp"] = 40, ["level"] = 1},
[3106] = {["xp"] = 40, ["level"] = 1},
[3107] = {["xp"] = 40, ["level"] = 1},
[3108] = {["xp"] = 40, ["level"] = 1},
[3109] = {["xp"] = 40, ["level"] = 1},
[3110] = {["xp"] = 40, ["level"] = 1},
[3112] = {["xp"] = 40, ["level"] = 1},
[3113] = {["xp"] = 40, ["level"] = 1},
[3114] = {["xp"] = 40, ["level"] = 1},
[3115] = {["xp"] = 40, ["level"] = 1},
[3116] = {["xp"] = 40, ["level"] = 1},
[3117] = {["xp"] = 40, ["level"] = 1},
[3118] = {["xp"] = 40, ["level"] = 1},
[3119] = {["xp"] = 40, ["level"] = 1},
[3120] = {["xp"] = 40, ["level"] = 1},
[3121] = {["xp"] = 2750, ["level"] = 45},
[3122] = {["xp"] = 1380, ["level"] = 45},
[3123] = {["xp"] = 6040, ["level"] = 47},
[3124] = {["xp"] = 6040, ["level"] = 47},
[3125] = {["xp"] = 5540, ["level"] = 45},
[3126] = {["xp"] = 6810, ["level"] = 50},
[3127] = {["xp"] = 6810, ["level"] = 50},
[3128] = {["xp"] = 6810, ["level"] = 50},
[3129] = {["xp"] = 6810, ["level"] = 50},
[3130] = {["xp"] = 505, ["level"] = 43},
[3141] = {["xp"] = 870, ["level"] = 57},
[3161] = {["xp"] = 6290, ["level"] = 48},
[3181] = {["xp"] = 5050, ["level"] = 43},
[3182] = {["xp"] = 5050, ["level"] = 43},
[3201] = {["xp"] = 5050, ["level"] = 43},
[3221] = {["xp"] = 90, ["level"] = 12},
[3261] = {["xp"] = 135, ["level"] = 18},
[3281] = {["xp"] = 1350, ["level"] = 18},
[3301] = {["xp"] = 1050, ["level"] = 15},
[3321] = {["xp"] = 10200, ["level"] = 50},
[3341] = {["xp"] = 7200, ["level"] = 42},
[3362] = {["xp"] = 6810, ["level"] = 50},
[3363] = {["xp"] = 0, ["level"] = nil},
[3364] = {["xp"] = 225, ["level"] = 5},
[3365] = {["xp"] = 450, ["level"] = 5},
[3366] = {["xp"] = 2550, ["level"] = 25},
[3367] = {["xp"] = 5790, ["level"] = 46},
[3368] = {["xp"] = 5790, ["level"] = 46},
[3369] = {["xp"] = 2000, ["level"] = 25},
[3370] = {["xp"] = 2000, ["level"] = 25},
[3371] = {["xp"] = 5790, ["level"] = 46},
[3372] = {["xp"] = 5790, ["level"] = 46},
[3373] = {["xp"] = 4050, ["level"] = 55},
[3374] = {["xp"] = 815, ["level"] = 55},
[3375] = {["xp"] = 0, ["level"] = nil},
[3376] = {["xp"] = 670, ["level"] = 5},
[3377] = {["xp"] = 680, ["level"] = 50},
[3378] = {["xp"] = 8500, ["level"] = 50},
[3379] = {["xp"] = 6810, ["level"] = 50},
[3380] = {["xp"] = 5300, ["level"] = 51},
[3381] = {["xp"] = 3100, ["level"] = 48},
[3382] = {["xp"] = 0, ["level"] = nil},
[3383] = {["xp"] = 8170, ["level"] = 55},
[3384] = {["xp"] = 815, ["level"] = 55},
[3385] = {["xp"] = 6810, ["level"] = 50},
[3402] = {["xp"] = 6810, ["level"] = 50},
[3421] = {["xp"] = 0, ["level"] = nil},
[3441] = {["xp"] = 625, ["level"] = 48},
[3442] = {["xp"] = 6290, ["level"] = 48},
[3443] = {["xp"] = 6290, ["level"] = 48},
[3444] = {["xp"] = 7070, ["level"] = 51},
[3445] = {["xp"] = 5300, ["level"] = 51},
[3446] = {["xp"] = 10600, ["level"] = 51},
[3447] = {["xp"] = 10600, ["level"] = 51},
[3448] = {["xp"] = 730, ["level"] = 52},
[3449] = {["xp"] = 3650, ["level"] = 52},
[3450] = {["xp"] = 730, ["level"] = 52},
[3451] = {["xp"] = 730, ["level"] = 52},
[3452] = {["xp"] = 6810, ["level"] = 50},
[3453] = {["xp"] = 680, ["level"] = 50},
[3454] = {["xp"] = 6810, ["level"] = 50},
[3461] = {["xp"] = 11000, ["level"] = 52},
[3462] = {["xp"] = 680, ["level"] = 50},
[3463] = {["xp"] = 11000, ["level"] = 52},
[3481] = {["xp"] = 680, ["level"] = 50},
[3482] = {["xp"] = 330, ["level"] = 35},
[3483] = {["xp"] = 0, ["level"] = nil},
[3501] = {["xp"] = 8170, ["level"] = 55},
[3502] = {["xp"] = 0, ["level"] = nil},
[3503] = {["xp"] = 0, ["level"] = nil},
[3504] = {["xp"] = 3800, ["level"] = 53},
[3505] = {["xp"] = 5700, ["level"] = 53},
[3506] = {["xp"] = 6300, ["level"] = 56},
[3507] = {["xp"] = 10550, ["level"] = 56},
[3508] = {["xp"] = 4500, ["level"] = 58},
[3509] = {["xp"] = 9020, ["level"] = 58},
[3510] = {["xp"] = 9020, ["level"] = 58},
[3511] = {["xp"] = 4500, ["level"] = 58},
[3512] = {["xp"] = 6100, ["level"] = 55},
[3513] = {["xp"] = 2550, ["level"] = 25},
[3514] = {["xp"] = 2950, ["level"] = 29},
[3515] = {["xp"] = 4820, ["level"] = 42},
[3517] = {["xp"] = 7340, ["level"] = 52},
[3518] = {["xp"] = 3650, ["level"] = 52},
[3519] = {["xp"] = 90, ["level"] = 4},
[3520] = {["xp"] = 5290, ["level"] = 44},
[3521] = {["xp"] = 355, ["level"] = 4},
[3522] = {["xp"] = 445, ["level"] = 4},
[3523] = {["xp"] = 370, ["level"] = 37},
[3524] = {["xp"] = 680, ["level"] = 13},
[3525] = {["xp"] = 5550, ["level"] = 37},
[3526] = {["xp"] = 600, ["level"] = 47},
[3527] = {["xp"] = 9050, ["level"] = 47},
[3528] = {["xp"] = 11400, ["level"] = 53},
[3541] = {["xp"] = 3650, ["level"] = 52},
[3542] = {["xp"] = 3650, ["level"] = 52},
[3561] = {["xp"] = 3650, ["level"] = 52},
[3562] = {["xp"] = 5500, ["level"] = 52},
[3563] = {["xp"] = 5500, ["level"] = 52},
[3564] = {["xp"] = 5500, ["level"] = 52},
[3565] = {["xp"] = 5500, ["level"] = 52},
[3566] = {["xp"] = 8650, ["level"] = 46},
[3567] = {["xp"] = 0, ["level"] = nil},
[3568] = {["xp"] = 3650, ["level"] = 52},
[3569] = {["xp"] = 730, ["level"] = 52},
[3570] = {["xp"] = 7340, ["level"] = 52},
[3601] = {["xp"] = 9500, ["level"] = 53},
[3602] = {["xp"] = 11250, ["level"] = 58},
[3621] = {["xp"] = 6750, ["level"] = 58},
[3625] = {["xp"] = 900, ["level"] = 58},
[3626] = {["xp"] = 2250, ["level"] = 58},
[3627] = {["xp"] = 11900, ["level"] = 60},
[3628] = {["xp"] = 14300, ["level"] = 60},
[3629] = {["xp"] = 600, ["level"] = 47},
[3630] = {["xp"] = 600, ["level"] = 47},
[3631] = {["xp"] = 435, ["level"] = nil},
[3632] = {["xp"] = 600, ["level"] = 47},
[3633] = {["xp"] = 600, ["level"] = 47},
[3634] = {["xp"] = 600, ["level"] = 47},
[3635] = {["xp"] = 600, ["level"] = 47},
[3636] = {["xp"] = 5550, ["level"] = 37},
[3637] = {["xp"] = 600, ["level"] = 47},
[3638] = {["xp"] = 600, ["level"] = 47},
[3639] = {["xp"] = 4500, ["level"] = 47},
[3640] = {["xp"] = 600, ["level"] = 47},
[3641] = {["xp"] = 4500, ["level"] = 47},
[3642] = {["xp"] = 600, ["level"] = 47},
[3643] = {["xp"] = 4500, ["level"] = 47},
[3644] = {["xp"] = 0, ["level"] = nil},
[3645] = {["xp"] = 0, ["level"] = nil},
[3646] = {["xp"] = 0, ["level"] = nil},
[3647] = {["xp"] = 0, ["level"] = nil},
[3661] = {["xp"] = 6040, ["level"] = 47},
[3681] = {["xp"] = 225, ["level"] = nil},
[3701] = {["xp"] = 7890, ["level"] = 54},
[3702] = {["xp"] = 785, ["level"] = 54},
[3721] = {["xp"] = 10200, ["level"] = 50},
[3741] = {["xp"] = 1350, ["level"] = 15},
[3761] = {["xp"] = 6810, ["level"] = 50},
[3762] = {["xp"] = 680, ["level"] = 50},
[3763] = {["xp"] = 680, ["level"] = 50},
[3764] = {["xp"] = 6810, ["level"] = 50},
[3765] = {["xp"] = 1450, ["level"] = 24},
[3781] = {["xp"] = 680, ["level"] = 50},
[3782] = {["xp"] = 680, ["level"] = 50},
[3783] = {["xp"] = 6300, ["level"] = 56},
[3784] = {["xp"] = 680, ["level"] = 50},
[3785] = {["xp"] = 6810, ["level"] = 50},
[3786] = {["xp"] = 6810, ["level"] = 50},
[3787] = {["xp"] = 1700, ["level"] = 50},
[3788] = {["xp"] = 680, ["level"] = 50},
[3789] = {["xp"] = 680, ["level"] = 50},
[3790] = {["xp"] = 680, ["level"] = 50},
[3791] = {["xp"] = 6810, ["level"] = 50},
[3792] = {["xp"] = 0, ["level"] = nil},
[3801] = {["xp"] = 730, ["level"] = 52},
[3802] = {["xp"] = 11000, ["level"] = 52},
[3803] = {["xp"] = 0, ["level"] = nil},
[3804] = {["xp"] = 0, ["level"] = nil},
[3821] = {["xp"] = 7340, ["level"] = 52},
[3822] = {["xp"] = 7610, ["level"] = 53},
[3823] = {["xp"] = 7340, ["level"] = 52},
[3824] = {["xp"] = 7610, ["level"] = 53},
[3825] = {["xp"] = 7610, ["level"] = 53},
[3841] = {["xp"] = 1510, ["level"] = 47},
[3842] = {["xp"] = 3000, ["level"] = 47},
[3843] = {["xp"] = 6040, ["level"] = 47},
[3844] = {["xp"] = 1830, ["level"] = 52},
[3845] = {["xp"] = 7340, ["level"] = 52},
[3861] = {["xp"] = 0, ["level"] = nil},
[3881] = {["xp"] = 7610, ["level"] = 53},
[3882] = {["xp"] = 7070, ["level"] = 51},
[3883] = {["xp"] = 7340, ["level"] = 52},
[3884] = {["xp"] = 5100, ["level"] = 50},
[3885] = {["xp"] = 12250, ["level"] = 55},
[3901] = {["xp"] = 250, ["level"] = 3},
[3902] = {["xp"] = 315, ["level"] = 3},
[3903] = {["xp"] = 35, ["level"] = 4},
[3904] = {["xp"] = 180, ["level"] = 4},
[3905] = {["xp"] = 355, ["level"] = 4},
[3906] = {["xp"] = 7340, ["level"] = 52},
[3907] = {["xp"] = 12650, ["level"] = 56},
[3908] = {["xp"] = 7340, ["level"] = 52},
[3909] = {["xp"] = 7340, ["level"] = 52},
[3911] = {["xp"] = 7890, ["level"] = 54},
[3912] = {["xp"] = 7340, ["level"] = 52},
[3913] = {["xp"] = 3650, ["level"] = 52},
[3914] = {["xp"] = 7340, ["level"] = 52},
[3921] = {["xp"] = 490, ["level"] = 14},
[3922] = {["xp"] = 1050, ["level"] = 15},
[3923] = {["xp"] = 340, ["level"] = 18},
[3924] = {["xp"] = 1800, ["level"] = 19},
[3941] = {["xp"] = 1830, ["level"] = 52},
[3942] = {["xp"] = 7890, ["level"] = 54},
[3961] = {["xp"] = 3900, ["level"] = 54},
[3962] = {["xp"] = 10550, ["level"] = 56},
[3981] = {["xp"] = 11000, ["level"] = 52},
[3982] = {["xp"] = 11800, ["level"] = 54},
[4001] = {["xp"] = 9850, ["level"] = 54},
[4002] = {["xp"] = 785, ["level"] = 54},
[4003] = {["xp"] = 13950, ["level"] = 59},
[4004] = {["xp"] = 14300, ["level"] = 60},
[4005] = {["xp"] = 7890, ["level"] = 54},
[4021] = {["xp"] = 1950, ["level"] = 20},
[4022] = {["xp"] = 7890, ["level"] = 54},
[4023] = {["xp"] = 7890, ["level"] = 54},
[4024] = {["xp"] = 13500, ["level"] = 58},
[4041] = {["xp"] = 0, ["level"] = nil},
[4061] = {["xp"] = 11800, ["level"] = 54},
[4062] = {["xp"] = 1970, ["level"] = 54},
[4063] = {["xp"] = 13500, ["level"] = 58},
[4081] = {["xp"] = 11000, ["level"] = 52},
[4082] = {["xp"] = 11800, ["level"] = 54},
[4083] = {["xp"] = 8170, ["level"] = 55},
[4084] = {["xp"] = 7890, ["level"] = 54},
[4101] = {["xp"] = 8170, ["level"] = 55},
[4102] = {["xp"] = 8170, ["level"] = 55},
[4103] = {["xp"] = 0, ["level"] = nil},
[4104] = {["xp"] = 0, ["level"] = nil},
[4105] = {["xp"] = 0, ["level"] = nil},
[4106] = {["xp"] = 0, ["level"] = nil},
[4107] = {["xp"] = 0, ["level"] = nil},
[4108] = {["xp"] = 0, ["level"] = nil},
[4109] = {["xp"] = 0, ["level"] = nil},
[4110] = {["xp"] = 0, ["level"] = nil},
[4111] = {["xp"] = 0, ["level"] = nil},
[4112] = {["xp"] = 0, ["level"] = nil},
[4113] = {["xp"] = 0, ["level"] = nil},
[4114] = {["xp"] = 0, ["level"] = nil},
[4115] = {["xp"] = 0, ["level"] = nil},
[4116] = {["xp"] = 0, ["level"] = nil},
[4117] = {["xp"] = 0, ["level"] = nil},
[4118] = {["xp"] = 0, ["level"] = nil},
[4119] = {["xp"] = 0, ["level"] = nil},
[4120] = {["xp"] = 7340, ["level"] = 52},
[4121] = {["xp"] = 11250, ["level"] = 58},
[4122] = {["xp"] = 9020, ["level"] = 58},
[4123] = {["xp"] = 12250, ["level"] = 55},
[4124] = {["xp"] = 505, ["level"] = 43},
[4125] = {["xp"] = 3750, ["level"] = 43},
[4126] = {["xp"] = 12250, ["level"] = 55},
[4127] = {["xp"] = 525, ["level"] = 44},
[4128] = {["xp"] = 815, ["level"] = 55},
[4129] = {["xp"] = 525, ["level"] = 44},
[4130] = {["xp"] = 525, ["level"] = 44},
[4131] = {["xp"] = 3950, ["level"] = 44},
[4132] = {["xp"] = 13500, ["level"] = 58},
[4133] = {["xp"] = 815, ["level"] = 55},
[4134] = {["xp"] = 12250, ["level"] = 55},
[4135] = {["xp"] = 4300, ["level"] = 46},
[4136] = {["xp"] = 11400, ["level"] = 53},
[4141] = {["xp"] = 7340, ["level"] = 52},
[4142] = {["xp"] = 5500, ["level"] = 52},
[4143] = {["xp"] = 11000, ["level"] = 52},
[4144] = {["xp"] = 5700, ["level"] = 53},
[4145] = {["xp"] = 7340, ["level"] = 52},
[4146] = {["xp"] = 7340, ["level"] = 52},
[4147] = {["xp"] = 3650, ["level"] = 52},
[4148] = {["xp"] = 5700, ["level"] = 53},
[4161] = {["xp"] = 630, ["level"] = 7},
[4181] = {["xp"] = 600, ["level"] = 47},
[4182] = {["xp"] = 7890, ["level"] = 54},
[4183] = {["xp"] = 5900, ["level"] = 54},
[4184] = {["xp"] = 5900, ["level"] = 54},
[4185] = {["xp"] = 785, ["level"] = 54},
[4186] = {["xp"] = 7890, ["level"] = 54},
[4201] = {["xp"] = 11800, ["level"] = 54},
[4221] = {["xp"] = 0, ["level"] = nil},
[4222] = {["xp"] = 0, ["level"] = nil},
[4223] = {["xp"] = 785, ["level"] = 54},
[4224] = {["xp"] = 785, ["level"] = 54},
[4241] = {["xp"] = 11800, ["level"] = 54},
[4242] = {["xp"] = 7890, ["level"] = 54},
[4243] = {["xp"] = 3800, ["level"] = 53},
[4244] = {["xp"] = 5700, ["level"] = 53},
[4245] = {["xp"] = 9500, ["level"] = 53},
[4261] = {["xp"] = 10550, ["level"] = 56},
[4262] = {["xp"] = 7340, ["level"] = 52},
[4263] = {["xp"] = 12650, ["level"] = 56},
[4264] = {["xp"] = 9020, ["level"] = 58},
[4265] = {["xp"] = 5790, ["level"] = 46},
[4266] = {["xp"] = 8650, ["level"] = 46},
[4267] = {["xp"] = 575, ["level"] = 46},
[4281] = {["xp"] = 3950, ["level"] = 44},
[4282] = {["xp"] = 13500, ["level"] = 58},
[4283] = {["xp"] = 8450, ["level"] = 56},
[4284] = {["xp"] = 7610, ["level"] = 53},
[4285] = {["xp"] = 5700, ["level"] = 53},
[4286] = {["xp"] = 12650, ["level"] = 56},
[4287] = {["xp"] = 5700, ["level"] = 53},
[4288] = {["xp"] = 5700, ["level"] = 53},
[4289] = {["xp"] = 8170, ["level"] = 55},
[4290] = {["xp"] = 7610, ["level"] = 53},
[4291] = {["xp"] = 7610, ["level"] = 53},
[4292] = {["xp"] = 10550, ["level"] = 56},
[4293] = {["xp"] = 7340, ["level"] = 52},
[4294] = {["xp"] = 8450, ["level"] = 56},
[4295] = {["xp"] = 0, ["level"] = nil},
[4296] = {["xp"] = 3400, ["level"] = 50},
[4297] = {["xp"] = 6040, ["level"] = 47},
[4298] = {["xp"] = 625, ["level"] = 48},
[4299] = {["xp"] = 6810, ["level"] = 50},
[4300] = {["xp"] = 7340, ["level"] = 52},
[4301] = {["xp"] = 8170, ["level"] = 55},
[4321] = {["xp"] = 760, ["level"] = 53},
[4322] = {["xp"] = 13500, ["level"] = 58},
[4323] = {["xp"] = 2100, ["level"] = 26},
[4324] = {["xp"] = 0, ["level"] = nil},
[4341] = {["xp"] = 13950, ["level"] = 59},
[4342] = {["xp"] = 2320, ["level"] = 59},
[4343] = {["xp"] = 0, ["level"] = nil},
[4361] = {["xp"] = 9310, ["level"] = 59},
[4362] = {["xp"] = 13950, ["level"] = 59},
[4363] = {["xp"] = 13950, ["level"] = 59},
[4381] = {["xp"] = 0, ["level"] = nil},
[4382] = {["xp"] = 0, ["level"] = nil},
[4383] = {["xp"] = 0, ["level"] = nil},
[4384] = {["xp"] = 0, ["level"] = nil},
[4385] = {["xp"] = 0, ["level"] = nil},
[4386] = {["xp"] = 0, ["level"] = nil},
[4401] = {["xp"] = 0, ["level"] = nil},
[4402] = {["xp"] = 380, ["level"] = 3},
[4403] = {["xp"] = 0, ["level"] = nil},
[4421] = {["xp"] = 7890, ["level"] = 54},
[4441] = {["xp"] = 7890, ["level"] = 54},
[4442] = {["xp"] = 7890, ["level"] = 54},
[4443] = {["xp"] = 0, ["level"] = nil},
[4444] = {["xp"] = 0, ["level"] = nil},
[4445] = {["xp"] = 0, ["level"] = nil},
[4446] = {["xp"] = 0, ["level"] = nil},
[4447] = {["xp"] = 0, ["level"] = nil},
[4448] = {["xp"] = 0, ["level"] = nil},
[4449] = {["xp"] = 5540, ["level"] = 45},
[4450] = {["xp"] = 7200, ["level"] = 46},
[4451] = {["xp"] = 7550, ["level"] = 47},
[4461] = {["xp"] = 0, ["level"] = nil},
[4462] = {["xp"] = 0, ["level"] = nil},
[4463] = {["xp"] = 0, ["level"] = nil},
[4464] = {["xp"] = 0, ["level"] = nil},
[4465] = {["xp"] = 0, ["level"] = nil},
[4466] = {["xp"] = 0, ["level"] = nil},
[4467] = {["xp"] = 0, ["level"] = nil},
[4481] = {["xp"] = 0, ["level"] = nil},
[4482] = {["xp"] = 0, ["level"] = nil},
[4483] = {["xp"] = 0, ["level"] = nil},
[4484] = {["xp"] = 0, ["level"] = nil},
[4485] = {["xp"] = 435, ["level"] = 40},
[4486] = {["xp"] = 435, ["level"] = 40},
[4487] = {["xp"] = 435, ["level"] = nil},
[4488] = {["xp"] = 435, ["level"] = nil},
[4489] = {["xp"] = 435, ["level"] = nil},
[4490] = {["xp"] = 435, ["level"] = nil},
[4491] = {["xp"] = 8170, ["level"] = 55},
[4492] = {["xp"] = 4050, ["level"] = 55},
[4493] = {["xp"] = 760, ["level"] = 53},
[4494] = {["xp"] = 760, ["level"] = 53},
[4495] = {["xp"] = 270, ["level"] = 4},
[4496] = {["xp"] = 7610, ["level"] = 53},
[4501] = {["xp"] = 8170, ["level"] = 55},
[4502] = {["xp"] = 8170, ["level"] = 55},
[4503] = {["xp"] = 7070, ["level"] = 51},
[4504] = {["xp"] = 7890, ["level"] = 54},
[4505] = {["xp"] = 7890, ["level"] = 54},
[4506] = {["xp"] = 7890, ["level"] = 54},
[4507] = {["xp"] = 7890, ["level"] = 54},
[4508] = {["xp"] = 785, ["level"] = 54},
[4509] = {["xp"] = 785, ["level"] = 54},
[4510] = {["xp"] = 11800, ["level"] = 54},
[4511] = {["xp"] = 11800, ["level"] = 54},
[4512] = {["xp"] = 9150, ["level"] = 52},
[4513] = {["xp"] = 9850, ["level"] = 54},
[4521] = {["xp"] = 8450, ["level"] = 56},
[4542] = {["xp"] = 510, ["level"] = 25},
[4561] = {["xp"] = 0, ["level"] = nil},
[4581] = {["xp"] = 590, ["level"] = 29},
[4601] = {["xp"] = 0, ["level"] = nil},
[4602] = {["xp"] = 0, ["level"] = nil},
[4603] = {["xp"] = 0, ["level"] = nil},
[4604] = {["xp"] = 0, ["level"] = nil},
[4605] = {["xp"] = 2450, ["level"] = 30},
[4606] = {["xp"] = 2450, ["level"] = 30},
[4621] = {["xp"] = 14300, ["level"] = 60},
[4641] = {["xp"] = 40, ["level"] = 1},
[4642] = {["xp"] = 10200, ["level"] = 55},
[4661] = {["xp"] = 0, ["level"] = nil},
[4681] = {["xp"] = 980, ["level"] = 14},
[4701] = {["xp"] = 13950, ["level"] = 59},
[4721] = {["xp"] = 9310, ["level"] = 59},
[4722] = {["xp"] = 455, ["level"] = 13},
[4723] = {["xp"] = 455, ["level"] = 13},
[4724] = {["xp"] = 13950, ["level"] = 59},
[4725] = {["xp"] = 540, ["level"] = 15},
[4726] = {["xp"] = 7340, ["level"] = 52},
[4727] = {["xp"] = 540, ["level"] = 15},
[4728] = {["xp"] = 490, ["level"] = 14},
[4729] = {["xp"] = 13950, ["level"] = 59},
[4730] = {["xp"] = 580, ["level"] = 16},
[4731] = {["xp"] = 730, ["level"] = 19},
[4732] = {["xp"] = 730, ["level"] = 19},
[4733] = {["xp"] = 730, ["level"] = 19},
[4734] = {["xp"] = 14300, ["level"] = 60},
[4735] = {["xp"] = 14300, ["level"] = 60},
[4736] = {["xp"] = 630, ["level"] = 31},
[4737] = {["xp"] = 630, ["level"] = 31},
[4738] = {["xp"] = 630, ["level"] = 31},
[4739] = {["xp"] = 630, ["level"] = 31},
[4740] = {["xp"] = 1700, ["level"] = 18},
[4741] = {["xp"] = 9020, ["level"] = 58},
[4742] = {["xp"] = 14300, ["level"] = 60},
[4743] = {["xp"] = 14300, ["level"] = 60},
[4761] = {["xp"] = 105, ["level"] = 15},
[4762] = {["xp"] = 800, ["level"] = 15},
[4763] = {["xp"] = 1700, ["level"] = 18},
[4764] = {["xp"] = 14300, ["level"] = 60},
[4765] = {["xp"] = 9550, ["level"] = 60},
[4766] = {["xp"] = 955, ["level"] = 60},
[4767] = {["xp"] = 1750, ["level"] = 29},
[4768] = {["xp"] = 14300, ["level"] = 60},
[4769] = {["xp"] = 955, ["level"] = 60},
[4770] = {["xp"] = 2350, ["level"] = 29},
[4771] = {["xp"] = 14300, ["level"] = 60},
[4781] = {["xp"] = 2300, ["level"] = 34},
[4782] = {["xp"] = 1550, ["level"] = 34},
[4783] = {["xp"] = 3710, ["level"] = 37},
[4784] = {["xp"] = 2750, ["level"] = 37},
[4785] = {["xp"] = 0, ["level"] = nil},
[4786] = {["xp"] = 4900, ["level"] = 38},
[4787] = {["xp"] = 8500, ["level"] = 50},
[4788] = {["xp"] = 13500, ["level"] = 58},
[4801] = {["xp"] = 0, ["level"] = nil},
[4802] = {["xp"] = 0, ["level"] = nil},
[4803] = {["xp"] = 0, ["level"] = nil},
[4804] = {["xp"] = 0, ["level"] = nil},
[4805] = {["xp"] = 0, ["level"] = nil},
[4806] = {["xp"] = 0, ["level"] = nil},
[4807] = {["xp"] = 0, ["level"] = nil},
[4808] = {["xp"] = 3900, ["level"] = 54},
[4809] = {["xp"] = 7890, ["level"] = 54},
[4810] = {["xp"] = 3900, ["level"] = 54},
[4811] = {["xp"] = 490, ["level"] = 14},
[4812] = {["xp"] = 490, ["level"] = 14},
[4813] = {["xp"] = 980, ["level"] = 14},
[4821] = {["xp"] = 2100, ["level"] = 26},
[4822] = {["xp"] = 955, ["level"] = 60},
[4841] = {["xp"] = 2000, ["level"] = 25},
[4842] = {["xp"] = 8450, ["level"] = 56},
[4861] = {["xp"] = 4650, ["level"] = 59},
[4862] = {["xp"] = 13950, ["level"] = 59},
[4863] = {["xp"] = 4650, ["level"] = 59},
[4864] = {["xp"] = 9310, ["level"] = 59},
[4865] = {["xp"] = 1050, ["level"] = 26},
[4866] = {["xp"] = 14300, ["level"] = 60},
[4867] = {["xp"] = 14300, ["level"] = 60},
[4881] = {["xp"] = 2300, ["level"] = 28},
[4882] = {["xp"] = 4650, ["level"] = 59},
[4883] = {["xp"] = 9310, ["level"] = 59},
[4901] = {["xp"] = 6950, ["level"] = 59},
[4902] = {["xp"] = 8730, ["level"] = 57},
[4903] = {["xp"] = 14300, ["level"] = 60},
[4904] = {["xp"] = 2350, ["level"] = 29},
[4906] = {["xp"] = 7890, ["level"] = 54},
[4907] = {["xp"] = 955, ["level"] = 60},
[4921] = {["xp"] = 1150, ["level"] = 20},
[4941] = {["xp"] = 9550, ["level"] = 60},
[4961] = {["xp"] = 3250, ["level"] = 40},
[4962] = {["xp"] = 3250, ["level"] = 40},
[4963] = {["xp"] = 3250, ["level"] = 40},
[4964] = {["xp"] = 5450, ["level"] = 40},
[4965] = {["xp"] = 1650, ["level"] = 35},
[4966] = {["xp"] = 2300, ["level"] = 28},
[4967] = {["xp"] = 1650, ["level"] = 35},
[4968] = {["xp"] = 1650, ["level"] = 35},
[4969] = {["xp"] = 1650, ["level"] = 35},
[4970] = {["xp"] = 0, ["level"] = nil},
[4971] = {["xp"] = 8450, ["level"] = 56},
[4972] = {["xp"] = 8450, ["level"] = 56},
[4973] = {["xp"] = 0, ["level"] = nil},
[4974] = {["xp"] = 14300, ["level"] = 60},
[4975] = {["xp"] = 5450, ["level"] = 40},
[4976] = {["xp"] = 2150, ["level"] = 40},
[4981] = {["xp"] = 13950, ["level"] = 59},
[4982] = {["xp"] = 13950, ["level"] = 59},
[4983] = {["xp"] = 9310, ["level"] = 59},
[4984] = {["xp"] = 5900, ["level"] = 54},
[4985] = {["xp"] = 6300, ["level"] = 56},
[4986] = {["xp"] = 8450, ["level"] = 56},
[4987] = {["xp"] = 8450, ["level"] = 56},
[5001] = {["xp"] = 13950, ["level"] = 59},
[5002] = {["xp"] = 9310, ["level"] = 59},
[5021] = {["xp"] = 3650, ["level"] = 52},
[5022] = {["xp"] = 3650, ["level"] = 52},
[5023] = {["xp"] = 3650, ["level"] = 52},
[5041] = {["xp"] = 980, ["level"] = 14},
[5042] = {["xp"] = 0, ["level"] = nil},
[5043] = {["xp"] = 0, ["level"] = nil},
[5044] = {["xp"] = 0, ["level"] = nil},
[5045] = {["xp"] = 0, ["level"] = nil},
[5046] = {["xp"] = 0, ["level"] = nil},
[5047] = {["xp"] = 9550, ["level"] = 60},
[5048] = {["xp"] = 7340, ["level"] = 52},
[5049] = {["xp"] = 7340, ["level"] = 52},
[5050] = {["xp"] = 3650, ["level"] = 52},
[5051] = {["xp"] = 7890, ["level"] = 54},
[5052] = {["xp"] = 1250, ["level"] = 21},
[5054] = {["xp"] = 8450, ["level"] = 56},
[5055] = {["xp"] = 9020, ["level"] = 58},
[5056] = {["xp"] = 11900, ["level"] = 60},
[5057] = {["xp"] = 4750, ["level"] = 60},
[5058] = {["xp"] = 0, ["level"] = nil},
[5059] = {["xp"] = 0, ["level"] = nil},
[5060] = {["xp"] = 10200, ["level"] = 55},
[5061] = {["xp"] = 1150, ["level"] = nil},
[5062] = {["xp"] = 2200, ["level"] = 27},
[5063] = {["xp"] = 0, ["level"] = nil},
[5064] = {["xp"] = 2300, ["level"] = 28},
[5065] = {["xp"] = 11250, ["level"] = 58},
[5066] = {["xp"] = 680, ["level"] = 50},
[5067] = {["xp"] = 0, ["level"] = nil},
[5068] = {["xp"] = 0, ["level"] = nil},
[5081] = {["xp"] = 14300, ["level"] = 60},
[5082] = {["xp"] = 8450, ["level"] = 56},
[5083] = {["xp"] = 4200, ["level"] = 56},
[5084] = {["xp"] = 6300, ["level"] = 56},
[5085] = {["xp"] = 6300, ["level"] = 56},
[5086] = {["xp"] = 8450, ["level"] = 56},
[5087] = {["xp"] = 8730, ["level"] = 57},
[5088] = {["xp"] = 2300, ["level"] = 28},
[5089] = {["xp"] = 14300, ["level"] = 60},
[5090] = {["xp"] = 680, ["level"] = 50},
[5091] = {["xp"] = 680, ["level"] = 50},
[5092] = {["xp"] = 7340, ["level"] = 52},
[5093] = {["xp"] = 680, ["level"] = 50},
[5094] = {["xp"] = 680, ["level"] = 50},
[5095] = {["xp"] = 680, ["level"] = 50},
[5096] = {["xp"] = 7610, ["level"] = 53},
[5097] = {["xp"] = 8450, ["level"] = 56},
[5098] = {["xp"] = 8450, ["level"] = 56},
[5101] = {["xp"] = 450, ["level"] = 5},
[5102] = {["xp"] = 14300, ["level"] = 60},
[5103] = {["xp"] = 9550, ["level"] = 60},
[5121] = {["xp"] = 11600, ["level"] = 59},
[5122] = {["xp"] = 0, ["level"] = nil},
[5123] = {["xp"] = 4650, ["level"] = 59},
[5124] = {["xp"] = 11900, ["level"] = 60},
[5125] = {["xp"] = 14300, ["level"] = 60},
[5126] = {["xp"] = 955, ["level"] = 60},
[5127] = {["xp"] = 14300, ["level"] = 60},
[5128] = {["xp"] = 9310, ["level"] = 59},
[5141] = {["xp"] = 6100, ["level"] = 55},
[5142] = {["xp"] = 4050, ["level"] = 55},
[5143] = {["xp"] = 6100, ["level"] = 55},
[5144] = {["xp"] = 6100, ["level"] = 55},
[5145] = {["xp"] = 6100, ["level"] = 55},
[5146] = {["xp"] = 6100, ["level"] = 55},
[5147] = {["xp"] = 2350, ["level"] = 29},
[5148] = {["xp"] = 6100, ["level"] = 55},
[5149] = {["xp"] = 4050, ["level"] = 55},
[5150] = {["xp"] = 0, ["level"] = nil},
[5151] = {["xp"] = 3050, ["level"] = 30},
[5152] = {["xp"] = 4200, ["level"] = 56},
[5153] = {["xp"] = 6300, ["level"] = 56},
[5154] = {["xp"] = 8450, ["level"] = 56},
[5155] = {["xp"] = 7070, ["level"] = 51},
[5156] = {["xp"] = 9850, ["level"] = 54},
[5157] = {["xp"] = 5500, ["level"] = 52},
[5158] = {["xp"] = 3650, ["level"] = 52},
[5159] = {["xp"] = 3900, ["level"] = 54},
[5160] = {["xp"] = 9550, ["level"] = 60},
[5161] = {["xp"] = 955, ["level"] = 60},
[5162] = {["xp"] = 9550, ["level"] = 60},
[5163] = {["xp"] = 11250, ["level"] = 58},
[5164] = {["xp"] = 955, ["level"] = 60},
[5165] = {["xp"] = 8170, ["level"] = 55},
[5166] = {["xp"] = 14300, ["level"] = 60},
[5167] = {["xp"] = 14300, ["level"] = 60},
[5168] = {["xp"] = 8450, ["level"] = 56},
[5181] = {["xp"] = 8730, ["level"] = 57},
[5201] = {["xp"] = 0, ["level"] = nil},
[5202] = {["xp"] = 8170, ["level"] = 55},
[5203] = {["xp"] = 8170, ["level"] = 55},
[5204] = {["xp"] = 6500, ["level"] = 57},
[5206] = {["xp"] = 9550, ["level"] = 60},
[5210] = {["xp"] = 4200, ["level"] = 56},
[5211] = {["xp"] = 8170, ["level"] = 55},
[5212] = {["xp"] = 14300, ["level"] = 60},
[5213] = {["xp"] = 14300, ["level"] = 60},
[5214] = {["xp"] = 14300, ["level"] = 60},
[5215] = {["xp"] = 760, ["level"] = 53},
[5216] = {["xp"] = 7610, ["level"] = 53},
[5217] = {["xp"] = 3800, ["level"] = 53},
[5218] = {["xp"] = 0, ["level"] = nil},
[5219] = {["xp"] = 8170, ["level"] = 55},
[5220] = {["xp"] = 4050, ["level"] = 55},
[5221] = {["xp"] = 0, ["level"] = nil},
[5222] = {["xp"] = 8170, ["level"] = 55},
[5223] = {["xp"] = 4050, ["level"] = 55},
[5224] = {["xp"] = 0, ["level"] = nil},
[5225] = {["xp"] = 9020, ["level"] = 58},
[5226] = {["xp"] = 4500, ["level"] = 58},
[5227] = {["xp"] = 0, ["level"] = nil},
[5228] = {["xp"] = 760, ["level"] = 53},
[5229] = {["xp"] = 7610, ["level"] = 53},
[5230] = {["xp"] = 3800, ["level"] = 53},
[5231] = {["xp"] = 8170, ["level"] = 55},
[5232] = {["xp"] = 4050, ["level"] = 55},
[5233] = {["xp"] = 8170, ["level"] = 55},
[5234] = {["xp"] = 4050, ["level"] = 55},
[5235] = {["xp"] = 9020, ["level"] = 58},
[5236] = {["xp"] = 4500, ["level"] = 58},
[5237] = {["xp"] = 13500, ["level"] = 58},
[5238] = {["xp"] = 13500, ["level"] = 58},
[5241] = {["xp"] = 4200, ["level"] = 56},
[5242] = {["xp"] = 13500, ["level"] = 58},
[5243] = {["xp"] = 14300, ["level"] = 60},
[5244] = {["xp"] = 845, ["level"] = 56},
[5245] = {["xp"] = 8450, ["level"] = 56},
[5246] = {["xp"] = 8450, ["level"] = 56},
[5247] = {["xp"] = 8730, ["level"] = 57},
[5248] = {["xp"] = 6750, ["level"] = 58},
[5249] = {["xp"] = 845, ["level"] = 56},
[5250] = {["xp"] = 845, ["level"] = 56},
[5251] = {["xp"] = 14300, ["level"] = 60},
[5252] = {["xp"] = 6750, ["level"] = 58},
[5253] = {["xp"] = 9020, ["level"] = 58},
[5261] = {["xp"] = 85, ["level"] = 2},
[5262] = {["xp"] = 14300, ["level"] = 60},
[5263] = {["xp"] = 14300, ["level"] = 60},
[5264] = {["xp"] = 9550, ["level"] = 60},
[5265] = {["xp"] = 14300, ["level"] = 60},
[5281] = {["xp"] = 9550, ["level"] = 60},
[5282] = {["xp"] = 14300, ["level"] = 60},
[5283] = {["xp"] = 4370, ["level"] = 40},
[5284] = {["xp"] = 4370, ["level"] = 40},
[5301] = {["xp"] = 4370, ["level"] = 40},
[5302] = {["xp"] = 4370, ["level"] = 40},
[5305] = {["xp"] = 14300, ["level"] = 60},
[5306] = {["xp"] = 14300, ["level"] = 60},
[5307] = {["xp"] = 14300, ["level"] = 60},
[5321] = {["xp"] = 1550, ["level"] = 20},
[5341] = {["xp"] = 14300, ["level"] = 60},
[5342] = {["xp"] = 11900, ["level"] = 60},
[5343] = {["xp"] = 14300, ["level"] = 60},
[5344] = {["xp"] = 11900, ["level"] = 60},
[5361] = {["xp"] = 2450, ["level"] = 35},
[5381] = {["xp"] = 3920, ["level"] = 38},
[5382] = {["xp"] = 14300, ["level"] = 60},
[5383] = {["xp"] = 9550, ["level"] = 60},
[5384] = {["xp"] = 14300, ["level"] = 60},
[5385] = {["xp"] = 10900, ["level"] = 57},
[5386] = {["xp"] = 2750, ["level"] = 37},
[5401] = {["xp"] = 0, ["level"] = nil},
[5402] = {["xp"] = 0, ["level"] = nil},
[5403] = {["xp"] = 0, ["level"] = nil},
[5404] = {["xp"] = 0, ["level"] = nil},
[5405] = {["xp"] = 0, ["level"] = nil},
[5406] = {["xp"] = 0, ["level"] = nil},
[5407] = {["xp"] = 0, ["level"] = nil},
[5408] = {["xp"] = 0, ["level"] = nil},
[5421] = {["xp"] = 0, ["level"] = nil},
[5441] = {["xp"] = 445, ["level"] = 4},
[5461] = {["xp"] = 9550, ["level"] = 60},
[5462] = {["xp"] = 7150, ["level"] = 60},
[5463] = {["xp"] = 14300, ["level"] = 60},
[5464] = {["xp"] = 11900, ["level"] = 60},
[5465] = {["xp"] = 7150, ["level"] = 60},
[5466] = {["xp"] = 14300, ["level"] = 60},
[5481] = {["xp"] = 225, ["level"] = 5},
[5482] = {["xp"] = 540, ["level"] = 6},
[5501] = {["xp"] = 3100, ["level"] = 39},
[5502] = {["xp"] = 2380, ["level"] = 60},
[5503] = {["xp"] = 0, ["level"] = nil},
[5504] = {["xp"] = 9550, ["level"] = 60},
[5505] = {["xp"] = 14300, ["level"] = 60},
[5507] = {["xp"] = 9550, ["level"] = 60},
[5508] = {["xp"] = 0, ["level"] = nil},
[5509] = {["xp"] = 0, ["level"] = nil},
[5510] = {["xp"] = 0, ["level"] = nil},
[5511] = {["xp"] = 14300, ["level"] = 60},
[5513] = {["xp"] = 9550, ["level"] = 60},
[5514] = {["xp"] = 870, ["level"] = 57},
[5515] = {["xp"] = 14300, ["level"] = 60},
[5517] = {["xp"] = 11900, ["level"] = 60},
[5518] = {["xp"] = 9550, ["level"] = 60},
[5519] = {["xp"] = 0, ["level"] = nil},
[5521] = {["xp"] = 11900, ["level"] = 60},
[5522] = {["xp"] = 7150, ["level"] = 60},
[5524] = {["xp"] = 11900, ["level"] = 60},
[5525] = {["xp"] = 9550, ["level"] = 60},
[5526] = {["xp"] = 14300, ["level"] = 60},
[5527] = {["xp"] = 9550, ["level"] = 60},
[5528] = {["xp"] = 0, ["level"] = nil},
[5529] = {["xp"] = 13500, ["level"] = 58},
[5531] = {["xp"] = 2380, ["level"] = 60},
[5533] = {["xp"] = 815, ["level"] = 55},
[5534] = {["xp"] = 9500, ["level"] = 53},
[5535] = {["xp"] = 6040, ["level"] = 47},
[5536] = {["xp"] = 6040, ["level"] = 47},
[5537] = {["xp"] = 6500, ["level"] = 57},
[5538] = {["xp"] = 870, ["level"] = 57},
[5541] = {["xp"] = 540, ["level"] = 6},
[5542] = {["xp"] = 8450, ["level"] = 56},
[5543] = {["xp"] = 8450, ["level"] = 56},
[5544] = {["xp"] = 8450, ["level"] = 56},
[5545] = {["xp"] = 780, ["level"] = 9},
[5561] = {["xp"] = 2300, ["level"] = 34},
[5581] = {["xp"] = 4900, ["level"] = 38},
[5582] = {["xp"] = 0, ["level"] = nil},
[5601] = {["xp"] = 815, ["level"] = 55},
[5621] = {["xp"] = 270, ["level"] = 4},
[5622] = {["xp"] = 90, ["level"] = 4},
[5623] = {["xp"] = 90, ["level"] = 4},
[5624] = {["xp"] = 270, ["level"] = 4},
[5625] = {["xp"] = 270, ["level"] = 4},
[5626] = {["xp"] = 90, ["level"] = 4},
[5627] = {["xp"] = 0, ["level"] = nil},
[5628] = {["xp"] = 210, ["level"] = nil},
[5629] = {["xp"] = 210, ["level"] = nil},
[5630] = {["xp"] = 210, ["level"] = nil},
[5631] = {["xp"] = 210, ["level"] = nil},
[5632] = {["xp"] = 210, ["level"] = nil},
[5633] = {["xp"] = 210, ["level"] = nil},
[5634] = {["xp"] = 0, ["level"] = nil},
[5635] = {["xp"] = 210, ["level"] = nil},
[5636] = {["xp"] = 210, ["level"] = nil},
[5637] = {["xp"] = 210, ["level"] = nil},
[5638] = {["xp"] = 210, ["level"] = nil},
[5639] = {["xp"] = 0, ["level"] = nil},
[5640] = {["xp"] = 210, ["level"] = 10},
[5641] = {["xp"] = 0, ["level"] = nil},
[5642] = {["xp"] = 390, ["level"] = nil},
[5643] = {["xp"] = 390, ["level"] = nil},
[5644] = {["xp"] = 390, ["level"] = nil},
[5645] = {["xp"] = 390, ["level"] = nil},
[5646] = {["xp"] = 390, ["level"] = nil},
[5647] = {["xp"] = 390, ["level"] = nil},
[5648] = {["xp"] = 270, ["level"] = 4},
[5649] = {["xp"] = 90, ["level"] = 4},
[5650] = {["xp"] = 270, ["level"] = 4},
[5651] = {["xp"] = 90, ["level"] = 4},
[5652] = {["xp"] = 0, ["level"] = nil},
[5654] = {["xp"] = 210, ["level"] = nil},
[5655] = {["xp"] = 210, ["level"] = nil},
[5656] = {["xp"] = 210, ["level"] = nil},
[5657] = {["xp"] = 210, ["level"] = nil},
[5658] = {["xp"] = 0, ["level"] = nil},
[5660] = {["xp"] = 210, ["level"] = nil},
[5661] = {["xp"] = 210, ["level"] = nil},
[5662] = {["xp"] = 210, ["level"] = nil},
[5663] = {["xp"] = 210, ["level"] = 10},
[5672] = {["xp"] = 0, ["level"] = nil},
[5673] = {["xp"] = 390, ["level"] = nil},
[5674] = {["xp"] = 390, ["level"] = 20},
[5675] = {["xp"] = 390, ["level"] = nil},
[5676] = {["xp"] = 0, ["level"] = nil},
[5677] = {["xp"] = 390, ["level"] = nil},
[5678] = {["xp"] = 390, ["level"] = 20},
[5679] = {["xp"] = 0, ["level"] = nil},
[5680] = {["xp"] = 0, ["level"] = nil},
[5713] = {["xp"] = 1050, ["level"] = 15},
[5721] = {["xp"] = 11900, ["level"] = 60},
[5722] = {["xp"] = 880, ["level"] = 16},
[5723] = {["xp"] = 1600, ["level"] = 15},
[5724] = {["xp"] = 1750, ["level"] = 16},
[5725] = {["xp"] = 1750, ["level"] = 16},
[5726] = {["xp"] = 910, ["level"] = 12},
[5727] = {["xp"] = 455, ["level"] = 12},
[5728] = {["xp"] = 1750, ["level"] = 16},
[5729] = {["xp"] = 105, ["level"] = 15},
[5730] = {["xp"] = 1450, ["level"] = 16},
[5741] = {["xp"] = 2900, ["level"] = 33},
[5742] = {["xp"] = 845, ["level"] = 56},
[5761] = {["xp"] = 1750, ["level"] = 16},
[5762] = {["xp"] = 1250, ["level"] = 31},
[5763] = {["xp"] = 1250, ["level"] = 31},
[5781] = {["xp"] = 8730, ["level"] = 57},
[5801] = {["xp"] = 6500, ["level"] = 57},
[5802] = {["xp"] = 6500, ["level"] = 57},
[5803] = {["xp"] = 7150, ["level"] = 60},
[5804] = {["xp"] = 7150, ["level"] = 60},
[5805] = {["xp"] = 0, ["level"] = nil},
[5821] = {["xp"] = 3300, ["level"] = 35},
[5841] = {["xp"] = 0, ["level"] = nil},
[5842] = {["xp"] = 0, ["level"] = nil},
[5843] = {["xp"] = 0, ["level"] = nil},
[5844] = {["xp"] = 0, ["level"] = nil},
[5845] = {["xp"] = 9020, ["level"] = 58},
[5846] = {["xp"] = 9020, ["level"] = 58},
[5847] = {["xp"] = 0, ["level"] = nil},
[5848] = {["xp"] = 14300, ["level"] = 60},
[5861] = {["xp"] = 7150, ["level"] = 60},
[5862] = {["xp"] = 9550, ["level"] = 60},
[5863] = {["xp"] = 6550, ["level"] = 49},
[5881] = {["xp"] = 1150, ["level"] = 28},
[5882] = {["xp"] = 6100, ["level"] = 55},
[5883] = {["xp"] = 6100, ["level"] = 55},
[5884] = {["xp"] = 6100, ["level"] = 55},
[5885] = {["xp"] = 6100, ["level"] = 55},
[5886] = {["xp"] = 6100, ["level"] = 55},
[5887] = {["xp"] = 6100, ["level"] = 55},
[5888] = {["xp"] = 6100, ["level"] = 55},
[5889] = {["xp"] = 6100, ["level"] = 55},
[5890] = {["xp"] = 6100, ["level"] = 55},
[5891] = {["xp"] = 6100, ["level"] = 55},
[5892] = {["xp"] = 0, ["level"] = nil},
[5893] = {["xp"] = 0, ["level"] = nil},
[5901] = {["xp"] = 8170, ["level"] = 55},
[5902] = {["xp"] = 4050, ["level"] = 55},
[5903] = {["xp"] = 8170, ["level"] = 55},
[5904] = {["xp"] = 4050, ["level"] = 55},
[5921] = {["xp"] = 210, ["level"] = nil},
[5922] = {["xp"] = 210, ["level"] = nil},
[5923] = {["xp"] = 85, ["level"] = nil},
[5924] = {["xp"] = 85, ["level"] = nil},
[5925] = {["xp"] = 85, ["level"] = nil},
[5926] = {["xp"] = 85, ["level"] = nil},
[5927] = {["xp"] = 85, ["level"] = nil},
[5928] = {["xp"] = 85, ["level"] = nil},
[5929] = {["xp"] = 420, ["level"] = nil},
[5930] = {["xp"] = 420, ["level"] = nil},
[5931] = {["xp"] = 85, ["level"] = nil},
[5932] = {["xp"] = 85, ["level"] = nil},
[5941] = {["xp"] = 4750, ["level"] = 60},
[5942] = {["xp"] = 14300, ["level"] = 60},
[5943] = {["xp"] = 3920, ["level"] = 38},
[5944] = {["xp"] = 14300, ["level"] = 60},
[5961] = {["xp"] = 2110, ["level"] = 56},
[5981] = {["xp"] = 0, ["level"] = nil},
[6001] = {["xp"] = 840, ["level"] = nil},
[6002] = {["xp"] = 840, ["level"] = nil},
[6004] = {["xp"] = 8450, ["level"] = 56},
[6021] = {["xp"] = 6100, ["level"] = 55},
[6022] = {["xp"] = 9020, ["level"] = 58},
[6023] = {["xp"] = 8730, ["level"] = 57},
[6024] = {["xp"] = 9550, ["level"] = 60},
[6025] = {["xp"] = 9020, ["level"] = 58},
[6026] = {["xp"] = 9020, ["level"] = 58},
[6027] = {["xp"] = 4900, ["level"] = 38},
[6028] = {["xp"] = 3650, ["level"] = 52},
[6029] = {["xp"] = 3650, ["level"] = 52},
[6030] = {["xp"] = 3650, ["level"] = 52},
[6031] = {["xp"] = 8170, ["level"] = 55},
[6032] = {["xp"] = 8170, ["level"] = 55},
[6041] = {["xp"] = 9020, ["level"] = 58},
[6042] = {["xp"] = 9020, ["level"] = 58},
[6061] = {["xp"] = 840, ["level"] = 10},
[6062] = {["xp"] = 840, ["level"] = nil},
[6063] = {["xp"] = 840, ["level"] = nil},
[6064] = {["xp"] = 840, ["level"] = nil},
[6065] = {["xp"] = 85, ["level"] = nil},
[6066] = {["xp"] = 85, ["level"] = 10},
[6067] = {["xp"] = 85, ["level"] = 10},
[6068] = {["xp"] = 85, ["level"] = nil},
[6069] = {["xp"] = 85, ["level"] = nil},
[6070] = {["xp"] = 85, ["level"] = nil},
[6071] = {["xp"] = 85, ["level"] = nil},
[6072] = {["xp"] = 85, ["level"] = 10},
[6073] = {["xp"] = 85, ["level"] = nil},
[6074] = {["xp"] = 85, ["level"] = nil},
[6075] = {["xp"] = 85, ["level"] = nil},
[6076] = {["xp"] = 85, ["level"] = nil},
[6081] = {["xp"] = 420, ["level"] = nil},
[6082] = {["xp"] = 840, ["level"] = nil},
[6083] = {["xp"] = 840, ["level"] = nil},
[6084] = {["xp"] = 840, ["level"] = nil},
[6085] = {["xp"] = 840, ["level"] = nil},
[6086] = {["xp"] = 420, ["level"] = nil},
[6087] = {["xp"] = 840, ["level"] = 10},
[6088] = {["xp"] = 840, ["level"] = 10},
[6089] = {["xp"] = 420, ["level"] = 10},
[6101] = {["xp"] = 840, ["level"] = nil},
[6102] = {["xp"] = 840, ["level"] = nil},
[6103] = {["xp"] = 420, ["level"] = nil},
[6121] = {["xp"] = 100, ["level"] = nil},
[6122] = {["xp"] = 740, ["level"] = nil},
[6123] = {["xp"] = 740, ["level"] = nil},
[6124] = {["xp"] = 740, ["level"] = nil},
[6125] = {["xp"] = 980, ["level"] = nil},
[6126] = {["xp"] = 100, ["level"] = nil},
[6127] = {["xp"] = 740, ["level"] = nil},
[6128] = {["xp"] = 740, ["level"] = nil},
[6129] = {["xp"] = 740, ["level"] = nil},
[6130] = {["xp"] = 980, ["level"] = nil},
[6131] = {["xp"] = 0, ["level"] = nil},
[6132] = {["xp"] = 3100, ["level"] = 39},
[6133] = {["xp"] = 9550, ["level"] = 60},
[6134] = {["xp"] = 3100, ["level"] = 39},
[6135] = {["xp"] = 9550, ["level"] = 60},
[6136] = {["xp"] = 9550, ["level"] = 60},
[6141] = {["xp"] = 410, ["level"] = 39},
[6142] = {["xp"] = 3300, ["level"] = 35},
[6143] = {["xp"] = 3500, ["level"] = 36},
[6144] = {["xp"] = 955, ["level"] = 60},
[6145] = {["xp"] = 9550, ["level"] = 60},
[6146] = {["xp"] = 9550, ["level"] = 60},
[6147] = {["xp"] = 4750, ["level"] = 60},
[6148] = {["xp"] = 11900, ["level"] = 60},
[6161] = {["xp"] = 3500, ["level"] = 36},
[6162] = {["xp"] = 7070, ["level"] = 51},
[6163] = {["xp"] = 14300, ["level"] = 60},
[6164] = {["xp"] = 2040, ["level"] = 55},
[6181] = {["xp"] = 210, ["level"] = 10},
[6182] = {["xp"] = 955, ["level"] = 60},
[6183] = {["xp"] = 955, ["level"] = 60},
[6184] = {["xp"] = 7150, ["level"] = 60},
[6185] = {["xp"] = 11900, ["level"] = 60},
[6186] = {["xp"] = 9550, ["level"] = 60},
[6187] = {["xp"] = 14300, ["level"] = 60},
[6221] = {["xp"] = 0, ["level"] = nil},
[6241] = {["xp"] = 0, ["level"] = nil},
[6261] = {["xp"] = 210, ["level"] = 10},
[6281] = {["xp"] = 420, ["level"] = 10},
[6282] = {["xp"] = 2100, ["level"] = 26},
[6283] = {["xp"] = 2100, ["level"] = 26},
[6284] = {["xp"] = 1650, ["level"] = 21},
[6285] = {["xp"] = 1050, ["level"] = 10},
[6301] = {["xp"] = 1400, ["level"] = 23},
[6321] = {["xp"] = 210, ["level"] = 10},
[6322] = {["xp"] = 210, ["level"] = 10},
[6323] = {["xp"] = 420, ["level"] = 10},
[6324] = {["xp"] = 1050, ["level"] = 10},
[6341] = {["xp"] = 210, ["level"] = 10},
[6342] = {["xp"] = 420, ["level"] = 10},
[6343] = {["xp"] = 1050, ["level"] = 10},
[6344] = {["xp"] = 210, ["level"] = 10},
[6361] = {["xp"] = 210, ["level"] = 10},
[6362] = {["xp"] = 420, ["level"] = 10},
[6363] = {["xp"] = 210, ["level"] = 10},
[6364] = {["xp"] = 1050, ["level"] = 10},
[6365] = {["xp"] = 210, ["level"] = 10},
[6381] = {["xp"] = 2000, ["level"] = 25},
[6382] = {["xp"] = 390, ["level"] = 20},
[6383] = {["xp"] = 0, ["level"] = nil},
[6384] = {["xp"] = 420, ["level"] = 10},
[6385] = {["xp"] = 210, ["level"] = 10},
[6386] = {["xp"] = 1050, ["level"] = 10},
[6387] = {["xp"] = 210, ["level"] = 10},
[6388] = {["xp"] = 210, ["level"] = 10},
[6389] = {["xp"] = 8170, ["level"] = 55},
[6390] = {["xp"] = 8170, ["level"] = 55},
[6391] = {["xp"] = 420, ["level"] = 10},
[6392] = {["xp"] = 1050, ["level"] = 10},
[6393] = {["xp"] = 2000, ["level"] = 25},
[6394] = {["xp"] = 445, ["level"] = 4},
[6395] = {["xp"] = 450, ["level"] = 5},
[6401] = {["xp"] = 1000, ["level"] = 18},
[6402] = {["xp"] = 955, ["level"] = 60},
[6403] = {["xp"] = 14300, ["level"] = 60},
[6421] = {["xp"] = 1350, ["level"] = 18},
[6441] = {["xp"] = 2100, ["level"] = 26},
[6442] = {["xp"] = 1450, ["level"] = 19},
[6461] = {["xp"] = 1450, ["level"] = 19},
[6462] = {["xp"] = 1950, ["level"] = 24},
[6481] = {["xp"] = 1550, ["level"] = 20},
[6482] = {["xp"] = 2400, ["level"] = 24},
[6501] = {["xp"] = 9550, ["level"] = 60},
[6502] = {["xp"] = 14300, ["level"] = 60},
[6503] = {["xp"] = 1950, ["level"] = 24},
[6504] = {["xp"] = 3650, ["level"] = 30},
[6521] = {["xp"] = 5250, ["level"] = 36},
[6522] = {["xp"] = 5250, ["level"] = 36},
[6523] = {["xp"] = 1350, ["level"] = 18},
[6541] = {["xp"] = 145, ["level"] = 19},
[6542] = {["xp"] = 145, ["level"] = 19},
[6543] = {["xp"] = 1800, ["level"] = 19},
[6544] = {["xp"] = 2400, ["level"] = 24},
[6545] = {["xp"] = 0, ["level"] = nil},
[6546] = {["xp"] = 0, ["level"] = nil},
[6547] = {["xp"] = 0, ["level"] = nil},
[6548] = {["xp"] = 1350, ["level"] = 18},
[6561] = {["xp"] = 3300, ["level"] = 27},
[6562] = {["xp"] = 435, ["level"] = 22},
[6563] = {["xp"] = 1750, ["level"] = 22},
[6564] = {["xp"] = 1300, ["level"] = 22},
[6565] = {["xp"] = 3150, ["level"] = 26},
[6566] = {["xp"] = 955, ["level"] = 60},
[6567] = {["xp"] = 4750, ["level"] = 60},
[6568] = {["xp"] = 7150, ["level"] = 60},
[6569] = {["xp"] = 14300, ["level"] = 60},
[6570] = {["xp"] = 7150, ["level"] = 60},
[6571] = {["xp"] = 2750, ["level"] = 27},
[6581] = {["xp"] = 0, ["level"] = nil},
[6582] = {["xp"] = 9550, ["level"] = 60},
[6583] = {["xp"] = 9550, ["level"] = 60},
[6584] = {["xp"] = 9550, ["level"] = 60},
[6585] = {["xp"] = 9550, ["level"] = 60},
[6601] = {["xp"] = 7150, ["level"] = 60},
[6602] = {["xp"] = 14300, ["level"] = 60},
[6603] = {["xp"] = 845, ["level"] = 56},
[6604] = {["xp"] = 930, ["level"] = 59},
[6605] = {["xp"] = 785, ["level"] = 54},
[6606] = {["xp"] = 955, ["level"] = 60},
[6607] = {["xp"] = 5540, ["level"] = 45},
[6608] = {["xp"] = 1380, ["level"] = 45},
[6609] = {["xp"] = 1380, ["level"] = 45},
[6610] = {["xp"] = 5540, ["level"] = 45},
[6611] = {["xp"] = 1380, ["level"] = 45},
[6612] = {["xp"] = 1380, ["level"] = 45},
[6621] = {["xp"] = 2650, ["level"] = 26},
[6622] = {["xp"] = 5540, ["level"] = 45},
[6623] = {["xp"] = 1380, ["level"] = 45},
[6624] = {["xp"] = 5540, ["level"] = 45},
[6625] = {["xp"] = 1380, ["level"] = 45},
[6626] = {["xp"] = 4100, ["level"] = 35},
[6627] = {["xp"] = 245, ["level"] = 30},
[6628] = {["xp"] = 245, ["level"] = 30},
[6629] = {["xp"] = 1350, ["level"] = 18},
[6641] = {["xp"] = 2300, ["level"] = 23},
[6642] = {["xp"] = 0, ["level"] = nil},
[6643] = {["xp"] = 0, ["level"] = nil},
[6644] = {["xp"] = 0, ["level"] = nil},
[6645] = {["xp"] = 0, ["level"] = nil},
[6646] = {["xp"] = 0, ["level"] = nil},
[6661] = {["xp"] = 910, ["level"] = 12},
[6662] = {["xp"] = 90, ["level"] = 12},
[6681] = {["xp"] = 1950, ["level"] = 24},
[6701] = {["xp"] = 0, ["level"] = nil},
[6721] = {["xp"] = 85, ["level"] = nil},
[6722] = {["xp"] = 85, ["level"] = nil},
[6741] = {["xp"] = 0, ["level"] = nil},
[6761] = {["xp"] = 815, ["level"] = 55},
[6762] = {["xp"] = 2040, ["level"] = 55},
[6781] = {["xp"] = 0, ["level"] = nil},
[6801] = {["xp"] = 0, ["level"] = nil},
[6804] = {["xp"] = 6300, ["level"] = 56},
[6805] = {["xp"] = 8730, ["level"] = 57},
[6821] = {["xp"] = 11900, ["level"] = 60},
[6822] = {["xp"] = 14300, ["level"] = 60},
[6823] = {["xp"] = 14300, ["level"] = 60},
[6824] = {["xp"] = 14300, ["level"] = 60},
[6825] = {["xp"] = 0, ["level"] = nil},
[6826] = {["xp"] = 0, ["level"] = nil},
[6827] = {["xp"] = 0, ["level"] = nil},
[6841] = {["xp"] = 4050, ["level"] = 55},
[6844] = {["xp"] = 4350, ["level"] = 57},
[6845] = {["xp"] = 10900, ["level"] = 57},
[6881] = {["xp"] = 0, ["level"] = nil},
[6921] = {["xp"] = 3300, ["level"] = 27},
[6922] = {["xp"] = 3650, ["level"] = 30},
[6941] = {["xp"] = 0, ["level"] = nil},
[6942] = {["xp"] = 0, ["level"] = nil},
[6943] = {["xp"] = 0, ["level"] = nil},
[6961] = {["xp"] = 955, ["level"] = 60},
[6962] = {["xp"] = 210, ["level"] = nil},
[6963] = {["xp"] = 610, ["level"] = nil},
[6964] = {["xp"] = 85, ["level"] = nil},
[6981] = {["xp"] = 3150, ["level"] = 26},
[6982] = {["xp"] = 0, ["level"] = nil},
[6983] = {["xp"] = 1200, ["level"] = nil},
[6984] = {["xp"] = 7150, ["level"] = 60},
[6985] = {["xp"] = 0, ["level"] = nil},
[7001] = {["xp"] = 0, ["level"] = nil},
[7002] = {["xp"] = 0, ["level"] = nil},
[7003] = {["xp"] = 6290, ["level"] = 48},
[7021] = {["xp"] = 85, ["level"] = nil},
[7022] = {["xp"] = 85, ["level"] = nil},
[7023] = {["xp"] = 85, ["level"] = nil},
[7024] = {["xp"] = 955, ["level"] = 60},
[7025] = {["xp"] = 210, ["level"] = nil},
[7026] = {["xp"] = 0, ["level"] = nil},
[7027] = {["xp"] = 0, ["level"] = nil},
[7028] = {["xp"] = 9050, ["level"] = 47},
[7029] = {["xp"] = 9050, ["level"] = 47},
[7041] = {["xp"] = 9050, ["level"] = 47},
[7042] = {["xp"] = 610, ["level"] = nil},
[7043] = {["xp"] = 4750, ["level"] = 60},
[7044] = {["xp"] = 9800, ["level"] = 49},
[7045] = {["xp"] = 7150, ["level"] = 60},
[7046] = {["xp"] = 8150, ["level"] = 49},
[7061] = {["xp"] = 85, ["level"] = nil},
[7062] = {["xp"] = 85, ["level"] = nil},
[7063] = {["xp"] = 955, ["level"] = 60},
[7064] = {["xp"] = 10600, ["level"] = 51},
[7065] = {["xp"] = 10600, ["level"] = 51},
[7066] = {["xp"] = 10600, ["level"] = 51},
[7067] = {["xp"] = 9400, ["level"] = 48},
[7068] = {["xp"] = 7200, ["level"] = 42},
[7070] = {["xp"] = 7200, ["level"] = 42},
[7081] = {["xp"] = 7070, ["level"] = nil},
[7082] = {["xp"] = 7070, ["level"] = nil},
[7101] = {["xp"] = 7070, ["level"] = nil},
[7102] = {["xp"] = 7070, ["level"] = nil},
[7121] = {["xp"] = 705, ["level"] = nil},
[7122] = {["xp"] = 7070, ["level"] = nil},
[7123] = {["xp"] = 705, ["level"] = nil},
[7124] = {["xp"] = 7070, ["level"] = nil},
[7141] = {["xp"] = 10600, ["level"] = nil},
[7142] = {["xp"] = 10600, ["level"] = nil},
[7161] = {["xp"] = 7070, ["level"] = nil},
[7162] = {["xp"] = 7070, ["level"] = nil},
[7163] = {["xp"] = 7070, ["level"] = nil},
[7164] = {["xp"] = 7070, ["level"] = nil},
[7165] = {["xp"] = 8800, ["level"] = nil},
[7166] = {["xp"] = 10600, ["level"] = nil},
[7167] = {["xp"] = 10600, ["level"] = nil},
[7168] = {["xp"] = 7070, ["level"] = nil},
[7169] = {["xp"] = 7070, ["level"] = nil},
[7170] = {["xp"] = 8800, ["level"] = nil},
[7171] = {["xp"] = 10600, ["level"] = nil},
[7172] = {["xp"] = 10600, ["level"] = nil},
[7181] = {["xp"] = 14300, ["level"] = 60},
[7201] = {["xp"] = 11800, ["level"] = 54},
[7202] = {["xp"] = 14300, ["level"] = 60},
[7221] = {["xp"] = 955, ["level"] = 60},
[7222] = {["xp"] = 955, ["level"] = 60},
[7223] = {["xp"] = 7070, ["level"] = nil},
[7224] = {["xp"] = 7070, ["level"] = nil},
[7241] = {["xp"] = 7070, ["level"] = nil},
[7261] = {["xp"] = 7070, ["level"] = nil},
[7281] = {["xp"] = 7070, ["level"] = nil},
[7282] = {["xp"] = 7070, ["level"] = nil},
[7301] = {["xp"] = 7070, ["level"] = nil},
[7302] = {["xp"] = 7070, ["level"] = nil},
[7321] = {["xp"] = 2540, ["level"] = 31},
[7341] = {["xp"] = 0, ["level"] = nil},
[7342] = {["xp"] = 0, ["level"] = nil},
[7367] = {["xp"] = 7070, ["level"] = nil},
[7368] = {["xp"] = 7070, ["level"] = nil},
[7383] = {["xp"] = 660, ["level"] = 11},
[7385] = {["xp"] = 0, ["level"] = nil},
[7386] = {["xp"] = 0, ["level"] = nil},
[7429] = {["xp"] = 0, ["level"] = nil},
[7441] = {["xp"] = 13500, ["level"] = 58},
[7461] = {["xp"] = 14300, ["level"] = 60},
[7462] = {["xp"] = 955, ["level"] = 60},
[7463] = {["xp"] = 14300, ["level"] = nil},
[7481] = {["xp"] = 14300, ["level"] = 60},
[7482] = {["xp"] = 14300, ["level"] = 60},
[7483] = {["xp"] = 0, ["level"] = nil},
[7484] = {["xp"] = 0, ["level"] = nil},
[7485] = {["xp"] = 0, ["level"] = nil},
[7486] = {["xp"] = 14300, ["level"] = 60},
[7487] = {["xp"] = 9550, ["level"] = 60},
[7488] = {["xp"] = 13050, ["level"] = 57},
[7489] = {["xp"] = 13050, ["level"] = 57},
[7490] = {["xp"] = 14300, ["level"] = 60},
[7491] = {["xp"] = 14300, ["level"] = 60},
[7492] = {["xp"] = 2180, ["level"] = 57},
[7493] = {["xp"] = 0, ["level"] = nil},
[7494] = {["xp"] = 2180, ["level"] = 57},
[7495] = {["xp"] = 14300, ["level"] = 60},
[7496] = {["xp"] = 14300, ["level"] = 60},
[7497] = {["xp"] = 0, ["level"] = nil},
[7498] = {["xp"] = 14300, ["level"] = 60},
[7499] = {["xp"] = 14300, ["level"] = 60},
[7500] = {["xp"] = 14300, ["level"] = 60},
[7501] = {["xp"] = 14300, ["level"] = 60},
[7502] = {["xp"] = 14300, ["level"] = 60},
[7503] = {["xp"] = 14300, ["level"] = 60},
[7504] = {["xp"] = 14300, ["level"] = 60},
[7505] = {["xp"] = 14300, ["level"] = 60},
[7506] = {["xp"] = 14300, ["level"] = 60},
[7507] = {["xp"] = 14300, ["level"] = 60},
[7508] = {["xp"] = 0, ["level"] = nil},
[7509] = {["xp"] = 14300, ["level"] = 60},
[7541] = {["xp"] = 2150, ["level"] = 40},
[7562] = {["xp"] = 955, ["level"] = nil},
[7563] = {["xp"] = 11900, ["level"] = nil},
[7564] = {["xp"] = 4750, ["level"] = nil},
[7581] = {["xp"] = 14300, ["level"] = nil},
[7582] = {["xp"] = 9550, ["level"] = nil},
[7583] = {["xp"] = 9550, ["level"] = nil},
[7601] = {["xp"] = 0, ["level"] = nil},
[7602] = {["xp"] = 6810, ["level"] = nil},
[7603] = {["xp"] = 8500, ["level"] = nil},
[7604] = {["xp"] = 9550, ["level"] = 60},
[7621] = {["xp"] = 0, ["level"] = nil},
[7622] = {["xp"] = 14300, ["level"] = 60},
[7623] = {["xp"] = 9550, ["level"] = nil},
[7624] = {["xp"] = 9550, ["level"] = nil},
[7625] = {["xp"] = 9550, ["level"] = nil},
[7626] = {["xp"] = 9550, ["level"] = nil},
[7627] = {["xp"] = 9550, ["level"] = nil},
[7628] = {["xp"] = 9550, ["level"] = nil},
[7629] = {["xp"] = 14300, ["level"] = nil},
[7630] = {["xp"] = 9550, ["level"] = nil},
[7631] = {["xp"] = 14300, ["level"] = nil},
[7632] = {["xp"] = 14300, ["level"] = 60},
[7633] = {["xp"] = 0, ["level"] = nil},
[7634] = {["xp"] = 14300, ["level"] = 60},
[7635] = {["xp"] = 14300, ["level"] = 60},
[7636] = {["xp"] = 14300, ["level"] = 60},
[7637] = {["xp"] = 955, ["level"] = nil},
[7638] = {["xp"] = 955, ["level"] = nil},
[7639] = {["xp"] = 955, ["level"] = nil},
[7640] = {["xp"] = 9550, ["level"] = nil},
[7641] = {["xp"] = 955, ["level"] = nil},
[7642] = {["xp"] = 14300, ["level"] = nil},
[7643] = {["xp"] = 14300, ["level"] = nil},
[7644] = {["xp"] = 11900, ["level"] = nil},
[7645] = {["xp"] = 955, ["level"] = nil},
[7646] = {["xp"] = 4750, ["level"] = nil},
[7647] = {["xp"] = 14300, ["level"] = nil},
[7648] = {["xp"] = 9550, ["level"] = 60},
[7649] = {["xp"] = 14300, ["level"] = 60},
[7650] = {["xp"] = 14300, ["level"] = 60},
[7651] = {["xp"] = 14300, ["level"] = 60},
[7652] = {["xp"] = 0, ["level"] = nil},
[7653] = {["xp"] = 0, ["level"] = nil},
[7654] = {["xp"] = 0, ["level"] = nil},
[7655] = {["xp"] = 0, ["level"] = nil},
[7656] = {["xp"] = 0, ["level"] = nil},
[7657] = {["xp"] = 0, ["level"] = nil},
[7658] = {["xp"] = 0, ["level"] = nil},
[7659] = {["xp"] = 0, ["level"] = nil},
[7666] = {["xp"] = 0, ["level"] = nil},
[7667] = {["xp"] = 7150, ["level"] = 60},
[7668] = {["xp"] = 14300, ["level"] = 60},
[7669] = {["xp"] = 0, ["level"] = nil},
[7670] = {["xp"] = 955, ["level"] = nil},
[7681] = {["xp"] = 210, ["level"] = 10},
[7682] = {["xp"] = 210, ["level"] = 10},
[7701] = {["xp"] = 6810, ["level"] = 50},
[7703] = {["xp"] = 14300, ["level"] = 60},
[7704] = {["xp"] = 6810, ["level"] = 50},
[7721] = {["xp"] = 6290, ["level"] = 48},
[7722] = {["xp"] = 6810, ["level"] = 50},
[7723] = {["xp"] = 6550, ["level"] = 49},
[7724] = {["xp"] = 6550, ["level"] = 49},
[7725] = {["xp"] = 0, ["level"] = nil},
[7726] = {["xp"] = 0, ["level"] = nil},
[7727] = {["xp"] = 6550, ["level"] = 49},
[7728] = {["xp"] = 6290, ["level"] = 48},
[7729] = {["xp"] = 6290, ["level"] = 48},
[7730] = {["xp"] = 5540, ["level"] = 45},
[7731] = {["xp"] = 6040, ["level"] = 47},
[7732] = {["xp"] = 6290, ["level"] = 48},
[7733] = {["xp"] = 6290, ["level"] = 48},
[7734] = {["xp"] = 6290, ["level"] = 48},
[7735] = {["xp"] = 0, ["level"] = nil},
[7736] = {["xp"] = 0, ["level"] = nil},
[7737] = {["xp"] = 0, ["level"] = nil},
[7738] = {["xp"] = 0, ["level"] = nil},
[7761] = {["xp"] = 14300, ["level"] = 60},
[7781] = {["xp"] = 14300, ["level"] = 60},
[7782] = {["xp"] = 14300, ["level"] = 60},
[7783] = {["xp"] = 14300, ["level"] = 60},
[7784] = {["xp"] = 14300, ["level"] = 60},
[7785] = {["xp"] = 0, ["level"] = nil},
[7786] = {["xp"] = 14300, ["level"] = 60},
[7787] = {["xp"] = 14300, ["level"] = 60},
[7788] = {["xp"] = 2000, ["level"] = 25},
[7789] = {["xp"] = 2000, ["level"] = 25},
[7791] = {["xp"] = 955, ["level"] = 60},
[7792] = {["xp"] = 955, ["level"] = 60},
[7793] = {["xp"] = 2380, ["level"] = 60},
[7794] = {["xp"] = 4750, ["level"] = 60},
[7795] = {["xp"] = 9550, ["level"] = 60},
[7796] = {["xp"] = 0, ["level"] = nil},
[7798] = {["xp"] = 2380, ["level"] = 60},
[7799] = {["xp"] = 4750, ["level"] = 60},
[7800] = {["xp"] = 9550, ["level"] = 60},
[7801] = {["xp"] = 0, ["level"] = nil},
[7802] = {["xp"] = 955, ["level"] = 60},
[7803] = {["xp"] = 2380, ["level"] = 60},
[7804] = {["xp"] = 4750, ["level"] = 60},
[7805] = {["xp"] = 9550, ["level"] = 60},
[7806] = {["xp"] = 0, ["level"] = nil},
[7807] = {["xp"] = 955, ["level"] = 60},
[7808] = {["xp"] = 2380, ["level"] = 60},
[7809] = {["xp"] = 4750, ["level"] = 60},
[7810] = {["xp"] = 815, ["level"] = 55},
[7811] = {["xp"] = 9550, ["level"] = 60},
[7812] = {["xp"] = 0, ["level"] = nil},
[7813] = {["xp"] = 955, ["level"] = 60},
[7814] = {["xp"] = 2380, ["level"] = 60},
[7815] = {["xp"] = 6810, ["level"] = 50},
[7816] = {["xp"] = 6290, ["level"] = 48},
[7817] = {["xp"] = 4750, ["level"] = 60},
[7818] = {["xp"] = 9550, ["level"] = 60},
[7819] = {["xp"] = 0, ["level"] = nil},
[7820] = {["xp"] = 955, ["level"] = 60},
[7821] = {["xp"] = 2380, ["level"] = 60},
[7822] = {["xp"] = 4750, ["level"] = 60},
[7823] = {["xp"] = 9550, ["level"] = 60},
[7824] = {["xp"] = 9550, ["level"] = 60},
[7825] = {["xp"] = 0, ["level"] = nil},
[7826] = {["xp"] = 955, ["level"] = 60},
[7827] = {["xp"] = 2380, ["level"] = 60},
[7828] = {["xp"] = 6290, ["level"] = 48},
[7829] = {["xp"] = 6290, ["level"] = 48},
[7830] = {["xp"] = 6290, ["level"] = 48},
[7831] = {["xp"] = 4750, ["level"] = 60},
[7832] = {["xp"] = 0, ["level"] = nil},
[7833] = {["xp"] = 955, ["level"] = 60},
[7834] = {["xp"] = 2380, ["level"] = 60},
[7835] = {["xp"] = 4750, ["level"] = 60},
[7836] = {["xp"] = 9550, ["level"] = 60},
[7837] = {["xp"] = 0, ["level"] = nil},
[7838] = {["xp"] = 0, ["level"] = nil},
[7839] = {["xp"] = 6290, ["level"] = 48},
[7840] = {["xp"] = 6550, ["level"] = 49},
[7841] = {["xp"] = 6290, ["level"] = 48},
[7842] = {["xp"] = 7850, ["level"] = 48},
[7843] = {["xp"] = 8500, ["level"] = 50},
[7844] = {["xp"] = 6290, ["level"] = 48},
[7845] = {["xp"] = 7070, ["level"] = 51},
[7846] = {["xp"] = 8800, ["level"] = 51},
[7847] = {["xp"] = 7070, ["level"] = 51},
[7848] = {["xp"] = 9550, ["level"] = 60},
[7849] = {["xp"] = 6810, ["level"] = 50},
[7850] = {["xp"] = 8500, ["level"] = 50},
[7861] = {["xp"] = 8800, ["level"] = 51},
[7862] = {["xp"] = 7070, ["level"] = 51},
[7863] = {["xp"] = 310, ["level"] = 34},
[7864] = {["xp"] = 525, ["level"] = 44},
[7865] = {["xp"] = 1250, ["level"] = 70},
[7866] = {["xp"] = 310, ["level"] = 34},
[7867] = {["xp"] = 525, ["level"] = 44},
[7868] = {["xp"] = 1250, ["level"] = 70},
[7871] = {["xp"] = 3300, ["level"] = 35},
[7872] = {["xp"] = 5540, ["level"] = 45},
[7873] = {["xp"] = 8170, ["level"] = 55},
[7874] = {["xp"] = 3300, ["level"] = 35},
[7875] = {["xp"] = 5540, ["level"] = 45},
[7876] = {["xp"] = 8170, ["level"] = 55},
[7877] = {["xp"] = 955, ["level"] = 60},
[7881] = {["xp"] = 0, ["level"] = nil},
[7882] = {["xp"] = 0, ["level"] = nil},
[7883] = {["xp"] = 0, ["level"] = nil},
[7884] = {["xp"] = 0, ["level"] = nil},
[7885] = {["xp"] = 0, ["level"] = nil},
[7889] = {["xp"] = 0, ["level"] = nil},
[7890] = {["xp"] = 0, ["level"] = nil},
[7891] = {["xp"] = 0, ["level"] = nil},
[7892] = {["xp"] = 0, ["level"] = nil},
[7893] = {["xp"] = 0, ["level"] = nil},
[7894] = {["xp"] = 0, ["level"] = nil},
[7895] = {["xp"] = 0, ["level"] = nil},
[7896] = {["xp"] = 0, ["level"] = nil},
[7897] = {["xp"] = 0, ["level"] = nil},
[7898] = {["xp"] = 0, ["level"] = nil},
[7899] = {["xp"] = 0, ["level"] = nil},
[7900] = {["xp"] = 0, ["level"] = nil},
[7901] = {["xp"] = 0, ["level"] = nil},
[7902] = {["xp"] = 0, ["level"] = nil},
[7903] = {["xp"] = 0, ["level"] = nil},
[7905] = {["xp"] = 55, ["level"] = nil},
[7907] = {["xp"] = 0, ["level"] = nil},
[7908] = {["xp"] = 815, ["level"] = 55},
[7926] = {["xp"] = 55, ["level"] = nil},
[7927] = {["xp"] = 0, ["level"] = nil},
[7928] = {["xp"] = 0, ["level"] = nil},
[7929] = {["xp"] = 0, ["level"] = nil},
[7930] = {["xp"] = 0, ["level"] = nil},
[7931] = {["xp"] = 0, ["level"] = nil},
[7932] = {["xp"] = 0, ["level"] = nil},
[7933] = {["xp"] = 0, ["level"] = nil},
[7934] = {["xp"] = 0, ["level"] = nil},
[7935] = {["xp"] = 0, ["level"] = nil},
[7936] = {["xp"] = 0, ["level"] = nil},
[7937] = {["xp"] = 0, ["level"] = nil},
[7938] = {["xp"] = 0, ["level"] = nil},
[7939] = {["xp"] = 0, ["level"] = nil},
[7940] = {["xp"] = 0, ["level"] = nil},
[7941] = {["xp"] = 0, ["level"] = nil},
[7942] = {["xp"] = 0, ["level"] = nil},
[7943] = {["xp"] = 0, ["level"] = nil},
[7944] = {["xp"] = 0, ["level"] = nil},
[7945] = {["xp"] = 0, ["level"] = nil},
[7946] = {["xp"] = 0, ["level"] = nil},
[7961] = {["xp"] = 20, ["level"] = 1},
[7962] = {["xp"] = 100, ["level"] = 1},
[7981] = {["xp"] = 0, ["level"] = nil},
[8041] = {["xp"] = 9550, ["level"] = 60},
[8042] = {["xp"] = 9550, ["level"] = 60},
[8043] = {["xp"] = 9550, ["level"] = 60},
[8044] = {["xp"] = 9550, ["level"] = 60},
[8045] = {["xp"] = 9550, ["level"] = 60},
[8046] = {["xp"] = 9550, ["level"] = 60},
[8047] = {["xp"] = 9550, ["level"] = 60},
[8048] = {["xp"] = 9550, ["level"] = 60},
[8049] = {["xp"] = 9550, ["level"] = 60},
[8050] = {["xp"] = 9550, ["level"] = 60},
[8051] = {["xp"] = 9550, ["level"] = 60},
[8052] = {["xp"] = 9550, ["level"] = 60},
[8053] = {["xp"] = 9550, ["level"] = 60},
[8054] = {["xp"] = 9550, ["level"] = 60},
[8055] = {["xp"] = 9550, ["level"] = 60},
[8056] = {["xp"] = 9550, ["level"] = 60},
[8057] = {["xp"] = 9550, ["level"] = 60},
[8058] = {["xp"] = 9550, ["level"] = 60},
[8059] = {["xp"] = 9550, ["level"] = 60},
[8060] = {["xp"] = 9550, ["level"] = 60},
[8061] = {["xp"] = 9550, ["level"] = 60},
[8062] = {["xp"] = 9550, ["level"] = 60},
[8063] = {["xp"] = 9550, ["level"] = 60},
[8064] = {["xp"] = 9550, ["level"] = 60},
[8065] = {["xp"] = 9550, ["level"] = 60},
[8066] = {["xp"] = 9550, ["level"] = 60},
[8067] = {["xp"] = 9550, ["level"] = 60},
[8068] = {["xp"] = 9550, ["level"] = 60},
[8069] = {["xp"] = 9550, ["level"] = 60},
[8070] = {["xp"] = 9550, ["level"] = 60},
[8071] = {["xp"] = 9550, ["level"] = 60},
[8072] = {["xp"] = 9550, ["level"] = 60},
[8073] = {["xp"] = 9550, ["level"] = 60},
[8074] = {["xp"] = 9550, ["level"] = 60},
[8075] = {["xp"] = 9550, ["level"] = 60},
[8076] = {["xp"] = 9550, ["level"] = 60},
[8077] = {["xp"] = 9550, ["level"] = 60},
[8078] = {["xp"] = 9550, ["level"] = 60},
[8079] = {["xp"] = 9550, ["level"] = 60},
[8080] = {["xp"] = 8170, ["level"] = 55},
[8101] = {["xp"] = 9550, ["level"] = 60},
[8102] = {["xp"] = 9550, ["level"] = 60},
[8103] = {["xp"] = 9550, ["level"] = 60},
[8104] = {["xp"] = 9550, ["level"] = 60},
[8105] = {["xp"] = 8170, ["level"] = 55},
[8106] = {["xp"] = 9550, ["level"] = 60},
[8107] = {["xp"] = 9550, ["level"] = 60},
[8108] = {["xp"] = 9550, ["level"] = 60},
[8109] = {["xp"] = 9550, ["level"] = 60},
[8110] = {["xp"] = 9550, ["level"] = 60},
[8111] = {["xp"] = 9550, ["level"] = 60},
[8112] = {["xp"] = 9550, ["level"] = 60},
[8113] = {["xp"] = 9550, ["level"] = 60},
[8114] = {["xp"] = 14300, ["level"] = 60},
[8115] = {["xp"] = 14300, ["level"] = 60},
[8116] = {["xp"] = 9550, ["level"] = 60},
[8117] = {["xp"] = 9550, ["level"] = 60},
[8118] = {["xp"] = 9550, ["level"] = 60},
[8119] = {["xp"] = 9550, ["level"] = 60},
[8120] = {["xp"] = 8170, ["level"] = 55},
[8121] = {["xp"] = 14300, ["level"] = 60},
[8122] = {["xp"] = 14300, ["level"] = 60},
[8123] = {["xp"] = 8170, ["level"] = 55},
[8141] = {["xp"] = 9550, ["level"] = 60},
[8142] = {["xp"] = 9550, ["level"] = 60},
[8143] = {["xp"] = 9550, ["level"] = 60},
[8144] = {["xp"] = 9550, ["level"] = 60},
[8145] = {["xp"] = 9550, ["level"] = 60},
[8146] = {["xp"] = 9550, ["level"] = 60},
[8147] = {["xp"] = 9550, ["level"] = 60},
[8148] = {["xp"] = 9550, ["level"] = 60},
[8149] = {["xp"] = 2450, ["level"] = nil},
[8150] = {["xp"] = 2450, ["level"] = nil},
[8151] = {["xp"] = 730, ["level"] = 52},
[8153] = {["xp"] = 7340, ["level"] = 52},
[8154] = {["xp"] = 5540, ["level"] = 45},
[8155] = {["xp"] = 2000, ["level"] = 25},
[8156] = {["xp"] = 3300, ["level"] = 35},
[8160] = {["xp"] = 5540, ["level"] = 45},
[8161] = {["xp"] = 3300, ["level"] = 35},
[8162] = {["xp"] = 2000, ["level"] = 25},
[8166] = {["xp"] = 5540, ["level"] = 45},
[8167] = {["xp"] = 3300, ["level"] = 35},
[8168] = {["xp"] = 2000, ["level"] = 25},
[8169] = {["xp"] = 5540, ["level"] = 45},
[8170] = {["xp"] = 3300, ["level"] = 35},
[8171] = {["xp"] = 2000, ["level"] = 25},
[8181] = {["xp"] = 9020, ["level"] = 58},
[8182] = {["xp"] = 13500, ["level"] = 58},
[8183] = {["xp"] = 14300, ["level"] = 60},
[8184] = {["xp"] = 0, ["level"] = nil},
[8185] = {["xp"] = 0, ["level"] = nil},
[8186] = {["xp"] = 0, ["level"] = nil},
[8187] = {["xp"] = 0, ["level"] = nil},
[8188] = {["xp"] = 0, ["level"] = nil},
[8189] = {["xp"] = 0, ["level"] = nil},
[8190] = {["xp"] = 0, ["level"] = nil},
[8191] = {["xp"] = 0, ["level"] = nil},
[8192] = {["xp"] = 0, ["level"] = nil},
[8193] = {["xp"] = 0, ["level"] = nil},
[8194] = {["xp"] = 0, ["level"] = nil},
[8195] = {["xp"] = 0, ["level"] = nil},
[8196] = {["xp"] = 0, ["level"] = nil},
[8201] = {["xp"] = 14300, ["level"] = 60},
[8221] = {["xp"] = 0, ["level"] = nil},
[8222] = {["xp"] = 0, ["level"] = nil},
[8223] = {["xp"] = 0, ["level"] = nil},
[8224] = {["xp"] = 0, ["level"] = nil},
[8225] = {["xp"] = 0, ["level"] = nil},
[8227] = {["xp"] = 955, ["level"] = 60},
[8228] = {["xp"] = 0, ["level"] = nil},
[8229] = {["xp"] = 0, ["level"] = nil},
[8231] = {["xp"] = 7340, ["level"] = 52},
[8232] = {["xp"] = 11000, ["level"] = 52},
[8233] = {["xp"] = 730, ["level"] = 52},
[8234] = {["xp"] = 7340, ["level"] = 52},
[8235] = {["xp"] = 7340, ["level"] = 52},
[8236] = {["xp"] = 11000, ["level"] = 52},
[8238] = {["xp"] = 0, ["level"] = nil},
[8239] = {["xp"] = 0, ["level"] = nil},
[8240] = {["xp"] = 9550, ["level"] = 60},
[8241] = {["xp"] = 0, ["level"] = nil},
[8242] = {["xp"] = 0, ["level"] = nil},
[8243] = {["xp"] = 0, ["level"] = nil},
[8246] = {["xp"] = 0, ["level"] = nil},
[8249] = {["xp"] = 0, ["level"] = nil},
[8250] = {["xp"] = 730, ["level"] = 52},
[8251] = {["xp"] = 7340, ["level"] = 52},
[8252] = {["xp"] = 7340, ["level"] = 52},
[8253] = {["xp"] = 11000, ["level"] = 52},
[8254] = {["xp"] = 730, ["level"] = 52},
[8255] = {["xp"] = 7340, ["level"] = 52},
[8256] = {["xp"] = 7340, ["level"] = 52},
[8257] = {["xp"] = 11000, ["level"] = 52},
[8258] = {["xp"] = 14300, ["level"] = 60},
[8259] = {["xp"] = 0, ["level"] = nil},
[8260] = {["xp"] = 310, ["level"] = 34},
[8261] = {["xp"] = 525, ["level"] = 44},
[8262] = {["xp"] = 1250, ["level"] = 70},
[8263] = {["xp"] = 310, ["level"] = 34},
[8264] = {["xp"] = 525, ["level"] = 44},
[8265] = {["xp"] = 1250, ["level"] = 70},
[8266] = {["xp"] = 955, ["level"] = 60},
[8268] = {["xp"] = 955, ["level"] = 60},
[8271] = {["xp"] = 705, ["level"] = nil},
[8272] = {["xp"] = 705, ["level"] = nil},
[8273] = {["xp"] = 6040, ["level"] = 47},
[8274] = {["xp"] = 0, ["level"] = nil},
[8275] = {["xp"] = 4050, ["level"] = 55},
[8276] = {["xp"] = 4050, ["level"] = 55},
[8277] = {["xp"] = 8170, ["level"] = 55},
[8278] = {["xp"] = 8730, ["level"] = 57},
[8279] = {["xp"] = 11900, ["level"] = 60},
[8280] = {["xp"] = 8170, ["level"] = 55},
[8281] = {["xp"] = 8730, ["level"] = 57},
[8282] = {["xp"] = 9020, ["level"] = 58},
[8283] = {["xp"] = 11600, ["level"] = 59},
[8284] = {["xp"] = 9020, ["level"] = 58},
[8285] = {["xp"] = 6950, ["level"] = 59},
[8286] = {["xp"] = 9550, ["level"] = 60},
[8287] = {["xp"] = 9550, ["level"] = 60},
[8288] = {["xp"] = 9550, ["level"] = 60},
[8290] = {["xp"] = 1050, ["level"] = 15},
[8291] = {["xp"] = 9550, ["level"] = 60},
[8294] = {["xp"] = 9550, ["level"] = 60},
[8295] = {["xp"] = 1050, ["level"] = 15},
[8297] = {["xp"] = 9550, ["level"] = 60},
[8299] = {["xp"] = 9550, ["level"] = 60},
[8301] = {["xp"] = 9550, ["level"] = 60},
[8302] = {["xp"] = 0, ["level"] = nil},
[8303] = {["xp"] = 0, ["level"] = nil},
[8304] = {["xp"] = 9550, ["level"] = 60},
[8305] = {["xp"] = 9550, ["level"] = 60},
[8306] = {["xp"] = 11900, ["level"] = 60},
[8307] = {["xp"] = 4350, ["level"] = 57},
[8308] = {["xp"] = 11900, ["level"] = 60},
[8309] = {["xp"] = 9550, ["level"] = 60},
[8310] = {["xp"] = 9550, ["level"] = 60},
[8311] = {["xp"] = 1250, ["level"] = 70},
[8312] = {["xp"] = 85, ["level"] = nil},
[8313] = {["xp"] = 8730, ["level"] = 57},
[8314] = {["xp"] = 7150, ["level"] = 60},
[8315] = {["xp"] = 11900, ["level"] = 60},
[8316] = {["xp"] = 9550, ["level"] = 60},
[8317] = {["xp"] = 4350, ["level"] = 57},
[8318] = {["xp"] = 9550, ["level"] = 60},
[8319] = {["xp"] = 0, ["level"] = nil},
[8320] = {["xp"] = 9550, ["level"] = 60},
[8321] = {["xp"] = 9550, ["level"] = 60},
[8322] = {["xp"] = 610, ["level"] = nil},
[8323] = {["xp"] = 9310, ["level"] = 59},
[8324] = {["xp"] = 0, ["level"] = nil},
[8325] = {["xp"] = 100, ["level"] = 1},
[8326] = {["xp"] = 250, ["level"] = 3},
[8327] = {["xp"] = 25, ["level"] = 3},
[8328] = {["xp"] = 40, ["level"] = 1},
[8330] = {["xp"] = 355, ["level"] = 4},
[8331] = {["xp"] = 955, ["level"] = 60},
[8332] = {["xp"] = 9550, ["level"] = 60},
[8333] = {["xp"] = 0, ["level"] = nil},
[8334] = {["xp"] = 355, ["level"] = 4},
[8335] = {["xp"] = 560, ["level"] = 5},
[8336] = {["xp"] = 355, ["level"] = 4},
[8338] = {["xp"] = 355, ["level"] = 4},
[8341] = {["xp"] = 9550, ["level"] = 60},
[8342] = {["xp"] = 0, ["level"] = nil},
[8343] = {["xp"] = 955, ["level"] = 60},
[8344] = {["xp"] = 80, ["level"] = nil},
[8345] = {["xp"] = 355, ["level"] = 4},
[8346] = {["xp"] = 250, ["level"] = 3},
[8347] = {["xp"] = 45, ["level"] = 5},
[8348] = {["xp"] = 11900, ["level"] = 60},
[8349] = {["xp"] = 955, ["level"] = 60},
[8350] = {["xp"] = 110, ["level"] = 5},
[8351] = {["xp"] = 955, ["level"] = 60},
[8352] = {["xp"] = 14300, ["level"] = 60},
[8353] = {["xp"] = 0, ["level"] = nil},
[8354] = {["xp"] = 0, ["level"] = nil},
[8355] = {["xp"] = 0, ["level"] = nil},
[8356] = {["xp"] = 0, ["level"] = nil},
[8357] = {["xp"] = 0, ["level"] = nil},
[8358] = {["xp"] = 0, ["level"] = nil},
[8359] = {["xp"] = 0, ["level"] = nil},
[8360] = {["xp"] = 0, ["level"] = nil},
[8361] = {["xp"] = 9550, ["level"] = 60},
[8362] = {["xp"] = 0, ["level"] = nil},
[8363] = {["xp"] = 0, ["level"] = nil},
[8364] = {["xp"] = 0, ["level"] = nil},
[8365] = {["xp"] = 5540, ["level"] = 45},
[8366] = {["xp"] = 5540, ["level"] = 45},
[8367] = {["xp"] = 9800, ["level"] = nil},
[8368] = {["xp"] = 1450, ["level"] = 19},
[8369] = {["xp"] = 11900, ["level"] = 60},
[8370] = {["xp"] = 2350, ["level"] = 29},
[8371] = {["xp"] = 9800, ["level"] = nil},
[8372] = {["xp"] = 1450, ["level"] = 19},
[8373] = {["xp"] = 510, ["level"] = nil},
[8374] = {["xp"] = 2350, ["level"] = 29},
[8375] = {["xp"] = 11900, ["level"] = 60},
[8376] = {["xp"] = 9550, ["level"] = 60},
[8377] = {["xp"] = 9550, ["level"] = 60},
[8378] = {["xp"] = 9550, ["level"] = 60},
[8379] = {["xp"] = 9550, ["level"] = 60},
[8380] = {["xp"] = 9550, ["level"] = 60},
[8381] = {["xp"] = 9550, ["level"] = 60},
[8382] = {["xp"] = 9550, ["level"] = 60},
[8383] = {["xp"] = 4750, ["level"] = 60},
[8384] = {["xp"] = 1200, ["level"] = 29},
[8385] = {["xp"] = 0, ["level"] = nil},
[8386] = {["xp"] = 730, ["level"] = 19},
[8387] = {["xp"] = 4750, ["level"] = 60},
[8388] = {["xp"] = 0, ["level"] = nil},
[8389] = {["xp"] = 730, ["level"] = 19},
[8390] = {["xp"] = 1200, ["level"] = 29},
[8391] = {["xp"] = 2050, ["level"] = 39},
[8392] = {["xp"] = 3250, ["level"] = 49},
[8393] = {["xp"] = 4140, ["level"] = 39},
[8394] = {["xp"] = 6550, ["level"] = 49},
[8395] = {["xp"] = 9310, ["level"] = 59},
[8396] = {["xp"] = 9550, ["level"] = 60},
[8397] = {["xp"] = 4650, ["level"] = 59},
[8398] = {["xp"] = 4750, ["level"] = 60},
[8399] = {["xp"] = 2350, ["level"] = 29},
[8400] = {["xp"] = 4140, ["level"] = 39},
[8401] = {["xp"] = 6550, ["level"] = 49},
[8402] = {["xp"] = 9310, ["level"] = 59},
[8403] = {["xp"] = 9550, ["level"] = 60},
[8404] = {["xp"] = 1200, ["level"] = 29},
[8405] = {["xp"] = 2050, ["level"] = 39},
[8406] = {["xp"] = 3250, ["level"] = 49},
[8407] = {["xp"] = 4650, ["level"] = 59},
[8408] = {["xp"] = 4750, ["level"] = 60},
[8409] = {["xp"] = 510, ["level"] = nil},
[8410] = {["xp"] = 5500, ["level"] = 52},
[8411] = {["xp"] = 5500, ["level"] = 52},
[8412] = {["xp"] = 7340, ["level"] = 52},
[8413] = {["xp"] = 11000, ["level"] = 52},
[8414] = {["xp"] = 7340, ["level"] = 52},
[8415] = {["xp"] = 730, ["level"] = 52},
[8416] = {["xp"] = 3650, ["level"] = 52},
[8417] = {["xp"] = 730, ["level"] = 52},
[8418] = {["xp"] = 11000, ["level"] = 52},
[8419] = {["xp"] = 5500, ["level"] = 52},
[8420] = {["xp"] = 5500, ["level"] = 52},
[8421] = {["xp"] = 7340, ["level"] = 52},
[8422] = {["xp"] = 11000, ["level"] = 52},
[8423] = {["xp"] = 7340, ["level"] = 52},
[8424] = {["xp"] = 7340, ["level"] = 52},
[8425] = {["xp"] = 11000, ["level"] = 52},
[8426] = {["xp"] = 2350, ["level"] = 29},
[8427] = {["xp"] = 4140, ["level"] = 39},
[8428] = {["xp"] = 6550, ["level"] = 49},
[8429] = {["xp"] = 9310, ["level"] = 59},
[8430] = {["xp"] = 9550, ["level"] = 60},
[8431] = {["xp"] = 1200, ["level"] = 29},
[8432] = {["xp"] = 2050, ["level"] = 39},
[8433] = {["xp"] = 3250, ["level"] = 49},
[8434] = {["xp"] = 4650, ["level"] = 59},
[8435] = {["xp"] = 4750, ["level"] = 60},
[8436] = {["xp"] = 4140, ["level"] = 39},
[8437] = {["xp"] = 6550, ["level"] = 49},
[8438] = {["xp"] = 9310, ["level"] = 59},
[8439] = {["xp"] = 9550, ["level"] = 60},
[8440] = {["xp"] = 2050, ["level"] = 39},
[8441] = {["xp"] = 3250, ["level"] = 49},
[8442] = {["xp"] = 4650, ["level"] = 59},
[8443] = {["xp"] = 4750, ["level"] = 60},
[8446] = {["xp"] = 14300, ["level"] = 60},
[8447] = {["xp"] = 0, ["level"] = nil},
[8460] = {["xp"] = 6290, ["level"] = 48},
[8461] = {["xp"] = 8170, ["level"] = 55},
[8462] = {["xp"] = 815, ["level"] = 55},
[8463] = {["xp"] = 450, ["level"] = 5},
[8464] = {["xp"] = 9020, ["level"] = 58},
[8465] = {["xp"] = 815, ["level"] = 55},
[8466] = {["xp"] = 0, ["level"] = nil},
[8467] = {["xp"] = 0, ["level"] = nil},
[8468] = {["xp"] = 540, ["level"] = 6},
[8469] = {["xp"] = 0, ["level"] = nil},
[8470] = {["xp"] = 8170, ["level"] = 55},
[8471] = {["xp"] = 8450, ["level"] = 56},
[8472] = {["xp"] = 450, ["level"] = 5},
[8473] = {["xp"] = 780, ["level"] = 9},
[8474] = {["xp"] = 840, ["level"] = 10},
[8475] = {["xp"] = 540, ["level"] = 6},
[8476] = {["xp"] = 840, ["level"] = 10},
[8477] = {["xp"] = 840, ["level"] = 10},
[8479] = {["xp"] = 880, ["level"] = 11},
[8480] = {["xp"] = 630, ["level"] = 7},
[8481] = {["xp"] = 9550, ["level"] = 60},
[8482] = {["xp"] = 680, ["level"] = 6},
[8483] = {["xp"] = 790, ["level"] = 7},
[8484] = {["xp"] = 14300, ["level"] = 60},
[8485] = {["xp"] = 14300, ["level"] = 60},
[8486] = {["xp"] = 540, ["level"] = 6},
[8487] = {["xp"] = 780, ["level"] = 9},
[8488] = {["xp"] = 780, ["level"] = 9},
[8489] = {["xp"] = 540, ["level"] = 6},
[8490] = {["xp"] = 840, ["level"] = 10},
[8491] = {["xp"] = 630, ["level"] = 7},
[8492] = {["xp"] = 0, ["level"] = nil},
[8493] = {["xp"] = 0, ["level"] = nil},
[8494] = {["xp"] = 0, ["level"] = nil},
[8495] = {["xp"] = 0, ["level"] = nil},
[8496] = {["xp"] = 0, ["level"] = nil},
[8497] = {["xp"] = 0, ["level"] = nil},
[8498] = {["xp"] = 0, ["level"] = nil},
[8499] = {["xp"] = 0, ["level"] = nil},
[8500] = {["xp"] = 0, ["level"] = nil},
[8501] = {["xp"] = 0, ["level"] = nil},
[8502] = {["xp"] = 0, ["level"] = nil},
[8503] = {["xp"] = 0, ["level"] = nil},
[8504] = {["xp"] = 0, ["level"] = nil},
[8505] = {["xp"] = 0, ["level"] = nil},
[8506] = {["xp"] = 0, ["level"] = nil},
[8507] = {["xp"] = 0, ["level"] = nil},
[8508] = {["xp"] = 0, ["level"] = nil},
[8509] = {["xp"] = 0, ["level"] = nil},
[8510] = {["xp"] = 0, ["level"] = nil},
[8511] = {["xp"] = 0, ["level"] = nil},
[8512] = {["xp"] = 0, ["level"] = nil},
[8513] = {["xp"] = 0, ["level"] = nil},
[8514] = {["xp"] = 0, ["level"] = nil},
[8515] = {["xp"] = 0, ["level"] = nil},
[8516] = {["xp"] = 0, ["level"] = nil},
[8517] = {["xp"] = 0, ["level"] = nil},
[8518] = {["xp"] = 0, ["level"] = nil},
[8519] = {["xp"] = 9550, ["level"] = 60},
[8520] = {["xp"] = 0, ["level"] = nil},
[8521] = {["xp"] = 0, ["level"] = nil},
[8522] = {["xp"] = 0, ["level"] = nil},
[8523] = {["xp"] = 0, ["level"] = nil},
[8524] = {["xp"] = 0, ["level"] = nil},
[8525] = {["xp"] = 0, ["level"] = nil},
[8526] = {["xp"] = 0, ["level"] = nil},
[8527] = {["xp"] = 0, ["level"] = nil},
[8528] = {["xp"] = 0, ["level"] = nil},
[8529] = {["xp"] = 0, ["level"] = nil},
[8532] = {["xp"] = 0, ["level"] = nil},
[8533] = {["xp"] = 0, ["level"] = nil},
[8534] = {["xp"] = 0, ["level"] = nil},
[8535] = {["xp"] = 0, ["level"] = nil},
[8536] = {["xp"] = 0, ["level"] = nil},
[8537] = {["xp"] = 0, ["level"] = nil},
[8538] = {["xp"] = 0, ["level"] = nil},
[8539] = {["xp"] = 0, ["level"] = nil},
[8540] = {["xp"] = 0, ["level"] = nil},
[8541] = {["xp"] = 0, ["level"] = nil},
[8542] = {["xp"] = 0, ["level"] = nil},
[8543] = {["xp"] = 0, ["level"] = nil},
[8544] = {["xp"] = 0, ["level"] = nil},
[8545] = {["xp"] = 0, ["level"] = nil},
[8546] = {["xp"] = 0, ["level"] = nil},
[8548] = {["xp"] = 4750, ["level"] = 60},
[8549] = {["xp"] = 0, ["level"] = nil},
[8550] = {["xp"] = 0, ["level"] = nil},
[8551] = {["xp"] = 4820, ["level"] = 42},
[8552] = {["xp"] = 3400, ["level"] = 50},
[8553] = {["xp"] = 480, ["level"] = 42},
[8554] = {["xp"] = 7200, ["level"] = 42},
[8555] = {["xp"] = 955, ["level"] = 60},
[8556] = {["xp"] = 9550, ["level"] = 60},
[8557] = {["xp"] = 9550, ["level"] = 60},
[8558] = {["xp"] = 9550, ["level"] = 60},
[8559] = {["xp"] = 0, ["level"] = nil},
[8560] = {["xp"] = 0, ["level"] = nil},
[8561] = {["xp"] = 0, ["level"] = nil},
[8562] = {["xp"] = 0, ["level"] = nil},
[8563] = {["xp"] = 40, ["level"] = 1},
[8564] = {["xp"] = 40, ["level"] = 1},
[8572] = {["xp"] = 4750, ["level"] = 60},
[8573] = {["xp"] = 4750, ["level"] = 60},
[8574] = {["xp"] = 4750, ["level"] = 60},
[8575] = {["xp"] = 9550, ["level"] = 60},
[8576] = {["xp"] = 955, ["level"] = 60},
[8577] = {["xp"] = 9550, ["level"] = 60},
[8578] = {["xp"] = 11900, ["level"] = 60},
[8579] = {["xp"] = 9550, ["level"] = 60},
[8580] = {["xp"] = 0, ["level"] = nil},
[8581] = {["xp"] = 0, ["level"] = nil},
[8582] = {["xp"] = 0, ["level"] = nil},
[8583] = {["xp"] = 0, ["level"] = nil},
[8584] = {["xp"] = 955, ["level"] = 60},
[8585] = {["xp"] = 9550, ["level"] = 60},
[8586] = {["xp"] = 9550, ["level"] = 60},
[8587] = {["xp"] = 9550, ["level"] = 60},
[8588] = {["xp"] = 0, ["level"] = nil},
[8589] = {["xp"] = 0, ["level"] = nil},
[8590] = {["xp"] = 0, ["level"] = nil},
[8591] = {["xp"] = 0, ["level"] = nil},
[8592] = {["xp"] = 0, ["level"] = nil},
[8593] = {["xp"] = 0, ["level"] = nil},
[8594] = {["xp"] = 0, ["level"] = nil},
[8595] = {["xp"] = 0, ["level"] = nil},
[8596] = {["xp"] = 0, ["level"] = nil},
[8597] = {["xp"] = 9550, ["level"] = 60},
[8598] = {["xp"] = 4750, ["level"] = 60},
[8599] = {["xp"] = 4750, ["level"] = 60},
[8600] = {["xp"] = 0, ["level"] = nil},
[8601] = {["xp"] = 0, ["level"] = nil},
[8602] = {["xp"] = 0, ["level"] = nil},
[8603] = {["xp"] = 0, ["level"] = nil},
[8604] = {["xp"] = 0, ["level"] = nil},
[8605] = {["xp"] = 0, ["level"] = nil},
[8606] = {["xp"] = 9550, ["level"] = 60},
[8607] = {["xp"] = 0, ["level"] = nil},
[8608] = {["xp"] = 0, ["level"] = nil},
[8609] = {["xp"] = 0, ["level"] = nil},
[8610] = {["xp"] = 0, ["level"] = nil},
[8611] = {["xp"] = 0, ["level"] = nil},
[8612] = {["xp"] = 0, ["level"] = nil},
[8613] = {["xp"] = 0, ["level"] = nil},
[8614] = {["xp"] = 0, ["level"] = nil},
[8615] = {["xp"] = 0, ["level"] = nil},
[8616] = {["xp"] = 0, ["level"] = nil},
[8619] = {["xp"] = 0, ["level"] = nil},
[8620] = {["xp"] = 9550, ["level"] = 60},
[8621] = {["xp"] = 0, ["level"] = nil},
[8622] = {["xp"] = 0, ["level"] = nil},
[8623] = {["xp"] = 0, ["level"] = nil},
[8624] = {["xp"] = 0, ["level"] = nil},
[8625] = {["xp"] = 0, ["level"] = nil},
[8626] = {["xp"] = 0, ["level"] = nil},
[8627] = {["xp"] = 0, ["level"] = nil},
[8628] = {["xp"] = 0, ["level"] = nil},
[8629] = {["xp"] = 0, ["level"] = nil},
[8630] = {["xp"] = 0, ["level"] = nil},
[8631] = {["xp"] = 0, ["level"] = nil},
[8632] = {["xp"] = 0, ["level"] = nil},
[8633] = {["xp"] = 0, ["level"] = nil},
[8634] = {["xp"] = 0, ["level"] = nil},
[8635] = {["xp"] = 0, ["level"] = nil},
[8636] = {["xp"] = 0, ["level"] = nil},
[8637] = {["xp"] = 0, ["level"] = nil},
[8638] = {["xp"] = 0, ["level"] = nil},
[8639] = {["xp"] = 0, ["level"] = nil},
[8640] = {["xp"] = 0, ["level"] = nil},
[8641] = {["xp"] = 0, ["level"] = nil},
[8642] = {["xp"] = 0, ["level"] = nil},
[8643] = {["xp"] = 0, ["level"] = nil},
[8644] = {["xp"] = 0, ["level"] = nil},
[8645] = {["xp"] = 0, ["level"] = nil},
[8646] = {["xp"] = 0, ["level"] = nil},
[8647] = {["xp"] = 0, ["level"] = nil},
[8648] = {["xp"] = 0, ["level"] = nil},
[8649] = {["xp"] = 0, ["level"] = nil},
[8650] = {["xp"] = 0, ["level"] = nil},
[8651] = {["xp"] = 0, ["level"] = nil},
[8652] = {["xp"] = 0, ["level"] = nil},
[8653] = {["xp"] = 0, ["level"] = nil},
[8654] = {["xp"] = 0, ["level"] = nil},
[8655] = {["xp"] = 0, ["level"] = nil},
[8656] = {["xp"] = 0, ["level"] = nil},
[8657] = {["xp"] = 0, ["level"] = nil},
[8658] = {["xp"] = 0, ["level"] = nil},
[8659] = {["xp"] = 0, ["level"] = nil},
[8660] = {["xp"] = 0, ["level"] = nil},
[8661] = {["xp"] = 0, ["level"] = nil},
[8662] = {["xp"] = 0, ["level"] = nil},
[8663] = {["xp"] = 0, ["level"] = nil},
[8664] = {["xp"] = 0, ["level"] = nil},
[8665] = {["xp"] = 0, ["level"] = nil},
[8666] = {["xp"] = 0, ["level"] = nil},
[8667] = {["xp"] = 0, ["level"] = nil},
[8668] = {["xp"] = 0, ["level"] = nil},
[8669] = {["xp"] = 0, ["level"] = nil},
[8670] = {["xp"] = 0, ["level"] = nil},
[8671] = {["xp"] = 0, ["level"] = nil},
[8672] = {["xp"] = 0, ["level"] = nil},
[8673] = {["xp"] = 0, ["level"] = nil},
[8674] = {["xp"] = 0, ["level"] = nil},
[8675] = {["xp"] = 0, ["level"] = nil},
[8676] = {["xp"] = 0, ["level"] = nil},
[8677] = {["xp"] = 0, ["level"] = nil},
[8678] = {["xp"] = 0, ["level"] = nil},
[8679] = {["xp"] = 0, ["level"] = nil},
[8680] = {["xp"] = 0, ["level"] = nil},
[8681] = {["xp"] = 0, ["level"] = nil},
[8682] = {["xp"] = 0, ["level"] = nil},
[8683] = {["xp"] = 0, ["level"] = nil},
[8684] = {["xp"] = 0, ["level"] = nil},
[8686] = {["xp"] = 0, ["level"] = nil},
[8687] = {["xp"] = 0, ["level"] = nil},
[8688] = {["xp"] = 0, ["level"] = nil},
[8689] = {["xp"] = 9550, ["level"] = 60},
[8690] = {["xp"] = 9550, ["level"] = 60},
[8691] = {["xp"] = 9550, ["level"] = 60},
[8692] = {["xp"] = 9550, ["level"] = 60},
[8693] = {["xp"] = 9550, ["level"] = 60},
[8694] = {["xp"] = 9550, ["level"] = 60},
[8695] = {["xp"] = 9550, ["level"] = 60},
[8696] = {["xp"] = 9550, ["level"] = 60},
[8697] = {["xp"] = 9550, ["level"] = 60},
[8698] = {["xp"] = 9550, ["level"] = 60},
[8699] = {["xp"] = 9550, ["level"] = 60},
[8700] = {["xp"] = 9550, ["level"] = 60},
[8701] = {["xp"] = 9550, ["level"] = 60},
[8702] = {["xp"] = 9550, ["level"] = 60},
[8703] = {["xp"] = 9550, ["level"] = 60},
[8704] = {["xp"] = 9550, ["level"] = 60},
[8705] = {["xp"] = 9550, ["level"] = 60},
[8706] = {["xp"] = 9550, ["level"] = 60},
[8707] = {["xp"] = 9550, ["level"] = 60},
[8708] = {["xp"] = 9550, ["level"] = 60},
[8709] = {["xp"] = 9550, ["level"] = 60},
[8710] = {["xp"] = 9550, ["level"] = 60},
[8711] = {["xp"] = 9550, ["level"] = 60},
[8712] = {["xp"] = 9550, ["level"] = 60},
[8713] = {["xp"] = 0, ["level"] = nil},
[8715] = {["xp"] = 0, ["level"] = nil},
[8716] = {["xp"] = 0, ["level"] = nil},
[8717] = {["xp"] = 0, ["level"] = nil},
[8718] = {["xp"] = 0, ["level"] = nil},
[8719] = {["xp"] = 0, ["level"] = nil},
[8720] = {["xp"] = 0, ["level"] = nil},
[8721] = {["xp"] = 0, ["level"] = nil},
[8722] = {["xp"] = 0, ["level"] = nil},
[8723] = {["xp"] = 0, ["level"] = nil},
[8724] = {["xp"] = 0, ["level"] = nil},
[8725] = {["xp"] = 0, ["level"] = nil},
[8726] = {["xp"] = 0, ["level"] = nil},
[8727] = {["xp"] = 0, ["level"] = nil},
[8728] = {["xp"] = 9550, ["level"] = 60},
[8729] = {["xp"] = 14300, ["level"] = 60},
[8730] = {["xp"] = 14300, ["level"] = 60},
[8731] = {["xp"] = 0, ["level"] = nil},
[8732] = {["xp"] = 0, ["level"] = nil},
[8733] = {["xp"] = 9550, ["level"] = 60},
[8734] = {["xp"] = 2380, ["level"] = 60},
[8735] = {["xp"] = 9550, ["level"] = 60},
[8736] = {["xp"] = 14300, ["level"] = 60},
[8737] = {["xp"] = 0, ["level"] = nil},
[8738] = {["xp"] = 0, ["level"] = nil},
[8739] = {["xp"] = 0, ["level"] = nil},
[8740] = {["xp"] = 0, ["level"] = nil},
[8741] = {["xp"] = 9550, ["level"] = 60},
[8742] = {["xp"] = 14300, ["level"] = 60},
[8743] = {["xp"] = 0, ["level"] = nil},
[8744] = {["xp"] = 0, ["level"] = nil},
[8745] = {["xp"] = 9550, ["level"] = 60},
[8746] = {["xp"] = 3250, ["level"] = nil},
[8747] = {["xp"] = 9550, ["level"] = 60},
[8748] = {["xp"] = 9550, ["level"] = 60},
[8749] = {["xp"] = 9550, ["level"] = 60},
[8750] = {["xp"] = 9550, ["level"] = 60},
[8751] = {["xp"] = 14300, ["level"] = 60},
[8752] = {["xp"] = 9550, ["level"] = 60},
[8753] = {["xp"] = 9550, ["level"] = 60},
[8754] = {["xp"] = 9550, ["level"] = 60},
[8755] = {["xp"] = 9550, ["level"] = 60},
[8756] = {["xp"] = 14300, ["level"] = 60},
[8757] = {["xp"] = 9550, ["level"] = 60},
[8758] = {["xp"] = 9550, ["level"] = 60},
[8759] = {["xp"] = 9550, ["level"] = 60},
[8760] = {["xp"] = 9550, ["level"] = 60},
[8761] = {["xp"] = 14300, ["level"] = 60},
[8762] = {["xp"] = 3250, ["level"] = nil},
[8763] = {["xp"] = 0, ["level"] = nil},
[8764] = {["xp"] = 0, ["level"] = nil},
[8766] = {["xp"] = 0, ["level"] = nil},
[8767] = {["xp"] = 0, ["level"] = nil},
[8768] = {["xp"] = 0, ["level"] = nil},
[8769] = {["xp"] = 0, ["level"] = nil},
[8770] = {["xp"] = 0, ["level"] = nil},
[8771] = {["xp"] = 0, ["level"] = nil},
[8772] = {["xp"] = 0, ["level"] = nil},
[8773] = {["xp"] = 0, ["level"] = nil},
[8774] = {["xp"] = 0, ["level"] = nil},
[8775] = {["xp"] = 0, ["level"] = nil},
[8776] = {["xp"] = 0, ["level"] = nil},
[8777] = {["xp"] = 0, ["level"] = nil},
[8778] = {["xp"] = 0, ["level"] = nil},
[8779] = {["xp"] = 0, ["level"] = nil},
[8780] = {["xp"] = 0, ["level"] = nil},
[8781] = {["xp"] = 0, ["level"] = nil},
[8782] = {["xp"] = 0, ["level"] = nil},
[8783] = {["xp"] = 0, ["level"] = nil},
[8784] = {["xp"] = 0, ["level"] = nil},
[8785] = {["xp"] = 0, ["level"] = nil},
[8786] = {["xp"] = 0, ["level"] = nil},
[8787] = {["xp"] = 0, ["level"] = nil},
[8788] = {["xp"] = 0, ["level"] = nil},
[8789] = {["xp"] = 0, ["level"] = nil},
[8790] = {["xp"] = 0, ["level"] = nil},
[8791] = {["xp"] = 14300, ["level"] = 60},
[8792] = {["xp"] = 955, ["level"] = 60},
[8793] = {["xp"] = 955, ["level"] = 60},
[8794] = {["xp"] = 955, ["level"] = 60},
[8795] = {["xp"] = 955, ["level"] = 60},
[8796] = {["xp"] = 955, ["level"] = 60},
[8797] = {["xp"] = 955, ["level"] = 60},
[8798] = {["xp"] = 0, ["level"] = nil},
[8799] = {["xp"] = 0, ["level"] = nil},
[8800] = {["xp"] = 0, ["level"] = nil},
[8801] = {["xp"] = 14300, ["level"] = 60},
[8802] = {["xp"] = 14300, ["level"] = 60},
[8803] = {["xp"] = 0, ["level"] = nil},
[8804] = {["xp"] = 0, ["level"] = nil},
[8805] = {["xp"] = 0, ["level"] = nil},
[8806] = {["xp"] = 0, ["level"] = nil},
[8807] = {["xp"] = 0, ["level"] = nil},
[8808] = {["xp"] = 0, ["level"] = nil},
[8809] = {["xp"] = 0, ["level"] = nil},
[8810] = {["xp"] = 0, ["level"] = nil},
[8811] = {["xp"] = 0, ["level"] = nil},
[8812] = {["xp"] = 0, ["level"] = nil},
[8813] = {["xp"] = 0, ["level"] = nil},
[8814] = {["xp"] = 0, ["level"] = nil},
[8815] = {["xp"] = 0, ["level"] = nil},
[8816] = {["xp"] = 0, ["level"] = nil},
[8817] = {["xp"] = 0, ["level"] = nil},
[8818] = {["xp"] = 0, ["level"] = nil},
[8819] = {["xp"] = 0, ["level"] = nil},
[8820] = {["xp"] = 0, ["level"] = nil},
[8821] = {["xp"] = 0, ["level"] = nil},
[8822] = {["xp"] = 0, ["level"] = nil},
[8823] = {["xp"] = 0, ["level"] = nil},
[8824] = {["xp"] = 0, ["level"] = nil},
[8825] = {["xp"] = 0, ["level"] = nil},
[8826] = {["xp"] = 0, ["level"] = nil},
[8827] = {["xp"] = 10, ["level"] = nil},
[8828] = {["xp"] = 10, ["level"] = nil},
[8829] = {["xp"] = 0, ["level"] = nil},
[8830] = {["xp"] = 0, ["level"] = nil},
[8831] = {["xp"] = 0, ["level"] = nil},
[8832] = {["xp"] = 0, ["level"] = nil},
[8833] = {["xp"] = 0, ["level"] = nil},
[8834] = {["xp"] = 0, ["level"] = nil},
[8835] = {["xp"] = 0, ["level"] = nil},
[8836] = {["xp"] = 0, ["level"] = nil},
[8837] = {["xp"] = 0, ["level"] = nil},
[8838] = {["xp"] = 0, ["level"] = nil},
[8839] = {["xp"] = 0, ["level"] = nil},
[8840] = {["xp"] = 0, ["level"] = nil},
[8841] = {["xp"] = 0, ["level"] = nil},
[8842] = {["xp"] = 0, ["level"] = nil},
[8843] = {["xp"] = 0, ["level"] = nil},
[8844] = {["xp"] = 0, ["level"] = nil},
[8845] = {["xp"] = 0, ["level"] = nil},
[8846] = {["xp"] = 0, ["level"] = nil},
[8847] = {["xp"] = 0, ["level"] = nil},
[8848] = {["xp"] = 0, ["level"] = nil},
[8849] = {["xp"] = 0, ["level"] = nil},
[8850] = {["xp"] = 0, ["level"] = nil},
[8851] = {["xp"] = 0, ["level"] = nil},
[8852] = {["xp"] = 0, ["level"] = nil},
[8853] = {["xp"] = 0, ["level"] = nil},
[8854] = {["xp"] = 0, ["level"] = nil},
[8855] = {["xp"] = 0, ["level"] = nil},
[8857] = {["xp"] = 14300, ["level"] = 60},
[8858] = {["xp"] = 14300, ["level"] = 60},
[8859] = {["xp"] = 14300, ["level"] = 60},
[8860] = {["xp"] = 0, ["level"] = nil},
[8861] = {["xp"] = 0, ["level"] = nil},
[8862] = {["xp"] = 0, ["level"] = nil},
[8863] = {["xp"] = 0, ["level"] = nil},
[8864] = {["xp"] = 0, ["level"] = nil},
[8865] = {["xp"] = 0, ["level"] = nil},
[8866] = {["xp"] = 0, ["level"] = nil},
[8867] = {["xp"] = 0, ["level"] = nil},
[8868] = {["xp"] = 4370, ["level"] = nil},
[8869] = {["xp"] = 11900, ["level"] = 60},
[8870] = {["xp"] = 0, ["level"] = nil},
[8871] = {["xp"] = 0, ["level"] = nil},
[8872] = {["xp"] = 0, ["level"] = nil},
[8873] = {["xp"] = 0, ["level"] = nil},
[8874] = {["xp"] = 0, ["level"] = nil},
[8875] = {["xp"] = 0, ["level"] = nil},
[8876] = {["xp"] = 0, ["level"] = nil},
[8877] = {["xp"] = 0, ["level"] = nil},
[8878] = {["xp"] = 0, ["level"] = nil},
[8879] = {["xp"] = 0, ["level"] = nil},
[8880] = {["xp"] = 0, ["level"] = nil},
[8881] = {["xp"] = 0, ["level"] = nil},
[8882] = {["xp"] = 0, ["level"] = nil},
[8883] = {["xp"] = 1250, ["level"] = 70},
[8884] = {["xp"] = 630, ["level"] = 7},
[8885] = {["xp"] = 980, ["level"] = 9},
[8886] = {["xp"] = 700, ["level"] = 8},
[8887] = {["xp"] = 700, ["level"] = 8},
[8888] = {["xp"] = 85, ["level"] = 10},
[8889] = {["xp"] = 630, ["level"] = 10},
[8890] = {["xp"] = 840, ["level"] = 10},
[8891] = {["xp"] = 840, ["level"] = 10},
[8892] = {["xp"] = 630, ["level"] = 7},
[8893] = {["xp"] = 0, ["level"] = nil},
[8894] = {["xp"] = 840, ["level"] = 10},
[8895] = {["xp"] = 135, ["level"] = 6},
[8897] = {["xp"] = 0, ["level"] = nil},
[8898] = {["xp"] = 0, ["level"] = nil},
[8899] = {["xp"] = 0, ["level"] = nil},
[8900] = {["xp"] = 0, ["level"] = nil},
[8901] = {["xp"] = 0, ["level"] = nil},
[8902] = {["xp"] = 0, ["level"] = nil},
[8903] = {["xp"] = 0, ["level"] = nil},
[8904] = {["xp"] = 0, ["level"] = nil},
[8905] = {["xp"] = 9550, ["level"] = 60},
[8906] = {["xp"] = 9550, ["level"] = 60},
[8907] = {["xp"] = 9550, ["level"] = 60},
[8908] = {["xp"] = 9550, ["level"] = 60},
[8909] = {["xp"] = 9550, ["level"] = 60},
[8910] = {["xp"] = 9550, ["level"] = 60},
[8911] = {["xp"] = 9550, ["level"] = 60},
[8912] = {["xp"] = 9550, ["level"] = 60},
[8913] = {["xp"] = 9550, ["level"] = 60},
[8914] = {["xp"] = 9550, ["level"] = 60},
[8915] = {["xp"] = 9550, ["level"] = 60},
[8916] = {["xp"] = 9550, ["level"] = 60},
[8917] = {["xp"] = 9550, ["level"] = 60},
[8918] = {["xp"] = 9550, ["level"] = 60},
[8919] = {["xp"] = 9550, ["level"] = 60},
[8920] = {["xp"] = 9550, ["level"] = 60},
[8921] = {["xp"] = 9550, ["level"] = 60},
[8922] = {["xp"] = 9550, ["level"] = 60},
[8923] = {["xp"] = 9550, ["level"] = 60},
[8924] = {["xp"] = 9550, ["level"] = 60},
[8925] = {["xp"] = 9550, ["level"] = 60},
[8926] = {["xp"] = 14300, ["level"] = 60},
[8927] = {["xp"] = 14300, ["level"] = 60},
[8928] = {["xp"] = 4750, ["level"] = 60},
[8929] = {["xp"] = 9550, ["level"] = 60},
[8930] = {["xp"] = 9550, ["level"] = 60},
[8931] = {["xp"] = 14300, ["level"] = 60},
[8932] = {["xp"] = 14300, ["level"] = 60},
[8933] = {["xp"] = 14300, ["level"] = 60},
[8934] = {["xp"] = 14300, ["level"] = 60},
[8935] = {["xp"] = 14300, ["level"] = 60},
[8936] = {["xp"] = 14300, ["level"] = 60},
[8937] = {["xp"] = 14300, ["level"] = 60},
[8938] = {["xp"] = 14300, ["level"] = 60},
[8939] = {["xp"] = 14300, ["level"] = 60},
[8940] = {["xp"] = 14300, ["level"] = 60},
[8941] = {["xp"] = 14300, ["level"] = 60},
[8942] = {["xp"] = 14300, ["level"] = 60},
[8943] = {["xp"] = 14300, ["level"] = 60},
[8944] = {["xp"] = 14300, ["level"] = 60},
[8945] = {["xp"] = 11900, ["level"] = 60},
[8946] = {["xp"] = 9550, ["level"] = 60},
[8947] = {["xp"] = 9550, ["level"] = 60},
[8948] = {["xp"] = 9550, ["level"] = 60},
[8949] = {["xp"] = 9550, ["level"] = 60},
[8950] = {["xp"] = 9550, ["level"] = 60},
[8951] = {["xp"] = 14300, ["level"] = 60},
[8952] = {["xp"] = 14300, ["level"] = 60},
[8953] = {["xp"] = 14300, ["level"] = 60},
[8954] = {["xp"] = 14300, ["level"] = 60},
[8955] = {["xp"] = 14300, ["level"] = 60},
[8956] = {["xp"] = 14300, ["level"] = 60},
[8957] = {["xp"] = 14300, ["level"] = 60},
[8958] = {["xp"] = 14300, ["level"] = 60},
[8959] = {["xp"] = 14300, ["level"] = 60},
[8960] = {["xp"] = 2380, ["level"] = 60},
[8961] = {["xp"] = 9550, ["level"] = 60},
[8962] = {["xp"] = 9550, ["level"] = 60},
[8963] = {["xp"] = 9550, ["level"] = 60},
[8964] = {["xp"] = 9550, ["level"] = 60},
[8965] = {["xp"] = 9550, ["level"] = 60},
[8966] = {["xp"] = 11900, ["level"] = 60},
[8967] = {["xp"] = 11900, ["level"] = 60},
[8968] = {["xp"] = 11900, ["level"] = 60},
[8969] = {["xp"] = 11900, ["level"] = 60},
[8970] = {["xp"] = 9550, ["level"] = 60},
[8971] = {["xp"] = 0, ["level"] = nil},
[8973] = {["xp"] = 0, ["level"] = nil},
[8976] = {["xp"] = 0, ["level"] = nil},
[8977] = {["xp"] = 9550, ["level"] = 60},
[8978] = {["xp"] = 9550, ["level"] = 60},
[8979] = {["xp"] = 0, ["level"] = nil},
[8980] = {["xp"] = 0, ["level"] = nil},
[8981] = {["xp"] = 0, ["level"] = nil},
[8982] = {["xp"] = 0, ["level"] = nil},
[8983] = {["xp"] = 0, ["level"] = nil},
[8984] = {["xp"] = 0, ["level"] = nil},
[8985] = {["xp"] = 9550, ["level"] = 60},
[8986] = {["xp"] = 9550, ["level"] = 60},
[8987] = {["xp"] = 9550, ["level"] = 60},
[8988] = {["xp"] = 9550, ["level"] = 60},
[8989] = {["xp"] = 11900, ["level"] = 60},
[8990] = {["xp"] = 11900, ["level"] = 60},
[8991] = {["xp"] = 11900, ["level"] = 60},
[8992] = {["xp"] = 11900, ["level"] = 60},
[8993] = {["xp"] = 0, ["level"] = nil},
[8994] = {["xp"] = 9550, ["level"] = 60},
[8995] = {["xp"] = 14300, ["level"] = 60},
[8996] = {["xp"] = 955, ["level"] = 60},
[8997] = {["xp"] = 955, ["level"] = 60},
[8998] = {["xp"] = 955, ["level"] = 60},
[8999] = {["xp"] = 2380, ["level"] = 60},
[9000] = {["xp"] = 2380, ["level"] = 60},
[9001] = {["xp"] = 2380, ["level"] = 60},
[9002] = {["xp"] = 2380, ["level"] = 60},
[9003] = {["xp"] = 2380, ["level"] = 60},
[9004] = {["xp"] = 2380, ["level"] = 60},
[9005] = {["xp"] = 2380, ["level"] = 60},
[9006] = {["xp"] = 2380, ["level"] = 60},
[9007] = {["xp"] = 2380, ["level"] = 60},
[9008] = {["xp"] = 2380, ["level"] = 60},
[9009] = {["xp"] = 2380, ["level"] = 60},
[9010] = {["xp"] = 2380, ["level"] = 60},
[9011] = {["xp"] = 2380, ["level"] = 60},
[9012] = {["xp"] = 2380, ["level"] = 60},
[9013] = {["xp"] = 2380, ["level"] = 60},
[9014] = {["xp"] = 2380, ["level"] = 60},
[9015] = {["xp"] = 9550, ["level"] = 60},
[9016] = {["xp"] = 14300, ["level"] = 60},
[9017] = {["xp"] = 14300, ["level"] = 60},
[9018] = {["xp"] = 14300, ["level"] = 60},
[9019] = {["xp"] = 14300, ["level"] = 60},
[9020] = {["xp"] = 14300, ["level"] = 60},
[9021] = {["xp"] = 14300, ["level"] = 60},
[9022] = {["xp"] = 14300, ["level"] = 60},
[9023] = {["xp"] = 9550, ["level"] = 60},
[9024] = {["xp"] = 0, ["level"] = nil},
[9025] = {["xp"] = 0, ["level"] = nil},
[9026] = {["xp"] = 0, ["level"] = nil},
[9027] = {["xp"] = 0, ["level"] = nil},
[9028] = {["xp"] = 0, ["level"] = nil},
[9029] = {["xp"] = 0, ["level"] = nil},
[9030] = {["xp"] = 9550, ["level"] = 60},
[9032] = {["xp"] = 2380, ["level"] = 60},
[9033] = {["xp"] = 9550, ["level"] = 60},
[9034] = {["xp"] = 0, ["level"] = nil},
[9035] = {["xp"] = 55, ["level"] = 6},
[9036] = {["xp"] = 0, ["level"] = nil},
[9037] = {["xp"] = 0, ["level"] = nil},
[9038] = {["xp"] = 0, ["level"] = nil},
[9039] = {["xp"] = 0, ["level"] = nil},
[9040] = {["xp"] = 0, ["level"] = nil},
[9041] = {["xp"] = 0, ["level"] = nil},
[9042] = {["xp"] = 0, ["level"] = nil},
[9043] = {["xp"] = 0, ["level"] = nil},
[9044] = {["xp"] = 0, ["level"] = nil},
[9045] = {["xp"] = 0, ["level"] = nil},
[9046] = {["xp"] = 0, ["level"] = nil},
[9047] = {["xp"] = 0, ["level"] = nil},
[9048] = {["xp"] = 0, ["level"] = nil},
[9049] = {["xp"] = 0, ["level"] = nil},
[9050] = {["xp"] = 0, ["level"] = nil},
[9051] = {["xp"] = 7340, ["level"] = 52},
[9052] = {["xp"] = 7340, ["level"] = 52},
[9053] = {["xp"] = 11000, ["level"] = 52},
[9054] = {["xp"] = 0, ["level"] = nil},
[9055] = {["xp"] = 0, ["level"] = nil},
[9056] = {["xp"] = 0, ["level"] = nil},
[9057] = {["xp"] = 0, ["level"] = nil},
[9058] = {["xp"] = 0, ["level"] = nil},
[9059] = {["xp"] = 0, ["level"] = nil},
[9060] = {["xp"] = 0, ["level"] = nil},
[9061] = {["xp"] = 0, ["level"] = nil},
[9062] = {["xp"] = 270, ["level"] = 6},
[9063] = {["xp"] = 730, ["level"] = 52},
[9064] = {["xp"] = 135, ["level"] = 6},
[9065] = {["xp"] = 540, ["level"] = 4},
[9066] = {["xp"] = 540, ["level"] = 6},
[9067] = {["xp"] = 780, ["level"] = 9},
[9068] = {["xp"] = 0, ["level"] = nil},
[9069] = {["xp"] = 0, ["level"] = nil},
[9070] = {["xp"] = 0, ["level"] = nil},
[9071] = {["xp"] = 0, ["level"] = nil},
[9072] = {["xp"] = 0, ["level"] = nil},
[9073] = {["xp"] = 0, ["level"] = nil},
[9074] = {["xp"] = 0, ["level"] = nil},
[9075] = {["xp"] = 0, ["level"] = nil},
[9076] = {["xp"] = 700, ["level"] = 8},
[9077] = {["xp"] = 0, ["level"] = nil},
[9078] = {["xp"] = 0, ["level"] = nil},
[9079] = {["xp"] = 0, ["level"] = nil},
[9080] = {["xp"] = 0, ["level"] = nil},
[9081] = {["xp"] = 0, ["level"] = nil},
[9082] = {["xp"] = 0, ["level"] = nil},
[9083] = {["xp"] = 0, ["level"] = nil},
[9084] = {["xp"] = 0, ["level"] = nil},
[9085] = {["xp"] = 0, ["level"] = nil},
[9086] = {["xp"] = 0, ["level"] = nil},
[9087] = {["xp"] = 0, ["level"] = nil},
[9088] = {["xp"] = 0, ["level"] = nil},
[9089] = {["xp"] = 0, ["level"] = nil},
[9090] = {["xp"] = 0, ["level"] = nil},
[9091] = {["xp"] = 0, ["level"] = nil},
[9092] = {["xp"] = 0, ["level"] = nil},
[9093] = {["xp"] = 0, ["level"] = nil},
[9094] = {["xp"] = 0, ["level"] = nil},
[9095] = {["xp"] = 0, ["level"] = nil},
[9096] = {["xp"] = 0, ["level"] = nil},
[9097] = {["xp"] = 0, ["level"] = nil},
[9098] = {["xp"] = 0, ["level"] = nil},
[9099] = {["xp"] = 0, ["level"] = nil},
[9100] = {["xp"] = 0, ["level"] = nil},
[9101] = {["xp"] = 0, ["level"] = nil},
[9102] = {["xp"] = 0, ["level"] = nil},
[9103] = {["xp"] = 0, ["level"] = nil},
[9104] = {["xp"] = 0, ["level"] = nil},
[9105] = {["xp"] = 0, ["level"] = nil},
[9106] = {["xp"] = 0, ["level"] = nil},
[9107] = {["xp"] = 0, ["level"] = nil},
[9108] = {["xp"] = 0, ["level"] = nil},
[9109] = {["xp"] = 0, ["level"] = nil},
[9110] = {["xp"] = 0, ["level"] = nil},
[9111] = {["xp"] = 0, ["level"] = nil},
[9112] = {["xp"] = 0, ["level"] = nil},
[9113] = {["xp"] = 0, ["level"] = nil},
[9114] = {["xp"] = 0, ["level"] = nil},
[9115] = {["xp"] = 0, ["level"] = nil},
[9116] = {["xp"] = 0, ["level"] = nil},
[9117] = {["xp"] = 0, ["level"] = nil},
[9118] = {["xp"] = 0, ["level"] = nil},
[9119] = {["xp"] = 450, ["level"] = 5},
[9120] = {["xp"] = 14300, ["level"] = 60},
[9121] = {["xp"] = 0, ["level"] = nil},
[9122] = {["xp"] = 0, ["level"] = nil},
[9123] = {["xp"] = 0, ["level"] = nil},
[9124] = {["xp"] = 9550, ["level"] = 60},
[9125] = {["xp"] = 0, ["level"] = nil},
[9126] = {["xp"] = 9550, ["level"] = 60},
[9127] = {["xp"] = 0, ["level"] = nil},
[9128] = {["xp"] = 9550, ["level"] = 60},
[9129] = {["xp"] = 0, ["level"] = nil},
[9130] = {["xp"] = 210, ["level"] = 10},
[9131] = {["xp"] = 9550, ["level"] = 60},
[9132] = {["xp"] = 0, ["level"] = nil},
[9133] = {["xp"] = 420, ["level"] = 10},
[9134] = {["xp"] = 210, ["level"] = 10},
[9135] = {["xp"] = 1050, ["level"] = 10},
[9136] = {["xp"] = 9550, ["level"] = 60},
[9137] = {["xp"] = 0, ["level"] = nil},
[9138] = {["xp"] = 840, ["level"] = 10},
[9139] = {["xp"] = 880, ["level"] = 11},
[9140] = {["xp"] = 1250, ["level"] = 14},
[9141] = {["xp"] = 4750, ["level"] = 60},
[9142] = {["xp"] = 0, ["level"] = nil},
[9143] = {["xp"] = 910, ["level"] = 12},
[9144] = {["xp"] = 420, ["level"] = 10},
[9145] = {["xp"] = 225, ["level"] = 12},
[9146] = {["xp"] = 225, ["level"] = 12},
[9147] = {["xp"] = 840, ["level"] = 10},
[9148] = {["xp"] = 420, ["level"] = 10},
[9149] = {["xp"] = 910, ["level"] = 13},
[9150] = {["xp"] = 910, ["level"] = 12},
[9151] = {["xp"] = 780, ["level"] = 20},
[9152] = {["xp"] = 880, ["level"] = 11},
[9153] = {["xp"] = 0, ["level"] = nil},
[9154] = {["xp"] = 0, ["level"] = nil},
[9155] = {["xp"] = 980, ["level"] = 14},
[9156] = {["xp"] = 2500, ["level"] = 21},
[9157] = {["xp"] = 910, ["level"] = 12},
[9158] = {["xp"] = 980, ["level"] = 14},
[9159] = {["xp"] = 1050, ["level"] = 15},
[9160] = {["xp"] = 880, ["level"] = 11},
[9161] = {["xp"] = 1150, ["level"] = 16},
[9162] = {["xp"] = 1150, ["level"] = 16},
[9163] = {["xp"] = 980, ["level"] = 14},
[9164] = {["xp"] = 1950, ["level"] = 20},
[9165] = {["xp"] = 0, ["level"] = nil},
[9166] = {["xp"] = 290, ["level"] = 16},
[9167] = {["xp"] = 2500, ["level"] = 21},
[9168] = {["xp"] = 1950, ["level"] = 20},
[9169] = {["xp"] = 1450, ["level"] = 16},
[9170] = {["xp"] = 1950, ["level"] = 20},
[9171] = {["xp"] = 1050, ["level"] = 15},
[9172] = {["xp"] = 1150, ["level"] = 16},
[9173] = {["xp"] = 1050, ["level"] = 15},
[9174] = {["xp"] = 1150, ["level"] = 13},
[9175] = {["xp"] = 1050, ["level"] = 15},
[9176] = {["xp"] = 1900, ["level"] = 17},
[9177] = {["xp"] = 1350, ["level"] = 15},
[9178] = {["xp"] = 0, ["level"] = nil},
[9179] = {["xp"] = 0, ["level"] = nil},
[9180] = {["xp"] = 1350, ["level"] = 15},
[9182] = {["xp"] = 0, ["level"] = nil},
[9183] = {["xp"] = 0, ["level"] = nil},
[9184] = {["xp"] = 0, ["level"] = nil},
[9185] = {["xp"] = 0, ["level"] = nil},
[9186] = {["xp"] = 0, ["level"] = nil},
[9187] = {["xp"] = 0, ["level"] = nil},
[9188] = {["xp"] = 0, ["level"] = nil},
[9189] = {["xp"] = 540, ["level"] = 15},
[9190] = {["xp"] = 0, ["level"] = nil},
[9191] = {["xp"] = 0, ["level"] = nil},
[9192] = {["xp"] = 980, ["level"] = 14},
[9193] = {["xp"] = 1250, ["level"] = 17},
[9194] = {["xp"] = 0, ["level"] = nil},
[9195] = {["xp"] = 0, ["level"] = nil},
[9196] = {["xp"] = 0, ["level"] = nil},
[9198] = {["xp"] = 0, ["level"] = nil},
[9199] = {["xp"] = 1250, ["level"] = 17},
[9200] = {["xp"] = 0, ["level"] = nil},
[9201] = {["xp"] = 0, ["level"] = nil},
[9202] = {["xp"] = 0, ["level"] = nil},
[9204] = {["xp"] = 0, ["level"] = nil},
[9205] = {["xp"] = 0, ["level"] = nil},
[9206] = {["xp"] = 0, ["level"] = nil},
[9207] = {["xp"] = 980, ["level"] = 14},
[9208] = {["xp"] = 0, ["level"] = nil},
[9209] = {["xp"] = 0, ["level"] = nil},
[9210] = {["xp"] = 0, ["level"] = nil},
[9211] = {["xp"] = 0, ["level"] = nil},
[9212] = {["xp"] = 1250, ["level"] = 17},
[9213] = {["xp"] = 0, ["level"] = nil},
[9214] = {["xp"] = 1350, ["level"] = 18},
[9215] = {["xp"] = 1950, ["level"] = 20},
[9216] = {["xp"] = 1150, ["level"] = 16},
[9218] = {["xp"] = 1350, ["level"] = 18},
[9220] = {["xp"] = 1950, ["level"] = 20},
[9221] = {["xp"] = 0, ["level"] = nil},
[9222] = {["xp"] = 0, ["level"] = nil},
[9223] = {["xp"] = 0, ["level"] = nil},
[9224] = {["xp"] = 0, ["level"] = nil},
[9225] = {["xp"] = 0, ["level"] = nil},
[9226] = {["xp"] = 0, ["level"] = nil},
[9227] = {["xp"] = 0, ["level"] = nil},
[9228] = {["xp"] = 0, ["level"] = nil},
[9229] = {["xp"] = 9550, ["level"] = 60},
[9230] = {["xp"] = 9550, ["level"] = 60},
[9232] = {["xp"] = 9550, ["level"] = 60},
[9233] = {["xp"] = 0, ["level"] = nil},
[9234] = {["xp"] = 0, ["level"] = nil},
[9235] = {["xp"] = 0, ["level"] = nil},
[9236] = {["xp"] = 0, ["level"] = nil},
[9237] = {["xp"] = 0, ["level"] = nil},
[9238] = {["xp"] = 0, ["level"] = nil},
[9239] = {["xp"] = 0, ["level"] = nil},
[9240] = {["xp"] = 0, ["level"] = nil},
[9241] = {["xp"] = 0, ["level"] = nil},
[9242] = {["xp"] = 0, ["level"] = nil},
[9243] = {["xp"] = 0, ["level"] = nil},
[9244] = {["xp"] = 0, ["level"] = nil},
[9245] = {["xp"] = 0, ["level"] = nil},
[9246] = {["xp"] = 0, ["level"] = nil},
[9247] = {["xp"] = 10, ["level"] = nil},
[9248] = {["xp"] = 9550, ["level"] = 60},
[9250] = {["xp"] = 9550, ["level"] = 60},
[9251] = {["xp"] = 9550, ["level"] = 60},
[9252] = {["xp"] = 780, ["level"] = 9},
[9253] = {["xp"] = 210, ["level"] = 10},
[9254] = {["xp"] = 390, ["level"] = 9},
[9255] = {["xp"] = 390, ["level"] = 9},
[9256] = {["xp"] = 315, ["level"] = 7},
[9257] = {["xp"] = 14300, ["level"] = 60},
[9258] = {["xp"] = 210, ["level"] = 10},
[9260] = {["xp"] = 405, ["level"] = 6},
[9261] = {["xp"] = 630, ["level"] = 10},
[9262] = {["xp"] = 630, ["level"] = 10},
[9263] = {["xp"] = 630, ["level"] = 10},
[9264] = {["xp"] = 630, ["level"] = 10},
[9265] = {["xp"] = 530, ["level"] = 8},
[9266] = {["xp"] = 0, ["level"] = nil},
[9269] = {["xp"] = 14300, ["level"] = 60},
[9270] = {["xp"] = 14300, ["level"] = 60},
[9271] = {["xp"] = 14300, ["level"] = 60},
[9274] = {["xp"] = 910, ["level"] = 12},
[9275] = {["xp"] = 1450, ["level"] = 19},
[9276] = {["xp"] = 1350, ["level"] = 18},
[9277] = {["xp"] = 1450, ["level"] = 19},
[9279] = {["xp"] = 40, ["level"] = 1},
[9280] = {["xp"] = 80, ["level"] = 1},
[9281] = {["xp"] = 1350, ["level"] = 18},
[9282] = {["xp"] = 580, ["level"] = 16},
[9283] = {["xp"] = 215, ["level"] = 2},
[9287] = {["xp"] = 85, ["level"] = 2},
[9288] = {["xp"] = 85, ["level"] = 2},
[9289] = {["xp"] = 85, ["level"] = 2},
[9290] = {["xp"] = 85, ["level"] = 2},
[9291] = {["xp"] = 85, ["level"] = 2},
[9292] = {["xp"] = 0, ["level"] = nil},
[9293] = {["xp"] = 170, ["level"] = 2},
[9294] = {["xp"] = 250, ["level"] = 3},
[9295] = {["xp"] = 2750, ["level"] = nil},
[9299] = {["xp"] = 2750, ["level"] = nil},
[9300] = {["xp"] = 2750, ["level"] = nil},
[9301] = {["xp"] = 2750, ["level"] = nil},
[9302] = {["xp"] = 2750, ["level"] = nil},
[9303] = {["xp"] = 445, ["level"] = 4},
[9304] = {["xp"] = 2750, ["level"] = nil},
[9305] = {["xp"] = 355, ["level"] = 4},
[9308] = {["xp"] = 355, ["level"] = 4},
[9309] = {["xp"] = 110, ["level"] = 5},
[9310] = {["xp"] = 0, ["level"] = nil},
[9311] = {["xp"] = 670, ["level"] = 5},
[9312] = {["xp"] = 110, ["level"] = 5},
[9313] = {["xp"] = 560, ["level"] = 5},
[9314] = {["xp"] = 110, ["level"] = 5},
[9315] = {["xp"] = 880, ["level"] = 11},
[9316] = {["xp"] = 6810, ["level"] = 50},
[9317] = {["xp"] = 0, ["level"] = nil},
[9318] = {["xp"] = 0, ["level"] = nil},
[9319] = {["xp"] = 5100, ["level"] = nil},
[9320] = {["xp"] = 0, ["level"] = nil},
[9321] = {["xp"] = 0, ["level"] = nil},
[9322] = {["xp"] = 40, ["level"] = nil},
[9323] = {["xp"] = 40, ["level"] = nil},
[9324] = {["xp"] = 5100, ["level"] = nil},
[9325] = {["xp"] = 5100, ["level"] = nil},
[9326] = {["xp"] = 5100, ["level"] = nil},
[9327] = {["xp"] = 85, ["level"] = 10},
[9328] = {["xp"] = 830, ["level"] = 21},
[9329] = {["xp"] = 85, ["level"] = 10},
[9330] = {["xp"] = 5100, ["level"] = nil},
[9331] = {["xp"] = 7150, ["level"] = 60},
[9332] = {["xp"] = 7150, ["level"] = 60},
[9333] = {["xp"] = 0, ["level"] = nil},
[9334] = {["xp"] = 0, ["level"] = nil},
[9335] = {["xp"] = 0, ["level"] = nil},
[9336] = {["xp"] = 0, ["level"] = nil},
[9337] = {["xp"] = 0, ["level"] = nil},
[9338] = {["xp"] = 0, ["level"] = nil},
[9339] = {["xp"] = 7150, ["level"] = 60},
[9340] = {["xp"] = 10050, ["level"] = 62},
[9341] = {["xp"] = 0, ["level"] = nil},
[9343] = {["xp"] = 0, ["level"] = nil},
[9345] = {["xp"] = 9800, ["level"] = 61},
[9349] = {["xp"] = 9800, ["level"] = 61},
[9351] = {["xp"] = 9800, ["level"] = 61},
[9352] = {["xp"] = 540, ["level"] = 6},
[9354] = {["xp"] = 9800, ["level"] = 61},
[9355] = {["xp"] = 9800, ["level"] = 61},
[9356] = {["xp"] = 9800, ["level"] = 61},
[9357] = {["xp"] = 45, ["level"] = 5},
[9358] = {["xp"] = 80, ["level"] = 9},
[9359] = {["xp"] = 85, ["level"] = 10},
[9360] = {["xp"] = 880, ["level"] = 11},
[9361] = {["xp"] = 9800, ["level"] = 61},
[9362] = {["xp"] = 9550, ["level"] = 60},
[9363] = {["xp"] = 440, ["level"] = 11},
[9364] = {["xp"] = 9550, ["level"] = nil},
[9365] = {["xp"] = 7150, ["level"] = 60},
[9366] = {["xp"] = 10050, ["level"] = 62},
[9367] = {["xp"] = 10, ["level"] = nil},
[9368] = {["xp"] = 10, ["level"] = nil},
[9369] = {["xp"] = 80, ["level"] = 1},
[9370] = {["xp"] = 10050, ["level"] = 62},
[9371] = {["xp"] = 45, ["level"] = 2},
[9372] = {["xp"] = 10400, ["level"] = 63},
[9373] = {["xp"] = 9800, ["level"] = 61},
[9374] = {["xp"] = 10050, ["level"] = 62},
[9375] = {["xp"] = 10400, ["level"] = 63},
[9376] = {["xp"] = 10400, ["level"] = 63},
[9380] = {["xp"] = 9800, ["level"] = 61},
[9381] = {["xp"] = 10400, ["level"] = 63},
[9383] = {["xp"] = 10400, ["level"] = 63},
[9385] = {["xp"] = 10400, ["level"] = 63},
[9386] = {["xp"] = 0, ["level"] = nil},
[9387] = {["xp"] = 10400, ["level"] = 63},
[9388] = {["xp"] = 1500, ["level"] = 25},
[9389] = {["xp"] = 1500, ["level"] = 25},
[9390] = {["xp"] = 2550, ["level"] = 62},
[9391] = {["xp"] = 10050, ["level"] = 62},
[9392] = {["xp"] = 40, ["level"] = 1},
[9393] = {["xp"] = 40, ["level"] = 1},
[9394] = {["xp"] = 85, ["level"] = 10},
[9395] = {["xp"] = 80, ["level"] = 9},
[9396] = {["xp"] = 10050, ["level"] = 62},
[9397] = {["xp"] = 10050, ["level"] = 62},
[9398] = {["xp"] = 10050, ["level"] = 62},
[9399] = {["xp"] = 10400, ["level"] = 63},
[9400] = {["xp"] = 10050, ["level"] = 62},
[9401] = {["xp"] = 10050, ["level"] = 62},
[9402] = {["xp"] = 210, ["level"] = 10},
[9403] = {["xp"] = 840, ["level"] = 10},
[9404] = {["xp"] = 840, ["level"] = 10},
[9405] = {["xp"] = 5000, ["level"] = 62},
[9406] = {["xp"] = 10050, ["level"] = 62},
[9407] = {["xp"] = 2400, ["level"] = 61},
[9408] = {["xp"] = 955, ["level"] = 60},
[9409] = {["xp"] = 45, ["level"] = 2},
[9410] = {["xp"] = 10050, ["level"] = 62},
[9415] = {["xp"] = 0, ["level"] = nil},
[9416] = {["xp"] = 0, ["level"] = nil},
[9417] = {["xp"] = 10400, ["level"] = 63},
[9418] = {["xp"] = 10400, ["level"] = 63},
[9419] = {["xp"] = 9550, ["level"] = 60},
[9420] = {["xp"] = 10050, ["level"] = 62},
[9421] = {["xp"] = 85, ["level"] = 2},
[9422] = {["xp"] = 9550, ["level"] = 60},
[9423] = {["xp"] = 2550, ["level"] = 62},
[9424] = {["xp"] = 10400, ["level"] = 63},
[9425] = {["xp"] = 780, ["level"] = 20},
[9426] = {["xp"] = 10050, ["level"] = 62},
[9427] = {["xp"] = 10050, ["level"] = 62},
[9428] = {["xp"] = 780, ["level"] = 20},
[9429] = {["xp"] = 780, ["level"] = 20},
[9430] = {["xp"] = 10400, ["level"] = 63},
[9431] = {["xp"] = 2300, ["level"] = 28},
[9432] = {["xp"] = 780, ["level"] = 20},
[9433] = {["xp"] = 2300, ["level"] = 28},
[9434] = {["xp"] = 2300, ["level"] = 28},
[9435] = {["xp"] = 2350, ["level"] = 29},
[9436] = {["xp"] = 3100, ["level"] = 34},
[9437] = {["xp"] = 3710, ["level"] = 37},
[9438] = {["xp"] = 10050, ["level"] = 62},
[9439] = {["xp"] = 4370, ["level"] = 40},
[9440] = {["xp"] = 3920, ["level"] = 38},
[9441] = {["xp"] = 10400, ["level"] = 63},
[9442] = {["xp"] = 10400, ["level"] = 63},
[9443] = {["xp"] = 9020, ["level"] = 58},
[9444] = {["xp"] = 11250, ["level"] = 58},
[9445] = {["xp"] = 0, ["level"] = nil},
[9446] = {["xp"] = 11250, ["level"] = 58},
[9447] = {["xp"] = 10400, ["level"] = 63},
[9448] = {["xp"] = 3920, ["level"] = 38},
[9449] = {["xp"] = 270, ["level"] = nil},
[9450] = {["xp"] = 355, ["level"] = nil},
[9451] = {["xp"] = 445, ["level"] = nil},
[9452] = {["xp"] = 540, ["level"] = 6},
[9453] = {["xp"] = 55, ["level"] = 6},
[9454] = {["xp"] = 405, ["level"] = 6},
[9455] = {["xp"] = 475, ["level"] = 7},
[9456] = {["xp"] = 700, ["level"] = 8},
[9457] = {["xp"] = 4350, ["level"] = 36},
[9460] = {["xp"] = 910, ["level"] = 12},
[9461] = {["xp"] = 210, ["level"] = nil},
[9462] = {["xp"] = 210, ["level"] = nil},
[9463] = {["xp"] = 540, ["level"] = 6},
[9464] = {["xp"] = 840, ["level"] = nil},
[9465] = {["xp"] = 840, ["level"] = nil},
[9466] = {["xp"] = 12950, ["level"] = 63},
[9467] = {["xp"] = 840, ["level"] = nil},
[9468] = {["xp"] = 1050, ["level"] = nil},
[9469] = {["xp"] = 4300, ["level"] = 46},
[9470] = {["xp"] = 5790, ["level"] = 46},
[9471] = {["xp"] = 5290, ["level"] = 44},
[9472] = {["xp"] = 12600, ["level"] = 62},
[9473] = {["xp"] = 700, ["level"] = 8},
[9474] = {["xp"] = 9020, ["level"] = 58},
[9475] = {["xp"] = 7200, ["level"] = 46},
[9476] = {["xp"] = 5790, ["level"] = 46},
[9484] = {["xp"] = 840, ["level"] = nil},
[9485] = {["xp"] = 840, ["level"] = nil},
[9486] = {["xp"] = 840, ["level"] = nil},
[9487] = {["xp"] = 1150, ["level"] = 16},
[9488] = {["xp"] = 1150, ["level"] = 16},
[9489] = {["xp"] = 450, ["level"] = 5},
[9490] = {["xp"] = 12950, ["level"] = 63},
[9491] = {["xp"] = 1350, ["level"] = 18},
[9492] = {["xp"] = 25300, ["level"] = 70},
[9493] = {["xp"] = 25300, ["level"] = 70},
[9494] = {["xp"] = 25300, ["level"] = 70},
[9495] = {["xp"] = 25300, ["level"] = 70},
[9496] = {["xp"] = 25300, ["level"] = 70},
[9498] = {["xp"] = 1000, ["level"] = 62},
[9499] = {["xp"] = 1000, ["level"] = 62},
[9500] = {["xp"] = 390, ["level"] = nil},
[9501] = {["xp"] = 1550, ["level"] = nil},
[9502] = {["xp"] = 390, ["level"] = nil},
[9503] = {["xp"] = 1550, ["level"] = nil},
[9504] = {["xp"] = 1550, ["level"] = nil},
[9505] = {["xp"] = 530, ["level"] = 8},
[9506] = {["xp"] = 630, ["level"] = 7},
[9508] = {["xp"] = 1550, ["level"] = nil},
[9509] = {["xp"] = 2350, ["level"] = nil},
[9512] = {["xp"] = 475, ["level"] = 7},
[9513] = {["xp"] = 700, ["level"] = 8},
[9514] = {["xp"] = 70, ["level"] = 8},
[9515] = {["xp"] = 840, ["level"] = 10},
[9516] = {["xp"] = 2450, ["level"] = 30},
[9517] = {["xp"] = 2300, ["level"] = 28},
[9518] = {["xp"] = 2300, ["level"] = 28},
[9519] = {["xp"] = 2200, ["level"] = 27},
[9520] = {["xp"] = 1200, ["level"] = 30},
[9521] = {["xp"] = 510, ["level"] = 25},
[9522] = {["xp"] = 3350, ["level"] = 32},
[9523] = {["xp"] = 700, ["level"] = 8},
[9526] = {["xp"] = 2450, ["level"] = 30},
[9527] = {["xp"] = 840, ["level"] = 10},
[9528] = {["xp"] = 840, ["level"] = 10},
[9529] = {["xp"] = 840, ["level"] = nil},
[9530] = {["xp"] = 195, ["level"] = 9},
[9531] = {["xp"] = 590, ["level"] = 9},
[9532] = {["xp"] = 840, ["level"] = 10},
[9533] = {["xp"] = 1000, ["level"] = 25},
[9534] = {["xp"] = 2450, ["level"] = 30},
[9535] = {["xp"] = 1200, ["level"] = 30},
[9536] = {["xp"] = 3350, ["level"] = 32},
[9537] = {["xp"] = 780, ["level"] = 9},
[9538] = {["xp"] = 70, ["level"] = 8},
[9539] = {["xp"] = 85, ["level"] = 10},
[9540] = {["xp"] = 85, ["level"] = 10},
[9541] = {["xp"] = 85, ["level"] = 10},
[9542] = {["xp"] = 85, ["level"] = 10},
[9543] = {["xp"] = 1050, ["level"] = 63},
[9544] = {["xp"] = 1250, ["level"] = 10},
[9545] = {["xp"] = 12950, ["level"] = 63},
[9547] = {["xp"] = 610, ["level"] = nil},
[9548] = {["xp"] = 1250, ["level"] = 17},
[9549] = {["xp"] = 1250, ["level"] = 17},
[9550] = {["xp"] = 1150, ["level"] = 16},
[9551] = {["xp"] = 610, ["level"] = nil},
[9552] = {["xp"] = 2450, ["level"] = nil},
[9553] = {["xp"] = 610, ["level"] = nil},
[9554] = {["xp"] = 3050, ["level"] = nil},
[9555] = {["xp"] = 210, ["level"] = nil},
[9556] = {["xp"] = 7150, ["level"] = 60},
[9557] = {["xp"] = 1150, ["level"] = 16},
[9558] = {["xp"] = 1000, ["level"] = 62},
[9559] = {["xp"] = 210, ["level"] = 10},
[9560] = {["xp"] = 840, ["level"] = 10},
[9561] = {["xp"] = 1150, ["level"] = 16},
[9562] = {["xp"] = 840, ["level"] = 10},
[9563] = {["xp"] = 10050, ["level"] = 62},
[9564] = {["xp"] = 880, ["level"] = 11},
[9565] = {["xp"] = 630, ["level"] = 10},
[9566] = {["xp"] = 630, ["level"] = 10},
[9567] = {["xp"] = 980, ["level"] = 14},
[9568] = {["xp"] = 1050, ["level"] = 15},
[9569] = {["xp"] = 1350, ["level"] = 18},
[9570] = {["xp"] = 1150, ["level"] = 12},
[9571] = {["xp"] = 85, ["level"] = 10},
[9572] = {["xp"] = 20100, ["level"] = 62},
[9573] = {["xp"] = 880, ["level"] = 11},
[9574] = {["xp"] = 980, ["level"] = 14},
[9575] = {["xp"] = 20100, ["level"] = 62},
[9576] = {["xp"] = 910, ["level"] = 12},
[9577] = {["xp"] = 10, ["level"] = nil},
[9578] = {["xp"] = 1350, ["level"] = 18},
[9579] = {["xp"] = 1350, ["level"] = 18},
[9580] = {["xp"] = 1150, ["level"] = 16},
[9581] = {["xp"] = 880, ["level"] = 11},
[9582] = {["xp"] = 840, ["level"] = 10},
[9583] = {["xp"] = 12650, ["level"] = 70},
[9584] = {["xp"] = 980, ["level"] = 14},
[9585] = {["xp"] = 1350, ["level"] = 18},
[9586] = {["xp"] = 450, ["level"] = 5},
[9587] = {["xp"] = 20100, ["level"] = 62},
[9588] = {["xp"] = 20100, ["level"] = 62},
[9589] = {["xp"] = 20800, ["level"] = 63},
[9590] = {["xp"] = 20800, ["level"] = 63},
[9591] = {["xp"] = 840, ["level"] = nil},
[9592] = {["xp"] = 840, ["level"] = nil},
[9593] = {["xp"] = 840, ["level"] = nil},
[9594] = {["xp"] = 980, ["level"] = 14},
[9595] = {["xp"] = 880, ["level"] = 11},
[9598] = {["xp"] = 455, ["level"] = nil},
[9599] = {["xp"] = 910, ["level"] = 12},
[9600] = {["xp"] = 910, ["level"] = nil},
[9601] = {["xp"] = 730, ["level"] = 52},
[9602] = {["xp"] = 195, ["level"] = 9},
[9603] = {["xp"] = 420, ["level"] = 10},
[9604] = {["xp"] = 420, ["level"] = 10},
[9605] = {["xp"] = 420, ["level"] = 10},
[9606] = {["xp"] = 840, ["level"] = 10},
[9607] = {["xp"] = 20800, ["level"] = 63},
[9608] = {["xp"] = 20800, ["level"] = 63},
[9609] = {["xp"] = 920, ["level"] = 37},
[9610] = {["xp"] = 6300, ["level"] = 43},
[9612] = {["xp"] = 530, ["level"] = 8},
[9616] = {["xp"] = 630, ["level"] = 7},
[9617] = {["xp"] = 85, ["level"] = nil},
[9618] = {["xp"] = 840, ["level"] = 10},
[9619] = {["xp"] = 840, ["level"] = nil},
[9620] = {["xp"] = 980, ["level"] = 14},
[9621] = {["xp"] = 830, ["level"] = 21},
[9622] = {["xp"] = 660, ["level"] = 11},
[9623] = {["xp"] = 90, ["level"] = 11},
[9624] = {["xp"] = 910, ["level"] = 12},
[9625] = {["xp"] = 220, ["level"] = 11},
[9626] = {["xp"] = 1650, ["level"] = 21},
[9627] = {["xp"] = 2500, ["level"] = 21},
[9628] = {["xp"] = 980, ["level"] = 14},
[9629] = {["xp"] = 910, ["level"] = 13},
[9632] = {["xp"] = 800, ["level"] = 15},
[9633] = {["xp"] = 1050, ["level"] = 15},
[9634] = {["xp"] = 880, ["level"] = 11},
[9635] = {["xp"] = 9550, ["level"] = 60},
[9636] = {["xp"] = 9550, ["level"] = 60},
[9641] = {["xp"] = 1050, ["level"] = 15},
[9642] = {["xp"] = 0, ["level"] = nil},
[9643] = {["xp"] = 1050, ["level"] = 15},
[9646] = {["xp"] = 1250, ["level"] = 17},
[9647] = {["xp"] = 1150, ["level"] = 16},
[9648] = {["xp"] = 980, ["level"] = 14},
[9649] = {["xp"] = 1350, ["level"] = 18},
[9663] = {["xp"] = 910, ["level"] = 12},
[9664] = {["xp"] = 9550, ["level"] = 60},
[9665] = {["xp"] = 9550, ["level"] = 60},
[9666] = {["xp"] = 910, ["level"] = 13},
[9667] = {["xp"] = 1150, ["level"] = 13},
[9668] = {["xp"] = 90, ["level"] = 13},
[9669] = {["xp"] = 1450, ["level"] = 19},
[9670] = {["xp"] = 1450, ["level"] = 19},
[9672] = {["xp"] = 340, ["level"] = 18},
[9673] = {["xp"] = 420, ["level"] = nil},
[9674] = {["xp"] = 1350, ["level"] = 18},
[9675] = {["xp"] = 420, ["level"] = nil},
[9676] = {["xp"] = 40, ["level"] = 1},
[9677] = {["xp"] = 90, ["level"] = nil},
[9678] = {["xp"] = 910, ["level"] = nil},
[9681] = {["xp"] = 455, ["level"] = nil},
[9682] = {["xp"] = 1350, ["level"] = 18},
[9683] = {["xp"] = 1450, ["level"] = 19},
[9686] = {["xp"] = 1550, ["level"] = nil},
[9687] = {["xp"] = 1350, ["level"] = 18},
[9688] = {["xp"] = 1450, ["level"] = 19},
[9689] = {["xp"] = 1650, ["level"] = 21},
[9690] = {["xp"] = 390, ["level"] = nil},
[9691] = {["xp"] = 780, ["level"] = nil},
[9692] = {["xp"] = 2750, ["level"] = 23},
[9693] = {["xp"] = 105, ["level"] = 15},
[9694] = {["xp"] = 1050, ["level"] = 15},
[9695] = {["xp"] = 880, ["level"] = 16},
[9696] = {["xp"] = 115, ["level"] = 16},
[9697] = {["xp"] = 5250, ["level"] = 63},
[9698] = {["xp"] = 1150, ["level"] = 16},
[9699] = {["xp"] = 290, ["level"] = 16},
[9700] = {["xp"] = 1150, ["level"] = 16},
[9701] = {["xp"] = 10400, ["level"] = 63},
[9702] = {["xp"] = 10750, ["level"] = 64},
[9703] = {["xp"] = 1250, ["level"] = 17},
[9704] = {["xp"] = 110, ["level"] = 5},
[9705] = {["xp"] = 225, ["level"] = 5},
[9706] = {["xp"] = 1000, ["level"] = 18},
[9707] = {["xp"] = 920, ["level"] = 23},
[9708] = {["xp"] = 10400, ["level"] = 63},
[9709] = {["xp"] = 13350, ["level"] = 64},
[9711] = {["xp"] = 1350, ["level"] = 18},
[9715] = {["xp"] = 22000, ["level"] = 65},
[9716] = {["xp"] = 10400, ["level"] = 63},
[9717] = {["xp"] = 22000, ["level"] = 65},
[9718] = {["xp"] = 7800, ["level"] = 63},
[9719] = {["xp"] = 22000, ["level"] = 65},
[9720] = {["xp"] = 13350, ["level"] = 64},
[9721] = {["xp"] = 955, ["level"] = 60},
[9724] = {["xp"] = 5400, ["level"] = 64},
[9726] = {["xp"] = 10750, ["level"] = 64},
[9727] = {["xp"] = 0, ["level"] = nil},
[9728] = {["xp"] = 13350, ["level"] = 64},
[9730] = {["xp"] = 13350, ["level"] = 64},
[9731] = {["xp"] = 10400, ["level"] = 63},
[9732] = {["xp"] = 10400, ["level"] = 63},
[9733] = {["xp"] = 5400, ["level"] = 64},
[9734] = {["xp"] = 5250, ["level"] = 63},
[9735] = {["xp"] = 11900, ["level"] = 60},
[9737] = {["xp"] = 14300, ["level"] = 60},
[9738] = {["xp"] = 22000, ["level"] = 65},
[9739] = {["xp"] = 10400, ["level"] = 63},
[9740] = {["xp"] = 1350, ["level"] = 18},
[9741] = {["xp"] = 1000, ["level"] = 18},
[9742] = {["xp"] = 0, ["level"] = nil},
[9743] = {["xp"] = 10750, ["level"] = 64},
[9746] = {["xp"] = 1350, ["level"] = 18},
[9747] = {["xp"] = 10050, ["level"] = 62},
[9748] = {["xp"] = 1350, ["level"] = 18},
[9749] = {["xp"] = 1450, ["level"] = 19},
[9751] = {["xp"] = 340, ["level"] = 18},
[9752] = {["xp"] = 10400, ["level"] = 63},
[9753] = {["xp"] = 155, ["level"] = 20},
[9756] = {["xp"] = 1150, ["level"] = 20},
[9757] = {["xp"] = 85, ["level"] = nil},
[9758] = {["xp"] = 85, ["level"] = 10},
[9759] = {["xp"] = 2350, ["level"] = 20},
[9760] = {["xp"] = 390, ["level"] = 20},
[9761] = {["xp"] = 1950, ["level"] = 20},
[9763] = {["xp"] = 25300, ["level"] = 70},
[9764] = {["xp"] = 12650, ["level"] = 70},
[9765] = {["xp"] = 25300, ["level"] = 70},
[9766] = {["xp"] = 0, ["level"] = nil},
[9767] = {["xp"] = 12650, ["level"] = 70},
[9769] = {["xp"] = 10050, ["level"] = 62},
[9770] = {["xp"] = 10050, ["level"] = 62},
[9771] = {["xp"] = 10050, ["level"] = 62},
[9772] = {["xp"] = 10050, ["level"] = 62},
[9773] = {["xp"] = 9800, ["level"] = 61},
[9774] = {["xp"] = 10050, ["level"] = 62},
[9775] = {["xp"] = 2550, ["level"] = 62},
[9776] = {["xp"] = 2650, ["level"] = 64},
[9777] = {["xp"] = 10050, ["level"] = 62},
[9778] = {["xp"] = 1080, ["level"] = 64},
[9779] = {["xp"] = 1150, ["level"] = 16},
[9780] = {["xp"] = 10050, ["level"] = 62},
[9781] = {["xp"] = 10050, ["level"] = 62},
[9782] = {["xp"] = 10050, ["level"] = 62},
[9783] = {["xp"] = 10050, ["level"] = 62},
[9784] = {["xp"] = 0, ["level"] = nil},
[9785] = {["xp"] = 5400, ["level"] = 64},
[9786] = {["xp"] = 10050, ["level"] = 62},
[9787] = {["xp"] = 10050, ["level"] = 62},
[9788] = {["xp"] = 10050, ["level"] = 62},
[9789] = {["xp"] = 11300, ["level"] = 66},
[9790] = {["xp"] = 10050, ["level"] = 62},
[9791] = {["xp"] = 10050, ["level"] = 62},
[9792] = {["xp"] = 2650, ["level"] = 64},
[9793] = {["xp"] = 2550, ["level"] = 62},
[9794] = {["xp"] = 2700, ["level"] = 65},
[9795] = {["xp"] = 2700, ["level"] = 65},
[9796] = {["xp"] = 2550, ["level"] = 62},
[9797] = {["xp"] = 2650, ["level"] = 64},
[9798] = {["xp"] = 450, ["level"] = 5},
[9799] = {["xp"] = 250, ["level"] = 3},
[9800] = {["xp"] = 11000, ["level"] = 65},
[9801] = {["xp"] = 10050, ["level"] = 62},
[9802] = {["xp"] = 10400, ["level"] = 63},
[9803] = {["xp"] = 12600, ["level"] = 62},
[9804] = {["xp"] = 11000, ["level"] = 65},
[9805] = {["xp"] = 11000, ["level"] = 65},
[9806] = {["xp"] = 10750, ["level"] = 64},
[9808] = {["xp"] = 10750, ["level"] = 64},
[9810] = {["xp"] = 11300, ["level"] = 66},
[9814] = {["xp"] = 10750, ["level"] = 64},
[9815] = {["xp"] = 11300, ["level"] = 66},
[9816] = {["xp"] = 10750, ["level"] = 64},
[9817] = {["xp"] = 12950, ["level"] = 63},
[9819] = {["xp"] = 11000, ["level"] = 65},
[9820] = {["xp"] = 13350, ["level"] = 64},
[9821] = {["xp"] = 11300, ["level"] = 66},
[9822] = {["xp"] = 10750, ["level"] = 64},
[9823] = {["xp"] = 13350, ["level"] = 64},
[9824] = {["xp"] = 12650, ["level"] = 70},
[9825] = {["xp"] = 12650, ["level"] = 70},
[9826] = {["xp"] = 6250, ["level"] = 70},
[9827] = {["xp"] = 10050, ["level"] = 62},
[9828] = {["xp"] = 10050, ["level"] = 62},
[9829] = {["xp"] = 6250, ["level"] = 70},
[9830] = {["xp"] = 10750, ["level"] = 64},
[9831] = {["xp"] = 25300, ["level"] = 70},
[9832] = {["xp"] = 25300, ["level"] = 70},
[9833] = {["xp"] = 10750, ["level"] = 64},
[9834] = {["xp"] = 10750, ["level"] = 64},
[9835] = {["xp"] = 10750, ["level"] = 64},
[9836] = {["xp"] = 25300, ["level"] = 70},
[9837] = {["xp"] = 19000, ["level"] = 70},
[9838] = {["xp"] = 6250, ["level"] = 70},
[9839] = {["xp"] = 13350, ["level"] = 64},
[9840] = {["xp"] = 12650, ["level"] = 70},
[9841] = {["xp"] = 10750, ["level"] = 64},
[9842] = {["xp"] = 10750, ["level"] = 64},
[9845] = {["xp"] = 10750, ["level"] = 64},
[9846] = {["xp"] = 10050, ["level"] = 62},
[9847] = {["xp"] = 10750, ["level"] = 64},
[9848] = {["xp"] = 10750, ["level"] = 64},
[9849] = {["xp"] = 17450, ["level"] = 67},
[9850] = {["xp"] = 11650, ["level"] = 67},
[9851] = {["xp"] = 14600, ["level"] = 67},
[9852] = {["xp"] = 17950, ["level"] = 68},
[9853] = {["xp"] = 17450, ["level"] = 67},
[9854] = {["xp"] = 11000, ["level"] = 65},
[9855] = {["xp"] = 11650, ["level"] = 67},
[9856] = {["xp"] = 14600, ["level"] = 67},
[9857] = {["xp"] = 11000, ["level"] = 65},
[9858] = {["xp"] = 11300, ["level"] = 66},
[9859] = {["xp"] = 14150, ["level"] = 66},
[9861] = {["xp"] = 11650, ["level"] = 67},
[9862] = {["xp"] = 11650, ["level"] = 67},
[9863] = {["xp"] = 11300, ["level"] = 66},
[9864] = {["xp"] = 2900, ["level"] = 67},
[9865] = {["xp"] = 11650, ["level"] = 67},
[9866] = {["xp"] = 5800, ["level"] = 67},
[9867] = {["xp"] = 11650, ["level"] = 67},
[9868] = {["xp"] = 14600, ["level"] = 67},
[9869] = {["xp"] = 2850, ["level"] = 66},
[9870] = {["xp"] = 2850, ["level"] = 66},
[9871] = {["xp"] = 11650, ["level"] = 67},
[9872] = {["xp"] = 11650, ["level"] = 67},
[9873] = {["xp"] = 11650, ["level"] = 67},
[9874] = {["xp"] = 11650, ["level"] = 67},
[9876] = {["xp"] = 1100, ["level"] = 65},
[9877] = {["xp"] = 390, ["level"] = 20},
[9878] = {["xp"] = 11650, ["level"] = 67},
[9879] = {["xp"] = 14600, ["level"] = 67},
[9880] = {["xp"] = 9550, ["level"] = 60},
[9881] = {["xp"] = 9550, ["level"] = 60},
[9882] = {["xp"] = 11300, ["level"] = 66},
[9883] = {["xp"] = 0, ["level"] = nil},
[9888] = {["xp"] = 2700, ["level"] = 65},
[9889] = {["xp"] = 11000, ["level"] = 65},
[9890] = {["xp"] = 1100, ["level"] = 65},
[9891] = {["xp"] = 2700, ["level"] = 65},
[9893] = {["xp"] = 11650, ["level"] = 67},
[9894] = {["xp"] = 10050, ["level"] = 62},
[9895] = {["xp"] = 12600, ["level"] = 62},
[9896] = {["xp"] = 10050, ["level"] = 62},
[9897] = {["xp"] = 11000, ["level"] = 65},
[9898] = {["xp"] = 10050, ["level"] = 62},
[9899] = {["xp"] = 10050, ["level"] = 62},
[9900] = {["xp"] = 11650, ["level"] = 67},
[9901] = {["xp"] = 10050, ["level"] = 62},
[9902] = {["xp"] = 10750, ["level"] = 64},
[9903] = {["xp"] = 10750, ["level"] = 64},
[9904] = {["xp"] = 10750, ["level"] = 64},
[9905] = {["xp"] = 10750, ["level"] = 64},
[9906] = {["xp"] = 11000, ["level"] = 65},
[9907] = {["xp"] = 14150, ["level"] = 66},
[9910] = {["xp"] = 11000, ["level"] = 65},
[9911] = {["xp"] = 10750, ["level"] = 64},
[9912] = {["xp"] = 1000, ["level"] = 62},
[9913] = {["xp"] = 1130, ["level"] = 66},
[9914] = {["xp"] = 11300, ["level"] = 66},
[9915] = {["xp"] = 0, ["level"] = nil},
[9916] = {["xp"] = 11300, ["level"] = 66},
[9917] = {["xp"] = 11000, ["level"] = 65},
[9918] = {["xp"] = 11000, ["level"] = 65},
[9919] = {["xp"] = 10750, ["level"] = 64},
[9921] = {["xp"] = 11000, ["level"] = 65},
[9922] = {["xp"] = 14150, ["level"] = 66},
[9923] = {["xp"] = 11000, ["level"] = 65},
[9924] = {["xp"] = 11300, ["level"] = 66},
[9925] = {["xp"] = 11300, ["level"] = 66},
[9927] = {["xp"] = 11300, ["level"] = 66},
[9928] = {["xp"] = 11300, ["level"] = 66},
[9931] = {["xp"] = 11300, ["level"] = 66},
[9932] = {["xp"] = 11300, ["level"] = 66},
[9933] = {["xp"] = 14150, ["level"] = 66},
[9934] = {["xp"] = 14150, ["level"] = 66},
[9935] = {["xp"] = 11300, ["level"] = 66},
[9936] = {["xp"] = 11300, ["level"] = 66},
[9937] = {["xp"] = 17450, ["level"] = 67},
[9938] = {["xp"] = 17450, ["level"] = 67},
[9939] = {["xp"] = 11300, ["level"] = 66},
[9940] = {["xp"] = 11300, ["level"] = 66},
[9944] = {["xp"] = 1160, ["level"] = 67},
[9945] = {["xp"] = 11650, ["level"] = 67},
[9946] = {["xp"] = 14600, ["level"] = 67},
[9948] = {["xp"] = 11650, ["level"] = 67},
[9951] = {["xp"] = 13350, ["level"] = 64},
[9954] = {["xp"] = 11650, ["level"] = 67},
[9955] = {["xp"] = 14600, ["level"] = 67},
[9956] = {["xp"] = 11650, ["level"] = 67},
[9957] = {["xp"] = 2600, ["level"] = 63},
[9960] = {["xp"] = 2600, ["level"] = 63},
[9961] = {["xp"] = 2600, ["level"] = 63},
[9962] = {["xp"] = 17450, ["level"] = 67},
[9967] = {["xp"] = 17450, ["level"] = 67},
[9968] = {["xp"] = 10400, ["level"] = 63},
[9970] = {["xp"] = 17450, ["level"] = 67},
[9971] = {["xp"] = 10400, ["level"] = 63},
[9972] = {["xp"] = 17450, ["level"] = 67},
[9973] = {["xp"] = 17450, ["level"] = 67},
[9977] = {["xp"] = 17950, ["level"] = 68},
[9978] = {["xp"] = 10400, ["level"] = 63},
[9979] = {["xp"] = 5250, ["level"] = 63},
[9982] = {["xp"] = 1200, ["level"] = 68},
[9983] = {["xp"] = 1200, ["level"] = 68},
[9984] = {["xp"] = 11000, ["level"] = 65},
[9985] = {["xp"] = 11000, ["level"] = 65},
[9986] = {["xp"] = 10750, ["level"] = 64},
[9987] = {["xp"] = 10750, ["level"] = 64},
[9988] = {["xp"] = 11000, ["level"] = 65},
[9989] = {["xp"] = 11000, ["level"] = 65},
[9990] = {["xp"] = 10750, ["level"] = 64},
[9991] = {["xp"] = 3050, ["level"] = 68},
[9992] = {["xp"] = 10400, ["level"] = 63},
[9993] = {["xp"] = 10400, ["level"] = 63},
[9994] = {["xp"] = 5400, ["level"] = 64},
[9995] = {["xp"] = 5400, ["level"] = 64},
[9996] = {["xp"] = 10750, ["level"] = 64},
[9997] = {["xp"] = 10750, ["level"] = 64},
[9998] = {["xp"] = 10400, ["level"] = 63},
[9999] = {["xp"] = 12000, ["level"] = 68},
[10000] = {["xp"] = 10400, ["level"] = 63},
[10001] = {["xp"] = 12000, ["level"] = 68},
[10002] = {["xp"] = 10750, ["level"] = 64},
[10003] = {["xp"] = 10750, ["level"] = 64},
[10004] = {["xp"] = 12000, ["level"] = 68},
[10005] = {["xp"] = 15550, ["level"] = 63},
[10006] = {["xp"] = 15550, ["level"] = 63},
[10007] = {["xp"] = 10750, ["level"] = 64},
[10008] = {["xp"] = 10750, ["level"] = 64},
[10009] = {["xp"] = 12000, ["level"] = 68},
[10010] = {["xp"] = 6000, ["level"] = 68},
[10011] = {["xp"] = 17950, ["level"] = 68},
[10012] = {["xp"] = 10750, ["level"] = 64},
[10013] = {["xp"] = 10750, ["level"] = 64},
[10014] = {["xp"] = 10750, ["level"] = 64},
[10015] = {["xp"] = 10750, ["level"] = 64},
[10016] = {["xp"] = 10750, ["level"] = 64},
[10017] = {["xp"] = 10750, ["level"] = 64},
[10018] = {["xp"] = 10750, ["level"] = 64},
[10019] = {["xp"] = 0, ["level"] = nil},
[10020] = {["xp"] = 13350, ["level"] = 64},
[10021] = {["xp"] = 10750, ["level"] = 64},
[10022] = {["xp"] = 13350, ["level"] = 64},
[10023] = {["xp"] = 13350, ["level"] = 64},
[10024] = {["xp"] = 11000, ["level"] = 65},
[10025] = {["xp"] = 0, ["level"] = nil},
[10026] = {["xp"] = 10750, ["level"] = 64},
[10027] = {["xp"] = 10750, ["level"] = 64},
[10028] = {["xp"] = 10400, ["level"] = 63},
[10029] = {["xp"] = 5500, ["level"] = 65},
[10030] = {["xp"] = 11000, ["level"] = 65},
[10031] = {["xp"] = 11000, ["level"] = 65},
[10033] = {["xp"] = 11000, ["level"] = 65},
[10034] = {["xp"] = 11000, ["level"] = 65},
[10035] = {["xp"] = 13750, ["level"] = 65},
[10036] = {["xp"] = 13750, ["level"] = 65},
[10037] = {["xp"] = 10750, ["level"] = 64},
[10038] = {["xp"] = 2650, ["level"] = 64},
[10039] = {["xp"] = 2650, ["level"] = 64},
[10040] = {["xp"] = 11000, ["level"] = 65},
[10041] = {["xp"] = 11000, ["level"] = 65},
[10042] = {["xp"] = 13750, ["level"] = 65},
[10043] = {["xp"] = 13750, ["level"] = 65},
[10044] = {["xp"] = 1200, ["level"] = 68},
[10045] = {["xp"] = 14950, ["level"] = 68},
[10046] = {["xp"] = 4750, ["level"] = 60},
[10047] = {["xp"] = 9800, ["level"] = 61},
[10050] = {["xp"] = 9800, ["level"] = 61},
[10051] = {["xp"] = 13350, ["level"] = 64},
[10052] = {["xp"] = 13350, ["level"] = 64},
[10055] = {["xp"] = 9800, ["level"] = 61},
[10057] = {["xp"] = 9800, ["level"] = 61},
[10058] = {["xp"] = 9800, ["level"] = 61},
[10061] = {["xp"] = 9800, ["level"] = 61},
[10063] = {["xp"] = 315, ["level"] = 17},
[10064] = {["xp"] = 135, ["level"] = 18},
[10065] = {["xp"] = 1250, ["level"] = 17},
[10066] = {["xp"] = 1700, ["level"] = 18},
[10067] = {["xp"] = 1450, ["level"] = 19},
[10068] = {["xp"] = 15, ["level"] = 2},
[10069] = {["xp"] = 15, ["level"] = 2},
[10070] = {["xp"] = 15, ["level"] = 2},
[10071] = {["xp"] = 15, ["level"] = 2},
[10072] = {["xp"] = 15, ["level"] = 2},
[10073] = {["xp"] = 15, ["level"] = 2},
[10074] = {["xp"] = 11650, ["level"] = 67},
[10075] = {["xp"] = 8750, ["level"] = 67},
[10076] = {["xp"] = 11650, ["level"] = 67},
[10077] = {["xp"] = 8750, ["level"] = 67},
[10078] = {["xp"] = 9800, ["level"] = 61},
[10079] = {["xp"] = 9800, ["level"] = 61},
[10081] = {["xp"] = 1200, ["level"] = 68},
[10082] = {["xp"] = 12000, ["level"] = 68},
[10085] = {["xp"] = 12000, ["level"] = 68},
[10086] = {["xp"] = 9800, ["level"] = 61},
[10087] = {["xp"] = 9800, ["level"] = 61},
[10091] = {["xp"] = 25300, ["level"] = 70},
[10093] = {["xp"] = 2600, ["level"] = 63},
[10094] = {["xp"] = 25300, ["level"] = 70},
[10095] = {["xp"] = 25300, ["level"] = 70},
[10096] = {["xp"] = 10050, ["level"] = 62},
[10097] = {["xp"] = 24600, ["level"] = 69},
[10098] = {["xp"] = 24600, ["level"] = 69},
[10099] = {["xp"] = 9800, ["level"] = 61},
[10101] = {["xp"] = 12000, ["level"] = 68},
[10102] = {["xp"] = 12000, ["level"] = 68},
[10103] = {["xp"] = 2400, ["level"] = 61},
[10104] = {["xp"] = 2550, ["level"] = 62},
[10105] = {["xp"] = 2550, ["level"] = 62},
[10106] = {["xp"] = 7150, ["level"] = 60},
[10107] = {["xp"] = 8550, ["level"] = 66},
[10108] = {["xp"] = 8550, ["level"] = 66},
[10109] = {["xp"] = 11300, ["level"] = 66},
[10110] = {["xp"] = 7150, ["level"] = 60},
[10111] = {["xp"] = 14150, ["level"] = 66},
[10112] = {["xp"] = 10750, ["level"] = 64},
[10113] = {["xp"] = 1100, ["level"] = 65},
[10114] = {["xp"] = 1100, ["level"] = 65},
[10115] = {["xp"] = 10750, ["level"] = 64},
[10116] = {["xp"] = 10750, ["level"] = 64},
[10117] = {["xp"] = 10750, ["level"] = 64},
[10118] = {["xp"] = 10750, ["level"] = 64},
[10119] = {["xp"] = 2400, ["level"] = 61},
[10120] = {["xp"] = 2400, ["level"] = 61},
[10121] = {["xp"] = 970, ["level"] = 61},
[10122] = {["xp"] = 9800, ["level"] = 61},
[10123] = {["xp"] = 9800, ["level"] = 61},
[10124] = {["xp"] = 970, ["level"] = 61},
[10125] = {["xp"] = 10050, ["level"] = 62},
[10127] = {["xp"] = 10050, ["level"] = 62},
[10129] = {["xp"] = 12600, ["level"] = 62},
[10130] = {["xp"] = 9800, ["level"] = 61},
[10132] = {["xp"] = 12950, ["level"] = 63},
[10134] = {["xp"] = 5250, ["level"] = 63},
[10136] = {["xp"] = 15550, ["level"] = 63},
[10140] = {["xp"] = 2400, ["level"] = 61},
[10141] = {["xp"] = 970, ["level"] = 61},
[10142] = {["xp"] = 9800, ["level"] = 61},
[10143] = {["xp"] = 970, ["level"] = 61},
[10144] = {["xp"] = 10050, ["level"] = 62},
[10145] = {["xp"] = 10050, ["level"] = 62},
[10146] = {["xp"] = 12600, ["level"] = 62},
[10150] = {["xp"] = 9800, ["level"] = 61},
[10152] = {["xp"] = 9800, ["level"] = 61},
[10159] = {["xp"] = 10400, ["level"] = 63},
[10160] = {["xp"] = 2400, ["level"] = 61},
[10161] = {["xp"] = 9800, ["level"] = 61},
[10162] = {["xp"] = 10050, ["level"] = 62},
[10163] = {["xp"] = 10050, ["level"] = 62},
[10164] = {["xp"] = 23300, ["level"] = 67},
[10165] = {["xp"] = 22600, ["level"] = 66},
[10166] = {["xp"] = 840, ["level"] = 10},
[10167] = {["xp"] = 24000, ["level"] = 68},
[10168] = {["xp"] = 14950, ["level"] = 68},
[10169] = {["xp"] = 5500, ["level"] = 65},
[10170] = {["xp"] = 1200, ["level"] = 68},
[10171] = {["xp"] = 1200, ["level"] = 68},
[10172] = {["xp"] = 3050, ["level"] = 68},
[10173] = {["xp"] = 12000, ["level"] = 68},
[10174] = {["xp"] = 3050, ["level"] = 68},
[10175] = {["xp"] = 12000, ["level"] = 68},
[10176] = {["xp"] = 12000, ["level"] = 68},
[10177] = {["xp"] = 9500, ["level"] = 70},
[10178] = {["xp"] = 25300, ["level"] = 70},
[10179] = {["xp"] = 3050, ["level"] = 68},
[10180] = {["xp"] = 3100, ["level"] = 69},
[10182] = {["xp"] = 12000, ["level"] = 68},
[10183] = {["xp"] = 3050, ["level"] = 68},
[10184] = {["xp"] = 12000, ["level"] = 68},
[10185] = {["xp"] = 12000, ["level"] = 68},
[10186] = {["xp"] = 12000, ["level"] = 68},
[10187] = {["xp"] = 3100, ["level"] = 69},
[10188] = {["xp"] = 12300, ["level"] = 69},
[10189] = {["xp"] = 12000, ["level"] = 68},
[10190] = {["xp"] = 12000, ["level"] = 68},
[10191] = {["xp"] = 14950, ["level"] = 68},
[10192] = {["xp"] = 12300, ["level"] = 69},
[10193] = {["xp"] = 12000, ["level"] = 68},
[10194] = {["xp"] = 1200, ["level"] = 68},
[10197] = {["xp"] = 12000, ["level"] = 68},
[10198] = {["xp"] = 9000, ["level"] = 68},
[10199] = {["xp"] = 12000, ["level"] = 68},
[10200] = {["xp"] = 1200, ["level"] = 68},
[10201] = {["xp"] = 8250, ["level"] = 65},
[10202] = {["xp"] = 6250, ["level"] = 70},
[10203] = {["xp"] = 12300, ["level"] = 69},
[10204] = {["xp"] = 12000, ["level"] = 68},
[10205] = {["xp"] = 12300, ["level"] = 69},
[10206] = {["xp"] = 12000, ["level"] = 68},
[10207] = {["xp"] = 970, ["level"] = 61},
[10208] = {["xp"] = 10050, ["level"] = 62},
[10209] = {["xp"] = 12300, ["level"] = 69},
[10210] = {["xp"] = 5500, ["level"] = 65},
[10211] = {["xp"] = 5500, ["level"] = 65},
[10212] = {["xp"] = 17950, ["level"] = 68},
[10213] = {["xp"] = 2400, ["level"] = 61},
[10214] = {["xp"] = 9800, ["level"] = 61},
[10216] = {["xp"] = 22600, ["level"] = 66},
[10218] = {["xp"] = 22600, ["level"] = 66},
[10220] = {["xp"] = 9800, ["level"] = 61},
[10221] = {["xp"] = 12000, ["level"] = 68},
[10222] = {["xp"] = 12300, ["level"] = 69},
[10223] = {["xp"] = 12300, ["level"] = 69},
[10224] = {["xp"] = 12000, ["level"] = 68},
[10225] = {["xp"] = 1200, ["level"] = 68},
[10226] = {["xp"] = 12000, ["level"] = 68},
[10227] = {["xp"] = 1160, ["level"] = 67},
[10228] = {["xp"] = 2900, ["level"] = 67},
[10229] = {["xp"] = 970, ["level"] = 61},
[10230] = {["xp"] = 9800, ["level"] = 61},
[10231] = {["xp"] = 11650, ["level"] = 67},
[10232] = {["xp"] = 12300, ["level"] = 69},
[10233] = {["xp"] = 12300, ["level"] = 69},
[10234] = {["xp"] = 12300, ["level"] = 69},
[10235] = {["xp"] = 12300, ["level"] = 69},
[10236] = {["xp"] = 9800, ["level"] = 61},
[10237] = {["xp"] = 3100, ["level"] = 69},
[10238] = {["xp"] = 9800, ["level"] = 61},
[10239] = {["xp"] = 12300, ["level"] = 69},
[10240] = {["xp"] = 12300, ["level"] = 69},
[10241] = {["xp"] = 12000, ["level"] = 68},
[10242] = {["xp"] = 2380, ["level"] = 60},
[10243] = {["xp"] = 12000, ["level"] = 68},
[10244] = {["xp"] = 12300, ["level"] = 69},
[10245] = {["xp"] = 12000, ["level"] = 68},
[10246] = {["xp"] = 12000, ["level"] = 68},
[10247] = {["xp"] = 1230, ["level"] = 69},
[10248] = {["xp"] = 12300, ["level"] = 69},
[10249] = {["xp"] = 18450, ["level"] = 69},
[10250] = {["xp"] = 9800, ["level"] = 61},
[10251] = {["xp"] = 5800, ["level"] = 67},
[10252] = {["xp"] = 11650, ["level"] = 67},
[10253] = {["xp"] = 17450, ["level"] = 67},
[10254] = {["xp"] = 955, ["level"] = 60},
[10255] = {["xp"] = 10400, ["level"] = 63},
[10256] = {["xp"] = 12300, ["level"] = 69},
[10257] = {["xp"] = 25300, ["level"] = 70},
[10258] = {["xp"] = 9800, ["level"] = 61},
[10259] = {["xp"] = 9550, ["level"] = 60},
[10260] = {["xp"] = 3050, ["level"] = 68},
[10261] = {["xp"] = 12000, ["level"] = 68},
[10262] = {["xp"] = 12000, ["level"] = 68},
[10263] = {["xp"] = 1200, ["level"] = 68},
[10264] = {["xp"] = 1200, ["level"] = 68},
[10265] = {["xp"] = 12300, ["level"] = 69},
[10266] = {["xp"] = 3100, ["level"] = 69},
[10267] = {["xp"] = 12300, ["level"] = 69},
[10268] = {["xp"] = 6150, ["level"] = 69},
[10269] = {["xp"] = 12300, ["level"] = 69},
[10270] = {["xp"] = 12650, ["level"] = 70},
[10271] = {["xp"] = 12650, ["level"] = 70},
[10272] = {["xp"] = 12650, ["level"] = 70},
[10273] = {["xp"] = 12650, ["level"] = 70},
[10274] = {["xp"] = 15800, ["level"] = 70},
[10275] = {["xp"] = 12650, ["level"] = 70},
[10276] = {["xp"] = 12650, ["level"] = 70},
[10277] = {["xp"] = 1200, ["level"] = 68},
[10278] = {["xp"] = 9800, ["level"] = 61},
[10279] = {["xp"] = 1130, ["level"] = 66},
[10280] = {["xp"] = 19000, ["level"] = 70},
[10281] = {["xp"] = 3150, ["level"] = 70},
[10282] = {["xp"] = 1200, ["level"] = 68},
[10283] = {["xp"] = 24000, ["level"] = 68},
[10284] = {["xp"] = 24000, ["level"] = 68},
[10285] = {["xp"] = 1200, ["level"] = 68},
[10286] = {["xp"] = 7600, ["level"] = 62},
[10287] = {["xp"] = 5000, ["level"] = 62},
[10288] = {["xp"] = 2400, ["level"] = 61},
[10289] = {["xp"] = 2400, ["level"] = 61},
[10290] = {["xp"] = 12650, ["level"] = 70},
[10291] = {["xp"] = 4750, ["level"] = 60},
[10292] = {["xp"] = 12300, ["level"] = 69},
[10293] = {["xp"] = 12300, ["level"] = 69},
[10294] = {["xp"] = 9800, ["level"] = 61},
[10295] = {["xp"] = 10400, ["level"] = 63},
[10296] = {["xp"] = 1250, ["level"] = 70},
[10297] = {["xp"] = 25300, ["level"] = 70},
[10298] = {["xp"] = 1250, ["level"] = 70},
[10299] = {["xp"] = 12000, ["level"] = 68},
[10300] = {["xp"] = 12300, ["level"] = 69},
[10301] = {["xp"] = 12300, ["level"] = 69},
[10302] = {["xp"] = 170, ["level"] = 2},
[10303] = {["xp"] = 355, ["level"] = 4},
[10304] = {["xp"] = 180, ["level"] = 4},
[10305] = {["xp"] = 12300, ["level"] = 69},
[10306] = {["xp"] = 12300, ["level"] = 69},
[10307] = {["xp"] = 12300, ["level"] = 69},
[10308] = {["xp"] = 0, ["level"] = nil},
[10309] = {["xp"] = 12000, ["level"] = 68},
[10310] = {["xp"] = 15800, ["level"] = 70},
[10311] = {["xp"] = 1250, ["level"] = 70},
[10312] = {["xp"] = 12300, ["level"] = 69},
[10313] = {["xp"] = 12000, ["level"] = 68},
[10314] = {["xp"] = 12300, ["level"] = 69},
[10315] = {["xp"] = 12650, ["level"] = 70},
[10316] = {["xp"] = 12300, ["level"] = 69},
[10317] = {["xp"] = 12650, ["level"] = 70},
[10318] = {["xp"] = 12650, ["level"] = 70},
[10319] = {["xp"] = 12300, ["level"] = 69},
[10320] = {["xp"] = 15400, ["level"] = 69},
[10321] = {["xp"] = 12300, ["level"] = 69},
[10322] = {["xp"] = 12650, ["level"] = 70},
[10323] = {["xp"] = 12650, ["level"] = 70},
[10324] = {["xp"] = 530, ["level"] = 8},
[10325] = {["xp"] = 11000, ["level"] = 65},
[10327] = {["xp"] = 0, ["level"] = nil},
[10328] = {["xp"] = 12650, ["level"] = 70},
[10329] = {["xp"] = 12000, ["level"] = 68},
[10330] = {["xp"] = 12300, ["level"] = 69},
[10331] = {["xp"] = 12300, ["level"] = 69},
[10332] = {["xp"] = 12300, ["level"] = 69},
[10333] = {["xp"] = 1230, ["level"] = 69},
[10334] = {["xp"] = 9250, ["level"] = 69},
[10335] = {["xp"] = 12650, ["level"] = 70},
[10336] = {["xp"] = 12650, ["level"] = 70},
[10337] = {["xp"] = 12300, ["level"] = 69},
[10338] = {["xp"] = 12650, ["level"] = 70},
[10339] = {["xp"] = 12650, ["level"] = 70},
[10340] = {["xp"] = 955, ["level"] = 60},
[10341] = {["xp"] = 12650, ["level"] = 70},
[10342] = {["xp"] = 12000, ["level"] = 68},
[10343] = {["xp"] = 3100, ["level"] = 69},
[10344] = {["xp"] = 955, ["level"] = 60},
[10345] = {["xp"] = 12650, ["level"] = 70},
[10348] = {["xp"] = 12300, ["level"] = 69},
[10349] = {["xp"] = 1050, ["level"] = 63},
[10350] = {["xp"] = 420, ["level"] = 10},
[10351] = {["xp"] = 12950, ["level"] = 63},
[10352] = {["xp"] = 955, ["level"] = 60},
[10353] = {["xp"] = 12650, ["level"] = 70},
[10354] = {["xp"] = 2380, ["level"] = 60},
[10355] = {["xp"] = 10050, ["level"] = 62},
[10356] = {["xp"] = 4750, ["level"] = 60},
[10357] = {["xp"] = 9550, ["level"] = 60},
[10358] = {["xp"] = 0, ["level"] = nil},
[10359] = {["xp"] = 955, ["level"] = 60},
[10360] = {["xp"] = 2380, ["level"] = 60},
[10361] = {["xp"] = 4750, ["level"] = 60},
[10362] = {["xp"] = 9550, ["level"] = 60},
[10363] = {["xp"] = 0, ["level"] = nil},
[10364] = {["xp"] = 85, ["level"] = 10},
[10365] = {["xp"] = 12650, ["level"] = 70},
[10366] = {["xp"] = 90, ["level"] = nil},
[10367] = {["xp"] = 10050, ["level"] = 62},
[10368] = {["xp"] = 10050, ["level"] = 62},
[10369] = {["xp"] = 12600, ["level"] = 62},
[10371] = {["xp"] = 155, ["level"] = 20},
[10372] = {["xp"] = 115, ["level"] = 16},
[10373] = {["xp"] = 680, ["level"] = 50},
[10374] = {["xp"] = 680, ["level"] = 50},
[10380] = {["xp"] = 12650, ["level"] = 70},
[10381] = {["xp"] = 9500, ["level"] = 70},
[10382] = {["xp"] = 970, ["level"] = 61},
[10384] = {["xp"] = 6250, ["level"] = 70},
[10385] = {["xp"] = 12650, ["level"] = 70},
[10386] = {["xp"] = 970, ["level"] = 61},
[10387] = {["xp"] = 970, ["level"] = 61},
[10388] = {["xp"] = 970, ["level"] = 61},
[10389] = {["xp"] = 9800, ["level"] = 61},
[10390] = {["xp"] = 9800, ["level"] = 61},
[10391] = {["xp"] = 9800, ["level"] = 61},
[10392] = {["xp"] = 9800, ["level"] = 61},
[10393] = {["xp"] = 4850, ["level"] = 61},
[10394] = {["xp"] = 9800, ["level"] = 61},
[10395] = {["xp"] = 4850, ["level"] = 61},
[10396] = {["xp"] = 9800, ["level"] = 61},
[10397] = {["xp"] = 9800, ["level"] = 61},
[10399] = {["xp"] = 9800, ["level"] = 61},
[10400] = {["xp"] = 15550, ["level"] = 63},
[10403] = {["xp"] = 2550, ["level"] = 62},
[10404] = {["xp"] = 15800, ["level"] = 70},
[10405] = {["xp"] = 12650, ["level"] = 70},
[10406] = {["xp"] = 12650, ["level"] = 70},
[10407] = {["xp"] = 15800, ["level"] = 70},
[10408] = {["xp"] = 19000, ["level"] = 70},
[10409] = {["xp"] = 19000, ["level"] = 70},
[10410] = {["xp"] = 9500, ["level"] = 70},
[10411] = {["xp"] = 12650, ["level"] = 70},
[10412] = {["xp"] = 11000, ["level"] = 65},
[10413] = {["xp"] = 15800, ["level"] = 70},
[10416] = {["xp"] = 15800, ["level"] = 70},
[10417] = {["xp"] = 6000, ["level"] = 68},
[10418] = {["xp"] = 12000, ["level"] = 68},
[10419] = {["xp"] = 0, ["level"] = nil},
[10420] = {["xp"] = 15800, ["level"] = 70},
[10421] = {["xp"] = 0, ["level"] = nil},
[10422] = {["xp"] = 12650, ["level"] = 70},
[10423] = {["xp"] = 1230, ["level"] = 69},
[10424] = {["xp"] = 9250, ["level"] = 69},
[10425] = {["xp"] = 12650, ["level"] = 70},
[10426] = {["xp"] = 12300, ["level"] = 69},
[10427] = {["xp"] = 15400, ["level"] = 69},
[10428] = {["xp"] = 420, ["level"] = 10},
[10429] = {["xp"] = 12300, ["level"] = 69},
[10430] = {["xp"] = 1230, ["level"] = 69},
[10431] = {["xp"] = 3150, ["level"] = 70},
[10432] = {["xp"] = 12650, ["level"] = 70},
[10433] = {["xp"] = 12300, ["level"] = 69},
[10434] = {["xp"] = 1230, ["level"] = 69},
[10435] = {["xp"] = 12300, ["level"] = 69},
[10436] = {["xp"] = 12300, ["level"] = 69},
[10437] = {["xp"] = 12650, ["level"] = 70},
[10438] = {["xp"] = 12650, ["level"] = 70},
[10439] = {["xp"] = 19000, ["level"] = 70},
[10440] = {["xp"] = 3100, ["level"] = 69},
[10441] = {["xp"] = 1230, ["level"] = 69},
[10442] = {["xp"] = 970, ["level"] = 61},
[10443] = {["xp"] = 970, ["level"] = 61},
[10444] = {["xp"] = 1080, ["level"] = 64},
[10445] = {["xp"] = 19000, ["level"] = 70},
[10446] = {["xp"] = 13750, ["level"] = 65},
[10447] = {["xp"] = 13750, ["level"] = 65},
[10448] = {["xp"] = 1080, ["level"] = 64},
[10449] = {["xp"] = 2380, ["level"] = 60},
[10450] = {["xp"] = 9550, ["level"] = 60},
[10451] = {["xp"] = 15800, ["level"] = 70},
[10455] = {["xp"] = 11300, ["level"] = 66},
[10456] = {["xp"] = 11300, ["level"] = 66},
[10457] = {["xp"] = 11300, ["level"] = 66},
[10458] = {["xp"] = 12650, ["level"] = 70},
[10459] = {["xp"] = 12650, ["level"] = 70},
[10476] = {["xp"] = 11650, ["level"] = 67},
[10477] = {["xp"] = 0, ["level"] = nil},
[10479] = {["xp"] = 11650, ["level"] = 67},
[10480] = {["xp"] = 12650, ["level"] = 70},
[10481] = {["xp"] = 12650, ["level"] = 70},
[10482] = {["xp"] = 9020, ["level"] = 58},
[10483] = {["xp"] = 2250, ["level"] = 58},
[10484] = {["xp"] = 9020, ["level"] = 58},
[10485] = {["xp"] = 9550, ["level"] = 60},
[10486] = {["xp"] = 11300, ["level"] = 66},
[10487] = {["xp"] = 11300, ["level"] = 66},
[10488] = {["xp"] = 11300, ["level"] = 66},
[10489] = {["xp"] = 11300, ["level"] = 66},
[10490] = {["xp"] = 390, ["level"] = nil},
[10491] = {["xp"] = 610, ["level"] = nil},
[10492] = {["xp"] = 9550, ["level"] = 60},
[10493] = {["xp"] = 9550, ["level"] = 60},
[10500] = {["xp"] = 955, ["level"] = 60},
[10501] = {["xp"] = 955, ["level"] = 60},
[10502] = {["xp"] = 11300, ["level"] = 66},
[10503] = {["xp"] = 14150, ["level"] = 66},
[10504] = {["xp"] = 11300, ["level"] = 66},
[10505] = {["xp"] = 11300, ["level"] = 66},
[10506] = {["xp"] = 11300, ["level"] = 66},
[10507] = {["xp"] = 19000, ["level"] = 70},
[10508] = {["xp"] = 15800, ["level"] = 70},
[10509] = {["xp"] = 9500, ["level"] = 70},
[10510] = {["xp"] = 11300, ["level"] = 66},
[10511] = {["xp"] = 11300, ["level"] = 66},
[10512] = {["xp"] = 11300, ["level"] = 66},
[10513] = {["xp"] = 1250, ["level"] = 70},
[10514] = {["xp"] = 12650, ["level"] = 70},
[10515] = {["xp"] = 12650, ["level"] = 70},
[10516] = {["xp"] = 11300, ["level"] = 66},
[10517] = {["xp"] = 11650, ["level"] = 67},
[10518] = {["xp"] = 14600, ["level"] = 67},
[10519] = {["xp"] = 1250, ["level"] = 70},
[10520] = {["xp"] = 680, ["level"] = 50},
[10521] = {["xp"] = 1250, ["level"] = 70},
[10522] = {["xp"] = 15800, ["level"] = 70},
[10523] = {["xp"] = 3150, ["level"] = 70},
[10524] = {["xp"] = 11300, ["level"] = 66},
[10525] = {["xp"] = 8550, ["level"] = 66},
[10526] = {["xp"] = 14600, ["level"] = 67},
[10527] = {["xp"] = 6250, ["level"] = 70},
[10528] = {["xp"] = 9500, ["level"] = 70},
[10529] = {["xp"] = 85, ["level"] = nil},
[10530] = {["xp"] = 85, ["level"] = nil},
[10531] = {["xp"] = 8170, ["level"] = 55},
[10532] = {["xp"] = 12650, ["level"] = 70},
[10534] = {["xp"] = 85, ["level"] = 10},
[10535] = {["xp"] = 12650, ["level"] = 70},
[10537] = {["xp"] = 12650, ["level"] = 70},
[10538] = {["xp"] = 9550, ["level"] = 60},
[10539] = {["xp"] = 85, ["level"] = 10},
[10540] = {["xp"] = 15800, ["level"] = 70},
[10541] = {["xp"] = 6250, ["level"] = 70},
[10542] = {["xp"] = 11300, ["level"] = 66},
[10543] = {["xp"] = 11650, ["level"] = 67},
[10544] = {["xp"] = 14150, ["level"] = 66},
[10545] = {["xp"] = 11300, ["level"] = 66},
[10546] = {["xp"] = 3150, ["level"] = 70},
[10547] = {["xp"] = 12650, ["level"] = 70},
[10548] = {["xp"] = 1350, ["level"] = 18},
[10550] = {["xp"] = 3150, ["level"] = 70},
[10551] = {["xp"] = 0, ["level"] = nil},
[10552] = {["xp"] = 0, ["level"] = nil},
[10553] = {["xp"] = 1100, ["level"] = 65},
[10554] = {["xp"] = 1100, ["level"] = 65},
[10555] = {["xp"] = 11300, ["level"] = 66},
[10556] = {["xp"] = 8550, ["level"] = 66},
[10557] = {["xp"] = 2650, ["level"] = 64},
[10558] = {["xp"] = 12650, ["level"] = 70},
[10560] = {["xp"] = 12650, ["level"] = 70},
[10561] = {["xp"] = 12650, ["level"] = 70},
[10562] = {["xp"] = 12300, ["level"] = 69},
[10563] = {["xp"] = 12300, ["level"] = 69},
[10564] = {["xp"] = 12300, ["level"] = 69},
[10565] = {["xp"] = 5650, ["level"] = 66},
[10566] = {["xp"] = 11300, ["level"] = 66},
[10567] = {["xp"] = 11300, ["level"] = 66},
[10568] = {["xp"] = 12650, ["level"] = 70},
[10569] = {["xp"] = 12300, ["level"] = 69},
[10570] = {["xp"] = 9500, ["level"] = 70},
[10571] = {["xp"] = 12650, ["level"] = 70},
[10572] = {["xp"] = 12300, ["level"] = 69},
[10573] = {["xp"] = 1230, ["level"] = 69},
[10574] = {["xp"] = 12650, ["level"] = 70},
[10575] = {["xp"] = 6250, ["level"] = 70},
[10576] = {["xp"] = 12650, ["level"] = 70},
[10577] = {["xp"] = 9500, ["level"] = 70},
[10578] = {["xp"] = 12650, ["level"] = 70},
[10579] = {["xp"] = 6250, ["level"] = 70},
[10580] = {["xp"] = 2900, ["level"] = 67},
[10581] = {["xp"] = 2900, ["level"] = 67},
[10582] = {["xp"] = 12300, ["level"] = 69},
[10583] = {["xp"] = 12300, ["level"] = 69},
[10584] = {["xp"] = 11650, ["level"] = 67},
[10585] = {["xp"] = 12300, ["level"] = 69},
[10586] = {["xp"] = 12300, ["level"] = 69},
[10587] = {["xp"] = 12650, ["level"] = 70},
[10588] = {["xp"] = 19000, ["level"] = 70},
[10589] = {["xp"] = 12300, ["level"] = 69},
[10590] = {["xp"] = 7340, ["level"] = 52},
[10592] = {["xp"] = 3650, ["level"] = 52},
[10593] = {["xp"] = 11000, ["level"] = 52},
[10594] = {["xp"] = 11650, ["level"] = 67},
[10595] = {["xp"] = 12300, ["level"] = 69},
[10596] = {["xp"] = 12300, ["level"] = 69},
[10597] = {["xp"] = 12300, ["level"] = 69},
[10598] = {["xp"] = 12300, ["level"] = 69},
[10599] = {["xp"] = 1230, ["level"] = 69},
[10600] = {["xp"] = 12300, ["level"] = 69},
[10601] = {["xp"] = 12300, ["level"] = 69},
[10602] = {["xp"] = 12300, ["level"] = 69},
[10603] = {["xp"] = 12300, ["level"] = 69},
[10604] = {["xp"] = 12300, ["level"] = 69},
[10605] = {["xp"] = 155, ["level"] = nil},
[10606] = {["xp"] = 12300, ["level"] = 69},
[10607] = {["xp"] = 12000, ["level"] = 68},
[10608] = {["xp"] = 11650, ["level"] = 67},
[10609] = {["xp"] = 11650, ["level"] = 67},
[10611] = {["xp"] = 12300, ["level"] = 69},
[10612] = {["xp"] = 15400, ["level"] = 69},
[10613] = {["xp"] = 15400, ["level"] = 69},
[10614] = {["xp"] = 1130, ["level"] = 66},
[10615] = {["xp"] = 2650, ["level"] = 64},
[10617] = {["xp"] = 11300, ["level"] = 66},
[10618] = {["xp"] = 11000, ["level"] = 65},
[10619] = {["xp"] = 12650, ["level"] = 70},
[10620] = {["xp"] = 11650, ["level"] = 67},
[10621] = {["xp"] = 9250, ["level"] = 69},
[10622] = {["xp"] = 0, ["level"] = nil},
[10623] = {["xp"] = 9250, ["level"] = 69},
[10624] = {["xp"] = 12300, ["level"] = 69},
[10625] = {["xp"] = 12300, ["level"] = 69},
[10626] = {["xp"] = 12300, ["level"] = 69},
[10627] = {["xp"] = 12300, ["level"] = 69},
[10628] = {["xp"] = 3150, ["level"] = 70},
[10629] = {["xp"] = 9800, ["level"] = 61},
[10630] = {["xp"] = 9800, ["level"] = 61},
[10632] = {["xp"] = 11650, ["level"] = 67},
[10633] = {["xp"] = 6250, ["level"] = 70},
[10634] = {["xp"] = 19000, ["level"] = 70},
[10635] = {["xp"] = 12650, ["level"] = 70},
[10636] = {["xp"] = 12650, ["level"] = 70},
[10637] = {["xp"] = 12650, ["level"] = 70},
[10638] = {["xp"] = 85, ["level"] = 10},
[10640] = {["xp"] = 6250, ["level"] = 70},
[10641] = {["xp"] = 12650, ["level"] = 70},
[10642] = {["xp"] = 12300, ["level"] = 69},
[10643] = {["xp"] = 12300, ["level"] = 69},
[10644] = {["xp"] = 6250, ["level"] = 70},
[10646] = {["xp"] = 6250, ["level"] = 70},
[10647] = {["xp"] = 15800, ["level"] = 70},
[10648] = {["xp"] = 15800, ["level"] = 70},
[10649] = {["xp"] = 25300, ["level"] = 70},
[10650] = {["xp"] = 6250, ["level"] = 70},
[10651] = {["xp"] = 19000, ["level"] = 70},
[10652] = {["xp"] = 1230, ["level"] = 69},
[10653] = {["xp"] = 12650, ["level"] = 70},
[10655] = {["xp"] = 0, ["level"] = nil},
[10656] = {["xp"] = 12650, ["level"] = 70},
[10657] = {["xp"] = 11650, ["level"] = 67},
[10658] = {["xp"] = 0, ["level"] = nil},
[10660] = {["xp"] = 12300, ["level"] = 69},
[10661] = {["xp"] = 12300, ["level"] = 69},
[10662] = {["xp"] = 1230, ["level"] = 69},
[10663] = {["xp"] = 1230, ["level"] = 69},
[10664] = {["xp"] = 9250, ["level"] = 69},
[10665] = {["xp"] = 24600, ["level"] = 69},
[10666] = {["xp"] = 24600, ["level"] = 69},
[10667] = {["xp"] = 25300, ["level"] = 70},
[10668] = {["xp"] = 12650, ["level"] = 70},
[10669] = {["xp"] = 12650, ["level"] = 70},
[10670] = {["xp"] = 25300, ["level"] = 70},
[10671] = {["xp"] = 11650, ["level"] = 67},
[10672] = {["xp"] = 12300, ["level"] = 69},
[10673] = {["xp"] = 12650, ["level"] = 70},
[10674] = {["xp"] = 11650, ["level"] = 67},
[10675] = {["xp"] = 14950, ["level"] = 68},
[10676] = {["xp"] = 1250, ["level"] = 70},
[10677] = {["xp"] = 12300, ["level"] = 69},
[10678] = {["xp"] = 12650, ["level"] = 70},
[10679] = {["xp"] = 15800, ["level"] = 70},
[10680] = {["xp"] = 3150, ["level"] = 70},
[10681] = {["xp"] = 3150, ["level"] = 70},
[10682] = {["xp"] = 11650, ["level"] = 67},
[10683] = {["xp"] = 12650, ["level"] = 70},
[10684] = {["xp"] = 12650, ["level"] = 70},
[10685] = {["xp"] = 12650, ["level"] = 70},
[10686] = {["xp"] = 6250, ["level"] = 70},
[10687] = {["xp"] = 12650, ["level"] = 70},
[10688] = {["xp"] = 12650, ["level"] = 70},
[10689] = {["xp"] = 6250, ["level"] = 70},
[10690] = {["xp"] = 11300, ["level"] = 66},
[10691] = {["xp"] = 6250, ["level"] = 70},
[10692] = {["xp"] = 19000, ["level"] = 70},
[10701] = {["xp"] = 12000, ["level"] = 68},
[10702] = {["xp"] = 12300, ["level"] = 69},
[10703] = {["xp"] = 12300, ["level"] = 69},
[10704] = {["xp"] = 25300, ["level"] = 70},
[10705] = {["xp"] = 25300, ["level"] = 70},
[10706] = {["xp"] = 9500, ["level"] = 70},
[10707] = {["xp"] = 19000, ["level"] = 70},
[10708] = {["xp"] = 19000, ["level"] = 70},
[10709] = {["xp"] = 2900, ["level"] = 67},
[10710] = {["xp"] = 5400, ["level"] = 64},
[10711] = {["xp"] = 5400, ["level"] = 64},
[10712] = {["xp"] = 5400, ["level"] = 64},
[10713] = {["xp"] = 11650, ["level"] = 67},
[10714] = {["xp"] = 11650, ["level"] = 67},
[10715] = {["xp"] = 11650, ["level"] = 67},
[10716] = {["xp"] = 13350, ["level"] = 64},
[10717] = {["xp"] = 11650, ["level"] = 67},
[10718] = {["xp"] = 1160, ["level"] = 67},
[10719] = {["xp"] = 1160, ["level"] = 67},
[10720] = {["xp"] = 11650, ["level"] = 67},
[10721] = {["xp"] = 11650, ["level"] = 67},
[10722] = {["xp"] = 12000, ["level"] = 68},
[10723] = {["xp"] = 12000, ["level"] = 68},
[10724] = {["xp"] = 11650, ["level"] = 67},
[10729] = {["xp"] = 12650, ["level"] = 70},
[10730] = {["xp"] = 12650, ["level"] = 70},
[10731] = {["xp"] = 12650, ["level"] = 70},
[10732] = {["xp"] = 12650, ["level"] = 70},
[10733] = {["xp"] = 15800, ["level"] = 70},
[10734] = {["xp"] = 15800, ["level"] = 70},
[10735] = {["xp"] = 15800, ["level"] = 70},
[10736] = {["xp"] = 15800, ["level"] = 70},
[10737] = {["xp"] = 15800, ["level"] = 70},
[10742] = {["xp"] = 19000, ["level"] = 70},
[10744] = {["xp"] = 15800, ["level"] = 70},
[10745] = {["xp"] = 15800, ["level"] = 70},
[10747] = {["xp"] = 12000, ["level"] = 68},
[10748] = {["xp"] = 14950, ["level"] = 68},
[10749] = {["xp"] = 1160, ["level"] = 67},
[10750] = {["xp"] = 9500, ["level"] = 70},
[10751] = {["xp"] = 15800, ["level"] = 70},
[10752] = {["xp"] = 1150, ["level"] = 20},
[10753] = {["xp"] = 8750, ["level"] = 67},
[10754] = {["xp"] = 12650, ["level"] = 70},
[10755] = {["xp"] = 12650, ["level"] = 70},
[10756] = {["xp"] = 3150, ["level"] = 70},
[10757] = {["xp"] = 12650, ["level"] = 70},
[10758] = {["xp"] = 15800, ["level"] = 70},
[10759] = {["xp"] = 1230, ["level"] = 69},
[10760] = {["xp"] = 12300, ["level"] = 69},
[10761] = {["xp"] = 1230, ["level"] = 69},
[10762] = {["xp"] = 3150, ["level"] = 70},
[10763] = {["xp"] = 12650, ["level"] = 70},
[10764] = {["xp"] = 15800, ["level"] = 70},
[10765] = {["xp"] = 15800, ["level"] = 70},
[10766] = {["xp"] = 1230, ["level"] = 69},
[10767] = {["xp"] = 1230, ["level"] = 69},
[10768] = {["xp"] = 15800, ["level"] = 70},
[10769] = {["xp"] = 19000, ["level"] = 70},
[10770] = {["xp"] = 11650, ["level"] = 67},
[10771] = {["xp"] = 11650, ["level"] = 67},
[10772] = {["xp"] = 9500, ["level"] = 70},
[10773] = {["xp"] = 15800, ["level"] = 70},
[10774] = {["xp"] = 15800, ["level"] = 70},
[10775] = {["xp"] = 15800, ["level"] = 70},
[10776] = {["xp"] = 19000, ["level"] = 70},
[10777] = {["xp"] = 12300, ["level"] = 69},
[10778] = {["xp"] = 12300, ["level"] = 69},
[10779] = {["xp"] = 85, ["level"] = 10},
[10780] = {["xp"] = 12300, ["level"] = 69},
[10781] = {["xp"] = 19000, ["level"] = 70},
[10782] = {["xp"] = 12300, ["level"] = 69},
[10783] = {["xp"] = 2900, ["level"] = 67},
[10784] = {["xp"] = 11650, ["level"] = 67},
[10785] = {["xp"] = 1160, ["level"] = 67},
[10786] = {["xp"] = 14950, ["level"] = 68},
[10788] = {["xp"] = 85, ["level"] = nil},
[10789] = {["xp"] = 85, ["level"] = nil},
[10790] = {["xp"] = 85, ["level"] = nil},
[10791] = {["xp"] = 1080, ["level"] = 64},
[10792] = {["xp"] = 9800, ["level"] = 61},
[10793] = {["xp"] = 9500, ["level"] = 70},
[10794] = {["xp"] = 195, ["level"] = 24},
[10795] = {["xp"] = 11650, ["level"] = 67},
[10796] = {["xp"] = 11650, ["level"] = 67},
[10797] = {["xp"] = 1160, ["level"] = 67},
[10798] = {["xp"] = 1160, ["level"] = 67},
[10799] = {["xp"] = 11650, ["level"] = 67},
[10800] = {["xp"] = 11650, ["level"] = 67},
[10801] = {["xp"] = 1160, ["level"] = 67},
[10802] = {["xp"] = 14950, ["level"] = 68},
[10803] = {["xp"] = 12000, ["level"] = 68},
[10805] = {["xp"] = 14600, ["level"] = 67},
[10806] = {["xp"] = 19000, ["level"] = 70},
[10807] = {["xp"] = 12650, ["level"] = 70},
[10808] = {["xp"] = 15400, ["level"] = 69},
[10809] = {["xp"] = 9550, ["level"] = 60},
[10810] = {["xp"] = 3050, ["level"] = 68},
[10812] = {["xp"] = 3050, ["level"] = 68},
[10813] = {["xp"] = 5000, ["level"] = 62},
[10815] = {["xp"] = 9500, ["level"] = 70},
[10816] = {["xp"] = 12650, ["level"] = 70},
[10817] = {["xp"] = 12650, ["level"] = 70},
[10818] = {["xp"] = 1160, ["level"] = 67},
[10819] = {["xp"] = 12000, ["level"] = 68},
[10820] = {["xp"] = 9000, ["level"] = 68},
[10821] = {["xp"] = 12000, ["level"] = 68},
[10824] = {["xp"] = 12650, ["level"] = 70},
[10825] = {["xp"] = 1200, ["level"] = 68},
[10826] = {["xp"] = 12650, ["level"] = 70},
[10829] = {["xp"] = 1200, ["level"] = 68},
[10830] = {["xp"] = 14950, ["level"] = 68},
[10831] = {["xp"] = 9500, ["level"] = 70},
[10832] = {["xp"] = 9500, ["level"] = 70},
[10833] = {["xp"] = 9500, ["level"] = 70},
[10834] = {["xp"] = 12600, ["level"] = 62},
[10835] = {["xp"] = 2400, ["level"] = 61},
[10838] = {["xp"] = 12200, ["level"] = 61},
[10839] = {["xp"] = 10750, ["level"] = 64},
[10840] = {["xp"] = 11000, ["level"] = 65},
[10842] = {["xp"] = 13750, ["level"] = 65},
[10843] = {["xp"] = 12000, ["level"] = 68},
[10844] = {["xp"] = 12000, ["level"] = 68},
[10845] = {["xp"] = 12000, ["level"] = 68},
[10846] = {["xp"] = 11650, ["level"] = 67},
[10847] = {["xp"] = 10050, ["level"] = 62},
[10848] = {["xp"] = 10750, ["level"] = 64},
[10849] = {["xp"] = 2600, ["level"] = 63},
[10850] = {["xp"] = 0, ["level"] = nil},
[10851] = {["xp"] = 11650, ["level"] = 67},
[10852] = {["xp"] = 10750, ["level"] = 64},
[10853] = {["xp"] = 11650, ["level"] = 67},
[10855] = {["xp"] = 12300, ["level"] = 69},
[10856] = {["xp"] = 12300, ["level"] = 69},
[10857] = {["xp"] = 15400, ["level"] = 69},
[10859] = {["xp"] = 11650, ["level"] = 67},
[10860] = {["xp"] = 11650, ["level"] = 67},
[10861] = {["xp"] = 10750, ["level"] = 64},
[10862] = {["xp"] = 10400, ["level"] = 63},
[10863] = {["xp"] = 10400, ["level"] = 63},
[10864] = {["xp"] = 9800, ["level"] = 61},
[10865] = {["xp"] = 1200, ["level"] = 68},
[10867] = {["xp"] = 14950, ["level"] = 68},
[10868] = {["xp"] = 10050, ["level"] = 62},
[10869] = {["xp"] = 10050, ["level"] = 62},
[10873] = {["xp"] = 11000, ["level"] = 65},
[10874] = {["xp"] = 11000, ["level"] = 65},
[10875] = {["xp"] = 2400, ["level"] = 61},
[10876] = {["xp"] = 12950, ["level"] = 63},
[10877] = {["xp"] = 11300, ["level"] = 66},
[10878] = {["xp"] = 10400, ["level"] = 63},
[10879] = {["xp"] = 16500, ["level"] = 65},
[10880] = {["xp"] = 5400, ["level"] = 64},
[10881] = {["xp"] = 13350, ["level"] = 64},
[10882] = {["xp"] = 25300, ["level"] = 70},
[10883] = {["xp"] = 1250, ["level"] = 70},
[10884] = {["xp"] = 19000, ["level"] = 70},
[10885] = {["xp"] = 19000, ["level"] = 70},
[10886] = {["xp"] = 19000, ["level"] = 70},
[10887] = {["xp"] = 10750, ["level"] = 64},
[10888] = {["xp"] = 19000, ["level"] = 70},
[10889] = {["xp"] = 8250, ["level"] = 65},
[10891] = {["xp"] = 5100, ["level"] = 50},
[10892] = {["xp"] = 5100, ["level"] = 50},
[10893] = {["xp"] = 11650, ["level"] = 67},
[10894] = {["xp"] = 1160, ["level"] = 67},
[10895] = {["xp"] = 11900, ["level"] = 60},
[10896] = {["xp"] = 11000, ["level"] = 65},
[10897] = {["xp"] = 25300, ["level"] = 70},
[10898] = {["xp"] = 13750, ["level"] = 65},
[10899] = {["xp"] = 12650, ["level"] = 70},
[10901] = {["xp"] = 19000, ["level"] = 70},
[10902] = {["xp"] = 25300, ["level"] = 70},
[10903] = {["xp"] = 4850, ["level"] = 61},
[10904] = {["xp"] = 12000, ["level"] = 68},
[10905] = {["xp"] = 1250, ["level"] = 70},
[10906] = {["xp"] = 1250, ["level"] = 70},
[10907] = {["xp"] = 1250, ["level"] = 70},
[10908] = {["xp"] = 1050, ["level"] = 63},
[10909] = {["xp"] = 9800, ["level"] = 61},
[10910] = {["xp"] = 12000, ["level"] = 68},
[10911] = {["xp"] = 12000, ["level"] = 68},
[10912] = {["xp"] = 17950, ["level"] = 68},
[10913] = {["xp"] = 11000, ["level"] = 65},
[10914] = {["xp"] = 11000, ["level"] = 65},
[10915] = {["xp"] = 11000, ["level"] = 65},
[10916] = {["xp"] = 4850, ["level"] = 61},
[10917] = {["xp"] = 11000, ["level"] = 65},
[10920] = {["xp"] = 11000, ["level"] = 65},
[10921] = {["xp"] = 11000, ["level"] = 65},
[10922] = {["xp"] = 11000, ["level"] = 65},
[10923] = {["xp"] = 11000, ["level"] = 65},
[10924] = {["xp"] = 12300, ["level"] = 69},
[10926] = {["xp"] = 8250, ["level"] = 65},
[10927] = {["xp"] = 11000, ["level"] = 65},
[10928] = {["xp"] = 11000, ["level"] = 65},
[10929] = {["xp"] = 11000, ["level"] = 65},
[10930] = {["xp"] = 13750, ["level"] = 65},
[10935] = {["xp"] = 12200, ["level"] = 61},
[10936] = {["xp"] = 970, ["level"] = 61},
[10937] = {["xp"] = 12600, ["level"] = 62},
[10944] = {["xp"] = 15800, ["level"] = 70},
[10969] = {["xp"] = 1250, ["level"] = 70},
[10983] = {["xp"] = 3150, ["level"] = 70},
[10984] = {["xp"] = 1250, ["level"] = 70},
[10989] = {["xp"] = 1250, ["level"] = 70},
[10995] = {["xp"] = 19000, ["level"] = 70},
[10996] = {["xp"] = 19000, ["level"] = 70},
[10997] = {["xp"] = 19000, ["level"] = 70},
[10998] = {["xp"] = 19000, ["level"] = 70},
[10999] = {["xp"] = 120, ["level"] = 1},
[11002] = {["xp"] = 19000, ["level"] = 70},
[11003] = {["xp"] = 19000, ["level"] = 70},
[11004] = {["xp"] = 12650, ["level"] = 70},
[11005] = {["xp"] = 12650, ["level"] = 70},
[11007] = {["xp"] = 19000, ["level"] = 70},
[11008] = {["xp"] = 12650, ["level"] = 70},
[11021] = {["xp"] = 6250, ["level"] = 70},
[11024] = {["xp"] = 6250, ["level"] = 70},
[11028] = {["xp"] = 6250, ["level"] = 70},
[11029] = {["xp"] = 9500, ["level"] = 70},
[11036] = {["xp"] = 1160, ["level"] = 67},
[11037] = {["xp"] = 1160, ["level"] = 67},
[11038] = {["xp"] = 1160, ["level"] = 67},
[11039] = {["xp"] = 1160, ["level"] = 67},
[11040] = {["xp"] = 1160, ["level"] = 67},
[11042] = {["xp"] = 1160, ["level"] = 67},
[11043] = {["xp"] = 1160, ["level"] = 67},
[11044] = {["xp"] = 1160, ["level"] = 67},
[11045] = {["xp"] = 1160, ["level"] = 67},
[11046] = {["xp"] = 1160, ["level"] = 67},
[11047] = {["xp"] = 1160, ["level"] = 67},
[11048] = {["xp"] = 1160, ["level"] = 67},
[11052] = {["xp"] = 19000, ["level"] = 70},
[11056] = {["xp"] = 6250, ["level"] = 70},
[11072] = {["xp"] = 15800, ["level"] = 70},
[11085] = {["xp"] = 9500, ["level"] = 70},
[11091] = {["xp"] = 1250, ["level"] = 70},
[11093] = {["xp"] = 12650, ["level"] = 70},
[11096] = {["xp"] = 12650, ["level"] = 70},
[11098] = {["xp"] = 1250, ["level"] = 70},
[11121] = {["xp"] = 1250, ["level"] = 70},
[11123] = {["xp"] = 330, ["level"] = 35},
[11124] = {["xp"] = 330, ["level"] = 35},
[11126] = {["xp"] = 3300, ["level"] = 35},
[11128] = {["xp"] = 3300, ["level"] = 35},
[11129] = {["xp"] = 630, ["level"] = 7},
[11131] = {["xp"] = 80, ["level"] = nil},
[11133] = {["xp"] = 3300, ["level"] = 35},
[11134] = {["xp"] = 4600, ["level"] = 37},
[11135] = {["xp"] = 12650, ["level"] = 70},
[11136] = {["xp"] = 350, ["level"] = 36},
[11137] = {["xp"] = 3710, ["level"] = 37},
[11138] = {["xp"] = 370, ["level"] = 37},
[11139] = {["xp"] = 3710, ["level"] = 37},
[11140] = {["xp"] = 3710, ["level"] = 37},
[11141] = {["xp"] = 370, ["level"] = 37},
[11142] = {["xp"] = 3710, ["level"] = 37},
[11143] = {["xp"] = 390, ["level"] = 38},
[11144] = {["xp"] = 3920, ["level"] = 38},
[11145] = {["xp"] = 3710, ["level"] = 37},
[11146] = {["xp"] = 3710, ["level"] = 37},
[11147] = {["xp"] = 3710, ["level"] = 37},
[11148] = {["xp"] = 3920, ["level"] = 38},
[11149] = {["xp"] = 410, ["level"] = 39},
[11150] = {["xp"] = 4140, ["level"] = 39},
[11151] = {["xp"] = 410, ["level"] = 39},
[11152] = {["xp"] = 5150, ["level"] = 39},
[11156] = {["xp"] = 4140, ["level"] = 39},
[11158] = {["xp"] = 4140, ["level"] = 39},
[11159] = {["xp"] = 4590, ["level"] = 41},
[11160] = {["xp"] = 4140, ["level"] = 39},
[11161] = {["xp"] = 4140, ["level"] = 39},
[11162] = {["xp"] = 5700, ["level"] = 41},
[11169] = {["xp"] = 3920, ["level"] = 38},
[11172] = {["xp"] = 435, ["level"] = 40},
[11173] = {["xp"] = 4140, ["level"] = 39},
[11174] = {["xp"] = 4370, ["level"] = 40},
[11177] = {["xp"] = 350, ["level"] = 36},
[11180] = {["xp"] = 3500, ["level"] = 36},
[11181] = {["xp"] = 3500, ["level"] = 36},
[11183] = {["xp"] = 4350, ["level"] = 36},
[11184] = {["xp"] = 4140, ["level"] = 39},
[11185] = {["xp"] = 3920, ["level"] = 38},
[11186] = {["xp"] = 3920, ["level"] = 38},
[11191] = {["xp"] = 330, ["level"] = 35},
[11192] = {["xp"] = 3300, ["level"] = 35},
[11193] = {["xp"] = 330, ["level"] = 35},
[11194] = {["xp"] = 350, ["level"] = 36},
[11198] = {["xp"] = 4350, ["level"] = 36},
[11200] = {["xp"] = 3710, ["level"] = 37},
[11201] = {["xp"] = 3920, ["level"] = 38},
[11203] = {["xp"] = 370, ["level"] = 37},
[11204] = {["xp"] = 390, ["level"] = 38},
[11205] = {["xp"] = 4140, ["level"] = 39},
[11206] = {["xp"] = 5150, ["level"] = 39},
[11207] = {["xp"] = 4140, ["level"] = 39},
[11208] = {["xp"] = 410, ["level"] = 39},
[11209] = {["xp"] = 3710, ["level"] = 37},
[11210] = {["xp"] = 370, ["level"] = 37},
[11211] = {["xp"] = 410, ["level"] = 39},
[11212] = {["xp"] = 370, ["level"] = 37},
[11213] = {["xp"] = 370, ["level"] = 37},
[11214] = {["xp"] = 410, ["level"] = 39},
[11215] = {["xp"] = 410, ["level"] = 39},
[11216] = {["xp"] = 1250, ["level"] = 70},
[11217] = {["xp"] = 4370, ["level"] = 40},
[11219] = {["xp"] = 80, ["level"] = nil},
[11220] = {["xp"] = 12650, ["level"] = 70},
[11222] = {["xp"] = 370, ["level"] = 37},
[11223] = {["xp"] = 4600, ["level"] = 37},
[11225] = {["xp"] = 350, ["level"] = 36},
[11335] = {["xp"] = 1650, ["level"] = nil},
[11336] = {["xp"] = 7070, ["level"] = nil},
[11337] = {["xp"] = 9800, ["level"] = nil},
[11338] = {["xp"] = 880, ["level"] = nil},
[11339] = {["xp"] = 1650, ["level"] = nil},
[11340] = {["xp"] = 7070, ["level"] = nil},
[11341] = {["xp"] = 9800, ["level"] = nil},
[11342] = {["xp"] = 880, ["level"] = nil},
[11354] = {["xp"] = 19000, ["level"] = 70},
[11356] = {["xp"] = 1250, ["level"] = 70},
[11357] = {["xp"] = 1250, ["level"] = 70},
[11362] = {["xp"] = 19000, ["level"] = 70},
[11363] = {["xp"] = 19000, ["level"] = 70},
[11364] = {["xp"] = 12650, ["level"] = 70},
[11368] = {["xp"] = 19000, ["level"] = 70},
[11369] = {["xp"] = 19000, ["level"] = 70},
[11370] = {["xp"] = 19000, ["level"] = 70},
[11371] = {["xp"] = 12650, ["level"] = 70},
[11372] = {["xp"] = 19000, ["level"] = 70},
[11373] = {["xp"] = 19000, ["level"] = 70},
[11374] = {["xp"] = 19000, ["level"] = 70},
[11375] = {["xp"] = 19000, ["level"] = 70},
[11376] = {["xp"] = 12650, ["level"] = 70},
[11377] = {["xp"] = 12650, ["level"] = 70},
[11378] = {["xp"] = 19000, ["level"] = 70},
[11379] = {["xp"] = 12650, ["level"] = 70},
[11380] = {["xp"] = 12650, ["level"] = 70},
[11381] = {["xp"] = 12650, ["level"] = 70},
[11382] = {["xp"] = 19000, ["level"] = 70},
[11383] = {["xp"] = 12650, ["level"] = 70},
[11384] = {["xp"] = 19000, ["level"] = 70},
[11385] = {["xp"] = 12650, ["level"] = 70},
[11386] = {["xp"] = 19000, ["level"] = 70},
[11387] = {["xp"] = 12650, ["level"] = 70},
[11388] = {["xp"] = 19000, ["level"] = 70},
[11389] = {["xp"] = 12650, ["level"] = 70},
[11404] = {["xp"] = 1100, ["level"] = nil},
[11425] = {["xp"] = 0, ["level"] = nil},
[11451] = {["xp"] = 6250, ["level"] = 70},
[11488] = {["xp"] = 25300, ["level"] = 70},
[11496] = {["xp"] = 9500, ["level"] = 70},
[11497] = {["xp"] = 1250, ["level"] = 70},
[11498] = {["xp"] = 1250, ["level"] = 70},
[11500] = {["xp"] = 12650, ["level"] = 70},
[11502] = {["xp"] = 12650, ["level"] = 70},
[11503] = {["xp"] = 12650, ["level"] = 70},
[11505] = {["xp"] = 10050, ["level"] = nil},
[11506] = {["xp"] = 10050, ["level"] = nil},
[11526] = {["xp"] = 9500, ["level"] = 70},
[11531] = {["xp"] = 12650, ["level"] = 70},
[11532] = {["xp"] = 9500, ["level"] = 70},
[11538] = {["xp"] = 9500, ["level"] = 70},
[11539] = {["xp"] = 12650, ["level"] = 70},
[11541] = {["xp"] = 12650, ["level"] = 70},
[11542] = {["xp"] = 12650, ["level"] = 70},
[11547] = {["xp"] = 12650, ["level"] = 70},
[11580] = {["xp"] = 80, ["level"] = nil},
[11581] = {["xp"] = 80, ["level"] = nil},
[11583] = {["xp"] = 40, ["level"] = nil},
[11584] = {["xp"] = 40, ["level"] = nil},
[11691] = {["xp"] = 12650, ["level"] = 70},
[11696] = {["xp"] = 1250, ["level"] = 70},
[11731] = {["xp"] = 80, ["level"] = nil},
[11732] = {["xp"] = 80, ["level"] = nil},
[11734] = {["xp"] = 80, ["level"] = nil},
[11735] = {["xp"] = 80, ["level"] = nil},
[11736] = {["xp"] = 80, ["level"] = nil},
[11737] = {["xp"] = 80, ["level"] = nil},
[11738] = {["xp"] = 80, ["level"] = nil},
[11739] = {["xp"] = 80, ["level"] = nil},
[11740] = {["xp"] = 80, ["level"] = nil},
[11741] = {["xp"] = 80, ["level"] = nil},
[11742] = {["xp"] = 80, ["level"] = nil},
[11743] = {["xp"] = 80, ["level"] = nil},
[11744] = {["xp"] = 80, ["level"] = nil},
[11745] = {["xp"] = 80, ["level"] = nil},
[11746] = {["xp"] = 80, ["level"] = nil},
[11747] = {["xp"] = 80, ["level"] = nil},
[11748] = {["xp"] = 80, ["level"] = nil},
[11749] = {["xp"] = 80, ["level"] = nil},
[11750] = {["xp"] = 80, ["level"] = nil},
[11751] = {["xp"] = 80, ["level"] = nil},
[11752] = {["xp"] = 80, ["level"] = nil},
[11753] = {["xp"] = 80, ["level"] = nil},
[11754] = {["xp"] = 80, ["level"] = nil},
[11755] = {["xp"] = 80, ["level"] = nil},
[11756] = {["xp"] = 80, ["level"] = nil},
[11757] = {["xp"] = 80, ["level"] = nil},
[11758] = {["xp"] = 80, ["level"] = nil},
[11759] = {["xp"] = 80, ["level"] = nil},
[11760] = {["xp"] = 80, ["level"] = nil},
[11761] = {["xp"] = 80, ["level"] = nil},
[11762] = {["xp"] = 80, ["level"] = nil},
[11763] = {["xp"] = 80, ["level"] = nil},
[11764] = {["xp"] = 80, ["level"] = nil},
[11765] = {["xp"] = 80, ["level"] = nil},
[11766] = {["xp"] = 80, ["level"] = nil},
[11767] = {["xp"] = 80, ["level"] = nil},
[11768] = {["xp"] = 80, ["level"] = nil},
[11769] = {["xp"] = 80, ["level"] = nil},
[11770] = {["xp"] = 80, ["level"] = nil},
[11771] = {["xp"] = 80, ["level"] = nil},
[11772] = {["xp"] = 80, ["level"] = nil},
[11773] = {["xp"] = 80, ["level"] = nil},
[11774] = {["xp"] = 80, ["level"] = nil},
[11775] = {["xp"] = 80, ["level"] = nil},
[11776] = {["xp"] = 80, ["level"] = nil},
[11777] = {["xp"] = 80, ["level"] = nil},
[11778] = {["xp"] = 80, ["level"] = nil},
[11779] = {["xp"] = 80, ["level"] = nil},
[11780] = {["xp"] = 80, ["level"] = nil},
[11781] = {["xp"] = 80, ["level"] = nil},
[11782] = {["xp"] = 80, ["level"] = nil},
[11783] = {["xp"] = 80, ["level"] = nil},
[11784] = {["xp"] = 80, ["level"] = nil},
[11785] = {["xp"] = 80, ["level"] = nil},
[11786] = {["xp"] = 80, ["level"] = nil},
[11787] = {["xp"] = 80, ["level"] = nil},
[11799] = {["xp"] = 80, ["level"] = nil},
[11800] = {["xp"] = 80, ["level"] = nil},
[11801] = {["xp"] = 80, ["level"] = nil},
[11802] = {["xp"] = 80, ["level"] = nil},
[11803] = {["xp"] = 80, ["level"] = nil},
[11804] = {["xp"] = 40, ["level"] = nil},
[11805] = {["xp"] = 40, ["level"] = nil},
[11806] = {["xp"] = 40, ["level"] = nil},
[11807] = {["xp"] = 40, ["level"] = nil},
[11808] = {["xp"] = 40, ["level"] = nil},
[11809] = {["xp"] = 40, ["level"] = nil},
[11810] = {["xp"] = 40, ["level"] = nil},
[11811] = {["xp"] = 40, ["level"] = nil},
[11812] = {["xp"] = 40, ["level"] = nil},
[11813] = {["xp"] = 40, ["level"] = nil},
[11814] = {["xp"] = 40, ["level"] = nil},
[11815] = {["xp"] = 40, ["level"] = nil},
[11816] = {["xp"] = 40, ["level"] = nil},
[11817] = {["xp"] = 40, ["level"] = nil},
[11818] = {["xp"] = 40, ["level"] = nil},
[11819] = {["xp"] = 40, ["level"] = nil},
[11820] = {["xp"] = 40, ["level"] = nil},
[11821] = {["xp"] = 40, ["level"] = nil},
[11822] = {["xp"] = 40, ["level"] = nil},
[11823] = {["xp"] = 40, ["level"] = nil},
[11824] = {["xp"] = 40, ["level"] = nil},
[11825] = {["xp"] = 40, ["level"] = nil},
[11826] = {["xp"] = 40, ["level"] = nil},
[11827] = {["xp"] = 40, ["level"] = nil},
[11828] = {["xp"] = 40, ["level"] = nil},
[11829] = {["xp"] = 40, ["level"] = nil},
[11830] = {["xp"] = 40, ["level"] = nil},
[11831] = {["xp"] = 40, ["level"] = nil},
[11832] = {["xp"] = 40, ["level"] = nil},
[11833] = {["xp"] = 40, ["level"] = nil},
[11834] = {["xp"] = 40, ["level"] = nil},
[11835] = {["xp"] = 40, ["level"] = nil},
[11836] = {["xp"] = 40, ["level"] = nil},
[11837] = {["xp"] = 40, ["level"] = nil},
[11838] = {["xp"] = 40, ["level"] = nil},
[11839] = {["xp"] = 40, ["level"] = nil},
[11840] = {["xp"] = 40, ["level"] = nil},
[11841] = {["xp"] = 40, ["level"] = nil},
[11842] = {["xp"] = 40, ["level"] = nil},
[11843] = {["xp"] = 40, ["level"] = nil},
[11844] = {["xp"] = 40, ["level"] = nil},
[11845] = {["xp"] = 40, ["level"] = nil},
[11846] = {["xp"] = 40, ["level"] = nil},
[11847] = {["xp"] = 40, ["level"] = nil},
[11848] = {["xp"] = 40, ["level"] = nil},
[11849] = {["xp"] = 40, ["level"] = nil},
[11850] = {["xp"] = 40, ["level"] = nil},
[11851] = {["xp"] = 40, ["level"] = nil},
[11852] = {["xp"] = 40, ["level"] = nil},
[11853] = {["xp"] = 40, ["level"] = nil},
[11854] = {["xp"] = 40, ["level"] = nil},
[11855] = {["xp"] = 40, ["level"] = nil},
[11856] = {["xp"] = 40, ["level"] = nil},
[11857] = {["xp"] = 40, ["level"] = nil},
[11858] = {["xp"] = 40, ["level"] = nil},
[11859] = {["xp"] = 40, ["level"] = nil},
[11860] = {["xp"] = 40, ["level"] = nil},
[11861] = {["xp"] = 40, ["level"] = nil},
[11862] = {["xp"] = 40, ["level"] = nil},
[11863] = {["xp"] = 40, ["level"] = nil},
[11875] = {["xp"] = 12650, ["level"] = 70},
[11877] = {["xp"] = 9500, ["level"] = 70},
[11880] = {["xp"] = 9500, ["level"] = 70},
[11882] = {["xp"] = 10, ["level"] = nil},
[11883] = {["xp"] = 10, ["level"] = nil},
[11885] = {["xp"] = 15800, ["level"] = 70},
[11886] = {["xp"] = 1150, ["level"] = nil},
[11915] = {["xp"] = 10, ["level"] = nil},
[11922] = {["xp"] = 80, ["level"] = nil},
[11933] = {["xp"] = 5100, ["level"] = nil},
[11935] = {["xp"] = 5100, ["level"] = nil},
[11964] = {["xp"] = 10, ["level"] = nil},
[11966] = {["xp"] = 10, ["level"] = nil},
[11970] = {["xp"] = 10, ["level"] = nil},
[11971] = {["xp"] = 10, ["level"] = nil},
[11972] = {["xp"] = 11000, ["level"] = nil},
[11976] = {["xp"] = 11000, ["level"] = nil},
[12133] = {["xp"] = 80, ["level"] = nil},
[12286] = {["xp"] = 40, ["level"] = nil},
[12331] = {["xp"] = 40, ["level"] = nil},
[12332] = {["xp"] = 40, ["level"] = nil},
[12333] = {["xp"] = 40, ["level"] = nil},
[12334] = {["xp"] = 40, ["level"] = nil},
[12335] = {["xp"] = 40, ["level"] = nil},
[12336] = {["xp"] = 40, ["level"] = nil},
[12337] = {["xp"] = 40, ["level"] = nil},
[12338] = {["xp"] = 40, ["level"] = nil},
[12339] = {["xp"] = 40, ["level"] = nil},
[12340] = {["xp"] = 40, ["level"] = nil},
[12341] = {["xp"] = 40, ["level"] = nil},
[12342] = {["xp"] = 40, ["level"] = nil},
[12343] = {["xp"] = 40, ["level"] = nil},
[12344] = {["xp"] = 40, ["level"] = nil},
[12345] = {["xp"] = 40, ["level"] = nil},
[12346] = {["xp"] = 40, ["level"] = nil},
[12347] = {["xp"] = 40, ["level"] = nil},
[12348] = {["xp"] = 40, ["level"] = nil},
[12349] = {["xp"] = 40, ["level"] = nil},
[12350] = {["xp"] = 40, ["level"] = nil},
[12351] = {["xp"] = 40, ["level"] = nil},
[12352] = {["xp"] = 40, ["level"] = nil},
[12353] = {["xp"] = 40, ["level"] = nil},
[12354] = {["xp"] = 40, ["level"] = nil},
[12355] = {["xp"] = 40, ["level"] = nil},
[12356] = {["xp"] = 40, ["level"] = nil},
[12357] = {["xp"] = 40, ["level"] = nil},
[12358] = {["xp"] = 40, ["level"] = nil},
[12359] = {["xp"] = 40, ["level"] = nil},
[12360] = {["xp"] = 40, ["level"] = nil},
[12396] = {["xp"] = 40, ["level"] = nil},
[12397] = {["xp"] = 40, ["level"] = nil},
[12398] = {["xp"] = 40, ["level"] = nil},
[12399] = {["xp"] = 40, ["level"] = nil},
[12400] = {["xp"] = 40, ["level"] = nil},
[12401] = {["xp"] = 40, ["level"] = nil},
[12402] = {["xp"] = 40, ["level"] = nil},
[12403] = {["xp"] = 40, ["level"] = nil},
[12404] = {["xp"] = 40, ["level"] = nil},
[12405] = {["xp"] = 40, ["level"] = nil},
[12406] = {["xp"] = 40, ["level"] = nil},
[12407] = {["xp"] = 40, ["level"] = nil},
[12408] = {["xp"] = 40, ["level"] = nil},
[12409] = {["xp"] = 40, ["level"] = nil},
[12410] = {["xp"] = 40, ["level"] = nil},
[12491] = {["xp"] = 11000, ["level"] = nil},
[12492] = {["xp"] = 11000, ["level"] = nil},
[12513] = {["xp"] = 12000, ["level"] = 68},
[12515] = {["xp"] = 12000, ["level"] = 68},
[63866] = {["xp"] = 455, ["level"] = 12},
[63978] = {["xp"] = 900, ["level"] = 58},
[64028] = {["xp"] = 900, ["level"] = 58},
[64031] = {["xp"] = 900, ["level"] = 58},
[64034] = {["xp"] = 900, ["level"] = 58},
[64035] = {["xp"] = 900, ["level"] = 58},
[64037] = {["xp"] = 900, ["level"] = 58},
[64038] = {["xp"] = 9550, ["level"] = 60},
[64046] = {["xp"] = 900, ["level"] = 58},
[64047] = {["xp"] = 900, ["level"] = 58},
[64048] = {["xp"] = 900, ["level"] = 58},
[64049] = {["xp"] = 900, ["level"] = 58},
[64050] = {["xp"] = 900, ["level"] = 58},
[64051] = {["xp"] = 900, ["level"] = 58},
[64052] = {["xp"] = 900, ["level"] = 58},
[64053] = {["xp"] = 900, ["level"] = 58},
[64054] = {["xp"] = 900, ["level"] = 58},
[64062] = {["xp"] = 900, ["level"] = 58},
[64063] = {["xp"] = 9550, ["level"] = 60},
[64064] = {["xp"] = 4750, ["level"] = 60},
[64139] = {["xp"] = 955, ["level"] = 60},
[64141] = {["xp"] = 4750, ["level"] = 60},
[64217] = {["xp"] = 9550, ["level"] = 60}
}
|
slot0 = class("SummaryPageLoading", import(".SummaryPage"))
slot1 = 0.05
slot0.OnInit = function (slot0)
slot0.textContainer = findTF(slot0._go, "texts")
slot0.textTFs = {}
eachChild(slot0.textContainer, function (slot0)
setActive(slot0, false)
table.insert(slot0.textTFs, 1, slot0)
end)
slot0.timers = {}
setActive(slot0._go, false)
end
slot0.Show = function (slot0, slot1)
slot0.inAniming = true
setActive(slot0._tf, true)
slot2 = {}
for slot6, slot7 in ipairs(slot0.textTFs) do
table.insert(slot2, function (slot0)
slot0.timers[] = Timer.New(function ()
if slot0.timers[slot1] then
slot0.timers[slot1]:Stop()
slot0.timers[slot1].Stop.timers[slot0.timers[slot1]] = nil
end
setActive(slot2, true)
slot2:GetComponent(typeof(Typewriter)):setSpeed(0.015)
0.015()
end, slot3 * slot1, 1)
slot0.timers[].Start(slot1)
end)
end
table.insert(slot2, function (slot0)
slot1 = slot0.textContainer:GetComponent(typeof(CanvasGroup))
LeanTween.value(go(slot0.textContainer), 1, 0, 0.5):setOnUpdate(System.Action_float(function (slot0)
slot0.alpha = slot0
end)).setOnComplete(slot2, System.Action(slot0)):setDelay(0.6)
end)
seriesAsync(slot2, function ()
slot0.inAniming = nil
nil()
end)
end
slot0.Hide = function (slot0, slot1)
slot0:Clear()
setActive(slot0._tf, false)
slot1()
end
slot0.inAnim = function (slot0)
return slot0.inAniming
end
slot0.Clear = function (slot0)
for slot4, slot5 in pairs(slot0.timers) do
slot5:Stop()
end
slot0.timers = {}
end
return slot0
|
require("gameData/dataInterfaceBase");
require("common/httpModule")
RechargeCardDataInterface = class(DataInterfaceBase);
RechargeCardDataInterface.Delegate = {
onUseRechargeCardCallBack = "onUseRechargeCardCallBack";
}
RechargeCardDataInterface.getInstance = function()
if not RechargeCardDataInterface.s_instance then
RechargeCardDataInterface.s_instance = new(RechargeCardDataInterface);
end
return RechargeCardDataInterface.s_instance;
end
RechargeCardDataInterface.cleanup = function()
local lastObserverMap = RechargeCardDataInterface.getInstance():getObserverMap();
delete(RechargeCardDataInterface.s_instance);
RechargeCardDataInterface.s_instance = nil;
RechargeCardDataInterface.getInstance():setObserverMap(lastObserverMap);
end
RechargeCardDataInterface.ctor = function(self)
EventDispatcher.getInstance():register(HttpModule.s_event,self,self.onHttpRequestCallBack);
end
RechargeCardDataInterface.dtor = function(self)
EventDispatcher.getInstance():unregister(HttpModule.s_event,self,self.onHttpRequestCallBack);
end
RechargeCardDataInterface.initData = function(self)
self.m_webUrl = "";
self.m_payUrl = "";
end
--@override
RechargeCardDataInterface.getLocalDictName = function(self)
return "RechargeCardDataInterface";
end
--@override
RechargeCardDataInterface.loadDictData = function(self, dict)
self.m_webUrl = dict:getString("webUrl") or "";
self.m_payUrl = dict:getString("payUrl") or "";
end
--@override
RechargeCardDataInterface.saveDictData = function(self, dict)
dict:setString("webUrl", self.m_webUrl or "");
dict:setString("payUrl", self.m_payUrl or "");
end
RechargeCardDataInterface.setRechargeCardWebUrl = function(self, rechargeCardUrl)
self.m_webUrl = rechargeCardUrl;
self:saveData();
end
RechargeCardDataInterface.getRechargeCardWebUrl = function(self)
return self.m_webUrl or "";
end
RechargeCardDataInterface.setRechargeCardPayUrl = function(self, rechargeCardPayUrl)
self.m_payUrl = rechargeCardPayUrl;
end
RechargeCardDataInterface.getRechargeCardPayUrl = function(self)
return self.m_payUrl or "";
end
RechargeCardDataInterface.requestUseRechargeCard = function(self, cardNumber, password, cardtype)
local url = string.format("%s¶m[regionid]=%s¶m[usercard]=%s¶m[password]=%s¶m[mid]=%s¶m[type]=code¶m[cardtype]=%s",
self:getRechargeCardPayUrl(), kClientInfo:getRegionId(), cardNumber, password, kUserInfoData:getUserId(), cardtype );
Log.v("RechargeCardDataInterface.requestUseRechargeCard url = ", url);
HttpModule.getInstance():setUrl(HttpModule.s_cmds.PayRechargeCard, url);
HttpModule.getInstance():execute(HttpModule.s_cmds.PayRechargeCard, {});
end
RechargeCardDataInterface.onUseRechargeCardCallBack = function(self, isSuccess, data)
Log.v("RechargeCardDataInterface.onUseRechargeCardCallBack ->", data);
if isSuccess and not table.isEmpty(data) then
if not table.isEmpty(data) then
local status = GetNumFromJsonTable(data, "status", -1);
local msg = GetStrFromJsonTable(data, "msg", "");
local rmb = GetStrFromJsonTable(data, "rmb", "");
local gold = GetStrFromJsonTable(data, "gold", "");
isSuccess = number.valueOf(status) == 1;
self:notify(RechargeCardDataInterface.Delegate.onUseRechargeCardCallBack, isSuccess, msg, rmb, gold);
return;
end
end
self:notify(RechargeCardDataInterface.Delegate.onUseRechargeCardCallBack, false, "");
end
RechargeCardDataInterface.onHttpRequestCallBack = function(self,command,...)
if RechargeCardDataInterface.s_httpRequestCallBackFuncMap[command] then
RechargeCardDataInterface.s_httpRequestCallBackFuncMap[command](self,...);
end
end
RechargeCardDataInterface.s_httpRequestCallBackFuncMap = {
[HttpModule.s_cmds.PayRechargeCard] = RechargeCardDataInterface.onUseRechargeCardCallBack,
};
|
function OnIf_514000(arg0, arg1, arg2)
if arg2 == 0 then
FalseGodBIG514000_ActAfter_RealTime(arg0, arg1)
end
return
end
function FalseGodBIG514000Battle_Activate(arg0, arg1)
local local0 = {}
local local1 = {}
local local2 = {}
Common_Clear_Param(local0, local1, local2)
local local3 = arg0:GetEventRequest()
local local4 = arg0:GetRandam_Int(1, 100)
local local5 = 0
if arg0:HasSpecialEffectId(TARGET_SELF, 5401) then
local5 = 64
if not not arg0:IsInsideTargetRegion(TARGET_ENE_0, 2802740) or arg0:IsInsideTargetRegion(TARGET_ENE_0, 2802741) then
local0[3] = 100
local0[2] = 0
else
local0[10] = 100
end
elseif arg0:HasSpecialEffectId(TARGET_SELF, 5403) then
local5 = 99
if arg0:IsInsideTargetRegion(TARGET_ENE_0, 2802620) and not arg0:IsInsideTargetRegion(TARGET_ENE_0, 2802621) then
local0[1] = 100
else
local0[10] = 100
end
elseif arg0:GetDist(TARGET_ENE_0) < 25 then
local0[1] = 100
else
local0[10] = 100
end
local1[1] = REGIST_FUNC(arg0, arg1, FalseGodBIG514000_Act01)
local1[2] = REGIST_FUNC(arg0, arg1, FalseGodBIG514000_Act02)
local1[3] = REGIST_FUNC(arg0, arg1, FalseGodBIG514000_Act03)
local1[10] = REGIST_FUNC(arg0, arg1, FalseGodBIG514000_Act10)
Common_Battle_Activate(arg0, arg1, local0, local1, REGIST_FUNC(arg0, arg1, FalseGodBIG514000_ActAfter_AdjustSpace), local2)
return
end
function FalseGodBIG514000_Act01(arg0, arg1, arg2)
if arg0:GetEventRequest() == 100 then
arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3000, TARGET_EVENT, DIST_None, 0, -1)
else
arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3000, TARGET_ENE_0, DIST_None, 0, -1)
end
GetWellSpace_Odds = 0
return GetWellSpace_Odds
end
function FalseGodBIG514000_Act02(arg0, arg1, arg2)
arg1:AddSubGoal(GOAL_COMMON_ComboAttack_SuccessAngle180, 10, 3010, TARGET_ENE_0, DIST_None, 0)
arg1:AddSubGoal(GOAL_COMMON_ComboRepeat_SuccessAngle180, 10, 3011, TARGET_ENE_0, DIST_None, 0)
arg1:AddSubGoal(GOAL_COMMON_ComboFinal, 10, 3012, TARGET_ENE_0, DIST_None, 0)
arg0:SetNumber(0, 0)
GetWellSpace_Odds = 0
return GetWellSpace_Odds
end
function FalseGodBIG514000_Act03(arg0, arg1, arg2)
arg1:AddSubGoal(GOAL_COMMON_AttackTunableSpin, 10, 3000, TARGET_ENE_0, DIST_None, 0, -1)
arg0:SetNumber(0, 1)
GetWellSpace_Odds = 0
return GetWellSpace_Odds
end
function FalseGodBIG514000_Act10(arg0, arg1, arg2)
arg1:AddSubGoal(GOAL_COMMON_Wait, 0.1, TARGET_NONE, 0, 0, 0)
GetWellSpace_Odds = 0
return GetWellSpace_Odds
end
function FalseGodBIG514000_ActAfter_AdjustSpace(arg0, arg1, arg2)
arg1:AddSubGoal(GOAL_COMMON_If, 10, 0)
return
end
function FalseGodBIG514000_ActAfter_RealTime(arg0, arg1)
return
end
function FalseGodBIG514000Battle_Update(arg0, arg1)
return GOAL_RESULT_Continue
end
function FalseGodBIG514000Battle_Terminate(arg0, arg1)
return
end
function FalseGodBIG514000Battle_Interupt(arg0, arg1)
return false
end
return
|
require "lib/queue"
-- Based on Wilson's algorithm
function Maze2()
local dirs = {
{dx = 1, dy = 0},
{dx = -1, dy = 0},
{dx = 0, dy = 1},
{dx = 0, dy = -1}
}
local data
local function key(x, y)
-- Fuck you, Lua! Took me an hour to debug this. Without the following lines, the
-- code enters an infinite loop and Factorio freezes when starting a new game.
if x == 0 then
x = 0
end
if y == 0 then
y = 0
end
return x .. '#' .. y
end
local function makeland(x, y)
data.land[key(x, y)] = true
data.nearland[key(x, y)] = true
data.nearland[key(x - 1, y)] = true
data.nearland[key(x + 1, y)] = true
data.nearland[key(x, y - 1)] = true
data.nearland[key(x, y + 1)] = true
data.nearishland[key(x - 1, y - 1)] = true
data.nearishland[key(x + 1, y - 1)] = true
data.nearishland[key(x - 1, y + 1)] = true
data.nearishland[key(x + 1, y + 1)] = true
end
local function create()
data = {
land = {},
nearland = {},
nearishland = {},
pending = {},
pendingsum = 0,
pendingr = 0,
nearest = 0
}
makeland(0, 0)
makeland(-1, 0)
makeland(0, -1)
makeland(-1, -1)
return data
end
local function reload(d)
data = d
end
local function weight(x, y)
return 1 / math.sqrt(math.abs(x * x) + math.abs(y * y) + 4)
end
local function impend(x, y)
local k = key(x, y)
if (not data.nearishland[k]) and (not data.nearland[k]) and (data.pending[k] == nil) then
local w = weight(x, y)
data.pending[k] = {x = x, y = y, w = w}
data.pendingsum = data.pendingsum + w
if x * x + y * y < data.nearest then
data.nearest = x * x + y * y
end
end
end
local function update_pending()
for k, _ in pairs(data.pending) do
if data.nearishland[k] or data.nearland[k] then
data.pending[k] = nil
end
end
local sum = 0
local nearest = 1000000000
for _, v in pairs(data.pending) do
sum = sum + v.w
local n = v.x * v.x + v.y * v.y
if n < nearest then
nearest = n
end
end
data.pendingsum = sum
data.nearest = nearest
local n = data.pendingr
while data.pendingsum < 5 do
for i = -n, n do
impend(i, -n)
impend(i, n)
impend(-n, i)
impend(n, i)
end
n = n + 1
data.pendingr = n
end
end
local function random_direction(x, y)
if math.random() < 0.95 then
return dirs[1 + math.floor(math.random() * 4)]
else
if math.random() < 0.5 then
if x < 0 then
return {dx = 1, dy = 0}
else
return {dx = -1, dy = 0}
end
else
if y < 0 then
return {dx = 0, dy = 1}
else
return {dx = 0, dy = -1}
end
end
end
end
local function fill_shortest_path(path, x, y)
local q = Queue()
local visited = {}
q.push({x = x, y = y})
local p
while true do
p = q.pop()
local k = key(p.x, p.y)
if path[k] and (visited[k] == nil) then
visited[k] = true
if data.nearland[k] then
break
end
for _, d in pairs(dirs) do
q.push({x = p.x + d.dx, y = p.y + d.dy, prev = p})
end
end
end
while not (p == nil) do
makeland(p.x, p.y)
p = p.prev
end
end
local function diffuse_from(x, y)
local n = {}
local k
local cx, cy
cx, cy = x, y
while true do
k = key(cx, cy)
if data.nearland[k] then
break
end
d = random_direction(cx, cy)
cx = cx + d.dx
cy = cy + d.dy
n[k] = key(cx, cy)
end
path = {}
k = key(x, y)
while not (k == nil) do
path[k] = true
k = n[k]
end
fill_shortest_path(path, x, y)
end
local function diffuse()
update_pending()
r = math.random() * data.pendingsum
for k, v in pairs(data.pending) do
r = r - v.w
if r < 0 then
diffuse_from(v.x, v.y)
break
end
end
end
local function geti(x, y)
while math.sqrt(x * x + y * y) + 5 > math.sqrt(data.nearest) do
diffuse()
end
return data.land[key(x, y)] == true
end
local function get(x, y)
return geti(math.floor(x + 0.5), math.floor(y + 0.5))
end
return {
create = create,
reload = reload,
get = get,
lua = 'Maze2()'
}
end
|
--full credit to benningtonguy for his Beeping Tool
pitch = {0.7,0.8,0.9,1,1.1,0.9,1,1.3,1.2,1.3,1.4}
num = 1
t = Instance.new("Tool", game.Players.LocalPlayer.Backpack)
h = Instance.new("Part", t)
h.BrickColor = BrickColor.new("Really black")
h.Name = "Handle"
hBM=Instance.new("BlockMesh",h)
hBM.Scale = Vector3.new(0.15,1,0.012)
script.Parent = t
sound = Instance.new("Sound", game.Players.LocalPlayer.Character.Head)
sound.Volume = 1
sound.SoundId = "http://www.roblox.com/asset/?id=15666462"
script.Parent.Activated:connect(function()
sound.Pitch = tonumber(pitch[num])
sound:Play()
if num == 11 then
num = 1
else
num = num + 1
end
end)
|
local M = {}
M.setup = function()
require('lualine').setup {}
end
return M
|
local mm = {}
function mm.loadMap(map)
local mapObjects = map.layers[2].objects
for i=1,#mapObjects do
local obj = mapObjects[i]
table.insert(objects.platforms, Platform(obj.x, obj.y, obj.width, obj.height))
end
for i=1,#objects.platforms do
if not world:hasItem(objects.platforms[i]) then
world:add(objects.platforms[i], objects.platforms[i].x, objects.platforms[i].y, objects.platforms[i].w, objects.platforms[i].h)
else
world:remove(objects.platforms[i])
world:add(objects.platforms[i], objects.platforms[i].x, objects.platforms[i].y, objects.platforms[i].w, objects.platforms[i].h)
end
end
end
function mm.drawMap(map)
local data = map.layers[1].data
for y=1,#data do
for x=1,#data[y] do
if data[y][x] ~= 0 then
love.graphics.setColor(1, 1, 1)
love.graphics.draw(images.spriteSheet, images.tiles[ data[y][x] ], (x-1)*32, (y-1)*32, 0, 1, 1)
end
end
end
end
return mm
|
object_tangible_lair_base_shared_eow_imperial_power_gen = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/lair/base/shared_eow_imperial_power_gen.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_lair_base_shared_eow_imperial_power_gen, "object/tangible/lair/base/shared_eow_imperial_power_gen.iff")
------------------------------------------------------------------------------------------------------------------------------------
object_tangible_lair_base_shared_eow_power_transformer_imperial = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/lair/base/shared_eow_power_transformer_imperial.iff"
}
ObjectTemplates:addClientTemplate(object_tangible_lair_base_shared_eow_power_transformer_imperial, "object/tangible/lair/base/shared_eow_power_transformer_imperial.iff")
------------------------------------------------------------------------------------------------------------------------------------
|
local _, NeP = ...
-- Locals
local GetActionInfo = GetActionInfo
local ActionButton_CalculateAction = ActionButton_CalculateAction
local GetSpellInfo = GetSpellInfo
local wipe = wipe
NeP.Buttons = {}
local nBars = {
"ActionButton",
"MultiBarBottomRightButton",
"MultiBarBottomLeftButton",
"MultiBarRightButton",
"MultiBarLeftButton"
}
local function UpdateButtons()
wipe(NeP.Buttons)
for _, group in ipairs(nBars) do
for i =1, 12 do
local button = _G[group .. i]
if button then
local actionType, id = GetActionInfo(ActionButton_CalculateAction(button, "LeftButton"))
if actionType == 'spell' then
local spell = GetSpellInfo(id)
if spell then
NeP.Buttons[spell] = button
end
end
end
end
end
end
NeP.Listener:Add('NeP_Buttons','PLAYER_ENTERING_WORLD', function ()
UpdateButtons()
end)
NeP.Listener:Add('NeP_Buttons','ACTIONBAR_SLOT_CHANGED', function ()
UpdateButtons()
end)
|
msg1 = "Obim kvadrata je "
msg2 = " cm. Kolika je dužina njegove stranice?"
msg3 = "Obim pravougaonika je "
msg4 = " cm. Jedna njegova stranica je "
msg5 = " puta kraća od druge. Kolika je dužina kraće stranice tog pravougaonika?" |
local cv = require 'cv._env'
require 'cutorch'
-- TODO: remove this after gathering all CUDA packages in a single submodule
cv.cuda = cv.cuda or require 'cv._env_cuda'
local ffi = require 'ffi'
ffi.cdef[[
struct PtrWrapper HOG_ctorCuda(
struct SizeWrapper win_size, struct SizeWrapper block_size,
struct SizeWrapper block_stride, struct SizeWrapper cell_size, int nbins);
void HOG_setWinSigmaCuda(struct PtrWrapper ptr, double val);
double HOG_getWinSigmaCuda(struct PtrWrapper ptr);
void HOG_setL2HysThresholdCuda(struct PtrWrapper ptr, double val);
double HOG_getL2HysThresholdCuda(struct PtrWrapper ptr);
void HOG_setGammaCorrectionCuda(struct PtrWrapper ptr, bool val);
bool HOG_getGammaCorrectionCuda(struct PtrWrapper ptr);
void HOG_setNumLevelsCuda(struct PtrWrapper ptr, int val);
int HOG_getNumLevelsCuda(struct PtrWrapper ptr);
void HOG_setHitThresholdCuda(struct PtrWrapper ptr, double val);
double HOG_getHitThresholdCuda(struct PtrWrapper ptr);
void HOG_setWinStrideCuda(struct PtrWrapper ptr, struct SizeWrapper val);
struct SizeWrapper HOG_getWinStrideCuda(struct PtrWrapper ptr);
void HOG_setScaleFactorCuda(struct PtrWrapper ptr, double val);
double HOG_getScaleFactorCuda(struct PtrWrapper ptr);
void HOG_setGroupThresholdCuda(struct PtrWrapper ptr, int val);
int HOG_getGroupThresholdCuda(struct PtrWrapper ptr);
void HOG_setDescriptorFormatCuda(struct PtrWrapper ptr, int val);
int HOG_getDescriptorFormatCuda(struct PtrWrapper ptr);
size_t HOG_getDescriptorSizeCuda(struct PtrWrapper ptr);
size_t HOG_getBlockHistogramSizeCuda(struct PtrWrapper ptr);
void HOG_setSVMDetectorCuda(struct PtrWrapper ptr, struct TensorWrapper val);
struct TensorWrapper HOG_getDefaultPeopleDetectorCuda(struct PtrWrapper ptr);
struct TensorPlusPointArray HOG_detectCuda(
struct cutorchInfo info, struct PtrWrapper ptr, struct TensorWrapper img);
struct TensorPlusRectArray HOG_detectMultiScaleCuda(
struct cutorchInfo info, struct PtrWrapper ptr, struct TensorWrapper img);
struct TensorWrapper HOG_computeCuda(
struct cutorchInfo info, struct PtrWrapper ptr, struct TensorWrapper img,
struct TensorWrapper descriptors);
struct PtrWrapper CascadeClassifier_ctor_filenameCuda(const char *filename);
struct PtrWrapper CascadeClassifier_ctor_fileCuda(struct FileStoragePtr file);
void CascadeClassifier_setMaxObjectSizeCuda(struct PtrWrapper ptr, struct SizeWrapper val);
struct SizeWrapper CascadeClassifier_getMaxObjectSizeCuda(struct PtrWrapper ptr);
void CascadeClassifier_setMinObjectSizeCuda(struct PtrWrapper ptr, struct SizeWrapper val);
struct SizeWrapper CascadeClassifier_getMinObjectSizeCuda(struct PtrWrapper ptr);
void CascadeClassifier_setScaleFactorCuda(struct PtrWrapper ptr, double val);
double CascadeClassifier_getScaleFactorCuda(struct PtrWrapper ptr);
void CascadeClassifier_setMinNeighborsCuda(struct PtrWrapper ptr, int val);
int CascadeClassifier_getMinNeighborsCuda(struct PtrWrapper ptr);
void CascadeClassifier_setFindLargestObjectCuda(struct PtrWrapper ptr, bool val);
bool CascadeClassifier_getFindLargestObjectCuda(struct PtrWrapper ptr);
void CascadeClassifier_setMaxNumObjectsCuda(struct PtrWrapper ptr, int val);
int CascadeClassifier_getMaxNumObjectsCuda(struct PtrWrapper ptr);
struct SizeWrapper CascadeClassifier_getClassifierSizeCuda(struct PtrWrapper ptr);
struct TensorWrapper CascadeClassifier_detectMultiScaleCuda(
struct cutorchInfo info, struct PtrWrapper ptr,
struct TensorWrapper image, struct TensorWrapper objects);
struct RectArray CascadeClassifier_convertCuda(
struct PtrWrapper ptr, struct TensorWrapper gpu_objects);
]]
local C = ffi.load(cv.libPath('cudaobjdetect'))
require 'cv.Classes'
local Classes = ffi.load(cv.libPath('Classes'))
do
local HOG = torch.class('cuda.HOG', 'cv.Algorithm', cv.cuda)
function HOG:__init(t)
local argRules = {
{"win_size", default = {64, 128}, operator = cv.Size},
{"block_size", default = {16, 16}, operator = cv.Size},
{"block_stride", default = {8, 8}, operator = cv.Size},
{"cell_size", default = {8, 8}, operator = cv.Size},
{"nbins", default = 9}
}
self.ptr = ffi.gc(C.HOG_ctorCuda(cv.argcheck(t, argRules)), Classes.Algorithm_dtor)
end
function HOG:setWinSigma(t)
local argRules = {
{"val", required = true}
}
C.HOG_setWinSigmaCuda(self.ptr, cv.argcheck(t, argRules))
end
function HOG:getWinSigma()
return C.HOG_getWinSigmaCuda(self.ptr)
end
function HOG:setL2HysThreshold(t)
local argRules = {
{"val", required = true}
}
C.HOG_setL2HysThresholdCuda(self.ptr, cv.argcheck(t, argRules))
end
function HOG:getL2HysThreshold()
return C.HOG_getL2HysThresholdCuda(self.ptr)
end
function HOG:setGammaCorrection(t)
local argRules = {
{"val", required = true}
}
C.HOG_setGammaCorrectionCuda(self.ptr, cv.argcheck(t, argRules))
end
function HOG:getGammaCorrection()
return C.HOG_getGammaCorrectionCuda(self.ptr)
end
function HOG:setNumLevels(t)
local argRules = {
{"val", required = true}
}
C.HOG_setNumLevelsCuda(self.ptr, cv.argcheck(t, argRules))
end
function HOG:getNumLevels()
return C.HOG_getNumLevelsCuda(self.ptr)
end
function HOG:setHitThreshold(t)
local argRules = {
{"val", required = true}
}
C.HOG_setHitThresholdCuda(self.ptr, cv.argcheck(t, argRules))
end
function HOG:getHitThreshold()
return C.HOG_getHitThresholdCuda(self.ptr)
end
function HOG:setWinStride(t)
local argRules = {
{"val", required = true, operator = cv.Size}
}
C.HOG_setWinStrideCuda(self.ptr, cv.argcheck(t, argRules))
end
function HOG:getWinStride()
return C.HOG_getWinStrideCuda(self.ptr)
end
function HOG:setScaleFactor(t)
local argRules = {
{"val", required = true}
}
C.HOG_setScaleFactorCuda(self.ptr, cv.argcheck(t, argRules))
end
function HOG:getScaleFactor()
return C.HOG_getScaleFactorCuda(self.ptr)
end
function HOG:setGroupThreshold(t)
local argRules = {
{"val", required = true}
}
C.HOG_setGroupThresholdCuda(self.ptr, cv.argcheck(t, argRules))
end
function HOG:getGroupThreshold()
return C.HOG_getGroupThresholdCuda(self.ptr)
end
function HOG:setDescriptorFormat(t)
local argRules = {
{"val", required = true}
}
C.HOG_setDescriptorFormatCuda(self.ptr, cv.argcheck(t, argRules))
end
function HOG:getDescriptorFormat()
return C.HOG_getDescriptorFormatCuda(self.ptr)
end
function HOG:getDescriptorSize()
return C.HOG_getDescriptorSizeCuda(self.ptr)
end
function HOG:getBlockHistogramSize()
return C.HOG_getBlockHistogramSizeCuda(self.ptr)
end
function HOG:setSVMDetector(t)
local argRules = {
{"val", required = true, operator = cv.wrap_tensor}
}
C.HOG_setSVMDetectorCuda(self.ptr, cv.argcheck(t, argRules))
end
function HOG:getDefaultPeopleDetector()
return cv.unwrap_tensors(C.HOG_getDefaultPeopleDetectorCuda(self.ptr))
end
function HOG:detect(t)
local argRules = {
{"img", required = true, operator = cv.wrap_tensor}
}
local retval = C.HOG_detectCuda(cv.cuda._info(), self.ptr, cv.argcheck(t, argRules))
return retval.points, cv.unwrap_tensors(retval.tensor)
end
function HOG:detectMultiScale(t)
local argRules = {
{"img", required = true, operator = cv.wrap_tensor}
}
local retval = C.HOG_detectMultiScaleCuda(cv.cuda._info(), self.ptr, cv.argcheck(t, argRules))
return retval.rects, cv.unwrap_tensors(retval.tensor)
end
function HOG:compute(t)
local argRules = {
{"img", required = true, operator = cv.wrap_tensor},
{"descriptors", default = nil, operator = cv.wrap_tensor}
}
return cv.unwrap_tensors(C.HOG_computeCuda(
cv.cuda._info(), self.ptr, cv.argcheck(t, argRules)))
end
end
do
local CascadeClassifier = torch.class('cuda.CascadeClassifier', 'cv.Algorithm', cv.cuda)
function CascadeClassifier:__init(t)
local argRules = {
{"file_or_filename", required = true}
}
local f = cv.argcheck(t, argRules)
if type(f) == 'string' then
self.ptr = ffi.gc(C.CascadeClassifier_ctor_filenameCuda(f), Classes.Algorithm_dtor)
else
self.ptr = ffi.gc(C.CascadeClassifier_ctor_fileCuda(f), Classes.Algorithm_dtor)
end
end
function CascadeClassifier:setMaxObjectSize(t)
local argRules = {
{"val", required = true, operator = cv.Size}
}
C.CascadeClassifier_setMaxObjectSizeCuda(self.ptr, cv.argcheck(t, argRules))
end
function CascadeClassifier:getMaxObjectSize()
return C.CascadeClassifier_getMaxObjectSizeCuda(self.ptr)
end
function CascadeClassifier:setMinObjectSize(t)
local argRules = {
{"val", required = true, operator = cv.Size}
}
C.CascadeClassifier_setMinObjectSizeCuda(self.ptr, cv.argcheck(t, argRules))
end
function CascadeClassifier:getMinObjectSize()
return C.CascadeClassifier_getMinObjectSizeCuda(self.ptr)
end
function CascadeClassifier:setScaleFactor(t)
local argRules = {
{"val", required = true}
}
C.CascadeClassifier_setScaleFactorCuda(self.ptr, cv.argcheck(t, argRules))
end
function CascadeClassifier:getScaleFactor()
return C.CascadeClassifier_getScaleFactorCuda(self.ptr)
end
function CascadeClassifier:setMinNeighbors(t)
local argRules = {
{"val", required = true}
}
C.CascadeClassifier_setMinNeighborsCuda(self.ptr, cv.argcheck(t, argRules))
end
function CascadeClassifier:getMinNeighbors()
return C.CascadeClassifier_getMinNeighborsCuda(self.ptr)
end
function CascadeClassifier:setFindLargestObject(t)
local argRules = {
{"val", required = true}
}
C.CascadeClassifier_setFindLargestObjectCuda(self.ptr, cv.argcheck(t, argRules))
end
function CascadeClassifier:getFindLargestObject()
return C.CascadeClassifier_getFindLargestObjectCuda(self.ptr)
end
function CascadeClassifier:setMaxNumObjects(t)
local argRules = {
{"val", required = true}
}
C.CascadeClassifier_setMaxNumObjectsCuda(self.ptr, cv.argcheck(t, argRules))
end
function CascadeClassifier:getMaxNumObjects()
return C.CascadeClassifier_getMaxNumObjectsCuda(self.ptr)
end
function CascadeClassifier:getClassifierSize()
return C.CascadeClassifier_getClassifierSizeCuda(self.ptr)
end
function CascadeClassifier:detectMultiScale(t)
local argRules = {
{"image", required = true, operator = cv.wrap_tensor},
{"objects", default = nil, operator = cv.wrap_tensor}
}
return cv.unwrap_tensors(C.CascadeClassifier_detectMultiScaleCuda(
cv.cuda._info(), self.ptr, cv.argcheck(t, argRules)))
end
function CascadeClassifier:convert(t)
local argRules = {
{"gpu_objects", required = true, operator = cv.wrap_tensor}
}
return C.CascadeClassifier_convertCuda(self.ptr, cv.argcheck(t, argRules))
end
end
return cv.cuda
|
local jid_split = require "util.jid".split;
local st = require "util.stanza";
local xmlns_blocking = "urn:xmpp:blocking";
module:add_feature("urn:xmpp:blocking");
-- Add JID to default privacy list
function add_blocked_jid(username, host, jid)
local privacy_lists = datamanager.load(username, host, "privacy") or {lists = {}};
local default_list_name = privacy_lists.default;
if not privacy_lists.lists then
privacy_lists.lists = {}
end
if not default_list_name then
default_list_name = "blocklist";
privacy_lists.default = default_list_name;
end
local default_list = privacy_lists.lists[default_list_name];
if not default_list then
default_list = { name = default_list_name, items = {} };
privacy_lists.lists[default_list_name] = default_list;
end
local items = default_list.items;
local order = items[1] and items[1].order or 0; -- Must come first
for i=1,#items do -- order must be unique
local item = items[i];
item.order = item.order + 1;
if item.type == "jid" and item.action == "deny" and item.value == jid then
return false;
end
end
table.insert(items, 1, { type = "jid"
, action = "deny"
, value = jid
, message = false
, ["presence-out"] = false
, ["presence-in"] = false
, iq = false
, order = order
});
datamanager.store(username, host, "privacy", privacy_lists);
return true;
end
-- Remove JID from default privacy list
function remove_blocked_jid(username, host, jid)
local privacy_lists = datamanager.load(username, host, "privacy") or {};
local default_list_name = privacy_lists.default;
if not default_list_name then return; end
local default_list = privacy_lists.lists[default_list_name];
if not default_list then return; end
local items = default_list.items;
local item, removed = nil, false;
for i=1,#items do -- order must be unique
item = items[i];
if item.type == "jid" and item.action == "deny" and item.value == jid then
table.remove(items, i);
removed = true;
break;
end
end
if removed then
datamanager.store(username, host, "privacy", privacy_lists);
end
return removed;
end
function remove_all_blocked_jids(username, host)
local privacy_lists = datamanager.load(username, host, "privacy") or {};
local default_list_name = privacy_lists.default;
if not default_list_name then return; end
local default_list = privacy_lists.lists[default_list_name];
if not default_list then return; end
local items = default_list.items;
local item;
for i=#items,1,-1 do -- order must be unique
item = items[i];
if item.type == "jid" and item.action == "deny" then
table.remove(items, i);
end
end
datamanager.store(username, host, "privacy", privacy_lists);
return true;
end
function get_blocked_jids(username, host)
-- Return array of blocked JIDs in default privacy list
local privacy_lists = datamanager.load(username, host, "privacy") or {};
local default_list_name = privacy_lists.default;
if not default_list_name then return {}; end
local default_list = privacy_lists.lists[default_list_name];
if not default_list then return {}; end
local items = default_list.items;
local item;
local jid_list = {};
for i=1,#items do -- order must be unique
item = items[i];
if item.type == "jid" and item.action == "deny" then
jid_list[#jid_list+1] = item.value;
end
end
return jid_list;
end
local function send_push_iqs(username, host, command_type, jids)
local bare_jid = username.."@"..host;
local stanza_content = st.stanza(command_type, { xmlns = xmlns_blocking });
for _, jid in ipairs(jids) do
stanza_content:tag("item", { jid = jid }):up();
end
for resource, session in pairs(prosody.bare_sessions[bare_jid].sessions) do
local iq_push_stanza = st.iq({ type = "set", to = bare_jid.."/"..resource });
iq_push_stanza:add_child(stanza_content);
session.send(iq_push_stanza);
end
end
function handle_blocking_command(event)
local session, stanza = event.origin, event.stanza;
local username, host = jid_split(stanza.attr.from);
if stanza.attr.type == "set" then
if stanza.tags[1].name == "block" then
local block = stanza.tags[1];
local block_jid_list = {};
for item in block:childtags() do
block_jid_list[#block_jid_list+1] = item.attr.jid;
end
if #block_jid_list == 0 then
session.send(st.error_reply(stanza, "modify", "bad-request"));
else
for _, jid in ipairs(block_jid_list) do
add_blocked_jid(username, host, jid);
end
session.send(st.reply(stanza));
send_push_iqs(username, host, "block", block_jid_list);
end
return true;
elseif stanza.tags[1].name == "unblock" then
local unblock = stanza.tags[1];
local unblock_jid_list = {};
for item in unblock:childtags() do
unblock_jid_list[#unblock_jid_list+1] = item.attr.jid;
end
if #unblock_jid_list == 0 then
remove_all_blocked_jids(username, host);
else
for _, jid_to_unblock in ipairs(unblock_jid_list) do
remove_blocked_jid(username, host, jid_to_unblock);
end
end
session.send(st.reply(stanza));
send_push_iqs(username, host, "unblock", unblock_jid_list);
return true;
end
elseif stanza.attr.type == "get" and stanza.tags[1].name == "blocklist" then
local reply = st.reply(stanza):tag("blocklist", { xmlns = xmlns_blocking });
local blocked_jids = get_blocked_jids(username, host);
for _, jid in ipairs(blocked_jids) do
reply:tag("item", { jid = jid }):up();
end
session.send(reply);
return true;
end
end
module:hook("iq/self/urn:xmpp:blocking:blocklist", handle_blocking_command);
module:hook("iq/self/urn:xmpp:blocking:block", handle_blocking_command);
module:hook("iq/self/urn:xmpp:blocking:unblock", handle_blocking_command);
|
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Misc")
local M = _Misc
local mod = M:NewModule("TotemBar", "AceEvent-3.0")
local eventFrame = CreateFrame("Frame")
local function Update(self,event)
local displayedTotems = 0
for i=1, MAX_TOTEMS do
local haveTotem, name, startTime, duration, icon = GetTotemInfo(i);
if haveTotem and icon and icon ~= "" then
mod.totembar[i]:Show()
mod.totembar[i].iconTexture:SetTexture(icon)
displayedTotems = displayedTotems + 1
CooldownFrame_Set(mod.totembar[i].cooldown, startTime, duration, true)
for d=1, MAX_TOTEMS do
if _G["TotemFrameTotem"..d.."IconTexture"]:GetTexture() == icon then
_G["TotemFrameTotem"..d]:ClearAllPoints();
_G["TotemFrameTotem"..d]:SetParent(mod.totembar[i].holder);
_G["TotemFrameTotem"..d]:SetAllPoints(mod.totembar[i].holder);
end
end
else
mod.totembar[i]:Hide()
end
end
end
function mod:ToggleTotemEnable()
if M.db.totembar.enable then
self.totembar:Show()
eventFrame:RegisterEvent("PLAYER_TOTEM_UPDATE", Update)
eventFrame:RegisterEvent("PLAYER_ENTERING_WORLD", Update)
eventFrame:SetScript("OnEvent", Update)
Update()
else
self.totembar:Hide()
eventFrame:UnregisterEvent("PLAYER_TOTEM_UPDATE")
eventFrame:UnregisterEvent("PLAYER_ENTERING_WORLD")
end
end
function mod:PositionAndSizeTotem()
local db = M.db.totembar
for i=1, MAX_TOTEMS do
local button = self.totembar[i]
local prevButton = self.totembar[i-1]
button:Size(db.size)
button:ClearAllPoints()
if db.growthDirection == "HORIZONTAL" and db.sortDirection == "ASCENDING" then
if i == 1 then
button:SetPoint("LEFT", self.totembar, "LEFT", 0, 0)
elseif prevButton then
button:SetPoint("LEFT", prevButton, "RIGHT", db.spacing, 0)
end
elseif db.growthDirection == "VERTICAL" and db.sortDirection == "ASCENDING" then
if i == 1 then
button:SetPoint("TOP", self.totembar, "TOP", 0, 0)
elseif prevButton then
button:SetPoint("TOP", prevButton, "BOTTOM", 0, -db.spacing)
end
elseif db.growthDirection == "HORIZONTAL" and db.sortDirection == "DESCENDING" then
if i == 1 then
button:SetPoint("RIGHT", self.totembar, "RIGHT", 0, 0)
elseif prevButton then
button:SetPoint("RIGHT", prevButton, "LEFT", -db.spacing, 0)
end
else
if i == 1 then
button:SetPoint("BOTTOM", self.totembar, "BOTTOM", 0, 0)
elseif prevButton then
button:SetPoint("BOTTOM", prevButton, "TOP", 0, db.spacing)
end
end
end
if db.growthDirection == "HORIZONTAL" then
self.totembar:Width(db.size*(MAX_TOTEMS) + db.spacing*(MAX_TOTEMS) + db.spacing)
self.totembar:Height(db.size + db.spacing*2)
else
self.totembar:Height(db.size*(MAX_TOTEMS) + db.spacing*(MAX_TOTEMS) + db.spacing)
self.totembar:Width(db.size + db.spacing*2)
end
Update()
end
function mod:Initialize()
local bar = CreateFrame("Frame", "RayUI_TotemBar", R.UIParent)
bar:SetPoint("TOPRIGHT", RayUIActionBar1, "TOPLEFT", -4, 0)
self.totembar = bar;
for i=1, MAX_TOTEMS do
local frame = CreateFrame("Button", bar:GetName().."Totem"..i, bar)
frame:SetID(i)
frame:CreateShadow("Background")
frame:StyleButton(true)
frame:Hide()
frame.holder = CreateFrame("Frame", nil, frame)
frame.holder:SetAlpha(0)
frame.holder:SetAllPoints()
frame.iconTexture = frame:CreateTexture(nil, "ARTWORK")
frame.iconTexture:SetInside(2)
frame.iconTexture:SetTexCoord(.08, .92, .08, .92)
frame.cooldown = CreateFrame("Cooldown", frame:GetName().."Cooldown", frame, "CooldownFrameTemplate")
frame.cooldown:SetReverse(true)
frame.cooldown:SetInside(2)
self.totembar[i] = frame
end
self:ToggleTotemEnable()
self:PositionAndSizeTotem()
R:CreateMover(bar, "TotemBarMover", L["图腾条"]);
end
M:RegisterMiscModule(mod:GetName())
|
SceneManager = require("SceneManager")
ArchiveManager = require("ArchiveManager")
VictoryScene = {}
VictoryScene.name = "VictoryScene"
local _FONT_ = nil
local _TEXTS_ = {"你打败了他……", "虽然,你仍可以有其他选择……"}
local _COLOR_TEXT_ = {r = 137, g = 195, b = 235, a = 255}
local _TEXT_SHOW_DELAY_ = 240
local _RECTS_TEXT_ = nil
local _window_width, _window_height = GetWindowSize()
local _image_Text_1 = nil
local _image_Text_2 = nil
local _texture_Text_1 = nil
local _texture_Text_2 = nil
local _width_image_text_1, _height_image_text_1 = nil, nil
local _width_image_text_2, _height_image_text_2 = nil, nil
local _timer_show = 0
local _alpha = 255
local function _FadeOut()
SetDrawColor({r = 0, g = 0, b = 0, a = 15})
for i = 1, 100 do
FillRectangle({x = 0, y = 0, w = _window_width, h = _window_height})
UpdateWindow()
Sleep(10)
end
end
function VictoryScene.Init()
SceneManager.ClearWindowWhenUpdate = false
_FONT_ = LoadFont("./Resource/Font/YGYCY.TTF", 80)
_image_Text_1 = CreateUTF8TextImageBlended(_FONT_, _TEXTS_[1], _COLOR_TEXT_)
_image_Text_2 = CreateUTF8TextImageBlended(_FONT_, _TEXTS_[2], _COLOR_TEXT_)
_texture_Text_1 = CreateTexture(_image_Text_1)
_texture_Text_2 = CreateTexture(_image_Text_2)
_width_image_text_1, _height_image_text_1 = GetImageSize(_image_Text_1)
_width_image_text_2, _height_image_text_2 = GetImageSize(_image_Text_2)
_RECTS_TEXT_ = {
{x = _window_width / 2 - _width_image_text_1 / 2, y = _window_height / 2 - _height_image_text_1 / 2 - 100, w = _width_image_text_1, h = _height_image_text_1},
{x = _window_width / 2 - _width_image_text_2 / 2, y = _window_height / 2 + _height_image_text_1 / 2 + 50, w = _width_image_text_2, h = _height_image_text_2},
}
end
function VictoryScene.Update()
UpdateEvent()
if _alpha > 0 then _alpha = _alpha - 5 end
if _timer_show > _TEXT_SHOW_DELAY_ then
_FadeOut()
SceneManager.SetQuitHandler(function() return true end)
SceneManager.Quit()
return
else
_timer_show = _timer_show + 1
end
CopyTexture(_texture_Text_1, _RECTS_TEXT_[1])
CopyTexture(_texture_Text_2, _RECTS_TEXT_[2])
SetDrawColor({r = 0, g = 0, b = 0, a = _alpha})
FillRectangle({x = 0, y = 0, w = _window_width, h = _window_height})
end
function VictoryScene.Unload()
ArchiveManager.SetData("_dialogue_list_index", 1)
ArchiveManager.SetData("_dialogue_text_index", 1)
ArchiveManager.SetData("choice", 0)
ArchiveManager.DumpArchive()
ArchiveManager.CloseArchive()
UnloadFont(_FONT_)
DestroyTexture(_texture_Text_1)
DestroyTexture(_texture_Text_2)
UnloadImage(_image_Text_1)
UnloadImage(_image_Text_2)
end
return VictoryScene |
--[[
Written by Syranide, [email protected]
fixed and updated by minifisch, [email protected]
big thanks to Syranide! :)
]]
--
if SERVER then
AddCSLuaFile()
end
if CLIENT then
local target = {
active = false
}
local snaptarget = {
active = false
}
local snapkey = false
local snaptime = false
local snaplock = false
local snapclick = false
local snapclickfade = 0
local snapcursor = false
local snapspawnmenu = false
local cache = {
vPlayerPos = 0,
vLookPos = 0,
vLookClipPos = 0,
vLookVector = 0
}
local condefs = {
snap_enabled = 1,
snap_gcboost = 1,
snap_gcstrength = 125,
snap_hidegrid = 0,
snap_clickgrid = 0,
snap_toggledelay = 0,
snap_disableuse = 0,
snap_allentities = 0,
snap_alltools = 0,
snap_enabletoggle = 0,
snap_lockdelay = 0.5,
snap_distance = 250,
snap_gridlimit = 16,
snap_gridsize = 8,
snap_gridalpha = 0.4,
snap_gridoffset = 0.5,
snap_boundingbox = 1,
snap_revertaim = 1,
snap_centerline = 1
}
local convars = {}
for key, value in pairs(condefs) do
convars[#convars + 1] = key
end
local modelsaveset = {}
local modeloffsets = {}
local function DrawScreenLine(vsA, vsB)
surface.DrawLine(vsA.x, vsA.y, vsB.x, vsB.y)
end
local function ToScreen(vWorld)
local vsScreen = vWorld:ToScreen()
return Vector(vsScreen.x, vsScreen.y, 0)
end
local function PointToScreen(vPoint)
if cache.vLookVector:DotProduct(vPoint - cache.vLookClipPos) > 0 then return ToScreen(vPoint) end
end
local function LineToScreen(vStart, vEnd)
local dotStart = cache.vLookVector:DotProduct(vStart - cache.vLookClipPos)
local dotEnd = cache.vLookVector:DotProduct(vEnd - cache.vLookClipPos)
if dotStart > 0 and dotEnd > 0 then
return ToScreen(vStart), ToScreen(vEnd)
elseif dotStart > 0 or dotEnd > 0 then
local vLength = vEnd - vStart
local vIntersect = vStart + vLength * ((cache.vLookClipPos:DotProduct(cache.vLookVector) - vStart:DotProduct(cache.vLookVector)) / vLength:DotProduct(cache.vLookVector))
if dotStart <= 0 then
return ToScreen(vIntersect), ToScreen(vEnd)
else
return ToScreen(vStart), ToScreen(vIntersect)
end
end
end
local function RayQuadIntersect(vOrigin, vDirection, vPlane, vX, vY)
local vp = vDirection:Cross(vY)
local d = vX:DotProduct(vp)
if (d <= 0.0) then return end
local vt = vOrigin - vPlane
local u = vt:DotProduct(vp)
if (u < 0.0 or u > d) then return end
local v = vDirection:DotProduct(vt:Cross(vX))
if (v < 0.0 or v > d) then return end
return Vector(u / d, v / d, 0)
end
local function OnInitialize()
for key, value in pairs(condefs) do
CreateClientConVar(key, value, true, false)
end
for _, filename in ipairs(file.Find('smartsnap_offsets_*.png', "GAME")) do
local file = file.Read(filename)
if file then
lines = string.Explode("\n", file)
header = table.remove(lines, 1)
if header == "SMARTSNAP_OFFSETS" then
for _, line in ipairs(lines) do
local pos = string.find(line, '=')
if pos then
local key = string.lower(string.Trim(string.sub(line, 1, pos - 1)))
local value = string.Trim(string.sub(line, pos + 1))
local c = string.Explode(",", value)
modeloffsets[key] = {tonumber(c[1]), tonumber(c[2]), tonumber(c[3]), tonumber(c[4]), tonumber(c[5]), tonumber(c[6])}
end
end
end
end
end
end
local function OnShutDown()
output = file.Read('smartsnap_offsets_custom.png')
if output == nil then
output = "SMARTSNAP_OFFSETS\n"
end
for model, _ in pairs(modelsaveset) do
output = output .. model .. '=' .. table.concat(modeloffsets[model], ",") .. "\n"
end
file.Write('smartsnap_offsets_custom.png', output)
end
local function GetDevOffset()
local model = string.lower(target.entity:GetModel())
if modeloffsets[model] == nil then
modeloffsets[model] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0}
end
return modeloffsets[model]
end
concommand.Add("snap_dev_alloffset", function(player, command, arguments)
if target.active == true then
if #arguments >= 1 then
local v = GetDevOffset()
for i = 1, 6 do
v[i] = v[i] + tonumber(arguments[1])
end
end
end
end)
concommand.Add("snap_dev_gridoffset", function(player, command, arguments)
if target.active == true then
if #arguments >= 1 then
local v = GetDevOffset()
v[target.face] = v[target.face] + tonumber(arguments[1])
end
end
end)
concommand.Add("snap_dev_saveoffset", function(player, command, arguments)
if target.active == true then
local v = GetDevOffset()
modelsaveset[string.lower(target.entity:GetModel())] = true
end
end)
local function SnapToggleGrid()
if (GetConVarNumber("snap_enabled") == 0) then
RunConsoleCommand('snap_enabled', '1')
else
RunConsoleCommand('snap_enabled', '0')
end
end
local function SnapPress()
if GetConVarNumber("snap_clickgrid") ~= 0 and not snapclick then
snapclick = true
snapclickfade = CurTime()
elseif GetConVarNumber("snap_clickgrid") == 0 or snapclick then
if (snaplock or snapcursor) then
snaptime = false
else
local toggledelay = GetConVarNumber("snap_toggledelay")
if (toggledelay > 0 and snaptime and snaptime + toggledelay > CurTime()) then
SnapToggleGrid()
snaptime = false
snaplock = false
else
snaptime = CurTime()
end
end
snapkey = target.active
if (not snapcursor) then
snaplock = false
end
end
end
local function SnapRelease()
snapkey = false
end
local function SnapLock()
snaplock = not snaplock
end
local function OnSpawnMenu()
snapspawnmenu = true
end
local function OnKeyPress(player, key)
if (key == IN_USE and GetConVarNumber("snap_disableuse") == 0) then
SnapPress()
end
end
local function OnKeyRelease(player, key)
if (key == IN_USE and GetConVarNumber("snap_disableuse") == 0) then
SnapRelease()
end
end
local function OnThink()
if (vgui.CursorVisible()) then
if (not snapcursor and snaplock) then
snaptarget = table.Copy(target)
end
snaptime = false
snapcursor = true
else
if (snapcursor and snaplock) then
target = snaptarget
end
snapspawnmenu = false
snapcursor = false
end
if (GetConVarNumber("snap_enabletoggle") ~= 0) then
if (snapkey and snaptime and not snaplock) then
if (CurTime() > snaptime + GetConVarNumber("snap_lockdelay")) then
snaplock = true
snaptime = false
end
end
end
local locked = target.locked and target.active
target.locked = (snapkey or snaplock and not snapcursor) and target.active
if (not target.locked and locked and GetConVarNumber("snap_revertaim") ~= 0) then
if (snapcursor) then
local screen = target.entity:LocalToWorld(target.vector):ToScreen()
gui.SetMousePos(math.Round(screen.x), math.Round(screen.y))
else
local angles = (target.entity:LocalToWorld(target.vector) - LocalPlayer():GetShootPos()):Angle()
LocalPlayer():SetEyeAngles(angles)
end
end
end
local function CalculateGridAxis(L)
local length = L:Length()
local grid = math.Clamp(math.floor(length / (2 * GetConVarNumber("snap_gridsize"))) * 2, 2, GetConVarNumber("snap_gridlimit"))
local offset = math.Clamp(GetConVarNumber("snap_gridoffset") / length, 0, 1 / grid)
local scale = 1 - offset * 2
return {
length = length,
offset = offset,
scale = scale,
grid = grid
}
end
local function CalculateSnap(X, Y, v)
local LX = CalculateGridAxis(X)
local LY = CalculateGridAxis(Y)
local BX = math.Clamp(math.Round(v.x * LX.grid), 0, LX.grid)
local BY = math.Clamp(math.Round(v.y * LY.grid), 0, LY.grid)
if BX == 1 and v.x < (1 / LX.grid + LX.offset) / 2 then
BX = 0
end
if BX == LX.grid - 1 and v.x > 1 - (1 / LX.grid + LX.offset) / 2 then
BX = LX.grid
end
if BY == 1 and v.y < (1 / LY.grid + LY.offset) / 2 then
BY = 0
end
if BY == LY.grid - 1 and v.y > 1 - (1 / LY.grid + LY.offset) / 2 then
BY = LY.grid
end
local RX = X * (BX / LX.grid)
local RY = Y * (BY / LY.grid)
if BX == 0 then
RX = X * math.Clamp(LX.offset, 0, 1 / LX.grid)
end
if BX == LX.grid then
RX = X * (1 - math.Clamp(LX.offset, 0, 1 / LX.grid))
end
if BY == 0 then
RY = Y * math.Clamp(LY.offset, 0, 1 / LY.grid)
end
if BY == LY.grid then
RY = Y * (1 - math.Clamp(LY.offset, 0, 1 / LY.grid))
end
return RX + RY
end
local function DrawGridLines(vOrigin, vSX, vSY, gridLines, offsetX, offsetY, sign)
local centerline = (GetConVarNumber("snap_centerline") ~= 0)
local vTemp = vOrigin + vSX * 0.5
local vX = vTemp + vSY * (offsetY)
local vY = vTemp + vSY * (1 - offsetY)
local vOffset, temp
local xtemp = ToScreen(vX) - ToScreen(vY)
xtemp:Normalize()
local vsNormal = xtemp
if math.abs(vsNormal.x) < 1 - math.abs(vsNormal.y) then
temp = -0.5 * sign
else
temp = 0.5 * sign
end
if math.abs(vsNormal.x) < math.abs(vsNormal.y) then
vsOffset = Vector(temp, 0, 0)
else
vsOffset = Vector(0, temp, 0)
end
if offsetX < 1 / gridLines then
local vTemp = vOrigin + vSX * offsetX
local vX = vTemp + vSY * offsetY
local vY = vTemp + vSY * (1 - offsetY)
local vsX, vsY = LineToScreen(vX, vY)
if (vsX) then
DrawScreenLine(vsX + vsOffset, vsY + vsOffset)
end
end
for i = 1, gridLines - 1 do
local vTemp = vOrigin + vSX * (i / gridLines)
local vX = vTemp + vSY * offsetY
local vY = vTemp + vSY * (1 - offsetY)
local vsX, vsY = LineToScreen(vX, vY)
if (vsX) then
if (gridLines / i == 2 and centerline) then
DrawScreenLine(vsX + vsOffset * -1, vsY + vsOffset * -1)
DrawScreenLine(vsX + vsOffset * 3, vsY + vsOffset * 3)
else
DrawScreenLine(vsX + vsOffset, vsY + vsOffset)
end
end
end
if offsetX < 1 / gridLines then
local vTemp = vOrigin + vSX * (1 - offsetX)
local vX = vTemp + vSY * offsetY
local vY = vTemp + vSY * (1 - offsetY)
local vsX, vsY = LineToScreen(vX, vY)
if (vsX) then
DrawScreenLine(vsX + vsOffset, vsY + vsOffset)
end
end
end
local function DrawGrid(vOrigin, vSX, vSY)
local LX = CalculateGridAxis(vSX)
local LY = CalculateGridAxis(vSY)
surface.SetDrawColor(0, 0, 0, math.Round(GetConVarNumber("snap_gridalpha") * 255))
DrawGridLines(vOrigin, vSX, vSY, LX.grid, LX.offset, LY.offset, 1)
DrawGridLines(vOrigin, vSY, vSX, LY.grid, LY.offset, LX.offset, 1)
surface.SetDrawColor(255, 255, 255, math.Round(GetConVarNumber("snap_gridalpha") * 255))
DrawGridLines(vOrigin, vSX, vSY, LX.grid, LX.offset, LY.offset, -1)
DrawGridLines(vOrigin, vSY, vSX, LY.grid, LY.offset, LX.offset, -1)
end
local function DrawBoundaryLines(vOrigin, vOpposite)
local vPoint
if (vOrigin:Distance(vOpposite) > 5) then
local x = vOpposite - vOrigin
x:Normalize()
vPoint = vOrigin + x * 5
else
vPoint = vOrigin + (vOpposite - vOrigin) / 2
end
local vsA, vsB = LineToScreen(vPoint, vOrigin)
if (vsA) then
surface.SetDrawColor(0, 0, 255, 192)
DrawScreenLine(vsA, vsB)
end
end
local function DrawBoundary(vOrigin, vX, vY, vZ)
DrawBoundaryLines(vOrigin, vX)
DrawBoundaryLines(vOrigin, vY)
DrawBoundaryLines(vOrigin, vZ)
end
local function DrawSnapCross(vsCenter, r, g, b)
surface.SetDrawColor(0, 0, 0, 255)
DrawScreenLine(vsCenter + Vector(-2.5, -2.0), vsCenter + Vector(2.5, 3.0))
DrawScreenLine(vsCenter + Vector(1.5, -2.0), vsCenter + Vector(-3.5, 3.0))
surface.SetDrawColor(r, g, b, 255)
DrawScreenLine(vsCenter + Vector(-1.5, -2.0), vsCenter + Vector(3.5, 3.0))
DrawScreenLine(vsCenter + Vector(2.5, -2.0), vsCenter + Vector(-2.5, 3.0))
end
local function ComputeEdges(entity, obbmax, obbmin)
return {
lsw = entity:LocalToWorld(Vector(obbmin.x, obbmin.y, obbmin.z)),
lse = entity:LocalToWorld(Vector(obbmax.x, obbmin.y, obbmin.z)),
lnw = entity:LocalToWorld(Vector(obbmin.x, obbmax.y, obbmin.z)),
lne = entity:LocalToWorld(Vector(obbmax.x, obbmax.y, obbmin.z)),
usw = entity:LocalToWorld(Vector(obbmin.x, obbmin.y, obbmax.z)),
use = entity:LocalToWorld(Vector(obbmax.x, obbmin.y, obbmax.z)),
unw = entity:LocalToWorld(Vector(obbmin.x, obbmax.y, obbmax.z)),
une = entity:LocalToWorld(Vector(obbmax.x, obbmax.y, obbmax.z))
}
end
local function OnPaintHUD()
target.active = false
if GetConVarNumber("snap_clickgrid") ~= 0 and not snapclick then return end
snapclickprev = snapclick
snapclick = snapclickprev and snapclickfade > CurTime()
if (GetConVarNumber("snap_enabled") == 0) then return end
if (not LocalPlayer():Alive() or LocalPlayer():InVehicle()) then return end
if (target.locked) then
if (not target.entity:IsValid()) then return end
else
local trace = LocalPlayer():GetEyeTrace()
cache.vLookTrace = trace
if (not trace.HitNonWorld) then return end
local entity = trace.Entity
if (entity == nil) then return end
if (not entity:IsValid()) then return end
local class = entity:GetClass()
if (class ~= 'prop_physics' and class ~= 'phys_magnet' and class ~= 'gmod_spawner' and GetConVarNumber('snap_allentities') == 0 or class == 'player') then return end
if (not LocalPlayer():GetActiveWeapon():IsValid()) then return end
if (LocalPlayer():GetActiveWeapon():GetClass() == 'weapon_physgun') then return end
if (LocalPlayer():GetActiveWeapon():GetClass() ~= 'gmod_tool' and GetConVarNumber('snap_alltools') == 0) then return end
target.entity = entity
end
--ErrorNoHalt(collectgarbage("count"))
if GetConVarNumber("snap_gcboost") ~= 0 then
collectgarbage("step", GetConVarNumber("snap_gcstrength"))
end
snapclick = snapclickprev
snapclickfade = CurTime() + 0.25
-- updating the cache perhaps shouldn't be done here, CalcView?
cache.vLookPos = LocalPlayer():GetShootPos()
cache.vLookVector = LocalPlayer():GetAimVector()
cache.vLookClipPos = cache.vLookPos + cache.vLookVector * 3
local model = string.lower(target.entity:GetModel())
local offsets = modeloffsets[model]
if not offsets then
local offset = 0.25
offsets = {offset, offset, offset, offset, offset, offset}
end
if cache.eEntity ~= target.entity or cache.vEntAngles ~= target.entity:GetAngles() or vEntPosition ~= target.entity:GetPos() then
cache.eEntity = target.entity
cache.vEntAngles = target.entity:GetAngles()
cache.vEntPosition = target.entity:GetPos()
local obbmax = target.entity:OBBMaxs()
local obbmin = target.entity:OBBMins()
local obvsnap = ComputeEdges(target.entity, obbmax, obbmin)
local obbmax = target.entity:OBBMaxs() - Vector(offsets[5], offsets[3], offsets[1])
local obbmin = target.entity:OBBMins() + Vector(offsets[6], offsets[4], offsets[2])
local obvgrid = ComputeEdges(target.entity, obbmax, obbmin)
local faces = {{obvgrid.unw, obvgrid.usw - obvgrid.unw, obvgrid.une - obvgrid.unw, obvgrid.lnw - obvgrid.unw, Vector(0, 0, -offsets[1])}, {obvgrid.lsw, obvgrid.lnw - obvgrid.lsw, obvgrid.lse - obvgrid.lsw, obvgrid.usw - obvgrid.lsw, Vector(0, 0, offsets[2])}, {obvgrid.unw, obvgrid.une - obvgrid.unw, obvgrid.lnw - obvgrid.unw, obvgrid.usw - obvgrid.unw, Vector(0, -offsets[3], 0)}, {obvgrid.usw, obvgrid.lsw - obvgrid.usw, obvgrid.use - obvgrid.usw, obvgrid.unw - obvgrid.usw, Vector(0, offsets[4], 0)}, {obvgrid.une, obvgrid.use - obvgrid.une, obvgrid.lne - obvgrid.une, obvgrid.unw - obvgrid.une, Vector(-offsets[5], 0, 0)}, {obvgrid.unw, obvgrid.lnw - obvgrid.unw, obvgrid.usw - obvgrid.unw, obvgrid.une - obvgrid.unw, Vector(offsets[6], 0, 0)}}
cache.aGrid = obvgrid
cache.aSnap = obvsnap
cache.aFaces = faces
end
local obvgrid = cache.aGrid
local obvsnap = cache.aSnap
local faces = cache.aFaces
if (not target.locked) then
-- should improve this by expanding the bounding box or something instead!
-- create a larger bounding box and then planes for each side, and check distance from the plane
-- separate function perhaps?
local distance = (LocalPlayer():GetPos() - target.entity:GetPos()):Length() - (obvgrid.unw - obvgrid.lse):Length()
if (distance > GetConVarNumber("snap_distance")) then return end
for face, vertices in ipairs(faces) do
intersection = RayQuadIntersect(cache.vLookPos, cache.vLookVector, vertices[1], vertices[2], vertices[3])
if (intersection) then
target.face = face
break
end
end
if intersection == nil then return end
end
if (GetConVarNumber("snap_boundingbox") ~= 0) then
DrawBoundary(obvgrid.unw, obvgrid.lnw, obvgrid.usw, obvgrid.une)
DrawBoundary(obvgrid.une, obvgrid.lne, obvgrid.use, obvgrid.unw)
DrawBoundary(obvgrid.lnw, obvgrid.unw, obvgrid.lsw, obvgrid.lne)
DrawBoundary(obvgrid.lne, obvgrid.une, obvgrid.lse, obvgrid.lnw)
DrawBoundary(obvgrid.usw, obvgrid.lsw, obvgrid.unw, obvgrid.use)
DrawBoundary(obvgrid.use, obvgrid.lse, obvgrid.une, obvgrid.usw)
DrawBoundary(obvgrid.lsw, obvgrid.usw, obvgrid.lnw, obvgrid.lse)
DrawBoundary(obvgrid.lse, obvgrid.use, obvgrid.lne, obvgrid.lsw)
end
local vectorOrigin = faces[target.face][1]
local vectorX = faces[target.face][2]
local vectorY = faces[target.face][3]
local vectorZ = faces[target.face][4]
local vectorOffset = faces[target.face][5]
local vectorGrid
if (not target.locked) then
vectorGrid = vectorOrigin + CalculateSnap(vectorX, vectorY, intersection)
local trace = util.TraceLine({
start = target.entity:LocalToWorld(target.entity:WorldToLocal(vectorGrid) - vectorOffset) - vectorZ:GetNormalized() * 0.01,
endpos = vectorGrid + vectorZ
})
local vectorSnap = trace.HitPos
target.offset = target.entity:WorldToLocal(vectorSnap)
target.vector = target.entity:WorldToLocal(vectorGrid)
target.error = true
if (trace.Entity == nil or not trace.Entity:IsValid()) then
snaperror = -1
elseif (trace.Entity ~= target.entity) then
snaperror = -2
elseif (trace.HitPos == trace.StartPos) then
snaperror = -2
else
snaperror = (LocalPlayer():GetEyeTrace().HitPos - trace.HitPos):Length()
target.error = false
if ((vectorSnap - vectorGrid):Length() > 0.5) then
local marker = PointToScreen(vectorSnap)
if (marker) then
DrawSnapCross(marker, 255, 255, 255)
end
end
end
else
vectorGrid = target.entity:LocalToWorld(target.vector)
local vectorSnap = target.entity:LocalToWorld(target.offset)
local marker = PointToScreen(vectorSnap)
snaperror = (LocalPlayer():GetEyeTrace().HitPos - vectorSnap):Length()
if (marker) then
if (target.error == true) then
snaperror = -2
DrawSnapCross(marker, 0, 255, 255)
elseif (snaperror < 0.001) then
DrawSnapCross(marker, 0, 255, 0)
elseif (snaperror < 0.1) then
DrawSnapCross(marker, 255, 255, 0)
else
DrawSnapCross(marker, 255, 0, 0)
end
end
end
if (GetConVarNumber("snap_hidegrid") == 0) then
DrawGrid(vectorOrigin, vectorX, vectorY)
end
target.active = true
local vsCursor = PointToScreen(vectorGrid)
if (vsCursor) then
if (snaperror == -1) then
target.active = false
DrawSnapCross(vsCursor, 0, 255, 255)
elseif (snaperror == -2) then
DrawSnapCross(vsCursor, 255, 0, 255)
elseif (snaperror < 0.001) then
DrawSnapCross(vsCursor, 0, 255, 0)
elseif (snaperror < 0.1) then
DrawSnapCross(vsCursor, 255, 255, 0)
else
DrawSnapCross(vsCursor, 255, 0, 0)
end
end
end
local function OnSnapView(player, origin, angles, fov)
local targetvalid = target.active and target.locked and target.entity:IsValid()
local snaptargetvalid = snaptarget.active and snaptarget.locked and snaptarget.entity:IsValid()
if (snapcursor and not snapspawnmenu and targetvalid) then
local screen = ToScreen(target.entity:LocalToWorld(target.offset))
gui.SetMousePos(math.Round(screen.x), math.Round(screen.y))
end
if (not snapcursor and targetvalid) then
return {
angles = (target.entity:LocalToWorld(target.offset) - player:GetShootPos()):Angle()
}
elseif (snaplock and snaptargetvalid) then
return {
angles = (snaptarget.entity:LocalToWorld(snaptarget.offset) - player:GetShootPos()):Angle()
}
end
end
local function OnSnapAim(user)
local targetvalid = target.active and target.locked and target.entity:IsValid()
local snaptargetvalid = snaptarget.active and snaptarget.locked and snaptarget.entity:IsValid()
if (not snapcursor and targetvalid) then
user:SetViewAngles((target.entity:LocalToWorld(target.offset) - LocalPlayer():GetShootPos()):Angle())
elseif (snaplock and snaptargetvalid) then
user:SetViewAngles((snaptarget.entity:LocalToWorld(snaptarget.offset) - LocalPlayer():GetShootPos()):Angle())
end
end
concommand.Add("+snap", SnapPress)
concommand.Add("-snap", SnapRelease)
concommand.Add("snaplock", SnapLock)
concommand.Add("snaptogglegrid", SnapToggleGrid)
hook.Add("Initialize", "SmartsnapInitialize", OnInitialize)
hook.Add("SpawnMenuOpen", "SmartsnapSpawnMenu", OnSpawnMenu)
hook.Add("Think", "SmartsnapThink", OnThink)
hook.Add("ShutDown", "SmartsnapShutDown", OnShutDown)
hook.Add("KeyPress", "SmartsnapKeyPress", OnKeyPress)
hook.Add("KeyRelease", "SmartsnapKeyRelease", OnKeyRelease)
hook.Add("CreateMove", "SmartsnapSnap", OnSnapAim)
hook.Add("CalcView", "SmartsnapSnapView", OnSnapView)
hook.Add("SpawnMenuOpen", "SmartsnapSpawnMenu", OnSpawnMenu)
hook.Add("HUDPaintBackground", "SmartsnapPaintHUD", OnPaintHUD)
local function OnPopulateToolPanel(panel)
panel:AddControl("ComboBox", {
Options = {
["default"] = condefs
},
CVars = convars,
Label = "",
MenuButton = "1",
Folder = "smartsnap"
})
panel:AddControl("CheckBox", {
Label = "Enable",
Command = "snap_enabled"
})
panel:AddControl("CheckBox", {
Label = "Use click grid (USE temporarily enables grid)",
Command = "snap_clickgrid"
})
panel:AddControl("CheckBox", {
Label = "Hide grid (only shows snap point)",
Command = "snap_hidegrid"
})
panel:AddControl("CheckBox", {
Label = "Smart toggle enabled",
Command = "snap_enabletoggle"
})
panel:AddControl("CheckBox", {
Label = "Revert aim to grid snap on detach",
Command = "snap_revertaim"
})
panel:AddControl("CheckBox", {
Label = "Enable for all entities",
Command = "snap_allentities"
})
panel:AddControl("CheckBox", {
Label = "Enable for all tools",
Command = "snap_alltools"
})
panel:AddControl("CheckBox", {
Label = "Draw thick center lines",
Command = "snap_centerline"
})
panel:AddControl("Slider", {
Label = "Grid toggle delay (double click snap-key)",
Command = "snap_toggledelay",
Type = "Float",
Min = "0.0",
Max = "0.2"
})
panel:AddControl("Slider", {
Label = "Smart lock delay",
Command = "snap_lockdelay",
Type = "Float",
Min = "0.0",
Max = "5.0"
})
panel:AddControl("CheckBox", {
Label = "Bounding box enabled",
Command = "snap_boundingbox"
})
panel:AddControl("Slider", {
Label = "Grid draw distance",
Command = "snap_distance",
Type = "Integer",
Min = "50",
Max = "1000"
})
panel:AddControl("Slider", {
Label = "Grid edge offset",
Command = "snap_gridoffset",
Type = "Float",
Min = "0.0",
Max = "2.5"
})
panel:AddControl("Slider", {
Label = "Grid transparency",
Command = "snap_gridalpha",
Type = "Float",
Min = "0.1",
Max = "1.0"
})
panel:AddControl("Slider", {
Label = "Maximum number of snap points on an axis",
Command = "snap_gridlimit",
Type = "Integer",
Min = "2",
Max = "64"
})
panel:AddControl("Slider", {
Label = "Minimum distance between each snap point",
Command = "snap_gridsize",
Type = "Integer",
Min = "2",
Max = "64"
})
panel:AddControl("Label", {
Text = ""
})
panel:AddControl("Label", {
Text = "The following option should prevent FPS drops from occuring, however it might have a slight impact on the average FPS while the grid is showing. Do NOT uncheck this option unless you are experiencing very low FPS or fully understands its purpose."
})
panel:AddControl("Label", {
Text = "NOTE: This option is only effective when the grid is showing, it does not impact regular gameplay!"
})
panel:AddControl("Label", {
Text = ""
})
panel:AddControl("CheckBox", {
Label = "Garbage collection boost",
Command = "snap_gcboost"
})
end
function OnPopulateToolMenu()
spawnmenu.AddToolMenuOption("Options", "Player", "SmartSnapSettings", "SmartSnap", "", "", OnPopulateToolPanel, {
SwitchConVar = 'snap_enabled'
})
end
hook.Add("PopulateToolMenu", "SmartSnapToolMenu", OnPopulateToolMenu)
end |
#!/usr/bin/env lua
--[[
Copyright (c) 2010 Andreas Krinke
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 formats = "c cs lua-oocairo scrupp"
-- default export filter
local format = "lua-oocairo"
local infile, outfile
-- collect command line argument
if #arg == 2 then
infile = arg[1]
outfile = arg[2]
elseif #arg == 4 and arg[1] == "-f" and string.find(formats, arg[2], 1, true) then
format = arg[2]
infile = arg[3]
outfile = arg[4]
else
print([[
Usage: lua cairoxml2cairo.lua [-f format] xml-file source-file
Available formats: ]] .. formats)
os.exit()
end
-- try to load the source code format definitions
local success, replacements = pcall(require, "formats." .. format)
if not success then
print(string.format([[
Error loading format %s:
%s
Is %s.lua missing in directory 'formats'?]], format, replacements, format))
os.exit()
end
-- list of tags, that start a pattern definition
local pattern_tags = {
solid = true,
linear = true,
radial = true
}
-- stores the current state of cairo
local state = {}
-----------------------------------------------------------------------------
-- Function Definitions
-----------------------------------------------------------------------------
-----------------------------------------------------------------------------
-- Simple XML Parser
-- source: http://lua-users.org/wiki/LuaXml
local function parseargs(s)
local arg = {}
string.gsub(s, "(%w+)=([\"'])(.-)%2", function (w, _, a)
arg[w] = a
end)
return arg
end
local function collect(s)
local stack = {}
local top = {}
table.insert(stack, top)
local ni,c,label,xarg, empty
local i, j = 1, 1
while true do
ni,j,c,label,xarg, empty = string.find(s, "<(%/?)([%w%-:]+)(.-)(%/?)>", i)
if not ni then break end
local text = string.sub(s, i, ni-1)
if not string.find(text, "^%s*$") then
table.insert(top, text)
end
if empty == "/" then -- empty element tag
table.insert(top, {label=label, xarg=parseargs(xarg), empty=1})
elseif c == "" then -- start tag
top = {label=label, xarg=parseargs(xarg)}
table.insert(stack, top) -- new level
else -- end tag
local toclose = table.remove(stack) -- remove top
top = stack[#stack]
if #stack < 1 then
error("nothing to close with "..label)
end
if toclose.label ~= label then
error("trying to close "..toclose.label.." with "..label)
end
table.insert(top, toclose)
end
i = j+1
end
local text = string.sub(s, i)
if not string.find(text, "^%s*$") then
table.insert(stack[#stack], text)
end
if #stack > 1 then
error("unclosed "..stack[stack.n].label)
end
return stack[1]
end
-- End Simple XML Parser
-----------------------------------------------------------------------------
--- Extracts the basename (without suffix) from a path
-- @patam path Path to extract the basename from.
-- @return basename of the file
function basename(path)
local file = path:match("([^\\/:]*)$")
local basename, ext = file:match("^%.*(.+)%.([^%.]-)$")
if not basename then
basename = file:match("^%.*(.*)$")
end
return (basename:gsub("%.", "_"))
end
--- Outputs the source code corresponding to the current tag.
-- For each start and end tag, different source code can be defined.
-- @param fh Output filehandle.
-- @param basename Basename of the output file.
-- @param kind Either "pre" (start tag was parsed)
-- or "post" (stop tag was parsed).
-- @param t Table containing information about the current tag.
local function output(fh, basename, kind, t)
local label = t.label
if label == "svg" then
error("svg tag detected\nPlease provide a cairo xml file, not an svg file.")
end
if kind == "pre" then
if pattern_tags[label] then
state.current_environment = "pattern"
else
state.current_environment = nil
end
else -- "post"
if label == "surface" then
state.last_environment = "surface"
elseif pattern_tags[label] then
state.last_environment = "pattern"
end
end
local rep = replacements[label]
if not rep then
error("not supported tag: " .. label)
end
local s
if kind == "pre" then
if type(rep) == "table" then
rep = rep.pre
end
else
if type(rep) == "table" then
rep = rep.post
else
rep = nil
end
end
if type(rep) == "string" then
s = rep
elseif type(rep) == "function" then
s = rep(state, t[1])
end
if s then
s = string.gsub(s, "$basename", basename)
s = string.gsub(s, "$value", t[1])
s = string.gsub(s, "$(%w+)", t.xarg)
fh:write(s, "\n")
end
end
--- Processes the table generated by the XML parser.
-- @param fh Output filehandle.
-- @param t Table generated by collect().
-- @see collect.
local function process(fh, basename, t)
for _,child in ipairs(t) do
if type(child) == "table" then
output(fh, basename, "pre", child)
process(fh, basename, child)
output(fh, basename, "post", child)
end
end
end
-----------------------------------------------------------------------------
-- Main
-----------------------------------------------------------------------------
-- open the input and output file
local fh_in = assert(io.open(infile))
local fh_out = assert(io.open(outfile, "w"))
-- read and parse the whole xml file
local t = collect(fh_in:read("*a"))
-- process the resulting table
process(fh_out, basename(outfile), t)
|
return require("flib.gui")
|
local compe = require'compe'
local Source = require'compe_nvim_lsp.source'
local source_ids = {}
return {
attach = function()
vim.api.nvim_exec([[
augroup compe_nvim_lsp
autocmd InsertEnter * lua require"compe_nvim_lsp".register()
augroup END
]], false)
end;
register = function()
-- unregister
for _, source_id in ipairs(source_ids) do
compe.unregister_source(source_id)
end
source_ids = {}
-- register
local filetype = vim.bo.filetype
for _, client in pairs(vim.lsp.buf_get_clients(0)) do
table.insert(source_ids, compe.register_source('nvim_lsp', Source.new(client, filetype)))
end
end;
}
|
counter = 0 -- IF COUNTER EQUALS 1 THE PLAYER IS IN THE QUEUE
-- MESSAGES
RegisterNetEvent("pvpsystem:msg")
AddEventHandler("pvpsystem:msg", function(numero)
notify("You are in the arena: ~b~#"..numero)
SetGameplayCamRelativeHeading(0)
end)
RegisterNetEvent("pvpsystem:msgWon")
AddEventHandler("pvpsystem:msgWon", function()
notify("~g~You won!")
SetGameplayCamRelativeHeading(0)
counter = 0
end)
RegisterNetEvent("pvpsystem:msgLost")
AddEventHandler("pvpsystem:msgLost", function()
notify("~r~You lost!")
SetGameplayCamRelativeHeading(0)
counter = 0
end)
RegisterNetEvent("pvpsystem:msgQuit")
AddEventHandler("pvpsystem:msgQuit", function()
notify("A player disconnected")
SetGameplayCamRelativeHeading(0)
end)
-- ADD PLAYER TO A QUEUE
RegisterNetEvent("pvpsystem:pvpqueue")
AddEventHandler("pvpsystem:pvpqueue", function(ident)
if (ident==1) then
if (counter == 0) then
notify("~g~You joined the queue (1v1)")
TriggerServerEvent("pvpsystem:counter1v1", source)
counter = 1
else
notify("~r~You are already in a queue")
end
else
if (counter == 0) then
notify("~g~You joined the queue (2v2)")
TriggerServerEvent("pvpsystem:counter2v2", source)
counter = 1
else
notify("~r~You are already in a queue")
end
end
end)
-- NOTIFICATIONS
function notify(str)
BeginTextCommandThefeedPost("STRING")
AddTextComponentSubstringPlayerName(str)
EndTextCommandThefeedPostTicker(true, false)
end |
local dao_helpers = require "spec.02-integration.03-dao.helpers"
local Factory = require "kong.dao.factory"
local utils = require "kong.tools.utils"
local DB = require "kong.db"
dao_helpers.for_each_dao(function(kong_config)
describe("Model (Constraints) with DB: #" .. kong_config.database, function()
local service_fixture
local plugin_fixture
local dao
local db
setup(function()
db = assert(DB.new(kong_config, kong_config.database))
assert(db:init_connector())
dao = assert(Factory.new(kong_config, db))
assert(dao:run_migrations())
end)
before_each(function()
dao:truncate_tables()
assert(db:truncate())
local service, _, err_t = db.services:insert {
protocol = "http",
host = "example.com",
}
assert.is_nil(err_t)
service_fixture = service
plugin_fixture = {
name = "key-auth",
service_id = service.id,
}
end)
-- Check behavior just in case
describe("plugins insert()", function()
it("insert a valid plugin", function()
local plugin, err = dao.plugins:insert(plugin_fixture)
assert.falsy(err)
assert.is_table(plugin)
assert.equal(service_fixture.id, plugin.service_id)
assert.same({
run_on_preflight = true,
hide_credentials = false,
key_names = {"apikey"},
anonymous = "",
key_in_body = false,
}, plugin.config)
end)
it("insert a valid plugin bis", function()
plugin_fixture.config = { key_names = { "api-key" } }
local plugin, err = dao.plugins:insert(plugin_fixture)
assert.falsy(err)
assert.is_table(plugin)
assert.equal(service_fixture.id, plugin.service_id)
assert.same({
run_on_preflight = true,
hide_credentials = false,
key_names = {"api-key"},
anonymous = "",
key_in_body = false,
}, plugin.config)
end)
describe("uniqueness", function()
it("per Service", function()
local plugin, err = dao.plugins:insert(plugin_fixture)
assert.falsy(err)
assert.truthy(plugin)
plugin, err = dao.plugins:insert(plugin_fixture)
assert.truthy(err)
assert.falsy(plugin)
assert.True(err.unique)
assert.matches("[" .. kong_config.database .. " error] " ..
"name=already exists with value 'key-auth'",
err, nil, true)
end)
it("Service/Consumer", function()
local consumer, err = dao.consumers:insert {
username = "bob"
}
assert.falsy(err)
assert.truthy(consumer)
local plugin_tbl = {
name = "rate-limiting",
service_id = service_fixture.id,
consumer_id = consumer.id,
config = { minute = 1 }
}
local plugin, err = dao.plugins:insert(plugin_tbl)
assert.falsy(err)
assert.truthy(plugin)
assert.equal(consumer.id, plugin.consumer_id)
plugin, err = dao.plugins:insert(plugin_tbl)
assert.truthy(err)
assert.falsy(plugin)
assert.True(err.unique)
assert.matches("[" .. kong_config.database .. " error] " ..
"name=already exists with value 'rate-limiting'",
err, nil, true)
end)
it("Service/Route", function()
local err_t, service, route, _
service, _, err_t = db.services:insert {
host = "example.com",
}
assert.is_nil(err_t)
route, _, err_t = db.routes:insert {
protocols = { "http" },
hosts = { "example.com" },
service = service,
}
assert.is_nil(err_t)
local plugin_tbl = {
name = "rate-limiting",
service_id = service_fixture.id,
route_id = route.id,
config = { minute = 1 }
}
local plugin, err = dao.plugins:insert(plugin_tbl)
assert.falsy(err)
assert.truthy(plugin)
assert.equal(route.id, plugin.route_id)
plugin, err = dao.plugins:insert(plugin_tbl)
assert.truthy(err)
assert.falsy(plugin)
assert.True(err.unique)
assert.matches("[" .. kong_config.database .. " error] " ..
"name=already exists with value 'rate-limiting'",
err, nil, true)
end)
it("Route/Consumer", function()
local err_t, service, route, _
service, _, err_t = db.services:insert {
host = "example.com",
}
assert.is_nil(err_t)
route, _, err_t = db.routes:insert {
protocols = { "http" },
hosts = { "example.com" },
service = service,
}
assert.is_nil(err_t)
local consumer, err = dao.consumers:insert {
username = "bob"
}
assert.falsy(err)
assert.truthy(consumer)
local plugin_tbl = {
name = "rate-limiting",
route_id = route.id,
consumer_id = consumer.id,
config = { minute = 1 }
}
local plugin, err = dao.plugins:insert(plugin_tbl)
assert.falsy(err)
assert.truthy(plugin)
assert.equal(route.id, plugin.route_id)
assert.equal(consumer.id, plugin.consumer_id)
plugin, err = dao.plugins:insert(plugin_tbl)
assert.truthy(err)
assert.falsy(plugin)
assert.True(err.unique)
assert.matches("[" .. kong_config.database .. " error] " ..
"name=already exists with value 'rate-limiting'",
err, nil, true)
end)
it("Service/Route/Consumer", function()
local err_t, service, route, _
service, _, err_t = db.services:insert {
host = "example.com",
}
assert.is_nil(err_t)
route, _, err_t = db.routes:insert {
protocols = { "http" },
hosts = { "example.com" },
service = service,
}
assert.is_nil(err_t)
local consumer, err = dao.consumers:insert {
username = "bob"
}
assert.falsy(err)
assert.truthy(consumer)
local plugin_tbl = {
name = "rate-limiting",
service_id = service_fixture.id,
route_id = route.id,
consumer_id = consumer.id,
config = { minute = 1 }
}
local plugin, err = dao.plugins:insert(plugin_tbl)
assert.falsy(err)
assert.truthy(plugin)
assert.equal(route.id, plugin.route_id)
assert.equal(service_fixture.id, plugin.service_id)
assert.equal(consumer.id, plugin.consumer_id)
plugin, err = dao.plugins:insert(plugin_tbl)
assert.truthy(err)
assert.falsy(plugin)
assert.True(err.unique)
assert.matches("[" .. kong_config.database .. " error] " ..
"name=already exists with value 'rate-limiting'",
err, nil, true)
end)
end)
end)
describe("FOREIGN constraints", function()
it("not insert plugin if invalid Service foreign key", function()
plugin_fixture.service_id = utils.uuid()
local plugin, err = dao.plugins:insert(plugin_fixture)
assert.falsy(plugin)
assert.truthy(err)
assert.True(err.foreign)
assert.equal("no such Service (id=" .. plugin_fixture.service_id .. ")",
err.message)
end)
it("not insert plugin if invalid Route foreign key", function()
plugin_fixture.service_id = nil
plugin_fixture.route_id = utils.uuid()
local plugin, err = dao.plugins:insert(plugin_fixture)
assert.falsy(plugin)
assert.truthy(err)
assert.True(err.foreign)
assert.equal("no such Route (id=" .. plugin_fixture.route_id .. ")",
err.message)
end)
it("not insert plugin if invalid Consumer foreign key", function()
local plugin_tbl = {
name = "rate-limiting",
service_id = service_fixture.id,
consumer_id = utils.uuid(),
config = {minute = 1}
}
local plugin, err = dao.plugins:insert(plugin_tbl)
assert.falsy(plugin)
assert.truthy(err)
assert.True(err.foreign)
assert.matches("consumer_id=does not exist with value '" .. plugin_tbl.consumer_id .. "'", tostring(err), nil, true)
end)
it("does not update plugin if invalid foreign key", function()
local plugin, err = dao.plugins:insert(plugin_fixture)
assert.falsy(err)
assert.truthy(plugin)
local fake_service_id = utils.uuid()
plugin.service_id = fake_service_id
plugin, err = dao.plugins:update(plugin, {id = plugin.id})
assert.falsy(plugin)
assert.truthy(err)
assert.True(err.foreign)
assert.equal("no such Service (id=" .. fake_service_id .. ")",
err.message)
end)
end)
describe("CASCADE delete", function()
it("deleting Service deletes associated Plugin", function()
local plugin, err = dao.plugins:insert {
name = "key-auth",
service_id = service_fixture.id
}
assert.falsy(err)
-- plugin exists
plugin, err = dao.plugins:find(plugin)
assert.falsy(err)
assert.truthy(plugin)
-- delete Service
local ok, err, err_t = db.services:delete {
id = service_fixture.id
}
assert.is_nil(err_t)
assert.is_nil(err)
assert.is_true(ok)
-- no more Service
local api, err = db.services:select {
id = service_fixture.id
}
assert.falsy(err)
assert.falsy(api)
-- no more plugin
plugin, err = dao.plugins:find(plugin)
assert.falsy(err)
assert.falsy(plugin)
end)
it("deleting Route deletes associated Plugin", function()
local err_t, service, route, _
service, _, err_t = db.services:insert {
host = "example.com",
}
assert.is_nil(err_t)
route, _, err_t = db.routes:insert {
protocols = { "http" },
hosts = { "example.com" },
service = service,
}
assert.is_nil(err_t)
local plugin, err = dao.plugins:insert {
name = "key-auth",
route_id = route.id,
service_id = service.id,
}
assert.falsy(err)
-- plugin exists
plugin, err = dao.plugins:find(plugin)
assert.falsy(err)
assert.truthy(plugin)
-- delete Route
local ok, err, err_t = db.routes:delete {
id = route.id
}
assert.is_nil(err_t)
assert.is_nil(err)
assert.is_true(ok)
-- no more Route
local api, err = db.routes:select {
id = route.id
}
assert.falsy(err)
assert.falsy(api)
-- no more Plugin
plugin, err = dao.plugins:find(plugin)
assert.falsy(err)
assert.falsy(plugin)
end)
it("deleting Consumer deletes associated Plugin", function()
local consumer_fixture, err = dao.consumers:insert {
username = "bob"
}
assert.falsy(err)
local plugin, err = dao.plugins:insert {
name = "rate-limiting",
service_id = service_fixture.id,
consumer_id = consumer_fixture.id,
config = { minute = 1 },
}
assert.falsy(err)
local res, err = dao.consumers:delete(consumer_fixture)
assert.falsy(err)
assert.is_table(res)
local consumer, err = dao.consumers:find(consumer_fixture)
assert.falsy(err)
assert.falsy(consumer)
plugin, err = dao.plugins:find(plugin)
assert.falsy(err)
assert.falsy(plugin)
end)
end)
end) -- describe
end) -- for each db
|
--
-- @@LIB_NAME@@, Version: @@Version@@
--
-- This file is a part of @@LIB_NAME@@.
--
-- Author:
-- Xiaofeng Yang 2015
-- Vicent Gong 2012
--
--
---
--
-- @module textView2
require("core/constants");
require("core/object");
require("core/res");
require("core/drawing");
require("core/gameString");
require("ui2/compat/scrollableNode2");
TextView2 = class(ScrollableNode2,false);
TextView2.s_defaultScrollBarWidth = 8;
TextView2.setDefaultScrollBarWidth = function(width)
TextView2.s_scrollBarWidth = width or TextView2.s_defaultScrollBarWidth;
end
TextView2.ctor = function(self, str, width, height, align, fontName, fontSize, r, g, b)
super(self,kVertical,self.s_scrollBarWidth or self.s_defaultScrollBarWidth)
self.m_str = TextView2.convert2SafeString(self,str);
local platformstr = TextView2.convert2SafePlatformString(self,self.m_str);
self.m_res = new(ResText,platformstr,width or 0, height or 0,align,fontName,fontSize,r,g,b,kTextMultiLines);
self.m_drawing = new(DrawingImage,self.m_res);
local drawingW,drawingH = self.m_drawing:getSize();
TextView2.setSize(self,width or drawingW,(not height or height == 0) and drawingH or height);
TextView2.addChild(self,self.m_drawing);
TextView2.setEventTouch(self,self,self.onEventTouch);
TextView2.update(self);
end
TextView2.setScrollBarWidth = function(self, width)
width = width
or self.s_scrollBarWidth
or self.s_defaultScrollBarWidth;
ScrollableNode2.setScrollBarWidth(self,width);
end
TextView2.setText = function(self, str, width, height, r, g, b)
self.m_str = TextView2.convert2SafeString(self,str);
local platformstr = TextView2.convert2SafePlatformString(self,self.m_str);
local w,h = TextView2.getSize(self);
width = width or w;
height = height or h;
self.m_res:setText(platformstr,width,height,r,g,b);
self.m_drawing:setSize(self.m_res:getWidth(),self.m_res:getHeight());
local drawingW,drawingH = self.m_drawing:getSize();
TextView2.setSize(self,width,(height == 0) and drawingH or height);
-- local x,y = TextView2.getUnalignPos(self);
local w,h = TextView2.getSize(self);
TextView2.setClip2(self,true,0,0,w,h);
TextView2.update(self);
end
TextView2.getText = function(self)
return self.m_str;
end
TextView2.dtor = function(self)
delete(self.m_res);
self.m_res = nil;
end
-------------------------------private functions ----------------------------------------------------
--virtual
TextView2.getFrameLength = function(self)
local w,h = TextView2.getSize(self);
if self.m_direction == kVertical then
return h;
else
return w;
end
end
TextView2.getViewLength = function(self)
if not self.m_drawing then
return 0;
end
local dw,dh = self.m_drawing:getSize();
if self.m_direction == kVertical then
return dh;
else
return dw;
end
end
TextView2.needScroller = function(self)
return true;
end
TextView2.getFrameOffset = function(self)
return 0;
end
TextView2.onScroll = function(self, totalOffset)
ScrollableNode2.onScroll(self,totalOffset);
self.m_drawing:setPos(nil,totalOffset);
end
TextView2.onEventTouch = function(self, finger_action, x, y, drawing_id_first, drawing_id_current, event_time)
if not TextView2.hasScroller(self) then return end
self.m_scroller:onEventTouch(finger_action,x,y,drawing_id_first,drawing_id_current, event_time);
end
TextView2.convert2SafeString = function(self, str)
str = (str == "" or not str) and " " or str;
return str;
end
TextView2.convert2SafePlatformString = function(self, str)
str = (str == "" or not str) and " " or str;
local platformStr = GameString.convert2Platform(str);
platformStr = (platformStr == "" or not platformStr) and " " or platformStr;
return platformStr;
end
|
local status_ok, biscuit = pcall(require, "nvim-biscuits")
if not status_ok then
vim.notify("nvim-biscuits not found!")
return
end
biscuit.setup({
toggle_keybind = "<leader>cb",
show_on_start = false, -- defaults to false
cursor_line_only = true,
default_config = {
max_length = 12,
min_distance = 5,
prefix_string = " ✨ "
},
language_config = {
-- cpp = {
-- prefix_string = " // "
-- },
-- javascript = {
-- prefix_string = " ✨ ",
-- max_length = 80
-- },
python = {
disabled = true
}
}
})
|
QhunCore.SliderUiElement = {}
QhunCore.SliderUiElement.__index = QhunCore.SliderUiElement
-- constructor
--[[
{
label: string,
storageIdentifyer: string,
settings?: {
min?: number = 0
max?: number = 100,
width?: number = 250,
steps?: number = 1,
decimals?: number = 0,
padding?: number = 0,
tooltip?: string = nil
}
}
]]
function QhunCore.SliderUiElement.new(label, storageIdentifyer, settings)
-- call super class
local instance = QhunCore.AbstractUiElement.new(storageIdentifyer)
-- bind properties
instance._label = label
instance._settings =
qhunTableValueOrDefault(
settings,
{
min = 0,
max = 100,
width = 250,
steps = 1,
decimals = 0,
padding = 0,
tooltip = nil
}
)
instance._tempValue = nil
instance._slider = nil
instance._lockValueChangeEvent = false
-- bind current values
setmetatable(instance, QhunCore.SliderUiElement)
return instance
end
-- set inheritance
setmetatable(QhunCore.SliderUiElement, {__index = QhunCore.AbstractUiElement})
--[[
PUBLIC FUNCTIONS
]]
function QhunCore.SliderUiElement:render(storage, parentFrame)
-- get initial value
local initialValue = self:getStorageValue(storage) or 0
local wrapper = CreateFrame("FRAME", nil, parentFrame)
local label = wrapper:CreateFontString("$parentTitle", "ARTWORK")
-- add label
label:SetPoint("LEFT", wrapper, "LEFT", 0, 0)
label:SetFont("Fonts\\FRIZQT__.TTF", 11)
label:SetText(self._label)
local slider = CreateFrame("Slider", "qhunCoreUiSlider_" .. qhunUuid(), wrapper, "OptionsSliderTemplate")
slider:SetWidth(self._settings.width)
slider:SetHeight(15)
slider:SetOrientation("HORIZONTAL")
slider:SetMinMaxValues(self._settings.min, self._settings.max)
slider:SetValueStep(self._settings.steps)
slider:SetPoint("LEFT", wrapper, "LEFT", label:GetWidth() + 25, 0)
-- set the initial value
slider:SetValue(initialValue)
-- set default texts
local low = getglobal(slider:GetName() .. "Low")
low:SetText(self._settings.min)
local high = getglobal(slider:GetName() .. "High")
high:SetText(self._settings.max)
local current = getglobal(slider:GetName() .. "Text")
current:SetText(initialValue)
-- and save the text objects on the slider
slider.low = low
slider.high = high
slider.current = current
-- add events
slider:SetScript(
"OnValueChanged",
function(_, value)
self:onValueChange(storage, slider, value)
end
)
-- bind slider, label and wrapper
wrapper.slider = slider
wrapper.label = label
-- apply final width
wrapper:SetSize(label:GetWidth() + slider:GetWidth(), 25)
-- add extra padding and tooltip
wrapper._qhunCoreExtraPadding = self._settings.padding
slider.tooltipText = self._settings.tooltip
-- set the slider reference on the class
self._slider = wrapper
return wrapper
end
-- will be triggered if the storage was reset
function QhunCore.SliderUiElement:onStorageReset(storage)
-- get the value from the storage
local value = self:getStorageValue(storage)
-- check if there is anything to do
if not self._slider then
return
end
-- reset the ui
self._slider.slider.current:SetText(value)
self._tempValue = nil
-- lock event to prevent the event from beeing evaluated
self._lockValueChangeEvent = true
self._slider.slider:SetValue(value)
self._lockValueChangeEvent = false
end
-- will be triggered if the user changes the value of the slider
function QhunCore.SliderUiElement:onValueChange(storage, slider, value)
-- check for a lock
if self._lockValueChangeEvent then
return
end
-- check if the value changes (with decimals)
local roundedValue = qhunRound(value, self._settings.decimals)
-- check against the stored temp value
if type(self._tempValue) ~= "number" or self._tempValue ~= roundedValue then
-- yes the value has been changed!
-- update the visible current value
slider.current:SetText(roundedValue)
-- update the storage
self:setStorageValue(storage, roundedValue)
-- save the new temp value
self._tempValue = roundedValue
end
end
|
---
-- Premake helper APIs.
---
local export = require('export')
local State = require('state')
local Store = require('store')
local premake = _PREMAKE.premake
_PREMAKE.VERSION = '6.0.0-next'
_PREMAKE.COPYRIGHT = 'Copyright (c) 2002-2021 Jason Perkins and the Premake Project'
_PREMAKE.WEBSITE = 'https://github.com/starkos/premake-next'
premake.C_HEADER_EXTENSIONS = { '.h', '.inl' }
premake.C_SOURCE_EXTENSIONS = { '.c', '.s' }
premake.CXX_HEADER_EXTENSIONS = { '.hpp', '.hxx' }
premake.CXX_SOURCE_EXTENSIONS = { '.cc', '.cpp', '.cxx', '.c++' }
premake.OBJC_HEADER_EXTENSIONS = { '.hh' }
premake.OBJC_SOURCE_EXTENSIONS = { '.m', '.mm' }
premake.WIN_RESOURCE_EXTENSIONS = { '.rc' }
local _env = {}
local _store = Store.new()
local _testStateSnapshot
---
-- Before running a unit test, snapshot the current baseline configuration, and restore
-- it once the test has completed.
---
onRequire('testing', function (testing)
local snapshot
testing.onBeforeTest(function ()
snapshot = _store:snapshot()
_store:rollback(_testStateSnapshot)
end)
testing.onAfterTest(function ()
_store:rollback(snapshot)
end)
end)
function premake.callArray(funcs, ...)
if type(funcs) == 'function' then
funcs = funcs(...)
end
if funcs then
for i = 1, #funcs do
funcs[i](...)
end
end
end
function premake.checkRequired(obj, ...)
local n = select('#', ...)
for i = 1, n do
local field = select(i, ...)
if not obj[field] then
return false, string.format('missing required value `%s`', field)
end
end
return true
end
function premake.env()
return _env
end
local _eol
function premake.eol(newValue)
_eol = newValue or _eol
return _eol
end
---
-- Calls an exporter function and, if the returned value is different than what is currently
-- stored in `exportPath`, overwrites it with the new contents.
--
-- @param object
-- The object to be exported.
-- @param exportPath
-- The path to the exported file.
-- @param exporter
-- The exporter function to be called; receives `object` as its only parameter.
-- @returns
-- True if a new value was written to `exportPath`; false otherwise.
---
function premake.export(obj, exportPath, exporter)
local contents = export.capture(function ()
exporter(obj)
end)
if not io.compareFile(exportPath, contents) then
io.writeFile(exportPath, contents)
return true
else
return false
end
end
function premake.newState(initialState)
return State.new(_store, table.mergeKeys(_env, initialState))
end
---
-- Creates a snapshot of the current store state, before the user's project script
-- has run, to enable automated testing without picking up user project artifacts.
---
function premake.snapshotStateForTesting()
_testStateSnapshot = Store.snapshot(_store)
end
function premake.store()
return _store
end
return premake
|
local wibox = require ('wibox')
local awful = require ('awful')
local gears = require ('gears')
local beautiful = require ('beautiful')
local color = gears.color.recolor_image
--[[
-- Documentation:
-- on_cmd => cmd to run when toggling on
-- off_cmd => cmd to run when toggling off
-- img => overrides both images
-- on_img => image override
-- off_img => image override
-- inactive_bg =>
-- active_bg =>
-- margins =>
-- buttons =>
--]]
local tbox = function (args)
local function use_image(img,_color)
return color(img, _color or beautiful.wibar_fg)
end
local toggle_img_dir = gears.filesystem.get_configuration_dir() .. '/icons/'
local toggle = wibox.widget {
{
{
id = 'image_container',
image = use_image(toggle_img_dir.. (args.img or args.off_img or "toggle-off.svg")),
resize = true,
widget = wibox.widget.imagebox
},
margins = args.margins or 0,
widget = wibox.container.margin
},
active = false,
bg = args.inactive_bg or "#00000000",
shape = gears.shape.rounded_rect,
widget = wibox.container.background
}
if args.tooltip then
awful.tooltip {
objects = { toggle },
delay_show = 1,
text = args.tooltip
}
end
toggle:buttons(gears.table.join (
awful.button ( {}, 1, function()
toggle.active = not toggle.active
if toggle.active then
toggle:get_children_by_id('image_container')[1].image = use_image(toggle_img_dir .. (args.img or args.on_img or 'toggle-on.svg'),args.active_fg)
toggle.bg = args.active_bg or args.inactive_bg or "#00000000"
if args.cmd or args.on_cmd then
awful.spawn.easy_async_with_shell(
args.cmd or args.on_cmd,
function() end
)
end
else
toggle:get_children_by_id('image_container')[1].image = use_image(toggle_img_dir .. (args.img or args.off_img or 'toggle-off.svg'),args.inactive_fg)
toggle.bg = args.inactive_bg or "#00000000"
if args.cmd or args.off_cmd then
awful.spawn.easy_async_with_shell(
args.cmd or args.off_cmd,
function() end
)
end
end
end)
))
if args.buttons then
local click = require('util.clickable')
return click(toggle,args.buttons)
else
local hover = require ('util.hover')
return hover(toggle)
end
end
return tbox
|
return {
extensions = {
{octopusExtensionsDir, "core"},
{octopusExtensionsDir, "baseline"},
{octopusExtensionsDir, "orm"},
{octopusExtensionsDir, "app"},
},
octopusExtensionsDir = octopusExtensionsDir,
octopusHostDir = octopusHostDir,
port = 8080,
securePort = 38080,
luaCodeCache = "on",
serverName = "tfb-server",
errorLog = "error_log logs/error.log;",
accessLog = "access_log logs/access.log;",
includeDrop = [[#include drop.conf;]],
maxBodySize = "50k",
minifyJavaScript = false,
minifyCommand = [[java -jar ../yuicompressor-2.4.8.jar %s -o %s]],
databaseConnection = {
rdbms = "mysql",
host = "DBHOSTNAME",
port = 3306,
database = "hello_world",
user = "benchmarkdbuser",
password = "benchmarkdbpass",
compact = false
},
globalParameters = {
octopusHostDir = octopusHostDir,
sourceCtxPath = "",
requireSecurity = false,
sessionTimeout = 3600,
usePreparedStatement = false,
},
}
|
local playsession = {
{"Markle", {422469}},
{"ManuelG", {638356}},
{"tykak", {609020}},
{"Dionysusnu", {679560}},
{"kendoctor", {579224}},
{"OmegaLunch", {661535}},
{"datadrian", {577548}},
{"jimbo6805", {576478}},
{"yulingqixiao", {534476}},
{"Weizenbrot", {571807}},
{"mewmew", {568713}},
{"Pyroman69", {631115}},
{"Guitoune", {70761}},
{"Krengrus", {353747}},
{"Hulk", {456697}},
{"Tribbiani", {4135}},
{"waxman", {32594}},
{"avatarlinux", {252757}},
{"Arusu", {106921}},
{"NASER", {457561}},
{"Khamurdik", {435471}},
{"McC1oud", {238648}},
{"MovingMike", {253955}},
{"Vadim135", {5946}},
{"Silverwolf9300", {225694}},
{"YDoINeedAccForMods", {236087}},
{"pelageyka", {233120}},
{"vonlam999", {216326}},
{"yottahawk", {200304}},
{"Maggnz", {171354}},
{"sid123", {170704}},
{"MosTec", {66958}},
{"ISniffPetrol", {109967}},
{"Timfee", {84086}},
{"harukine", {108428}},
{"XasaX", {48937}},
{"Dior_cz", {29622}},
{"TNSepta", {26046}}
}
return playsession |
----------------------------------------------------------------------------------
-- Total RP 3
-- Characters and companions tooltip
-- ---------------------------------------------------------------------------
-- Copyright 2014 Sylvain Cossement ([email protected])
--
-- 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.
----------------------------------------------------------------------------------
---@type TRP3_API
local _, TRP3_API = ...;
-- imports
local Globals = TRP3_API.globals;
local Utils = TRP3_API.utils;
local colorCode, hexaToNumber, getTempTable, releaseTempTable = Utils.color.colorCode, Utils.color.hexaToNumber, Utils.table.getTempTable, Utils.table.releaseTempTable;
local loc = TRP3_API.loc;
local getUnitIDCurrentProfile, isIDIgnored = TRP3_API.register.getUnitIDCurrentProfile, TRP3_API.register.isIDIgnored;
local getIgnoreReason = TRP3_API.register.getIgnoreReason;
local ui_CharacterTT, ui_CompanionTT = TRP3_CharacterTooltip, TRP3_CompanionTooltip;
local getCharacterUnitID = Utils.str.getUnitID;
local get = TRP3_API.profile.getData;
local getConfigValue = TRP3_API.configuration.getValue;
local registerConfigKey = TRP3_API.configuration.registerConfigKey;
local strconcat = strconcat;
local getCompleteName = TRP3_API.register.getCompleteName;
local getOtherCharacter = TRP3_API.register.getUnitIDCharacter;
local getYourCharacter = TRP3_API.profile.getPlayerCharacter;
local IsUnitIDKnown = TRP3_API.register.isUnitIDKnown;
local UnitAffectingCombat = UnitAffectingCombat;
local Events = TRP3_API.events;
local GameTooltip, _G, pairs, wipe, tinsert, strtrim = GameTooltip, _G, pairs, wipe, tinsert, strtrim;
local UnitName, UnitPVPName, UnitFactionGroup, UnitIsAFK, UnitIsDND = UnitName, UnitPVPName, UnitFactionGroup, UnitIsAFK, UnitIsDND;
local UnitIsPVP, UnitRace, UnitLevel, GetGuildInfo, UnitIsPlayer, UnitClass = UnitIsPVP, UnitRace, UnitLevel, GetGuildInfo, UnitIsPlayer, UnitClass;
local hasProfile, getRelationColors = TRP3_API.register.hasProfile, TRP3_API.register.relation.getRelationColors;
local checkGlanceActivation = TRP3_API.register.checkGlanceActivation;
local IC_GUILD, OOC_GUILD;
local originalGetTargetType, getCompanionFullID = TRP3_API.ui.misc.getTargetType, TRP3_API.ui.misc.getCompanionFullID;
local TYPE_CHARACTER = TRP3_API.ui.misc.TYPE_CHARACTER;
local TYPE_PET = TRP3_API.ui.misc.TYPE_PET;
local TYPE_BATTLE_PET = TRP3_API.ui.misc.TYPE_BATTLE_PET;
local EMPTY = Globals.empty;
local unitIDToInfo = Utils.str.unitIDToInfo;
local lightenColorUntilItIsReadable = Utils.color.lightenColorUntilItIsReadable;
local isPlayerIC;
local unitIDIsFilteredForMatureContent;
local crop = Utils.str.crop;
local IsAltKeyDown = IsAltKeyDown;
-- ICONS
local AFK_ICON = "|TInterface\\FriendsFrame\\StatusIcon-Away:15:15|t";
local DND_ICON = "|TInterface\\FriendsFrame\\StatusIcon-DnD:15:15|t";
local OOC_ICON = "|TInterface\\COMMON\\Indicator-Red:15:15|t";
local ALLIANCE_ICON = "|TInterface\\GROUPFRAME\\UI-Group-PVP-Alliance:20:20|t";
local HORDE_ICON = "|TInterface\\GROUPFRAME\\UI-Group-PVP-Horde:20:20|t";
local PVP_ICON = "|TInterface\\GossipFrame\\BattleMasterGossipIcon:15:15|t";
local BEGINNER_ICON = "|TInterface\\TARGETINGFRAME\\UI-TargetingFrame-Seal:20:20|t";
local VOLUNTEER_ICON = "|TInterface\\TARGETINGFRAME\\PortraitQuestBadge:15:15|t";
local BANNED_ICON = "|TInterface\\EncounterJournal\\UI-EJ-HeroicTextIcon:15:15|t";
local GLANCE_ICON = "|TInterface\\MINIMAP\\TRACKING\\None:18:18|t";
local NEW_ABOUT_ICON = "|TInterface\\Buttons\\UI-GuildButton-PublicNote-Up:18:18|t";
local PEEK_ICON_SIZE = 20;
-- Config keys
local CONFIG_PROFILE_ONLY = "tooltip_profile_only";
local CONFIG_IN_CHARACTER_ONLY = "tooltip_in_character_only";
local CONFIG_CHARACT_COMBAT = "tooltip_char_combat";
local CONFIG_CHARACT_COLOR = "tooltip_char_color";
local CONFIG_CROP_TEXT = "tooltip_crop_text";
local CONFIG_CHARACT_CONTRAST = "tooltip_char_contrast";
local CONFIG_CHARACT_ANCHORED_FRAME = "tooltip_char_AnchoredFrame";
local CONFIG_CHARACT_ANCHOR = "tooltip_char_Anchor";
local CONFIG_CHARACT_HIDE_ORIGINAL = "tooltip_char_HideOriginal";
local CONFIG_CHARACT_MAIN_SIZE = "tooltip_char_mainSize";
local CONFIG_CHARACT_SUB_SIZE = "tooltip_char_subSize";
local CONFIG_CHARACT_TER_SIZE = "tooltip_char_terSize";
local CONFIG_CHARACT_ICONS = "tooltip_char_icons";
local CONFIG_CHARACT_FT = "tooltip_char_ft";
local CONFIG_CHARACT_RACECLASS = "tooltip_char_rc";
local CONFIG_CHARACT_REALM = "tooltip_char_realm";
local CONFIG_CHARACT_GUILD = "tooltip_char_guild";
local CONFIG_CHARACT_TARGET = "tooltip_char_target";
local CONFIG_CHARACT_TITLE = "tooltip_char_title";
local CONFIG_CHARACT_NOTIF = "tooltip_char_notif";
local CONFIG_CHARACT_CURRENT = "tooltip_char_current";
local CONFIG_CHARACT_OOC = "tooltip_char_ooc";
local CONFIG_CHARACT_CURRENT_SIZE = "tooltip_char_current_size";
local CONFIG_CHARACT_RELATION = "tooltip_char_relation";
local CONFIG_CHARACT_SPACING = "tooltip_char_spacing";
local CONFIG_NO_FADE_OUT = "tooltip_no_fade_out";
local CONFIG_PREFER_OOC_ICON = "tooltip_prefere_ooc_icon";
local ANCHOR_TAB;
local MATURE_CONTENT_ICON = Utils.str.texture("Interface\\AddOns\\totalRP3\\resources\\18_emoji.tga", 20);
local registerTooltipModuleIsEnabled = false;
local currentDate = date("*t");
local seriousDay = currentDate.month == 4 and currentDate.day == 1
local Rainbowify = TRP3_API.utils.Rainbowify;
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Config getters
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local function getAnchoredFrame()
if getConfigValue(CONFIG_CHARACT_ANCHORED_FRAME) == "" then return nil end;
return _G[getConfigValue(CONFIG_CHARACT_ANCHORED_FRAME)] or GameTooltip;
end
local function showRelationColor()
return getConfigValue(CONFIG_CHARACT_RELATION);
end
local function getAnchoredPosition()
return getConfigValue(CONFIG_CHARACT_ANCHOR);
end
local function shouldHideGameTooltip()
return getConfigValue(CONFIG_CHARACT_HIDE_ORIGINAL);
end
TRP3_API.ui.tooltip.shouldHideGameTooltip = shouldHideGameTooltip;
local function getMainLineFontSize()
return getConfigValue(CONFIG_CHARACT_MAIN_SIZE);
end
TRP3_API.ui.tooltip.getMainLineFontSize = getMainLineFontSize;
local function getSubLineFontSize()
return getConfigValue(CONFIG_CHARACT_SUB_SIZE);
end
TRP3_API.ui.tooltip.getSubLineFontSize = getSubLineFontSize;
local function getSmallLineFontSize()
return getConfigValue(CONFIG_CHARACT_TER_SIZE);
end
TRP3_API.ui.tooltip.getSmallLineFontSize = getSmallLineFontSize;
function TRP3_API.ui.tooltip.shouldCropTexts()
if not registerTooltipModuleIsEnabled then
return true;
else
return getConfigValue(CONFIG_CROP_TEXT);
end
end
local function showIcons()
return getConfigValue(CONFIG_CHARACT_ICONS);
end
local function showFullTitle()
return getConfigValue(CONFIG_CHARACT_FT);
end
local function showRaceClass()
return getConfigValue(CONFIG_CHARACT_RACECLASS);
end
local function showRealm()
return getConfigValue(CONFIG_CHARACT_REALM);
end
local function showGuild()
return getConfigValue(CONFIG_CHARACT_GUILD);
end
local function showTarget()
return getConfigValue(CONFIG_CHARACT_TARGET);
end
local function showTitle()
return getConfigValue(CONFIG_CHARACT_TITLE);
end
local function showNotifications()
return getConfigValue(CONFIG_CHARACT_NOTIF);
end
local function showCurrently()
return getConfigValue(CONFIG_CHARACT_CURRENT);
end
local function showMoreInformation()
return getConfigValue(CONFIG_CHARACT_OOC);
end
local function getCurrentMaxSize()
return getConfigValue(CONFIG_CHARACT_CURRENT_SIZE);
end
local function showSpacing()
return getConfigValue(CONFIG_CHARACT_SPACING);
end
local function fadeOutEnabled()
return not getConfigValue(CONFIG_NO_FADE_OUT);
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- UTIL METHOD
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local function getGameTooltipTexts(tooltip)
local tab = {};
for j = 1, tooltip:NumLines() do
tab[j] = _G[tooltip:GetName() .. "TextLeft" .. j]:GetText();
end
return tab;
end
TRP3_API.ui.tooltip.getGameTooltipTexts = getGameTooltipTexts;
local function setLineFont(tooltip, lineIndex, fontSize)
local line = _G[strconcat(tooltip:GetName(), "TextLeft", lineIndex)];
local font, _ , flag = line:GetFont();
line:SetFont(font, fontSize, flag);
end
local function setDoubleLineFont(tooltip, lineIndex, fontSize)
setLineFont(tooltip, lineIndex, fontSize);
local line = _G[strconcat(tooltip:GetName(), "TextRight", lineIndex)];
local font, _ , flag = line:GetFont();
line:SetFont(font, fontSize, flag);
end
local GetCursorPosition = GetCursorPosition;
local function placeTooltipOnCursor(tooltip)
local effScale, x, y = ui_CharacterTT:GetEffectiveScale(), GetCursorPosition();
ui_CharacterTT:ClearAllPoints();
ui_CharacterTT:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT", (x / effScale) + 10, (y / effScale) + 10);
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- TOOLTIP BUILDER
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local BUILDER_TYPE_LINE = 1;
local BUILDER_TYPE_DOUBLELINE = 2;
local BUILDER_TYPE_SPACE = 3;
local function AddLine(self, text, red, green, blue, lineSize, lineWrap)
local lineStructure = getTempTable();
lineStructure.type = BUILDER_TYPE_LINE;
lineStructure.text = text;
lineStructure.red = red;
lineStructure.green = green;
lineStructure.blue = blue;
lineStructure.lineSize = lineSize;
lineStructure.lineWrap = lineWrap;
tinsert(self._content, lineStructure);
end
local function AddDoubleLine(self, textL, textR, redL, greenL, blueL, redR, greenR, blueR, lineSize)
local lineStructure = getTempTable();
lineStructure.type = BUILDER_TYPE_DOUBLELINE;
lineStructure.textL = textL;
lineStructure.redL = redL;
lineStructure.greenL = greenL;
lineStructure.blueL = blueL;
lineStructure.textR = textR;
lineStructure.redR = redR;
lineStructure.greenR = greenR;
lineStructure.blueR = blueR;
lineStructure.lineSize = lineSize;
tinsert(self._content, lineStructure);
end
local function AddSpace(self)
if #self._content > 0 and self._content[#self._content].type == BUILDER_TYPE_SPACE then
return; -- Don't add two spaces in a row.
end
local lineStructure = getTempTable();
lineStructure.type = BUILDER_TYPE_SPACE;
tinsert(self._content, lineStructure);
end
local function Build(self)
local size = #self._content;
local tooltipLineIndex = 1;
for lineIndex, line in pairs(self._content) do
if line.type == BUILDER_TYPE_LINE then
self.tooltip:AddLine(line.text, line.red, line.green, line.blue, line.lineWrap);
setLineFont(self.tooltip, tooltipLineIndex, line.lineSize);
tooltipLineIndex = tooltipLineIndex + 1;
elseif line.type == BUILDER_TYPE_DOUBLELINE then
self.tooltip:AddDoubleLine(line.textL, line.textR, line.redL, line.greenL, line.blueL, line.redR, line.greenR, line.blueR);
setDoubleLineFont(self.tooltip, tooltipLineIndex, line.lineSize);
tooltipLineIndex = tooltipLineIndex + 1;
elseif line.type == BUILDER_TYPE_SPACE and showSpacing() and lineIndex ~= size then
self.tooltip:AddLine(" ", 1, 0.50, 0);
setLineFont(self.tooltip, tooltipLineIndex, getSubLineFontSize());
tooltipLineIndex = tooltipLineIndex + 1;
end
end
self.tooltip:Show();
for index, tempTable in pairs(self._content) do
self._content[index] = nil;
releaseTempTable(tempTable);
end
end
local function createTooltipBuilder(tooltip)
local builder = {
_content = {},
tooltip = tooltip,
};
builder.AddLine = AddLine;
builder.AddDoubleLine = AddDoubleLine;
builder.AddSpace = AddSpace;
builder.Build = Build;
return builder;
end
TRP3_API.ui.tooltip.createTooltipBuilder = createTooltipBuilder;
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- CHARACTER TOOLTIP
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local tooltipBuilder = createTooltipBuilder(ui_CharacterTT);
local function getUnitID(targetType)
local currentTargetType = originalGetTargetType(targetType);
if currentTargetType == TYPE_CHARACTER then
return getCharacterUnitID(targetType), currentTargetType;
elseif currentTargetType == TYPE_BATTLE_PET or currentTargetType == TYPE_PET then
return getCompanionFullID(targetType, currentTargetType), currentTargetType;
end
end
TRP3_API.register.getUnitID = getUnitID;
--- Returns a not nil table containing the character information.
-- The returned table is not nil, but could be empty.
local function getCharacterInfoTab(unitID)
if unitID == Globals.player_id then
return get("player");
elseif IsUnitIDKnown(unitID) then
return getUnitIDCurrentProfile(unitID) or {};
end
return {};
end
local function getCharacter(unitID)
if unitID == Globals.player_id then
return getYourCharacter();
elseif IsUnitIDKnown(unitID) then
return getOtherCharacter(unitID);
end
return {};
end
local function getFactionIcon(targetType)
if UnitFactionGroup(targetType) == "Alliance" then
return ALLIANCE_ICON;
elseif UnitFactionGroup(targetType) == "Horde" then
return HORDE_ICON;
end
return "";
end
local function getLevelIconOrText(targetType)
if UnitLevel(targetType) ~= -1 then
return UnitLevel(targetType);
else
return "|TInterface\\TARGETINGFRAME\\UI-TargetingFrame-Skull:16:16|t";
end
end
--- The complete character's tooltip writing sequence.
local function writeTooltipForCharacter(targetID, originalTexts, targetType)
local info = getCharacterInfoTab(targetID);
local character = getCharacter(targetID);
local targetName = UnitName(targetType);
local FIELDS_TO_CROP = {
TITLE = 150,
NAME = 100,
RACE = 50,
CLASS = 50,
}
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- BLOCKED
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if isIDIgnored(targetID) then
tooltipBuilder:AddLine(loc.REG_TT_IGNORED, 1, 0, 0, getSubLineFontSize());
tooltipBuilder:AddLine("\"" .. getIgnoreReason(targetID) .. "\"", 1, 0.75, 0, getSmallLineFontSize());
tooltipBuilder:Build();
return;
elseif unitIDIsFilteredForMatureContent(targetID) then
tooltipBuilder:AddLine(MATURE_CONTENT_ICON .. " " .. loc.MATURE_FILTER_TOOLTIP_WARNING, 1, 0.75, 0.86, getSubLineFontSize());
tooltipBuilder:AddLine(loc.MATURE_FILTER_TOOLTIP_WARNING_SUBTEXT, 1, 0.75, 0, getSmallLineFontSize(), true);
tooltipBuilder:Build();
return;
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- icon, complete name, RP/AFK/PVP/Volunteer status
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local localizedClass, englishClass = UnitClass(targetType);
local color = Utils.color.getClassColor(englishClass);
local rightIcons = "";
local leftIcons = "";
-- Only use custom colors if the option is enabled and if we have one
if getConfigValue(CONFIG_CHARACT_COLOR) and info.characteristics and info.characteristics.CH then
local customColor = Utils.color.getColorFromHexadecimalCode(info.characteristics.CH);
if getConfigValue(CONFIG_CHARACT_CONTRAST) then
customColor:LightenColorUntilItIsReadable();
end
color = customColor or color;
end
local completeName = getCompleteName(info.characteristics or {}, targetName, not showTitle());
if getConfigValue(CONFIG_CROP_TEXT) then
completeName = crop(completeName, FIELDS_TO_CROP.NAME);
end
if seriousDay and getConfigValue("AF_STUFF") then
completeName = Rainbowify(completeName);
else
completeName = color:WrapTextInColorCode(completeName);
end
-- OOC
if info.character and info.character.RP ~= 1 then
if getConfigValue(CONFIG_PREFER_OOC_ICON) == "TEXT" then
completeName = strconcat(TRP3_API.Ellyb.ColorManager.RED("[" .. loc.CM_OOC .. "] "), completeName);
else
rightIcons = strconcat(rightIcons, OOC_ICON);
end
end
if showIcons() then
-- Player icon
if info.characteristics and info.characteristics.IC then
leftIcons = strconcat(Utils.str.icon(info.characteristics.IC, 25), leftIcons, " ");
end
-- AFK / DND status
if UnitIsAFK(targetType) then
rightIcons = strconcat(rightIcons, AFK_ICON);
elseif UnitIsDND(targetType) then
rightIcons = strconcat(rightIcons, DND_ICON);
end
-- PVP icon
if UnitIsPVP(targetType) then -- Icone PVP
rightIcons = strconcat(rightIcons, PVP_ICON);
end
-- Beginner icon / volunteer icon
if info.character and info.character.XP == 1 then
rightIcons = strconcat(rightIcons, BEGINNER_ICON);
elseif info.character and info.character.XP == 3 then
rightIcons = strconcat(rightIcons, VOLUNTEER_ICON);
end
end
tooltipBuilder:AddDoubleLine(leftIcons .. completeName, rightIcons, 1, 1, 1, 1, 1, 1, getMainLineFontSize());
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- full title
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showFullTitle() then
local fullTitle = "";
if info.characteristics and info.characteristics.FT and info.characteristics.FT:len() > 0 then
fullTitle = info.characteristics.FT;
elseif UnitPVPName(targetType) ~= targetName then
fullTitle = UnitPVPName(targetType);
end
if fullTitle:len() > 0 then
if getConfigValue(CONFIG_CROP_TEXT) then
fullTitle = crop(fullTitle, FIELDS_TO_CROP.TITLE);
end
tooltipBuilder:AddLine(strconcat("< ", fullTitle, " |r>"), 1, 0.50, 0, getSubLineFontSize(), true);
end
end
tooltipBuilder:AddSpace();
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- race, class, level and faction
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showRaceClass() then
local lineLeft = "";
local lineRight;
local race = UnitRace(targetType);
local class = localizedClass;
if info.characteristics and info.characteristics.RA and info.characteristics.RA:len() > 0 then
race = info.characteristics.RA;
end
if info.characteristics and info.characteristics.CL and info.characteristics.CL:len() > 0 then
class = info.characteristics.CL;
end
if getConfigValue(CONFIG_CROP_TEXT) then
race = crop(race, FIELDS_TO_CROP.RACE);
class = crop(class, FIELDS_TO_CROP.CLASS);
end
lineLeft = strconcat("|cffffffff", race, " ", color:WrapTextInColorCode(class));
lineRight = strconcat("|cffffffff", loc.REG_TT_LEVEL:format(getLevelIconOrText(targetType), getFactionIcon(targetType)));
tooltipBuilder:AddDoubleLine(lineLeft, lineRight, 1, 1, 1, 1, 1, 1, getSubLineFontSize());
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Realm
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local _, realm = UnitName(targetType);
if showRealm() and realm then
tooltipBuilder:AddLine(loc.REG_TT_REALM:format(realm), 1, 1, 1, getSubLineFontSize());
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Guild
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local guild, grade = GetGuildInfo(targetType);
if showGuild() and guild then
local text = loc.REG_TT_GUILD:format(grade, guild);
local membership;
if info.misc and info.misc.ST then
if info.misc.ST["6"] == 1 then -- IC guild membership
membership = IC_GUILD;
elseif info.misc.ST["6"] == 2 then -- OOC guild membership
membership = OOC_GUILD;
end
end
tooltipBuilder:AddDoubleLine(text, membership, 1, 1, 1, 1, 1, 1, getSubLineFontSize());
end
tooltipBuilder:AddSpace();
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- CURRENTLY
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showCurrently() and info.character and (info.character.CU or ""):len() > 0 then
tooltipBuilder:AddLine(loc.REG_PLAYER_CURRENT, 1, 1, 1, getSubLineFontSize());
local text = strtrim(info.character.CU);
if text:len() > getCurrentMaxSize() then
text = text:sub(1, getCurrentMaxSize()) .. "…";
end
tooltipBuilder:AddLine(text, 1, 0.75, 0, getSmallLineFontSize(), true);
end
tooltipBuilder:AddSpace();
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- OOC More information
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showMoreInformation() and info.character and (info.character.CO or ""):len() > 0 then
tooltipBuilder:AddLine(loc.DB_STATUS_CURRENTLY_OOC, 1, 1, 1, getSubLineFontSize());
local text = strtrim(info.character.CO);
if text:len() > getCurrentMaxSize() then
text = text:sub(1, getCurrentMaxSize()) .. "…";
end
tooltipBuilder:AddLine(text, 1, 0.75, 0, getSmallLineFontSize(), true);
end
tooltipBuilder:AddSpace();
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Target
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showTarget() and UnitName(targetType .. "target") then
local name = UnitName(targetType .. "target");
local targetTargetID = getUnitID(targetType .. "target");
if targetTargetID then
local localizedClass, englishClass = UnitClass(targetType .. "target");
local targetInfo = getCharacterInfoTab(targetTargetID);
local color = englishClass and Utils.color.getClassColor(englishClass) or Utils.color.CreateColor(1, 1, 1, 1);
-- Only use custom colors if the option is enabled and if we have one
if getConfigValue(CONFIG_CHARACT_COLOR) and targetInfo.characteristics and targetInfo.characteristics.CH then
local customColor = Utils.color.getColorFromHexadecimalCode(targetInfo.characteristics.CH);
if getConfigValue(CONFIG_CHARACT_CONTRAST) then
customColor:LightenColorUntilItIsReadable();
end
color = customColor or color;
end
name = getCompleteName(targetInfo.characteristics or {}, name, true);
if getConfigValue(CONFIG_CROP_TEXT) then
name = crop(name, FIELDS_TO_CROP.NAME);
end
if seriousDay and getConfigValue("AF_STUFF") then
name = Rainbowify(name);
else
name = color:WrapTextInColorCode(name);
end
end
tooltipBuilder:AddLine(loc.REG_TT_TARGET:format(name), 1, 1, 1, getSubLineFontSize());
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Quick peek & new description notifications & Client
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showNotifications() then
local notifText = "";
if info.misc and info.misc.PE and checkGlanceActivation(info.misc.PE) then
notifText = GLANCE_ICON;
end
if targetID ~= Globals.player_id and info.about and not info.about.read then
notifText = notifText .. " " ..NEW_ABOUT_ICON;
end
local clientText = "";
if targetID == Globals.player_id then
clientText = strconcat("|cffffffff", Globals.addon_name_me, " v", Globals.version_display);
elseif IsUnitIDKnown(targetID) then
if character.client then
clientText = strconcat("|cffffffff", character.client, " v", character.clientVersion);
end
if character.isTrial then
clientText = strconcat(clientText, " ", Utils.str.color("o"), "(", loc.REG_TRIAL_ACCOUNT, ")");
end
end
if notifText:len() > 0 or clientText:len() > 0 then
if notifText:len() == 0 then
notifText = " "; -- Prevent bad right line height
end
tooltipBuilder:AddDoubleLine(notifText, clientText, 1, 1, 1, 0, 1, 0, getSmallLineFontSize());
end
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Build tooltip
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
tooltipBuilder:Build();
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- COMPANION TOOLTIP
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local UnitBattlePetType, UnitBattlePetLevel, UnitCreatureType = UnitBattlePetType, UnitBattlePetLevel, UnitCreatureType;
local companionIDToInfo = Utils.str.companionIDToInfo;
local getCompanionProfile, getCompanionRegisterProfile;
local CONFIG_PETS_ICON = "tooltip_pets_icons";
local CONFIG_PETS_TITLE = "tooltip_pets_title";
local CONFIG_PETS_OWNER = "tooltip_pets_owner";
local CONFIG_PETS_NOTIF = "tooltip_pets_notif";
local CONFIG_PETS_INFO = "tooltip_pets_info";
local function showCompanionIcons()
return getConfigValue(CONFIG_PETS_ICON);
end
local function showCompanionFullTitle()
return getConfigValue(CONFIG_PETS_TITLE);
end
local function showCompanionOwner()
return getConfigValue(CONFIG_PETS_OWNER);
end
local function showCompanionNotifications()
return getConfigValue(CONFIG_PETS_NOTIF);
end
local function showCompanionWoWInfo()
return getConfigValue(CONFIG_PETS_INFO);
end
local function getCompanionInfo(owner, companionID)
local profile;
if owner == Globals.player_id then
profile = getCompanionProfile(companionID) or EMPTY;
else
profile = getCompanionRegisterProfile(owner .. "_" .. companionID) or EMPTY;
end
return profile or EMPTY;
end
local function ownerIsIgnored(compagnonFullID)
local ownerID, companionID = companionIDToInfo(compagnonFullID);
return isIDIgnored(ownerID);
end
local function writeCompanionTooltip(companionFullID, originalTexts, targetType, targetMode)
local ownerID, companionID = companionIDToInfo(companionFullID);
local data = getCompanionInfo(ownerID, companionID);
local info = data.data or EMPTY;
local PE = data.PE or EMPTY;
local targetName = UnitName(targetType);
local companionFamily = UnitCreatureType(targetType);
local FIELDS_TO_CROP = {
TITLE = 150,
NAME = 100
}
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- BLOCKED
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if isIDIgnored(ownerID) then
tooltipBuilder:AddLine(loc.REG_TT_IGNORED_OWNER, 1, 0, 0, getSubLineFontSize());
tooltipBuilder:AddLine("\"" .. getIgnoreReason(ownerID) .. "\"", 1, 0.75, 0, getSmallLineFontSize());
tooltipBuilder:Build();
return;
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Icon and name
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local leftIcons = "";
if showCompanionIcons() then
-- Companion icon
if info.IC then
leftIcons = strconcat(Utils.str.icon(info.IC, 25), leftIcons, " ");
end
end
local petName = info.NA or targetName or UNKNOWN;
if getConfigValue(CONFIG_CROP_TEXT) then
petName = crop(petName, FIELDS_TO_CROP.NAME);
end
if seriousDay and getConfigValue("AF_STUFF") then
petName = Rainbowify(petName);
end
tooltipBuilder:AddLine(leftIcons .. "|cff" .. (info.NH or "ffffff") .. (petName or companionID), 1, 1, 1, getMainLineFontSize());
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- full title
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showCompanionFullTitle() then
local fullTitle = "";
if info.TI then
fullTitle = strconcat("< ", info.TI, " |r>");
end
if fullTitle:len() > 0 then
if getConfigValue(CONFIG_CROP_TEXT) then
fullTitle = crop(fullTitle, FIELDS_TO_CROP.TITLE);
end
tooltipBuilder:AddLine(fullTitle, 1, 0.50, 0, getSubLineFontSize());
end
end
tooltipBuilder:AddSpace();
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Owner
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showCompanionOwner() then
local ownerName, ownerRealm = unitIDToInfo(ownerID);
local ownerFinalName, ownerColor = ownerName, Utils.color.CreateColor(1, 1, 1, 1);
if ownerID == Globals.player_id or (IsUnitIDKnown(ownerID) and hasProfile(ownerID)) then
local ownerInfo = getCharacterInfoTab(ownerID);
if ownerInfo.characteristics then
ownerFinalName = getCompleteName(ownerInfo.characteristics, ownerFinalName, true);
if getConfigValue(CONFIG_CROP_TEXT) then
ownerFinalName = crop(ownerFinalName, FIELDS_TO_CROP.NAME);
end
if getConfigValue(CONFIG_CHARACT_COLOR) and ownerInfo.characteristics.CH then
local customColor = Utils.color.getColorFromHexadecimalCode(ownerInfo.characteristics.CH);
if getConfigValue(CONFIG_CHARACT_CONTRAST) then
customColor:LightenColorUntilItIsReadable();
end
ownerColor = customColor or ownerColor;
end
end
else
if ownerRealm ~= Globals.player_realm_id then
ownerFinalName = ownerID;
end
end
if seriousDay and getConfigValue("AF_STUFF") then
ownerFinalName = Rainbowify(ownerFinalName);
else
ownerFinalName = ownerColor:WrapTextInColorCode(ownerFinalName);
end
ownerFinalName = loc("REG_COMPANION_TF_OWNER"):format(ownerFinalName);
tooltipBuilder:AddLine(ownerFinalName, 1, 1, 1, getSubLineFontSize());
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Wow info
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showCompanionWoWInfo() then
local text;
if targetMode == TYPE_PET then
local creatureType = UnitCreatureType(targetType);
text = TOOLTIP_UNIT_LEVEL_TYPE:format(UnitLevel(targetType) or "??", creatureType);
elseif targetMode == TYPE_BATTLE_PET then
local type = UnitBattlePetType(targetType);
local type = _G["BATTLE_PET_NAME_" .. type];
text = TOOLTIP_UNIT_LEVEL_TYPE:format(UnitBattlePetLevel(targetType) or "??", type);
end
tooltipBuilder:AddLine(text, 1, 1, 1, getSubLineFontSize());
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Quick peek & new description notifications
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showCompanionNotifications() then
local notifText = "";
if PE and checkGlanceActivation(PE) then
notifText = GLANCE_ICON;
end
if ownerID ~= Globals.player_id and info.read == false then
notifText = notifText .. " " .. NEW_ABOUT_ICON;
end
if notifText:len() > 0 then
tooltipBuilder:AddLine(notifText, 1, 1, 1, getSmallLineFontSize());
end
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Build tooltip
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
tooltipBuilder:Build();
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- MOUNTS
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local tooltipCompanionBuilder = createTooltipBuilder(ui_CompanionTT);
local getCurrentMountProfile = TRP3_API.companions.player.getCurrentMountProfile;
local getCurrentMountSpellID = TRP3_API.companions.player.getCurrentMountSpellID;
local getCompanionNameFromSpellID = TRP3_API.companions.getCompanionNameFromSpellID;
local function getMountProfile(ownerID, companionFullID)
if ownerID == Globals.player_id then
local profile, profileID = getCurrentMountProfile();
return profile;
elseif companionFullID then
local profile = getCompanionRegisterProfile(companionFullID);
return profile;
end
end
local function writeTooltipForMount(ownerID, companionFullID, mountName)
if isIDIgnored(ownerID) then
return;
end
local profile = getMountProfile(ownerID, companionFullID);
local info = profile.data or EMPTY;
local PE = profile.PE or EMPTY;
local FIELDS_TO_CROP = {
TITLE = 150,
NAME = 100
}
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Icon and name
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local leftIcons = "";
if showCompanionIcons() then
-- Companion icon
if info.IC then
leftIcons = strconcat(Utils.str.icon(info.IC, 25), leftIcons, " ");
end
end
local mountCustomName = info.NA
if getConfigValue(CONFIG_CROP_TEXT) then
mountCustomName = crop(mountCustomName, FIELDS_TO_CROP.NAME);
end
if seriousDay and getConfigValue("AF_STUFF") then
mountCustomName = Rainbowify(mountCustomName);
end
tooltipCompanionBuilder:AddLine(leftIcons .. "|cff" .. (info.NH or "ffffff") .. (mountCustomName or mountName), 1, 1, 1, getMainLineFontSize());
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- full title
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showCompanionFullTitle() then
local fullTitle = "";
if info.TI then
fullTitle = strconcat("< ", info.TI, " |r>");
end
if fullTitle:len() > 0 then
if getConfigValue(CONFIG_CROP_TEXT) then
fullTitle = crop(fullTitle, FIELDS_TO_CROP.TITLE);
end
tooltipCompanionBuilder:AddLine(fullTitle, 1, 0.50, 0, getSubLineFontSize());
end
end
tooltipCompanionBuilder:AddSpace();
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Wow info
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showCompanionWoWInfo() then
tooltipCompanionBuilder:AddLine(loc.PR_CO_MOUNT .. " |cff" .. (info.NH or "ffffff") .. mountName, 1, 1, 1, getSubLineFontSize());
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Glance & new description notifications
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
if showCompanionNotifications() then
local notifText = "";
if PE and checkGlanceActivation(PE) then
notifText = GLANCE_ICON;
end
if ownerID ~= Globals.player_id and info.read == false then
notifText = notifText .. " " .. NEW_ABOUT_ICON;
end
if notifText:len() > 0 then
tooltipCompanionBuilder:AddLine(notifText, 1, 1, 1, getSmallLineFontSize());
end
end
tooltipCompanionBuilder:Build();
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- MAIN
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local GameTooltip_SetDefaultAnchor, UIParent = GameTooltip_SetDefaultAnchor, UIParent;
local function show(targetType, targetID, targetMode)
ui_CharacterTT:Hide();
ui_CompanionTT:Hide();
-- If option is to only show tooltips when player is in character and player is out of character, stop here
if getConfigValue(CONFIG_IN_CHARACTER_ONLY) and not isPlayerIC() then return end
-- If using TRP TT
if not UnitAffectingCombat("player") or not getConfigValue(CONFIG_CHARACT_COMBAT) then
-- If we have a target
if targetID then
ui_CharacterTT.target = targetID;
ui_CharacterTT.targetType = targetType;
ui_CharacterTT.targetMode = targetMode;
ui_CompanionTT.target = targetID;
ui_CompanionTT.targetType = targetType;
ui_CompanionTT.targetMode = targetMode;
-- Check if has a profile
if getConfigValue(CONFIG_PROFILE_ONLY) then
if targetMode == TYPE_CHARACTER and targetID ~= Globals.player_id and (not IsUnitIDKnown(targetID) or not hasProfile(targetID)) then
return;
end
if (targetMode == TYPE_BATTLE_PET or targetMode == TYPE_PET) and (getCompanionInfo(companionIDToInfo(targetID)) == EMPTY) then
return;
end
end
-- We have a target
if targetMode then
-- Stock all the current text from the GameTooltip
local originalTexts = getGameTooltipTexts(GameTooltip);
if (targetMode == TYPE_CHARACTER and isIDIgnored(targetID)) or ((targetMode == TYPE_BATTLE_PET or targetMode == TYPE_PET) and ownerIsIgnored(targetID)) then
ui_CharacterTT:SetOwner(GameTooltip, "ANCHOR_TOPRIGHT");
elseif not getAnchoredFrame() then
GameTooltip_SetDefaultAnchor(ui_CharacterTT, UIParent);
elseif getAnchoredPosition() == "ANCHOR_CURSOR" then
GameTooltip_SetDefaultAnchor(ui_CharacterTT, UIParent);
placeTooltipOnCursor(ui_CharacterTT);
else
ui_CharacterTT:SetOwner(getAnchoredFrame(), getAnchoredPosition());
end
ui_CharacterTT:SetBackdropBorderColor(1, 1, 1);
if targetMode == TYPE_CHARACTER then
writeTooltipForCharacter(targetID, originalTexts, targetType);
if showRelationColor() and targetID ~= Globals.player_id and not isIDIgnored(targetID) and IsUnitIDKnown(targetID) and hasProfile(targetID) then
ui_CharacterTT:SetBackdropBorderColor(getRelationColors(hasProfile(targetID)));
end
if shouldHideGameTooltip() and not (isIDIgnored(targetID) or unitIDIsFilteredForMatureContent(targetID)) then
GameTooltip:Hide();
end
-- Mounts
if targetID == Globals.player_id and getCurrentMountProfile() then
local mountSpellID = getCurrentMountSpellID();
local mountName = getCompanionNameFromSpellID(mountSpellID);
ui_CompanionTT:SetOwner(ui_CharacterTT, "ANCHOR_TOPLEFT");
writeTooltipForMount(Globals.player_id, nil, mountName);
else
local companionFullID, profileID, mountSpellID = TRP3_API.companions.register.getUnitMount(targetID, "mouseover");
if profileID then
local mountName = getCompanionNameFromSpellID(mountSpellID);
ui_CompanionTT:SetOwner(ui_CharacterTT, "ANCHOR_TOPLEFT");
writeTooltipForMount(targetID, companionFullID, mountName);
end
end
elseif targetMode == TYPE_BATTLE_PET or targetMode == TYPE_PET then
writeCompanionTooltip(targetID, originalTexts, targetType, targetMode);
if shouldHideGameTooltip() and not (ownerIsIgnored(targetID) or unitIDIsFilteredForMatureContent(targetID)) then
GameTooltip:Hide();
end
end
end
ui_CharacterTT:ClearAllPoints(); -- Prevent to break parent frame fade out if parent is a tooltip.
end
end
end
local function getFadeTime()
return (getAnchoredPosition() == "ANCHOR_CURSOR" or not fadeOutEnabled()) and 0 or 0.5;
end
local function onUpdate(self, elapsed)
self.TimeSinceLastUpdate = self.TimeSinceLastUpdate + elapsed;
if getAnchoredPosition() == "ANCHOR_CURSOR" then
placeTooltipOnCursor(self);
end
if (self.TimeSinceLastUpdate > getFadeTime()) then
self.TimeSinceLastUpdate = 0;
if self.target and self.targetType and not self.isFading then
if self.target ~= getUnitID(self.targetType) then
self.isFading = true;
self.target = nil;
if fadeOutEnabled() then
self:FadeOut();
else
self:Hide();
end
end
end
end
end
local function onUpdateCompanion(self, elapsed)
self.TimeSinceLastUpdate = self.TimeSinceLastUpdate + elapsed;
if (self.TimeSinceLastUpdate > getFadeTime()) then
self.TimeSinceLastUpdate = 0;
if self.target and self.targetType and not self.isFading then
if self.target ~= getUnitID(self.targetType) then
self.isFading = true;
self.target = nil;
if fadeOutEnabled() then
self:FadeOut();
else
self:Hide();
end
end
end
end
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- INIT
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
TRP3_API.events.listenToEvent(TRP3_API.events.WORKFLOW_ON_LOAD, function()
-- Listen to the mouse over event
Utils.event.registerHandler("UPDATE_MOUSEOVER_UNIT", function(...)
-- The event UPDATE_MOUSEOVER_UNIT is fired even when there is no unit on tooltip
-- But there is a target on mouseover (maintaining ALT on spell buttons)
-- So we need to check that we have indeed a unit before displaying our tooltip.
if GameTooltip:GetUnit() then
local targetID, targetMode = getUnitID("mouseover");
Events.fireEvent(Events.MOUSE_OVER_CHANGED, targetID, targetMode);
end
end);
end);
local function onModuleInit()
registerTooltipModuleIsEnabled = true;
getCompanionProfile = TRP3_API.companions.player.getCompanionProfile;
getCompanionRegisterProfile = TRP3_API.companions.register.getCompanionProfile;
isPlayerIC = TRP3_API.dashboard.isPlayerIC;
unitIDIsFilteredForMatureContent = TRP3_API.register.unitIDIsFilteredForMatureContent;
Events.listenToEvent(Events.MOUSE_OVER_CHANGED, function(targetID, targetMode)
show("mouseover", targetID, targetMode);
end);
Events.listenToEvent(Events.REGISTER_DATA_UPDATED, function(unitID, profileID, dataType)
if not unitID or (ui_CharacterTT.target == unitID) then
show("mouseover", getUnitID("mouseover"));
end
end);
ui_CharacterTT.TimeSinceLastUpdate = 0;
ui_CharacterTT:SetScript("OnUpdate", onUpdate);
ui_CompanionTT.TimeSinceLastUpdate = 0;
ui_CompanionTT:SetScript("OnUpdate", onUpdateCompanion);
IC_GUILD = " |cff00ff00(" .. loc.REG_TT_GUILD_IC .. ")";
OOC_GUILD = " |cffff0000(" .. loc.REG_TT_GUILD_OOC .. ")";
-- Config default value
registerConfigKey(CONFIG_PROFILE_ONLY, true);
registerConfigKey(CONFIG_IN_CHARACTER_ONLY, false);
registerConfigKey(CONFIG_CHARACT_COMBAT, false);
registerConfigKey(CONFIG_CHARACT_COLOR, true);
registerConfigKey(CONFIG_CHARACT_CONTRAST, false);
registerConfigKey(CONFIG_CROP_TEXT, true);
registerConfigKey(CONFIG_CHARACT_ANCHORED_FRAME, "GameTooltip");
registerConfigKey(CONFIG_CHARACT_ANCHOR, "ANCHOR_TOPRIGHT");
registerConfigKey(CONFIG_CHARACT_HIDE_ORIGINAL, true);
registerConfigKey(CONFIG_CHARACT_MAIN_SIZE, 16);
registerConfigKey(CONFIG_CHARACT_SUB_SIZE, 12);
registerConfigKey(CONFIG_CHARACT_TER_SIZE, 10);
registerConfigKey(CONFIG_CHARACT_ICONS, true);
registerConfigKey(CONFIG_CHARACT_FT, true);
registerConfigKey(CONFIG_CHARACT_RACECLASS, true);
registerConfigKey(CONFIG_CHARACT_REALM, true);
registerConfigKey(CONFIG_CHARACT_GUILD, true);
registerConfigKey(CONFIG_CHARACT_TARGET, true);
registerConfigKey(CONFIG_CHARACT_TITLE, true);
registerConfigKey(CONFIG_CHARACT_NOTIF, true);
registerConfigKey(CONFIG_CHARACT_CURRENT, true);
registerConfigKey(CONFIG_CHARACT_OOC, true);
registerConfigKey(CONFIG_CHARACT_CURRENT_SIZE, 140);
registerConfigKey(CONFIG_CHARACT_RELATION, true);
registerConfigKey(CONFIG_CHARACT_SPACING, true);
registerConfigKey(CONFIG_NO_FADE_OUT, false);
registerConfigKey(CONFIG_PREFER_OOC_ICON, "TEXT");
registerConfigKey(CONFIG_PETS_ICON, true);
registerConfigKey(CONFIG_PETS_TITLE, true);
registerConfigKey(CONFIG_PETS_OWNER, true);
registerConfigKey(CONFIG_PETS_NOTIF, true);
registerConfigKey(CONFIG_PETS_INFO, true);
ANCHOR_TAB = {
{loc.CO_ANCHOR_TOP_LEFT, "ANCHOR_TOPLEFT"},
{loc.CO_ANCHOR_TOP, "ANCHOR_TOP"},
{loc.CO_ANCHOR_TOP_RIGHT, "ANCHOR_TOPRIGHT"},
{loc.CO_ANCHOR_RIGHT, "ANCHOR_RIGHT"},
{loc.CO_ANCHOR_BOTTOM_RIGHT, "ANCHOR_BOTTOMRIGHT"},
{loc.CO_ANCHOR_BOTTOM, "ANCHOR_BOTTOM"},
{loc.CO_ANCHOR_BOTTOM_LEFT, "ANCHOR_BOTTOMLEFT"},
{loc.CO_ANCHOR_LEFT, "ANCHOR_LEFT"},
{loc.CO_ANCHOR_CURSOR, "ANCHOR_CURSOR"},
};
local OOC_INDICATOR_TYPES = {
{loc.CO_TOOLTIP_PREFERRED_OOC_INDICATOR_TEXT .. TRP3_API.Ellyb.ColorManager.RED("[" .. loc.CM_OOC .. "] "), "TEXT"},
{loc.CO_TOOLTIP_PREFERRED_OOC_INDICATOR_ICON .. OOC_ICON, "ICON"}
}
-- Build configuration page
local CONFIG_STRUCTURE = {
id = "main_config_tooltip",
menuText = loc.CO_TOOLTIP,
pageText = loc.CO_TOOLTIP,
elements = {
{
inherit = "TRP3_ConfigH1",
title = loc.CO_TOOLTIP_COMMON,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_PROFILE_ONLY,
configKey = CONFIG_PROFILE_ONLY,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_IN_CHARACTER_ONLY,
configKey = CONFIG_IN_CHARACTER_ONLY,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_COMBAT,
configKey = CONFIG_CHARACT_COMBAT,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_COLOR,
configKey = CONFIG_CHARACT_COLOR,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_CONTRAST,
configKey = CONFIG_CHARACT_CONTRAST,
help = loc.CO_TOOLTIP_CONTRAST_TT,
dependentOnOptions = {CONFIG_CHARACT_COLOR},
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_CROP_TEXT,
configKey = CONFIG_CROP_TEXT,
help = loc.CO_TOOLTIP_CROP_TEXT_TT
},
{
inherit = "TRP3_ConfigEditBox",
title = loc.CO_TOOLTIP_ANCHORED,
configKey = CONFIG_CHARACT_ANCHORED_FRAME,
},
{
inherit = "TRP3_ConfigDropDown",
widgetName = "TRP3_ConfigurationTooltip_Charact_Anchor",
title = loc.CO_TOOLTIP_ANCHOR,
listContent = ANCHOR_TAB,
configKey = CONFIG_CHARACT_ANCHOR,
listWidth = nil,
listCancel = true,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_HIDE_ORIGINAL,
configKey = CONFIG_CHARACT_HIDE_ORIGINAL,
},
{
inherit = "TRP3_ConfigSlider",
title = loc.CO_TOOLTIP_MAINSIZE,
configKey = CONFIG_CHARACT_MAIN_SIZE,
min = 6,
max = 20,
step = 1,
integer = true,
},
{
inherit = "TRP3_ConfigSlider",
title = loc.CO_TOOLTIP_SUBSIZE,
configKey = CONFIG_CHARACT_SUB_SIZE,
min = 6,
max = 20,
step = 1,
integer = true,
},
{
inherit = "TRP3_ConfigSlider",
title = loc.CO_TOOLTIP_TERSIZE,
configKey = CONFIG_CHARACT_TER_SIZE,
min = 6,
max = 20,
step = 1,
integer = true,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_SPACING,
help = loc.CO_TOOLTIP_SPACING_TT,
configKey = CONFIG_CHARACT_SPACING,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_NO_FADE_OUT,
configKey = CONFIG_NO_FADE_OUT,
},
{
inherit = "TRP3_ConfigH1",
title = loc.CO_TOOLTIP_CHARACTER,
},
{
inherit = "TRP3_ConfigDropDown",
widgetName = "TRP3_ConfigurationTooltip_Charact_OOC_Indicator",
title = loc.CO_TOOLTIP_PREFERRED_OOC_INDICATOR,
listContent = OOC_INDICATOR_TYPES,
configKey = CONFIG_PREFER_OOC_ICON,
listWidth = nil,
listCancel = true,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_ICONS,
configKey = CONFIG_CHARACT_ICONS,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_TITLE,
configKey = CONFIG_CHARACT_TITLE,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_FT,
configKey = CONFIG_CHARACT_FT,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_RACE,
configKey = CONFIG_CHARACT_RACECLASS,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_REALM,
configKey = CONFIG_CHARACT_REALM,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_GUILD,
configKey = CONFIG_CHARACT_GUILD,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_TARGET,
configKey = CONFIG_CHARACT_TARGET,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_CURRENT,
configKey = CONFIG_CHARACT_CURRENT,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.DB_STATUS_CURRENTLY_OOC,
configKey = CONFIG_CHARACT_OOC,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_NOTIF,
configKey = CONFIG_CHARACT_NOTIF,
help = loc.CO_TOOLTIP_NOTIF_TT,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_RELATION,
help = loc.CO_TOOLTIP_RELATION_TT,
configKey = CONFIG_CHARACT_RELATION,
},
{
inherit = "TRP3_ConfigSlider",
title = loc.CO_TOOLTIP_CURRENT_SIZE,
configKey = CONFIG_CHARACT_CURRENT_SIZE,
min = 40,
max = 200,
step = 10,
integer = true,
},
{
inherit = "TRP3_ConfigH1",
title = loc.CO_TOOLTIP_PETS,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_ICONS,
configKey = CONFIG_PETS_ICON,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_FT,
configKey = CONFIG_PETS_TITLE,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_OWNER,
configKey = CONFIG_PETS_OWNER,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_PETS_INFO,
configKey = CONFIG_PETS_INFO,
},
{
inherit = "TRP3_ConfigCheck",
title = loc.CO_TOOLTIP_NOTIF,
configKey = CONFIG_PETS_NOTIF,
},
}
}
if seriousDay then
registerConfigKey("AF_STUFF", true);
tinsert(CONFIG_STRUCTURE.elements, 2, {
inherit = "TRP3_ConfigCheck",
title = Rainbowify("Enable April Fools' joke"),
help = "Disable this option to remove this year's April Fools' joke.",
configKey = "AF_STUFF",
})
end
TRP3_API.ui.tooltip.CONFIG = CONFIG_STRUCTURE;
TRP3_API.configuration.registerConfigurationPage(CONFIG_STRUCTURE);
end
local MODULE_STRUCTURE = {
["name"] = "Characters and companions tooltip",
["description"] = "Use TRP3 custom tooltip for characters and companions",
["version"] = 1.000,
["id"] = "trp3_tooltips",
["onStart"] = onModuleInit,
["minVersion"] = 3,
};
TRP3_API.module.registerModule(MODULE_STRUCTURE); |
---------------------------------------------------------------------------------------------------
-- User story: https://github.com/smartdevicelink/sdl_core/issues/2479
--
-- Description:
-- SDL does respond ACK on second start service request (Unprotected => Protected)
--
-- Steps to reproduce:
-- 1. First service started as NOT Protected.
-- 2. Start video sreaming.
-- 3. Second service starting as Protected.
-- Expected:
-- 1. SDL respond ACK on second service and will continuous stream through the encrypted channel.
---------------------------------------------------------------------------------------------------
--[[ Required Shared libraries ]]
local common = require('test_scripts/Security/DTLS/common')
local runner = require('user_modules/script_runner')
local utils = require("user_modules/utils")
--[[ Test Configuration ]]
runner.testSettings.isSelfIncluded = false
-- [[ Local functions ]]
local function appStartVideoStreamingNotProtected(pServiceId)
common.getMobileSession():StartService(pServiceId)
common.getHMIConnection():ExpectRequest("Navigation.StartStream")
:Do(function(_, data)
common.getHMIConnection():SendResponse(data.id, data.method, "SUCCESS", {})
common.getMobileSession():StartStreaming(pServiceId, "files/SampleVideo_5mb.mp4")
common.getHMIConnection():ExpectNotification("Navigation.OnVideoDataStreaming", { available = true })
end)
common.getMobileSession():ExpectNotification("OnHMIStatus")
:Times(0)
end
local function startServiceProtectedSecond(pServiceId)
common.getMobileSession():StartSecureService(pServiceId)
common.getMobileSession():ExpectHandshakeMessage()
:Times(1)
common.getMobileSession():ExpectControlMessage(pServiceId, {
frameInfo = common.frameInfo.START_SERVICE_ACK,
encryption = true
})
common.getHMIConnection():ExpectNotification("Navigation.OnVideoDataStreaming",
{ available = false }, { available = true })
:Times(2)
common.getHMIConnection():ExpectRequest("Navigation.StopStream", { appID = common.getHMIAppId() })
:Do(function(_, data)
common.getHMIConnection():SendResponse(data.id, data.method, "SUCCESS", {})
end)
common.getHMIConnection():ExpectRequest("Navigation.StartStream", { appID = common.getHMIAppId() })
:Do(function(_, data)
common.getHMIConnection():SendResponse(data.id, data.method, "SUCCESS", {})
end)
common.getHMIConnection():ExpectNotification("BasicCommunication.OnServiceUpdate",
{ appID = common.getHMIAppId(), serviceEvent = "REQUEST_RECEIVED", serviceType = "VIDEO" },
{ appID = common.getHMIAppId(), serviceEvent = "REQUEST_ACCEPTED", serviceType = "VIDEO" })
:Times(2)
common.getMobileSession():ExpectNotification("OnAppInterfaceUnregistered")
:Times(0)
common.getMobileSession():ExpectNotification("OnHMIStatus")
:Times(0)
utils.wait(10000)
end
--[[ Scenario ]]
runner.Title("Preconditions")
runner.Step("Clean environment", common.preconditions)
runner.Step("Set DTLS protocol in SDL", common.setSDLIniParameter, { "Protocol", "DTLSv1.0" })
runner.Step("Start SDL, HMI, connect Mobile, start Session", common.start)
runner.Step("Register App", common.registerApp)
runner.Step("Policy Table Update Certificate", common.policyTableUpdate, { common.ptUpdate })
runner.Step("Activate App", common.activateApp)
runner.Title("Test")
runner.Step("Start Service NOT protected and start Stream", appStartVideoStreamingNotProtected, { 11 })
runner.Step("Start Protected Service protected", startServiceProtectedSecond, { 11 })
runner.Title("Postconditions")
runner.Step("Stop SDL, restore SDL settings", common.postconditions)
|
--[[
flags.register("v", "verbose")
flags.register("x", "extract") {
key = "mode";
}
flags.register("l", "list") {
key = "mode";
}
flags.register("r", "res") {
type = flags.list;
}
Default type is boolean, meaning that -f --foo (set) +f --no-foo (unset) are
valid.
If type is anything other than boolean, it requires an argument, e.g. -f bar
or --foo=bar.
All equivalent, if foo requires an argument:
-f bar
-fbar
--foo bar
--foo=bar
]]
flags = {
registered = {};
defaults = {};
name = (arg and arg[0]) or "(unknown)";
max_length = 0;
}
flags.parsed = flags.defaults
local function asId(str)
return (str:gsub("^(%d)", "_%1"):gsub("%W", "_"))
end
function flags.register(...)
local aliases = {...}
assert(#aliases > 0, "no arguments provided to flags.register")
local flag = {}
flag.key = asId(aliases[1])
flag.help = "(no help text)"
flag.name = (#aliases[1] == 1 and "-%s" or "--%s"):format(aliases[1])
flag.type = flags.boolean
flag.aliases = aliases
for _,alias in ipairs(aliases) do
assert(not flags.registered[alias], "Flag '"..alias.."' defined in multiple places!")
flags.registered[alias] = flag
flags.max_length = math.max(flags.max_length, #alias)
end
flags.registered[flag.key] = flag
return flags.configure(flag)
end
function flags.configure(flag)
return function(init)
for k,v in pairs(init) do
flag[k] = v
end
if flag.type ~= flags.boolean then
flag.needs_value = true
end
if flag.default ~= nil then
flags.defaults[flag.key] = flag.default
end
assert(not (flag.default ~= nil and flag.required), "Required flags must not have default values")
end
end
function flags.help()
local template = string.format("%%%ds%%s%%s", flags.max_length + 4)
local seen,defs,buf = {},{},{}
for k,v in pairs(flags.registered) do
if not seen[v] then
seen[v] = true
table.insert(defs, v)
end
end
table.sort(defs, function(x,y) return x.name < y.name end)
for _,def in ipairs(defs) do
table.insert(buf, template:format(def.name, ' ', def.help))
for i=2,#def.aliases do
local alias = def.aliases[i]
alias = ((#alias == 1) and '-' or '--')..alias
table.insert(buf, template:format(alias, '', ''))
end
end
return table.concat(buf, '\n')
end
local function setFlag(info, value)
assert(value ~= nil, "Flag '"..info.name.."' requires an argument, but none was provided")
if info.value ~= nil then
value = info.value
end
value = info.type(info.name, value)
flags.parsed[info.key] = value
if info.set then
info.set(info.key, value)
end
end
local function appendArg(value)
table.insert(flags.parsed, value)
end
-- Parse a long option with associated value, e.g. --log-level=debug; the
-- first argument is the flag name, the second everything after the =.
local function parseLongWithValue(arg, allow_undefined)
local flag,value = arg:match("^%-%-([^=]+)=(.*)")
if not flag then return false end
local invert = false
if flag:match("^no%-") then
flag = flag:sub(4)
invert = true
end
local info = flags.registered[flag]
if not info then
assert(allow_undefined, "unrecognized option '"..flag.."'")
return false
end
assert(info.needs_value, "option '--"..flag.."' doesn't allow an argument")
assert(not invert, "option '--"..flag.."' requires an argument and cannot be inverted with --no")
setFlag(info, value)
return true
end
-- Parse a long option with no attached value.
local function parseLong(arg, next, allow_undefined)
local flag = arg:match("^%-%-(..+)")
if not flag then return false end
local invert = false
if flag:match("^no%-") then
flag = flag:sub(4)
invert = true
end
local info = flags.registered[flag]
if not info then
assert(allow_undefined, "unrecognized option '--"..flag.."'")
return false
elseif not info.needs_value then
setFlag(info, not invert)
return true
end
assert(not invert, "option '--"..flag.."' requires an argument and cannot be inverted with --no")
setFlag(info, next())
return true
end
-- Parse a short option or a block of short options, e.g. -tvf or -o foo.
local function parseShort(arg, next, allow_undefined)
local invert,arg = arg:match("^([-+])(.+)")
if not invert then return false end
invert = invert == "+"
for flag,idx in arg:gmatch("(.)()") do
local info = flags.registered[flag]
if not info then
assert(allow_undefined, "unrecognized option '-"..flag.."'")
return false
elseif info.needs_value then
assert(not invert, "option '-"..flag.."' requires an argument and cannot be inverted with +")
-- Flag with required argument; everything here after the flag is the
-- argument.
local val = arg:sub(idx)
if #val == 0 then val = next() end
setFlag(info, val)
return true
else
-- Boolean flag; its mere presence or absense sets it.
setFlag(info, not invert)
end
end
return true
end
local function parsePositional(arg)
appendArg(arg)
return true
end
local function parseOne(arg, next, allow_undefined)
if arg == "--" then
-- signifies end of flags; everything after this is a positional even if it
-- looks like a flag.
for arg in next do
-- FIXME append to argv
end
else
return parseLongWithValue(arg, next, allow_undefined)
or parseLong(arg, next, allow_undefined)
or parseShort(arg, next, allow_undefined)
or parsePositional(arg, next)
end
end
function flags.parse(argv, allow_undefined, allow_missing)
flags.parsed = setmetatable({}, { __index = flags.defaults })
local i = 0
local function next_arg()
i = i+1
return argv[i]
end
-- parse command line arguments
for arg in next_arg do
parseOne(arg, next_arg, allow_undefined)
end
-- check that all mandatory arguments are provided
for name,info in pairs(flags.registered) do
if info.required and not allow_missing then
flags.require(name)
end
end
return flags.parsed
end
function flags.require(name)
local info = flags.registered[name]
if not info then
error("Attempt to require value of unknown command line flag '"..name.."'.")
end
local value = rawget(flags.parsed, info.key)
if value ~= nil then
return value
end
error("Required command line flag '"..info.name.."' was not provided.")
end
setmetatable(flags, {
__call = function(self, name)
return flags.parsed[
assert(flags.registered[name],
"Attempt to get value of unknown command line flag '"..name.."'.")
.key
]
end;
})
--
-- Type functions. These are used as values to the .type property of a flag
-- definition; when the flag is set, the value on the command line is passed
-- to the type function, which returns the value that should be stored.
-- This is where converting (e.g.) "1,2,3" to { 1, 2, 3 } happens.
--
function flags.boolean(flag, arg)
-- As a special case, flags.boolean is passed either true or false
return arg
end
function flags.string(flag, arg)
return arg
end
function flags.number(flag, arg)
return (assert(tonumber(arg), "option '"..flag.."' requires a numeric argument"))
end
-- listOf is a type function constructor; it's used as (e.g.)
-- type = flags.listOf(flags.number, ",")
function flags.listOf(type, separator)
separator = separator or ','
return function(flag, arg)
local vals = {}
local start = 1
for stop in function() return arg:find(separator, start, true) end do
table.insert(vals, type(flag, arg:sub(start, stop-1)))
start = stop+1
end
table.insert(vals, type(flag, arg:sub(start)))
return vals
end
end
-- This covers the most common case (comma-separated list of strings).
flags.list = flags.listOf(flags.string, ",")
-- mapOf is a type constructor for k-v maps
-- K and V are the key and value types
-- assigner is the = in k=v
-- separator is the character that seperates different k=v entries
function flags.mapOf(K, V, separator, assigner)
separator = separator or ','
assigner = assigner or '='
local KVList = flags.listOf(flags.string, separator)
local kv_pattern = '([^'..assigner..']+)'..assigner..'(.*)'
return function(flag, arg)
local kvs = KVList(flag, arg)
local map = {}
for _,kv in ipairs(kvs) do
local key,value = kv:match(kv_pattern)
assert(key and value,
"entry '"..kv..
"' in value for '"..flag..
"' could not be parsed as a key-value pair using pattern '"..kv_pattern.."'")
map[K(flag, key)] = V(flag, value)
end
return map
end
end
-- The most common case: string => string map
flags.map = flags.mapOf(flags.string, flags.string)
|
--[[lit-meta
name = "creationix/coro-fs"
version = "2.2.5"
homepage = "https://github.com/luvit/lit/blob/master/deps/coro-fs.lua"
description = "A coro style interface to the filesystem."
tags = {"coro", "fs"}
license = "MIT"
dependencies = {
"creationix/[email protected]"
}
author = { name = "Tim Caswell" }
contributors = {"Tim Caswell", "Alex Iverson"}
]]
local uv = require('uv')
local fs = {}
local pathJoin = require('pathjoin').pathJoin
local function assertResume(thread, ...)
local success, err = coroutine.resume(thread, ...)
if not success then
error(debug.traceback(thread, err), 0)
end
end
local function noop() end
local function makeCallback()
local thread = coroutine.running()
return function (err, value, ...)
if err then
assertResume(thread, nil, err)
else
assertResume(thread, value == nil and true or value, ...)
end
end
end
function fs.mkdir(path, mode)
uv.fs_mkdir(path, mode or 511, makeCallback())
return coroutine.yield()
end
function fs.open(path, flags, mode)
uv.fs_open(path, flags or "r", mode or 438, makeCallback())
return coroutine.yield()
end
function fs.unlink(path)
uv.fs_unlink(path, makeCallback())
return coroutine.yield()
end
function fs.stat(path)
uv.fs_stat(path, makeCallback())
return coroutine.yield()
end
function fs.lstat(path)
uv.fs_lstat(path, makeCallback())
return coroutine.yield()
end
function fs.symlink(target, path, flags)
uv.fs_symlink(target, path, flags, makeCallback())
return coroutine.yield()
end
function fs.readlink(path)
uv.fs_readlink(path, makeCallback())
return coroutine.yield()
end
function fs.fstat(fd)
uv.fs_fstat(fd, makeCallback())
return coroutine.yield()
end
function fs.chmod(path, mode)
uv.fs_chmod(path, mode, makeCallback())
return coroutine.yield()
end
function fs.fchmod(fd, mode)
uv.fs_fchmod(fd, mode, makeCallback())
return coroutine.yield()
end
function fs.read(fd, length, offset)
uv.fs_read(fd, length or 1024*48, offset or -1, makeCallback())
return coroutine.yield()
end
function fs.write(fd, data, offset)
uv.fs_write(fd, data, offset or -1, makeCallback())
return coroutine.yield()
end
function fs.close(fd)
uv.fs_close(fd, makeCallback())
return coroutine.yield()
end
function fs.access(path, mode)
uv.fs_access(path, mode or "", makeCallback())
return coroutine.yield()
end
function fs.rename(path, newPath)
uv.fs_rename(path, newPath, makeCallback())
return coroutine.yield()
end
function fs.rmdir(path)
uv.fs_rmdir(path, makeCallback())
return coroutine.yield()
end
function fs.rmrf(path)
local success, err
success, err = fs.rmdir(path)
if success then return success end
if err:match("^ENOTDIR:") then return fs.unlink(path) end
if not err:match("^ENOTEMPTY:") then return success, err end
for entry in assert(fs.scandir(path)) do
local subPath = pathJoin(path, entry.name)
if entry.type == "directory" then
success, err = fs.rmrf(pathJoin(path, entry.name))
else
success, err = fs.unlink(subPath)
end
if not success then return success, err end
end
return fs.rmdir(path)
end
function fs.scandir(path)
uv.fs_scandir(path, makeCallback())
local req, err = coroutine.yield()
if not req then return nil, err end
return function ()
local name, typ = uv.fs_scandir_next(req)
if not name then return name, typ end
if type(name) == "table" then return name end
return {
name = name,
type = typ
}
end
end
function fs.readFile(path)
local fd, stat, data, err
fd, err = fs.open(path)
if err then return nil, err end
stat, err = fs.fstat(fd)
if stat then
--special case files on virtual filesystem
if stat.size == 0 and stat.birthtime.sec == 0 and stat.birthtime.nsec == 0 then
-- handle magic files the kernel generates as requested.
-- hopefully the heuristic works everywhere
local buffs = {}
local offs = 0
local size = 1024 * 48
repeat
data, err = fs.read(fd, size, offs)
table.insert(buffs, data)
offs = offs + (data and #data or 0)
until err or #data < size
if not err then
data = table.concat(buffs)
end
else
-- normal case for normal files.
data, err = fs.read(fd, stat.size)
end
end
uv.fs_close(fd, noop)
return data, err
end
function fs.writeFile(path, data, mkdir)
local fd, success, err
fd, err = fs.open(path, "w")
if err then
if mkdir and string.match(err, "^ENOENT:") then
success, err = fs.mkdirp(pathJoin(path, ".."))
if success then return fs.writeFile(path, data) end
end
return nil, err
end
success, err = fs.write(fd, data)
uv.fs_close(fd, noop)
return success, err
end
function fs.mkdirp(path, mode)
local success, err = fs.mkdir(path, mode)
if success or string.match(err, "^EEXIST") then
return true
end
if string.match(err, "^ENOENT:") then
success, err = fs.mkdirp(pathJoin(path, ".."), mode)
if not success then return nil, err end
return fs.mkdir(path, mode)
end
return nil, err
end
function fs.chroot(base)
local chroot = {
base = base,
fstat = fs.fstat,
fchmod = fs.fchmod,
read = fs.read,
write = fs.write,
close = fs.close,
}
local function resolve(path)
assert(path, "path missing")
return pathJoin(base, pathJoin("./".. path))
end
function chroot.mkdir(path, mode)
return fs.mkdir(resolve(path), mode)
end
function chroot.mkdirp(path, mode)
return fs.mkdirp(resolve(path), mode)
end
function chroot.open(path, flags, mode)
return fs.open(resolve(path), flags, mode)
end
function chroot.unlink(path)
return fs.unlink(resolve(path))
end
function chroot.stat(path)
return fs.stat(resolve(path))
end
function chroot.lstat(path)
return fs.lstat(resolve(path))
end
function chroot.symlink(target, path, flags)
-- TODO: should we resolve absolute target paths or treat it as opaque data?
return fs.symlink(target, resolve(path), flags)
end
function chroot.readlink(path)
return fs.readlink(resolve(path))
end
function chroot.chmod(path, mode)
return fs.chmod(resolve(path), mode)
end
function chroot.access(path, mode)
return fs.access(resolve(path), mode)
end
function chroot.rename(path, newPath)
return fs.rename(resolve(path), resolve(newPath))
end
function chroot.rmdir(path)
return fs.rmdir(resolve(path))
end
function chroot.rmrf(path)
return fs.rmrf(resolve(path))
end
function chroot.scandir(path, iter)
return fs.scandir(resolve(path), iter)
end
function chroot.readFile(path)
return fs.readFile(resolve(path))
end
function chroot.writeFile(path, data, mkdir)
return fs.writeFile(resolve(path), data, mkdir)
end
return chroot
end
return fs
|
--Copyright 2016 Simon Diepold <[email protected]>
--License: BSD
-- prints all available unix like commands
function help()
print(
"load(file) returns the content of a file\n"..
"grep(pattern) searches a pattern in all files\n"..
"lc(file) counts the number of lines\n"..
"ls() lists all file on flash\n"..
"rm(file) deletes a file from flash\n"..
"mv(src,dest) renames/moves a file\n"..
"cat(file,...) prints one or more files\n"..
"touch(file) creates a file\n"..
"fsinfo() shows filsystem info\n"..
"cp(src,dest) copy file\n"..
"lsgpio() lists gpio states\n"..
"ip() shows ip config\n"..
"lswifi() lists all wifi networks\n"..
"ap(ssid,passwd) creates a access point"
)
end
--loads a file into a varriable
function load(src)
file.open(src,"r")
local tmp = ""
while true do
local line = file.readline()
if(line == nil) then
break
end
tmp = tmp..line
end
return tmp
end
--searches pattern in all files
function grep(pattern)
local l = file.list()
for k,v in pairs(l) do
file.open(k,"r")
local lineNum = 1
local filenamePrompt = false
while true do
local line = file.readline()
if(line == nil) then
break
end
if(string.find(line,pattern) ~= nil) then
if(filenamePrompt == false) then
print(k)
filenamePrompt = true
end
print(lineNum..":"..string.gsub(line,"\n",""))
end
lineNum = lineNum+1
end
end
end
--counts lines of a file
function lc(src)
file.open(src,"r")
local num = 0
while true do
line = file.readline()
if(line == nil) then
break
end
num = num+1
end
return num
end
-- lists all files on the ESP memory
function ls()
local l = file.list()
res = ""
for k,v in pairs(l) do
local len = string.len(k)
if(len <= 20) then
res = res..k..string.rep(" ",22-len)..string.format("%6d Bytes\n",v)
else
res = res..string.sub(k,0,20)..string.format("%6d Bytes\n",v)
end
end
print(res)
end
-- remove file
function rm(f)
file.remove(f)
end
--rename/move file
function mv(src,target)
file.rename(src,target)
end
-- prints the content of files and returns it's content
function cat(...)
local res=""
for i,v in ipairs(arg) do
file.open(v,"r")
while true do
line = file.readline()
if(line == nil) then
break
end
print(line)
end
end
end
-- create a file
function touch(f)
file.open(f,"a+")
file.write("")
file.close()
end
-- show information about fhe flash filesystem
function fsinfo()
remaining, used, total=file.fsinfo()
print("\nFile system info:\nTotal : "..total.." Bytes\nUsed : "..used.." Bytes\nRemain: "..remaining.." Bytes\n")
end
-- copy files
function cp(src,target)
file.open(src,"r")
local tmp = ""
while true do
line = file.readline()
if(line == nil) then
break
end
tmp = tmp..line
end
file.close()
file.open(target,"a+")
file.write(tmp)
file.close()
end
--show the current status of all pins
function lsgpio()
local values = "values|"
local title = " GPIO|"
for i=0,12,1 do
title=string.format("%s%2d|",title,i)
values=string.format("%s%2d|",values,gpio.read(i))
end
local border=string.rep("-",string.len(title))
print(border.."\n"..title.."\n"..border.."\n"..values.."\n"..border)
end
--shows current IP address and station mode
function ip()
print("ip mask broadcast")
local m = wifi.getmode();
if(m == wifi.SOFTAP) then
print(wifi.ap.getip())
else
print(wifi.sta.getip())
end
end
-- lists the current avialable wifi networks
function lswifi()
local m = wifi.getmode();
if(m == wifi.NULLMODE) then
wifi.setmode(wifi.STATION);
end
wifi.sta.getap(function(t)
for k,v in pairs(t) do
print(k.." : "..v)
end
end)
end
-- setup access point with wpa 2 in a short command
function ap(ssid,passwd)
if(string.len(passwd) < 8) then
print("your password must be at leat 8 characters")
return false
end
wifi.setmode(wifi.SOFTAP)
cfg = {}
cfg.ssid = ssid
cfg.pwd = passwd
wifi.ap.config(cfg)
wifi.ap.dhcp.start()
end
|
-- a finish effect that displays the cooldown at the center of the screen
local AddonName, Addon = ...
local L = LibStub("AceLocale-3.0"):GetLocale(AddonName)
local AlertFrame = CreateFrame("Frame", nil, UIParent)
AlertFrame:SetPoint("CENTER")
AlertFrame:SetSize(50, 50)
AlertFrame:SetAlpha(0)
AlertFrame:Hide()
local icon = AlertFrame:CreateTexture(nil, "ARTWORK")
icon:SetAllPoints(AlertFrame)
AlertFrame.icon = icon
local animationGroup = AlertFrame:CreateAnimationGroup()
animationGroup:SetLooping("NONE")
animationGroup:SetScript("OnFinished", function() AlertFrame:Hide() end)
AlertFrame.animationGroup = animationGroup
local function newAnim(type, order, from, to)
local anim = AlertFrame.animationGroup:CreateAnimation(type)
anim:SetDuration(0.3)
anim:SetOrder(order)
if type == "Scale" then
anim:SetOrigin("CENTER", 0, 0)
anim:SetScale(from, from)
else
anim:SetFromAlpha(from)
anim:SetToAlpha(to)
end
end
newAnim("Scale", 1, 2.5)
newAnim("Alpha", 1, 0, .7)
newAnim("Scale", 2, -2.5)
newAnim("Alpha", 2, .7, 0)
local AlertEffect = Addon.FX:Create("alert", L.Alert, L.AlertTip)
function AlertEffect:Run(cooldown)
local buttonIcon = Addon:GetButtonIcon(cooldown:GetParent())
if not buttonIcon then
return
end
AlertFrame:Show()
local alertIcon = AlertFrame.icon
alertIcon:SetVertexColor(buttonIcon:GetVertexColor())
alertIcon:SetTexture(buttonIcon:GetTexture())
local alertAnimation = AlertFrame.animationGroup
if alertAnimation:IsPlaying() then
alertAnimation:Finish()
end
alertAnimation:Play()
end
|
local MoneyEvents = UserEvent.Money();
local _inventory = {};
local _capacity = 14;
local _hold_control = false;
local _sell_button = nil;
local GAP_BETWEEN_ITEMS = 0.05; --SceneUnits
local ITEM_SPRITE_SIZE = obe.Transform.UnitVector(0.1, 0.1); --SceneUnits
local SELECTION_SPRITE = "sprites://item_select.png";
local ITEMS_PER_LINE = 7;
local GAP_BETWEEN_LINES = 0.1; --SceneUnits
function Local.Init(pos)
This.SceneNode:setPosition(obe.Transform.UnitVector(pos.x, pos.y, obe.Transform.Units.SceneUnits));
_sell_button = Engine.Scene:createGameObject("Button")({
pos=obe.Transform.UnitVector(1, 1),
label="Sell",
on_press=function()
Object:SellSelection();
end});
_sell_button:SetEnabled(false);
end
function Object:AddItem(item)
if #_inventory >= _capacity then return false end;
new_item = loadItem(item);
table.insert(_inventory, new_item);
new_item:on_acquire(Object);
UpdateView();
end
function loadItem(item)
new_item = {
display_name = item.display_name,
sprite = Engine.Scene:createSprite(),
on_remove = item.on_remove or function()end,
on_acquire = item.on_acquire or function()end,
use = item.use or function()end,
selected = false,
selection_sprite = Engine.Scene:createSprite(),
sell_price = item.sell_price or 0
};
new_item.sprite:loadTexture(item.texture);
new_item.sprite:setSize(ITEM_SPRITE_SIZE);
new_item.selection_sprite:loadTexture(SELECTION_SPRITE);
new_item.selection_sprite:setSize(ITEM_SPRITE_SIZE);
new_item.selection_sprite:setVisible(false);
return new_item;
end
function Object:RemoveItem(index)
Object:RemoveItems({index});
end
function Object:RemoveItems(indexes)
if #indexes <= 0 then return end;
for _, i in ipairs(indexes) do
if _inventory[i] ~= nil then
_inventory[i]:on_remove(Object);
Engine.Scene:removeSprite(_inventory[i].sprite:getId());
Engine.Scene:removeSprite(_inventory[i].selection_sprite:getId());
_inventory[i].to_remove = true;
end
end
for i = #_inventory, 1, -1 do
if _inventory[i].to_remove == true then
table.remove(_inventory, i);
end
end
UpdateView();
end
function Object:AddCapacity(add)
_capacity = _capacity + add;
end
function Object:SetCapacity(capacity)
-- TODO what if capacity < number of items ?
_capacity = capacity;
end
function Object:HasItem(item)
--TODO compare all necessary fields
end
function Object:Count()
return #_inventory;
end
function UpdateView()
local line = 0;
local line_pos = 0;
for i, item in ipairs(_inventory) do
line = i // (ITEMS_PER_LINE + 1);
line_pos = (i-1) % ITEMS_PER_LINE;
local sprite_pos = This.SceneNode:getPosition() + obe.Transform.UnitVector((line_pos)*(ITEM_SPRITE_SIZE.x+GAP_BETWEEN_ITEMS), line*(ITEM_SPRITE_SIZE.y+GAP_BETWEEN_LINES), obe.Transform.Units.SceneUnits)
item.sprite:setPosition(sprite_pos);
item.selection_sprite:setPosition(sprite_pos);
end
end
function UnselectAll()
for i, item in ipairs(_inventory) do
item.selected = false;
item.selection_sprite:setVisible(false);
end
end
function GetSelectedItems()
local selected = {}
for _, item in ipairs(_inventory) do
if item.selected then
table.insert(selected, item);
end
end
return selected;
end
function Event.Keys.LControl(event)
if event.state == obe.Input.InputButtonState.Pressed then
_hold_control = true;
elseif event.state == obe.Input.InputButtonState.Released then
_hold_control = false;
end
end
-- Use item
function Event.Keys.Space(event)
if event.state == obe.Input.InputButtonState.Pressed then
for _, item in ipairs(_inventory) do
if item.selected then
item.use();
end
end
end
end
-- Sell item
function Object:SellSelection()
local to_remove = {}
for i, item in ipairs(_inventory) do
if item.selected then
MoneyEvents:trigger("Gained", {amount = item.sell_price});
table.insert(to_remove, i);
end
end
Object:RemoveItems(to_remove);
_sell_button:SetEnabled(false);
end
function Event.Keys.S(event)
if event.state == obe.Input.InputButtonState.Pressed then
Object:SellSelection();
end
end
-- Select item
function Event.Cursor.Press(event)
local click_pos = obe.Transform.UnitVector(event.x, event.y, obe.Transform.Units.ViewPixels);
local item_clicked = false;
if event.left == true then
for i, item in ipairs(_inventory) do
if item.sprite:contains(click_pos) then
item_clicked = true;
if _hold_control then
item.selected = not item.selected
else
UnselectAll();
item.selected = true;
end
item.selection_sprite:setVisible(item.selected);
break;
end
end
end
if not item_clicked then
UnselectAll();
end
_sell_button:SetEnabled(#GetSelectedItems() > 0);
end
|
return function(parameters)
return {
position = parameters.position or {x = 0, y = 0, z = 0},
scale = parameters.scale or {x = 0, y = 0},
anchors = parameters.anchors or {up = 1, left = 1, right = 1, down = 1},
offset = parameters.offset or {up = 0, left = 0, right = 0, down = 0},
useTween = parameters.useTween or true,
velocity = parameters.velocity or 5
}
end
|
local path = require "nvim-lsp-installer.path"
local fs = require "nvim-lsp-installer.fs"
local process = require "nvim-lsp-installer.process"
local platform = require "nvim-lsp-installer.platform"
local installers = require "nvim-lsp-installer.installers"
local shell = require "nvim-lsp-installer.installers.shell"
local M = {}
---@param url string @The url to download.
---@param out_file string @The relative path to where to write the contents of the url.
function M.download_file(url, out_file)
return installers.when {
---@type ServerInstallerFunction
unix = function(_, callback, context)
context.stdio_sink.stdout(("Downloading file %q...\n"):format(url))
process.attempt {
jobs = {
process.lazy_spawn("wget", {
args = { "-nv", "-O", out_file, url },
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
}),
process.lazy_spawn("curl", {
args = { "-fsSL", "-o", out_file, url },
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
}),
},
on_finish = callback,
}
end,
win = shell.powershell(("iwr -UseBasicParsing -Uri %q -OutFile %q"):format(url, out_file)),
}
end
---@param file string @The relative path to the file to unzip.
---@param dest string|nil @The destination of the unzip.
function M.unzip(file, dest)
return installers.pipe {
installers.when {
---@type ServerInstallerFunction
unix = function(_, callback, context)
process.spawn("unzip", {
args = { "-d", dest, file },
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
}, callback)
end,
win = shell.powershell(
("Microsoft.PowerShell.Archive\\Expand-Archive -Path %q -DestinationPath %q"):format(file, dest)
),
},
installers.always_succeed(M.rmrf(file)),
}
end
---@see unzip().
---@param url string @The url of the .zip file.
---@param dest string|nil @The url of the .zip file. Defaults to ".".
function M.unzip_remote(url, dest)
return installers.pipe {
M.download_file(url, "archive.zip"),
M.unzip("archive.zip", dest or "."),
}
end
---@param file string @The relative path to the tar file to extract.
function M.untar(file)
return installers.pipe {
---@type ServerInstallerFunction
function(_, callback, context)
process.spawn("tar", {
args = { "-xvf", file },
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
}, callback)
end,
installers.always_succeed(M.rmrf(file)),
}
end
---@param file string
local function win_extract(file)
return installers.pipe {
---@type ServerInstallerFunction
function(_, callback, context)
-- The trademarked "throw shit until it sticks" technique
local sevenzip = process.lazy_spawn("7z", {
args = { "x", "-y", "-r", file },
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
})
local peazip = process.lazy_spawn("peazip", {
args = { "-ext2here", path.concat { context.install_dir, file } }, -- peazip require absolute paths, or else!
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
})
local winzip = process.lazy_spawn("wzunzip", {
args = { file },
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
})
process.attempt {
jobs = { sevenzip, peazip, winzip },
on_finish = callback,
}
end,
installers.always_succeed(M.rmrf(file)),
}
end
---@param file string
local function win_untarxz(file)
return installers.pipe {
win_extract(file),
M.untar(file:gsub(".xz$", "")),
}
end
---@param file string
local function win_arc_unarchive(file)
return installers.pipe {
---@type ServerInstallerFunction
function(_, callback, context)
context.stdio_sink.stdout "Attempting to unarchive using arc."
process.spawn("arc", {
args = { "unarchive", file },
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
}, callback)
end,
installers.always_succeed(M.rmrf(file)),
}
end
---@param url string @The url to the .tar.xz file to extract.
function M.untarxz_remote(url)
return installers.pipe {
M.download_file(url, "archive.tar.xz"),
installers.when {
unix = M.untar "archive.tar.xz",
win = installers.first_successful {
win_untarxz "archive.tar.xz",
win_arc_unarchive "archive.tar.xz",
},
},
}
end
---@param url string @The url to the .tar.gz file to extract.
function M.untargz_remote(url)
return installers.pipe {
M.download_file(url, "archive.tar.gz"),
M.untar "archive.tar.gz",
}
end
---@param file string @The relative path to the file to gunzip.
function M.gunzip(file)
return installers.when {
---@type ServerInstallerFunction
unix = function(_, callback, context)
process.spawn("gzip", {
args = { "-d", file },
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
}, callback)
end,
win = win_extract(file),
}
end
---@see gunzip()
---@param url string @The url to the .gz file to extract.
---@param out_file string|nil @The name of the extracted .gz file.
function M.gunzip_remote(url, out_file)
local archive = ("%s.gz"):format(out_file or "archive")
return installers.pipe {
M.download_file(url, archive),
M.gunzip(archive),
installers.always_succeed(M.rmrf(archive)),
}
end
---Recursively deletes the provided path. Will fail on paths that are not inside the configured install_root_dir.
---@param rel_path string @The relative path to the file/directory to remove.
function M.rmrf(rel_path)
---@type ServerInstallerFunction
return function(_, callback, context)
local abs_path = path.concat { context.install_dir, rel_path }
context.stdio_sink.stdout(("Deleting %q\n"):format(abs_path))
vim.schedule(function()
local ok = pcall(fs.rmrf, abs_path)
if ok then
callback(true)
else
context.stdio_sink.stderr(("Failed to delete %q.\n"):format(abs_path))
callback(false)
end
end)
end
end
---@param rel_path string @The relative path to the file to write.
---@param contents string @The file contents.
function M.write_file(rel_path, contents)
---@type ServerInstallerFunction
return function(_, callback, ctx)
local file = path.concat { ctx.install_dir, rel_path }
ctx.stdio_sink.stdout(("Writing file %q\n"):format(file))
fs.write_file(file, contents)
callback(true)
end
end
---@param script_rel_path string @The relative path to the script file to write.
---@param abs_target_executable_path string @The absolute path to the executable that is being aliased.
function M.executable_alias(script_rel_path, abs_target_executable_path)
local windows_script = "@call %q %%"
local unix_script = [[#!/usr/bin/env sh
exec %q
]]
return installers.when {
unix = M.write_file(script_rel_path, unix_script:format(abs_target_executable_path)),
win = M.write_file(script_rel_path, windows_script:format(abs_target_executable_path)),
}
end
---Shallow git clone.
---@param repo_url string
function M.git_clone(repo_url)
---@type ServerInstallerFunction
return function(_, callback, context)
local c = process.chain {
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
}
c.run("git", { "clone", "--depth", "1", repo_url, "." })
if context.requested_server_version then
c.run("git", { "fetch", "--depth", "1", "origin", context.requested_server_version })
c.run("git", { "checkout", "FETCH_HEAD" })
end
c.spawn(callback)
end
end
function M.git_submodule_update()
---@type ServerInstallerFunction
return function(_, callback, context)
process.spawn("git", {
args = { "submodule", "update", "--init", "--recursive" },
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
}, callback)
end
end
---@param opts {args: string[]}
function M.gradlew(opts)
---@type ServerInstallerFunction
return function(_, callback, context)
process.spawn(path.concat { context.install_dir, platform.is_win and "gradlew.bat" or "gradlew" }, {
args = opts.args,
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
}, callback)
end
end
---Creates an installer that ensures that the provided executables are available in the current runtime.
---@param executables string[][] @A list of (executable, error_msg) tuples.
---@return ServerInstallerFunction
function M.ensure_executables(executables)
return vim.schedule_wrap(
---@type ServerInstallerFunction
function(_, callback, context)
local has_error = false
for i = 1, #executables do
local entry = executables[i]
local executable = entry[1]
local error_msg = entry[2]
if vim.fn.executable(executable) ~= 1 then
has_error = true
context.stdio_sink.stderr(error_msg .. "\n")
end
end
callback(not has_error)
end
)
end
---@path old_path string @The relative path to the file/dir to rename.
---@path new_path string @The relative path to what to rename the file/dir to.
function M.rename(old_path, new_path)
---@type ServerInstallerFunction
return function(_, callback, context)
local ok = pcall(
fs.rename,
path.concat { context.install_dir, old_path },
path.concat { context.install_dir, new_path }
)
if not ok then
context.stdio_sink.stderr(("Failed to rename %q to %q.\n"):format(old_path, new_path))
end
callback(ok)
end
end
---@param flags string @The chmod flag to apply.
---@param files string[] @A list of relative paths to apply the chmod on.
function M.chmod(flags, files)
return installers.on {
---@type ServerInstallerFunction
unix = function(_, callback, context)
process.spawn("chmod", {
args = vim.list_extend({ flags }, files),
cwd = context.install_dir,
stdio_sink = context.stdio_sink,
}, callback)
end,
}
end
return M
|
local test_utils = require("./test-utils")
local path = require("lspconfig").util.path
describe("renameFile", function()
test_utils.setup()
local old_path = path.join(test_utils.test_dir, "old-file.ts")
local new_path = path.join(test_utils.test_dir, "new-file.ts")
local linked_path = path.join(test_utils.test_dir, "linked-file.ts")
local file_content = [[
export const myFunc = () => console.log("hello");]]
local linked_file_content = [[
import { myFunc } from "./old-file";
myFunc();]]
local final_linked_file_content = [[
import { myFunc } from "./new-file";
myFunc();]]
after_each(function()
vim.loop.fs_unlink(old_path)
vim.loop.fs_unlink(new_path)
vim.loop.fs_unlink(linked_path)
end)
it("moves old file content into new file", function()
test_utils.write_file(old_path, file_content)
test_utils.edit_temp_file(old_path)
require("typescript").renameFile(old_path, new_path)
assert.falsy(path.exists(old_path))
assert.truthy(path.exists(new_path))
assert.equals(vim.api.nvim_buf_get_name(0), new_path)
assert.equals(table.concat(vim.api.nvim_buf_get_lines(0, 0, -1, false), "\n"), file_content)
end)
it("updates path in linked file", function()
test_utils.write_file(old_path, file_content)
test_utils.write_file(linked_path, linked_file_content)
test_utils.edit_temp_file(linked_path)
require("typescript").renameFile(old_path, new_path)
-- wait for workspace/applyEdit request to come back from server
vim.wait(1000, function()
return test_utils.has_content(0, final_linked_file_content)
end)
assert.truthy(test_utils.has_content(0, final_linked_file_content))
end)
end)
|
MainLoop = {}
MainLoop.Init = function()
print('Init====')
end
MainLoop.Update = function()
print('Update====')
end
MainLoop.Release = function()
print('Release====')
end
|
local Object = require("init")
---Extra subclass. Just for test.
---@class lib.object.example-proto-point:lib.object
---@field super lib.object
local ProtoPoint = Object:extend("lib.object.example-proto-point")
---@class lib.object.example-point:lib.object.example-proto-point
---@field super lib.object
local Point = ProtoPoint:extend("lib.object.example-point")
Point.scale = 2 -- Class field!
function Point:init(x, y)
self.x = x or 0
self.y = y or 0
return self
end
function Point:resize()
self.x = self.x * self.scale
self.y = self.y * self.scale
return self
end
function Point.__call()
return "called"
end
---@class lib.object.example-rect:lib.object.example-point
---@field super lib.object.example-point
---@field width integer
---@field height integer
local Rectangle = Point:extend("lib.object.example-rect")
function Rectangle:resize()
Rectangle.super.resize(self) -- Extend Point's `resize()`.
self.w = self.w * self.scale
self.h = self.h * self.scale
return self
end
function Rectangle:init(x, y, w, h)
Rectangle.super.init(self, x, y) -- Initialize Point first!
self.w = w or 0
self.h = h or 0
return self
end
function Rectangle:__index(key)
if key == "width" then
return self.w
end
if key == "height" then
return self.h
end
return rawget(self, key)
end
function Rectangle:__newindex(key, value)
if key == "width" then
self.w = value
elseif key == "height" then
self.h = value
end
return rawset(self, key, value)
end
-- local rect = Rectangle:new():init(2, 4, 6, 8)
local rect = Rectangle(2, 4, 6, 8)
-- rect:new() -- Error: rect is not a class.
rect.new = "wtf"
assert(rect.new == "wtf")
function rect:new()
return self
end
rect:new() -- No errors. Own `new()` and `extend()` are allowed.
assert(rect.w == 6)
assert(rect:is(Rectangle))
assert(rect:is("lib.object.example-rect"))
assert(not rect:is(Point))
assert(rect:has("lib.object.example-point") == 1)
assert(Rectangle:has(Object) == 3)
assert(rect() == "called")
rect.width = 666
assert(rect.w == 666)
assert(rect.height == 8)
for k, v, t in rect:iter() do
print(k, v, t)
end
|
local crypto = require("crypto")
local reqid = crypto.fast_random()
local handler = require("handler")
local request = {}
request[1] = E:request():method()
request[2] = E:request():uri()
local signature = table.concat(request, " ")
-- Decision Table
-- (method, path)
local entrypoints = {
["GET /api/v1/containers"] = "get_containers"
}
local matched = entrypoints[signature]
if matched then
L:info(reqid, { sig = signature, fn = matched })
return handler[matched](reqid)
else
E:response():write_header(404)
E:response():flush()
end
|
local discordia = require("discordia")
local utils = require("miscUtils")
local groupUtils = {}
local function getTitle(groupNum, name, isLocked)
return (isLocked and ":lock: " or "").."Group #"..groupNum.." - "..name
end
local function getDescription(isLocked, guildSettings)
return isLocked and "This group is currently locked. You may not get "..(guildSettings.can_leave_locked and "" or "or remove ").."the role until the creator unlocks it." or "React with :white_check_mark: to get the role!"
end
local function getRoleField(role)
return {name = "Role", value = role.mentionString, inline = true}
end
local function getCodeField(code)
return {name = "Game Code/Link", value = code, inline = true}
end
local function getDateTimeField(dateTime)
return {name = "Date/Time", value = dateTime, inline = true}
end
local function getVoiceChannelField(voiceChannel, vcInviteLink)
return {name = "Voice Channel", value = "["..voiceChannel.name.."]("..vcInviteLink..")", inline = true}
end
local function getMembersField(role, guildSettings)
local membersTable = role.members:toArray()
if guildSettings.give_back_roles then
local resultset, nrow = discordia.storage.conn:exec("SELECT user_id FROM user_roles WHERE role_id = '"..role.id.."' AND user_in_guild = 0;")
if resultset then
for row = 1, nrow do
table.insert(membersTable, role.client:getUser(resultset.user_id[row]))
end
end
end
table.sort(membersTable, function(a, b) return a.name<b.name end)
local members = ""
for _, m in ipairs(membersTable) do
members = members..utils.name(m)..(m.guild and "" or " :door:").."\n"
end
members = members~="" and members or "N/A"
return {name = "Members", value = members, inline = false}
end
local function getColorField(isLocked)
return discordia.Color.fromHex(isLocked and "ffff00" or "00ff00").value
end
groupUtils.getGroupEmbed = function(creator, groupNum, name, role, voiceChannel, vcInviteLink, code, isLocked, dateTime, guildSettings)
return {
author = {
name = creator.tag,
icon_url = creator.avatarURL
},
title = getTitle(groupNum, name, isLocked),
description = getDescription(isLocked, guildSettings),
fields = {
getRoleField(role),
getCodeField(code),
getDateTimeField(dateTime),
getVoiceChannelField(voiceChannel, vcInviteLink),
getMembersField(role, guildSettings),
},
color = getColorField(isLocked)
}
end
groupUtils.updateLockedFields = function(message, groupNum, name, isLocked, guildSettings)
local embed = message.embed
embed.title = getTitle(groupNum, name, isLocked)
embed.description = getDescription(isLocked, guildSettings)
embed.color = getColorField(isLocked)
message:setEmbed(embed)
end
groupUtils.updateNameFields = function(message, groupNum, name, voiceChannel, vcInviteLink, isLocked)
local embed = message.embed
embed.title = getTitle(groupNum, name, isLocked)
embed.fields[4] = getVoiceChannelField(voiceChannel, vcInviteLink)
message:setEmbed(embed)
end
groupUtils.updateRole = function(message, role)
local embed = message.embed
embed.fields[1] = getRoleField(role)
message:setEmbed(embed)
end
groupUtils.updateCode = function(message, code)
local embed = message.embed
embed.fields[2] = getCodeField(code)
message:setEmbed(embed)
end
groupUtils.updateDateTime = function(message, dateTime)
local embed = message.embed
embed.fields[3] = getDateTimeField(dateTime)
message:setEmbed(embed)
end
groupUtils.updateVoiceChannel = function(message, voiceChannel, vcInviteLink)
local embed = message.embed
embed.fields[4] = getVoiceChannelField(voiceChannel, vcInviteLink)
message:setEmbed(embed)
end
groupUtils.updateMembers = function(message, role, guildSettings)
local embed = message.embed
embed.fields[5] = getMembersField(role, guildSettings)
message:setEmbed(embed)
end
groupUtils.getDeletedGroupEmbed = function(creator, group_num, name)
return {
author = {
name = creator.tag,
icon_url = creator.avatarURL
},
title = "Group #"..group_num.." - "..name,
description = "This group has been deleted by its creator.",
color = discordia.Color.fromHex("ff0000").value
}
end
return groupUtils |
local M = {}
local cmp = require('cmp')
local feedkey = function(key, mode)
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(key, true, true, true), mode, true)
end
function M.config()
cmp.setup {
documentation = {
border = { '┌', '─', '┐', '│', '┘', '─', '└', '│' },
winhighlight = "FloatBorder:FloatBorder",
},
formatting = {
format = function(entry, vim_item)
vim_item.kind = require('lspkind').presets.default[vim_item.kind]
.. " "
.. vim_item.kind
vim_item.menu = ({
buffer = "[Buffer]",
emoji = "[Emoji]",
nvim_lsp = "[LSP]",
nvim_lsp_signature_help = "[LSP]",
nvim_lua = "[Lua]",
path = "[Path]",
rg = "[Rg]",
treesitter = "[TS]",
vsnip = "[Snip]",
})[entry.source.name]
return vim_item
end
},
snippet = {
expand = function(args)
vim.fn['vsnip#anonymous'](args.body)
end
},
mapping = {
['<C-d>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), { 'i', 'c' }),
['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), { 'i', 'c' }),
['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), { 'i', 'c' }),
['<C-e>'] = cmp.mapping({
i = cmp.mapping.abort(),
c = cmp.mapping.close(),
}),
['<CR>'] = cmp.mapping.confirm({ select = false }),
['<C-k>'] = function(fallback)
if vim.fn['vsnip#available']() == 1 then
feedkey("<Plug>(vsnip-expand-or-jump)", "")
elseif cmp.visible() then
feedkey("<CR>", "")
else
fallback()
end
end,
},
sources = cmp.config.sources({
{ name = 'vsnip' },
{ name = 'nvim_lsp' },
{ name = 'nvim_lsp_signature_help' },
{ name = 'treesitter' },
{ name = 'path' },
{ name = 'emoji' },
{ name = 'cmdline' },
{ name = 'nvim_lua' },
{ name = 'rg' },
{ name = 'buffer' },
{ name = 'spell' },
{ name = 'look' },
}),
sorting = {
comparators = {
cmp.config.compare.offset,
cmp.config.compare.exact,
cmp.config.compare.score,
require "cmp-under-comparator".under,
cmp.config.compare.kind,
cmp.config.compare.sort_text,
cmp.config.compare.length,
cmp.config.compare.order,
},
},
}
end
function M.cmdline_config()
-- Use buffer source for `/`.
cmp.setup.cmdline('/', {
sources = cmp.config.sources({
{ name = 'nvim_lsp_document_symbol' }
}, {
{ name = 'buffer' }
})
})
-- Use cmdline & path source for ':'.
cmp.setup.cmdline(':', {
sources = cmp.config.sources({
{ name = 'path' }
}, {
{ name = 'cmdline' }
})
})
end
return M
|
local _={}
_.entity_name=Pow.currentFile()
_.new=function()
local result=BaseEntity.new(_.entity_name)
result.sprite="wall"
BaseEntity.init_bounds_from_sprite(result)
-- todo: implement
result.is_solid=true
return result
end
return _ |
-- Override some icons to nonicons
-- (https://github.com/yamatsum/nonicons)
require('nvim-web-devicons').setup {
override = {
default_icon = {
icon = '',
color = '#7982B4',
name = 'Default',
},
Dockerfile = {
icon = '',
color = '#0db7ed',
name = 'Dockerfile',
},
['.dockerignore'] = {
icon = '',
color = '#0db7ed',
name = 'Dockerfile',
},
['git'] = {
icon = '',
color = '#F1502F',
name = 'GitLogo',
},
['.gitattributes'] = {
icon = '',
color = '#F1502F',
name = 'GitAttributes',
},
['.gitconfig'] = {
icon = '',
color = '#F1502F',
name = 'GitConfig',
},
['.gitignore'] = {
icon = '',
color = '#F1502F',
name = 'GitIgnore',
},
['.gitmodules'] = {
icon = '',
color = '#F1502F',
name = 'GitIgnore',
},
['.prettierrc'] = {
icon = '',
color = '#cbcb41',
name = 'Json',
},
css = {
icon = '',
color = '#42a5f5',
name = 'Css',
},
['.eslintignore'] = {
icon = '',
color = '#7986cb',
name = 'ESLintIgnore',
},
['.eslintrc.js'] = {
icon = '',
color = '#7986cb',
name = 'ESLint',
},
gif = {
icon = '',
color = '#a074c4',
name = 'Gif',
},
graphql = {
icon = '',
color = '#e535ab',
name = 'GraphQL',
},
html = {
icon = '',
color = '#e34c26',
name = 'HTML',
},
json = {
icon = '',
color = '#cbcb41',
name = 'Json',
},
js = {
icon = '',
color = '#cbcb41',
name = 'Js',
},
es6 = {
icon = '',
color = '#cbcb41',
name = 'ES6',
},
jpg = {
icon = '',
color = '#a074c4',
name = 'Jpg',
},
LICENSE = {
icon = '',
color = '#cbcb41',
name = 'License',
},
lir_folder_icon = {
icon = '',
color = '#82aaff',
name = 'LirFolderNode',
},
lua = {
icon = '',
color = '#51a0cf',
name = 'Lua',
},
md = {
icon = '',
color = '#42a5f5',
name = 'Md',
},
NvimTree = {
icon = '',
color = '#519aba',
name = 'NvimTree',
},
['package.json'] = {
icon = '',
color = '#CC3534',
name = 'Npm',
},
php = {
icon = '',
color = '#a074c4',
name = 'Php',
},
png = {
icon = '',
color = '#a074c4',
name = 'Png',
},
svg = {
icon = '',
color = '#FFB13B',
name = 'Svg',
},
ts = {
icon = '',
color = '#0288d1',
name = 'Ts',
},
tsx = {
icon = '',
color = '#0288d1',
name = 'Tsx',
},
vim = {
icon = '',
color = '#019833',
name = 'Vim',
},
vue = {
icon = '',
color = '#8dc149',
name = 'Vue',
},
yaml = {
icon = '',
color = '#cbcb41',
name = 'Yaml',
},
['yarn.lock'] = {
icon = '',
color = '#2c8ebb',
name = 'Yarn',
},
yml = {
icon = '',
color = '#cbcb41',
name = 'Yml',
},
},
}
|
--[[
--=====================================================================================================--
Script Name: Score Limit Handler, for SAPP (PC & CE)
Description: This mod changes the scorelimit required to win the game based on how many player's are currently online.
Copyright (c) 2016-2018, Jericho Crosby <[email protected]>
* Notice: You can use this document subject to the following conditions:
https://github.com/Chalwk77/HALO-SCRIPT-PROJECTS/blob/master/LICENSE
--=====================================================================================================--
]]--
api_version = "1.12.0.0"
-- configuration starts --
message = "The score limit has been updated to $SCORE_LIMIT"
-- time (in seconds) until the initial score is set after the game begins
initial_delay = 10
-- column number represents the current player count...
-- col 1 = 1 player online, the number in that row = score
-- Example:
-- any time there are 7 players online on the map 'wizard' the scorelimit will be set to 30.
-- any time there are 9 players online on the map 'wizard' the scorelimit will be not be changed...
-- instead the scorelimit will remain the previously set score, in this case 30 (col 7), as when there were 8 players online (col 8) the scorelimit was also ignored.
-- when a 10th player joins the server, the scorelimit will be bumped up to 40 (col 10)
maps = {
-- col 1 col 2 col 3 col 4 col 5 col 6 col 7 col 8 col 9 col 10 col 11 col 12 col 13 col 14 col 15 col 16
{ "infinity", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "icefields", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "bloodgulch", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "timberland", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "sidewinder", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "deathisland", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "dangercanyon", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "gephyrophobia", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "wizard", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "putput", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "longest", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "ratrace", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "carousel", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "prisoner", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "damnation", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "hangemhigh", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "beavercreek", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
{ "boardingaction", 15, nil, nil, 20, 25, nil, 30, nil, nil, 40, nil, 45, nil, nil, nil, 50 },
-- add your map here [repeat the structure to add more maps]
{ "map_name_here_", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } -- do not add a comma on the last entry.
}
-- configuration ends --
function OnScriptLoad()
register_callback(cb["EVENT_TICK"], "OnTick")
register_callback(cb["EVENT_JOIN"], "OnPlayerJoin")
register_callback(cb["EVENT_LEAVE"], "OnPlayerLeave")
register_callback(cb["EVENT_GAME_START"], "OnNewGame")
end
function OnScriptUnload()
end
function OnNewGame()
current_players = 0
clock = os.clock()
secondary = false
end
function OnPlayerJoin(PlayerIndex)
current_players = current_players + 1
if (secondary == true) then
update_score = true
end
end
function OnPlayerLeave(PlayerIndex)
current_players = current_players - 1
end
function OnTick()
if (current_players >= 1) then
if (clock ~= nil) then
local countdown_timer = math.floor(os.clock())
if (countdown_timer == tonumber(initial_delay)) then
countdown_timer = 0
secondary = true
clock = nil
SetScoreLimit()
end
end
if (update_score == true) then
update_score = false
SetScoreLimit()
end
end
end
function SetScoreLimit()
for k, v in pairs(maps) do
if get_var(0, "$map") == maps[k][1] then
if v[current_players + 1] == nil then
current_scorelimit = read_byte(read_dword(sig_scan("F3ABA1????????BA????????C740??????????E8????????668B0D") + 3) + 0x164)
scorelimit = current_scorelimit
else
scorelimit = v[current_players + 1]
execute_command('scorelimit ' .. tonumber(scorelimit))
say_all(string.gsub(message, "$SCORE_LIMIT", scorelimit))
end
end
end
return scorelimit
end
|
ESX = nil
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
ESX.RegisterServerCallback('hasan:copCount', function(source, cb)
local xPlayers = ESX.GetPlayers()
copConnected = 0
for i=1, #xPlayers, 1 do
local xPlayer = ESX.GetPlayerFromId(xPlayers[i])
if xPlayer.job.name == 'police' then
copConnected = copConnected + 1
end
end
cb(copConnected)
end)
RegisterNetEvent('td-atmrob:givemoney')
AddEventHandler('td-atmrob:givemoney', function()
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.addMoney(Config.Money)
end)
ESX.RegisterUsableItem('usefulusb', function(source)
local xPlayer = ESX.GetPlayerFromId(source)
TriggerClientEvent('td-atmrob:client:start', source)
end)
RegisterNetEvent('td-atmrob:giveitem')
AddEventHandler('td-atmrob:giveitem', function()
local xPlayer = ESX.GetPlayerFromId(source)
local Item = 'documents'
xPlayer.addInventoryItem(Item,1)
end)
ESX.RegisterServerCallback("hasan:itemkontrol", function(source, cb, itemname)
local xPlayer = ESX.GetPlayerFromId(source)
local item = xPlayer.getInventoryItem(itemname)["count"]
if item >= 1 then
cb(true)
else
cb(false)
end
end)
RegisterServerEvent("hasan:itemsil2")
AddEventHandler("hasan:itemsil2", function(itemname)
local xPlayer = ESX.GetPlayerFromId(source)
xPlayer.removeInventoryItem(itemname, count)
end)
RegisterServerEvent('hasan:itemver2')
AddEventHandler('hasan:itemver2', function(item, count)
local player = ESX.GetPlayerFromId(source)
player.addInventoryItem(item, count)
end)
|
m = Map("filebrowser", translate("文件管理器"))
m.description = translate("FileBrowser是一个基于Go的在线文件管理器,助您方便的管理设备上的文件。")
m:section(SimpleSection).template = "filebrowser/filebrowser_status"
s = m:section(TypedSection, "filebrowser")
s.addremove = false
s.anonymous = true
o = s:option(Flag, "enabled", translate("启用"))
o.rmempty = false
o = s:option(ListValue, "addr_type", translate("监听地址"))
o:value("local", translate("监听本机地址"))
o:value("lan", translate("监听局域网地址"))
o:value("wan", translate("监听全部地址"))
o.default = "lan"
o.rmempty = false
o = s:option(Value, "port", translate("监听端口"))
o.placeholder = 8989
o.default = 8989
o.datatype = "port"
o.rmempty = false
o = s:option(Value, "root_dir", translate("开放目录"))
o.placeholder = "/"
o.default = "/"
o.rmempty = false
o = s:option(Value, "db_dir", translate("数据库目录"))
o.description = translate("普通用户请勿随意更改")
o.placeholder = "/etc"
o.default = "/etc"
o.rmempty = false
o = s:option(Value, "db_name", translate("数据库名"))
o.description = translate("普通用户请勿随意更改")
o.placeholder = "filebrowser.db"
o.default = "filebrowser.db"
o.rmempty = false
return m
|
-- 字符串的扩展方法
-- 第一个参数必须为string类型
---@class StringExtension
local StringExtension = {}
---@param s string
---@return string
function StringExtension.capitalize(s)
local n = string.byte(s)
local min = string.byte('a')
local max = string.byte('z')
local t = string.byte('A')
if n >= min and n <= max then
return string.char(n + t - min) .. string.sub(s, 2)
end
return s
end
---@param s string
---@param searchString string
---@param pos number default(0)
function StringExtension.startsWith(s, searchString, pos)
pos = pos or 1
for i = 1, #searchString do
if string.byte(searchString, i) ~= string.byte(s, i + pos - 1) then
return false
end
end
return true
end
---@param s string
---@param separator string
---@return string[]
function StringExtension.split(s, separator)
end
return StringExtension |
----------------------------------------------------------
-- Load RayUI Environment
----------------------------------------------------------
RayUI:LoadEnv("Skins")
local S = _Skins
local function SkinBaudErrorFrame()
BaudErrorFrame:StripTextures()
S:SetBD(BaudErrorFrame)
S:Reskin(BaudErrorFrameClearButton)
S:Reskin(BaudErrorFrameCloseButton)
S:Reskin(BaudErrorFrameReloadUIButton)
S:ReskinScroll(BaudErrorFrameDetailScrollFrameScrollBar)
S:ReskinScroll(BaudErrorFrameListScrollBoxScrollBarScrollBar)
end
S:AddCallbackForAddon("!BaudErrorFrame", "BaudErrorFrame", SkinBaudErrorFrame)
|
if not LaserWall then LaserWall = {} end
local path_g = "__laser-walls__/graphics/"
local laser_turret = data.raw["electric-turret"]["laser-turret"]
--[[
@ LASER
name = "laser-interface
icon = path_g .. "laser-wall.png"
]]
local _layers = {
{
filename = path_g .. "transparent.png",
priority = "extra-high",
width = 32,
height = 42,
shift = util.by_pixel(0.078125, -0.3),
}
}
local laser_layers = {
{
filename = path_g .. "transparent.png",
priority = "extra-high",
width = 32,
height = 42,
shift = util.by_pixel(0.078125, -0.3),
direction_count = 1
}
}
function laser_turret_shooting_glow()
return
{
filename = "__base__/graphics/entity/laser-turret/laser-turret-shooting-light.png",
line_length = 8,
width = 62,
height = 58,
frame_count = 1,
direction_count = 64,
blend_mode = "additive",
shift = util.by_pixel(0, -35),
hr_version =
{
filename = "__base__/graphics/entity/laser-turret/hr-laser-turret-shooting-light.png",
line_length = 8,
width = 122,
height = 116,
frame_count = 1,
direction_count = 64,
shift = util.by_pixel(-0.5, -35),
blend_mode = "additive",
scale = 0.5
}
}
end
local function transparent()
return { layers = _layers }
end
local function LaserInterfaceEntity(laser)
return {
type = "electric-turret",
name = laser.name,
icon = laser.icon,
icon_size = 64,
hidden = true,
flags =
{
"not-on-map",
"placeable-off-grid",
"not-in-kill-statistics"
},
collision_box = {{0, 0}, {0, 0}},
selection_box = {{0, 0}, {0, 0}},
picture = { layers = _layers },
energy_source =
{
type = "electric",
buffer_capacity = "200kJ",
input_flow_limit = "2400kW",
drain = "6kW",
usage_priority = "primary-input"
},
rotation_speed = 0.01,
preparing_speed = 0.05,
preparing_sound = laser_turret.preparing_sound,
folding_sound = laser_turret.folding_sound,
folded_animation =
{
layers = laser_layers
},
--[[
preparing_animation =
{
layers = laser_layers
},
prepared_animation =
{
layers = laser_layers
},
folding_animation =
{
layers = laser_layers
},
base_picture =
{
layers = _layers
},
]]
glow_light_intensity = 0.5,
energy_glow_animation = laser_turret.energy_glow_animation,
call_for_help_radius = 10,
attack_parameters =
{
type = "beam",
cooldown = 10,
range = 6,
source_direction_count = 64,
source_offset = {0, -0.4},
damage_modifier = 2,
ammo_type =
{
category = "laser",
energy_consumption = "200kJ",
action =
{
type = "direct",
action_delivery =
{
type = "beam",
beam = "laser-beam",
max_length = 6,
duration = 40,
source_offset = {0, -0.4 }
}
}
}
},
}
end
local function NewTierLaserInterface(laser)
data:extend({ LaserInterfaceEntity(laser) })
end
LaserWall.LaserInterfaceEntity = LaserInterfaceEntity
LaserWall.NewTierInterface = NewTierLaserInterface
|
includeFile("custom_content/draft_schematic/armor/component/armor_assault_segment.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_battle_segment.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_core_assault_advanced.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_core_assault_basic.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_core_assault_standard.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_core_battle_advanced.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_core_battle_basic.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_core_battle_standard.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_core_recon_advanced.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_core_recon_basic.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_core_recon_standard.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_layer_advanced_five.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_layer_advanced_four.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_layer_advanced_one.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_layer_advanced_three.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_layer_advanced_two.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_power_bit.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_recon_segment.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_segment_assault.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_segment_battle.lua")
includeFile("custom_content/draft_schematic/armor/component/armor_segment_recon.lua")
includeFile("custom_content/draft_schematic/armor/component/new_armor_advanced_layer_1_test.lua")
includeFile("custom_content/draft_schematic/armor/component/new_armor_core_advanced_test.lua")
includeFile("custom_content/draft_schematic/armor/component/new_armor_core_basic_test.lua")
includeFile("custom_content/draft_schematic/armor/component/new_armor_layer_electricity_test.lua")
includeFile("custom_content/draft_schematic/armor/component/new_armor_layer_energy_test.lua")
includeFile("custom_content/draft_schematic/armor/component/new_armor_layer_heat_test.lua")
includeFile("custom_content/draft_schematic/armor/component/new_armor_segment_test.lua")
includeFile("custom_content/draft_schematic/armor/component/test_an_armor_core.lua")
includeFile("custom_content/draft_schematic/armor/component/test_an_armor_layer.lua")
includeFile("custom_content/draft_schematic/armor/component/test_an_armor_segment.lua")
|
-- this is actually a lua function that returns a table.
return {
name='swing',
body={
name='pend1',
jointType="rotate",
jointAxis="X",
translation =vector3(0.000000,2.300000,0.000000 ), -- joint의 위치
geometry ={
{
'Box',
translation=vector3(0.35,-0.5,0),
size=vector3(0.1,1,0.1),
},
{
'Box',
translation=vector3(-0.35,-0.5,0),
size=vector3(0.1,1,0.1),
},
{
'Box',
translation=vector3(0,-0.75,0),
size=vector3(0.7,0.1,0.1),
},
},
children={
{
name='pend2',
jointType="rotate",
jointAxis="X",
translation =vector3(0.000000,-1.000000,0.000000 ), -- joint의 위치
geometry ={
{
'Box',
translation=vector3(0.35,-0.5,0),
size=vector3(0.1,1,0.1),
},
{
'Box',
translation=vector3(-0.35,-0.5,0),
size=vector3(0.1,1,0.1),
},
{
'Box',
translation=vector3(0,-1,0),
size=vector3(0.7,0.1,0.1),
},
},
}
}
}
}
|
local modules = require(game.ReplicatedStorage.modules)
local network = modules.load("network")
local tempData = modules.load("tempData")
local events = modules.load("events")
local utilities = modules.load("utilities")
local rand = Random.new()
local perkData = {
sharedValues = {
layoutOrder = 0;
subtitle = "Equipment Perk";
color = Color3.fromRGB(234, 102, 84);
},
perks = {
["inoculation"] = {
title = "Inoculation",
description = "10% chance to heal 200 HP when damaged.",
onDamageTaken = function(sourceManifest, sourceType, sourceId, targetManifest, damageData)
if damageData.damage > 1 and rand:NextNumber() <= 0.1 then
-- wait required to seperate damage from healing
-- healing should probably get its own signal like damage has now
wait(0.1)
pcall(function()
utilities.healEntity(targetManifest, targetManifest, 200)
local heal = script.heal:Clone()
heal.Parent = targetManifest
heal:Emit(30)
game.Debris:AddItem(heal,3)
utilities.playSound("item_heal", targetManifest)
end)
end
end;
},
["resonance"] = {
title = "Resonance Charms",
description = "Restore 35% of damage taken as MP.",
onDamageTaken = function(sourceManifest, sourceType, sourceId, targetManifest, damageData)
if damageData.damage > 1 then
-- wait required to seperate damage from healing
-- healing should probably get its own signal like damage has now
wait(0.1)
pcall(function()
local restored = math.floor(damageData.damage * 0.35)
local actuallyRestored
if targetManifest.mana.Value + restored > targetManifest.maxMana.Value then
actuallyRestored = targetManifest.maxMana.Value - targetManifest.mana.Value
else
actuallyRestored = restored
end
targetManifest.mana.Value = math.min(targetManifest.mana.Value + restored, targetManifest.maxMana.Value)
if actuallyRestored >= 10 then
local heal = script.manaEmitter:Clone()
heal.Parent = targetManifest
heal:Emit(math.floor(math.clamp( 3 * actuallyRestored^(1/2), 1, 50)))
game.Debris:AddItem(heal,3)
utilities.playSound("item_mana", targetManifest, nil, {volume = 0.3; maxDistance = 100; emitterSize = 7})
end
end)
end
end;
},
["reckless"] = {
title = "Reckless",
description = "Deal and recieve 120% damage.",
onDamageTaken = function(sourceManifest, sourceType, sourceId, targetManifest, ref_damageData)
ref_damageData.damage = ref_damageData.damage * 1.2
end;
onDamageGiven = function(sourceManifest, sourceType, sourceId, targetManifest, ref_damageData)
ref_damageData.damage = ref_damageData.damage * 1.2
end
},
}
}
return perkData |
skynet = require "skynet"
require "skynet.manager" -- import skynet.register
local function task(id)
for i = 1,5 do
skynet.error("task"..id .." call")
skynet.error("task"..id .." return:", skynet.call(".echoluamsg", "lua", "task"..id))
end
end
skynet.start(function()
skynet.fork(task, 1) --开两个线程去执行
skynet.fork(task, 2)
end)
|
require 'spec/setup/defines'
_G.remote = {
interfaces={}
}
_G.script = {
next_event_id=5000, --Try to avoid clobbering factorio event ids
generate_event_name = function()
_G.script.next_event_id = _G.script.next_event_id + 1
return _G.script.next_event_id
end,
on_event = function(_, _) return end,
raise_event = function(event_id, event_tbl)
event_tbl.name = event_id
Event.dispatch(event_tbl)
end,
on_init = function() _G.global._surface_time = {} end,
on_configuration_changed = function() _G.global._surface_time = _G.global._surface_time or {} end
}
_G.global = { }
require 'stdlib/event/time'
local long_tests = false
describe('Event.Time', function()
before_each(function()
_G.game = {
players = {{valid=false}},
surfaces = {},
tick = 0,
}
_G.game.surfaces.nauvis = {
daytime = 0,
index = 1,
name = "nauvis"
}
_G.game.surfaces.testsur = {
daytime = 0.5,
index = 2,
name = "testsur"
}
_G.global._surface_time = {}
_G.nauvis_event_table = {surface = _G.game.surfaces.nauvis}
_G.testsur_event_table = {surface = _G.game.surfaces.testsur}
_G.simulate_time = function(ticks)
local daytime_per_tick = 1 / defines.time.day
local original_daytime = {}
for _, surface in pairs(game.surfaces) do
original_daytime[surface] = surface.daytime
end
for i = 1, ticks do
-- advance daytime for each day
for _, surface in pairs(game.surfaces) do
-- Set daytime based on new number of ticks, in the interval [0,1)
surface.daytime = (original_daytime[surface] + i * daytime_per_tick) % 1
end
_G.game.tick = game.tick + 1
Event.dispatch({name = defines.events.on_tick, tick = game.tick})
end
end
end)
if long_tests then
it('should dispatch 60 minutely events and 1 hourly events per hour', function()
--initialize the first tick of the day
Event.dispatch({name = defines.events.on_tick, tick = 0})
local counter = { minutely = function() end, hourly = function() end }
Event.register(Event.Time.minutely, function() counter.minutely() end )
local minute_spy = spy.on(counter, "minutely")
Event.register(Event.Time.hourly, function() counter.hourly() end )
local hour_spy = spy.on(counter, "hourly")
_G.simulate_time(defines.time.hour * 1 + 1)
-- 2 surfaces!
assert.spy(minute_spy).was_called(60 * 2)
assert.spy(hour_spy).was_called(1 * 2)
end)
it('should dispatch sunset, sunrise, midnight and midday events once per day', function()
--initialize the first tick of the day
Event.dispatch({name = defines.events.on_tick, tick = 0})
local counter = { sunrise = function() end, sunset = function() end, midnight = function() end, midday = function() end }
Event.register(Event.Time.sunset, function() counter.sunset() end )
local sunset_spy = spy.on(counter, "sunset")
Event.register(Event.Time.sunrise, function() counter.sunrise() end )
local sunrise_spy = spy.on(counter, "sunrise")
Event.register(Event.Time.midnight, function() counter.midnight() end )
local midnight_spy = spy.on(counter, "midnight")
Event.register(Event.Time.midday, function() counter.midday() end )
local midday_spy = spy.on(counter, "midday")
_G.simulate_time(defines.time.day)
assert.spy(sunset_spy).was_called(2)
assert.spy(sunrise_spy).was_called(2)
assert.spy(midnight_spy).was_called(2)
assert.spy(midday_spy).was_called(2)
end)
end
it('should dispatch hour, day, and midnight events at at 12pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.5 -- hourly, daily, midnight
_G.game.surfaces.testsur.daytime = 0.5416666667 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(6)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.daily, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.midnight, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 1am & 2am', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.5416666667 -- hourly
_G.game.surfaces.testsur.daytime = 0.584 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 2am & 3am', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.584 -- hourly
_G.game.surfaces.testsur.daytime = 0.625 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 3am & 4am', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.625 -- hourly
_G.game.surfaces.testsur.daytime = 0.6666666667 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 4am & sunrise', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.6666666667 -- hourly
_G.game.surfaces.testsur.daytime = 0.6840277778 -- sunrise
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.sunrise, _G.testsur_event_table)
end)
it('should dispatch hourly events at sunrise & 5am', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.6840277778 -- sunrise
_G.game.surfaces.testsur.daytime = 0.709 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.sunrise, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 5am & 6am', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.709 -- hourly
_G.game.surfaces.testsur.daytime = 0.75 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 6am & 7am', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.75 -- hourly
_G.game.surfaces.testsur.daytime = 0.7916666667 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 7am & 8am', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.7916666667 -- hourly
_G.game.surfaces.testsur.daytime = 0.834 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 8am & 9am', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.834 -- hourly
_G.game.surfaces.testsur.daytime = 0.875 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 9am & 10am', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.875 -- hourly
_G.game.surfaces.testsur.daytime = 0.9166666667 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 10am & 11am', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.9166666667 -- hourly
_G.game.surfaces.testsur.daytime = 0.959 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly and midday events at 11am & noon', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.959 -- hourly
_G.game.surfaces.testsur.daytime = 0 -- hourly, midday
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(5)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.midday, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly and midday events at noon & 1pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0 -- hourly, midday
_G.game.surfaces.testsur.daytime = 0.0416666667 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(5)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.midday, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 1pm & 2pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.0416666667 -- hourly
_G.game.surfaces.testsur.daytime = 0.084 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 2pm & 3pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.084 -- hourly
_G.game.surfaces.testsur.daytime = 0.125 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 3pm & 4pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.125 -- hourly
_G.game.surfaces.testsur.daytime = 0.1666666667 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 4pm & 5pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.1666666667 -- hourly
_G.game.surfaces.testsur.daytime = 0.209 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 5pm & 6pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.209 -- hourly
_G.game.surfaces.testsur.daytime = 0.25 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 6pm & 7pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.25 -- hourly
_G.game.surfaces.testsur.daytime = 0.2916666667 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly and sunset events at 7pm & sunset', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.2916666667 -- hourly
_G.game.surfaces.testsur.daytime = 0.3055555556 -- sunset
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.sunset, _G.testsur_event_table)
end)
it('should dispatch hourly and sunset events at sunset & 8pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.3055555556 -- sunset
_G.game.surfaces.testsur.daytime = 0.334 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.sunset, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 8pm & 9pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.334 -- hourly
_G.game.surfaces.testsur.daytime = 0.375 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 9pm & 10pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.375 -- hourly
_G.game.surfaces.testsur.daytime = 0.4166666667 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly events at 10pm & 11pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.4166666667 -- hourly
_G.game.surfaces.testsur.daytime = 0.459 -- hourly
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(4)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
end)
it('should dispatch hourly, daily and a midnight event at 11pm & 12pm', function()
local s = spy.on(script, "raise_event")
_G.game.surfaces.nauvis.daytime = 0.459 -- hourly
_G.game.surfaces.testsur.daytime = 0.5 -- hourly, daily, midnight
Event.dispatch({name = defines.events.on_tick, tick = 0})
assert.spy(s).was_called(6)
assert.spy(s).was_called_with(Event.Time.minutely, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.minutely, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.nauvis_event_table)
assert.spy(s).was_called_with(Event.Time.hourly, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.daily, _G.testsur_event_table)
assert.spy(s).was_called_with(Event.Time.midnight, _G.testsur_event_table)
end)
end)
|
assert(true)
assert(not pcall(function () assert(false, "message") end))
|
t_uses = {}
local tool_wear_enabled = minetest.settings:get_bool("enable_tool_wear")
if tool_wear_enabled == nil then
-- Default is enabled
tool_wear_enabled = true
end
if tool_wear_enabled then
t_uses.twenty = 20
else
t_uses.twenty = 0
end
dofile(minetest.get_modpath("tools_obsidian").."/sword.lua")
dofile(minetest.get_modpath("tools_obsidian").."/tools.lua")
minetest.register_alias("sword_obsidian", "tools_obsidian:sword_obsidian")
minetest.register_alias("longsword_obsidian", "tools_obsidian:longsword_obsidian")
minetest.register_alias("dagger_obsidian", "tools_obsidian:dagger_obsidian")
minetest.register_alias("pick_obsidian", "tools_obsidian:pick_obsidian") |
function TestFunc()
print("Hello world")
end
TestFunc() |
local status_ok, comment = pcall(require, "Comment")
if not status_ok then
return
end
comment.setup({
pre_hook = function(ctx)
local U = require "Comment.utils"
local location = nil
if ctx.ctype == U.ctype.block then
location = require("ts_context_commentstring.utils").get_cursor_location()
elseif ctx.cmotion == U.cmotion.v or ctx.cmotion == U.cmotion.V then
location = require("ts_context_commentstring.utils").get_visual_start_location()
end
return require("ts_context_commentstring.internal").calculate_commentstring {
key = ctx.ctype == U.ctype.line and "__default" or "__multiline",
location = location,
}
end,
})
|
local map = vim.api.nvim_set_keymap
-- map the leader key
map('n', '<Space>', '', {})
local options = { noremap = true }
map('n', '<leader><esc>', ':nohlsearch<cr>', options)
map('n', ';', ':', options)
map('n', '<C-n>', ':NvimTreeToggle<CR>', options)
map('n', '<leader>r', ':NvimTreeRefresh<CR>', options)
-- map('n', '<leader>n', ':NvimTreeFindFile<CR>', options)
-- bufferline tab stuff
map('n', '<S-t>', ':enew<CR>', options) -- new buffer
map('n', '<S-x>', ':bd!<CR>', options) -- close tab
-- move between tabs
map('n', '<TAB>', ':BufferLineCycleNext<CR>', options)
map('n', '<S-TAB>', ':BufferLineCyclePrev<CR>', options)
vim.g.better_escape_shortcut = 'kj'
|
natives["java.lang.System"] = natives["java.lang.System"] or {}
natives["java.lang.System"]["load(Ljava/lang/String;)V"] = function(jString)
local str = toLString(jString)
classpath.dofile(str)
end
-- TODO: Reimplement this less naively
natives["java.lang.System"]["arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V"] = function(
src, srcPos, dest, destPos, length)
for i=1,length do
dest[5][i + destPos] = src[5][i + srcPos]
end
end
natives["java.lang.System"]["initProperties()V"] = function()
local defaultProps = {
["file.separator"] = "/",
["line.separator"] = "\n",
["path.separator"] = ":",
["user.dir" ] = shell.dir()
}
local System = classByName("java.lang.System")
local propsMap = System.fields[System.fieldIndexByName["props"]]
local put = findMethod(propsMap[1], "put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;")[1]
for k,v in pairs(defaultProps) do
put(propsMap, toJString(tostring(k)), toJString(tostring(v)))
end
end |
local Bullet = Class { -- TODO: I am temporary - delete me
init = function(self, x, y, dx, dy, size, color)
self.position = Vector(x, y)
self.velocity = Vector(dx, dy)
self.size = size
self.color = color
end
}
function Bullet:update(dt)
self.position = self.position + self.velocity * dt
end
function Bullet:draw()
love.graphics.setColor(self.color)
love.graphics.circle("fill", self.position.x, self.position.y, self.size)
end
return Bullet
|
--
-- Copyright (c) 2016-2017, Fangchang Ma.
-- Copyright (c) 2016, 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.
--
local checkpoint = {}
local function deepCopy(tbl)
-- creates a copy of a network with new modules and the same tensors
local copy = {}
for k, v in pairs(tbl) do
if type(v) == 'table' then
copy[k] = deepCopy(v)
else
copy[k] = v
end
end
if torch.typename(tbl) then
torch.setmetatable(copy, torch.typename(tbl))
end
return copy
end
function checkpoint.latest(opt)
checkpoint.saveDir = opt.saveDir
if opt.resume == 'none' then
return nil
end
local latestPath = paths.concat(opt.resume, 'latest.t7')
if not paths.filep(latestPath) then
return nil
end
print('=> Loading checkpoint ' .. latestPath)
local latest = torch.load(latestPath)
local optimState = torch.load(paths.concat(opt.resume, latest.optimFile))
return latest, optimState
end
function checkpoint.save(epoch, model, optimState, bestModel)
-- Don't save the DataParallelTable for easier loading on other machines
if torch.type(model) == 'nn.DataParallelTable' then
model = model:get(1)
end
-- create a clean copy on the CPU without modifying the original network
model = deepCopy(model):float():clearState()
local modelFile = paths.concat(checkpoint.saveDir, 'model_' .. epoch .. '.t7')
local optimFile = paths.concat(checkpoint.saveDir, 'optimState_' .. epoch .. '.t7')
-- local modelFile = paths.concat(checkpoint.saveDir, 'model_latest.t7')
-- local oldModelFile = paths.concat(checkpoint.saveDir, 'model_latest_backup.t7')
local optimFile = paths.concat(checkpoint.saveDir, 'optimState_latest.t7')
local latestFile = paths.concat(checkpoint.saveDir, 'latest.t7')
if epoch>=3 then
print('=> Saving latest model to ' .. modelFile .. '. Do not interrupt..')
torch.save(modelFile, model)
if epoch>1 then
local oldModelFile = paths.concat(checkpoint.saveDir, 'model_' .. epoch-1 .. '.t7')
if paths.filep(oldModelFile) then
os.execute('rm ' .. oldModelFile)
end
end
print('=> Saving latest model completes')
torch.save(optimFile, optimState)
torch.save(latestFile, {
epoch = epoch,
modelFile = modelFile,
optimFile = optimFile,
})
if bestModel then
local bestModelFile = paths.concat(checkpoint.saveDir, 'model_best.t7')
print('=> Saving best model to ' .. bestModelFile .. '. Do not interrupt..')
os.execute('cp ' .. modelFile .. ' ' .. bestModelFile)
print('=> Saving best model completes')
end
else
print('=> Skip saving any result until epoch>=3 for the sake of efficiency.')
end
end
return checkpoint
|
-- Here is where all of your serverside hooks should go.
-- Change death sounds of people in the police faction to the metropolice death sound.
function Schema:PlayerUse(ply,ent )
if(ent:GetClass()=="func_recharge" and !ply:CanLoadArmor()) then //allows using armor charger only for certain people
return false
end
end
function Schema:PlayerJoinedClass(client)
//client:KillSilent()
end |
function table.copy(param)
local t = { }
for k, v in pairs(param) do
t[k] = v
end
return t
end |
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author ([email protected]).
--]]
Schema.stunEffects = {};
Schema.combineOverlay = Material("effects/combine_binocoverlay");
Schema.randomDisplayLines = {
"Transmitting physical transition vector...",
"Modulating external temperature levels...",
"Parsing view ports and data arrays...",
"Translating Union practicalities...",
"Updating biosignal co-ordinates...",
"Parsing Clockwork protocol messages...",
"Downloading recent dictionaries...",
"Pinging connection to network...",
"Updating mainframe connection...",
"Synchronizing locational data...",
"Translating radio messages...",
"Emptying outgoing pipes...",
"Sensoring proximity...",
"Pinging loopback...",
"Idle connection..."
};
Clockwork.config:AddToSystem("ServerWhitelistIdentity", "server_whitelist_identity", "ServerWhitelistIdentityDesc");
Clockwork.config:AddToSystem("CombineLockOverrides", "combine_lock_overrides", "CombineLockOverridesDesc");
Clockwork.config:AddToSystem("SmallIntroText", "intro_text_small", "SmallIntroTextDesc");
Clockwork.config:AddToSystem("BigIntroText", "intro_text_big", "BigIntroTextDesc");
Clockwork.config:AddToSystem("KnockoutTime", "knockout_time", "KnockoutTimeDesc", 0, 7200);
Clockwork.config:AddToSystem("BusinessCost", "business_cost", "BusinessCostDesc");
Clockwork.config:AddToSystem("CWUPropsEnabled", "cwu_props", "CWUPropsEnabledDesc");
Clockwork.config:AddToSystem("PermitsEnabled", "permits", "PermitsEnabledDesc");
Clockwork.config:AddToSystem("DullVision", "dull_vision", "DullVisionDesc");
Clockwork.datastream:Hook("RebuildBusiness", function(data)
if (Clockwork.menu:GetOpen() and IsValid(Schema.businessPanel)) then
if (Clockwork.menu:GetActivePanel() == Schema.businessPanel) then
Schema.businessPanel:Rebuild();
end;
end;
end);
Clockwork.datastream:Hook("ObjectPhysDesc", function(data)
local entity = data;
if (IsValid(entity)) then
Derma_StringRequest(L("RequestObjectDescTitle"), L("RequestObjectDescHelp"), nil, function(text)
Clockwork.datastream:Start("ObjectPhysDesc", {text, entity});
end);
end;
end);
Clockwork.datastream:Hook("Frequency", function(data)
Derma_StringRequest(L("RequestFrequencyTitle"), L("RequestFrequencyHelp"), data, function(text)
Clockwork.kernel:RunCommand("SetFreq", text);
if (!Clockwork.menu:GetOpen()) then
gui.EnableScreenClicker(false);
end;
end);
if (!Clockwork.menu:GetOpen()) then
gui.EnableScreenClicker(true);
end;
end);
Clockwork.datastream:Hook("EditObjectives", function(data)
if (Schema.objectivesPanel and Schema.objectivesPanel:IsValid()) then
Schema.objectivesPanel:Close();
Schema.objectivesPanel:Remove();
end;
Schema.objectivesPanel = vgui.Create("cwObjectives");
Schema.objectivesPanel:Populate(data or "");
Schema.objectivesPanel:MakePopup();
gui.EnableScreenClicker(true);
end);
Clockwork.datastream:Hook("EditData", function(data)
if (IsValid(data[1])) then
if (Schema.dataPanel and Schema.dataPanel:IsValid()) then
Schema.dataPanel:Close();
Schema.dataPanel:Remove();
end;
Schema.dataPanel = vgui.Create("cwData");
Schema.dataPanel:Populate(data[1], data[2] or "");
Schema.dataPanel:MakePopup();
gui.EnableScreenClicker(true);
end;
end);
Clockwork.datastream:Hook("Stunned", function(data)
Schema:AddStunEffect(data);
end);
Clockwork.datastream:Hook("Flashed", function(data)
Schema:AddFlashEffect();
end);
-- A function to add a flash effect.
function Schema:AddFlashEffect()
local curTime = CurTime();
self.stunEffects[#self.stunEffects + 1] = {curTime + 10, 10};
self.flashEffect = {curTime + 20, 20};
surface.PlaySound("hl1/fvox/flatline.wav");
end;
-- A function to add a stun effect.
function Schema:AddStunEffect(duration)
local curTime = CurTime();
if (!duration or duration == 0) then
duration = 1;
end;
self.stunEffects[#self.stunEffects + 1] = {curTime + duration, duration};
self.flashEffect = {curTime + (duration * 2), duration * 2, true};
end;
Clockwork.datastream:Hook("ClearEffects", function(data)
Schema.stunEffects = {};
Schema.flashEffect = nil;
end);
Clockwork.datastream:Hook("CombineDisplayLine", function(data)
Schema:AddCombineDisplayLine(data[1], data[2]);
end);
Clockwork.chatBox:RegisterClass("request_eavesdrop", "ic", function(info)
if (info.shouldHear) then
local localized = Clockwork.chatBox:LangToTable("ChatPlayerRequest", Color(255, 255, 150, 255), info.name, info.text);
Clockwork.chatBox:Add(info.filtered, nil, unpack(localized));
end;
end);
Clockwork.chatBox:RegisterClass("broadcast", "ic", function(info)
local localized = Clockwork.chatBox:LangToTable("ChatPlayerBroadcast", Color(150, 125, 175, 255), info.name, info.text);
Clockwork.chatBox:Add(info.filtered, nil, unpack(localized));
end);
Clockwork.chatBox:RegisterClass("dispatch", "ic", function(info)
local localized = Clockwork.chatBox:LangToTable("ChatPlayerDispatch", Color(150, 100, 100, 255), info.text);
Clockwork.chatBox:Add(info.filtered, nil, unpack(localized));
end);
Clockwork.chatBox:RegisterClass("request", "ic", function(info)
local localized = Clockwork.chatBox:LangToTable("ChatPlayerRequest", Color(175, 125, 100, 255), info.name, info.text);
Clockwork.chatBox:Add(info.filtered, nil, unpack(localized));
end);
-- A function to get a player's scanner entity.
function Schema:GetScannerEntity(player)
local scannerEntity = Entity(player:GetSharedVar("Scanner"));
if (IsValid(scannerEntity)) then
return scannerEntity;
end;
end;
-- A function to get whether a text entry is being used.
function Schema:IsTextEntryBeingUsed()
if (self.textEntryFocused) then
if (self.textEntryFocused:IsValid() and self.textEntryFocused:IsVisible()) then
return true;
end;
end;
end;
-- A function to add a Combine display line.
function Schema:AddCombineDisplayLine(text, color)
if (self:PlayerIsCombine(Clockwork.Client)) then
if (!self.combineDisplayLines) then
self.combineDisplayLines = {};
end;
table.insert(self.combineDisplayLines, {"<:: "..T(text), CurTime() + 8, 5, color});
end;
end;
-- A function to get whether a player is Combine.
function Schema:PlayerIsCombine(player, bHuman)
if (!IsValid(player)) then
return;
end;
local faction = player:GetFaction();
if (self:IsCombineFaction(faction)) then
if (bHuman) then
if (faction == FACTION_MPF) then
return true;
end;
elseif (bHuman == false) then
if (faction == FACTION_MPF) then
return false;
else
return true;
end;
else
return true;
end;
end;
end;
|
local Object = require 'object'
local Recipe = {}
Recipe.wrapper = require 'recipe.wrapper'
Recipe.nested = require 'recipe.nested'
function Recipe.new(name, super)
return Recipe.recipify({ name }, super)
end
function Recipe.recipify(t, super)
if super then Recipe.extends(t, super) end
return setmetatable(t, Recipe)
end
function Recipe.extends(recipe, super)
DEBUG.PUSH_CALL(recipe, 'extends')
if type(super) == 'string' then
super = R(super)
end
assertf(Recipe.is_recipe(super), "Invalid super definition %q", type(super))
recipe.__super = super
DEBUG.POP_CALL(recipe, 'extends')
end
local function yield_super(recipe)
local super = recipe.__super
if super then
yield_super(super)
coroutine.yield(super)
end
end
function Recipe.iter_super_chain(recipe)
return coroutine.wrap(function() yield_super(recipe) end)
end
function Recipe.is_recipe(v)
return getmetatable(v) == Recipe
end
function Recipe:add_getter(field_name, getter_or_func)
if not Expression.is_getter(getter_or_func) then
getter_or_func = Expression.getter_from_function(getter_or_func)
end
rawset(self, field_name, getter_or_func)
return getter_or_func
end
local SET_METHOD_PREFIX = 'set '
local SET_METHOD_PATT = 'set[ \t]+(.+)'
local SET_METHOD_ARGUMENT_NAMES = { 'value' }
local UPDATE_METHOD_ARGUMENT_NAMES = { 'dt' }
function Recipe:add_setter(field_name, function_or_expression)
Expression.bind_argument_names(function_or_expression, SET_METHOD_ARGUMENT_NAMES)
rawset(self, SET_METHOD_PREFIX .. field_name, function_or_expression)
return function_or_expression
end
function Recipe.setter_method_name(field_name)
return SET_METHOD_PREFIX .. field_name
end
function Recipe:setter_for(field_name)
return self[SET_METHOD_PREFIX .. field_name]
end
function Recipe:invoke(method_name, obj, ...)
local method, result = self[method_name]
if method then
DEBUG.PUSH_CALL(self, method_name)
result = safepack(method(obj, ...))
DEBUG.POP_CALL(self, method_name)
end
return result
end
function Recipe:invoke_raw(method_name, obj, ...)
local method, result = rawget(self, method_name)
if method then
DEBUG.PUSH_CALL(self, method_name)
result = safepack(method(obj, ...))
DEBUG.POP_CALL(self, method_name)
end
return result
end
function Recipe:invoke_super(...)
local super = rawget(self, '__super')
return super and super:invoke(...)
end
local methods = {
iter_super_chain = Recipe.iter_super_chain,
add_getter = Recipe.add_getter,
add_setter = Recipe.add_setter,
setter_for = Recipe.setter_for,
invoke = Recipe.invoke,
invoke_raw = Recipe.invoke,
invoke_super = Recipe.invoke_super,
}
function Recipe:__index(index)
if methods[index] then return methods[index] end
local super = rawget(self, '__super')
return super and super[index]
end
function Recipe:__newindex(index, value)
if iscallable(value) then
local setter_field_name = type(index) == 'string' and index:match(SET_METHOD_PATT)
if setter_field_name then
Recipe.add_setter(self, setter_field_name, value)
return
elseif Expression.is_getter(value) then
Recipe.add_getter(self, index, value)
return
elseif index == 'update' then
Expression.bind_argument_names(value, UPDATE_METHOD_ARGUMENT_NAMES)
end
end
rawset(self, index, value)
end
Recipe.__pairs = default_object_pairs
Recipe.__call = Object.new
-- Loading from file
function Recipe.load_lua(filename)
return assert(love.filesystem.load(filename))()
end
function Recipe.load_nested(filename)
local contents, size = assert(love.filesystem.read(filename))
return assert(Recipe.nested.load(filename, contents))
end
return Recipe
|
project "VortexAnimatSim"
language "C++"
kind "SharedLib"
files { "../*.h",
"../*.cpp"}
includedirs { "../../../../include",
"../../../StdUtils",
"../../../AnimatSim",
"../../../../../3rdParty/stlsoft-1.9.117/include" }
libdirs { "../../../../bin" }
links { "dl"}
configuration { "Debug", "linux" }
defines { "_DEBUG", "VORTEXANIMATLIBRARY_EXPORTS" }
flags { "Symbols", "SEH" }
targetdir ("Debug")
targetname ("VortexAnimatSim_vc10D")
links { "StdUtils_vc10D",
"AnimatSim_vc10D"}
postbuildcommands { "cp Debug/libVortexAnimatSim_vc10D.so ../../../bin",
"cp Debug/libVortexAnimatSim_vc10D.so ../../../unit_test_bin" }
configuration { "Release", "linux" }
defines { "NDEBUG", "VORTEXANIMATLIBRARY_EXPORTS" }
flags { "Optimize", "SEH" }
targetdir ("Release")
targetname ("VortexAnimatSim_vc10")
links { "StdUtils_vc10",
"AnimatSim_vc10"}
postbuildcommands { "cp Release/libVortexAnimatSim_vc10.so ../../../bin",
"cp Release/libVortexAnimatSim_vc10.so ../../../unit_test_bin" }
|
--[[
--=====================================================================================================--
Script Name: Random Grenades, for SAPP (PC & CE)
Implementing API version: 1.11.0.0
Description: Every time you spawn, this script will generate a random number
between the value of Min_Frags/Max_Frags and/or Min_Plasmas/Max_Plasmas,
and this will be the number of grenades you spawn with.
In other words, it will generate a random number between 1 and 4 by default.
The number it chooses will be the amount you spawn with.
If you do not wish to spawn with a random number of grenades,
you can manually define (hard code) how many you spawn with (on a per map basis) from line 117 onwards.
** IMPORTANT **
If for example, you're using a custom map, i.e, DustBeta, and you haven't listed it in the grenade table(s),
then the script will throw an error and you will spawn with the default amount of grenades, rather than a custom amount.
When adding maps to the grenade table(s), note that the map names themselves are character/case sensitive.
Copyright (c) 2016-2018, Jericho Crosby <[email protected]>
* Notice: You can use this document subject to the following conditions:
https://github.com/Chalwk77/Halo-Scripts-Phasor-V2-/blob/master/LICENSE
* Written by Jericho Crosby (Chalwk)
--=====================================================================================================--
]]--
api_version = "1.12.0.0"
frags = { }
plasmas = { }
-- Configuration Starts --
Min_Frags = 1 -- Minimum number of frag grenades to spawn with
Max_Frags = 4 -- Maximum number of frag grenades to spawn with
Min_Plasmas = 1 -- Minimum number of plasma grenades to spawn with
Max_Plasmas = 4 -- Maximum number of plasma grenades to spawn with
-- Toggle UseRandom (option), true|false, True = yes, False = no.
gamesettings = {
["RANDOM_FRAGS"] = true, -- If false, it will refer to Manual Configuration, (line 114)
["RANDOM_PLASMAS"] = true -- If false, it will refer to Manual Configuration, (line 137)
}
-- Configuration Ends --
function OnScriptLoad()
register_callback(cb['EVENT_SPAWN'], "OnPlayerSpawn")
-- Debugging --
-- register_callback(cb['EVENT_DIE'], "OnPlayerKill")
end
function OnScriptUnload()
frags = { }
plasmas = { }
end
function OnPlayerSpawn(PlayerIndex)
if player_alive(PlayerIndex) then
local RandomFR = math.random(tonumber(Min_Frags), tonumber(Max_Frags))
local RandomPL = math.random(tonumber(Min_Plasmas), tonumber(Max_Plasmas))
local player_object = get_dynamic_player(PlayerIndex)
local mapname = get_var(0, "$map")
if (player_object ~= 0) then
if (gamesettings["RANDOM_FRAGS"]) == true then
frags = {
beavercreek = RandomFR,
bloodgulch = RandomFR,
boardingaction = RandomFR,
carousel = RandomFR,
dangercanyon = RandomFR,
deathisland = RandomFR,
gephyrophobia = RandomFR,
icefields = RandomFR,
infinity = RandomFR,
sidewinder = RandomFR,
timberland = RandomFR,
hangemhigh = RandomFR,
ratrace = RandomFR,
damnation = RandomFR,
putput = RandomFR,
prisoner = RandomFR,
wizard = RandomFR -- Make sure the last entry in the table doesn't have a comma at the end.
}
end
if (gamesettings["RANDOM_PLASMAS"]) == true then
plasmas = {
beavercreek = RandomPL,
bloodgulch = RandomPL,
boardingaction = RandomPL,
carousel = RandomPL,
dangercanyon = RandomPL,
deathisland = RandomPL,
gephyrophobia = RandomPL,
icefields = RandomPL,
infinity = RandomPL,
sidewinder = RandomPL,
timberland = RandomPL,
hangemhigh = RandomPL,
ratrace = RandomPL,
damnation = RandomPL,
putput = RandomPL,
prisoner = RandomPL,
wizard = RandomPL -- Make sure the last entry in the table doesn't have a comma at the end.
}
end
--=======================================================================================--
-- [MANUAL CONFIG START] --
-- Manually define number of frag grenades given on spawn --
if (gamesettings["RANDOM_FRAGS"]) == false then
frags = {
-- The number is the total value of frags that you will spawn with for a given map.
beavercreek = 3, -- Spawn with 3 Frags on the map beavercreek
bloodgulch = 4,
boardingaction = 1,
carousel = 3,
dangercanyon = 4,
deathisland = 1,
gephyrophobia = 3,
icefields = 1,
infinity = 2,
sidewinder = 3,
timberland = 2,
hangemhigh = 3,
ratrace = 3,
damnation = 1,
putput = 4,
prisoner = 2,
wizard = 1 -- Make sure the last entry in the table doesn't have a comma at the end.
}
end
-- Manually define number of plasma grenades given on spawn --
if (gamesettings["RANDOM_PLASMAS"]) == false then
plasmas = {
-- The number is the total value of plasmas that you will spawn with for a given map.
beavercreek = 1, -- Spawn with 1 Plasma on the map beavercreek
bloodgulch = 2,
boardingaction = 3,
carousel = 3,
dangercanyon = 4,
deathisland = 1,
gephyrophobia = 3,
icefields = 1,
infinity = 4,
sidewinder = 2,
timberland = 4,
hangemhigh = 3,
ratrace = 2,
damnation = 3,
putput = 1,
prisoner = 1,
wizard = 2 -- Make sure the last entry in the table doesn't have a comma at the end.
-- [MANUAL CONFIG END] --
}
end
--===============================================================================================--
-- DO NOT TOUCH ---------------------------------------
if (frags[mapname] == nil) then
cprint("Frags not defined for " .. mapname)
else
write_word(player_object + 0x31E, frags[mapname])
end
if (plasmas[mapname] == nil) then
cprint("Plasmas not defined for " .. mapname)
else
write_word(player_object + 0x31F, plasmas[mapname])
end
-- Debugging --
-- Uncomment the 'cprint' element for debugging.
-- cprint("Spawning with " .. frags[mapname] .. " frags and " .. plasmas[mapname] .. " plasmas", 2+8)
end
end
end
-- Debugging --
function OnPlayerKill(PlayerIndex)
local player = get_player(PlayerIndex)
-- Instantaneous spawn time - use this in conjunction with the /kill command for faster debugging.
write_dword(player + 0x2C, 0 * 33)
end
function OnError(Message)
print(debug.traceback())
end
|
local mappings = {
['<Space>e'] = [[<cmd>lua vim.diagnostic.open_float()<CR>]],
['[d'] = [[<cmd>lua vim.diagnostic.goto_prev()<CR>]],
[']d'] = [[<cmd>lua vim.diagnostic.goto_next()<CR>]],
['<Space>q'] = [[<cmd>lua vim.diagnostic.setloclist()<CR>]],
['[b'] = [[:BufferLineCycleNext<CR>]],
[']b'] = [[:BufferLineCyclePrev<CR>]],
}
for k, v in pairs(mappings) do
local opts = { noremap = true, silent = true }
vim.api.nvim_set_keymap('n', k, v, opts)
end
|
--EXAMPLE INDEPENDENT MODULE
OSI = {
LAYER=1,
TITLE="independent_module"
VERSION=1.0
AUTHOR="Chad Dunn"
DEPENDENCIES="*" -- If dependent, it should list the module by TITLE in a table. Ex. DEPENDENCIES = {"something"}
}
function func()
--do something
return result
end |
local runner = require("test_executive")
local console = require("console")
-- Record Dispatcher Unit Test Setup --
runner.command("DEFINE test.rec id 8")
runner.command("ADD_FIELD test.rec id INT32 0 1 NATIVE")
runner.command("ADD_FIELD test.rec counter INT32 4 1 NATIVE")
local idmetric = core.metric("id", "dispatcher_metricq")
idmetric:pbtext(true)
idmetric:pbname(true)
idmetric:name("idmetric")
local countermetric = core.metric("counter", "dispatcher_metricq")
countermetric:pbtext(true)
countermetric:pbname(true)
countermetric:name("countermetric")
local r = core.dispatcher("dispatcher_inputq")
r:name("dispatcher")
r:attach(idmetric, "test.rec")
r:attach(countermetric, "test.rec")
r:run()
local inputq = msg.publish("dispatcher_inputq")
local metricq = msg.subscribe("dispatcher_metricq")
-- Send Test Records --
expected_totals = {id=0, counter=0}
for i=1,100,1 do
testrec1 = msg.create(string.format('test.rec id=1000 counter=%d', i))
inputq:sendrecord(testrec1)
testrec2 = msg.create(string.format('test.rec id=2000 counter=%d', i))
inputq:sendrecord(testrec2)
expected_totals["id"] = expected_totals["id"] + 3000
expected_totals["counter"] = expected_totals["counter"] + (i * 2)
end
sys.lsmsgq()
-- Receive Metrics --
actual_totals = {}
actual_totals["test.rec.id"]=0
actual_totals["test.rec.counter"]=0
for i=1,400,1 do
metric = metricq:recvrecord(1000)
if metric then
name = metric:getvalue("NAME")
value = metric:getvalue("VALUE")
actual_totals[name] = actual_totals[name] + value
end
end
-- Compare Results --
runner.check(expected_totals["id"] == actual_totals["test.rec.id"])
runner.check(expected_totals["counter"] == actual_totals["test.rec.counter"])
-- Clean Up --
r:destroy()
idmetric:destroy()
countermetric:destroy()
-- Report Results --
runner.report()
|
--This file generated from little Java and friends :)
return {{{-57,74,0}, color("#FFFFFF")},
{{-80,42,0}, color("#FFFFFF")},
{{-80,42,0}, color("#FFFFFF")},
{{-68,-45,0}, color("#FFFFFF")},
{{-68,-45,0}, color("#FFFFFF")},
{{-34,-69,0}, color("#FFFFFF")},
{{-34,-69,0}, color("#FFFFFF")},
{{49,-57,0}, color("#FFFFFF")},
{{49,-57,0}, color("#FFFFFF")},
{{75,-26,0}, color("#FFFFFF")},
{{75,-26,0}, color("#FFFFFF")},
{{63,62,0}, color("#FFFFFF")},
{{63,62,0}, color("#FFFFFF")},
{{32,87,0}, color("#FFFFFF")},
{{32,87,0}, color("#FFFFFF")},
{{-57,74,0}, color("#FFFFFF")},
{{-44,62,0}, color("#FFFFFF")},
{{-67,37,0}, color("#FFFFFF")},
{{-67,37,0}, color("#FFFFFF")},
{{-55,-34,0}, color("#FFFFFF")},
{{-55,-34,0}, color("#FFFFFF")},
{{-31,-54,0}, color("#FFFFFF")},
{{-31,-54,0}, color("#FFFFFF")},
{{43,-42,0}, color("#FFFFFF")},
{{43,-42,0}, color("#FFFFFF")},
{{61,-19,0}, color("#FFFFFF")},
{{61,-19,0}, color("#FFFFFF")},
{{49,52,0}, color("#FFFFFF")},
{{49,52,0}, color("#FFFFFF")},
{{24,73,0}, color("#FFFFFF")},
{{24,73,0}, color("#FFFFFF")},
{{-43,62,0}, color("#FFFFFF")},
{{-26,54,0}, color("#FFFFFF")},
{{-36,54,0}, color("#FFFFFF")},
{{-36,54,0}, color("#FFFFFF")},
{{-46,39,0}, color("#FFFFFF")},
{{-46,39,0}, color("#FFFFFF")},
{{-47,21,0}, color("#FFFFFF")},
{{-47,21,0}, color("#FFFFFF")},
{{-50,3,0}, color("#FFFFFF")},
{{-50,3,0}, color("#FFFFFF")},
{{-50,-6,0}, color("#FFFFFF")},
{{-49,-6,0}, color("#FFFFFF")},
{{-46,-13,0}, color("#FFFFFF")},
{{-46,-13,0}, color("#FFFFFF")},
{{-49,-14,0}, color("#FFFFFF")},
{{-49,-15,0}, color("#FFFFFF")},
{{-51,-17,0}, color("#FFFFFF")},
{{-51,-18,0}, color("#FFFFFF")},
{{-51,-18,0}, color("#FFFFFF")},
{{-51,-22,0}, color("#FFFFFF")},
{{-51,-23,0}, color("#FFFFFF")},
{{-51,-24,0}, color("#FFFFFF")},
{{-49,-25,0}, color("#FFFFFF")},
{{-47,-24,0}, color("#FFFFFF")},
{{-44,-22,0}, color("#FFFFFF")},
{{-43,-20,0}, color("#FFFFFF")},
{{-43,-18,0}, color("#FFFFFF")},
{{-43,-17,0}, color("#FFFFFF")},
{{-45,-30,0}, color("#FFFFFF")},
{{-44,-30,0}, color("#FFFFFF")},
{{-37,-25,0}, color("#FFFFFF")},
{{-38,-26,0}, color("#FFFFFF")},
{{-39,-27,0}, color("#FFFFFF")},
{{-39,-30,0}, color("#FFFFFF")},
{{-40,-33,0}, color("#FFFFFF")},
{{-40,-35,0}, color("#FFFFFF")},
{{-36,-38,0}, color("#FFFFFF")},
{{-32,-42,0}, color("#FFFFFF")},
{{-31,-38,0}, color("#FFFFFF")},
{{-29,-34,0}, color("#FFFFFF")},
{{-29,-30,0}, color("#FFFFFF")},
{{-28,-27,0}, color("#FFFFFF")},
{{-28,-26,0}, color("#FFFFFF")},
{{-26,-36,0}, color("#FFFFFF")},
{{-26,-39,0}, color("#FFFFFF")},
{{-24,-41,0}, color("#FFFFFF")},
{{-22,-41,0}, color("#FFFFFF")},
{{-20,-38,0}, color("#FFFFFF")},
{{-20,-35,0}, color("#FFFFFF")},
{{-19,-33,0}, color("#FFFFFF")},
{{-19,-28,0}, color("#FFFFFF")},
{{-19,-26,0}, color("#FFFFFF")},
{{-20,-26,0}, color("#FFFFFF")},
{{-19,-29,0}, color("#FFFFFF")},
{{-19,-33,0}, color("#FFFFFF")},
{{-17,-36,0}, color("#FFFFFF")},
{{-14,-38,0}, color("#FFFFFF")},
{{-12,-40,0}, color("#FFFFFF")},
{{-10,-42,0}, color("#FFFFFF")},
{{-9,-42,0}, color("#FFFFFF")},
{{-6,-41,0}, color("#FFFFFF")},
{{-3,-37,0}, color("#FFFFFF")},
{{-3,-34,0}, color("#FFFFFF")},
{{-3,-31,0}, color("#FFFFFF")},
{{-5,-29,0}, color("#FFFFFF")},
{{-8,-26,0}, color("#FFFFFF")},
{{-10,-23,0}, color("#FFFFFF")},
{{-11,-22,0}, color("#FFFFFF")},
{{-13,-23,0}, color("#FFFFFF")},
{{-13,-22,0}, color("#FFFFFF")},
{{-8,-16,0}, color("#FFFFFF")},
{{-8,-16,0}, color("#FFFFFF")},
{{-9,-2,0}, color("#FFFFFF")},
{{-9,-2,0}, color("#FFFFFF")},
{{-17,6,0}, color("#FFFFFF")},
{{-17,6,0}, color("#FFFFFF")},
{{-23,20,0}, color("#FFFFFF")},
{{-23,20,0}, color("#FFFFFF")},
{{-19,33,0}, color("#FFFFFF")},
{{-19,33,0}, color("#FFFFFF")},
{{-17,49,0}, color("#FFFFFF")},
{{-17,49,0}, color("#FFFFFF")},
{{-23,54,0}, color("#FFFFFF")},
{{7,62,0}, color("#FFFFFF")},
{{7,62,0}, color("#FFFFFF")},
{{2,57,0}, color("#FFFFFF")},
{{6,62,0}, color("#FFFFFF")},
{{2,56,0}, color("#FFFFFF")},
{{2,47,0}, color("#FFFFFF")},
{{2,47,0}, color("#FFFFFF")},
{{5,38,0}, color("#FFFFFF")},
{{5,38,0}, color("#FFFFFF")},
{{13,29,0}, color("#FFFFFF")},
{{13,29,0}, color("#FFFFFF")},
{{13,14,0}, color("#FFFFFF")},
{{13,14,0}, color("#FFFFFF")},
{{10,4,0}, color("#FFFFFF")},
{{10,4,0}, color("#FFFFFF")},
{{9,-5,0}, color("#FFFFFF")},
{{9,-5,0}, color("#FFFFFF")},
{{11,-12,0}, color("#FFFFFF")},
{{11,-12,0}, color("#FFFFFF")},
{{16,-18,0}, color("#FFFFFF")},
{{16,-18,0}, color("#FFFFFF")},
{{13,-23,0}, color("#FFFFFF")},
{{13,-23,0}, color("#FFFFFF")},
{{10,-29,0}, color("#FFFFFF")},
{{10,-29,0}, color("#FFFFFF")},
{{12,-35,0}, color("#FFFFFF")},
{{12,-35,0}, color("#FFFFFF")},
{{17,-38,0}, color("#FFFFFF")},
{{17,-38,0}, color("#FFFFFF")},
{{23,-37,0}, color("#FFFFFF")},
{{23,-37,0}, color("#FFFFFF")},
{{27,-33,0}, color("#FFFFFF")},
{{27,-33,0}, color("#FFFFFF")},
{{25,-29,0}, color("#FFFFFF")},
{{25,-29,0}, color("#FFFFFF")},
{{23,-23,0}, color("#FFFFFF")},
{{23,-23,0}, color("#FFFFFF")},
{{23,-21,0}, color("#FFFFFF")},
{{23,-21,0}, color("#FFFFFF")},
{{27,-20,0}, color("#FFFFFF")},
{{27,-20,0}, color("#FFFFFF")},
{{29,-24,0}, color("#FFFFFF")},
{{29,-24,0}, color("#FFFFFF")},
{{29,-33,0}, color("#FFFFFF")},
{{29,-33,0}, color("#FFFFFF")},
{{31,-33,0}, color("#FFFFFF")},
{{31,-33,0}, color("#FFFFFF")},
{{35,-32,0}, color("#FFFFFF")},
{{35,-32,0}, color("#FFFFFF")},
{{36,-26,0}, color("#FFFFFF")},
{{36,-25,0}, color("#FFFFFF")},
{{35,-22,0}, color("#FFFFFF")},
{{35,-22,0}, color("#FFFFFF")},
{{34,-18,0}, color("#FFFFFF")},
{{34,-18,0}, color("#FFFFFF")},
{{37,-17,0}, color("#FFFFFF")},
{{37,-17,0}, color("#FFFFFF")},
{{38,-22,0}, color("#FFFFFF")},
{{38,-22,0}, color("#FFFFFF")},
{{38,-28,0}, color("#FFFFFF")},
{{39,-29,0}, color("#FFFFFF")},
{{45,-27,0}, color("#FFFFFF")},
{{45,-27,0}, color("#FFFFFF")},
{{43,-18,0}, color("#FFFFFF")},
{{43,-18,0}, color("#FFFFFF")},
{{39,-16,0}, color("#FFFFFF")},
{{39,-15,0}, color("#FFFFFF")},
{{41,-14,0}, color("#FFFFFF")},
{{41,-14,0}, color("#FFFFFF")},
{{45,-19,0}, color("#FFFFFF")},
{{45,-19,0}, color("#FFFFFF")},
{{49,-20,0}, color("#FFFFFF")},
{{50,-20,0}, color("#FFFFFF")},
{{52,-16,0}, color("#FFFFFF")},
{{52,-16,0}, color("#FFFFFF")},
{{49,-10,0}, color("#FFFFFF")},
{{48,-9,0}, color("#FFFFFF")},
{{45,-8,0}, color("#FFFFFF")},
{{45,-8,0}, color("#FFFFFF")},
{{45,-6,0}, color("#FFFFFF")},
{{45,-6,0}, color("#FFFFFF")},
{{49,-10,0}, color("#FFFFFF")},
{{50,-10,0}, color("#FFFFFF")},
{{52,-10,0}, color("#FFFFFF")},
{{53,-8,0}, color("#FFFFFF")},
{{54,-6,0}, color("#FFFFFF")},
{{53,-4,0}, color("#FFFFFF")},
{{49,-4,0}, color("#FFFFFF")},
{{49,-4,0}, color("#FFFFFF")},
{{45,-2,0}, color("#FFFFFF")},
{{43,-2,0}, color("#FFFFFF")},
{{43,-2,0}, color("#FFFFFF")},
{{43,-2,0}, color("#FFFFFF")},
{{44,4,0}, color("#FFFFFF")},
{{44,4,0}, color("#FFFFFF")},
{{41,18,0}, color("#FFFFFF")},
{{41,18,0}, color("#FFFFFF")},
{{37,35,0}, color("#FFFFFF")},
{{37,35,0}, color("#FFFFFF")},
{{31,47,0}, color("#FFFFFF")},
{{31,47,0}, color("#FFFFFF")},
{{28,56,0}, color("#FFFFFF")},
{{28,56,0}, color("#FFFFFF")},
{{17,62,0}, color("#FFFFFF")},
{{17,62,0}, color("#FFFFFF")},
{{6,61,0}, color("#FFFFFF")},
}; |
--This base was originally made by xyzzy, I just adjusted it for these weapons and added proficiency
SWEP.PrintName = "NPC Weapon Base"
SWEP.Author = "kev675243"
SWEP.Purpose = ""
SWEP.Instructions = ""
SWEP.Category = "NPC Weapons"
SWEP.Spawnable = false
SWEP.AdminSpawnable = false
SWEP.AutoSwitchTo = false
SWEP.AutoSwitchFrom = false
SWEP.ViewModel = "models/weapons/v_pistol.mdl"
SWEP.WorldModel = "models/weapons/w_pistol.mdl"
SWEP.HoldType = "pistol"
SWEP.MuzzleAttachment = "1"
SWEP.ShellAttachment = "2"
SWEP.MuzzleEffect = ""
SWEP.ShellEffect = ""
SWEP.Tracer = "Tracer"
SWEP.TracerX = 1
SWEP.Damage = 1
SWEP.Force = 0
SWEP.Spread = Vector(0, 0, 0)
SWEP.Primary.Cone = 0.0125
SWEP.SpreadMPenalty = 1
SWEP.BurstCount = 0
SWEP.BurstDelay = 0
SWEP.Primary.NumShots = 1
SWEP.Primary.ClipSize = 1
SWEP.Primary.DefaultClip = 1
SWEP.Primary.Delay = 0
SWEP.FireDelay = 0
SWEP.Primary.Ammo = "pistol"
SWEP.Primary.Sound = "weapons/pistol/pistol_fire2.wav"
function SWEP:Initialize()
self:SetHoldType(self.HoldType)
if SERVER then
self:Think()
end
end
function SWEP:PrimaryAttack()
if not self:CanPrimaryAttack() then
self:AIReload()
return
end
local curtime = CurTime()
if self.FireDelay > curtime then
return
end
if self.Owner:IsNPC() and IsValid(self.Owner:GetEnemy()) then
self.FireDelay = curtime + self.Primary.Delay
for i=0, self.BurstCount do
timer.Simple(i * self.BurstDelay, function()
if not IsValid(self) or not IsValid(self.Owner) then
return
end
if not self.Owner:GetEnemy() or not self:CanPrimaryAttack() then
return
end
self:Shoot()
end)
end
end
end
function SWEP:Proficiency()
timer.Simple(0.5, function()
if !self:IsValid() or !self.Owner:IsValid() then return; end
local Proficiency = GetConVar( "NPC_Proficiency" )
if GetConVar( "new_acc_system" ):GetInt() == 1 then
if Proficiency:GetInt() == 0 then
self.Owner:SetCurrentWeaponProficiency(0)
end
if Proficiency:GetInt() == 1 then
self.Owner:SetCurrentWeaponProficiency(1)
end
if Proficiency:GetInt() == 2 then
self.Owner:SetCurrentWeaponProficiency(2)
end
if Proficiency:GetInt() == 3 then
self.Owner:SetCurrentWeaponProficiency(3)
end
if Proficiency:GetInt() == 4 then
self.Owner:SetCurrentWeaponProficiency(4)
end
else
self.Owner:SetCurrentWeaponProficiency(3)
end
end)
end
function SWEP:Shoot()
local owner = self.Owner
local enemy = owner:GetEnemy()
local enemycl = enemy:GetClass()
local targetPos = nil
if enemy:IsPlayer() or enemycl == "npc_combine_s" or enemycl == "npc_citizen" or enemycl == "npc_metropolice" then
if enemy:LookupBone("ValveBiped.Bip01_Head1") == nil then
targetPos = enemy:EyePos()
else
targetPos = enemy:GetBonePosition(enemy:LookupBone("ValveBiped.Bip01_Head1"))
end
elseif enemycl == "npc_fastzombie" or enemycl == "npc_poisonzombie" or enemycl == "npc_zombie_torso" or enemycl == "npc_fastzombie_torso" or enemycl == "npc_headcrab" or enemycl == "npc_headcrab_black" or enemycl == "npc_headcrab_fast" then
targetPos = enemy:WorldSpaceCenter()
else
targetPos = enemy:EyePos()
end
local muzzlePos = self.Weapon:GetAttachment(self.MuzzleAttachment).Pos
local direction = self.Owner:GetAimVector()
local spread = Vector( cone, cone, 0 )
local bulletInfo = {}
bulletInfo.Attacker = owner
bulletInfo.Damage = self.Damage
bulletInfo.Force = self.Force
bulletInfo.Num = self.Primary.NumShots
bulletInfo.Tracer = self.TracerX
bulletInfo.TracerName = self.Tracer
bulletInfo.AmmoType = self.Primary.Ammo
bulletInfo.Dir = direction
bulletInfo.Spread = spread
bulletInfo.Src = muzzlePos
owner:FireBullets(bulletInfo)
self:ShootEffects()
self:TakePrimaryAmmo(1)
end
function SWEP:ShootEffects()
local shootSound = Sound(self.Primary.Sound)
self.Weapon:EmitSound(shootSound, SNDLVL_GUNFIRE, 100, 1, CHAN_WEAPON)
local muzzleEffect = EffectData()
local muzzleAttach = self.Weapon:GetAttachment(self.MuzzleAttachment)
muzzleEffect:SetEntity(self.Weapon)
muzzleEffect:SetOrigin(muzzleAttach.Pos)
muzzleEffect:SetAngles(muzzleAttach.Ang)
muzzleEffect:SetScale(1)
muzzleEffect:SetMagnitude(1)
muzzleEffect:SetRadius(1)
util.Effect(self.MuzzleEffect, muzzleEffect)
local shellEffect = EffectData()
local shellAttach = self.Weapon:GetAttachment(self.ShellAttachment)
shellEffect:SetEntity(self.Weapon)
shellEffect:SetOrigin(shellAttach.Pos)
shellEffect:SetAngles(shellAttach.Ang)
shellEffect:SetScale(1)
shellEffect:SetMagnitude(1)
shellEffect:SetRadius(1)
util.Effect(self.ShellEffect, shellEffect)
self.Owner:MuzzleFlash()
end
function SWEP:AIReload()
if not IsValid(self) or not IsValid(self.Owner) then
return
end
local owner = self.Owner
if owner:IsNPC() and not owner:IsCurrentSchedule(SCHED_HIDE_AND_RELOAD) and not owner:IsCurrentSchedule(SCHED_RELOAD) and not owner:GetActivity() == ACT_RELOAD then
owner:SetSchedule(SCHED_RELOAD)
end
end
function SWEP:SecondaryAttack()
end
function SWEP:Think()
timer.Simple(engine.TickInterval() * 5, function()
if IsValid(self) then
self:Think()
end
end)
if not IsValid(self.Owner) then
self:Remove()
return
end
if IsValid(self.Owner) and IsValid(self.Owner:GetEnemy()) then
local owner = self.Owner
local enemy = owner:GetEnemy()
if self:CanPrimaryAttack() and owner:GetActivity() ~= ACT_RELOAD and enemy:Health() > 0 then
if enemy:Visible(owner) then
self:PrimaryAttack()
end
end
end
end
function SWEP:CanPrimaryAttack()
if self.Weapon:Clip1() <= 0 then
return false
end
return true
end
function SWEP:Deploy()
return true
end
function SWEP:Holster()
end
function SWEP:OnRemove()
end
function SWEP:OnRestore()
end
function SWEP:Precache()
end
function SWEP:OnDrop()
self:Remove()
end
function SWEP:DoImpactEffect( tr, dmgtype )
if( tr.HitSky ) then return true; end
util.Decal( "fadingscorch", tr.HitPos + tr.HitNormal, tr.HitPos - tr.HitNormal );
if( game.SinglePlayer() or SERVER or not self:IsCarriedByLocalPlayer() or IsFirstTimePredicted() ) then
local effect = EffectData();
effect:SetOrigin( tr.HitPos );
effect:SetNormal( tr.HitNormal );
util.Effect( "effect_sw_impact", effect );
local effect = EffectData();
effect:SetOrigin( tr.HitPos );
effect:SetStart( tr.StartPos );
effect:SetDamageType( dmgtype );
util.Effect( "RagdollImpact", effect );
end
return true;
end |
local dev = {}
dev.pretty = function (var)
print(dev.fmt(var))
end
dev.fmt = function (var, depth)
local t = type(var)
if t == "table" then
depth = depth or 1
local s = "{\n"
for k, v in pairs(var) do
-- print(k, type(k), v, type(v))
if type(k) ~= "number" then k = "\""..k.."\"" end
s = s
..string.rep(" ",depth*2)
.."["..k.."] = "
..dev.fmt(v, depth+1)
..",\n"
end
return s
..string.rep(" ",(depth-1)*2)
.."}"
elseif t == "function" then return tostring(var)
elseif t ~= "number" then return "\""..var.."\""
else return tostring(var)
end
end
return dev
-- @TODO spec
-- local mock = {}
-- table.insert(mock, "Fisrt")
-- table.insert(mock, "Second")
-- table.insert(mock, 52)
-- mock.key = "val"
-- mock.sub = {"sub-key", "sub-val"}
-- table.insert(mock, "tables are unordered")
-- @TODO test with function, userdata, etc.
-- print(debug.fmt(mock))
-- print(debug.fmt("a string"))
-- print(debug.fmt(4337)) |
/*
* @package : rlib
* @module : rclass
* @author : Richard [http://steamcommunity.com/profiles/76561198135875727]
* @copyright : (C) 2020 - 2020
* @since : 3.0.0
* @website : https://rlib.io
* @docs : https://docs.rlib.io
*
* MIT License
*
* 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.
*/
rclass = { }
local VERSION = "0.1.0"
local base
local assert = assert
local type = type
local rawget = rawget
local rawset = rawset
local gmt = getmetatable
local smt = setmetatable
local sf = string.format
local insert = table.insert
local rm = table.remove
local Utils = { }
/*
* utils :: extend
*
* Copy key/values from one table to another. will deep copy any
* value from first table which is itself a table.
*/
function Utils.extend( fromTable, toTable )
if not fromTable or not toTable then
error( "table can't be nil" )
end
function _extend( fT, tT )
for k,v in pairs( fT ) do
if type( fT[ k ] ) == "table" and
type( tT[ k ] ) == "table" then
tT[ k ] = _extend( fT[ k ], tT[ k ] )
elseif type( fT[ k ] ) == "table" then
tT[ k ] = _extend( fT[ k ], { } )
else
tT[ k ] = v
end
end
return tT
end
return _extend( fromTable, toTable )
end
/*
* registerCtorName
*/
local function registerCtorName( name, class )
class = class or base
assert( type( name ) == 'string', 'ctor name should be string' )
assert( class.is_class, 'Class is not is_class' )
class[ name ] = class.__ctor__
return class[ name ]
end
/*
* registerDtorName
*
* add names for the destructor
*/
local function registerDtorName( name, class )
class = class or base
--==--
assert( type( name ) == 'string', 'dtor name should be string' )
assert( class.is_class, 'Class is not is_class' )
class[ name ] = class.__dtor__
return class[ name ]
end
/*
* superCall
*
* function to intelligently find methods in object hierarchy
*/
local function superCall( self, ... )
local args = { ... }
local arg1 = args[ 1 ]
assert( type(arg1) == 'table' or type(arg1) == 'string', "superCall arg not table or string" )
local parent_lock, method, params
if type( arg1 ) == 'table' then
parent_lock = rm( args, 1 )
method = rm( args, 1 )
else
method = rm( args, 1 )
end
params = args
local self_dmc_super = self.__dmc_super
local super_flag = ( self_dmc_super ~= nil )
local result = nil
local function findMethod( classes, name, lock )
if not classes then return end -- when using mixins, etc
local cls = nil
for _, class in ipairs( classes ) do
if not lock or class == lock then
if rawget( class, name ) then
cls = class
break
else
-- check parents for method
cls = findMethod( class.__parents, name )
if cls then break end
end
end
end
return cls
end
local c, s -- class, super
if self_dmc_super == nil then
self.__dmc_super = { }
self_dmc_super = self.__dmc_super
s = findMethod( { self.__class }, method )
insert( self_dmc_super, s )
end
-- pull Class from stack and search for method on Supers
-- look for method on supers
-- call method if found
--
c = self_dmc_super[ # self_dmc_super ]
s = findMethod( c.__parents, method, parent_lock )
if s then
insert( self_dmc_super, s )
result = s[method]( self, unpack( args ) )
rm( self_dmc_super, # self_dmc_super )
end
-- this is the first iteration and last
-- so clean up callstack, etc
--
if super_flag == false then
parent_lock = nil
rm( self_dmc_super, # self_dmc_super )
self.__dmc_super = nil
end
return result
end
/*
* initializeObject
*
* this is the beginning of object initialization either Class or Instance
* this is what calls the parent constructors, eg new( )
* called from rClass( ), __create__( ), __call( )
*/
local function initializeObject( obj, params )
params = params or { }
assert( params.set_isClass ~= nil, "initializeObject requires paramter 'set_isClass'" )
local is_class = params.set_isClass
local args = params.data or { }
obj.__is_class = params.set_isClass
local parents = obj.__parents
for i = #parents, 1, -1 do
local parent = parents[i]
assert( parent, "Lua Objects: parent is nil, check parent list" )
rawset( obj, '__parent_lock', parent )
if parent.__new__ then
parent.__new__( obj, unpack( args ) )
end
end
rawset( obj, '__parent_lock', nil )
return obj
end
/*
* newindexFunc
*
* override the normal Lua lookup functionality to allow
* property setter functions
*/
local function newindexFunc( t, k, v )
local o, f
o = rawget( t, '__setters' ) or { }
f = o[ k ]
if f then
f( t, v )
else
rawset( t, k, v )
end
end
/*
* multiindexFunc
*
* override the normal Lua lookup functionality to allow
* property getter functions
*/
local function multiindexFunc( t, k )
local o, val
o = rawget( t, '__getters' ) or { }
if o[k] then return o[ k ]( t ) end
val = rawget( t, k )
if val ~= nil then return val end
o = rawget( t, '__parent_lock' )
if o then
if o then val = o[ k ] end
if val ~= nil then return val end
else
local par = rawget( t, '__parents' )
for _, o in ipairs( par ) do
if o[ k ] ~= nil then
val = o[ k ]
break
end
end
if val ~= nil then return val end
end
return nil
end
/*
* blessObject
*
* create new object, setup with Lua OO aspects, dmc-style aspects
*/
local function blessObject( inheritance, params )
params = params or { }
params.object = params.object or { }
params.set_isClass = params.set_isClass == true and true or false
local o = params.object
local o_id = tostring(o)
local mt =
{
__index = multiindexFunc,
__newindex = newindexFunc,
__tostring = function( obj )
return obj:__tostring__( o_id )
end,
__call = function( cls, ... )
return cls:__ctor__( ... )
end
}
smt( o, mt )
o.__parents = inheritance
o.__is_dmc = true
o.__setters = { }
o.__getters = { }
-- copy down all getters/setters of parents
-- do in reverse order, to match order of property lookup
for i = #inheritance, 1, -1 do
local cls = inheritance[i]
if cls.__getters then
o.__getters = Utils.extend( cls.__getters, o.__getters )
end
if cls.__setters then
o.__setters = Utils.extend( cls.__setters, o.__setters )
end
end
return o
end
/*
* unblessObject
*/
local function unblessObject( o )
smt( o, nil )
o.__parents = nil
o.__is_dmc = nil
o.__setters = nil
o.__getters = nil
end
/*
* rClass
*/
local function rClass( inheritance, params )
inheritance = inheritance or { }
params = params or { }
params.set_isClass = true
params.name = params.name or '<unnamed class>'
--==--
assert( type( inheritance ) == 'table', 'first parameter should be nil, class, or a set of classes' )
-- wrap single-class into table list
-- testing for DMC-Style objects
if inheritance.is_class == true then
inheritance = { inheritance }
elseif base and #inheritance == 0 then
insert( inheritance, base )
end
local o = blessObject( inheritance, { } )
initializeObject( o, params )
o.__class = o
o.__name = params.name
return o
end
/*
* inheritsFrom
*
* backwards compatibility
*/
local function inheritsFrom( baseClass, options, constructor )
baseClass = baseClass == nil and baseClass or { baseClass }
return rClass( baseClass, options )
end
/*
* base class
*/
base = rClass( nil, { name = 'Base Class' } )
/*
* ctor
*/
function base:__ctor__( ... )
local params =
{
data = { ... },
set_isClass = false
}
--==--
local o = blessObject( { self.__class }, params )
initializeObject( o, params )
return o
end
/*
* dtor
*/
function base:__dtor__( )
self:__destroy__( )
end
/*
* new
*/
function base:__new__( ... )
return self
end
/*
* tostring
*/
function base:__tostring__( id )
return sf( '%s (%s)', self.NAME, id ) -- '
end
/*
* destroy
*/
function base:__destroy__( ) end
/*
* getters :: name
*/
function base.__getters:NAME( )
return self.__name
end
/*
* setters :: class
*/
function base.__getters:class( )
return self.__class
end
/*
* getters :: supers
*/
function base.__getters:supers( )
return self.__parents
end
/*
* getters :: __is_class
*/
function base.__getters:is_class( )
return self.__is_class
end
/*
* getters :: is_instance
*/
function base.__getters:is_instance( )
return not self.__is_class
end
/*
* getters :: version
*/
function base.__getters:version( )
return self.__version
end
/*
* base :: isa
*/
function base:isa( the_class )
local isa = false
local cur_class = self.class
-- test self
if cur_class == the_class then
isa = true
-- test parents
else
local parents = self.__parents
for i = 1, #parents do
local parent = parents[i]
if parent.isa then
isa = parent:isa( the_class )
end
if isa == true then break end
end
end
return isa
end
/*
* base :: optimize
*
* move super class methods to object
*/
function base:optimize( )
function _optimize( obj, inheritance )
if not inheritance or #inheritance == 0 then return end
for i = #inheritance, 1, -1 do
local parent = inheritance[ i ]
-- climb up the hierarchy
_optimize( obj, parent.__parents )
-- make local references to all functions
for k, v in pairs( parent ) do
if type( v ) == 'function' then
obj[ k ] = v
end
end
end
end
_optimize( self, { self.__class } )
end
/*
* base :: deoptimize
*/
function base:deoptimize( )
for k, v in pairs( self ) do
if type( v ) == 'function' then
self[ k ] = nil
end
end
end
/*
* register
*/
registerCtorName ( 'new', base )
registerDtorName ( 'destroy', base )
base.superCall = superCall
/*
* Class_CreateGlobal
*
* modifies the global namespace with rClass( )
*/
local function Class_CreateGlobal( is_global )
is_global = is_global ~= nil and is_global or true
if _G.rClass ~= nil then
print( "WARNING: rClass exists in global namespace" )
elseif is_global == true then
_G.rClass = rClass
else
_G.rClass = nil
end
end
/*
* Class_CreateGlobal
*/
Class_CreateGlobal( )
/*
* return
*/
return
{
__version = VERSION,
__superCall = superCall, -- for testing
setNewClassGlobal = Class_CreateGlobal,
registerCtorName = registerCtorName,
registerDtorName = registerDtorName,
inheritsFrom = inheritsFrom, -- backwards compatibility
rClass = rClass,
Class = base
} |
local userId = KEYS[1]
local buyNum = tonumber(KEYS[2])
local skuId = KEYS[3]
local perSkuLim = tonumber(KEYS[4])
local actId = KEYS[5]
local perActLim = tonumber(KEYS[6])
local orderTime = KEYS[7]
--用到的各个hash
local user_sku_hash = 'sec_'..actId..'_u_sku_hash'
local user_act_hash = 'sec_'..actId..'_u_act_hash'
local sku_amount_hash = 'sec_'..actId..'_sku_amount_hash'
local second_log_hash = 'sec_'..actId..'_log_hash'
--当前sku是否还有库存
local skuAmountStr = redis.call('hget',sku_amount_hash,skuId)
if skuAmountStr == false then
--redis.log(redis.LOG_NOTICE,'skuAmountStr is nil ')
return '-3'
end;
local skuAmount = tonumber(skuAmountStr)
--redis.log(redis.LOG_NOTICE,'sku:'..skuId..';skuAmount:'..skuAmount)
if skuAmount <= 0 then
return '0'
end
redis.log(redis.LOG_NOTICE,'perActLim:'..perActLim)
local userActKey = userId..'_'..actId
--当前用户已购买此活动多少件
if perActLim > 0 then
local userActNumInt = 0
local userActNum = redis.call('hget',user_act_hash,userActKey)
if userActNum == false then
--redis.log(redis.LOG_NOTICE,'userActKey:'..userActKey..' is nil')
userActNumInt = buyNum
else
--redis.log(redis.LOG_NOTICE,userActKey..':userActNum:'..userActNum..';perActLim:'..perActLim)
local curUserActNumInt = tonumber(userActNum)
userActNumInt = curUserActNumInt+buyNum
end
if userActNumInt > perActLim then
return '-2'
end
end
local goodsUserKey = userId..'_'..skuId
--redis.log(redis.LOG_NOTICE,'perSkuLim:'..perSkuLim)
--当前用户已购买此sku多少件
if perSkuLim > 0 then
local goodsUserNum = redis.call('hget',user_sku_hash,goodsUserKey)
local goodsUserNumint = 0
if goodsUserNum == false then
--redis.log(redis.LOG_NOTICE,'goodsUserNum is nil')
goodsUserNumint = buyNum
else
--redis.log(redis.LOG_NOTICE,'goodsUserNum:'..goodsUserNum..';perSkuLim:'..perSkuLim)
local curSkuUserNumint = tonumber(goodsUserNum)
goodsUserNumint = curSkuUserNumint+buyNum
end
--redis.log(redis.LOG_NOTICE,'------goodsUserNumint:'..goodsUserNumint..';perSkuLim:'..perSkuLim)
if goodsUserNumint > perSkuLim then
return '-1'
end
end
--判断是否还有库存满足当前秒杀数量
if skuAmount >= buyNum then
local decrNum = 0-buyNum
redis.call('hincrby',sku_amount_hash,skuId,decrNum)
--redis.log(redis.LOG_NOTICE,'second success:'..skuId..'-'..buyNum)
if perSkuLim > 0 then
redis.call('hincrby',user_sku_hash,goodsUserKey,buyNum)
end
if perActLim > 0 then
redis.call('hincrby',user_act_hash,userActKey,buyNum)
end
local orderKey = userId..'_'..skuId..'_'..buyNum..'_'..orderTime
local orderStr = '1'
redis.call('hset',second_log_hash,orderKey,orderStr)
return orderKey
else
return '0'
end
|
require('mobdebug').on()
--//////////////////////////////////////////////////////////////////////
--************************
--Floor
--************************
local FloorConsts = require('field.FloorConsts')
Floor = {}
Floor.__index = Floor
function Floor.new(dungeonId, floorNo, width, height, fillTile, name)
local self = setmetatable({}, Floor)
self.dungeonId = dungeonId
self.floorNo = floorNo
self.width = width
self.height = height
self.name = name or 'Floor'
self.entities = {}
self.tilesEntities = {}
self.player = nil
self.tileCollisions = {}
self.tileSets = {}
self.interactableEntity = nil
for i = 1, width * height do table.insert(self.tileCollisions, 0) end
for i = 1, width * height do table.insert(self.tileSets, fillTile) end
return self
end
function Floor:onInput(input)
if self.player ~= nil then
if input.up or input.right or input.down or input.left then
self:onPlayerMove(input)
elseif input.ok then
if (self.interactableEntity ~= nil) then
data.entities[self.interactableEntity.id].onInteract(self.interactableEntity, self.player)
end
elseif input.cancel then
end
end
end
function Floor:update(dt)
--check interactable entities
local entityPos = self:toXY(self.player.tileId)
if self.player.facing == FloorConsts.facing.up then entityPos.y = entityPos.y - 1 end
if self.player.facing == FloorConsts.facing.right then entityPos.x = entityPos.x + 1 end
if self.player.facing == FloorConsts.facing.down then entityPos.y = entityPos.y + 1 end
if self.player.facing == FloorConsts.facing.left then entityPos.x = entityPos.x - 1 end
local tileEntityIndex = self:to1D(entityPos.x, entityPos.y)
if self.tilesEntities[tileEntityIndex] ~= nil then
-- print ('you can interact with ' .. self.tilesEntities[tileEntityIndex].name)
self.interactableEntity = self.tilesEntities[tileEntityIndex]
else
self.interactableEntity = nil
end
end
function Floor:render()
self:renderTiles()
self:renderEntities()
if (self.interactableEntity ~= nil) then
engine.renderTextLine('you can interact with ' .. self.interactableEntity.name, 0, 0);
end
end
function Floor:onPlayerMove(input)
local playerPos = self:toXY(self.player.tileId)
if input.up then
playerPos.y = playerPos.y - 1
self.player.facing = FloorConsts.facing.up
elseif input.right then
playerPos.x = playerPos.x + 1
self.player.facing = FloorConsts.facing.right
elseif input.down then
playerPos.y = playerPos.y + 1
self.player.facing = FloorConsts.facing.down
elseif input.left then
playerPos.x = playerPos.x - 1
self.player.facing = FloorConsts.facing.left
end
--collisions checking
if self:checkIfTileIsWalkable(self:to1D(playerPos.x, playerPos.y)) then
self:moveEntity(self.player, self:to1D(playerPos.x, playerPos.y))
end
end
function Floor:renderEntities()
local cameraOffsetX = 0
local cameraOffsetY = 0
if self.player ~= nil then
local playerPos = self:toXY(self.player.tileId)
cameraOffsetX = (-16 * playerPos.x) + (16*7)
cameraOffsetY = (-16 * playerPos.y) + (16*4)
end
for i, entity in ipairs(self.entities) do
local entityPos = self:toXY(entity.tileId)
engine.renderSpriteSheet(
engine.getEntitySpriteId(entity.id),
entityPos.x * 16 + cameraOffsetX,
entityPos.y * 16 + cameraOffsetY,
entity.facing
)
end
end
function Floor:renderTiles()
local cameraOffsetX = 0
local cameraOffsetY = 0
if self.player ~= nil then
local playerPos = self:toXY(self.player.tileId)
cameraOffsetX = (-16 * playerPos.x) + (16*7)
cameraOffsetY = (-16 * playerPos.y) + (16*4)
end
local renderedTiles = 0
local playerXY = self:toXY(self.player.tileId)
local render_start_y = math.max(playerXY.y - 4, 0)
local render_start_x = math.max(playerXY.x - 7, 0)
local render_end_y = math.min(render_start_y + 8, self.height -1)
local render_end_x = math.min(render_start_x + 15, self.width -1)
for y = render_start_y, render_end_y do
for x = render_start_x, render_end_x do
local tileId = self:to1D(x, y)
local tileResId = self.tileSets[tileId + 1]
if tileResId ~= nil then
engine.renderTile(tileResId, x * 16 + cameraOffsetX, y * 16 + cameraOffsetY)
end
renderedTiles = renderedTiles + 1
end
end
--print('[INFO] rendered ' .. renderedTiles .. ' tiles')
end
function Floor:addEntity(entity, tileId)
entity.floor = self
table.insert(self.entities, entity)
entity.tileId = tileId
self.tilesEntities[tileId] = entity
end
function Floor:removeEntity(entity)
local entityTileId = entity.tileId
local entityIndex = nil
for i, e in ipairs(self.entities) do
if (e == entity) then entityIndex = i end
end
if (entityIndex ~= nil) then
table.remove(self.entities, entityIndex)
end
self.tilesEntities[entityTileId] = nil
end
function Floor:moveEntity(entity, tileId)
--remove entity from old tile
self.tilesEntities[entity.tileId] = nil
--add entity to new tile
entity.tileId = tileId
self.tilesEntities[tileId] = entity
local xy = self:toXY(entity.tileId)
print(entity.name .. ' moves to ' .. entity.tileId .. ' - x:' .. xy.x .. ' y:' .. xy.y)
end
function Floor:setPlayerEntity(entity)
self.player = entity
end
function Floor:toXY(tileId)
local x = math.floor(tileId % self.width)
local y = math.floor( (tileId / self.width) % self.height )
return {x = x, y = y}
end
function Floor:to1D(x, y)
return math.floor(x + self.width * y)
end
function Floor:checkIfTileIsWalkable(tileId)
local tileIndex = tileId + 1
local tileEntityIndex = tileId
if self.tileCollisions[tileIndex] == 1 and self.tilesEntities[tileEntityIndex] == nil then
return true
end
return false
end
function Floor:setTile(x, y, tileSprite, collision)
local index = self:to1D(x, y)
self.tileCollisions[index+1] = collision
self.tileSets[index+1] = tileSprite
end
function Floor:addRoom(x, y, w, h, tilePass, tileCollision)
for j = y, y + h do
for i = x, x + w do
if j == y then self:setTile(i, j, tileCollision, 0)
elseif j == (y + h) then self:setTile(i, j, tileCollision, 0)
elseif i == x then self:setTile(i, j, tileCollision, 0)
elseif i == x + w then self:setTile(i, j, tileCollision, 0)
else self:setTile(i, j, tilePass, 1)
end
--
end
end
end
return Floor
|
local Modules = script.Parent.Parent.Parent.Parent
local Roact = require(Modules.Roact)
local StudioThemeAccessor = require(Modules.Plugin.Components.StudioThemeAccessor)
local TextBox = Roact.PureComponent:extend("ColorPicker.TextBox")
function TextBox:init()
self.state = {
hover = false,
press = false,
isValid = true,
}
end
function TextBox:render()
local props = self.props
local inset = props.Inset or 36
return StudioThemeAccessor.withTheme(function(theme)
local borderColor
if not self.state.isValid then
borderColor = Color3.fromRGB(255, 0, 0)
else
local searchBarState = "Default"
if self.state.focus then
searchBarState = "Selected"
elseif self.state.hover then
searchBarState = "Hover"
end
borderColor = theme:GetColor("InputFieldBorder", searchBarState)
end
return Roact.createElement("Frame", {
Size = props.Size,
Position = props.Position,
BackgroundTransparency = 1.0,
LayoutOrder = props.LayoutOrder,
}, {
Label = props.Label and Roact.createElement("TextLabel", {
Text = props.Label,
Size = UDim2.new(0, inset, 0, 20),
TextXAlignment = Enum.TextXAlignment.Left,
TextSize = 20,
Font = Enum.Font.SourceSans,
TextColor3 = theme:GetColor("MainText"),
BackgroundTransparency = 1.0,
}) or nil,
Input = Roact.createElement("Frame", {
Size = UDim2.new(1, -inset, 1, 0),
Position = UDim2.new(0, inset, 0, 0),
BackgroundColor3 = theme:GetColor("InputFieldBackground"),
BorderColor3 = borderColor,
[Roact.Event.MouseEnter] = function(rbx)
self:setState({
hover = true,
})
end,
[Roact.Event.MouseLeave] = function(rbx)
self:setState({
hover = false,
})
end,
}, {
TextBox = Roact.createElement("TextBox", {
Text = "",
PlaceholderText = props.Text,
PlaceholderColor3 = theme:GetColor("DimmedText"),
Font = Enum.Font.SourceSans,
TextSize = 20,
TextColor3 = theme:GetColor("MainText"),
Size = UDim2.new(1, -16, 1, 0),
AnchorPoint = Vector2.new(0.5, 0.5),
Position = UDim2.new(0.5, 0, 0.5, 0),
BackgroundTransparency = 1.0,
TextXAlignment = Enum.TextXAlignment.Left,
[Roact.Change.Text] = function(rbx)
local isValid = true
if rbx.Text ~= "" then
isValid = self.props.Validate(rbx.Text)
end
if isValid ~= self.state.isValid then
self:setState({
isValid = isValid,
})
end
end,
[Roact.Event.Focused] = function(rbx)
self:setState({
focus = true,
})
end,
[Roact.Event.FocusLost] = function(rbx, enterPressed)
self:setState({
focus = false,
})
if enterPressed then
if props.Validate(rbx.Text) then
self.props.TextChanged(rbx.Text)
end
end
end,
}),
}),
})
end)
end
return TextBox
|
local events = require "util.events";
describe("util.events", function ()
it("should export a new() function", function ()
assert.is_function(events.new);
end);
describe("new()", function ()
it("should return return a new events object", function ()
local e = events.new();
assert.is_function(e.add_handler);
assert.is_function(e.remove_handler);
end);
end);
local e, h;
describe("API", function ()
before_each(function ()
e = events.new();
h = spy.new(function () end);
end);
it("should call handlers when an event is fired", function ()
e.add_handler("myevent", h);
e.fire_event("myevent");
assert.spy(h).was_called();
end);
it("should not call handlers when a different event is fired", function ()
e.add_handler("myevent", h);
e.fire_event("notmyevent");
assert.spy(h).was_not_called();
end);
it("should pass the data argument to handlers", function ()
e.add_handler("myevent", h);
e.fire_event("myevent", "mydata");
assert.spy(h).was_called_with("mydata");
end);
it("should support non-string events", function ()
local myevent = {};
e.add_handler(myevent, h);
e.fire_event(myevent, "mydata");
assert.spy(h).was_called_with("mydata");
end);
it("should call handlers in priority order", function ()
local data = {};
e.add_handler("myevent", function () table.insert(data, "h1"); end, 5);
e.add_handler("myevent", function () table.insert(data, "h2"); end, 3);
e.add_handler("myevent", function () table.insert(data, "h3"); end);
e.fire_event("myevent", "mydata");
assert.same(data, { "h1", "h2", "h3" });
end);
it("should support non-integer priority values", function ()
local data = {};
e.add_handler("myevent", function () table.insert(data, "h1"); end, 1);
e.add_handler("myevent", function () table.insert(data, "h2"); end, 0.5);
e.add_handler("myevent", function () table.insert(data, "h3"); end, 0.25);
e.fire_event("myevent", "mydata");
assert.same(data, { "h1", "h2", "h3" });
end);
it("should support negative priority values", function ()
local data = {};
e.add_handler("myevent", function () table.insert(data, "h1"); end, 1);
e.add_handler("myevent", function () table.insert(data, "h2"); end, 0);
e.add_handler("myevent", function () table.insert(data, "h3"); end, -1);
e.fire_event("myevent", "mydata");
assert.same(data, { "h1", "h2", "h3" });
end);
it("should support removing handlers", function ()
e.add_handler("myevent", h);
e.fire_event("myevent");
e.remove_handler("myevent", h);
e.fire_event("myevent");
assert.spy(h).was_called(1);
end);
it("should support adding multiple handlers at the same time", function ()
local ht = {
myevent1 = spy.new(function () end);
myevent2 = spy.new(function () end);
myevent3 = spy.new(function () end);
};
e.add_handlers(ht);
e.fire_event("myevent1");
e.fire_event("myevent2");
assert.spy(ht.myevent1).was_called();
assert.spy(ht.myevent2).was_called();
assert.spy(ht.myevent3).was_not_called();
end);
it("should support removing multiple handlers at the same time", function ()
local ht = {
myevent1 = spy.new(function () end);
myevent2 = spy.new(function () end);
myevent3 = spy.new(function () end);
};
e.add_handlers(ht);
e.remove_handlers(ht);
e.fire_event("myevent1");
e.fire_event("myevent2");
assert.spy(ht.myevent1).was_not_called();
assert.spy(ht.myevent2).was_not_called();
assert.spy(ht.myevent3).was_not_called();
end);
pending("should support adding handlers within an event handler")
pending("should support removing handlers within an event handler")
it("should support getting the current handlers for an event", function ()
e.add_handler("myevent", h);
local handlers = e.get_handlers("myevent");
assert.equal(h, handlers[1]);
end);
describe("wrappers", function ()
local w
before_each(function ()
w = spy.new(function (handlers, event_name, event_data)
assert.is_function(handlers);
assert.equal("myevent", event_name)
assert.equal("abc", event_data);
return handlers(event_name, event_data);
end);
end);
it("should get called", function ()
e.add_wrapper("myevent", w);
e.add_handler("myevent", h);
e.fire_event("myevent", "abc");
assert.spy(w).was_called(1);
assert.spy(h).was_called(1);
end);
it("should be removable", function ()
e.add_wrapper("myevent", w);
e.add_handler("myevent", h);
e.fire_event("myevent", "abc");
e.remove_wrapper("myevent", w);
e.fire_event("myevent", "abc");
assert.spy(w).was_called(1);
assert.spy(h).was_called(2);
end);
it("should allow multiple wrappers", function ()
local w2 = spy.new(function (handlers, event_name, event_data)
return handlers(event_name, event_data);
end);
e.add_wrapper("myevent", w);
e.add_handler("myevent", h);
e.add_wrapper("myevent", w2);
e.fire_event("myevent", "abc");
e.remove_wrapper("myevent", w);
e.fire_event("myevent", "abc");
assert.spy(w).was_called(1);
assert.spy(w2).was_called(2);
assert.spy(h).was_called(2);
end);
it("should support a mix of global and event wrappers", function ()
local w2 = spy.new(function (handlers, event_name, event_data)
return handlers(event_name, event_data);
end);
e.add_wrapper(false, w);
e.add_handler("myevent", h);
e.add_wrapper("myevent", w2);
e.fire_event("myevent", "abc");
e.remove_wrapper(false, w);
e.fire_event("myevent", "abc");
assert.spy(w).was_called(1);
assert.spy(w2).was_called(2);
assert.spy(h).was_called(2);
end);
end);
describe("global wrappers", function ()
local w
before_each(function ()
w = spy.new(function (handlers, event_name, event_data)
assert.is_function(handlers);
assert.equal("myevent", event_name)
assert.equal("abc", event_data);
return handlers(event_name, event_data);
end);
end);
it("should get called", function ()
e.add_wrapper(false, w);
e.add_handler("myevent", h);
e.fire_event("myevent", "abc");
assert.spy(w).was_called(1);
assert.spy(h).was_called(1);
end);
it("should be removable", function ()
e.add_wrapper(false, w);
e.add_handler("myevent", h);
e.fire_event("myevent", "abc");
e.remove_wrapper(false, w);
e.fire_event("myevent", "abc");
assert.spy(w).was_called(1);
assert.spy(h).was_called(2);
end);
end);
describe("debug hooks", function ()
it("should get called", function ()
local d = spy.new(function (handler, event_name, event_data) --luacheck: ignore 212/event_name
return handler(event_data);
end);
e.add_handler("myevent", h);
e.fire_event("myevent");
assert.spy(h).was_called(1);
assert.spy(d).was_called(0);
assert.is_nil(e.set_debug_hook(d));
e.fire_event("myevent", { mydata = true });
assert.spy(h).was_called(2);
assert.spy(d).was_called(1);
assert.spy(d).was_called_with(h, "myevent", { mydata = true });
assert.equal(d, e.set_debug_hook(nil));
e.fire_event("myevent", { mydata = false });
assert.spy(h).was_called(3);
assert.spy(d).was_called(1);
end);
it("setting should return any existing debug hook", function ()
local function f() end
local function g() end
assert.is_nil(e.set_debug_hook(f));
assert.is_equal(f, e.set_debug_hook(g));
assert.is_equal(g, e.set_debug_hook(f));
assert.is_equal(f, e.set_debug_hook(nil));
assert.is_nil(e.set_debug_hook(f));
end);
end);
end);
end);
|
--------------------------------
-- @module Grid3D
-- @extend GridBase
-- @parent_module cc
---@class cc.Grid3D:cc.GridBase
local Grid3D = {}
cc.Grid3D = Grid3D
--------------------------------
---
---@return boolean
function Grid3D:getNeedDepthTestForBlit()
end
--------------------------------
--- @{
--- Getter and Setter for depth test state when blit.
--- js NA
---@param neededDepthTest boolean
---@return cc.Grid3D
function Grid3D:setNeedDepthTestForBlit(neededDepthTest)
end
--------------------------------
--- create one Grid.
---@param gridSize size_table
---@param texture cc.Texture2D
---@param flipped boolean
---@param rect rect_table
---@return cc.Grid3D
---@overload fun(self:cc.Grid3D, gridSize:size_table, rect:rect_table):cc.Grid3D
---@overload fun(self:cc.Grid3D, gridSize:size_table):cc.Grid3D
---@overload fun(self:cc.Grid3D, gridSize:size_table, texture:cc.Texture2D, flipped:boolean):cc.Grid3D
function Grid3D:create(gridSize, texture, flipped, rect)
end
--------------------------------
---
---@return cc.Grid3D
function Grid3D:calculateVertexPoints()
end
--------------------------------
--- @{
--- Implementations for interfaces in base class.
---@return cc.Grid3D
function Grid3D:beforeBlit()
end
--------------------------------
---
---@return cc.Grid3D
function Grid3D:afterBlit()
end
--------------------------------
---
---@return cc.Grid3D
function Grid3D:reuse()
end
--------------------------------
---
---@return cc.Grid3D
function Grid3D:blit()
end
--------------------------------
--- Constructor.
--- js ctor
---@return cc.Grid3D
function Grid3D:Grid3D()
end
return nil
|
local lib_warehouse = require("__nco-LongWarehouses__/lib/lib_warehouse")
local data_util = require("__nco-LongWarehouses__/lib/data_util")
-------------------------------------------------------------------------------------
-- On Blueprint Item Replace to Reset Item to Item-Proxy
-------------------------------------------------------------------------------------
local function on_blueprint(event)
--log("on_blueprint")
local player = game.players[event.player_index]
local bp = player.blueprint_to_setup
if not bp or not bp.valid_for_read then
bp = player.cursor_stack
end
if not bp or not bp.valid_for_read then
return
end
local entities = bp.get_blueprint_entities()
if not entities then
return
end
for _, e in ipairs(entities) do
local whType = lib_warehouse.checkEntityName(e.name)
if data_util.has_value({"horizontal","vertical"}, whType) then
--log("save inventory filters, requests for h/v. A proxy copied from a ghost should have inherited the tags")
local searchResult = player.surface.find_entities_filtered({force = e.force, name = e.name, position = e.position, radius = 0.001})
--log(#searchResult)
for _, ent in pairs(searchResult) do
local inventory = ent.get_inventory(defines.inventory.chest)
local request_slots = ""
local filter_slot = ""
for slotIndex = 1,ent.request_slot_count,1 do
local slot = ent.get_request_slot(slotIndex)
if slot then
request_slots = ((request_slots == "" and request_slots) or (request_slots..";"))..tostring(slotIndex)..":"..slot.name..":"..tostring(slot.count)
end
end
if ent.filter_slot_count and ent.filter_slot_count > 0 and ent.storage_filter then
filter_slot = ent.storage_filter.type..":"..ent.storage_filter.name
end
e.tags = {
request_slots = (request_slots ~= "" and request_slots or nil),
storage_filter = (filter_slot ~= "" and filter_slot or nil),
bar = (inventory.get_bar() <= #inventory and inventory.get_bar() or nil),
}
--log("set blueprint entity tags for "..ent.name.." to:"..serpent.block(e.tags, {comment = false, numformat = '%1.8g', compact = true } ))
end
--log("change to proxy")
if whType == "horizontal" then
e.name = e.name:gsub("-h", "-proxy")
elseif whType == "vertical" then
e.name = e.name:gsub("-v", "-proxy")
e.direction = defines.direction.west
end
end
end
bp.set_blueprint_entities(entities)
end
-------------------------------------------------------------------------------------
local es = defines.events
script.on_event(es.on_player_setup_blueprint, on_blueprint) |
local utils = require'nvim-tree.utils'
local M = {}
local roots = {}
---A map from git roots to a list of ignored paths
local gitignore_map = {}
local not_git = 'not a git repo'
local is_win = vim.api.nvim_call_function("has", {"win32"}) == 1
local function update_root_status(root)
local e_root = vim.fn.shellescape(root)
local untracked = ' -u'
local cmd = "git -C " .. e_root .. " config --type=bool status.showUntrackedFiles"
if vim.trim(vim.fn.system(cmd)) == 'false' then
untracked = ''
end
cmd = "git -C " .. e_root .. " status --porcelain=v1 --ignored=matching" .. untracked
local status = vim.fn.systemlist(cmd)
roots[root] = {}
gitignore_map[root] = {}
for _, v in pairs(status) do
local head = v:sub(0, 2)
local body = v:sub(4, -1)
if body:match('%->') ~= nil then
body = body:gsub('^.* %-> ', '')
end
--- Git returns paths with a forward slash wherever you run it, thats why i have to replace it only on windows
if is_win then
body = body:gsub("/", "\\")
end
roots[root][body] = head
if head == "!!" then
gitignore_map[root][utils.path_remove_trailing(utils.path_join({root, body}))] = true
end
end
end
function M.reload_roots()
for root, status in pairs(roots) do
if status ~= not_git then
update_root_status(root)
end
end
end
local function get_git_root(path)
if roots[path] then
return path, roots[path]
end
for name, status in pairs(roots) do
if status ~= not_git then
if path:match(utils.path_to_matching_str(name)) then
return name, status
end
end
end
end
local function create_root(cwd)
local cmd = "git -C " .. vim.fn.shellescape(cwd) .. " rev-parse --show-toplevel"
local git_root = vim.fn.system(cmd)
if not git_root or #git_root == 0 or git_root:match('fatal') then
roots[cwd] = not_git
return false
end
if is_win then
git_root = git_root:gsub("/", "\\")
end
update_root_status(git_root:sub(0, -2))
return true
end
---Get the root of the git dir containing the given path or `nil` if it's not a
---git dir.
---@param path string
---@return string|nil
function M.git_root(path)
local git_root, git_status = get_git_root(path)
if not git_root then
if not create_root(path) then
return
end
git_root, git_status = get_git_root(path)
end
if git_status == not_git then
return
end
return git_root
end
function M.update_status(entries, cwd, parent_node, with_redraw)
local git_root, git_status = get_git_root(cwd)
if not git_root then
if not create_root(cwd) then
return
end
git_root, git_status = get_git_root(cwd)
elseif git_status == not_git then
return
end
if not git_root then
return
end
if not parent_node then parent_node = {} end
local matching_cwd = utils.path_to_matching_str( utils.path_add_trailing(git_root) )
for _, node in pairs(entries) do
if parent_node.git_status == "!!" then
node.git_status = "!!"
else
local relpath = node.absolute_path:gsub(matching_cwd, '')
if node.entries ~= nil then
relpath = utils.path_add_trailing(relpath)
node.git_status = nil
end
local status = git_status[relpath]
if status then
node.git_status = status
elseif node.entries ~= nil then
local matcher = '^'..utils.path_to_matching_str(relpath)
for key, entry_status in pairs(git_status) do
if entry_status ~= "!!" and key:match(matcher) then
node.git_status = entry_status
break
end
end
else
node.git_status = nil
end
end
end
if with_redraw then
require'nvim-tree.lib'.redraw()
end
end
---Check if the given path is ignored by git.
---@param path string Absolute path
---@return boolean
function M.should_gitignore(path)
for _, paths in pairs(gitignore_map) do
if paths[path] == true then
return true
end
end
return false
end
return M
|
local UP_FLOORS = {1386, 3678, 5543, 8599, 10035, 13010}
local FIELDS = {1497, 1499, 11095, 11096}
local DRAW_WELL = 1369
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(item.itemid == DRAW_WELL and item.actionid ~= 100) then
return false
end
local check = false
fromPosition.stackpos = STACKPOS_GROUND
if(isInArray(UP_FLOORS, item.itemid)) then
fromPosition.z = fromPosition.z - 1
fromPosition.y = fromPosition.y + 1
if(doTileQueryAdd(cid, fromPosition, 38) ~= RETURNVALUE_NOERROR) then
local field = getTileItemByType(fromPosition, ITEM_TYPE_MAGICFIELD)
if(field.uid == 0 or not isInArray(FIELDS, field.itemid)) then
fromPosition.y = fromPosition.y - 2
else
check = true
end
end
else
fromPosition.z = fromPosition.z + 1
end
if(not check and doTileQueryAdd(cid, fromPosition, 38) ~= RETURNVALUE_NOERROR) then
local field = getTileItemByType(fromPosition, ITEM_TYPE_MAGICFIELD)
if(field.uid == 0 or not isInArray(FIELDS, field.itemid)) then
return false
end
end
local pos, dir = getCreaturePosition(cid), SOUTH
if(pos.x < fromPosition.x) then
dir = EAST
elseif(pos.x == fromPosition.x) then
if(pos.y == fromPosition.y) then
dir = getCreatureLookDirection(cid)
elseif(pos.y > fromPosition.y) then
dir = NORTH
end
elseif(pos.x > fromPosition.x) then
dir = WEST
end
doTeleportThing(cid, fromPosition, false)
doCreatureSetLookDirection(cid, dir)
return true
end
|
local pollution_axov_rnd_drops={item="default:cobble",amo=math.random(3)}
local pollution_axov_ano_texture=nil
local function pollution_rnddrops(its)
if math.random(5)==1 then pollution_axov_rnd_drops={item=its,amo=math.random(25)}end
if math.random(20)==1 then pollution_axov_rnd_drops={item="pollution:bottle",amo=4} end
if math.random(30)==1 then pollution_axov_rnd_drops={item="pollution:bottlepur",amo=2} end
end
minetest.register_abm({
nodenames = {"pollution:ice","pollution:dirt","pollution:crystal_soil","pollution:acid_fire","pollution:n_fire"},
interval = 120,
chance = 10,
action = function(pos)
local name=minetest.get_node(pos).name
pos={x=pos.x,y=pos.y+1,z=pos.z}
if minetest.get_node(pos).name=="air" then
if name=="pollution:ice" and math.random(50)==1 then minetest.env:add_entity(pos, "pollution:axov_ice") end
if name=="pollution:crystal_soil" and math.random(50)==1 then minetest.env:add_entity(pos, "pollution:axov_crystal") end
if name=="pollution:dirt" and math.random(50)==1 then minetest.env:add_entity(pos, "pollution:axov") end
if name=="pollution:acid_fire" and math.random(30)==1 then minetest.env:add_entity(pos, "pollution:axovy") end
if name=="pollution:n_fire" and math.random(30)==1 then minetest.env:add_entity(pos, "pollution:axovu") end
end
end,
})
minetest.register_tool("pollution:axovrifle", {
description = "axov rifle",
range = 15,
inventory_image = "pollution_trifle.png^pollution_dirt.png^pollution_dirt.png^pollution_dirt.png",
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type=="node" then
if pollution_mobs_max(0,1) then
local p=pointed_thing.above
p={x=p.x,y=p.y+0.5,z=p.z}
minetest.env:add_entity(p, "pollution:axov")
else
minetest.chat_send_player(user:get_player_name(), "Too many pollution axov mobs: (max " .. pollution_mobs_axov_max_number .. ")")
end
end
return itemstack
end,
})
minetest.register_tool("pollution:axovicerifle", {
description = "axov ice rifle",
range = 15,
inventory_image = "pollution_nrifle.png^pollution_blue2.png",
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type=="node" then
if pollution_mobs_max(0,1) then
local p=pointed_thing.above
p={x=p.x,y=p.y+0.5,z=p.z}
minetest.env:add_entity(p, "pollution:axov_ice")
else
minetest.chat_send_player(user:get_player_name(), "Too many pollution axov mobs: (max " .. pollution_mobs_axov_max_number .. ")")
end
end
return itemstack
end,
})
minetest.register_tool("pollution:axocrystalvrifle", {
description = "axov crystal rifle",
range = 15,
inventory_image = "pollution_trifle.png^pollution_lila2.png",
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type=="node" then
if pollution_mobs_max(0,1) then
local p=pointed_thing.above
p={x=p.x,y=p.y+0.5,z=p.z}
minetest.env:add_entity(p, "pollution:axov_crystal")
else
minetest.chat_send_player(user:get_player_name(), "Too many pollution axov mobs: (max " .. pollution_mobs_axov_max_number .. ")")
end
end
return itemstack
end,
})
minetest.register_tool("pollution:axovyrifle", {
description = "axovy rifle",
range = 15,
inventory_image = "pollution_trifle.png^pollution_lime.png",
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type=="node" then
if pollution_mobs_max(0,1) then
local p=pointed_thing.above
p={x=p.x,y=p.y+0.5,z=p.z}
minetest.env:add_entity(p, "pollution:axovy")
else
minetest.chat_send_player(user:get_player_name(), "Too many pollution axov mobs: (max " .. pollution_mobs_axov_max_number .. ")")
end
end
return itemstack
end,
})
minetest.register_tool("pollution:axovurifle", {
description = "axovu rifle",
range = 15,
inventory_image = "pollution_trifle.png^[colorize:#aaff00aa",
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type=="node" then
if pollution_mobs_max(0,1) then
local p=pointed_thing.above
p={x=p.x,y=p.y+0.5,z=p.z}
minetest.env:add_entity(p, "pollution:axovu")
else
minetest.chat_send_player(user:get_player_name(), "Too many pollution axov mobs: (max " .. pollution_mobs_axov_max_number .. ")")
end
end
return itemstack
end,
})
local function pollution_distance(self,o)
if o==nil or o.x==nil then return nil end
local p=self.object:getpos()
return math.sqrt((p.x-o.x)*(p.x-o.x) + (p.y-o.y)*(p.y-o.y)+(p.z-o.z)*(p.z-o.z))
end
function pollution_visiable(pos,ob,kalium)
if ob==nil or ob:getpos()==nil or ob:getpos().y==nil then return false end
local ta=ob:getpos()
if (not kalium) or ob.team=="barrel" then ta.y=ta.y+1 end
local v = {x = pos.x - ta.x, y = pos.y - ta.y+1, z = pos.z - ta.z}
v.y=v.y-1
local amount = (v.x ^ 2 + v.y ^ 2 + v.z ^ 2) ^ 0.5
local d=math.sqrt((pos.x-ta.x)*(pos.x-ta.x) + (pos.y-ta.y)*(pos.y-ta.y)+(pos.z-ta.z)*(pos.z-ta.z))
v.x = (v.x / amount)*-1
v.y = (v.y / amount)*-1
v.z = (v.z / amount)*-1
for i=1,d,1 do
local node=minetest.registered_nodes[minetest.get_node({x=pos.x+(v.x*i),y=pos.y+(v.y*i),z=pos.z+(v.z*i)}).name]
if node.walkable and node.sunlight_propagates==false then
return false
end
end
return true
end
local function pollution_axov_rndwalk(self)
if self.attack==1 then return self end
local pos=self.object:getpos()
self.move.x=math.random(3)-self.move.speed
self.move.z=math.random(3)-self.move.speed
self.object:setvelocity({x = self.move.x, y = self.move.y, z =self.move.z})
if self.move.x+self.move.x==0 then
setanim(self,"stand")
else
setanim(self,"walk")
end
return self
end
local function pollution_axov_walk(self)
local pos=self.object:getpos()
local yaw=self.object:getyaw()
if yaw ~= yaw then
self.status_curr="rnd"
return true
end
local x =math.sin(yaw) * -1
local z =math.cos(yaw) * 1
self.move.x=x
self.move.z=z
self.object:setvelocity({
x = x*(self.move.speed+1),
y = self.object:getvelocity().y,
z = z*(self.move.speed+1)})
setanim(self,"walk")
return self
end
local function pollution_axov_lookat(self)
local folow
local pos=self.object:getpos()
if self.status_curr=="rnd" then folow={x=pos.x+self.move.x,y=pos.y,z=pos.z+self.move.z} end
if self.status_curr=="attack" then folow=self.status_target1:getpos() end
if self.status_curr=="goto" then folow=self.status_target2 end
if folow==nil or folow.x==nil then
self.status_curr="rnd"
return false
end
local vec = {x=pos.x-folow.x, y=pos.y-folow.y, z=pos.z-folow.z}
local yaw = math.atan(vec.z/vec.x)-math.pi/2
if pos.x > folow.x then yaw = yaw+math.pi end
self.object:setyaw(yaw)
if self.status_curr~="" then pollution_axov_walk(self) end
return self
end
local function pollution_axov_pickup(self,ob,remove)
-- dig a node
if remove and remove==2 then
local name=minetest.get_node(ob).name
if minetest.is_protected(ob,"") or self.toxic==0 then
return false
else
minetest.set_node(ob, {name="air"})
if name=="air" then return true end
if minetest.get_node_group(name, "unbreakable")>0 or minetest.get_node(ob).drop=="" or name=="default:chest_locked" then return false end
if self.inv.empty then self.inv={} end
minetest.sound_play("default_dug_node",{pos = ob, max_hear_distance = 16, gain = 1})
pollution_rnddrops(name)
for i, it in pairs(self.inv) do
if it.item==name and it.amo<99 then
it.amo=it.amo+1
return true
end
end
table.insert(self.inv,{item=name,amo=1})
return true
end
end
-- pickup item
if ob:get_luaentity() and ob:get_luaentity().name=="__builtin:item" then
local name=ob:get_luaentity().itemstring
local num=string.split(name," ")
if num[2]==nil then num[2]=1 end
if self.inv.empty then self.inv={} end
pollution_rnddrops(num[1])
for i, it in pairs(self.inv) do
if it.item==num[1] and it.amo<99 then
it.amo=it.amo+1
if remove then ob:remove() end
return self
end
end
table.insert(self.inv,{item=num[1],amo=tonumber(num[2])})
if remove then ob:remove() end
end
return self
end
local pollution_axov=function(self, dtime)
self.timer=self.timer+dtime
self.timer2=self.timer2+dtime
if self.timer2>=0.5 then
self.timer2=0
-- if attacking or goto
if self.status_curr=="attack" or self.status_curr=="goto" then
local tpos=0
pollution_axov_lookat(self)
if self.status_curr=="goto" then
tpos=pollution_distance(self,self.status_target2)
if tpos==nil then self.status_curr="rnd" return self end
if tpos<=1.5 or self.stuck_path>=20 then
self.stuck_path=0
self.status_curr=self.status_next
self.status_target2={}
if self.status_curr=="goto" then
local yaw=self.object:getyaw()
if yaw ~= yaw then return true end
yaw = yaw+math.pi
self.object:setyaw(yaw)
pollution_axov_walk(self)
self.status_curr="rnd"
end
end
end
if self.status_curr=="attack" then
tpos=pollution_distance(self,self.status_target1:getpos())
if tpos==nil or tpos>self.distance or self.status_target1:get_hp()<=0 or
pollution_visiable(self.object:getpos(),self.status_target1)==false then
self.status_curr="rnd" setanim(self,"stand")
if self.nuke==1 and self.object:get_hp()<self.hp_max then self.object:set_hp(self.object:get_hp()+10) end
return self
end
--throw if have items
if tpos<self.distance and tpos>3 then
if self.nuke==0 and (not self.inv.empty) and math.random(5)==1 then
if (not self.status_target1:get_luaentity()) or (self.status_target1:get_luaentity() and self.status_target1:get_luaentity().name~="__builtin:item") then
pollution_throw2(self)
end
end
if self.nuke==1 then
if math.random(5)==1 and tpos<self.distance/2 and minetest.is_protected(self.status_target1:getpos(),"")==false then
for i=1,15,1 do
local np=minetest.find_node_near(self.status_target1:getpos(),3,{"air","group:water"})
if np~=nil and minetest.is_protected(np,"")==false then
minetest.set_node(np, {name ="pollution:n_fire"})
else
break
end
end
elseif math.random(5)==1 then
if minetest.is_protected(self.status_target1:getpos(),"")==false then
minetest.set_node(self.status_target1:getpos(), {name ="pollution:n_fire"})
else
pollution.flashdamage(4,self.status_target1)
end
end
end
end
--hurting
if tpos<=3 and math.random(3)==1 then
self.object:setvelocity({x=0, y=self.move.y, z=0})
self.status_target1:set_hp(self.status_target1:get_hp()-self.dmg)
self.status_target1:punch(self.object, {full_punch_interval=1.0,damage_groups={fleshy=4}}, "default:bronze_pick", nil)
if self.axid then minetest.set_node(self.status_target1:getpos(), {name="pollution:acid_fire"}) end
pollution_sound_hard_punch(self.status_target1:getpos())
setanim(self,"mine")
if self.status_target1:get_hp()<=0 and self.status_target1:is_player()==false then
self.object:set_hp(self.object:get_hp()+5)
setanim(self,"stand")
end
if self.status_target1:get_hp()<=0 and self.status_target1:is_player()==true then
local t=self.status_target1:get_properties().textures
if t~=nil then
pollution_axov_ano_texture=t
self.object:set_properties({
mesh = "character.b3d",
textures = t
})
end
end
end
end
end
--jump+falling
--after jump
if self.move.jump==1 then
self.move.jump_timer=self.move.jump_timer-1
if self.move.jump_timer<=0 then
self.move.jump=0
self.object:setacceleration({x =0, y = 0, z =0})
end
end
--front of a wall
if self.move.y==0 and self.move.jump==0 then
local ppos=self.object:getpos()
local nodes={}
for i=1,5,1 do --starts front of the object and y: -2 to +2
nodes[i]=minetest.registered_nodes[minetest.get_node({x=ppos.x+self.move.x,y=ppos.y+(i-3.5),z=ppos.z+self.move.z}).name].walkable
end
-- dig
if self.status_curr=="attack" and self.status_target1:getpos().y<ppos.y-1 then
local tp=self.status_target1:getpos()
if pollution_round(ppos.x)==pollution_round(tp.x) and pollution_round(ppos.z)==pollution_round(tp.z) then
local eppos={x=ppos.x,y=ppos.y-2,z=ppos.z}
if minetest.registered_nodes[minetest.get_node(eppos).name].walkable then
pollution_axov_pickup(self,eppos,2)
end
end
end
-- jump over 2
if (nodes[3]==true and nodes[5]==false) or (nodes[3]==false and nodes[4]==true and nodes[5]==false) then
local pos=self.object:getpos()
local pos3={x=pos.x,y=pos.y+1,z=pos.z}
if minetest.registered_nodes[minetest.get_node(pos3).name].walkable then pollution_axov_pickup(self,pos3,2) end
self.move.jump=1
self.move.jump_timer=1
self.move.y=4
self.move.x=self.move.x*2
self.move.z=self.move.z*2
self.object:setvelocity({x = self.move.x, y = self.move.y, z =self.move.z})
self.object:setacceleration({x =0, y = self.move.y, z =0})
end
-- if sides passable
if (nodes[3]==true and nodes[5]==true) then
local ispp=self.object:getpos()
ispp={x=ispp.x+self.move.x,y=ispp.y,z=ispp.z+self.move.z}
if nodes[4]==false then
pollution_axov_pickup(self,ispp,2)
end
-- if can break the wall
if pollution_axov_pickup(self,ispp,2)==false or pollution_axov_pickup(self,{x=ispp.x,y=ispp.y-1,z=ispp.z},2)==false then
local yaw=self.object:getyaw()
if yaw ~= yaw then return true end
local z=math.sin(yaw) * -1
local x=math.cos(yaw) * 1
local sidel1={}
local sidel2={}
local sidel3={}
local sider1={}
local sider2={}
local sider3={}
local passed=0
for i=0,10,1 do --starts front of the object and y: -2 to +2
sidel1[i]=minetest.registered_nodes[minetest.get_node({x=ispp.x+(x*i),y=ispp.y+1,z=ispp.z+(z*i)}).name].walkable
sidel2[i]=minetest.registered_nodes[minetest.get_node({x=ispp.x+(x*i),y=ispp.y, z=ispp.z+(z*i)}).name].walkable
sidel3[i]=minetest.registered_nodes[minetest.get_node({x=ispp.x+(x*i),y=ispp.y-1, z=ispp.z+(z*i)}).name].walkable
if (sidel1[i]==false and sidel2[i]==false) or (sidel2[i]==false and sidel3[i]==false) then
self.status_next=self.status_curr
self.status_curr="goto"
self.status_target2={x=ispp.x+(x*i),y=ispp.y+1,z=ispp.z+(z*i)}
pollution_axov_lookat(self)
passed=1
break
end
sider1[i]=minetest.registered_nodes[minetest.get_node({x=ispp.x+(x*(i*-1)),y=ispp.y+1,z=ispp.z+(z*(i*-1))}).name].walkable
sider2[i]=minetest.registered_nodes[minetest.get_node({x=ispp.x+(x*(i*-1)),y=ispp.y, z=ispp.z+(z*(i*-1))}).name].walkable
sider3[i]=minetest.registered_nodes[minetest.get_node({x=ispp.x+(x*(i*-1)),y=ispp.y-1, z=ispp.z+(z*(i*-1))}).name].walkable
if (sider1[i]==false and sider2[i]==false) or (sider2[i]==false and sider3[i]==false) then
self.status_next=self.status_curr
self.status_curr="goto"
self.status_target2={x=ispp.x+(x*(i*-1)),y=ispp.y,z=ispp.z+(z*(i*-1))}
pollution_axov_lookat(self)
passed=1
break
end
end
if passed==0 then
self.stuck_path=0
self.status_curr="rnd"
else
self.stuck_path=self.stuck_path+1
end
end
end
-- jump & attack
if nodes[1]==false and nodes[2]==false and self.status_curr=="attack" then
local pos=self.object:getpos()
if minetest.registered_nodes[minetest.get_node({x=pos.x,y=pos.y-1,z=pos.z}).name].walkable==true then
self.move.x=self.move.x*2
self.move.z=self.move.z*2
self.move.jump=1
self.move.jump_timer=1
self.object:setvelocity({x = self.move.x, y = 1, z =self.move.z})
self.object:setacceleration({x =0, y = 1, z =0})
end
end
end
--falling
if self.move.jump==0 then
local pos=self.object:getpos()
local nnode=minetest.get_node({x=pos.x,y=pos.y-1.5,z=pos.z}).name
local node=minetest.registered_nodes[nnode]
if node and node.walkable==false then
self.move.y=-10
self.object:setacceleration({x =0, y = self.move.y, z =0})
end
if node and node.walkable==true and self.move.y~=0 then
self.move.y=0
end
end
end
if self.timer<2 then return true end
--Common==========================================
self.timer=0
if self.object==nil then return false end
local pos=self.object:getpos()
local node=minetest.get_node(pos).name
if minetest.get_node_group(node, "water")>0 or minetest.get_node_group(node, "lava")>0 then
self.object:set_hp(self.object:get_hp()-2)
end
--pickup
local pos_under={x=pos.x,y=pos.y-2,z=pos.z}
if self.toxic==1 then
if minetest.get_node(pos_under).name=="default:dirt_with_grass" and minetest.is_protected(pos_under,"")==false then minetest.set_node(pos_under, {name="default:dirt"}) end
if self.acid==1 and minetest.is_protected({x=pos.x,y=pos.y-1,z=pos.z},"")==false then minetest.set_node({x=pos.x,y=pos.y-1,z=pos.z}, {name="pollution:acid_fire"}) end
if self.nuke==1 then
local np=minetest.find_node_near(pos,15,{"group:soil","group:sand","group:flammable","group:dig_immediate","group:flowers","group:oddly_breakable_by_hand","group:stone"})
if np~=nil and minetest.is_protected(np,"")==false then
minetest.set_node(np, {name ="pollution:n_fire"})
end
end
local i=0
for i, ob in pairs(minetest.get_objects_inside_radius(pos, 5)) do
pollution_axov_pickup(self,ob,1)
i=i+1
if i>=5 then break end
end
else
if minetest.get_node(pos_under).name=="default:dirt_with_grass" and minetest.is_protected(pos_under,"")==false then
if self.crystal then
minetest.set_node(pos_under, {name="pollution:crystal_soil"})
else
minetest.set_node(pos_under, {name="default:dirt_with_snow"})
end
end
end
if self.status_curr~="rnd" then return self end
--walk
if self.status_curr=="rnd" and self.move.y<=0 then
self.life=self.life-1
if self.life<=0 then self.object:remove() return false end
pollution_axov_rndwalk(self)
end
--attack
local todmg=1
for i, ob in pairs(minetest.get_objects_inside_radius(pos, self.distance)) do
if (not ob:get_luaentity()) or (ob:get_luaentity() and (not (ob:get_luaentity().team and ob:get_luaentity().team==self.team)) and ob:get_luaentity().name~="pollution:icicle") then
if (ob.object and ob.object:get_hp()>0) or ob:get_hp()>0 then
if pollution_visiable(pos,ob) and ((not ob:get_luaentity()) or (ob:get_luaentity() and (not(self.status_curr=="attack" and ob:get_luaentity().name=="__builtin:item")))) then
self.status_target1=ob
self.status_curr="attack"
self.life=100
break
end
end
end
end
pollution_axov_lookat(self)
end
function setanim(self,type)
local curr=self.anim_curr~=type
if type=="stand" and curr then self.object:set_animation({ x= 0, y= 79, },30,0)
elseif type=="lay" and curr then self.object:set_animation({ x=162, y=166, },30,0)
elseif type=="walk" and curr then self.object:set_animation({ x=168, y=187, },30,0)
elseif type=="mine" and curr then self.object:set_animation({ x=189, y=198, },30,0)
elseif type=="walk_mine" and curr then self.object:set_animation({ x=200, y=219, },30,0)
elseif type=="sit" and curr then self.object:set_animation({x= 81, y=160, },30,0)
else return self
end
self.anim_curr=type
return self
end
minetest.register_entity("pollution:axov",{
hp_max = 50,
physical = true,
weight = 5,
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
visual = "mesh",
visual_size = {x=1, y=1},
mesh = "character.b3d",
textures = {"pollution_gassman.png"},
colors = {},
spritediv = {x=1, y=1},
initial_sprite_basepos = {x=0, y=0},
is_visible = true,
makes_footstep_sound = false,
automatic_rotate = false,
on_punch=function(self, puncher, time_from_last_punch, tool_capabilities, dir)
local pos=self.object:getpos()
self.status_target1=puncher
self.status_curr="attack"
pollution_axov_lookat(self)
pollution_sound_hard_punch(pos)
if dir~=nil then self.object:setvelocity({x = dir.x*3,y = self.object:getvelocity().y,z = dir.z*3}) end
if self.object:get_hp()<=0 then
local c=0
for i, itt in pairs(self.inv) do
if tonumber(itt)~=nil or itt.item==nil then return false end
minetest.add_item(pos, itt.item .." ".. itt.amo):setvelocity({x = math.random(-1, 1),y=5,z = math.random(-1, 1)})
self.inv[i]=nil
c=c+1
if c==3 then break end
end
self.object:remove()
end
end,
on_activate=function(self, staticdata)
self.object:setvelocity({x=0,y=0,z=0})
self.object:setacceleration({x=0,y=0,z=0})
setanim(self,"stand")
if pollution_mobs_max(self.object,1,1)==false then
self.object:remove()
return false
end
if pollution_axov_ano_texture then
self.object:set_properties({mesh = "character.b3d",textures = pollution_axov_ano_texture})
pollution_axov_ano_texture=nil
end
end,
on_step=pollution_axov,
toxic=1,
nuke=0,
life=20,
anim_curr="",
status_curr="rnd",
status_next="",
status_target1={},
status_target2={},
timer=0,
timer2=0,
drop="",
move={x=0,y=0,z=0,jump=0,jump_timer=0,speed=2},
dmg=4,
team="axov",
type = "monster",
inv={pollution_axov_rnd_drops},
distance=10,
stuck_path=0,
})
minetest.register_entity("pollution:axov_ice",{
hp_max = 50,
physical = true,
weight = 5,
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
visual = "mesh",
visual_size = {x=1, y=1},
mesh = "character.b3d",
textures = {"pollution_iceman.png"},
colors = {},
spritediv = {x=1, y=1},
initial_sprite_basepos = {x=0, y=0},
is_visible = true,
makes_footstep_sound = false,
automatic_rotate = false,
on_punch=function(self, puncher, time_from_last_punch, tool_capabilities, dir)
local pos=self.object:getpos()
self.status_target1=puncher
self.status_curr="attack"
pollution_axov_lookat(self)
pollution_sound_hard_punch(pos)
if dir~=nil then self.object:setvelocity({x = dir.x*3,y = self.object:getvelocity().y,z = dir.z*3}) end
if self.object:get_hp()<=0 then
minetest.add_item(pos, "pollution:ice"):setvelocity({x = math.random(-1, 1),y=5,z = math.random(-1, 1)})
minetest.add_item(pos, "pollution:ice"):setvelocity({x = math.random(-1, 1),y=5,z = math.random(-1, 1)})
self.object:remove()
end
end,
on_activate=function(self, staticdata)
self.object:setvelocity({x=0,y=0,z=0})
self.object:setacceleration({x=0,y=0,z=0})
setanim(self,"stand")
if pollution_mobs_max(self.object,1,1)==false then
self.object:remove()
return false
end
if pollution_axov_ano_texture then
self.object:set_properties({mesh = "character.b3d",textures = pollution_axov_ano_texture})
pollution_axov_ano_texture=nil
end
end,
on_step=pollution_axov,
toxic=0,
nuke=0,
life=20,
anim_curr="",
status_curr="rnd",
status_next="",
status_target1={},
status_target2={},
timer=0,
timer2=0,
drop="",
move={x=0,y=0,z=0,jump=0,jump_timer=0,speed=2},
dmg=4,
team="axov_ice",
type = "monster",
inv={pollution_axov_rnd_drops},
distance=20,
stuck_path=0,
})
minetest.register_entity("pollution:axov_crystal",{
hp_max = 70,
physical = true,
weight = 5,
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
visual = "mesh",
visual_size = {x=1, y=1},
mesh = "character.b3d",
textures = {"pollution_crystalman.png"},
colors = {},
spritediv = {x=1, y=1},
initial_sprite_basepos = {x=0, y=0},
is_visible = true,
makes_footstep_sound = false,
automatic_rotate = false,
on_punch=function(self, puncher, time_from_last_punch, tool_capabilities, dir)
local pos=self.object:getpos()
self.status_target1=puncher
self.status_curr="attack"
pollution_axov_lookat(self)
pollution_sound_hard_punch(pos)
if dir~=nil then self.object:setvelocity({x = dir.x*3,y = self.object:getvelocity().y,z = dir.z*3}) end
if self.object:get_hp()<=0 then
minetest.add_item(pos, "pollution:crystal_soil"):setvelocity({x = math.random(-1, 1),y=5,z = math.random(-1, 1)})
minetest.add_item(pos, "pollution:crystal_soil"):setvelocity({x = math.random(-1, 1),y=5,z = math.random(-1, 1)})
self.object:remove()
end
end,
on_activate=function(self, staticdata)
self.object:setvelocity({x=0,y=0,z=0})
self.object:setacceleration({x=0,y=0,z=0})
setanim(self,"stand")
if pollution_mobs_max(self.object,1,1)==false then
self.object:remove()
return false
end
if pollution_axov_ano_texture then
self.object:set_properties({mesh = "character.b3d",textures = pollution_axov_ano_texture})
pollution_axov_ano_texture=nil
end
end,
on_step=pollution_axov,
toxic=0,
crystal=1,
nuke=0,
life=20,
anim_curr="",
status_curr="rnd",
status_next="",
status_target1={},
status_target2={},
timer=0,
timer2=0,
drop="",
move={x=0,y=0,z=0,jump=0,jump_timer=0,speed=2},
dmg=4,
team="axov_crystal",
type = "monster",
inv={pollution_axov_rnd_drops},
distance=10,
stuck_path=0,
})
minetest.register_entity("pollution:axovy",{
hp_max = 60,
physical = true,
weight = 5,
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
visual = "mesh",
visual_size = {x=1, y=1},
mesh = "character.b3d",
textures = {"pollution_gassman.png^[colorize:#00dd00cc"},
colors = {},
spritediv = {x=1, y=1},
initial_sprite_basepos = {x=0, y=0},
is_visible = true,
makes_footstep_sound = false,
automatic_rotate = false,
on_punch=function(self, puncher, time_from_last_punch, tool_capabilities, dir)
local pos=self.object:getpos()
self.status_target1=puncher
self.status_curr="attack"
pollution_axov_lookat(self)
pollution_sound_hard_punch(pos)
if dir~=nil then self.object:setvelocity({x = dir.x*3,y = self.object:getvelocity().y,z = dir.z*3}) end
if self.object:get_hp()<=0 then
local c=0
for i, itt in pairs(self.inv) do
if tonumber(itt)~=nil or itt.item==nil then return false end
minetest.add_item(pos, itt.item .." ".. itt.amo):setvelocity({x = math.random(-1, 1),y=5,z = math.random(-1, 1)})
self.inv[i]=nil
c=c+1
if c==3 then break end
end
self.object:remove()
end
end,
on_activate=function(self, staticdata)
self.object:setvelocity({x=0,y=0,z=0})
self.object:setacceleration({x=0,y=0,z=0})
setanim(self,"stand")
if pollution_mobs_max(self.object,1,1)==false then
self.object:remove()
return false
end
if pollution_axov_ano_texture then
self.object:set_properties({mesh = "character.b3d",textures = pollution_axov_ano_texture})
pollution_axov_ano_texture=nil
end
end,
on_step=pollution_axov,
toxic=1,
acid=1,
nuke=0,
life=20,
anim_curr="",
status_curr="rnd",
status_next="",
status_target1={},
status_target2={},
timer=0,
timer2=0,
drop="",
move={x=0,y=0,z=0,jump=0,jump_timer=0,speed=2},
dmg=4,
team="axovy",
type = "monster",
inv={pollution_axov_rnd_drops},
distance=10,
stuck_path=0,
})
minetest.register_entity("pollution:axovu",{
hp_max = 800,
physical = true,
weight = 5,
collisionbox = {-0.35,-1.0,-0.35, 0.35,0.8,0.35},
visual = "mesh",
visual_size = {x=1, y=1},
mesh = "character.b3d",
textures = {"pollution_gassman.png^[colorize:#aaff00aa"},
colors = {},
spritediv = {x=1, y=1},
initial_sprite_basepos = {x=0, y=0},
is_visible = true,
makes_footstep_sound = false,
automatic_rotate = false,
on_punch=function(self, puncher, time_from_last_punch, tool_capabilities, dir)
local pos=self.object:getpos()
self.status_target1=puncher
self.status_curr="attack"
pollution_axov_lookat(self)
pollution_sound_hard_punch(pos)
if dir~=nil then self.object:setvelocity({x = dir.x*3,y = self.object:getvelocity().y,z = dir.z*3}) end
if self.object:get_hp()<=0 then
for i=1,25,1 do
local np=minetest.find_node_near(pos,3,{"air","group:water","group:soil","group:sand","group:flowers","group:oddly_breakable_by_hand","group:stone"})
if np~=nil and minetest.is_protected(np,"")==false then
minetest.set_node(np, {name ="pollution:n_fire"})
else
break
end
end
if minetest.is_protected({x=pos.x,y=pos.y-0.5,z=pos.z},"")==false then
minetest.set_node({x=pos.x,y=pos.y-0.5,z=pos.z}, {name ="pollution:nukecrystal"})
end
self.object:remove()
end
end,
on_activate=function(self, staticdata)
self.object:setvelocity({x=0,y=0,z=0})
self.object:setacceleration({x=0,y=0,z=0})
setanim(self,"stand")
if pollution_mobs_max(self.object,1,1)==false then
self.object:remove()
return false
end
if pollution_axov_ano_texture then
self.object:set_properties({mesh = "character.b3d",textures = pollution_axov_ano_texture})
pollution_axov_ano_texture=nil
end
end,
on_step=pollution_axov,
toxic=1,
nuke=1,
acid=0,
life=20,
anim_curr="",
status_curr="rnd",
status_next="",
status_target1={},
status_target2={},
timer=0,
timer2=0,
drop="",
move={x=0,y=0,z=0,jump=0,jump_timer=0,speed=2},
dmg=4,
team="axovu",
type = "monster",
inv={pollution_axov_rnd_drops},
distance=12,
stuck_path=0,
})
function pollution_throw2(self)
local item
local pos = self.object:getpos()
local m
if self.toxic==1 then
for s in pairs(self.inv) do
if self.inv[s].item==nil then self.inv={empty=1} return self end
item=self.inv[s].item
self.inv[s].amo=self.inv[s].amo-1
if self.inv[s].amo<=0 then self.inv[s]=nil end
break
end
if item==nil then self.inv={empty=1} return self end
if item~="pollution:bottle" and item~="pollution:bottlepur" then
m=minetest.add_item({x=pos.x,y=pos.y+1,z=pos.z},item)
else
pollution_tmp_bottle={special=0,user=""}
m=minetest.env:add_entity({x=pos.x+(self.move.x*3),y=pos.y+1,z=pos.z+(self.move.z*3)}, "pollution:bottle1")
if item=="pollution:bottlepur" then pollution_tmp_bottle={special=1,user=""} m:set_properties({visual = "mesh",textures = {"pollution_pur.png","pollution_black.png","pollution_pur.png","pollution_pur.png^pollution_log2.png"}}) end
end
else
m=minetest.env:add_entity({x=pos.x+(self.move.x*3),y=pos.y+1,z=pos.z+(self.move.z*3)}, "pollution:icicle")
m:set_properties({collisionbox = {-0.1,-0.1,-0.1, 0.1,0.1,0.1}})
if self.crystal then
m:set_properties({textures = {"default_obsidian_shard.png^pollution_lila2.png"}})
end
end
local ta=self.status_target1:getpos()
local vec = {x = pos.x - ta.x, y = pos.y - ta.y+1, z = pos.z - ta.z}
local amount = (vec.x ^ 2 + vec.y ^ 2 + vec.z ^ 2) ^ 0.5
local v = -15
if self.status_target1:is_player() then vec.y = vec.y -1 end
vec.x = vec.x * v / amount
vec.y = vec.y * v / amount
vec.z = vec.z * v / amount
m:setvelocity(vec)
table.insert(pollution_axov_throw,{ob=m,timer=2})
minetest.sound_play("pollution_throw", {pos=pos, gain = 1.0, max_hear_distance = 5,})
return self
end
pollution_axov_throw={}
pollution_axov_throw_timer=0
minetest.register_globalstep(function(dtime)
pollution_axov_throw_timer=pollution_axov_throw_timer+dtime
if pollution_axov_throw_timer<0.2 then return end
pollution_axov_throw_timer=0
for i, t in pairs(pollution_axov_throw) do
t.timer=t.timer-0.25
if t.timer<=0 or t.ob==nil or t.ob:getpos()==nil then table.remove(pollution_axov_throw,i) return end
for ii, ob in pairs(minetest.get_objects_inside_radius(t.ob:getpos(), 1.5)) do
if (not ob:get_luaentity()) or minetest.get_node(t.ob:getpos()).name~="air" or (ob:get_luaentity() and (ob:get_luaentity().name~="__builtin:item" and ob:get_luaentity().name~="pollution:axov" and ob:get_luaentity().name~="pollution:bottle1" and ob:get_luaentity().name~="pollution:icicle")) then
ob:set_hp(ob:get_hp()-5)
ob:punch(t.ob, {full_punch_interval=1.0,damage_groups={fleshy=4}}, "default:bronze_pick", nil)
t.ob:setvelocity({x=0, y=0, z=0})
if t.ob:get_hp()<=0 and ob:is_player()==false then ob:remove() end
if t.ob:get_luaentity().name~="__builtin:item" then
t.ob:setacceleration({x=0, y=-10,z=0})
t.ob:setvelocity({x=0, y=-10, z=0})
if t.ob:get_luaentity().name~="pollution:icicle" then
pollution_sound_hard_punch(t.ob:getpos())
else
minetest.sound_play("default_break_glass", {pos=t.ob:getpos(), gain = 1.0, max_hear_distance = 5,})
end
table.remove(pollution_axov_throw,i)
break
end
end
end
end
end) |
require 'ScreenManager'
require 'Config'
require 'util'
function love.load(arg)
print("[love.load] Setting up our humble game")
love.graphics.setBackgroundColor(Config.screen.background or {0, 0, 0})
--
-- Setup
--
love.window.setMode(
Config.screen.width,
Config.screen.height,
{
resizable = false,
vsync = Config.screen.vsync
})
local baseScreen = require(Config.startup.screen)
ScreenManager.singleton():push(baseScreen.new())
end
function love.keypressed(key)
if key == 'escape' then
love.event.push('quit')
end
ScreenManager.singleton():keypressed(key)
end
function love.keyreleased(key)
ScreenManager.singleton():keyreleased(key)
end
function love.draw()
ScreenManager.singleton():draw()
if Config.debugMode.active and Config.debugMode.drawHitboxes then
love.graphics.setColor({255,255,255})
love.graphics.print("FPS : " .. tostring(love.timer.getFPS()), 10, 10)
end
end
function love.update(dt)
ScreenManager.singleton():update(dt)
end
|
Faction = {
Citizen = 0,
PanauMilitary = 1,
Reapers = 2,
Roaches = 3,
Ular = 4,
Agency = 5,
Player = 6
}
IsFriendly = {}
IsFriendly[Faction.Citizen] = {}
IsFriendly[Faction.Citizen][Faction.PanauMilitary] = true
IsFriendly[Faction.Citizen][Faction.Reapers] = true
IsFriendly[Faction.Citizen][Faction.Roaches] = true
IsFriendly[Faction.Citizen][Faction.Ular] = true
IsFriendly[Faction.Citizen][Faction.Agency] = true
IsFriendly[Faction.Citizen][Faction.Player] = true
IsFriendly[Faction.PanauMilitary] = {}
IsFriendly[Faction.PanauMilitary][Faction.Citizen] = true
IsFriendly[Faction.PanauMilitary][Faction.Reapers] = false
IsFriendly[Faction.PanauMilitary][Faction.Roaches] = false
IsFriendly[Faction.PanauMilitary][Faction.Ular] = false
IsFriendly[Faction.PanauMilitary][Faction.Agency] = false
IsFriendly[Faction.PanauMilitary][Faction.Player] = false
IsFriendly[Faction.Reapers] = {}
IsFriendly[Faction.Reapers][Faction.Citizen] = true
IsFriendly[Faction.Reapers][Faction.PanauMilitary] = false
IsFriendly[Faction.Reapers][Faction.Roaches] = false
IsFriendly[Faction.Reapers][Faction.Ular] = false
IsFriendly[Faction.Reapers][Faction.Agency] = false
IsFriendly[Faction.Reapers][Faction.Player] = true
IsFriendly[Faction.Roaches] = {}
IsFriendly[Faction.Roaches][Faction.Citizen] = true
IsFriendly[Faction.Roaches][Faction.PanauMilitary] = false
IsFriendly[Faction.Roaches][Faction.Reapers] = false
IsFriendly[Faction.Roaches][Faction.Ular] = false
IsFriendly[Faction.Roaches][Faction.Agency] = false
IsFriendly[Faction.Roaches][Faction.Player] = true
IsFriendly[Faction.Ular] = {}
IsFriendly[Faction.Ular][Faction.Citizen] = true
IsFriendly[Faction.Ular][Faction.PanauMilitary] = false
IsFriendly[Faction.Ular][Faction.Reapers] = false
IsFriendly[Faction.Ular][Faction.Roaches] = false
IsFriendly[Faction.Ular][Faction.Agency] = false
IsFriendly[Faction.Ular][Faction.Player] = true
IsFriendly[Faction.Agency] = {}
IsFriendly[Faction.Agency][Faction.Citizen] = true
IsFriendly[Faction.Agency][Faction.PanauMilitary] = false
IsFriendly[Faction.Agency][Faction.Reapers] = false
IsFriendly[Faction.Agency][Faction.Roaches] = false
IsFriendly[Faction.Agency][Faction.Ular] = false
IsFriendly[Faction.Agency][Faction.Player] = true
IsFriendly[Faction.Player] = {}
IsFriendly[Faction.Player][Faction.Citizen] = true
IsFriendly[Faction.Player][Faction.PanauMilitary] = false
IsFriendly[Faction.Player][Faction.Reapers] = true
IsFriendly[Faction.Player][Faction.Roaches] = true
IsFriendly[Faction.Player][Faction.Ular] = true
IsFriendly[Faction.Player][Faction.Agency] = true |
local shell = require("shell")
local fs = require("filesystem")
local args, options = shell.parse(...)
local function pop(key, convert)
local result = options[key]
options[key] = nil
if result and convert then
local c = convert(result)
if not c then
error('invalid ' .. key .. ': could not convert ' .. result)
end
result = c
end
return result
end
local bytes = pop('bytes', tonumber)
local lines = pop('lines', tonumber)
local quiet = {pop('q'), pop('quiet'), pop('silent')}
quiet = quiet[1] or quiet[2] or quiet[3]
local verbose = {pop('v'), pop('verbose')}
verbose = verbose[1] or verbose[2]
local help = pop('help')
local invalid_key = next(options)
if bytes and lines then
invalid_key = 'bytes and lines both specified'
end
if help or next(options) then
local invalid_key = next(options)
if invalid_key then
invalid_key = string.format('invalid option: %s\n', invalid_key)
else
invalid_key = ''
end
print(invalid_key .. [[Usage: head [--lines=n] file
Print the first 10 lines of each FILE to stdout.
For more info run: man head]])
os.exit()
end
if #args == 0 then
args = {'-'}
end
if quiet and verbose then
quiet = false
end
local function new_stream()
return
{
open=true,
capacity=math.abs(lines or bytes or 10),
bytes=bytes,
buffer=(lines and lines < 0 and {}) or (bytes and bytes < 0 and '')
}
end
local function close(stream)
if stream.buffer then
if type(stream.buffer) == 'table' then
stream.buffer = table.concat(stream.buffer)
end
io.stdout:write(stream.buffer)
stream.buffer = nil
end
stream.open = false
end
local function push(stream, line)
if not line then
return close(stream)
end
local cost = stream.bytes and line:len() or 1
stream.capacity = stream.capacity - cost
if not stream.buffer then
if stream.bytes and stream.capacity < 0 then
line = line:sub(1,stream.capacity-1)
end
io.write(line)
if stream.capacity <= 0 then
return close(stream)
end
else
if type(stream.buffer) == 'table' then -- line storage
stream.buffer[#stream.buffer+1] = line
if stream.capacity < 0 then
table.remove(stream.buffer, 1)
stream.capacity = 0 -- zero out
end
else -- byte storage
stream.buffer = stream.buffer .. line
if stream.capacity < 0 then
stream.buffer = stream.buffer:sub(-stream.capacity+1)
stream.capacity = 0 -- zero out
end
end
end
end
for i=1,#args do
local arg = args[i]
local file
if arg == '-' then
arg = 'standard input'
file = setmetatable({close=function()end},{__index=io.stdin})
else
file, reason = io.open(arg, 'r')
if not file then
io.stderr:write(string.format([[head: cannot open '%s' for reading: %s]], arg, reason))
end
end
if file then
if verbose or #args > 1 then
io.write(string.format('==> %s <==', arg))
end
local stream = new_stream()
while stream.open do
push(stream, file:read('*L'))
end
file:close()
end
end
|
local _M = {}
local cjson = require "cjson"
local lock = require "resty.lock"
local trie = require "trie"
local http = require "resty.http"
local cache = require "resty.dns.cache"
local os = require "os"
local encode = cjson.encode
-- ready to serve?
local ready = false
-- Kubernetes cluster domain for DNS
local cluster_domain = nil
-- shared dict for proxy and lock
local shared_dict = nil
-- how often to run fetcher
local delay = 60
-- base url/path for Kubernetes API
local kubernetes_api_url = nil
-- we "cache" the config local to each worker
local ingressConfig = nil
-- worker only fetches config from shared dict if version does not match
local resourceVersion = nil
local dns_cache_options = nil
function get_resourceVersion(ngx)
local d = ngx.shared[shared_dict]
local value, flags, stale = d:get_stale("resourceVersion")
if not value then
-- nothing we can do
return nil, "version not set"
end
resourceVersion = value
return resourceVersion, nil
end
function get_ingressConfig(ngx, force)
if ingressConfig and not force then
return ingressConfig
end
local d = ngx.shared[shared_dict]
local value, flags, stale = d:get_stale("ingressConfig")
if not value then
-- nothing we can do
return nil, "config not set"
end
ingressConfig = value
return ingressConfig, nil
end
function worker_cache_config(ngx)
local _, err = get_resourceVersion(ngx)
if err then
ngx.log(ngx.ERR, "unable to get resourceVersion: ", err)
return
end
local _, err = get_ingressConfig(ngx)
if err then
ngx.log(ngx.ERR, "unable to get ingressConfig: ", err)
return
end
end
local trie_get = trie.get
local match = string.match
local gsub = string.gsub
local lower = string.lower
function _M.content(ngx)
local host = ngx.var.host
-- strip off any port
local h = match(host, "^(.+):?")
if h then
host = h
end
host = lower(host)
local config, err = get_ingressConfig(ngx)
if err then
ngx.log(ngx.ERR, "unable to get resourceVersion: ", err)
return ngx.exit(503)
end
-- this assumes we only allow exact host matches
local paths = config[host]
if not paths then
-- TODO: log? or just statsd
return ngx.exit(404)
end
local backend = trie_get(paths, ngx.var.uri)
if not backend then
-- TODO: log?
return ngx.exit(404)
end
local address = backend.host
ngx.var.upstream_port = backend.port or 80
if dns_cache_options then
local dns = cache.new(dns_cache_options)
local answer, err, stale = dns:query(address, { qtype = 1 })
if err or (not answer) then
if stale then
answer = stale
else
answer = nil
end
end
if answer and answer[1] then
local ans = answer[1]
if ans.address then
address = ans.address
end
else
ngx.log(ngx.ERR, "dns failed for ", address, " with ", err, " => ", encode(answer or ""))
end
end
ngx.var.upstream_host = address
return
end
local decode = cjson.decode
local table_concat = table.concat
local function fetch_ingress(ngx)
local h = http.new()
local res, err = h:request_uri(kubernetes_api_url, { method = "GET"})
if not res then
ngx.log(ngx.ERR, "request failed for ", kubernetes_api_url, " => ", err)
return
end
if res.status ~= 200 then
ngx.log(ngx.ERR, "non-200 for ", kubernetes_api_url, " => ", res.status)
return
end
local val = decode(res.body)
if not val then
ngx.log(ngx.ERR, "failed to decode body")
return
end
version = val.metadata.resourceVersion
if not version then
ngx.log(ngx.ERR, "no resourceVersion")
return
end
if version == resourceVersion then
-- we already did this
return
end
config = {}
for _, ingress in ipairs(val.items) do
local namespace = ingress.metadata.namespace
local spec = ingress.spec
-- we do not allow default ingress backends right now.
for _, rule in ipairs(spec.rules) do
local host = rule.host
local paths = config[host]
if not paths then
paths = trie.new()
config[host] = paths
end
rule.http = rule.http or { paths = {}}
for _, path in ipairs(rule.http.paths) do
local hostname = table_concat(
{
path.backend.serviceName,
namespace,
"svc",
cluster_domain
}, ".")
local backend = {
host = hostname,
port = path.backend.servicePort
}
paths:add(path.path, backend)
end
end
end
local d = ngx.shared[shared_dict]
local ok, err, _ = d:set("ingressConfig", jsonIngressConfig)
local ok, err, _ = d:set("resourceVersion", version)
ingressConfig = config
resourceVersion = version
ready = true
end
function fetch_callback()
local ngx = ngx
local l = lock:new(shared_dict, { exptime = 30, timeout = 10 })
local elapsed, err = l:lock("fetch_ingress")
if elapsed then
local _, err = pcall(fetch_ingress, ngx)
if err then
ngx.log(ngx.ERR, "fetch ingress config failed: ", err)
end
-- we care about any error ??
l:unlock()
end
-- on first load we try again sooner
d = ready and delay or delay/2
if ready then
worker_cache_config(ngx)
end
ngx.timer.at(d, fetch_callback)
end
function _M.init_worker(ngx)
ngx.timer.at(0, fetch_callback)
end
function _M.init(ngx, options)
-- set module level "config"
shared_dict = options.shared_dict or "ingress"
delay = options.delay or 60
kubernetes_api_url = options.kubernetes_api_url or "http://127.0.0.1:8001"
cluster_domain = options.cluster_domain or os.getenv("CLUSTER_DOMAIN") or "cluster.local"
kubernetes_path = "/apis/extensions/v1beta1/"
local namespace = options.namespace or os.getenv("NAMESPACE") or nil
if namespace then
kubernetes_path = kubernetes_path .. namespaces .. "/" .. namespace .. "/"
end
kubernetes_path = kubernetes_path .. "ingresses"
kubernetes_api_url = kubernetes_api_url .. kubernetes_path
local labelSelector = options.label_selector or os.getenv("LABEL_SELECTOR") or nil
if labelSelector then
kubernetes_api_url = kubernetes_api_url .. "?labelSelector=" .. labelSelector
end
-- try to create a dns cache
local resolvers = os.getenv("RESOLVERS")
if resolvers then
cache.init_cache(512)
local servers = trie.strsplit(" ", resolvers)
-- we only want to use the first nameserver as it is the cluster nameserver
-- this may change in the future
dns_cache_options =
{
dict = "dns_cache",
negative_ttl = nil,
max_stale = 900,
normalise_ttl = false,
resolver = {
nameservers = {servers[1]}
}
}
end
end
-- dump config. This is the raw config (including trie) for now
function _M.config(ngx)
ngx.header.content_type = "application/json"
local config = {
version = resourceVersion,
ingress = ingressConfig
}
local val = encode(config)
ngx.print(val)
end
return _M
|
function Scene_CB(itemtag, toplayer, toptag, sublayertag, selgrouptag, selitemtag, dataindex)
for i, it in pairs(LGlobal_SceneFunctions) do
if it[1] == toptag then
return it[3](itemtag, toplayer, toptag, sublayertag, selgrouptag, selitemtag, dataindex);
end
end
end |
local codeBlockMode = false -- Since this spans multiple lines, it needs to be on the outside
-- convertLine: Returns valid HTML from markdown input
function convertLine(line)
-- Mode states
local headingMode = false
local emphasisMode = false
local boldMode = false
local codeMode = false
local strikeMode = false
local imageMode = false
-- Metadata
local convertedLine = ""
local lastTouchedChar = 1
local lastChange = 0 -- 0: none, 1: emphasis, 2: bolded. This is probably a terrible solution.
local closeParagraph = false
local linkName = ""
local linkLink = ""
local imageName = ""
local imageLink = ""
local imageLinkFirstIndex = 0
local imageLinkLastIndex = 0
local imageNameFirstIndex = 0
local imageNameLastIndex = 0
-- Loop over every character in a line
for i = 1, string.len(line) do
lastChar = string.sub(line, i-1, i-1)
char = string.sub(line, i, i)
nextChar = string.sub(line, i+1, i+1)
thirdChar = string.sub(line, i+2, i+2)
-- Checking whether or not to insert a <p> tag
if i == 1 and char ~= "#" and char ~= "-" and (char ~= "`" and nextChar ~= "`" and thirdChar ~= "`") and not codeBlockMode then
convertedLine = convertedLine .. "<p>"
closeParagraph = true
end
-- Checking for headings
if char == "#" and i == 1 then
headingMode = true
-- Looping to count how many #'s are in the line
headingCount = 1
for j = 2, 6 do
if string.sub(line, j, j) == "#" then
headingCount = j
else
break
end
end
-- Creating the proper heading
convertedLine = convertedLine .. "<h" .. headingCount .. ">"
convertedLine = convertedLine .. string.sub(line, i+headingCount+1)
convertedLine = convertedLine .. "</h" .. headingCount .. ">"
-- Checking for emphasis
elseif char == "_" then
if lastTouchedChar == 1 then
convertedLine = convertedLine .. string.sub(line, lastTouchedChar, i-1)
else
if lastChange == 2 then
convertedLine = convertedLine .. string.sub(line, lastTouchedChar+2, i-1)
else
convertedLine = convertedLine .. string.sub(line, lastTouchedChar+1, i-1)
end
end
if not emphasisMode then
convertedLine = convertedLine .. "<em>"
else
convertedLine = convertedLine .. "</em>"
end
lastTouchedChar = i
lastChange = 1 -- Setting the last change to emphasis
emphasisMode = not emphasisMode
-- Checking for bolding
elseif char == "*" and nextChar == "*" then
if i == 1 then
convertedLine = convertedLine .. string.sub(line, lastTouchedChar+2, i-1)
elseif lastTouchedChar == 1 then
convertedLine = convertedLine .. string.sub(line, lastTouchedChar, i-1)
else
convertedLine = convertedLine .. string.sub(line, lastTouchedChar+lastChange, i-1)
end
if not boldMode then
convertedLine = convertedLine .. "<strong>"
else
convertedLine = convertedLine .. "</strong>"
end
lastTouchedChar = i
lastChange = 2 -- Setting the last change to bold
boldMode = not boldMode
-- Check for strikethrough
elseif char == "~" and nextChar == "~" then
if lastTouchedChar == 1 then
convertedLine = convertedLine .. string.sub(line, lastTouchedChar, i-1)
else
convertedLine = convertedLine .. string.sub(line, lastTouchedChar+2, i-1)
end
if not strikeMode then
convertedLine = convertedLine .. "<s>"
else
convertedLine = convertedLine .. "</s>"
end
lastTouchedChar = i
lastChange = 2 -- Setting the last change to strike
strikeMode = not strikeMode
-- Checking for code blocks
elseif char == "`" and nextChar == "`" and thirdChar == "`" then
if not codeBlockMode then
convertedLine = convertedLine .. "<pre>"
else
convertedLine = convertedLine .. "</pre>"
end
lastChange = 3 -- Setting to last change to codeBlock
codeBlockMode = true
-- Checking for inline code blocks
elseif char == "`" and not codeBlockMode then
if lastTouchedChar == 1 then
convertedLine = convertedLine .. string.sub(line, lastTouchedChar, i-1)
else
if lastChange == 2 then
convertedLine = convertedLine .. string.sub(line, lastTouchedChar+2, i-1)
else
convertedLine = convertedLine .. string.sub(line, lastTouchedChar+1, i-1)
end
end
if not codeMode then
convertedLine = convertedLine .. "<code>"
else
convertedLine = convertedLine .. "</code>"
end
lastTouchedChar = i
lastChange = 1 -- Setting the last change to emphasis/code
codeMode = not codeMode
-- Checking for horizontal line
elseif char == "-" and nextChar == "-" and thirdChar == "-" then
return "<hr/>\n"
-- Checking for links
elseif char == "[" and lastChar ~= "!" then
linkMode = true
linkNameFirstIndex = i
elseif char == "]" and linkMode then
linkNameLastIndex = i
linkName = string.sub(line, linkNameFirstIndex+1, linkNameLastIndex-1)
elseif char == "(" and linkMode then
linkLinkFirstIndex = i
elseif char == ")" and linkMode then
linkLinkLastIndex = i
linkLink = string.sub(line, linkLinkFirstIndex+1, linkLinkLastIndex-1)
elseif char == "!" and nextChar == "[" then
imageMode = true
imageNameFirstIndex = i+1
elseif char == "]" and imageMode then
imageNameLastIndex = i
imageName = string.sub(line, imageNameFirstIndex+1, imageNameLastIndex-1)
elseif char == "(" and imageMode then
imageLinkFirstIndex = i
elseif char == ")" and imageMode then
imageLinkLastIndex = i
imageLink = string.sub(line, imageLinkFirstIndex+1, imageLinkLastIndex-1)
end
-- Insert the link
if string.len(linkName) > 0 and string.len(linkLink) > 0 and linkMode then
convertedLine = convertedLine .. string.sub(line, lastTouchedChar+lastChange, linkNameFirstIndex-1)
lastTouchedChar = linkLinkLastIndex-1
convertedLine = convertedLine .. "<a href='" .. linkLink .. "'>" .. linkName .. "</a>"
--convertedLine = convertedLine .. string.sub(line, linkNameFirstIndex-1, linkLinkLastIndex)
lastChange = 2
-- Resetting the values
linkName = ""
linkLink = ""
linkMode = false
end
-- Insert the image
if string.len(imageName) > 0 and string.len(imageLink) > 0 and imageMode then
convertedLine = convertedLine .. string.sub(line, lastTouchedChar+lastChange, imageNameFirstIndex-2)
lastTouchedChar = imageLinkLastIndex+1
convertedLine = convertedLine .. "<img src='" .. imageLink .. "'" .. " alt='" .. imageName .. "'/>\n"
convertedLine = convertedLine .. "<figcaption>" .. imageName .. "</figcaption>"
lastChange = 0
-- Resetting the values
imageName = ""
imageLink = ""
imageMode = false
end
end
-- Append the rest of the line if the line isn't a header
if not headingMode then
convertedLine = convertedLine .. string.sub(line, lastTouchedChar+lastChange)
end
-- Close a paragraph tag if one is open
if closeParagraph then
convertedLine = convertedLine .. "</p>"
end
-- Return convertedLine if it's not blank (to strip blank lines in input)
if convertedLine ~= "" then
return convertedLine .. "\n"
end
end
-- If either argument is unset, print an error message
if arg[1] == nil or arg[2] == nil then
print("Error: Missing arguments.")
print("Usage: lua path/to/converter.lua input.md output.html")
elseif arg[3] ~= nil then
print("Error: Too many arguments.")
print("Usage: lua path/to/converter.lua input.md output.html")
else
-- Delete the file if it already exists
os.remove(arg[2])
-- Open file and stage it for output
local outputFile = io.open(arg[2], "a")
io.output(outputFile)
-- Taking the first arg (the input file) and converting it line by line
for line in io.lines(arg[1]) do
-- Appending it to the file
io.write(convertLine(line))
end
-- Print a success message
print("File '" .. arg[1] .. "' successfully converted to '" .. arg[2] .. "'!")
-- Unstaging the file after output is complete
io.close(outputFile)
end
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.