content
stringlengths 5
1.05M
|
|---|
local keymap = {}
function keymap.map(mode, lhs, rhs, opts)
local options = {noremap = true}
if opts then
options = vim.tbl_extend("force", options, opts)
end
keymap.nvim_set_keymap(mode, lhs, rhs, options)
end
function keymap.map_buf(bufnr, mode, lhs, rhs, opts)
local options = {noremap = true}
if opts then
options = vim.tbl_extend("force", options, opts)
end
keymap.nvim_buf_set_keymap(bufnr, mode, lhs, rhs, options)
end
_Mappings = _Mappings or {}
_MappingsBuffer = _MappingsBuffer or {}
--- @param mode string
--- @param lhs string
local function create_map_key(mode, lhs)
local map_key = mode .. lhs
map_key = string.gsub(map_key,"<", "-")
map_key = string.gsub(map_key,">", "-")
return map_key
end
--- @param map_key string
local function create_map_string(map_key)
return string.format(
"<cmd>lua require('relnod.keymap').execute_mapping('%s')<CR>",
map_key
)
end
--- @param map_key string
--- @param bufnr number
local function create_map_string_buf(map_key, bufnr)
return string.format(
"<cmd>lua require('relnod.keymap').execute_buffer_mapping(%d, '%s')<CR>",
bufnr,
map_key
)
end
--- See |nvim_set_keymap|, but the rhs can either be a string or a lua function.
---
--- @param mode string
--- @param lhs string
--- @param rhs string or function
--- @param opts table
function keymap.nvim_set_keymap(mode, lhs, rhs, opts)
if type(rhs) == "string" then
vim.api.nvim_set_keymap(mode, lhs, rhs, opts)
else
local map_key = create_map_key(mode, lhs)
local map_string = create_map_string(map_key)
_Mappings[map_key] = rhs
vim.api.nvim_set_keymap(mode, lhs, map_string, opts)
end
end
--- See |nvim_buf_set_keymap|, but the rhs can either be a string or a lua
--- function.
---
--- @param bufnr number
--- @param mode string
--- @param lhs string
--- @param rhs string or function
--- @param opts table
function keymap.nvim_buf_set_keymap(bufnr, mode, lhs, rhs, opts)
if type(rhs) == "string" then
vim.api.nvim_buf_set_keymap(bufnr, mode, lhs, rhs, opts)
else
if _MappingsBuffer[bufnr] == nil then
_MappingsBuffer[bufnr] = {}
end
local map_key = create_map_key(mode, lhs)
local map_string = create_map_string_buf(map_key, bufnr)
_MappingsBuffer[bufnr][map_key] = rhs
vim.api.nvim_buf_set_keymap(bufnr, mode, lhs, map_string, opts)
end
end
--- Executes a keymap.
---
--- @param map_key string
function keymap.execute_mapping(map_key)
if _Mappings ~= nil and _Mappings[map_key] ~= nil then
_Mappings[map_key]()
end
end
--- Executes a keymap.
---
--- @param bufnr number
--- @param map_key string
function keymap.execute_buffer_mapping(bufnr, map_key)
if
_MappingsBuffer ~= nil and _MappingsBuffer[bufnr][map_key] and
_MappingsBuffer[bufnr][map_key] ~= nil
then
_MappingsBuffer[bufnr][map_key]()
end
end
vim.cmd[[augroup keymap_buf_delete]]
vim.cmd[[autocmd!]]
vim.cmd[[autocmd BufDelete * lua require'relnod/keymap'.handle_buf_delete()]]
vim.cmd[[augroup END]]
function keymap.handle_buf_delete()
local bufname = vim.fn.expand("<afile>")
if bufname == "" then
return
end
local bufnr = vim.fn.bufnr(bufname)
for _, b in pairs(_MappingsBuffer) do
if b == bufnr then
_MappingsBuffer[bufnr] = nil
return
end
end
end
return keymap
|
--Grim 赤ずきん
function c21210002.initial_effect(c)
--special summon
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND)
e1:SetCountLimit(1,21210002)
e1:SetCondition(c21210002.spcon)
e1:SetOperation(c21210002.spop)
c:RegisterEffect(e1)
--destroy
local e3=Effect.CreateEffect(c)
e3:SetCategory(CATEGORY_DAMAGE)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_SUMMON_SUCCESS)
e3:SetTarget(c21210002.damtg)
e3:SetOperation(c21210002.damop)
c:RegisterEffect(e3)
local e4=e3:Clone()
e4:SetCode(EVENT_SPSUMMON_SUCCESS)
c:RegisterEffect(e4)
--atk
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetCondition(c21210002.con1)
e2:SetTarget(aux.TargetBoolFunction(Card.IsAttribute,ATTRIBUTE_FIRE))
e2:SetValue(c21210002.val)
c:RegisterEffect(e2)
local e5=e2:Clone()
e5:SetCondition(c21210002.con2)
e5:SetTarget(aux.TargetBoolFunction(Card.IsFaceup))
c:RegisterEffect(e5)
--damage
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_CONTINUOUS+EFFECT_TYPE_SINGLE)
e6:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e6:SetCode(EVENT_PRE_BATTLE_DAMAGE)
e6:SetOperation(c21210002.damop)
c:RegisterEffect(e6)
--cannot be xyzmat
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_SINGLE)
e6:SetCode(EFFECT_CANNOT_BE_XYZ_MATERIAL)
e6:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e6:SetValue(1)
c:RegisterEffect(e6)
end
c21210002.named_with_Grim=1
c21210002.named_with_RedHat=1
function c21210002.IsGrim(c)
local m=_G["c"..c:GetCode()]
return m and m.named_with_Grim
end
function c21210002.IsAlice(c)
local m=_G["c"..c:GetCode()]
return m and m.named_with_Alice
end
function c21210002.IsRedHat(c)
local m=_G["c"..c:GetCode()]
return m and m.named_with_RedHat
end
function c21210002.spfilter(c)
return c:IsFaceup() and c21210002.IsGrim(c) and c:IsType(TYPE_MONSTER)
end
function c21210002.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c21210002.spfilter,c:GetControler(),LOCATION_MZONE,0,1,nil) and Duel.CheckLPCost(tp,500)
end
function c21210002.spop(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,500)
end
function c21210002.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local m=Duel.GetFieldGroupCount(e:GetHandler():GetControler(),0,LOCATION_MZONE)*300
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(m)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,m)
end
function c21210002.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,d,REASON_EFFECT)
end
function c21210002.con1(e)
local tp=e:GetHandlerPlayer()
return Duel.GetLP(tp)>Duel.GetLP(1-tp)
end
function c21210002.con2(e)
local tp=e:GetHandlerPlayer()
return Duel.GetLP(tp)<=Duel.GetLP(1-tp)
end
function c21210002.val(e,c)
return c:GetBaseAttack()*.3
end
function c21210002.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.ChangeBattleDamage(1-tp,0,false)
Duel.ChangeBattleDamage(tp,ev,false)
end
|
---@meta
---@class cc.EaseSineInOut :cc.ActionEase
local EaseSineInOut={ }
cc.EaseSineInOut=EaseSineInOut
---*
---@param action cc.ActionInterval
---@return self
function EaseSineInOut:create (action) end
---*
---@return self
function EaseSineInOut:clone () end
---*
---@param time float
---@return self
function EaseSineInOut:update (time) end
---*
---@return cc.ActionEase
function EaseSineInOut:reverse () end
---*
---@return self
function EaseSineInOut:EaseSineInOut () end
|
-- Copyright 2013 Jon S Akhtar (Sylvanaar)
--
-- 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.
--- manipulating Lua tables.
-- @module table
module "table"
---
-- Given an array where all elements are strings or numbers, returns
-- `table[i]..sep..table[i+1] ... sep..table[j]`. The default value for
-- `sep` is the empty string, the default for `i` is 1, and the default for
-- `j` is the length of the table. If `i` is greater than `j`, returns the
-- empty string.
function concat(t, sep, i, j) return { "", 1 } end
---
-- Inserts element `value` at position `pos` in `table`, shifting up
-- other elements to open space, if necessary. The default value for `pos` is
-- `n+1`, where `n` is the length of the table (see §2.5.5), so that a call
-- `table.insert(t,x)` inserts `x` at the end of table `t`.
function insert(t, pos, value) end
---
-- Returns the largest positive numerical index of the given table, or
-- zero if the table has no positive numerical indices. (To do its job this
-- function does a linear traversal of the whole table.)
function maxn(t) return 0 end
---
-- Removes from `table` the element at position `pos`, shifting down other
-- elements to close the space, if necessary. Returns the value of the removed
-- element. The default value for `pos` is `n`, where `n` is the length of the
-- table, so that a call `table.remove(t)` removes the last element of table
-- `t`.
function remove(t, pos) end
---
-- Sorts table elements in a given order,
-- *in-place*, from `table[1]` to `table[n]`, where `n` is the length of the
-- table. If `comp` is given, then it must be a function that receives two
-- table elements, and returns true when the first is less than the second
-- (so that `not comp(a[i+1],a[i])` will be true after the sort). If `comp`
-- is not given, then the '<' operator will be used.
function sort(t, comp) end
return table
|
--[[
********************************************************************************
Project owner: RageQuit community
Project name: GTW-RPG
Developers: Mr_Moose
Source code: https://github.com/404rq/GTW-RPG/
Bugtracker: https://discuss.404rq.com/t/issues
Suggestions: https://discuss.404rq.com/t/development
Version: Open source
License: BSD 2-Clause
Status: Stable release
********************************************************************************
]]--
--[[ Countdown timer manager ]]--
countdownTimers = {}
function showCountDown(plr, cmd, seconds, ...)
local text = table.concat({ ... }, " ")
local x,y,z = getElementPosition(plr)
if seconds and text and math.floor(seconds) < 20 and math.floor(seconds) > 2 then
seconds = math.floor(seconds)
for k,v in pairs(getElementsByType("player")) do
local rx,ry,rz = getElementPosition(v)
if getDistanceBetweenPoints3D(x,y,z, rx,ry,rz) < 100 and not isTimer(countdownTimers[v]) then
outputChatBox("-- "..getPlayerName(plr).." has requested a countdown --", v, 255, 255, 255)
countdownTimers[v] = setTimer(cd_timer_count, 1000, seconds, v, seconds)
setTimer(outputChatBox, 1000*seconds+1000, 1, text, v, 255, 255, 255)
elseif isTimer(countdownTimers[v]) then
exports.GTWtopbar:dm("A timer is already counting down in this area, please wait!", plr, 255, 0, 0)
end
end
else
outputChatBox("Correct syntax: /countdown <seconds> <text>", plr, 255, 255, 255)
end
end
addCommandHandler("countdown", showCountDown)
-- Display a count down timer for race or similar
function cd_timer_count(owner, timeInSeconds)
local i1,i2,i3 = getTimerDetails(countdownTimers[owner])
outputChatBox("#66FF00[Countdown] #FFFFFF"..i2, owner, 255, 255, 255, true)
end
|
------------------------------------------------------------------------
--[[ PGLMFactory ]]--
-- An example experiment builder for training BillionWords using a
-- Language Model of arbitrary dept
------------------------------------------------------------------------
local PGLMFactory, parent = torch.class("dp.PGLMFactory", "dp.LMFactory")
PGLMFactory.isPGLMFactory = true
function PGLMFactory:__init(config)
config = config or {}
local args, name, pg = xlua.unpack(
{config},
'PGLMFactory', nil,
{arg='name', type='string', default='LM', help=''},
{arg='pg', type='dp.Postgres', help='default is dp.Postgres()'}
)
config.name = name
parent.__init(self, config)
self._pg = pg or dp.Postgres()
end
function PGLMFactory:buildObserver(opt)
return {
self._logger,
dp.PGEarlyStopper{
start_epoch = 11,
pg = self._pg,
max_epochs = opt.max_tries,
save_strategy = self._save_strategy,
min_epoch = 10
},
dp.PGDone{pg=self._pg}
}
end
|
local Types = require(script.Parent.Parent.Types)
type Array<T> = Types.Array<T>
local function filterArray(arr: Array<any>, predicate: (any, number, Array<any>) -> boolean): Array<any>
local new = table.create(#arr)
for index, value in arr do
if predicate(value, index, arr) then
table.insert(new, value)
end
end
return new
end
return filterArray
|
local ScenarioUtils = import('/lua/sim/ScenarioUtilities.lua')
ScenarioUtils.CreateResources = function() end
local function localImport(fileName)
return import('/maps/beach_survival_ee.v0008/src/' .. fileName)
end
local function entropyLibImport(fileName)
return import('/maps/beach_survival_ee.v0008/vendor/EntropyLib/src/' .. fileName)
end
local Survival_TickInterval = 0.50; -- how much delay between each script iteration
local Survival_NextSpawnTime = 0;
local Survival_CurrentTime = 0;
local Survival_GameState = 0; -- 0 pre-spawn, 1 post-spawn, 2 player win, 3 player defeat
local Survival_PlayerCount = 0; -- how many human players there are
local Survival_MarkerRefs = {{}, {}, {}, {}, {}, {}, {}, {}, {}, {}}; -- 1 center / 2 waypoint / 3 spawn / 4 aty / 5 nuke / 6 navy
local Survival_UnitCountPerMinute = 0; -- how many units to spawn per minute (taking into consideration player count)
local Survival_UnitCountPerWave = 0; -- how many units to spawn with each wave (taking into consideration player count)
local Survival_MinWarnTime = 0;
local Survival_DefUnit = nil;
local Survival_DefCheckHP = 0.0;
local Survival_DefLastHP = 0;
local Survival_AtyUnits = {};
local Survival_NukeUnits = {};
local Survival_NextNukeTime = 10000; --2040;
local Survival_NukeFrequency = 135;
local Survival_ObjectiveTime = 3600; --2160 --2160;
local entropyLib = entropyLibImport('EntropyLib.lua').newInstance('/maps/beach_survival_ee.v0008/vendor/EntropyLib/')
local Survival_WaveTables = localImport('WaveTables.lua').getWaveTables()
local unitCreator = entropyLib.newUnitCreator()
local textPrinter = entropyLib.newTextPrinter()
local notifier = entropyLib.newNotifier()
local formatter = entropyLibImport('Formatter.lua')
local function defaultOptions()
if (ScenarioInfo.Options.opt_Survival_BuildTime == nil) then
ScenarioInfo.Options.opt_Survival_BuildTime = 0
end
if (ScenarioInfo.Options.opt_Survival_EnemiesPerMinute == nil) then
ScenarioInfo.Options.opt_Survival_EnemiesPerMinute = 32
end
if (ScenarioInfo.Options.opt_Survival_WaveFrequency == nil) then
ScenarioInfo.Options.opt_Survival_WaveFrequency = 240
end
if (ScenarioInfo.Options.opt_BeachHealthMultiplier == nil) then
ScenarioInfo.Options.opt_BeachHealthMultiplier = 1
end
if (ScenarioInfo.Options.opt_BeachDamageMultiplier == nil) then
ScenarioInfo.Options.opt_BeachDamageMultiplier = 1
end
if (ScenarioInfo.Options.opt_BeachAutoReclaim == nil) then
ScenarioInfo.Options.opt_BeachAutoReclaim = 0
end
if (ScenarioInfo.Options.opt_BeachAllFactions == nil) then
ScenarioInfo.Options.opt_BeachAllFactions = 0
end
if (ScenarioInfo.Options.opt_BeachParagon == nil) then
ScenarioInfo.Options.opt_BeachParagon = 0
end
end
local function setupAutoReclaim()
local percentage = ScenarioInfo.Options.opt_CenterAutoReclaim
if percentage > 0 then
unitCreator.onUnitCreated(function(unit, unitInfo)
if unitInfo.isSurvivalSpawned then
unit.CreateWreckage = function() end
end
end)
ForkThread(
entropyLibImport('AutoReclaim.lua').AutoResourceThread,
percentage / 100,
percentage / 100
)
end
end
local function setupHealthMultiplier()
local multiplier = ScenarioInfo.Options.opt_BeachHealthMultiplier
if multiplier ~= 1 then
unitCreator.onUnitCreated(function(unit, unitInfo)
if unitInfo.isSurvivalSpawned then
unit:SetVeterancy(5)
unit:SetMaxHealth(unit:GetMaxHealth() * multiplier)
unit:SetHealth(unit, unit:GetMaxHealth())
end
end)
end
end
local function setupDamageMultiplier()
local buffUnitDamage = entropyLibImport('UnitBuff.lua').buffDamage
unitCreator.onUnitCreated(function(unit, unitInfo)
if unitInfo.isSurvivalSpawned then
buffUnitDamage(unit, ScenarioInfo.Options.opt_BeachDamageMultiplier)
end
end)
end
local function vanguardify()
unitCreator.onUnitCreated(function(unit, unitInfo)
if unitInfo.isSurvivalSpawned and unitInfo.blueprintName == "DEL0204" then
unit:SetCustomName("Minion of Vanguard")
end
end)
end
local function isPlayerArmy(armyName)
return armyName == "ARMY_1" or armyName == "ARMY_2" or armyName == "ARMY_3" or armyName == "ARMY_4"
or armyName == "ARMY_5" or armyName == "ARMY_6" or armyName == "ARMY_7" or armyName == "ARMY_8"
end
local function getPlayerArmies()
local armies = {}
for armyIndex, armyName in ListArmies() do
if isPlayerArmy(armyName) then
armies[armyIndex] = armyName
end
end
return armies
end
local function setupAllFactions()
if ScenarioInfo.Options.opt_BeachAllFactions ~= 0 then
local allFactions = entropyLibImport('AllFactions.lua')
for armyIndex, armyName in ListArmies() do
if isPlayerArmy(armyName) then
if ScenarioInfo.Options.opt_BeachAllFactions == 1 then
allFactions.spawnExtraEngineers(ArmyBrains[armyIndex])
else
allFactions.spawnExtraAcus(ArmyBrains[armyIndex])
end
end
end
end
end
local welcomeMessages = localImport('WelcomeMessages.lua').newInstance(
textPrinter,
formatter,
ScenarioInfo.Options,
ScenarioInfo.map_version
)
local function showWelcomeMessages()
welcomeMessages.startDisplay()
end
local function setBotColor()
SetArmyColor("ARMY_SURVIVAL_ENEMY", 110, 90, 90)
end
local function setupResourceDeposits()
entropyLib.spawnAdaptiveResources(
localImport('../beach_survival_ee_tables.lua')
)
end
function OnPopulate()
ScenarioUtils.InitializeArmies()
defaultOptions()
setupResourceDeposits()
setBotColor()
setupAutoReclaim()
setupHealthMultiplier()
setupDamageMultiplier()
setupAllFactions()
Survival_InitGame()
import('/lua/weather.lua').CreateWeather()
showWelcomeMessages()
vanguardify()
end
local function createSurvivalUnit(blueprint, x, z, y)
local unit = unitCreator.create({
isSurvivalSpawned = true,
blueprintName = blueprint,
armyName = "ARMY_SURVIVAL_ENEMY",
x = x,
z = z,
y = y
})
return unit
end
-- called at start of game
--------------------------------------------------------------------------
function OnStart(self)
LOG("----- Survival MOD: Initializing game start sequence...");
-- start the survival tick
ForkThread(Survival_Tick);
end
-- initializes the game settings
--------------------------------------------------------------------------
Survival_InitGame = function()
LOG("----- Survival MOD: Configuring match settings...");
Survival_NextSpawnTime = ScenarioInfo.Options.opt_Survival_BuildTime; -- set first wave time to build time
Survival_MinWarnTime = Survival_NextSpawnTime - 60; -- set time for minute warning
ScenarioInfo.Options.Victory = 'sandbox'; -- force sandbox in order to implement our own rules
local Armies = ListArmies();
Survival_PlayerCount = table.getn(Armies) - 2; -- save player count, subtracting the 2 AI "players"
local ScenarioFramework = import('/lua/ScenarioFramework.lua')
-- loop through armies
for i, Army in ListArmies() do
-- check if it's a human army
if (Army == "ARMY_1" or Army == "ARMY_2" or Army == "ARMY_3" or Army == "ARMY_4" or Army == "ARMY_5" or Army == "ARMY_6" or Army == "ARMY_7" or Army == "ARMY_8") then
SetArmyUnitCap(Army, 5000)
ScenarioFramework.AddRestriction(Army, categories.WALL)
ScenarioFramework.AddRestriction(Army, categories.AIR - categories.ENGINEER)
if ScenarioInfo.Options.opt_BeachParagon == 0 then
ScenarioFramework.AddRestriction(Army, categories.xab1401)
end
-- loop through other armies to ally with other human armies
for x, ArmyX in ListArmies() do
-- if human army
if (ArmyX == "ARMY_1" or ArmyX == "ARMY_2" or ArmyX == "ARMY_3" or ArmyX == "ARMY_4" or ArmyX == "ARMY_5" or ArmyX == "ARMY_6" or ArmyX == "ARMY_7" or ArmyX == "ARMY_8") then
SetAlliance(Army, ArmyX, 'Ally');
end
end
SetAlliance(Army, "ARMY_SURVIVAL_ALLY", 'Ally'); -- friendly AI team
SetAlliance(Army, "ARMY_SURVIVAL_ENEMY", 'Enemy'); -- enemy AI team
SetAlliedVictory(Army, true); -- can win together of course :)
end
end
SetAlliance("ARMY_SURVIVAL_ALLY", "ARMY_SURVIVAL_ENEMY", 'Enemy'); -- the friendly and enemy AI teams should be enemies
SetIgnoreArmyUnitCap('ARMY_SURVIVAL_ENEMY', true); -- remove unit cap from enemy AI team
Survival_InitMarkers(); -- find and reference all the map markers related to survival
Survival_SpawnDef();
Survival_CalcWaveCounts(); -- calculate how many units per wave
Survival_CalcNukeFrequency(); -- calculate how frequently to launch nukes at the players (once launchers are spawned)
-- Survival_ObjectiveTime = Survival_ObjectiveTime * 60;
end
-- spawns a specified unit
--------------------------------------------------------------------------
Survival_InitMarkers = function()
LOG("----- Survival MOD: Initializing marker lists...");
local MarkerRef = nil;
local Break = 0;
local i = 1;
while (Break < 6) do
Break = 0; -- reset break counter
-- center
MarkerRef = GetMarker("SURVIVAL_CENTER_" .. i);
if (MarkerRef ~= nil) then
table.insert(Survival_MarkerRefs[1], i, MarkerRef);
-- Survival_MarkerCounts[1] = Survival_MarkerCounts[1] + 1;
else
Break = Break + 1;
end
-- path
MarkerRef = GetMarker("SURVIVAL_PATH_" .. i);
if (MarkerRef ~= nil) then
table.insert(Survival_MarkerRefs[2], i, MarkerRef);
-- Survival_MarkerCounts[2] = Survival_MarkerCounts[2] + 1;
else
Break = Break + 1;
end
-- spawn
MarkerRef = GetMarker("SURVIVAL_SPAWN_" .. i);
if (MarkerRef ~= nil) then
table.insert(Survival_MarkerRefs[3], i, MarkerRef);
-- Survival_MarkerCounts[3] = Survival_MarkerCounts[3] + 1;
else
Break = Break + 1;
end
-- aty
MarkerRef = GetMarker("SURVIVAL_ATY_" .. i);
if (MarkerRef ~= nil) then
table.insert(Survival_MarkerRefs[4], i, MarkerRef);
-- Survival_MarkerCounts[4] = Survival_MarkerCounts[4] + 1;
else
Break = Break + 1;
end
-- nuke
MarkerRef = GetMarker("SURVIVAL_NUKE_" .. i);
if (MarkerRef ~= nil) then
table.insert(Survival_MarkerRefs[5], i, MarkerRef);
-- Survival_MarkerCounts[5] = Survival_MarkerCounts[5] + 1;
else
Break = Break + 1;
end
-- navy
MarkerRef = GetMarker("SURVIVAL_SPAWN_NAVY_" .. i);
if (MarkerRef ~= nil) then
table.insert(Survival_MarkerRefs[6], i, MarkerRef);
else
Break = Break + 1;
end
i = i + 1
end
end
Survival_SpawnDef = function()
LOG("----- Survival MOD: Initializing defense object...");
local POS = ScenarioUtils.MarkerToPosition("SURVIVAL_CENTER_1");
Survival_DefUnit = CreateUnitHPR('XRB3301', "ARMY_SURVIVAL_ALLY", POS[1], POS[2], POS[3], 0,0,0);
Survival_DefUnit:SetReclaimable(false);
Survival_DefUnit:SetCapturable(false);
Survival_DefUnit:SetProductionPerSecondEnergy((Survival_PlayerCount * 100) + 0);
Survival_DefUnit:SetConsumptionPerSecondEnergy(1);
Survival_DefUnit:SetMaxHealth(58000 - (Survival_PlayerCount * 1000));
Survival_DefUnit:SetHealth(nil, 58000 - (Survival_PlayerCount * 1000));
Survival_DefUnit:SetRegenRate(100 - (Survival_PlayerCount * 5));
local Survival_DefUnitBP = Survival_DefUnit:GetBlueprint();
Survival_DefUnitBP.Intel.MaxVisionRadius = 400;
Survival_DefUnitBP.Intel.MinVisionRadius = 400;
Survival_DefUnitBP.Intel.VisionRadius = 400;
Survival_DefUnit:SetIntelRadius('Vision', 400);
local ShieldSpecs = {
ImpactEffects = 'SeraphimShieldHit01',
ImpactMesh = '/effects/entities/ShieldSection01/ShieldSection01_mesh',
Mesh = '/effects/entities/SeraphimShield01/SeraphimShield01_mesh',
MeshZ = '/effects/entities/Shield01/Shield01z_mesh',
RegenAssistMult = 60,
ShieldEnergyDrainRechargeTime = 60,
ShieldMaxHealth = 55000 + (Survival_PlayerCount * 5000),
ShieldRechargeTime = 60,
ShieldRegenRate = 290 - (Survival_PlayerCount * 10),
ShieldRegenStartTime = 1,
ShieldSize = 90,
ShieldVerticalOffset = -10,
};
Survival_DefUnit.OldOnKilled = Survival_DefUnit.OnKilled;
Survival_DefUnit.OnKilled = function(self, instigator, type, overkillRatio)
notifier.failure("The defense object has been destroyed. You have lost!", 8);
self.OldOnKilled(self, instigator, type, overkillRatio);
Survival_GameState = 3;
for i, army in ListArmies() do
if (army == "ARMY_1" or army == "ARMY_2" or army == "ARMY_3" or army == "ARMY_4" or army == "ARMY_5" or army == "ARMY_6" or army == "ARMY_7" or army == "ARMY_8") then
--killAllCommanders(army);
GetArmyBrain(army):OnDefeat();
end
end
end
Survival_DefLastHP = Survival_DefUnit:GetHealth();
end
-- loops every TickInterval to progress main game logic
--------------------------------------------------------------------------
Survival_Tick = function(self)
while (Survival_GameState < 2) do
Survival_CurrentTime = GetGameTimeSeconds();
Survival_UpdateWaves(Survival_CurrentTime);
if (Survival_CurrentTime >= Survival_ObjectiveTime) then
Survival_GameState = 2;
notifier.positive("You survived the onslaught! You are victorious!", 4);
Survival_DefUnit:SetCustomName("CHUCK NORRIS MODE!"); -- update defense object name
for i, army in ListArmies() do
if (army == "ARMY_1" or army == "ARMY_2" or army == "ARMY_3" or army == "ARMY_4" or army == "ARMY_5" or army == "ARMY_6" or army == "ARMY_7" or army == "ARMY_8") then
GetArmyBrain(army):OnVictory();
end
end
GetArmyBrain("ARMY_SURVIVAL_ENEMY"):OnDefeat();
else
if (Survival_GameState == 0) then -- build stage
if (Survival_CurrentTime >= Survival_NextSpawnTime) then -- if build period is over
Sync.ObjectiveTimer = 0; -- clear objective timer
Survival_GameState = 1; -- update game state to combat mode
notifier.warning("Space Vikings are attacking!", 4.5);
Survival_SpawnWave(Survival_NextSpawnTime);
Survival_NextSpawnTime = Survival_NextSpawnTime + ScenarioInfo.Options.opt_Survival_WaveFrequency; -- update next wave spawn time by wave frequency
else -- build period still active
Sync.ObjectiveTimer = math.floor(Survival_NextSpawnTime - Survival_CurrentTime); -- update objective timer
Survival_DefUnit:SetCustomName(SecondsToTime(Sync.ObjectiveTimer)); -- update defense object name
if ((Survival_MinWarnTime > 0) and (Survival_CurrentTime >= Survival_MinWarnTime)) then -- display 2 minute warning if we're at 2 minutes and it's appropriate to do so
notifier.warning("1 minute warning!", 2);
Survival_MinWarnTime = 0; -- reset 2 minute warning time so it wont be displayed again
end
end
elseif (Survival_GameState == 1) then -- combat stage
Sync.ObjectiveTimer = math.floor(Survival_ObjectiveTime - Survival_CurrentTime); -- update objective timer
if (Survival_CurrentTime >= Survival_NextSpawnTime) then -- ready to spawn a wave
Survival_SpawnWave(Survival_NextSpawnTime);
Survival_NextSpawnTime = Survival_NextSpawnTime + ScenarioInfo.Options.opt_Survival_WaveFrequency; -- update next wave spawn time by wave frequency
end
Survival_DefUnit:SetCustomName('Wave Set ' .. (Survival_WaveTables[2][1] - 1) .. "/" .. (table.getn(Survival_WaveTables[2]) - 1) ); -- .. ' (' .. SecondsToTime(Survival_CurrentTime - (Survival_WaveTables[1][Survival_WaveTables[1][1] + 1][1] * 60)).. ')');
--SecondsToTime((Survival_WaveTables[1][(Survival_WaveTables[1][1])][1] * 60) - Survival_CurrentTime)
end
Survival_DefCheckHP = Survival_DefCheckHP - Survival_TickInterval;
if (Survival_DefCheckHP <= 0) then
if (Survival_DefUnit:GetHealth() < Survival_DefLastHP) then
--BroadcastMSG("The Acen Accelerator is taking damage! (" .. Survival_DefUnit:GetHealth() / Survival_DefUnit:GetMaxHealth() .. "%)", 0.5);
notifier.warning("The defense object is taking damage! (" .. math.floor(Survival_DefUnit:GetHealthPercent() * 10) .. "%)", 0.5);
Survival_DefCheckHP = 2;
end
end
Survival_DefLastHP = Survival_DefUnit:GetHealth();
-- nuke stuff
if (Survival_CurrentTime >= Survival_NextNukeTime) then
Survival_FireNuke();
end
WaitSeconds(Survival_TickInterval);
end
end
KillThread(self);
end
-- updates spawn waves
--------------------------------------------------------------------------
Survival_UpdateWaves = function(GameTime)
local OldWaveID = 1;
-- check the wave table times vs the wave spawn time to see which waves we spawn
for x = 1, table.getn(Survival_WaveTables) do -- loop through each of the wavetable entries (ground/air/sea...)
-- OldWaveID = 1;
OldWaveID = Survival_WaveTables[x][1];
for y = Survival_WaveTables[x][1], table.getn(Survival_WaveTables[x]) do -- loop through each wave table within the category
if (GameTime >= (Survival_WaveTables[x][y][1] * 60)) then -- compare spawn time against the first entry spawn time for each wave table
if (Survival_WaveTables[x][1] < y) then -- should only update a wave once
Survival_WaveTables[x][1] = y; -- update the wave id for this wave category
if (x == 1) then -- if this is the special category update, immediately call the setup function
Survival_SpawnSpecialWave(GameTime);
end
end
else break; end
end
if (Survival_WaveTables[x][1] ~= OldWaveID) then -- if we have a new wave ID for this table
LOG("----- Survival MOD: Updating wave table from C:" .. x .. " ID:" .. Survival_WaveTables[x][1] .. " ( Set:" .. (Survival_WaveTables[x][1] - 1) ..") at " .. SecondsToTime(GameTime));
end
end
end
-- spawns a wave of units
--------------------------------------------------------------------------
Survival_SpawnWave = function(SpawnTime)
-- LOG("----- Survival MOD: Performing a wave spawn at " .. SecondsToTime(SpawnTime));
local WaveTable = nil;
local UnitTable = nil;
local UnitID = nil;
local OrderID = nil;
local POS = nil;
local RandID = nil;
-- check the wave table times vs the wave spawn time to see which waves we spawn
-- START AT TABLE 2 BECAUSE TABLE 1 IS SPECIAL UNITS (ARTY/NUKE)
for x = 2, table.getn(Survival_WaveTables) do -- loop through each of the wavetable entries (ground/air/sea...)
-- LOG("----- Survival MOD: Category(" .. x .. ") Wave Set (" .. Survival_WaveTables[x][1] - 1 .. ") (ID: " .. Survival_WaveTables[x][1] .. ");
-- for the amount of units we spawn in per wave
if (table.getn(Survival_WaveTables[x][Survival_WaveTables[x][1]]) > 1) then -- only do a wave spawn if there is a wave table available
-- for the amount of units we spawn in per wave
for z = 1,Survival_UnitCountPerWave do
WaveTable = Survival_WaveTables[x][Survival_WaveTables[x][1]]; -- grab the wave set table we're spawning from
RandID = math.random(2, table.getn(WaveTable)); -- pick a random unit table from within this wave set
UnitTable = WaveTable[RandID]; -- reference that unit table
OrderID = 2;
UnitID = Survival_GetUnitFromTable(UnitTable); -- pick a random unit id from this table
POS = Survival_GetPOS(UnitTable[2], 0);
Survival_SpawnUnit(UnitID, "ARMY_SURVIVAL_ENEMY", POS, OrderID);
end
end
end
end
-- spawns a specified unit
--------------------------------------------------------------------------
Survival_SpawnUnit = function(UnitID, ArmyID, POS, OrderID) -- blueprint, army, position, order
-- LOG("----- Survival MOD: SPAWNUNIT: Start function...");
local PlatoonList = {};
local NewUnit = createSurvivalUnit(UnitID, POS[1], POS[2], POS[3])
NewUnit:SetProductionPerSecondEnergy(325);
table.insert(PlatoonList, NewUnit); -- add unit to a platoon
Survival_PlatoonOrder(ArmyID, PlatoonList, OrderID); -- give the unit orders
end
-- spawns a wave of special units
--------------------------------------------------------------------------
Survival_SpawnSpecialWave = function(SpawnTime)
local UnitTable = Survival_WaveTables[1][Survival_WaveTables[1][1]][2]
local UnitID = nil;
local POS = nil;
if (table.getn(Survival_WaveTables[1][Survival_WaveTables[1][1]]) > 1) then -- only do a wave spawn if there is a wave table available
-- spawn one per player (up to the amount of spawn locations)
for x = 1, Survival_PlayerCount do
UnitID = Survival_GetUnitFromTable(UnitTable); -- pick a random unit id from this table
POS = Survival_GetPOS(UnitTable[2], 0);
if (POS ~= nil) then
Survival_SpawnSpecialUnit(UnitID, "ARMY_SURVIVAL_ENEMY", POS)
end
end
end
end
-- spawns a special unit
-- this is fairly hard-coded for this specific setup and will need to be adjusted for alternate rules and gameplay
--------------------------------------------------------------------------
Survival_SpawnSpecialUnit = function(UnitID, ArmyID, POS) -- blueprint, army, position
LOG("----- Survival MOD: SPAWNSPECIALUNIT: Start function...")
local PlatoonList = {}
local NewUnit = CreateUnitHPR(UnitID, ArmyID, POS[1], POS[2], POS[3], 0,0,0)
NewUnit:SetReclaimable(false)
NewUnit:SetCapturable(false)
NewUnit:SetProductionPerSecondEnergy(25000)
NewUnit:SetConsumptionPerSecondEnergy(0)
NewUnit:SetProductionPerSecondMass(1000)
NewUnit:SetMaxHealth(25000000)
NewUnit:SetHealth(nil, 25000000)
NewUnit:SetRegenRate(5000000)
table.insert(PlatoonList, NewUnit)
-- if this is an artillery unit
if ((UnitID == "UAB2302") or (UnitID == "URB2302") or (UnitID == "UEB2302") or (UnitID == "XSB2302") or (UnitID == "UEB2401") or (UnitID == "XAB2307") or (UnitID == "URL0401")) then
table.insert(Survival_AtyUnits, NewUnit); -- add unit to special unit list
NewUnit:SetIntelRadius('Vision', 1000);
elseif ((UnitID == "UAB2305") or (UnitID == "UEB2305") or (UnitID == "XSB2305") or (UnitID == "XSB2401")) then
table.insert(Survival_NukeUnits, NewUnit); -- add unit to special unit list
if (Survival_NextNukeTime == 10000) then
Survival_NextNukeTime = Survival_CurrentTime; -- update counter for next time
end
Survival_FireNuke();
end
entropyLib.newUnitRevealer(getPlayerArmies()).revealUnit(NewUnit, 14)
end
-- launches a nuke from a random silo
--------------------------------------------------------------------------
Survival_FireNuke = function()
LOG("----- Survival MOD: FIRENUKE: Start function...");
local RandID = 1;
if (Survival_CurrentTime >= Survival_NextNukeTime) then
LOG("----- Survival MOD: FIRENUKE: CurrentTime > NextNukeTime...");
if (table.getn(Survival_NukeUnits) >= 1) then
LOG("----- Survival MOD: FIRENUKE: table.getn >= 1...");
RandID = math.random(1, table.getn(Survival_NukeUnits)); -- pick a random nuke launcher
Survival_NukeUnits[RandID]:GiveNukeSiloAmmo(1); -- give it 1 ammo
IssueNuke({Survival_NukeUnits[RandID]}, ScenarioUtils.MarkerToPosition('SURVIVAL_CENTER_1' ) );
Survival_NextNukeTime = Survival_CurrentTime + Survival_NukeFrequency; -- update counter for next time
end
end
end
-- returns a random unit from within a specified unit table
--------------------------------------------------------------------------
Survival_GetUnitFromTable = function(UnitTable)
local RandID = math.random(3, table.getn(UnitTable));
local UnitID = UnitTable[RandID];
return UnitID;
end
-- returns a random spawn position
--------------------------------------------------------------------------
Survival_GetPOS = function(MarkerType, Randomization)
local RandID = 1;
-- local MarkerName = nil;
RandID = math.random(1, table.getn(Survival_MarkerRefs[MarkerType])); -- get a random value from the selected marker count
-- LOG("----- Survival MOD: GetPOS: RandID[" .. RandID .. "]");
if (RandID == 0) then
return nil;
end
local POS = Survival_MarkerRefs[MarkerType][RandID].position;
if (MarkerType == 4) then
table.remove(Survival_MarkerRefs[4], RandID);
elseif (MarkerType == 5) then
table.remove(Survival_MarkerRefs[5], RandID);
end
return POS
end
-- test platoon order function
--------------------------------------------------------------------------
Survival_PlatoonOrder = function(ArmyID, UnitList, OrderID)
-- LOG("----- Survival MOD: PLATOON: Start function...");
if (UnitList == nil) then
return;
end
local aiBrain = GetArmyBrain(ArmyID); --"ARMY_SURVIVAL_ENEMY");
local aiPlatoon = aiBrain:MakePlatoon('','');
aiBrain:AssignUnitsToPlatoon(aiPlatoon, UnitList, 'Attack', 'None'); -- platoon, unit list, "mission" and formation
-- 1 center / 2 waypoint / 3 spawn
if (OrderID == 4) then -- attack move / move
-- attack move to random path
POS = Survival_GetPOS(2, 25);
aiPlatoon:AggressiveMoveToLocation(POS);
-- move to random center
POS = Survival_GetPOS(1, 25);
aiPlatoon:MoveToLocation(POS, false);
elseif (OrderID == 3) then -- patrol paths
-- move to random path
POS = Survival_GetPOS(2, 25);
aiPlatoon:MoveToLocation(POS, false);
-- patrol to random path
POS = Survival_GetPOS(2, 25);
aiPlatoon:Patrol(POS);
elseif (OrderID == 2) then -- attack move
-- attack move to random path
POS = Survival_GetPOS(2, 25);
aiPlatoon:AggressiveMoveToLocation(POS);
-- attack move to random center
POS = Survival_GetPOS(1, 25);
aiPlatoon:AggressiveMoveToLocation(POS);
else -- default/order 1 is move
-- move to random path
POS = Survival_GetPOS(2, 25);
aiPlatoon:MoveToLocation(POS, false);
-- move to random center
POS = Survival_GetPOS(1, 25);
aiPlatoon:MoveToLocation(POS, false);
end
end
-- calculates how many units to spawn per wave
--------------------------------------------------------------------------
function Survival_CalcWaveCounts()
local WaveMultiplier = ScenarioInfo.Options.opt_Survival_WaveFrequency / 60;
Survival_UnitCountPerMinute = ScenarioInfo.Options.opt_Survival_EnemiesPerMinute * Survival_PlayerCount;
Survival_UnitCountPerWave = Survival_UnitCountPerMinute * WaveMultiplier;
LOG("----- Survival MOD: CalcWaveCounts = ((" .. ScenarioInfo.Options.opt_Survival_EnemiesPerMinute .. " EPM * " .. Survival_PlayerCount .. " Players = " .. Survival_UnitCountPerMinute .. ")) * ((" .. ScenarioInfo.Options.opt_Survival_WaveFrequency .. " Second Waves / 60 = " .. WaveMultiplier .. ")) = " .. Survival_UnitCountPerWave .. " Units Per Wave (( with Waves Per Minute of " .. (60 / ScenarioInfo.Options.opt_Survival_WaveFrequency) .. " = " .. (Survival_UnitCountPerWave * (60 / ScenarioInfo.Options.opt_Survival_WaveFrequency)) .. " of " .. Survival_UnitCountPerMinute .. " Units Per Minute.");
-- LOG("----- Survival MOD: CalcWaveCounts() accounts for " .. Survival_UnitCountPerWave .. " of " .. Survival_UnitCountPerMinute .. " units " .. (60 / ScenarioInfo.Options.opt_Survival_WaveFrequency) .. " times per minute.");
end
-- calculates how many units to spawn per wave
--------------------------------------------------------------------------
function Survival_CalcNukeFrequency()
local RatioEPM = (ScenarioInfo.Options.opt_Survival_EnemiesPerMinute - 16) / 48; -- returns 0-1 based on EPM difficulty
local RatioPC = (Survival_PlayerCount - 1) / 3; -- returns 0-1 based on player count
Survival_NukeFrequency = 135 - (RatioPC * 60) - (RatioEPM * 60);
LOG("----- Survival MOD: CalcNukeFrequency = " .. " 135 - (RatioEPM: " .. RatioEPM * 60 .. "/" .. RatioEPM .. ") - (RatioPC: " .. RatioPC * 60 .. "/" .. RatioPC .. ") = " .. Survival_NukeFrequency);
-- LOG("----- Survival MOD: CalcWaveCounts() accounts for " .. Survival_UnitCountPerWave .. " of " .. Survival_UnitCountPerMinute .. " units " .. (60 / ScenarioInfo.Options.opt_Survival_WaveFrequency) .. " times per minute.");
end
-- misc functions
--------------------------------------------------------------------------
-- returns hh:mm:ss from second count
-- taken from original survival script
SecondsToTime = function(Seconds)
return string.format("%02d:%02d", math.floor(Seconds / 60), math.mod(Seconds, 60));
end
-- gets map marker reference by name
-- taken from forum post by Saya
function GetMarker(MarkerName)
return Scenario.MasterChain._MASTERCHAIN_.Markers[MarkerName]
end
-- returns a random spawn position
Survival_RandomizePOS = function(POS, x)
local NewPOS = {0, 0, 0};
NewPOS[1] = POS[1] + ((math.random() * (x * 2)) - x);
NewPOS[3] = POS[3] + ((math.random() * (x * 2)) - x);
return NewPOS;
end
-- gets map marker reference by name
function GetMarker(MarkerName)
return Scenario.MasterChain._MASTERCHAIN_.Markers[MarkerName]
end
function printDamageMultiplierChange(message)
textPrinter.print(
string.rep(" ", 20) .. message .. " " .. formatter.formatMultiplier(ScenarioInfo.Options.opt_BeachDamageMultiplier),
{duration = 3, location = "leftcenter"}
)
end
function OnShiftF3()
if ScenarioInfo.Options.opt_BeachDamageMultiplier > 0.1 then
ScenarioInfo.Options.opt_BeachDamageMultiplier = ScenarioInfo.Options.opt_BeachDamageMultiplier - 0.1
end
printDamageMultiplierChange("Damage multiplier decreased to")
end
function OnShiftF4()
ScenarioInfo.Options.opt_BeachDamageMultiplier = ScenarioInfo.Options.opt_BeachDamageMultiplier + 0.1
printDamageMultiplierChange("Damage multiplier increased to")
end
function OnShiftF5()
welcomeMessages.displaySettings()
end
|
------------------------------------------------------
-- get.lua
--
-- Basic GET proecessing.
------------------------------------------------------
-- Load in a query string.
return function (qs)
-- Set aside memory.
local tt = {}
local xx
-- Evaluate the strings and return as a purty table.
if qs and string.len(qs) > 1
then
if string.find(qs,'&')
then
for _,v in ipairs(table.from(qs,'&')) do
xx = string.chop(v,'=') -- Chop has to work at first match.
tt[xx.key] = xx.value
end
else
xx = string.chop(qs,'=')
tt[xx.key] = xx.value
end
return tt
end
end
|
util.AddNetworkString("OCRP_AddBuddy")
util.AddNetworkString("OCRP_RemoveBuddy")
util.AddNetworkString("OCRP_ChiefMenu")
util.AddNetworkString("OCRP_Bank")
util.AddNetworkString("OCRP_Gas_Pump")
util.AddNetworkString("OCRP_CraftingMenu")
util.AddNetworkString("OCRP_Loot")
util.AddNetworkString("OCRP_LootItem")
util.AddNetworkString("OCRP_VoteMenu")
util.AddNetworkString("OCRP_MayorMenu")
util.AddNetworkString("OCRP_SC")
util.AddNetworkString("OCRP_BuyCar")
util.AddNetworkString("OCRP_SpawnPolice")
util.AddNetworkString("OCRP_SpawnTow")
util.AddNetworkString("OCRP_SpawnPoliceNEW")
util.AddNetworkString("OCRP_SpawnSWAT")
util.AddNetworkString("OCRP_SpawnAmbo")
util.AddNetworkString("OCRP_SpawnFireEngine")
util.AddNetworkString("CL_ShowSkin")
util.AddNetworkString("ocrp_bhydros")
util.AddNetworkString("ocrp_bskin")
util.AddNetworkString("OCRP_IsTyping")
util.AddNetworkString("OCRP_EndTyping")
util.AddNetworkString("OCRP_Broadcast")
util.AddNetworkString("OCRP_Chief_CreateObj")
util.AddNetworkString("OCRP_PoliceMax_Update")
util.AddNetworkString("OCRP_Chief_Supply_Locker")
util.AddNetworkString("OCRP_Swat_Ask")
util.AddNetworkString("OCRP_Swat_Reply")
util.AddNetworkString("OCRP_Hire_Police_Chief")
util.AddNetworkString("OCRP_Useitem")
util.AddNetworkString("OCRP_Dropitem")
util.AddNetworkString("OCRP_DepositItem")
util.AddNetworkString("OCRP_WithdrawItem")
util.AddNetworkString("OCRP_Job_Join")
util.AddNetworkString("OCRP_Job_Quit")
util.AddNetworkString("OCRP_DemotePlayer")
util.AddNetworkString("OCRP_WarrantPlayer")
util.AddNetworkString("OCRP_TaxUpdate")
util.AddNetworkString("OCRP_PoliceIncome_Update")
util.AddNetworkString("OCRP_Arrest_Player")
util.AddNetworkString("OCRP_Mayor_Donate_Police")
util.AddNetworkString("OCRP_Handcuffplayer")
util.AddNetworkString("OCRP_Pay_Bail")
util.AddNetworkString("OCRP_IllegalizeItem")
util.AddNetworkString("OCRP_BeginLooting")
util.AddNetworkString("OCRP_Mayor_CreateObj")
util.AddNetworkString("OCRP_Mayor_Choice")
util.AddNetworkString("OCRP_Vote")
util.AddNetworkString("OCRP_AddBallot")
util.AddNetworkString("OCRP_RemoveBallot")
util.AddNetworkString("OCRP_Withdraw_Money")
util.AddNetworkString("OCRP_Deposit_Money")
util.AddNetworkString("OCRP_AddToWardrobe")
util.AddNetworkString("OCRP_PickWardrobeChoice")
util.AddNetworkString("OCRP_ChangeFace")
util.AddNetworkString("OCRP_ResetProf")
util.AddNetworkString("OCRP_Buy_Property")
util.AddNetworkString("OCRP_Sell_Property")
util.AddNetworkString("OCRP_Set_Permissions")
util.AddNetworkString("OCRP_SearchReply")
util.AddNetworkString("OCRP_Search")
util.AddNetworkString("SV_BuyClothes")
util.AddNetworkString("OCRP_UpgradeSkill")
util.AddNetworkString("OCRP_SendTrade")
util.AddNetworkString("OCRP_EndTrade")
util.AddNetworkString("OCRP_ConfirmTrade")
util.AddNetworkString("OCRP_ToggleMap")
util.AddNetworkString("OCRP_BroadcastMap")
util.AddNetworkString("OCRP_SendMarker")
util.AddNetworkString("OCRP_RemoveMarker")
util.AddNetworkString("OCRP_ShowStartModel")
util.AddNetworkString("OCRP_TaxiMapOpen")
util.AddNetworkString("OCRP_SendTaxiRoute")
sound.Add({
name = "unfurl_map",
channel = CHAN_AUTO,
volume = 1,
level = 70,
pitch = 100,
sound = "ocrp/map_unfurl.wav",
})
net.Receive("OCRP_ToggleMap", function(len, ply)
local bool = net.ReadInt(2)
ply:EmitSound("unfurl_map")
timer.Simple(1, function()
ply:StopSound("unfurl_map", 60, 100, 1)
end)
net.Start("OCRP_BroadcastMap")
net.WriteEntity(ply)
net.WriteInt(bool, 2)
net.Broadcast()
end)
if not markers then markers = {} end
net.Receive("OCRP_RemoveMarker", function(len, ply)
local identifier = net.ReadString()
if markers[identifier] and (markers[identifier].Owner == ply:SteamID()
or markers[identifier].Icon == "exclamation-red" and ply:Team() == CLASS_POLICE
or markers[identifier].Icon == "fire-big" and ply:Team() == CLASS_FIREMAN
or markers[identifier].Icon == "bandaid" and ply:Team() == CLASS_MEDIC
or markers[identifier].Icon == "exclamation-circle" and (ply:Team() == CLASS_Mayor or ply:Team() == CLASS_CHIEF)) then
SV_PrintToAdmin(ply, "[REMOVE-MARKER]", "removed " .. markers[identifier].Icon .. " marker.")
RemoveMarker(identifier, ply)
end
end)
function RemoveMarker(identifier, ply)
if markers[identifier] then
if ply and not string.find(identifier, ply:SteamID()) then return end
local i = markers[identifier].Icon
if i == "traffic-cone" then
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_Tow then
v:Hint("Someone has removed their towtruck request.")
end
end
elseif i == "car-taxi" then
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_TAXI then
v:Hint("Someone has removed their taxi request.")
end
end
elseif i == "flag-checker" then
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_TAXI then
v:Hint("Your client has removed their destination.")
end
end
for k,v in pairs(ents.FindByClass("prop_vehicle_jeep")) do
if v:IsValid() and v:GetNWInt("Client") == ply:EntIndex() then
v.Destination = nil
end
end
elseif i == "star" or i == "target" then
local m = "base"
if i == "target" then m = "target" end
if ply and ply:IsValid() then
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:GetOrg() ~= 0 and v:GetOrg() == ply:GetOrg() then
v:Hint(ply:Nick() .. " has removed your org " .. m .. " marker.")
end
end
end
elseif i == "exclamation-red" then
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_POLICE then
v:Hint(ply:Nick() .. " has cancelled a 911 police request.")
end
end
elseif i == "bandaid" then
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_MEDIC then
v:Hint(ply:Nick() .. " has cancelled a 911 ambulance request.")
end
end
elseif i == "fire-big" then
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_FIREMAN then
v:Hint(ply:Nick() .. " has cancelled a 911 fire report.")
end
end
elseif i == "exclamation-circle" then
for k,v in pairs(player.GetAll()) do
if v:IsValid() and (v:Team() == CLASS_CHIEF or v:Team() == CLASS_Mayor or v:Team() == CLASS_MEDIC or v:Team() == CLASS_POLICE or v:Team() == CLASS_FIREMAN or v:Team() == CLASS_SWAT) then
v:Hint(ply:Nick() .. " has cancelled a government notification.")
end
end
end
markers[identifier] = nil
net.Start("OCRP_RemoveMarker")
net.WriteString(identifier)
net.Broadcast()
end
end
function CollectNeededMarkers(ply)
local tosend = {}
for k,v in pairs(markers) do
if v.Icon == "star" or v.Icon == "target" then
local own
for _,p in pairs(player.GetAll()) do
if p:IsValid() and p:SteamID() == v.Owner then
own = p
break
end
end
if own and own:IsValid() and own:GetOrg() ~= 0 and own:GetOrg() == ply:GetOrg() then
tosend[k] = v
end
elseif v.Icon == "store" then
tosend[k] = v
end
end
for k,v in pairs(tosend) do
net.Start("OCRP_SendMarker")
net.WriteString(k)
net.WriteString(v.Icon)
net.WriteFloat(v.Perx)
net.WriteFloat(v.Pery)
net.Send(ply)
end
end
net.Receive("OCRP_SendMarker", function(len, ply)
local icon = net.ReadString()
local perx = net.ReadFloat()
local pery = net.ReadFloat()
local recipients = {}
local time
SV_PrintToAdmin(ply, "[MARKER-PLACE]", "placed a " .. icon .. " marker.")
if icon == "bandaid" then
time = 180
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_MEDIC then
v:Hint("Someone has requested an ambulance, check your map for the location!")
table.insert(recipients, v)
end
end
elseif icon == "car-taxi" then
time = 180
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_TAXI then
v:Hint("Someone has requested taxi pickup, check your map for the location!")
table.insert(recipients, v)
end
end
elseif icon == "exclamation-circle" then
if not ply:Team() == CLASS_Mayor and not ply:Team() == CLASS_CHIEF then return end
time = 300
for k,v in pairs(player.GetAll()) do
if v:IsValid() and (v:Team() == CLASS_POLICE or v:Team() == CLASS_MEDIC or v:Team() == CLASS_FIREMAN or v:Team() == CLASS_SWAT or v:Team() == CLASS_CHIEF) then
local job = "mayor"
if ply:Team() == CLASS_CHIEF then
job = "police chief"
end
v:Hint("The " .. job .. " has sent you an alert, check your map for the location.")
table.insert(recipients, v)
end
end
elseif icon == "exclamation-red" then
time = 180
for k,v in pairs(player.GetAll()) do
if v:IsValid() and (v:Team() == CLASS_POLICE or v:Team() == CLASS_SWAT or v:Team() == CLASS_CHIEF) then
v:Hint("Someone has called 911 requesting immediate assistance, check your map for the location!")
table.insert(recipients, v)
end
end
elseif icon == "fire-big" then
time = 180
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_FIREMAN then
v:Hint("Someone has reported a fire, check your map for the location!")
table.insert(recipients, v)
end
end
elseif icon == "flag-checker" then
local route = CalculateTaxiRoute(ply:GetPos(), PersToWorld(perx, pery))
local price = CalculateTaxiPrice(route)
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_TAXI then
if v:GetVehicle() and v:GetVehicle():IsValid() and v:GetVehicle():GetNWInt("Client") == ply:EntIndex() then
v:GetVehicle().Destination = route[table.getn(route)]
v:GetVehicle().Price = price
if price == 0 then
ply:Hint("You're already at your destination!")
RemoveMarker(ply:SteamID() .. "_flag-checker", ply)
else
v:Hint("Your client has marked a destination, the price is $" .. tostring(price))
ply:Hint("Your taxi fare is going to be $" .. tostring(price))
if ply:GetMoney("Wallet") < price then
ply:Hint("You don't have enough money in your wallet to pay for this taxi ride!")
v:Hint("Your client cannot afford this fare. You may wish to take them to an ATM.")
end
net.Start("OCRP_SendTaxiRoute")
net.WriteTable(route)
net.Send(v)
table.insert(recipients, v)
end
end
end
end
elseif icon == "heart-break" then
time = 60
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_MEDIC then
v:Hint("A life alert has been activated, check your map for the location!")
table.insert(recipients, v)
end
end
elseif icon == "star" then
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:InOrg() and v:GetOrg() == ply:GetOrg() and v:HasItem("item_cell") then
v:Hint(ply:Nick() .. " has marked your org base, check your map for the location!")
table.insert(recipients, v)
for k1,v1 in pairs(markers) do
if v1.Icon == "star" then
local own
for _,p in pairs(player.GetAll()) do
if v1.Owner == p:SteamID() then
own = p
break
end
end
if own and own:IsValid() and own:GetOrg() ~= 0 and own:GetOrg() == ply:GetOrg() then
RemoveMarker(k1)
end
end
end
end
end
elseif icon == "store" then
for k,v in pairs(player.GetAll()) do
table.insert(recipients, v)
end
elseif icon == "target" then
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:InOrg() and v:GetOrg() == ply:GetOrg() and v:HasItem("item_cell") then
v:Hint(ply:Nick() .. " has marked your org target, check your map for the location!")
table.insert(recipients, v)
for k1,v1 in pairs(markers) do
if v1.Icon == "target" then
local own
for _,p in pairs(player.GetAll()) do
if v1.Owner == p:SteamID() then
own = p
break
end
end
if own and own:IsValid() and own:GetOrg() ~= 0 and own:GetOrg() == ply:GetOrg() then
RemoveMarker(k1)
end
end
end
end
end
elseif icon == "traffic-cone" then
time = 180
for k,v in pairs(player.GetAll()) do
if v:IsValid() and v:Team() == CLASS_Tow then
v:Hint("Someone has requested a towtruck, check your map for the location!")
table.insert(recipients, v)
end
end
end
if not table.HasValue(recipients, ply) then table.insert(recipients, ply) end
for k,v in pairs(recipients) do
net.Start("OCRP_SendMarker")
net.WriteString(ply:SteamID() .. "_" .. icon)
net.WriteString(icon)
net.WriteFloat(perx)
net.WriteFloat(pery)
net.Send(v)
end
if icon == "flag-checker" then
net.Start("OCRP_TaxiMapOpen")
net.Send(ply)
end
if time then
local stmid = ply:SteamID()
timer.Simple(time, function()
RemoveMarker(stmid .. "_" .. icon)
end)
end
markers[ply:SteamID() .. "_" .. icon] = {Perx = perx, Pery = pery, Icon = icon, Owner = ply:SteamID()}
recipients = {}
end)
function CalculateTaxiRoute(begin, destination)
local starter = -1
local ender = -1
local shortest = 1000000000000000
local shortestend = 10000000000000
for k,v in pairs(taxi_nodes) do
if begin:Distance(v.Pos) < shortest then
starter = k
shortest = begin:Distance(v.Pos)
end
if destination:Distance(v.Pos) < shortestend then
ender = k
shortestend = destination:Distance(v.Pos)
end
end
if starter == -1 then print("failed to find starter node") return end
if ender == -1 then print("failed to find end node") return end
-- Now we have a starting node and an ending node, expand frontier
local frontier = {}
table.insert(frontier, starter)
came_from = {}
came_from[starter] = -1
local tests = 0
while table.getn(frontier) > 0 and tests <= 100 do -- limit while to not crash server if something goes wrong
local current = frontier[1]
table.remove(frontier, 1)
for k,v in pairs(taxi_nodes[current].Neighbors) do
if not came_from[v] then
table.insert(frontier, v)
came_from[v] = current
end
end
tests = tests + 1
end
local path = {}
local current = ender
tests = 0
while current != starter and tests <= 100 do
table.insert(path, 1, came_from[current])
current = came_from[current]
tests = tests + 1
end
table.insert(path, ender)
return path
end
function CalculateTaxiPrice(path)
local distance = 0
local last = -1
for k,v in pairs(path) do
if last != -1 then
distance = distance + taxi_nodes[v].Pos:Distance(taxi_nodes[last].Pos)
end
last = v
end
return 100 + math.Round(.01*distance)
end
function PersToWorld(perx, pery)
local topleft_realmap = Vector(12903, 15334, 0)
local botright_realmap = Vector(-14311, -12566, 0)
local worldheight = math.abs(topleft_realmap.x) + math.abs(botright_realmap.x)
local worldwidth = math.abs(topleft_realmap.y) + math.abs(botright_realmap.y)
local fakepos = Vector(0-pery*worldwidth, 0-perx*worldheight, 0)
return LocalToWorld(fakepos, Angle(0,0,0), topleft_realmap, Angle(0,0,0))
end
|
local handle = {}
local handlers
function handle.message( msg, msgType, console )
if handlers[msgType] then
local send = handlers[msgType]( msg, console ) -- get the return value from the handler to know what to send
if send then
return send
end
elseif msgType == "unknown" then -- if the message type is unknown then do nothing
else
print( "ERROR: message type " .. msgType .. " for message <" .. msg .. "> does not have a handler." )
end
end
function handleChat( msg, console )
local username = string.sub( msg, string.find( msg, "[%w_]+" ) )
local sStart, sEnd = string.find( msg, "[%w_]+![%w_]+@[%w_]+%.tmi%.twitch%.tv PRIVMSG #[%w_]+ :" )
local chatMsg = string.sub( msg, sEnd + 1 )
console:print( username .. ": " .. chatMsg )
end
function handlePing( pingMsg )
local pongMsg = string.gsub( pingMsg, "PING", "PONG" ) -- replace the string "PING" with "PONG" in the ping message
return pongMsg -- send the pong message back to handle.message so it can send it to main.lua for sending to IRC
end
handlers =
{
chat = handleChat,
ping = handlePing
}
return handle
|
require("lualine").setup {
options = {
theme = "nightfox",
globalstatus = true,
},
sections = {
lualine_c = {
{
"filename",
file_status = true,
path = 1
}
},
lualine_x = {'encoding', 'filetype'},
},
}
|
local Category = "SGM Cars"
local V = {
// Required information
Name = "Golf Cart",
Class = "prop_vehicle_jeep",
Category = Category,
// Optional information
Author = "SentryGunMan, Turn 10",
Information = "vroom vroom",
Model = "models/sentry/golfcart.mdl",
KeyValues = {
vehiclescript = "scripts/vehicles/sentry/golfcart.txt"
}
}
list.Set( "Vehicles", "golfcart_sgm", V )
|
package("qt5gui")
set_base("qt5lib")
set_kind("library")
on_load(function (package)
package:add("deps", "qt5core", {debug = package:is_debug(), version = package:version_str()})
package:data_set("libname", "Gui")
if package:is_plat("android") then
package:data_set("syslinks", "GLESv2")
elseif package:is_plat("iphoneos") then
package:data_set("links", "qtharfbuzz")
package:data_set("syslinks", {"qtlibpng", "z"})
end
package:base():script("load")(package)
package:set("kind", "library")
end)
on_test(function (package)
local cxflags
if not package:is_plat("windows") then
cxflags = "-fPIC"
end
assert(package:check_cxxsnippets({test = [[
int test(int argc, char** argv) {
QGuiApplication app (argc, argv);
return app.exec();
}
]]}, {configs = {languages = "c++14", cxflags = cxflags}, includes = {"QGuiApplication"}}))
end)
|
AddCSLuaFile()
local VehicleName = "Unmarked Jeep Cherokee"
local EMV = {}
EMV.Siren = 2
EMV.Skin = 0
EMV.Color = Color(255,255,255)
EMV.BodyGroups = {
{ 0, 0 }, -- Body
{ 1, 0 }, -- cockpit
{ 2, 0 }, -- wheel
{ 3, 0 }, -- wing
}
EMV.Props = {
[1] = {
Model = "models/schmal/laptop_stand.mdl",
Scale = .65,
Pos = Vector(9, 21, 38.2),
Ang = Angle( 0, 130, 0 ),
RenderGroup = RENDERGROUP_OPAQUE,
RenderMode = RENDERMODE_NORMAL
},
[2] = {
Model = "models/tdmcars/emergency/equipment/laptop.mdl",
Scale = 1.2,
Pos = Vector(2, 13, 53),
Ang = Angle( 0, 120, 0 ),
RenderGroup = RENDERGROUP_OPAQUE,
RenderMode = RENDERMODE_NORMAL
},
--[[ [3] = {
Model = "models/schmal/motorola_car_radio.mdl",
Scale = 1,
Pos = Vector(0, 15, 50),
Ang = Angle( 0, 180, 270),
RenderGroup = RENDERGROUP_OPAQUE,
RenderMode = RENDERMODE_NORMAL
},]]
}
EMV.Auto = {
-----------FRONT FOG LIGHTS---------------
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 33, 108, 32.5 ),
Ang = Angle( -5, -43, 0 ),
Color1 = "RED",
Phase = "CA"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 27.5, 112, 32),
Ang = Angle( -5, -27, 0 ),
Color1 = "RED",
Phase = "CA"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -33, 108, 32.2 ),
Ang = Angle( 5, 45, 0),
Color1 = "BLUE",
Phase = "CA"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -29, 111.2, 32 ),
Ang = Angle( 5, 30.3, 0 ),
Color1 = "BLUE",
Phase = "CA"
},
---------------------HEADLIGHT FLASHERS---------------
{
ID = "Whelen Vertex",
Scale = 3,
Pos = Vector( 36.7, 98.9, 46.4 ),
Ang = Angle( 0, 0, 270 ),
Phase = "A"
},
{
ID = "Whelen Vertex",
Scale = 3,
Pos = Vector( -36, 98.8, 46 ),
Ang = Angle( 0, 0, 270 ),
Phase = "B"
},
------------FRONT LIGHTBAR------------
{
ID = "TDM Front Interior Lightbar",
Scale = 1.15,
Pos = Vector( 0, 25, 75 ),
Ang = Angle( 0, 90, 0 )
},
------------SKIRT LIGHTING DRIVER-------
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43, 38, 18.8 ),
Ang = Angle( 1, 90, 10 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43, 31.85, 18.9 ),
Ang = Angle( 1, 90, 10 ),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43, 25.66, 18.98 ),
Ang = Angle( 1, 90, 10 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43, 19.5, 19.07 ),
Ang = Angle( 1, 90, 10 ),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43, 13.32, 19.15 ),
Ang = Angle( 1, 90, 10 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43, 7.2, 19.25 ),
Ang = Angle( 1, 90, 10 ),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43.02, 1, 19.34),
Ang = Angle( 1, 90, 10 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43.04, -5.2, 19.45 ),
Ang = Angle( 1, 90, 10 ),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43.04, -11.40, 19.55 ),
Ang = Angle( 1, 90, 10 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43.04, -17.60, 19.75 ),
Ang = Angle( 1, 90, 9),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43.04, -23.80, 19.85 ),
Ang = Angle( 1, 90, 9 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43, -30, 19.98 ),
Ang = Angle( 1, 90, 3 ),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( -43.04, -36.19, 20.08 ),
Ang = Angle( 1, 86, 0),
Color1 = "RED",
Phase = "A"
},
-----SKIRT LIGHTING PASSENGER------------
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43, 38, 18.8 ),
Ang = Angle( -1, 270, 10 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43, 31.85, 18.9 ),
Ang = Angle( -1, 270, 10 ),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43, 25.66, 18.98 ),
Ang = Angle( -1, 270, 10 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43, 19.5, 19.07 ),
Ang = Angle( -1, 270, 10 ),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43, 13.32, 19.15 ),
Ang = Angle( -1, 270, 10 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43, 7.2, 19.25 ),
Ang = Angle( -1, 270, 10 ),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43.02, 1, 19.34),
Ang = Angle( -1, 270, 10 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43.04, -5.2, 19.45 ),
Ang = Angle( -1, 270, 10 ),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43.04, -11.40, 19.55 ),
Ang = Angle( -1, 270, 10 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43.04, -17.60, 19.75 ),
Ang = Angle( -1, 270, 9),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43.04, -23.80, 19.85 ),
Ang = Angle( -1, 270, 9 ),
Color1 = "RED",
Phase = "A"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43, -30, 19.98 ),
Ang = Angle( -1, 270, 3 ),
Color1 = "BLUE",
Phase = "B"
},
{
ID = "Whelen Ion",
Scale = 1,
Pos = Vector( 43.04, -36.19, 20.08 ),
Ang = Angle( -1, 270, 0),
Color1 = "RED",
Phase = "A"
},
---------REAR Lights-------------
-------------REAR BOTTOM LIGHTS----------
{
ID = "Whelen 700",
Scale = 1,
Pos = Vector( -35, -111.8, 32 ),
Ang = Angle( 0, -26, 90 ),
Color1 = "BLUE",
Phase = "A"
},
{
ID = "Whelen 700",
Scale = 1,
Pos = Vector( 35, -111.8, 32 ),
Ang = Angle( 0, 26, 90 ),
Color1 = "RED",
Phase = "B"
},
------------REAR WINDOW-------
{
ID = "TDM Rear Interior Lightbar",
Scale = 1.1,
Pos = Vector( 0, -86, 81),
Ang = Angle( 0, 270, 0 )
},
{
ID = "Whelen CenCom Panel",
Scale = 1.15,
Pos = Vector( 0, 26.5, 58.4 ),
Ang = Angle( 0, 0, 65)
},
}
EMV.Sequences = {
Sequences = {
{ Name = "CODE 1", Stage = "M1", Components = {}, Disconnect = {} },
{ Name = "CODE 2", Stage = "M2", Components = {}, Disconnect = {} },
{ Name = "CODE 3", Stage = "M3", Components = {}, Disconnect = {} }
},
Traffic = {
{ Name = "LEFT", Stage = "L", Components = {}, Disconnect = {} },
{ Name = "DIVERGE", Stage = "D", Components = {}, Disconnect = {} },
{ Name = "RIGHT", Stage = "R", Components = {}, Disconnect = {} }
}
}
local V = {
Name = VehicleName,
Class = "prop_vehicle_jeep",
Category = "Pringles Unmarked Cars",
Author = "Officer Pringle {1A-181}",
Model = "models/tdmcars/jeep_grandche.mdl",
KeyValues = { vehiclescript = "scripts/vehicles/TDMCars/grandche.txt" },
IsEMV = true,
EMV = EMV,
HasPhoton = true,
Photon = "PHOTON_INHERIT"
}
list.Set( "Vehicles", VehicleName, V )
if EMVU then EMVU:OverwriteIndex( VehicleName, EMV ) end
|
--------------------------------
-- @module Technique
-- @extend RenderState
-- @parent_module cc
--------------------------------
-- Returns the number of Passes in the Technique
-- @function [parent=#Technique] getPassCount
-- @param self
-- @return int#int ret (return value: int)
--------------------------------
-- Returns a new clone of the Technique
-- @function [parent=#Technique] clone
-- @param self
-- @return Technique#Technique ret (return value: cc.Technique)
--------------------------------
-- Adds a new pass to the Technique.<br>
-- Order matters. First added, first rendered
-- @function [parent=#Technique] addPass
-- @param self
-- @param #cc.Pass pass
-- @return Technique#Technique self (return value: cc.Technique)
--------------------------------
-- Returns the list of passes
-- @function [parent=#Technique] getPasses
-- @param self
-- @return array_table#array_table ret (return value: array_table)
--------------------------------
-- Returns the name of the Technique
-- @function [parent=#Technique] getName
-- @param self
-- @return string#string ret (return value: string)
--------------------------------
-- Returns the Pass at given index
-- @function [parent=#Technique] getPassByIndex
-- @param self
-- @param #int index
-- @return Pass#Pass ret (return value: cc.Pass)
--------------------------------
--
-- @function [parent=#Technique] create
-- @param self
-- @param #cc.Material parent
-- @return Technique#Technique ret (return value: cc.Technique)
--------------------------------
-- Creates a new Technique with a GLProgramState.<br>
-- Method added to support legacy code
-- @function [parent=#Technique] createWithGLProgramState
-- @param self
-- @param #cc.Material parent
-- @param #cc.GLProgramState state
-- @return Technique#Technique ret (return value: cc.Technique)
return nil
|
Asset = "http://www.roblox.com/Thumbs/Asset.ashx?x=420&y=230&assetId="
me = game.Players.xSoulStealerx
char = me.Character
torso = char.Torso
local brick = Instance.new("Part",workspace)
brick.Anchored = true
brick.formFactor = "Custom"
brick.Size = Vector3.new(30, 20, 1)
brick.CFrame = torso.CFrame * CFrame.new(0, 0, -40) * CFrame.Angles(0, math.pi, 0)
brick.Changed:connect(function()
brick.Parent = workspace
brick.CFrame = torso.CFrame * CFrame.new(0, 0, -40) * CFrame.Angles(0, math.pi, 0)
end)
function AddDecal(id)
local base = brick
for _,v in pairs(base:children()) do if v:IsA("Decal") or v:IsA("Texture") then v:remove() end end
local dec = Instance.new("Decal", base)
dec.Texture = id
dec.Face = "Front"
end
function Chat(msg, plr)
if string.sub(msg, 1, 8) == "picture/" then
local num = tonumber(msg:sub(9))
if num then
AddDecal(Asset..num)
end
elseif string.sub(msg, 1, 4) == "hat/" then
local char = plr.Character
if char then
local hat = {}
for _,v in pairs(char:children()) do
if v:IsA("Hat") then table.insert(hat, v) end
end
if #hat > 0 then
hat = hat[math.random(1,#hat)]
local handle = hat:findFirstChild("Handle")
if handle then
local mesh = nil
for i,v in pairs(handle:children()) do
if v:IsA("SpecialMesh") then mesh = v break end
end
if mesh then
AddDecal(mesh.TextureId)
end
end
end
end
elseif msg == "remolol" then
script.Disabled = true
end
end
for _,v in pairs(game.Players:GetPlayers()) do v.Chatted:connect(function(msg) Chat(msg, v) end) end
game.Players.PlayerAdded:connect(function(p) p.Chatted:connect(function(msg) Chat(msg, p) end) end)
|
classer = require "classer"
bump = require "lib.bump"
maze = require "maze"
db = require "db"
enemy = require "enemy"
pill = require "pill"
bar = require "bar"
local universe = {}
universe.Universe = classer.ncls()
function universe.Universe:_init(gridSize)
self.world = bump.newWorld(gridSize)
self.coins = {}
self.pills = {}
self.enemies = {}
self.player = nil
self.level = db.lvl[1]
self.powerbar = bar.Bar(100, 500, 100, 8, 0)
self.maxcoins = 0
end
-- Populate
function universe.Universe:populate()
local tileW, tileH = self.level.tileW, self.level.tileH
for x = 1,self.level.width do
for y = 1,self.level.height do
tile = self.level.tileTable[x][y]
if tile:match(maze.Maze.blocks) then
self.world:add({ctype = tile}, (x - 1)*tileW, (y - 1)*tileH, tileW, tileH)
elseif tile == "." then
self:parseCoin(x, y)
elseif tile:match(maze.Maze.enemies) then
self:parseEnemy(tile, x, y)
elseif tile == "s" then
self:parsePlayer(x, y)
elseif tile == "u" then
self:parsePill(x, y)
elseif tile == "e" then
--self:parseSpawn(x, y)
end
end
end
for _,e in ipairs(self.enemies) do
e.maxCoins = #self.coins
end
end
function universe.Universe:parseEnemy(tile, tx, ty)
local enemyIndex = {b = 1, c = 2, i = 3, p = 4}
local x = (tx - 1) * self.level.tileW
local y = (ty - 1) * self.level.tileH
local names = {
b = "blinky",
i = "inky",
p = "pinky",
c = "clyde"
}
local e = enemy.Enemy(names[tile], self, self.level, self.level.tileW, self.level.tileH, x, y, 45, db.img.enemy, enemyIndex[tile])
if tile ~= "b" then
self:parseSpawn(tx, ty)
end
table.insert(self.enemies, e)
end
function universe.Universe:parseSpawn(tx, ty)
local x = (tx - 1) * self.level.tileW
local y = (ty - 1) * self.level.tileH
local ox, oy = self.level.tileW/1.25, self.level.tileH/1.25
self.world:add({ctype = "spawn"}, x + ox/2, y + oy/2, ox, oy)
end
function universe.Universe:parsePlayer(tx, ty)
local x = (tx - 1) * self.level.tileW
local y = (ty - 1) * self.level.tileH
self.player = player.Player("luaman", self, self.level,self.level.tileW, self.level.tileH, x, y, 60, db.img.player)
end
function universe.Universe:parseCoin(tx, ty)
local tileW, tileH = self.level.tileW, self.level.tileH
local c = coin.Coin(self.world, 1, (tx - 1) * tileW, (ty - 1) * tileH, tileW, tileH)
table.insert(self.coins, c)
end
function universe.Universe:parsePill(tx, ty)
local tileW, tileH = self.level.tileW, self.level.tileH
local p = pill.Pill(self.world, (tx - 1) * tileW, (ty - 1) * tileH, tileW, tileH)
table.insert(self.pills, p)
end
-- Update
function universe.Universe:update(dt)
local prev = self.player.status
self.player:update(dt)
for _,e in ipairs(self.enemies) do
e:update(self.player.gotPill, self.player.status, dt)
end
self.player.gotPill = false
self.powerbar.val = self.player.energy/player.MAX_ENERGY
end
-- Draw
function universe.Universe:drawAndClean(dt)
self.level:draw()
self:drawAndCleanList(self.coins, dt)
self:drawAndCleanList(self.pills, dt)
self:drawAndCleanList(self.enemies, dt)
self.player:draw(dt)
self.powerbar:draw(dt)
end
function universe.Universe:drawAndCleanList(list, dt)
-- Doing both at the same time causes an undesired "flicker"
for i,x in ipairs(list) do
if x.alive then
x:draw(dt)
end
end
for i,x in ipairs(list) do
if not x.alive then
table.remove(list ,i)
end
end
end
function universe.Universe:cleared()
local answer = #self.pills == 0
answer = answer and #self.coins == 0
return answer
end
return universe
|
local V = {
-- Required information
Name = "Prison Bus",
Model = "models/mdj/badman/pbus.mdl",
Class = "prop_vehicle_jeep",
Category = "Ecott & MattDavidJ Vehicles",
-- Optional information
Author = "MattDavidJ",
Information = "uwu",
KeyValues = {
vehiclescript = "scripts/vehicles/mdj/pbus.txt"
}
}
list.Set( "Vehicles", "pbus", V )
|
-- // Services
local Workspace = game:GetService("Workspace")
-- // Vars
local CurrentCamera = Workspace.CurrentCamera
-- // Metatable Vars
local mt = getrawmetatable(game)
local backupindex = mt.__index
setreadonly(mt, false)
-- // Load Silent Aim
loadstring(game:HttpGetAsync("https://raw.githubusercontent.com/Stefanuk12/ROBLOX/master/Universal/Experimental%20Silent%20Aim%20Module.lua"))()
-- // Hook
mt.__index = newcclosure(function(t, k)
if (t:IsA("Mouse") and (k == "X" or k == "Y" or k == "Target" or "Hit") and ValiantAimHacks.checkSilentAim()) then
-- // Vars
local CPlayerHead = ValiantAimHacks.getCharacter(ValiantAimHacks.Selected).Head
local HeadScreenPosition = CurrentCamera:WorldToViewportPoint(CPlayerHead.CFrame.Position)
-- // X, Y
if (k == "X" or k == "Y") then
return (k == "X" and HeadScreenPosition.X or HeadScreenPosition.Y)
end
-- // Target, Hit
if (k == "Target" or k == "Hit") then
return (k == "Target" and CPlayerHead or CPlayerHead.CFrame)
end
end
return backupindex(t, k)
end)
-- // Reset Metatable
setreadonly(mt, true)
|
local callback, set_timer_timeout, zip = callback, set_timer_timeout, zip
local base = string.gsub(@@LUA_SCRIPT_FILENAME@@, "(.*[/\\])(.*)", "%1")
local Promise = dofile(base.."/promise.lua")
local config = dofile(base.."/config.lua")
local util = dofile(base.."/util.lua")(Promise)
local serpent = dofile(base.."/serpent.lua")
local zzlib = dofile(base.."/zzlib.lua")
local hasThreads = config.NeatConfig.Threads > 1
-- Only the parent should manage ticks!
callback.register('timer', function()
Promise.update()
set_timer_timeout(1)
end)
set_timer_timeout(1)
local warn = '========== The ROM file to use comes from config.lua.'
io.stderr:write(warn)
print(warn)
local Runner = nil
if hasThreads then
Runner = dofile(base.."/runner-wrapper.lua")
else
Runner = dofile(base.."/runner.lua")
end
local Inputs = config.InputSize+1
local Outputs = #config.ButtonNames
local _M = {
saveLoadFile = config.NeatConfig.SaveFile,
onMessageHandler = {},
onRenderFormHandler = {},
}
local pool = nil
local function message(msg, color)
if color == nil then
color = 0x00009900
end
for i=#_M.onMessageHandler,1,-1 do
_M.onMessageHandler[i](msg, color)
end
end
local function newGenome()
local genome = {}
genome.genes = {}
genome.fitness = 0
genome.adjustedFitness = 0
genome.network = {}
genome.maxneuron = 0
genome.globalRank = 0
genome.mutationRates = {}
genome.mutationRates["connections"] = config.NeatConfig.MutateConnectionsChance
genome.mutationRates["link"] = config.NeatConfig.LinkMutationChance
genome.mutationRates["bias"] = config.NeatConfig.BiasMutationChance
genome.mutationRates["node"] = config.NeatConfig.NodeMutationChance
genome.mutationRates["enable"] = config.NeatConfig.EnableMutationChance
genome.mutationRates["disable"] = config.NeatConfig.DisableMutationChance
genome.mutationRates["step"] = config.NeatConfig.StepSize
return genome
end
local function randomNeuron(genes, nonInput)
local neurons = {}
if not nonInput then
for i=1,Inputs do
neurons[i] = true
end
end
for o=1,Outputs do
neurons[config.NeatConfig.MaxNodes+o] = true
end
for i=1,#genes do
if (not nonInput) or genes[i].into > Inputs then
neurons[genes[i].into] = true
end
if (not nonInput) or genes[i].out > Inputs then
neurons[genes[i].out] = true
end
end
local count = 0
for _,_ in pairs(neurons) do
count = count + 1
end
local n = math.random(1, count)
for k,v in pairs(neurons) do
n = n-1
if n == 0 then
return k
end
end
return 0
end
local function newGene()
local gene = {}
gene.into = 0
gene.out = 0
gene.weight = 0.0
gene.enabled = true
gene.innovation = 0
return gene
end
local function containsLink(genes, link)
for i=1,#genes do
local gene = genes[i]
if gene.into == link.into and gene.out == link.out then
return true
end
end
end
local function newInnovation()
pool.innovation = pool.innovation + 1
return pool.innovation
end
local function linkMutate(genome, forceBias)
local neuron1 = randomNeuron(genome.genes, false)
local neuron2 = randomNeuron(genome.genes, true)
local newLink = newGene()
if neuron1 <= Inputs and neuron2 <= Inputs then
--Both input nodes
return
end
if neuron2 <= Inputs then
-- Swap output and input
local temp = neuron1
neuron1 = neuron2
neuron2 = temp
end
newLink.into = neuron1
newLink.out = neuron2
if forceBias then
newLink.into = Inputs
end
if containsLink(genome.genes, newLink) then
return
end
newLink.innovation = newInnovation()
newLink.weight = math.random()*4-2
table.insert(genome.genes, newLink)
end
local function copyGene(gene)
local gene2 = newGene()
gene2.into = gene.into
gene2.out = gene.out
gene2.weight = gene.weight
gene2.enabled = gene.enabled
gene2.innovation = gene.innovation
return gene2
end
local function nodeMutate(genome)
if #genome.genes == 0 then
return
end
genome.maxneuron = genome.maxneuron + 1
local gene = genome.genes[math.random(1,#genome.genes)]
if not gene.enabled then
return
end
gene.enabled = false
local gene1 = copyGene(gene)
gene1.out = genome.maxneuron
gene1.weight = 1.0
gene1.innovation = newInnovation()
gene1.enabled = true
table.insert(genome.genes, gene1)
local gene2 = copyGene(gene)
gene2.into = genome.maxneuron
gene2.innovation = newInnovation()
gene2.enabled = true
table.insert(genome.genes, gene2)
end
local function pointMutate(genome)
local step = genome.mutationRates["step"]
for i=1,#genome.genes do
local gene = genome.genes[i]
if math.random() < config.NeatConfig.PerturbChance then
gene.weight = gene.weight + math.random() * step*2 - step
else
gene.weight = math.random()*4-2
end
end
end
local function enableDisableMutate(genome, enable)
local candidates = {}
for _,gene in pairs(genome.genes) do
if gene.enabled == not enable then
table.insert(candidates, gene)
end
end
if #candidates == 0 then
return
end
local gene = candidates[math.random(1,#candidates)]
gene.enabled = not gene.enabled
end
local function mutate(genome)
for mutation,rate in pairs(genome.mutationRates) do
if math.random(1,2) == 1 then
genome.mutationRates[mutation] = 0.95*rate
else
genome.mutationRates[mutation] = 1.05263*rate
end
end
if math.random() < genome.mutationRates["connections"] then
pointMutate(genome)
end
local p = genome.mutationRates["link"]
while p > 0 do
if math.random() < p then
linkMutate(genome, false)
end
p = p - 1
end
p = genome.mutationRates["bias"]
while p > 0 do
if math.random() < p then
linkMutate(genome, true)
end
p = p - 1
end
p = genome.mutationRates["node"]
while p > 0 do
if math.random() < p then
nodeMutate(genome)
end
p = p - 1
end
p = genome.mutationRates["enable"]
while p > 0 do
if math.random() < p then
enableDisableMutate(genome, true)
end
p = p - 1
end
p = genome.mutationRates["disable"]
while p > 0 do
if math.random() < p then
enableDisableMutate(genome, false)
end
p = p - 1
end
end
local function basicGenome()
local genome = newGenome()
local innovation = 1
genome.maxneuron = Inputs
mutate(genome)
return genome
end
local function newPool()
local pool = {}
pool.speciesId = 1
pool.species = {}
pool.generation = 0
pool.innovation = Outputs
pool.maxFitness = 0
return pool
end
local function newSpecies()
local species = {}
species.id = pool.speciesId
pool.speciesId = pool.speciesId + 1
species.topFitness = 0
species.staleness = 0
species.genomes = {}
species.averageFitness = 0
return species
end
local function disjoint(genes1, genes2)
local i1 = {}
for i = 1,#genes1 do
local gene = genes1[i]
i1[gene.innovation] = true
end
local i2 = {}
for i = 1,#genes2 do
local gene = genes2[i]
i2[gene.innovation] = true
end
local disjointGenes = 0
for i = 1,#genes1 do
local gene = genes1[i]
if not i2[gene.innovation] then
disjointGenes = disjointGenes+1
end
end
for i = 1,#genes2 do
local gene = genes2[i]
if not i1[gene.innovation] then
disjointGenes = disjointGenes+1
end
end
local n = math.max(#genes1, #genes2)
return disjointGenes / n
end
local function weights(genes1, genes2)
local i2 = {}
for i = 1,#genes2 do
local gene = genes2[i]
i2[gene.innovation] = gene
end
local sum = 0
local coincident = 0
for i = 1,#genes1 do
local gene = genes1[i]
if i2[gene.innovation] ~= nil then
local gene2 = i2[gene.innovation]
sum = sum + math.abs(gene.weight - gene2.weight)
coincident = coincident + 1
end
end
return sum / coincident
end
local function sameSpecies(genome1, genome2)
local dd = config.NeatConfig.DeltaDisjoint*disjoint(genome1.genes, genome2.genes)
local dw = config.NeatConfig.DeltaWeights*weights(genome1.genes, genome2.genes)
return dd + dw < config.NeatConfig.DeltaThreshold
end
local function addToSpecies(child)
local foundSpecies = false
for s=1,#pool.species do
local species = pool.species[s]
if not foundSpecies and sameSpecies(child, species.genomes[1]) then
table.insert(species.genomes, child)
foundSpecies = true
end
end
if not foundSpecies then
local childSpecies = newSpecies()
table.insert(childSpecies.genomes, child)
table.insert(pool.species, childSpecies)
end
end
local function initializePool()
return util.promiseWrap(function()
pool = newPool()
for i=1,config.NeatConfig.Population do
local basic = basicGenome()
addToSpecies(basic)
end
end)
end
local function bytes(x)
local b4=x%256 x=(x-x%256)/256
local b3=x%256 x=(x-x%256)/256
local b2=x%256 x=(x-x%256)/256
local b1=x%256 x=(x-x%256)/256
return string.char(b1,b2,b3,b4)
end
--- Saves the pool to a gzipped Serpent file
---@param filename string Filename to write
---@return Promise Promise A promise that resolves when the file is saved.
local function writeFile(filename)
return util.promiseWrap(function ()
local file = zip.writer.new(filename)
file:create_file('data.serpent')
local dump = serpent.dump(pool)
file:write(dump)
file:close_file()
file:commit()
end)
end
-- FIXME This isn't technically asynchronous. Probably can't be though.
local function loadFile(filename)
return util.promiseWrap(function()
message("Loading pool from " .. filename, 0x00999900)
local file = io.open(filename, "r")
if file == nil then
message("File could not be loaded", 0x00990000)
return
end
local contents = file:read("*all")
file:close()
local decomp = zzlib.unzip(contents, 'data.serpent')
local ok, obj = serpent.load(decomp)
if not ok then
message("Error parsing pool file", 0x00990000)
return
end
pool = obj
end)
end
local function savePool()
local filename = _M.saveLoadFile
return writeFile(filename):next(function()
message(string.format("Saved \"%s\"!", filename:sub(#filename - 50)), 0x00009900)
end)
end
local function loadPool()
return loadFile(_M.saveLoadFile)
end
local function processRenderForm(form)
for i=#_M.onRenderFormHandler,1,-1 do
_M.onRenderFormHandler[i](form)
end
end
local function copyGenome(genome)
local genome2 = newGenome()
for g=1,#genome.genes do
table.insert(genome2.genes, copyGene(genome.genes[g]))
end
genome2.maxneuron = genome.maxneuron
genome2.mutationRates["connections"] = genome.mutationRates["connections"]
genome2.mutationRates["link"] = genome.mutationRates["link"]
genome2.mutationRates["bias"] = genome.mutationRates["bias"]
genome2.mutationRates["node"] = genome.mutationRates["node"]
genome2.mutationRates["enable"] = genome.mutationRates["enable"]
genome2.mutationRates["disable"] = genome.mutationRates["disable"]
return genome2
end
local function crossover(g1, g2)
-- Make sure g1 is the higher fitness genome
if g2.fitness > g1.fitness then
local tempg = g1
g1 = g2
g2 = tempg
end
local child = newGenome()
local innovations2 = {}
for i=1,#g2.genes do
local gene = g2.genes[i]
innovations2[gene.innovation] = gene
end
for i=1,#g1.genes do
local gene1 = g1.genes[i]
local gene2 = innovations2[gene1.innovation]
if gene2 ~= nil and math.random(2) == 1 and gene2.enabled then
table.insert(child.genes, copyGene(gene2))
else
table.insert(child.genes, copyGene(gene1))
end
end
child.maxneuron = math.max(g1.maxneuron,g2.maxneuron)
for mutation,rate in pairs(g1.mutationRates) do
child.mutationRates[mutation] = rate
end
return child
end
local function rankGlobally()
local global = {}
for s = 1,#pool.species do
local species = pool.species[s]
for g = 1,#species.genomes do
table.insert(global, species.genomes[g])
end
end
table.sort(global, function (a,b)
return (a.fitness < b.fitness)
end)
for g=1,#global do
global[g].globalRank = g
end
end
local function calculateAverageFitness(species)
local total = 0
for g=1,#species.genomes do
local genome = species.genomes[g]
total = total + genome.globalRank
end
species.averageFitness = total / #species.genomes
end
local function totalAverageFitness()
local total = 0
for s = 1,#pool.species do
local species = pool.species[s]
total = total + species.averageFitness
end
return total
end
local function cullSpecies(cutToOne)
for s = 1,#pool.species do
local species = pool.species[s]
table.sort(species.genomes, function (a,b)
return (a.fitness > b.fitness)
end)
local remaining = math.ceil(#species.genomes/2)
if cutToOne then
remaining = 1
end
while #species.genomes > remaining do
table.remove(species.genomes)
end
end
end
local function breedChild(species)
local child = {}
if math.random() < config.NeatConfig.CrossoverChance then
local g1 = species.genomes[math.random(1, #species.genomes)]
local g2 = species.genomes[math.random(1, #species.genomes)]
child = crossover(g1, g2)
else
local g = species.genomes[math.random(1, #species.genomes)]
child = copyGenome(g)
end
mutate(child)
return child
end
local function removeStaleSpecies()
local survived = {}
for s = 1,#pool.species do
local species = pool.species[s]
table.sort(species.genomes, function (a,b)
return (a.fitness > b.fitness)
end)
if species.genomes[1].fitness > species.topFitness then
species.topFitness = species.genomes[1].fitness
species.staleness = 0
else
species.staleness = species.staleness + 1
end
if species.staleness < config.NeatConfig.StaleSpecies or species.topFitness >= pool.maxFitness then
table.insert(survived, species)
end
end
pool.species = survived
end
local function removeWeakSpecies()
local survived = {}
local sum = totalAverageFitness()
for s = 1,#pool.species do
local species = pool.species[s]
local breed = math.floor(species.averageFitness / sum * config.NeatConfig.Population)
if breed >= 1 then
table.insert(survived, species)
end
end
pool.species = survived
end
local function newGeneration()
cullSpecies(false) -- Cull the bottom half of each species
rankGlobally()
removeStaleSpecies()
rankGlobally()
for s = 1,#pool.species do
local species = pool.species[s]
calculateAverageFitness(species)
end
removeWeakSpecies()
local sum = totalAverageFitness()
local children = {}
for s = 1,#pool.species do
local species = pool.species[s]
local breed = math.floor(species.averageFitness / sum * config.NeatConfig.Population) - 1
for i=1,breed do
table.insert(children, breedChild(species))
end
end
cullSpecies(true) -- Cull all but the top member of each species
while #children + #pool.species < config.NeatConfig.Population do
local species = pool.species[math.random(1, #pool.species)]
table.insert(children, breedChild(species))
end
for c=1,#children do
local child = children[c]
addToSpecies(child)
end
table.sort(pool.species, function(a,b)
return (#a.genomes < #b.genomes)
end)
pool.generation = pool.generation + 1
return writeFile(_M.saveLoadFile .. ".gen" .. pool.generation .. ".pool"):next(function()
if config.NeatConfig.AutoSave then
return writeFile(_M.saveLoadFile)
end
end)
end
local function reset()
return _M.run(true)
end
local runner = Runner(Promise)
runner.onMessage(function(msg, color)
message(msg, color)
end)
runner.onSave(function(filename)
_M.requestSave(filename)
end)
runner.onLoad(function(filename)
_M.requestLoad(filename)
end)
runner.onReset(function(filename)
_M.requestReset()
end)
runner.onRenderForm(function(form)
processRenderForm(form)
end)
local playTop = nil
local topRequested = false
local loadRequested = config.NeatConfig.AutoSave
local saveRequested = false
local resetRequested = false
local function mainLoop(currentSpecies, topGenome)
if currentSpecies == nil then
currentSpecies = 1
end
local slice = pool.species[currentSpecies]
return util.promiseWrap(function()
if loadRequested then
loadRequested = false
currentSpecies = nil
-- FIXME
return loadPool()
end
if saveRequested then
saveRequested = false
return savePool()
end
if resetRequested then
resetRequested = false
return reset()
end
if topRequested then
topRequested = false
return playTop()
end
if not config.Running then
-- FIXME Tick?
end
if hasThreads then
slice = pool.species
end
return runner.run(
slice,
pool.generation,
function()
-- Genome callback
-- FIXME Should we do something here??? What was your plan, past me?
end
):next(function(maxFitness)
if maxFitness > pool.maxFitness then
pool.maxFitness = maxFitness
end
if hasThreads then
currentSpecies = currentSpecies + #slice
else
currentSpecies = currentSpecies + 1
end
if currentSpecies > #pool.species then
newGeneration()
currentSpecies = 1
end
end)
end):next(function ()
if topGenome == nil then
return mainLoop(currentSpecies)
end
end)
end
playTop = function()
local maxfitness = 0
local maxs, maxg
for s,species in pairs(pool.species) do
for g,genome in pairs(species.genomes) do
if genome.fitness > maxfitness then
maxfitness = genome.fitness
maxs = s
maxg = g
end
end
end
-- FIXME genome
return mainLoop(maxs, maxg)
end
function _M.requestLoad(filename)
_M.saveLoadFile = filename
loadRequested = true
end
function _M.requestSave(filename)
_M.saveLoadFile = filename
saveRequested = true
end
function _M.requestReset()
resetRequested = true
end
function _M.onMessage(handler)
table.insert(_M.onMessageHandler, handler)
end
function _M.onRenderForm(handler)
table.insert(_M.onRenderFormHandler, handler)
end
function _M.requestTop()
topRequested = true
end
function _M.run(reset)
local promise = nil
if pool == nil or reset == true then
promise = initializePool()
else
promise = Promise.new()
promise:resolve()
end
return promise:next(function()
return writeFile(config.PoolDir.."temp.pool")
end):next(function ()
if not hasThreads then
return util.loadAndStart(config.ROM)
end
end):next(function()
return mainLoop()
end)
end
return _M
|
--- base64_spec.lua
--
-- Copyright (c) 2013 Snowplow Analytics Ltd. All rights reserved.
--
-- This program is licensed to you under the Apache License Version 2.0,
-- and you may not use this file except in compliance with the Apache License Version 2.0.
-- You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
--
-- Unless required by applicable law or agreed to in writing,
-- software distributed under the Apache License Version 2.0 is distributed on an
-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-- See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
--
-- Authors: Alex Dean
-- Copyright: Copyright (c) 2013 Snowplow Analytics Ltd
-- License: Apache License Version 2.0
local base64 = require("src.snowplow..lib.base64")
describe("base64", function()
it("should Base64 encode strings correctly", function()
local dataTable = {
{ "INPUT" , "EXPECTED" },
{ "JohnSmith" , "Sm9oblNtaXRo" },
{ "john+smith" , "am9obitzbWl0aA" },
{ "John Smith" , "Sm9obiBTbWl0aA" },
{ '{"age":23,"name":"John"}' , "eyJhZ2UiOjIzLCJuYW1lIjoiSm9obiJ9"},
{ '{"myTemp":23.3,"myUnit":"celsius"}' , "eyJteVRlbXAiOjIzLjMsIm15VW5pdCI6ImNlbHNpdXMifQ"},
{ '{"event":"page_ping","mobile":true,"properties":{"max_x":960,"max_y":1080,"min_x":0,"min_y":-12}}', "eyJldmVudCI6InBhZ2VfcGluZyIsIm1vYmlsZSI6dHJ1ZSwicHJvcGVydGllcyI6eyJtYXhfeCI6OTYwLCJtYXhfeSI6MTA4MCwibWluX3giOjAsIm1pbl95IjotMTJ9fQ"},
{ '{"event":"basket_change","price":23.39,"product_id":"PBZ000345","quantity":-2,"tstamp":1678023000}', "eyJldmVudCI6ImJhc2tldF9jaGFuZ2UiLCJwcmljZSI6MjMuMzksInByb2R1Y3RfaWQiOiJQQlowMDAzNDUiLCJxdWFudGl0eSI6LTIsInRzdGFtcCI6MTY3ODAyMzAwMH0"}
}
for i, v in ipairs(dataTable) do
if i > 1 then
local input = v[1]
local expected = base64.encode(input)
assert.are.equal(v[2], expected)
end
end
end)
it("should error on nil, empty strings and other datatypes", function()
local badValues = { nil, "", 1, true, false, 34.5 }
for i, v in pairs(badValues) do
assert.has_error(function() base64.encode(v) end)
end
end)
end)
|
local t = 0
function update(dt)
t = t + dt
if t > 3600 then
this.gui_text.text = "way too much"
else
this.gui_text.text = string.format("%d:%02d", math.floor(t / 60), math.floor(t) % 60)
end
end
|
nvim.call_once = function(f)
local called = false
local ret = nil
return function()
if called then
if ret then
return unpack(ret)
else
return nil
end
end
called = true
local temp = { f() }
if #temp == 0 or #temp[1] == nil then
return
end
ret = temp
return unpack(ret)
end
end
nvim.echo = function(...)
local args = { ... }
local texts = {}
for _, arg in ipairs(args) do
local t = type(arg)
if t == "string" then
table.insert(texts, {t})
elseif t == "table" then
table.insert(texts, t)
end
end
vim.api.nvim_echo(texts, false, {})
end
-- 是否符合首字母模糊匹配
nvim.fuzzy_match = function(str, pattern)
local slen = str:len()
local plen = pattern:len()
local n = 1
local sort_num = {}
for i = 1, plen do
local pc = pattern:sub(i, i)
local count = (slen - n) - (plen - i)
if count < 0 then return nil end
local find = true
for j = 0, count do
local index = n + j
local sc = str:sub(index, index)
if sc == pc then
table.insert(sort_num, index)
n = index + 1
goto find_label
end
end
find = false
::find_label::
if not find then return nil end
end
return sort_num
end
|
-- Utility functions base config script
-- IT'S NOT A GOOD IDEA TO CHANGE THINGS IN HERE UNLESS
-- YOU KNOW WHAT YOU'RE DOING, but reading this file over
-- is a good way to get to know how DSB works.
-- These functions are not called by the engine directly,
-- but they are used by the default system functions and
-- by objects to do various tasks, and you should be careful
-- about overriding them.
function alticon(self, id, who) dsb_set_gfxflag(id, GF_ALT_ICON) end
function normicon(self, id, who) dsb_clear_gfxflag(id, GF_ALT_ICON) end
function spawn_in_pack(arch, whose_pack)
local slot = INV_PACK
while(dsb_fetch(CHARACTER, whose_pack, slot, 0)) do
slot = slot + 1
end
return (dsb_spawn(arch, CHARACTER, whose_pack, slot, 0))
end
-- Called when someone dies.
function drop_all_items_and_magicshields(ppos, who, mouse_drop)
local lev, xc, yc, tile_pos
lev, xc, yc = dsb_party_coords()
tile_pos = dsb_ppos_tile(ppos)
local slot = 0
while(slot < MAX_INV_SLOTS) do
local item = dsb_fetch(CHARACTER, who, slot, 0)
if (item) then
dsb_move(item, lev, xc, yc, tile_pos)
end
slot = slot + 1
end
-- Drop the mouse hand item too, if necessary
if (mouse_drop) then
dsb_move(mouse_drop, lev, xc, yc, tile_pos)
end
-- If there are instances bound to this character
-- (for now shield controllers, but it could be anything)
-- then destroy them...
local id
for id in dsb_insts() do
local i_arch = dsb_find_arch(id)
if (i_arch.bound_to_character) then
if (exvar[id].owner == who) then
dsb_delete(id)
end
end
end
end
-- These functions were primarily to support DDM and hand coders.
-- DDM seems dead, and hand coding never really took off.
-- So I'm declaring them all deprecated. The first time ESB parses
-- a dungeon that used them, they'll vanish, anyway.
--
-- Deprecated
function spawn_pit(lev, xc, yc, pit_type, ceil_pit_type, deactive)
if (pit_type == nil) then pit_type = "pit" end
local pit_id = dsb_spawn(pit_type, lev, xc, yc, CENTER)
if (deactive == true) then
dsb_disable(pit_id)
end
return(pit_id)
end
-- Deprecated
function spawn_door(lev, xc, yc, type, button, frame_type)
if (frame_type == nil) then frame_type = "doorframe" end
if (frame_type ~= false) then
dsb_spawn(frame_type, lev, xc, yc, CENTER)
end
local targ = dsb_spawn(type, lev, xc, yc, CENTER)
if (button) then
if (button == true) then button = "doorbutton" end
local tmp = dsb_spawn(button, lev, xc, yc, CENTER)
exvar[tmp] = { target=targ }
end
return targ
end
-- Deprecated
function spawn_monster(type, lev, xc, yc, pos, hp)
tmp = dsb_spawn(type, lev, xc, yc, pos)
if (hp and hp > 0) then
dsb_set_hp(tmp, hp)
dsb_set_maxhp(tmp, hp)
end
return tmp
end
-- This one is still used by ESB
function mon_hp(mon, hp)
dsb_set_hp(mon, hp)
dsb_set_maxhp(mon, hp)
end
-- Invoked via sys_init_monster_hp
function calc_monster_initial_hp(base_hp, level, multiplier)
local xpm
if (multiplier) then
xpm = multiplier
else
xpm = dsb_get_xp_multiplier(level)
end
local rand = dsb_rand(0, (base_hp/4)+1)
return ((xpm*base_hp) + rand)
end
-- An object is changing into something else
-- (or disappearing if nothing is defined)
function do_convert(arch, id, typestr)
local convtype = "convert_" .. typestr
local convarch = arch[convtype]
local use_qswap = false
if (exvar[id] and exvar[id][convtype]) then
convarch = exvar[id][convtype]
if (exvar[id][convtype .. "_qswap"]) then
use_qswap = true
end
end
if (convarch) then
if (arch[convtype .. "_qswap"]) then
use_qswap = true
end
if (use_qswap) then
dsb_qswap(id, convarch)
else
dsb_swap(id, convarch)
end
else
dsb_msg(0, id, M_CLEANUP, 0)
dsb_msg(0, id, M_DESTROY, 0)
end
end
-- Returns coordinates independent of being carried etc.
function determine_dungeon_location(id)
local lev, x, y, pos = dsb_get_coords(id)
if (lev == CHARACTER or lev == MOUSE_HAND) then
lev, x, y = dsb_party_coords()
return lev, x, y, CENTER
elseif (lev == IN_OBJ) then
return determine_dungeon_location(x)
else
return lev, x, y, pos
end
end
-- Sums up the mass of anything inside this object
function inside_mass(id)
local sum = 0
for iobj in dsb_in_obj(id) do
local iarch = dsb_find_arch(iobj)
if (iarch.mass) then
sum = sum + iarch.mass
end
sum = sum + inside_mass(iobj)
end
return sum
end
-- Creates a blank exvar table for an instance
-- without exvars so Lua won't complain about
-- accessing nils
function use_exvar(id)
if (not exvar[id]) then
exvar[id] = { }
end
end
function use_ch_exvar(id)
if (not ch_exvar[id]) then
ch_exvar[id] = { }
end
end
-- Do housekeeping on exvars so most
-- functions that use them don't have to care about
-- whether something is undefined or not
function change_exvar(who, val, delta, max)
if (not exvar[who]) then
exvar[who] = { [val] = 0 }
end
if (exvar[who][val]) then
exvar[who][val] = exvar[who][val] + delta
else
exvar[who][val] = delta
end
if (delta < 0 and max) then
if (max and exvar[who][val] < max) then
exvar[who][val] = max
end
max = nil
end
if (exvar[who][val] == 0) then
exvar[who][val] = nil
else
if (max and exvar[who][val] > max) then
exvar[who][val] = max
end
end
end
function change_ch_exvar(who, val, delta, max)
if (not ch_exvar[who]) then
ch_exvar[who] = {
[val] = 0
}
end
if (ch_exvar[who][val]) then
ch_exvar[who][val] = ch_exvar[who][val] + delta
else
ch_exvar[who][val] = delta
end
if (delta < 0 and max) then
if (max and ch_exvar[who][val] < max) then
ch_exvar[who][val] = max
end
max = nil
end
if (ch_exvar[who][val] == 0) then
ch_exvar[who][val] = nil
else
if (max and ch_exvar[who][val] > max) then
ch_exvar[who][val] = max
end
end
end
-- Lookup the power exvar and complain if it's not there
function getpower(id)
if (exvar[id] and exvar[id].power) then
return exvar[id].power
else
local arch = dsb_find_arch(id)
dsb_write(debug_color, "ERROR: POWER NEEDED AND NOT DEFINED FOR INST " .. id)
dsb_write(debug_color, " (" .. arch.name .. ")")
use_exvar(id)
exvar[id].power = 1
return 1
end
end
function valid_and_alive(who)
if (who and dsb_get_bar(who, HEALTH) > 0) then
return true
end
return false
end
function local_sound(id, p_sound, table_lookup, ex_loop)
local lev, xc, yc, pos = dsb_get_coords(id)
local real_sound = p_sound
if (table_lookup) then
real_sound = snd[p_sound]
if (not real_sound) then
dsb_write(debug_color, "ERROR: INVALID SOUND " .. string.upper(p_sound))
return nil
end
end
return dsb_3dsound(real_sound, lev, xc, yc, ex_loop)
end
function play_arch_local_sound(arch, id, sound_name)
local msound = nil
if (arch[sound_name]) then
if (type(arch[sound_name]) == "function") then
msound = arch[sound_name](arch, id)
else
msound = arch[sound_name]
end
end
if (msound) then
local loopname = "loop_" .. sound_name
local loophandle = "loop_" .. sound_name .. "_hand"
local ex_loop = false
if (arch[loopname]) then
ex_loop = true
use_exvar(id)
if (exvar[id][loophandle]) then
dsb_stopsound(exvar[id][loophandle])
end
end
local snd_id = local_sound(id, msound, nil, ex_loop)
if (ex_loop) then
exvar[id][loophandle] = snd_id
end
end
end
function click_sound(arch, id)
if (not exvar[id]) then return end
if (not exvar[id].silent) then
if (exvar[id].sound) then
dsb_sound(snd[exvar[id].sound])
elseif (not arch.default_silent) then
if (arch.default_sound) then
dsb_sound(snd[arch.default_sound])
else
dsb_sound(snd.click)
end
end
end
end
function stop_sound_handle(id, sound_name)
local loophandle = "loop_" .. sound_name .. "_hand"
if (exvar[id] and exvar[id][loophandle]) then
dsb_stopsound(exvar[id][loophandle])
exvar[id][loophandle] = nil
end
end
function attenuate_by_stamina(who, power)
local stam = dsb_get_bar(who, STAMINA)
local halfmaxstam = dsb_get_maxbar(who, STAMINA)/2
if (stam < halfmaxstam) then
local adj_power = ((power/2) * stam) / halfmaxstam
power = (power/2) + adj_power
end
return power
end
function burn_stamina(who, howmuch)
local stamina = dsb_get_bar(who, STAMINA)
stamina = stamina - howmuch
if (stamina < 0) then
damage_char(who, HEALTH, -1 * math.floor(stamina / 20 + 0.5))
dsb_set_bar(who, STAMINA, 0)
else
dsb_set_bar(who, STAMINA, stamina)
end
end
-- Shows the power of a bomb only if you're a good enough
-- wizard to figure out what it is
function bomb_namechanger(self, id, who_look)
if (not who_look) then
return nil
end
if (not exvar[id] or not exvar[id].power) then
return "FIX ME"
end
local level = determine_xp_level(who_look, CLASS_WIZARD, 0)
if (level >= 2) then
return powchar[exvar[id].power] .. " " .. self.name
else
return nil
end
end
-- Shows the power of a potion only if you're a good enough
-- priest to figure out what it is
function potion_namechanger(self, id, who_look)
if (not who_look) then
return nil
end
if (not exvar[id] or not exvar[id].power) then
return "FIX ME"
end
local level = determine_xp_level(who_look, CLASS_PRIEST, 0)
if (level >= 2) then
return powchar[exvar[id].power] .. " " .. self.name
else
return nil
end
end
function basic_8_object_subrenderer(arch, id)
local sr = dsb_subrenderer_target()
dsb_bitmap_draw(arch.inside_gfx, sr, 0, 0, false)
dsb_objzone(sr, id, 0, 32, 14)
dsb_objzone(sr, id, 1, 10, 48)
dsb_objzone(sr, id, 2, 20, 82)
dsb_objzone(sr, id, 3, 54, 92)
dsb_objzone(sr, id, 4, 88, 98)
dsb_objzone(sr, id, 5, 122, 102)
dsb_objzone(sr, id, 6, 156, 104)
dsb_objzone(sr, id, 7, 190, 106)
end
-- Calculations for throwing distance
-- Based quite heavily on CSBwin ThrowByCharacter
function calc_throw(who, id, loc)
local throw_arch = dsb_find_arch(id)
local weapon_range = 1
local xp_amount = 8
local skilled_throw = false
if (throw_arch.base_range) then
weapon_range = throw_arch.base_range
if (weapon_range > 1) then
local impact = throw_arch.impact
if (not impact) then impact = 0 end
xp_amount = xp_amount + 4 + math.floor(impact/4)
skilled_throw = true
end
end
local bonus_damage = 0
if (throw_arch.bonus_damage) then
bonus_damage = throw_arch.bonus_damage
skilled_throw = true
end
xp_up(who, CLASS_NINJA, SKILL_THROWING, xp_amount)
local adj_mass = throw_arch.mass/2
adj_mass = math.floor(adj_mass + (inside_mass(id) / 2))
local stamina_use = adj_mass
if (stamina_use < 1) then stamina_use = 1
elseif (stamina_use > 10) then stamina_use = 10 end
-- CSBwin did something nonsensical with stamina here, but it turned
-- out to just be a bug in CSBwin itself. Now fixed.
adj_mass = adj_mass - 10
while (adj_mass > 0) do
stamina_use = stamina_use + math.floor(adj_mass / 2)
adj_mass = adj_mass - 10
end
burn_stamina(who, stamina_use)
local ninjaskill = determine_xp_level(who, CLASS_NINJA, SKILL_THROWING) + 1
local throw_power = calc_tpower(who, id, loc, true) + weapon_range
throw_power = (throw_power*3)/2 + dsb_rand(0, 15) + ninjaskill
-- My tweak: separate the throwing of weapons from the throwing of
-- miscellaneous random dungeon garbage (and make the second a lot
-- less skillful and powerful)
-- Modified in DSB 0.58 to be a little more like DM. I don't want
-- to completely change the feel of the game.
local min_delta
if (skilled_throw) then
-- This formula is used for every object in CSBwin
damage = (8 * ninjaskill) + bonus_damage + dsb_rand(0, 31)
if (damage < 40) then
damage = 40
elseif (damage > 200) then
damage = 200
end
min_delta = 5
else
damage = (4 * ninjaskill) + dsb_rand(0, 31)
if (damage > 200) then
damage = 200
end
min_delta = 7
end
-- Keep some things from being thrown too hard
local max_throw_power = 9999
if (throw_arch.max_throw_power) then
max_throw_power = throw_arch.max_throw_power
elseif (throw_arch.useless_thrown) then
max_throw_power = 40
damage = 1
min_delta = 8
end
local delta = min_delta
if (11 - ninjaskill > min_delta) then
delta = 11 - ninjaskill
end
if (throw_power > max_throw_power) then
throw_power = max_throw_power
end
--[[ (debugging)
dsb_write(debug_color, "THROW POWER " .. throw_power
.. " DMG " .. damage .. " DEL " .. delta)
]]
return throw_power, damage, delta
end
-- Calculate "Throwing" Power
-- Based on CSBwin DetermineThrowingDistance
-- (and used for a lot of other things)
function calc_tpower(who, idarch, hand, throwing)
local base_str = dsb_get_stat(who, STAT_STR)/10 + dsb_rand(0, 15)
local heavy = dsb_get_maxload(who) / 16
local power
local obj_mass = 0
local id = nil
local arch = nil
-- Allow either an arch or an id for the second parameter
if (idarch) then
if (type(idarch) == "table") then
id = nil
arch = idarch
obj_mass = arch.mass
else
id = idarch
arch = dsb_find_arch(id)
obj_mass = arch.mass
obj_mass = obj_mass + inside_mass(id)
end
end
if (obj_mass > heavy) then
local very_heavy = (heavy-12)/2 + heavy
if (very_heavy < heavy + 2) then very_heavy = heavy + 2 end
if (obj_mass > very_heavy) then
power = base_str - 2*(obj_mass - very_heavy)
else
power = base_str + (obj_mass - heavy)/2
end
else
power = base_str + obj_mass - 12
end
-- My tweak: If you're throwing the weapon, make the power bonus vary by
-- ninja skill. Applying the full bonus to a thrown weapon makes some
-- strong weapons overpowered when thrown, but it seems there are puzzles
-- (such as DM's "test your strength") that become a bit too difficult
-- without having the bonus exist in some form.
if (arch and arch.base_tpower) then
local tpower_bonus = arch.base_tpower
if (throwing) then
local ninja = determine_xp_level(who, CLASS_NINJA, 0)
if (ninja > 8) then ninja = 8 end
tpower_bonus = math.floor((tpower_bonus * ninja) / 8)
end
power = power + tpower_bonus
end
local skillbonus = 0
if (arch) then
-- Only give a throwing bonus when actually throwing and a swinging bonus when not
if (throwing and arch.class == "MISSILE") then
skillbonus = determine_xp_level(who, CLASS_NINJA, SKILL_THROWING) + 1
elseif (throwing and arch.class == "SHOOTING") then
skillbonus = determine_xp_level(who, CLASS_NINJA, SKILL_SHOOTING) + 1
elseif (not throwing and arch.class == "WEAPON") then
skillbonus = determine_xp_level(who, CLASS_FIGHTER, SKILL_SWINGING) + 1
end
end
power = power + 2*skillbonus
power = attenuate_by_stamina(who, power)
local ouch = dsb_get_injury(who, hand)
if (ouch) then
power = power/2
-- badly hurt is worse
if (ouch > 30) then
power = math.floor((power * 30) / ouch)
end
end
local r_power = math.floor(power/2)
if (r_power < 0) then
r_power = 0
elseif (r_power > 100) then
r_power = 100
end
return r_power
end
-- Based on CSBwin Quickness, of course
function calc_quickness(who)
local q = (dsb_get_stat(who, STAT_DEX) + dsb_rand(0,70)) / 10
local loadval = ((q/2) * dsb_get_load(who)) / dsb_get_maxload(who)
q = q - loadval
if (dsb_get_sleepstate()) then
q = (q/4)
else
q = (q/2)
end
local lo = dsb_rand(1, 8)
local hi = dsb_rand(93,100)
if (q < lo) then
q = lo
elseif (q > hi) then
q = hi
end
return math.ceil(q)
end
function search_for_type(lev, x, y, dir, obj_type)
local hit_mon = dsb_fetch(lev, x, y, dir)
if (hit_mon) then
local i
for i in pairs(hit_mon) do
local v = hit_mon[i]
local hit_arch = dsb_find_arch(v)
if (hit_arch.type == obj_type) then
if (not (dsb_get_gfxflag(v, GF_INACTIVE))) then
return v
end
end
end
end
return nil
end
function search_for_class(lev, x, y, dir, obj_class)
local hit_mon = dsb_fetch(lev, x, y, dir)
if (hit_mon) then
local i
for i in pairs(hit_mon) do
local v = hit_mon[i]
local hit_arch = dsb_find_arch(v)
if (hit_arch.class == obj_class) then
if (not (dsb_get_gfxflag(v, GF_INACTIVE))) then
return v
end
end
end
end
return nil
end
function search_for_arch(lev, x, y, dir, obj_arch_type)
local hit_mon = dsb_fetch(lev, x, y, dir)
if (hit_mon) then
local i
for i in pairs(hit_mon) do
local v = hit_mon[i]
local hit_arch = dsb_find_arch(v)
if (hit_arch == obj[obj_arch_type]) then
if (not (dsb_get_gfxflag(v, GF_INACTIVE))) then
return v
end
end
end
end
return nil
end
-- Something explosive hit a door
function explode_door(door_id, my_fire_power)
local door_fire_power = 9999
if (dsb_get_crop(door_id) ~= 0) then
return
end
if (exvar[door_id] and exvar[door_id].fire_power) then
door_fire_power = exvar[door_id].fire_power
else
local door_arch = dsb_find_arch(door_id)
if (door_arch.fire_power) then
door_fire_power = door_arch.fire_power
end
end
if (my_fire_power > door_fire_power) then
dsb_msg(1, door_id, M_BASH, 2)
end
end
-- Eats food (with the chewing animation) and drinks water
function eatdrink(self, id, who)
local delay = false
if (self.foodval) then
inventory_info.mouth.icon = gfx.mouth_chewing
dsb_update_inventory_info()
dsb_hide_mouse()
dsb_delay_func(1, function() dsb_lock_game() end)
dsb_delay_func(4, function ()
dsb_show_mouse()
dsb_sound(base_eat_sound)
inventory_info.mouth.icon = base_mouth_icon
dsb_update_inventory_info()
dsb_set_food(who, dsb_get_food(who) + self.foodval)
dsb_unlock_game()
end)
delay = true
end
if (self.waterval) then
dsb_set_water(who, dsb_get_water(who) + self.waterval)
end
if (not delay) then
dsb_sound(base_eat_sound)
end
end
function drinkpotion(self, id, who)
dsb_sound(base_eat_sound)
use_exvar(id)
local pow = getpower(id)
-- Some premixed potions might want to store an absolute power
local base_power
if (exvar[id].base_power) then
base_power = exvar[id].base_power
else
base_power = pow * 40 + dsb_rand(0, 15)
end
if (self.foodval) then
dsb_set_water(who, dsb_get_water(who) + self.waterval)
end
if (self.waterval) then
dsb_set_water(who, dsb_get_water(who) + self.waterval)
end
self:potion_effect(id, who, base_power)
-- This is for backward compatibility with dungeons that
-- don't explicitly define a convert_consume for potions
local swapto = self.convert_consume
if (not swapto) then swapto = "flask" end
dsb_swap(id, swapto)
return true
end
function stat_booster(who, what, base_power)
local boost = 10*base_power/25 + 80
local st = dsb_get_stat(who, what)
local mst = dsb_get_maxstat(who, what)
-- Very big boosts are not as effective
if (mst > 0 and (st > mst*3)) then
local over = st/mst
boost = math.floor(boost * (3/over))
if (boost < 10) then boost = 10 end
end
dsb_set_stat(who, what, st + boost)
end
-- A helper function to check if the character is in
-- a position to hit the monster
function front_row_check(where, pface)
local front_row = false
if (where == pface or where == (pface+1)%4) then
front_row = true
else
local myfront = dsb_tileshift(where, pface)
if (not dsb_tile_ppos(myfront)) then
front_row = true
end
end
return front_row
end
-- A function to use up an charge of an item and do
-- something if depleted
function use_charge(what, amount)
if (not amount or amount <= 0) then
return false
end
local ccharge = dsb_get_charge(what)
if (not ccharge or ccharge == 0) then
return false
end
ccharge = ccharge - amount
if (ccharge <= 0) then
local obj_arch = dsb_find_arch(what)
local stop_con = false
if (obj_arch.on_deplete) then
stop_con = obj_arch:on_deplete(what)
end
if (not stop_con) then
do_convert(obj_arch, what, "deplete")
end
else
dsb_set_charge(what, ccharge)
end
return true
end
function normalize_stat(mindif, maxdif, amaxdif)
if (maxdif > amaxdif) then
return (dsb_rand(mindif, amaxdif))
elseif (mindif >= maxdif) then
return (maxdif)
else
return (dsb_rand(mindif, maxdif))
end
end
function open_facing(lev, xc, yc, face)
local it
for it=0,3 do
local dx, dy = dsb_forward(it)
if (not dsb_get_cell(lev, xc+dx, yc+dy)) then
return it
end
end
-- A special wall is better than an ordinary wall
for it=0,3 do
local dx, dy = dsb_forward(it)
if (search_for_class(lev, xc+dx, yc+dy, CENTER, "WALL")) then
return it
end
end
return face
end
function torch_light(self, id, who)
-- Only do this if the character is in the party
if (dsb_char_ppos(who)) then
if (self.on_burn or self.convert_burn) then
use_exvar(id)
if (not exvar[id].pmsg) then
dsb_msg(5, id, M_NEXTTICK, who)
exvar[id].pmsg = 1
end
alticon(self, id, who)
end
end
end
function torch_dark(self, id, who)
normicon(self, id, who)
end
function use_torch_charge(id, data)
if (dsb_get_gfxflag(id, GF_ALT_ICON)) then
local torch_arch = dsb_find_arch(id)
local charge = dsb_get_charge(id)
charge = charge - 1
if (charge <= 0) then
torch_dark(torch_arch, id, who)
local stop_con = false
if (torch_arch.on_burn) then
stop_con = torch_arch:on_burn(id)
end
if (not stop_con) then
do_convert(torch_arch, id, "burn")
end
if (dsb_valid_inst(id)) then
if (torch_arch.convert_burn) then
torch_light(obj[torch_arch.convert_burn], id, data)
end
end
else
dsb_set_charge(id, charge)
dsb_msg(4, id, M_NEXTTICK, data)
end
set_torch_levels()
else
exvar[id].pmsg = nil
end
end
function torch_value(char, location)
local torch = dsb_fetch(CHARACTER, char, location, 0)
if (not torch) then return 0 end
local arch = dsb_find_arch(torch)
if (arch.class ~= "TORCH") then return 0 end
if (not arch.def_charge) then return 0 end
local charge = dsb_get_charge(torch)
local light = arch.min_light
light = light + (arch.diff_light * (charge / arch.def_charge))
return light
end
function set_torch_levels()
local sum_torch = 0
local best_torch = 0
local ppos
for ppos=0,3 do
local char = dsb_ppos_char(ppos)
if (valid_and_alive(char)) then
local t_light = torch_value(char, INV_L_HAND)
sum_torch = sum_torch + t_light
if (t_light > best_torch) then
best_torch = t_light
end
t_light = torch_value(char, INV_R_HAND)
sum_torch = sum_torch + t_light
if (t_light > best_torch) then
best_torch = t_light
end
end
end
local best_light = (best_torch*3)/2
if (sum_torch > best_light) then
sum_torch = best_light
end
dsb_set_light("torches", sum_torch)
end
-- Cursed objects
function apply_curse(self, id, who)
local max_luck = dsb_get_maxstat(who, STAT_LUC)
dsb_set_maxstat(who, STAT_LUC, max_luck - 30)
change_ch_exvar(who, "curses", 1)
end
function remove_curse(self, id, who)
local max_luck = dsb_get_maxstat(who, STAT_LUC)
dsb_set_maxstat(who, STAT_LUC, max_luck + 30)
change_ch_exvar(who, "curses", -1)
end
-- Lucky rabbits foot
function apply_luck(self, id, who)
change_ch_exvar(who, "luck_bonus", 1)
if (ch_exvar[who].luck_bonus == 1) then
local max_luck = dsb_get_maxstat(who, STAT_LUC)
dsb_set_maxstat(who, STAT_LUC, max_luck + 100)
end
end
function remove_luck(self, id, who)
if (ch_exvar[who].luck_bonus == 1) then
local max_luck = dsb_get_maxstat(who, STAT_LUC)
dsb_set_maxstat(who, STAT_LUC, max_luck - 100)
end
change_ch_exvar(who, "luck_bonus", -1)
end
function boost_with_overflow(who, bar, amount)
local val = dsb_get_maxbar(who, bar)
local old_overflow = 0
if (ch_exvar[who] and ch_exvar[who].overflow and ch_exvar[who].overflow[bar]) then
old_overflow = ch_exvar[who].overflow[bar]
ch_exvar[who].overflow[bar] = nil
end
local newval = val + old_overflow + amount
if (newval > 9990) then
local overflow = newval - 9990
newval = 9990
use_ch_exvar(who)
if (not ch_exvar[who].overflow) then ch_exvar[who].overflow = { } end
if (not ch_exvar[who].overflow[bar]) then ch_exvar[who].overflow[bar] = 0 end
ch_exvar[who].overflow[bar] = ch_exvar[who].overflow[bar] + overflow
end
dsb_set_maxbar(who, bar, newval)
end
-- Utility functions for objects that give a bonus
function mana_boost(self, id, who)
local mana_up = self.mana_up
boost_with_overflow(who, MANA, mana_up)
end
function mana_boost_off(self, id, who)
local mana_up = self.mana_up
boost_with_overflow(who, MANA, -1*mana_up)
end
function apply_stat_bonus(arch, id, who, m)
local stat = arch.stat
local sb = arch.stat_up
if (type(stat) ~= "table") then
stat = { stat }
end
if (type(sb) ~= "table") then
sb = { sb }
end
for s in pairs(stat) do
local sbnum = sb[s]
if (not sbnum) then sbnum = sb[1] end
dsb_set_stat(who, stat[s], dsb_get_stat(who, stat[s]) + (m * sbnum))
dsb_set_maxstat(who, stat[s], dsb_get_maxstat(who, stat[s]) + (m * sbnum))
end
end
function stat_bonus(self, id, who)
apply_stat_bonus(self, id, who, 1)
end
function stat_bonus_off(self, id, who)
apply_stat_bonus(self, id, who, -1)
end
function lyf_boost(self, id, who)
dsb_set_maxbar(who, MANA, dsb_get_maxbar(who, MANA)+40)
local b = dsb_get_bonus(who, CLASS_PRIEST, SKILL_POTIONS)
dsb_set_bonus(who, CLASS_PRIEST, SKILL_POTIONS, b+1)
end
function lyf_boost_off(self, id, who)
dsb_set_maxbar(who, MANA, dsb_get_maxbar(who, MANA)-40)
local b = dsb_get_bonus(who, CLASS_PRIEST, SKILL_POTIONS)
dsb_set_bonus(who, CLASS_PRIEST, SKILL_POTIONS, b-1)
end
function boost_all_skills(self, id, who)
for cl=0, (xp_classes-1) do
for sub=0, xp_subskills[cl+1] do
local b = dsb_get_bonus(who, cl, sub)
dsb_set_bonus(who, cl, sub, b + self.boost)
end
end
end
function boost_all_skills_off(self, id, who)
for cl=0, (xp_classes-1) do
for sub=0, xp_subskills[cl+1] do
local b = dsb_get_bonus(who, cl, sub)
dsb_set_bonus(who, cl, sub, b - self.boost)
end
end
end
function stairs_col(self, id, what)
if (what) then
local fly = dsb_get_flystate(what)
if (fly) then return true
else
return false
end
else
return false
end
end
function nonmat_col(self, id, what)
if (what) then
local fly = dsb_get_flystate(what)
if (fly) then
local what_arch = dsb_find_arch(what)
if (what_arch.flying_hits_nonmat) then
return true
elseif (self.absorbs) then
if (what_arch == obj[self.absorbs]) then
return true
end
return false
else
return false
end
end
end
return true
end
function doorframe_col(self, id, what)
if (what) then
local hit_arch = dsb_find_arch(what)
if (hit_arch.hits_doorframes) then
return true
end
end
return false
end
-- Utility functions for the compass
function compass_turn(id, dir)
if (dir == 0) then
dsb_qswap(id, "compass_n")
elseif (dir == 1) then
dsb_qswap(id, "compass_e")
elseif (dir == 2) then
dsb_qswap(id, "compass_s")
elseif (dir == 3) then
dsb_qswap(id, "compass_w")
end
end
function comp_fix_facing(self, id, dir)
compass_turn(id, dir)
end
function comp_fix_facing_pickup(self, id)
local lev, xc, yc, dir = dsb_party_coords()
compass_turn(id, dir)
end
function place_into_quiver(who, what, info_table)
if (place_into_range(who, what, INV_QUIV2, INV_QUIV4, info_table)) then
return true
end
if (place_into_containers_in_range(who, what, INV_QUIVER, INV_QUIV4, "ammo_holder", info_table)) then
return true
end
if (place_into_range(who, what, INV_QUIVER, nil, info_table)) then
return true
end
return false
end
function place_into_containers_in_range(who, what, min_loc, max_loc, tag, info_table)
local ins_arch = dsb_find_arch(what)
local i
for i=min_loc, max_loc do
local f = dsb_fetch(CHARACTER, who, i, 0)
if (f) then
local f_arch = dsb_find_arch(f)
if ((not tag or f_arch[tag]) and (f_arch.zone_obj or f_arch.objzone_check)) then
local zone_check = false
if (f_arch.objzone_check and f_arch:objzone_check(f, what, VARIABLE)) then
zone_check = true
elseif (f_arch.zone_obj) then
for zn in pairs(f_arch.zone_obj) do
if (ins_arch == obj[f_arch.zone_obj[zn]]) then
zone_check = true
end
end
end
if (zone_check) then
local c, num_contents = dsb_fetch(IN_OBJ, f, VARIABLE, 0)
if (not num_contents) then num_contents = 0 end
local real_contents = num_contents
if (info_table and info_table.con[f]) then
num_contents = num_contents + info_table.con[f]
end
if (not f_arch.capacity or num_contents < f_arch.capacity)
then
dsb_move(what, IN_OBJ, f, VARIABLE, 0)
if (info_table) then
-- It got queued, update the info_table
local c, new_nc = dsb_fetch(IN_OBJ, f, VARIABLE, 0)
if (new_nc == real_contents) then
local i_value = info_table.con[f]
if (not i_value) then i_value = 0 end
info_table.con[f] = i_value + 1
end
end
return true
end
end
end
end
end
return false
end
function place_into_range(who, what, min_loc, max_loc, info_table)
if (not max_loc) then
max_loc = min_loc
end
local i
for i=min_loc, max_loc do
local f = dsb_fetch(CHARACTER, who, i, 0)
if (not f) then
if (not info_table or not info_table.loc[i]) then
dsb_move(what, CHARACTER, who, i, 0)
if (info_table) then
info_table.loc[i] = what
end
return true
end
end
end
return false
end
function place_into_slot(did, who, arch, what, where, fit_func, info_table)
if (did) then return did end
if (info_table and info_table.loc[where]) then
return nil
end
if (fit_check(fit_func, arch, id, who)) then
local blocked = dsb_fetch(CHARACTER, who, where, 0)
if (blocked) then return false end
what = dsb_pop_mouse()
dsb_move(what, CHARACTER, who, where, 0)
if (info_table) then
info_table.loc[where] = what
end
return where
end
return nil
end
function put_object_away(who, what, info_table, ammo_placement)
local arch = dsb_find_arch(what)
local placed = false
if (info_table) then
if (not info_table.con) then info_table.con = { } end
if (not info_table.loc) then info_table.loc = { } end
end
if (arch.no_fit_inventory) then
return false
end
-- Try to put clothing etc. somewhere it will fit
placed = place_into_slot(placed, who, arch, what, INV_HEAD, "fit_head", info_table)
placed = place_into_slot(placed, who, arch, what, INV_TORSO, "fit_torso", info_table)
placed = place_into_slot(placed, who, arch, what, INV_LEGS, "fit_legs", info_table)
placed = place_into_slot(placed, who, arch, what, INV_FEET, "fit_feet", info_table)
placed = place_into_slot(placed, who, arch, what, INV_NECK, "fit_neck", info_table)
if (placed) then return true end
-- If you have a container in hand, you probably want to use it
placed = place_into_containers_in_range(who, what, INV_R_HAND, INV_L_HAND, nil, info_table)
if (placed) then return true end
if (fit_check("fit_quiver", arch, what, who)) then
local got = place_into_quiver(who, what, info_table)
if (got) then return true end
end
placed = place_into_slot(false, who, arch, what, INV_QUIVER, "fit_sheath", info_table)
if (placed) then return true end
if (ammo_placement) then
placed = place_into_range(who, what, INV_R_HAND, INV_L_HAND, info_table)
if (placed) then return true end
end
if (fit_check("fit_pouch", arch, what, who)) then
local got = place_into_range(who, what, INV_POUCH, INV_POUCH2, info_table)
if (got) then return true end
end
placed = place_into_containers_in_range(who, what, INV_POUCH, INV_POUCH2, nil, info_table)
if (placed) then return true end
placed = place_into_range(who, what, INV_PACK, MAX_INV_SLOTS-1, info_table)
if (placed) then return true end
placed = place_into_containers_in_range(who, what, INV_PACK, MAX_INV_SLOTS-1, nil, info_table)
if (placed) then return true end
return false
end
-- These functions are useful for determining an attack/injury location.
-- This one just generates one purely randomly.
function random_body_loc()
return dsb_rand(INV_R_HAND, INV_FEET)
end
-- This one uses a zonetable, which is a construct similar to
-- what is stored (in a much more compact form) in CSBwin
-- monsters' word22, using the masks from ubyte590.
function zone_from_zonetable(zonetable)
if (dsb_rand(0, 7) == 0) then
if (dsb_rand(0, 1) == 0) then
return INV_L_HAND
else
return INV_R_HAND
end
else
local znum = dsb_rand(0, 15)
if (znum < zonetable[1]) then
return INV_FEET
elseif (znum < zonetable[2]) then
return INV_LEGS
elseif (znum < zonetable[3]) then
return INV_TORSO
else
return INV_HEAD
end
end
end
-- Define some nice symbolic names since the format is a little weird.
ZT_ATTACK_ANYWHERE = { 4, 8, 12 }
ZT_HEAD = {0, 1, 7}
ZT_HEAD_OR_TORSO_HIGH = {0, 1, 9}
ZT_HEAD_OR_TORSO_LOW = { 0, 2, 9 }
ZT_TORSO = { 0, 3, 10 }
ZT_TORSO_LOWER = { 0, 3, 12 }
ZT_TORSO_MUMMY = { 0, 2, 11 }
ZT_TORSO_GHOST = { 0, 3, 11 }
ZT_TORSO_SCORPION = { 0, 4, 13 }
ZT_TORSO_ZYTAZ = { 0, 4, 12 }
ZT_TORSO_FEET_HITTABLE = {1, 4, 12}
ZT_LEGS = {0, 6, 13}
ZT_LEGS_OR_FEET_LOW = { 3, 9, 14 }
ZT_LEGS_OR_FEET_HIGH = { 3, 9, 13 }
ZT_FEET = { 5, 12, 15 }
ZT_FEET_RUSTER = {6, 13, 15}
ZT_FEET_OR_LEGS = {5, 9, 13 }
function fit_check(val, arch, id, who)
local checkval = arch[val]
if (type(checkval) == "function") then
checkval = checkval(arch, id, who)
end
return checkval
end
-- Search for ammo for some sort of shooting weapon
function valid_ammo(ammo, shooting, weapon)
if (shooting.missile_type) then
if (not weapon or not weapon.need_ammo_type) then
return true
elseif (shooting.missile_type == weapon.need_ammo_type) then
return true
end
end
return false
end
function find_ammo_at_loc(who, ammoloc, weapon, throwing)
local l_hand_obj = dsb_fetch(CHARACTER, who, ammoloc, 0)
local ammo_obj = nil
local ammo_obj_arch = nil
local l_hand_arch = nil
if (l_hand_obj) then
l_hand_arch = dsb_find_arch(l_hand_obj)
if (valid_ammo(l_hand_obj, l_hand_arch, weapon)) then
ammo_obj = l_hand_obj
ammo_obj_arch = l_hand_arch
elseif (l_hand_arch.ammo_holder and (throwing or l_hand_arch.ammo_holder_hand)) then
for iobj in dsb_in_obj(l_hand_obj) do
local iarch = dsb_find_arch(iobj)
if (valid_ammo(iobj, iarch, weapon)) then
ammo_obj = iobj
ammo_obj_arch = iarch
break
end
end
end
end
return ammo_obj, l_hand_obj, ammo_obj_arch, l_hand_arch
end
-- This function is used if a dungeon is imported from another format.
-- It will fix most of the strangenesses that crop up.
function dungeon_translate(champs_only)
local special = { }
for i in dsb_insts() do
local i_arch = dsb_find_arch(i)
if (i_arch == obj.sconce_empty or i_arch == obj.sconce_full) then
if (not champs_only) then
special[i] = -2
end
elseif (i_arch.type == "WALLITEM" and i_arch.class == "CHAMPION_HOLDER") then
special[i] = exvar[i].champion
elseif (exvar[i] and exvar[i].release) then
if (not champs_only) then
special[i] = -1
end
end
end
for i in pairs(special) do
local lev, xc, yc, face = dsb_get_coords(i)
local tileobj = dsb_fetch(lev, xc, yc, face)
local type = special[i]
if (tileobj) then
if (type == -2) then
local have_torch = false
for n in pairs(tileobj) do
local o = tileobj[n]
local o_arch = dsb_find_arch(o)
if (o_arch.class == "TORCH") then
dsb_move(o, IN_OBJ, i, -1, 0)
have_torch = true
break
end
end
if (have_torch) then
dsb_qswap(i, "sconce_full")
if (not exvar[i]) then exvar[i] = { } end
exvar[i].release = true
else dsb_qswap(i, "sconce_empty") end
elseif (type == -1) then
for n in pairs(tileobj) do
local o = tileobj[n]
local o_arch = dsb_find_arch(o)
if (o_arch.type == "THING") then
dsb_move(o, IN_OBJ, i, -1, 0)
end
end
exvar[i].release = true
else
local pack_idx = INV_PACK
local have_head = false
local have_torso = false
local have_legs = false
local have_feet = false
for n in pairs(tileobj) do
local o = tileobj[n]
local o_arch = dsb_find_arch(o)
if (o_arch.type == "THING") then
if (o_arch.fit_head and not have_head) then
dsb_move(o, CHARACTER, type, INV_HEAD, 0)
have_head = true
elseif (o_arch.fit_torso and not have_torso) then
dsb_move(o, CHARACTER, type, INV_TORSO, 0)
have_torso = true
elseif (o_arch.fit_legs and not have_legs) then
dsb_move(o, CHARACTER, type, INV_LEGS, 0)
have_legs = true
elseif (o_arch.fit_feet and not have_feet) then
dsb_move(o, CHARACTER, type, INV_FEET, 0)
have_feet = true
else
dsb_move(o, CHARACTER, type, pack_idx, 0)
pack_idx = pack_idx + 1
end
end
end
end
end
end
end
-- Figure out if the character is overloaded, and whether the
-- level of overload is yellow or red.
function compute_load_level(l, ml)
if (l >= ml) then
return LOAD_RED
else
if (l * 8 > ml * 5) then
return LOAD_YELLOW
end
end
return LOAD_NONE
end
-- Useful for changing actuators
-- Mostly superseded by the qswapper arch
function swapmeaway(id, opby, towhat)
dsb_qswap(id, towhat)
end
-- If a function is required but you just need a false value
function falsereturner()
return false
end
-- Used as part of on_spawn, on_init, and so on
function msg_send(arch, id)
if (arch.send_msg) then
local delay = arch.send_msg[1]
local message = arch.send_msg[2]
local msgdata = arch.send_msg[3]
local msgsender = arch.send_msg[4]
if (not delay) then delay = 0 end
if (not msgdata) then msgdata = 0 end
if (not msgsender) then msgsender = id end
if (message) then
dsb_msg(delay, id, message, msgdata, msgsender)
end
end
end
-- Create a clone of a basic arch and then apply changes
function clone_arch(base, changes)
local new_arch = { }
if (not base) then return nil end
-- Just in case...!
if (type(base) == "string") then base = obj[base] end
for b in pairs(base) do
if (b == "regnum" or
b == "regobj" or
b == "ARCH_NAME")
then
-- Don't copy internal stuff added by DSB
else
new_arch[b] = base[b]
end
end
if (changes) then
for c in pairs(changes) do
new_arch[c] = changes[c]
end
end
return new_arch
end
-- Call a function after a delay
function delay_func_call(delay, func_name, func_param)
if (type(func_name) == "string") then
local caller = dsb_spawn("function_caller", LIMBO, 0, 0, 0)
exvar[caller] = {
m_a = "delay_func_call_invoker",
func = func_name,
param = func_param
}
dsb_msg(delay, caller, M_ACTIVATE, 0)
dsb_msg(delay+1, caller, M_DESTROY, 0)
else
dsb_write(debug_color, "ERROR: DELAY_FUNC_CALL FUNCTION NAME MUST BE A STRING.")
end
end
function delay_func_call_invoker(id, lev, xc, yc, tile, data, sender)
local call_func = dsb_lookup_global(exvar[id].func)
if (call_func and type(call_func) == "function") then
call_func(unpack(exvar[id].param))
end
end
|
local M = {}
local config = require("core.utils").user_settings()
function M.config()
local status_ok, treesitter = pcall(require, "nvim-treesitter.configs")
if not status_ok then
return
end
local default_opts = {
ensure_installed = {},
sync_install = false,
ignore_install = {},
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
context_commentstring = {
enable = true,
enable_autocmd = false,
},
autopairs = {
enable = true,
},
incremental_selection = {
enable = true,
},
indent = {
enable = true,
disable = { "python" },
},
rainbow = {
enable = true,
disable = { "html" },
extended_mode = false,
max_file_lines = nil,
},
autotag = {
enable = true,
},
}
treesitter.setup(vim.tbl_deep_extend("force", {}, default_opts, config.overrides.treesitter))
end
return M
|
-- Required Lua/Lapis includes
local lapis = require("lapis")
local config = require("lapis.config").get()
-- Import bit32 library globally for use in etlua templates.
bit32 = require("bit32")
-- Utilities
local futil = require("modules/file_util")
-- 3rd-party
local json = require("modules/3p/json/json")
-- Initial Application setup.
local app = lapis.Application()
-- Database models.
local Device = require("models/device")
-- Enable ETLua templating and set a default layout.
app:enable("etlua")
app.layout = require "views.layout_default"
-- Default index page.
app:get("/", function(self)
-- Display an error message if appropriate.
err_msg = self.session.err_msg
self.session.err_msg = nil
-- Set the web page's title.
page_title = 'SVD Visualizer'
-- Load available devices.
devices = Device:select( "" );
return { render = "main" }
end)
-- POST method to create a new 'device' database entry.
app:post("/new_device/:name", function(self)
-- Simple string sanitization and checking. TODO: Use gsub w/ [A-Za-z0-9]?
if string.match( self.params.name, ";" ) then
return { status = 403, json = { error = "Don't be a jerk, please..." } }
elseif string.match( self.params.name, " " ) then
return { status = 400, json = { error = "Invalid device name." } }
elseif next( Device:select( "where name = ?", self.params.name ) ) then
return { status = 400, json = { error = "Device with that name already exists." } }
end
-- Create the new database entry.
local new_device = Device:create( {
name = self.params.name,
import_state = "PRE"
} )
-- Return success.
return { status = 200, json = { name = self.params.name } }
end)
-- POST method to delete a 'device' database entry.
app:post("/delete_device/:id", function(self)
-- Make sure that the ID is a number, not an SQL injection.
local device_id = tonumber( self.params.id )
-- Find the requested device. (TODO: make sure it exists.)
local dev_to_del = Device:find( device_id )
-- Delete associated files.
os.execute( 'rm -rf static/devices/' .. device_id )
-- Delete database entry.
dev_to_del:delete()
-- Return success.
return { status = 200 }
end)
-- Action to check the current import status of a Device.
app:get("/device_attrs/:id", function(self)
-- Make sure that the ID is a number, not an SQL injection.
local device_id = tonumber( self.params.id )
-- Find the requested device. (TODO: make sure it exists.)
local dev = Device:find( device_id )
-- 'Pre-import' state: the user should be prompted to upload a file.
if ( dev.import_state == "PRE" ) then
return { status = 200, json = { state = "pre_upload" } }
-- 'Processing' state: file has not been processed into JSON yet.
elseif ( dev.import_state == "PROC" ) then
return { status = 200, json = { state = "processing" } }
-- 'Done' state: the device JSON is ready to render.
elseif ( dev.import_state == "DONE" ) then
return { status = 200, json = { state = "done" } }
end
end)
-- POST method to upload an SVD file.
app:post("/device_upload/:id", function(self)
-- Make sure that the Device ID is a number, not an SQL injection.
local device_id = tonumber( self.params.id )
-- Find the requested device. (TODO: make sure it exists.)
local dev = Device:find( device_id )
-- If a file is being processed for this device, reject the upload.
if ( dev.import_state == "PROC" ) then
return { status = 403, json = { error = "Error: An SVD file is already being processed for this device. Please wait for it to complete." } }
end
-- Save the uploaded file if it was uploaded successfully.
futil.ensure_dir_exists( "static/devices/" .. device_id )
if self.params.file and
self.params.file.content and
#self.params.file.content > 0 then
-- Save it as [number].svd. TODO: should I use the name instead?
local svd_path = "static/devices/" .. device_id ..
"/" .. device_id .. ".svd"
futil.write_new_file( svd_path, self.params.file.content )
-- Mark the device as 'ready to process' now that the file exists.
dev:update( { import_state = "PROC" } )
end
-- Load the homepage.
return { redirect_to = "/" }
end)
-- Action to process an SVD file into JSON.
-- The JSON is saved to disk, so this only runs once per device.
app:get( "/process_device/:id" , function( self )
-- Make sure that the Device ID is a number, not an SQL injection.
local device_id = tonumber( self.params.id )
-- Find the requested device. (TODO: make sure it exists.)
local dev = Device:find( device_id )
-- Ensure that the device's SVD file still exists.
if not futil.path_exists( "static/devices/" .. device_id ..
"/" .. device_id .. ".svd" ) then
-- Revert to 'pre-processing' state if the SVD file is missing.
-- The user will need to re-upload it.
dev:update( { import_state = "PRE" } )
return { status = 404, json = { error = { "Could not find uploaded SVD file; reverting to pre-upload state." } } }
end
-- Run the SVD file through the Rust parser. (TODO: Error checking)
os.execute( 'static/rust/svd_reader/target/debug/svd_reader' ..
'static/devices/' .. device_id ..
'/' .. device_id .. '.svd' )
-- Rename the output file once it finishes.
-- (TODO: Update the Rust parser to do this)
os.rename( 'static/devices/' .. device_id .. '/' ..
device_id .. '.svd.json', 'static/devices/' ..
device_id .. '/' .. device_id .. '.json' )
-- Mark the device as 'done processing' and return success.
dev:update( { import_state = "DONE" } )
return { status = 200 }
end)
-- Fetch the raw JSON associated with a Device.
-- (TODO: I think this is unused)
app:get( "/device_json/:id" , function( self )
-- Make sure that the Device ID is a number, not an SQL injection.
local device_id = tonumber( self.params.id )
-- Find the requested device. (TODO: make sure it exists.)
local dev = Device:find( device_id )
-- Open the JSON file.
local json_f = io.open( "static/devices/" .. device_id ..
"/" .. device_id .. ".json", 'r' )
-- Ensure that the file was opened successfully.
if not json_f then
-- Return 'not found' if the file couldn't be opened.
return { status = 404,
json = { error = "Couldn't find processed JSON file." } }
end
-- Read the file.
local json_str = json_f:read( "*all" )
-- We're done with the file now, so close it.
json_f:close()
-- Parse the JSON string into a table.
local json_j = json.decode( json_str )
-- Return failure if the parsing failed.
if not json_j then
return { status = 500,
json = { error = "Couldn't parse processed JSON file." } }
end
-- Return the parsed JSON.
return { status = 200, json = json_j }
end)
-- Action to render an HTML view for a Device.
app:get( "/device_html/:id/:type" , function( self )
-- Make sure that the Device ID is a number, not an SQL injection.
local device_id = tonumber( self.params.id )
-- Find the requested device. (TODO: make sure it exists.)
local dev = Device:find( device_id )
-- Open the JSON file.
local json_f = io.open( "static/devices/" .. device_id ..
"/" .. device_id .. ".json", 'r' )
-- Ensure that the file was opened successfully.
if not json_f then
return { status = 404,
json = { error = "Couldn't find processed JSON file." } }
end
-- Read the file, then close it.
local json_str = json_f:read( "*all" )
json_f:close()
-- Parse the JSON string into a JSON table.
device = json.decode( json_str )
-- Return failure if the parsing failed.
if not device then
return { status = 500,
json = { error = "Couldn't parse processed JSON file." } }
end
-- Render the requested device HTML, and return it.
if self.params.type == 'tree' then
return { render = "device_tree_view" }
elseif self.params.type == 'grid' then
return { render = "device_grid_view" }
else
return { status = 404,
json = { error = "Unrecognized view type." } }
end
end)
return app
|
local Mob = require('mob')
local Cam = require('cam')
local Maph = require('maph')
local Pack = require('pack')
local Hud = require('gui.hud')
local Sword = require('mob.player.sword')
local Spear = require('mob.player.spear')
local HandItem = require('mob.player.hand_item')
local Item = require('mob.item')
local Bench = require('mob.cell.bench')
local Crop = require('mob.cell.crop')
local Arrow = require('mob.arrow')
local Chest = require('mob.cell.chest')
local Biome = require('biome')
local BiomeStar = require('mob.cell.biome_star')
local MobDeath = require('mob.particle.mob_death')
local Tree = require('mob.cell.tree')
local Path = require('path')
local Camera = require('mob.camera')
local Starrot = require('mob.enemy.starrot')
local Torch = require('mob.cell.torch')
local Bomb = require('mob.player.bomb')
local TerrainGeneration = require('terrain_generation')
local Door = require('mob.cell.door')
local isKeyDown = love.keyboard.isDown
local mousePosition = love.mouse.getPosition
local atan2, min, max, sin, cos, floor = math.atan2, math.min, math.max,
math.sin, math.cos, math.floor
local input = input
local Player = {}
Player.__index = Player
setmetatable(Player, {__index = Mob})
function Player.new(assets)
local self = setmetatable(Mob.new(), Player)
self.tags.save = true
self.tags.shove = true
self.tags.player = true
self.hurt_invincible_time = 1
self.hurt_cooldown = 0
self.hurt_knockback = 300
self.camera = Camera.new(self)
self.cam = self.camera.cam
self.hud_cam = Cam.new(0, 0, love.graphics.getDimensions())
self.hud_cam:setScale(4)
-- equipment
self.equipment = {}
for i = 1, 6 do self.equipment[i] = Pack.Slot.new() end
self.equip_glow_range = 0
-- pack
self.cursor_slot = Pack.Slot.new()
self.pack = Pack.new(30)
-- self.pack = Pack.new(70)
self.cur_slot = 1
self.pack:add(Pack.Slot.new(assets.items.sword, 1))
self.pack:add(Pack.Slot.new(assets.items.pickaxe, 1))
self.pack:add(Pack.Slot.new(assets.items.shovel, 1))
self.pack:add(Pack.Slot.new(assets.items.craft_bench, 1))
-- -- add all items to inventory
-- for name, item in pairs(assets.items) do
-- self.pack:add(Pack.Slot.new(item, 900))
-- end
-- -- self.pack:add(Pack.Slot.new(assets.items.stone, 10))
self.biome = Biome.new(assets)
--- The current mob the player is interacting with.
self.interactor = nil
--- The amount of time in seconds that any hotbar slot may be used by the player.
self.slot_use_time = 0
--- Swing direction positive and negative one. Changes each time the player attacks.
self.swing_dir = -1
self.max_hp_base = 100
self.max_hp = self.max_hp_base
self.hp = self.max_hp
self.sprite = assets.sprites.player
self.path = Path.new(35, 35)
self.respawn_wait = 3
self.respawn_timer = 3
self.in_menu = false
self.hud = Hud.new(self)
return self
end
function Player:respawn(x, y)
self.is_alive = true
self.respawn_timer = self.respawn_wait
self.hp = self.max_hp
self.x = x
self.y = y
end
function Player:tick(dt, game)
self.path:tick(self.x, self.y, game.map, dt)
-- tick menu
if input:isKeyPress('e') then self.in_menu = not self.in_menu end
-- debug testing
-- if input:isKeyPress('q') then
-- local msx, msy = self.cam:toWorld(mousePosition())
-- -- -- fills radius
-- -- local slot = self.pack.slots[self.cur_slot]
-- -- local item = slot.item
-- -- local xx, yy = game.map:posToIdx(msx, msy)
-- -- if item and xx and yy then
-- -- if item.usage == 'wall' then
-- -- TerrainGeneration.fillCircleWalls(xx, yy, game.map, item, 2)
-- -- elseif item.usage == 'tile' then
-- -- TerrainGeneration.fillCircleTiles(xx, yy, game.map, item, 2)
-- -- end
-- -- else
-- -- TerrainGeneration.clearCircleWalls(xx, yy, game.map, 2)
-- -- end
-- -- -- summon boss
-- -- local starrot = Starrot.new(game.assets)
-- -- starrot.x = msx
-- -- starrot.y = msy
-- -- game.world:addMob(starrot)
-- -- give items
-- self.pack:add(Pack.Slot.new(game.assets.items.boulder_star, 1))
-- self.pack:add(Pack.Slot.new(game.assets.items.starbit, 1))
-- self.pack:add(Pack.Slot.new(game.assets.items.stone, 300))
-- self.pack:add(Pack.Slot.new(game.assets.items.copper, 100))
-- self.pack:add(Pack.Slot.new(game.assets.items.iron, 100))
-- self.pack:add(Pack.Slot.new(game.assets.items.gold, 100))
-- self.pack:add(Pack.Slot.new(game.assets.items.gold_shovel, 1))
-- self.pack:add(Pack.Slot.new(game.assets.items.gold_pickaxe, 1))
-- self.pack:add(Pack.Slot.new(game.assets.items.chest, 1))
-- self.pack:add(Pack.Slot.new(game.assets.items.beet, 10))
-- end
-- if input:isKeyPress('t') then
-- self.pack = Pack.new(30)
-- self.cur_slot = 1
-- self.pack:add(Pack.Slot.new(game.assets.items.sword, 1))
-- self.pack:add(Pack.Slot.new(game.assets.items.pickaxe, 1))
-- self.pack:add(Pack.Slot.new(game.assets.items.shovel, 1))
-- self.pack:add(Pack.Slot.new(game.assets.items.craft_bench, 1))
-- end
-- movement
local ACCEL = 600
local MAX_SPD = 100
local FRICTION = 800
local in_x = 0
local in_y = 0
if isKeyDown('a') then in_x = in_x - 1 end
if isKeyDown('d') then in_x = in_x + 1 end
if isKeyDown('w') then in_y = in_y - 1 end
if isKeyDown('s') then in_y = in_y + 1 end
in_x, in_y = Maph.normalized(in_x, in_y)
-- find tile friction
-- TODO: simplify
local tile_friction = 1
local xx, yy = game.map:posToIdx(self.x, self.y)
if xx and yy then
local item = game.map:getTile(xx, yy)
if item then tile_friction = item.tile.friction end
end
if in_x == 0 and in_y == 0 then
-- friction
self.xspd = Maph.moveToward(self.xspd, 0, FRICTION * tile_friction * dt)
self.yspd = Maph.moveToward(self.yspd, 0, FRICTION * tile_friction * dt)
else
-- acceleration
self.xspd = Maph.moveToward(self.xspd, MAX_SPD * in_x,
ACCEL * tile_friction * dt)
self.yspd = Maph.moveToward(self.yspd, MAX_SPD * in_y,
ACCEL * tile_friction * dt)
end
self.xspd, self.yspd = self:move(dt, game, self.xspd, self.yspd)
local msx, msy = self.cam:toWorld(mousePosition())
self.angle = atan2(msx - self.x, -(msy - self.y))
self:tickCurSlot()
if not self.hud.is_filtering_cursor then
self:tickItemUse(dt, game)
if not self.cursor_slot:isEmpty() then
-- drop cursor slot
if input:isMousePress(2) then
local item = Item.new(self.cursor_slot:take())
item.x = msx
item.y = msy
game.world:addMob(item)
end
end
end
self:tickMobInteractions(game)
self.biome:tick(dt, game, self)
self:tickEquipment(game)
self:tickHudCam(game)
-- update hurt cooldown
self.hurt_cooldown = max(self.hurt_cooldown - dt, 0)
end
--- Updates the currently selected pack slot.
function Player:tickCurSlot()
local hotbar_len = min(10, self.pack.len)
for i = 1, hotbar_len do
if i <= 9 and input:isKeyPress(tostring(i)) then
self.cur_slot = i
elseif i == 10 and input:isKeyPress('0') then
self.cur_slot = 10
end
end
local change = -input:wheel()
if change ~= 0 then
self.cur_slot = self.cur_slot + change
if self.cur_slot > hotbar_len then
self.cur_slot = 1
elseif self.cur_slot < 1 then
self.cur_slot = hotbar_len
end
end
end
function Player:hurt(game, damage, attacker)
if self.hurt_cooldown <= 0 then
self.hurt_cooldown = self.hurt_invincible_time
-- knockback
local dir_x, dir_y = Maph.normalized(self.x - attacker.x,
self.y - attacker.y)
self.xspd = self.xspd + dir_x * self.hurt_knockback
self.yspd = self.yspd + dir_y * self.hurt_knockback
-- hurt/kill
self.hp = max(self.hp - damage, 0)
if self.hp <= 0 then self:kill(game, attacker) end
end
end
function Player:heal(game, amount) self.hp = min(self.hp + amount, self.max_hp) end
--- Kills the player. `attacker` may be `nil`.
function Player:kill(game, attacker)
self.is_alive = false
game.world:addMob(MobDeath.new(self.sprite, self.x, self.y, self.angle,
self.xspd, self.yspd))
end
function Player:tickItemUse(dt, game)
-- TODO: remove item use logic from player?
-- TODO: simplify into multiple functions
self.slot_use_time = max(self.slot_use_time - dt, 0)
local TOOL_REACH = 64
if self.slot_use_time <= 0 and input:isMouseDown(1) then
local slot = self.pack.slots[self.cur_slot]
if not self.cursor_slot:isEmpty() then slot = self.cursor_slot end
local item = slot.item
if item then
if item.usage == 'none' then
-- do nothing
elseif item.usage == 'tile' then
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and game.map:getTile(xx, yy) ==
game.assets.items.dirt and
Maph.distance(self.x, self.y, msx, msy) < TOOL_REACH then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
game.map:setTile(item, xx, yy)
slot:discard(1)
end
elseif item.usage == 'wall' then
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and not game.map:isWall(xx, yy) and
not game.map:getMob(xx, yy) and
Maph.distance(self.x, self.y, msx, msy) < TOOL_REACH then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
game.map:setWall(item, xx, yy)
slot:discard(1)
end
elseif item.usage == 'bench' then
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and not game.map:isWall(xx, yy) and
Maph.distance(self.x, self.y, msx, msy) < TOOL_REACH and
not game.map:getMob(xx, yy) then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
local bench = Bench.new(item)
bench.x = xx * 16 - 8
bench.y = yy * 16 - 8
game.world:addMob(bench)
slot:discard(1)
end
elseif item.usage == 'door' then
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and not game.map:isWall(xx, yy) and
Maph.distance(self.x, self.y, msx, msy) < TOOL_REACH and
not game.map:getMob(xx, yy) then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
local door = Door.new(item)
door.x = xx * 16 - 8
door.y = yy * 16 - 8
game.world:addMob(door)
slot:discard(1)
end
elseif item.usage == 'torch' then
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and not game.map:isWall(xx, yy) and
Maph.distance(self.x, self.y, msx, msy) < TOOL_REACH and
not game.map:getMob(xx, yy) then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
local torch = Torch.new(item)
torch.x = xx * 16 - 8
torch.y = yy * 16 - 8
game.world:addMob(torch)
slot:discard(1)
end
elseif item.usage == 'biome' then
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and not game.map:isWall(xx, yy) and
Maph.distance(self.x, self.y, msx, msy) < TOOL_REACH and
not game.map:getMob(xx, yy) then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
local biome = BiomeStar.new(item)
biome.x = xx * 16 - 8
biome.y = yy * 16 - 8
game.world:addMob(biome)
slot:discard(1)
end
elseif item.usage == 'tree_seeds' then
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and not game.map:isWall(xx, yy) and
Maph.distance(self.x, self.y, msx, msy) < TOOL_REACH and
not game.map:getMob(xx, yy) then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
local tree = Tree.new(game.assets)
tree.leaf_timer = tree.leaf_wait
tree.x = xx * 16 - 8
tree.y = yy * 16 - 8
game.world:addMob(tree)
slot:discard(1)
end
elseif item.usage == 'chest' then
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and not game.map:isWall(xx, yy) and
Maph.distance(self.x, self.y, msx, msy) < TOOL_REACH and
not game.map:getMob(xx, yy) then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
local chest = Chest.new(item)
chest.x = xx * 16 - 8
chest.y = yy * 16 - 8
game.world:addMob(chest)
slot:discard(1)
end
elseif item.usage == 'starbit' then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
self.max_hp = self.max_hp + 100
self.hp = self.hp + 100
slot:discard(1)
elseif item.usage == 'sword' then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
elseif item.usage == 'spear' then
self.slot_use_time = item.use_time
game.world:addMob(Spear.new(item, self))
elseif item.usage == 'bomb' then
self.slot_use_time = item.use_time
local bomb = Bomb.new(item, self)
bomb.x = self.x
bomb.y = self.y
-- TODO: don't hardcode bomb speed
local BOMB_SPEED = 175
bomb.xspd = sin(self.angle) * BOMB_SPEED
bomb.yspd = -cos(self.angle) * BOMB_SPEED
game.world:addMob(bomb)
slot:discard(1)
elseif item.usage == 'food' then
if self.hp < self.max_hp then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
self:heal(game, item.food.heals)
slot:discard(1)
end
elseif item.usage == 'bow' then
self.slot_use_time = item.use_time
game.world:addMob(HandItem.new(item, self))
if self.pack:itemCount(game.assets.items.arrow) > 0 then
self.pack:discardItem(game.assets.items.arrow, 1)
local arrow = Arrow.new(game.assets.sprites.arrow)
arrow.x = self.x
arrow.y = self.y
-- TODO: don't hardcode arrow speed
local ARROW_SPEED = 250
arrow.xspd = sin(self.angle) * ARROW_SPEED
arrow.yspd = -cos(self.angle) * ARROW_SPEED
game.world:addMob(arrow)
end
elseif item.usage == 'pickaxe' then
local make_sword = false
if input:isMousePress(1) then make_sword = true end
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and Maph.distance(self.x, self.y, msx, msy) <
TOOL_REACH then
local wall = game.map:getWall(xx, yy)
local mob = game.map:getMob(xx, yy)
if wall then
-- break wall
make_sword = true
local drop = Item.new(Pack.Slot.new(wall, 1))
drop.x = xx * 16 - 8
drop.y = yy * 16 - 8
game.world:addMob(drop)
game.map:clearWall(xx, yy)
elseif mob then
-- break mob
make_sword = true
mob:onMine(self, game)
end
end
if make_sword then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
end
elseif item.usage == 'shovel' then
local make_sword = false
if input:isMousePress(1) then make_sword = true end
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and Maph.distance(self.x, self.y, msx, msy) <
TOOL_REACH then
local tile = game.map:getTile(xx, yy)
if tile and tile ~= game.assets.items.dirt then
make_sword = true
local mob = Item.new(Pack.Slot.new(tile, 1))
mob.x = xx * 16 - 8
mob.y = yy * 16 - 8
game.world:addMob(mob)
game.map:setTile(game.assets.items.dirt, xx, yy)
end
end
if make_sword then
self.slot_use_time = item.use_time
local shovel = Spear.new(item, self)
shovel.reach = 16
game.world:addMob(shovel)
-- self:swingAttack(game, item)
end
elseif item.usage == 'seed' then
local msx, msy = self.cam:toWorld(mousePosition())
local xx, yy = game.map:posToIdx(msx, msy)
if xx and yy and not game.map:isWall(xx, yy) and
Maph.distance(self.x, self.y, msx, msy) < TOOL_REACH and
not game.map:getMob(xx, yy) then
self.slot_use_time = item.use_time
self:swingAttack(game, item)
local crop = Crop.new(item)
crop.x = xx * 16 - 8
crop.y = yy * 16 - 8
game.world:addMob(crop)
slot:discard(1)
end
end
end
end
end
function Player:swingAttack(game, item)
game.world:addMob(Sword.new(item, self, self.swing_dir))
self.swing_dir = -self.swing_dir
end
function Player:tickMobInteractions(game)
local INTERACTION_DIST = 32
local bench = game.world:nearestTagged('interact', self.x, self.y)
if bench and Maph.distance(self.x, self.y, bench.x, bench.y) <
INTERACTION_DIST then
self.interactor = bench
else
self.interactor = nil
end
end
function Player:tickEquipment(game)
self.equip_glow_range = 0
self.max_hp = self.max_hp_base
for i, slot in ipairs(self.equipment) do
if slot.item then
-- glowing
if slot.item.equipment.light then
self.equip_glow_range = self.equip_glow_range +
slot.item.equipment.light.radius
end
-- max health
if slot.item.equipment.max_hp_increase then
self.max_hp = self.max_hp + slot.item.equipment.max_hp_increase
end
end
end
self.hp = min(self.hp, self.max_hp)
end
function Player:tickHudCam(game)
self.hud_cam:setPosition(-love.graphics.getWidth() / 2,
-love.graphics.getHeight() / 2)
self.hud_cam:setWorld(0, 0, love.graphics.getDimensions())
self.hud_cam:setWindow(0, 0, love.graphics.getDimensions())
end
function Player:draw(game)
if self.hurt_cooldown > 0 then
local pre_shader = love.graphics.getShader()
love.graphics.setShader(game.assets.shaders.white)
game.assets.shaders.white:send('white_scale', min(
self.hurt_cooldown /
self.hurt_invincible_time, 1))
Mob.draw(self, game)
love.graphics.setShader(pre_shader)
else
Mob.draw(self, game)
end
-- draw path
-- self.path:debugDraw()
end
function Player:drawLight(game)
if self.equip_glow_range ~= 0 then
local pre_color = {love.graphics.getColor()}
love.graphics.setColor(0.75, 0.75, 0.75, 1)
love.graphics
.circle('fill', self.x, self.y, self.equip_glow_range * 0.8)
love.graphics.setColor(0.37, 0.37, 0.37, 1)
love.graphics.circle('fill', self.x, self.y, self.equip_glow_range)
love.graphics.setColor(unpack(pre_color))
end
end
--- Returns the player's save state.
function Player:save()
local save = Mob.save(self)
save.module = 'mob.player'
save.hp = self.hp
save.equipment = {}
for i, slot in ipairs(self.equipment) do save.equipment[i] = slot:save() end
save.pack = self.pack:save()
return save
end
--- Returns a new 'Player' from the save state.
function Player.load(save, assets)
local self = Mob.load(save, assets, Player.new(assets))
self.hp = save.hp or self.max_hp
for i, slot in ipairs(save.equipment) do
self.equipment[i]:swap(Pack.Slot.load(slot, assets))
end
if save.pack then self.pack = Pack.load(save.pack, assets) end
return self
end
return Player
|
return {'flyer','flyeren','flynn','flyers','flynns'}
|
local function setup()
xplr.config.modes.custom.visit_path = {
name = "visit path",
key_bindings = {
on_key = {
enter = {
messages = {
{
BashExecSilently = [===[
dir="$(echo "${XPLR_INPUT_BUFFER:?}" | sed 's|~|/home/maximbaz|g')"
echo "FocusPath: $dir" >> "${XPLR_PIPE_MSG_IN:?}"
]===],
},
"PopMode",
},
},
esc = {
help = "cancel",
messages = { "PopMode" },
},
["ctrl-c"] = {
help = "terminate",
messages = { "Terminate" },
},
backspace = {
help = "remove last character",
messages = { "RemoveInputBufferLastCharacter" },
},
["ctrl-u"] = {
help = "remove line",
messages = { { SetInputBuffer = "" } },
},
["ctrl-w"] = {
help = "remove last word",
messages = { "RemoveInputBufferLastWord" },
},
},
default = {
messages = { "BufferInputFromKey" },
},
},
}
end
return { setup = setup }
|
text = nil
local TEXT = ''
local CHAR = ''
local KEY, IDX = nil, -1
local MAP = {
['1'] = { '1', '.', ',' }
, ['2'] = { 'a', 'b', 'c', '2' }
, ['3'] = { 'd', 'e', 'f', '3' }
, ['4'] = { 'g', 'h', 'i', '4' }
, ['5'] = { 'j', 'k', 'l', '5' }
, ['6'] = { 'm', 'n', 'o', '6' }
, ['7'] = { 'p', 'q', 'r', 's', '7' }
, ['8'] = { 't', 'u', 'v', '8' }
, ['9'] = { 'w', 'x', 'y', 'z', '9' }
, ['0'] = { '0' }
}
local UPPER = false
local case = function (c)
return (UPPER and string.upper(c)) or c
end
local dx, dy = canvas:attrSize()
canvas:attrFont('vera', 3*dy/4)
function redraw ()
canvas:attrColor('black')
canvas:drawRect('fill', 0,0, dx,dy)
canvas:attrColor('white')
canvas:drawText(0,0, TEXT..case(CHAR)..'|')
canvas:flush()
end
local evt = {
class = 'ncl',
type = 'attribution',
name = 'text',
}
local function setText (new, outside)
TEXT = new or TEXT..case(CHAR)
text = TEXT
CHAR, UPPER = '', false
KEY, IDX = nil, -1
-- notifica o documento NCL
if not outside then
evt.value = TEXT
evt.action = 'start'; event.post(evt)
evt.action = 'stop'; event.post(evt)
end
end
local TIMER = nil
local function timeout ()
return event.timer(1000,
function()
if KEY then
setText()
end
end)
end
local function nclHandler (evt)
if evt.class ~= 'ncl' then return end
if evt.type == 'attribution' then
if evt.name == 'text' then
setText(evt.value, true)
end
end
redraw()
return true
end
event.register(nclHandler)
local sel = {
class = 'ncl',
type = 'presentation',
label = 'select',
}
local function keyHandler (evt)
if evt.class ~= 'key' then return end
if evt.type ~= 'press' then return true end
local key = evt.key
-- SELECT
if (key == 'ENTER') then
setText()
sel.action = 'start'; event.post(sel)
sel.action = 'stop'; event.post(sel)
-- BACKSPACE
elseif (key == 'CURSOR_LEFT') then
setText( (KEY and TEXT) or string.sub(TEXT, 1, -2) )
-- UPPER
elseif (key == 'CURSOR_UP') then
UPPER = not UPPER
-- SPACE
elseif (key == 'CURSOR_RIGHT') then
setText( (not KEY) and (TEXT..' ') )
-- NUMBER
elseif _G.tonumber(key) then
if KEY and (KEY ~= key) then
setText()
end
IDX = (IDX + 1) % #MAP[key]
CHAR = MAP[key][IDX+1]
KEY = key
end
if TIMER then TIMER() end
TIMER = timeout()
redraw()
return true
end
event.register(keyHandler)
|
local home = {}
function home.setup_scr_home(ui)
--Write codes home
ui.home = lvgl.obj_create(nil, nil)
--Write codes home_cont1
ui.home_cont1 = lvgl.cont_create(ui.home, nil)
--Write style lvgl.CONT_PART_MAIN for home_cont1
-- local style_home_cont1_main
-- lvgl.style_init(style_home_cont1_main)
local style_home_cont1_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_cont1_main
lvgl.style_set_radius(style_home_cont1_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_bg_color(style_home_cont1_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x2f, 0x32, 0x43))
lvgl.style_set_bg_grad_color(style_home_cont1_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x2f, 0x32, 0x43))
lvgl.style_set_bg_grad_dir(style_home_cont1_main, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_cont1_main, lvgl.STATE_DEFAULT, 255)
lvgl.style_set_border_color(style_home_cont1_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x99, 0x99, 0x99))
lvgl.style_set_border_width(style_home_cont1_main, lvgl.STATE_DEFAULT, 1)
lvgl.style_set_border_opa(style_home_cont1_main, lvgl.STATE_DEFAULT, 255)
lvgl.style_set_pad_left(style_home_cont1_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_right(style_home_cont1_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_top(style_home_cont1_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_bottom(style_home_cont1_main, lvgl.STATE_DEFAULT, 0)
lvgl.obj_add_style(ui.home_cont1, lvgl.CONT_PART_MAIN, style_home_cont1_main)
lvgl.obj_set_pos(ui.home_cont1, 0, 0)
lvgl.obj_set_size(ui.home_cont1, 480, 100)
lvgl.obj_set_click(ui.home_cont1, false)
lvgl.cont_set_layout(ui.home_cont1, lvgl.LAYOUT_OFF)
lvgl.cont_set_fit(ui.home_cont1, lvgl.FIT_NONE)
--Write codes home_whitebg
ui.home_whitebg = lvgl.cont_create(ui.home, nil)
--Write style lvgl.CONT_PART_MAIN for home_whitebg
-- local style_home_whitebg_main
-- lvgl.style_init(style_home_whitebg_main)
local style_home_whitebg_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_whitebg_main
lvgl.style_set_radius(style_home_whitebg_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_bg_color(style_home_whitebg_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xf6, 0xfa, 0xff))
lvgl.style_set_bg_grad_color(style_home_whitebg_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xf6, 0xfa, 0xff))
lvgl.style_set_bg_grad_dir(style_home_whitebg_main, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_whitebg_main, lvgl.STATE_DEFAULT, 255)
lvgl.style_set_border_color(style_home_whitebg_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x99, 0x99, 0x99))
lvgl.style_set_border_width(style_home_whitebg_main, lvgl.STATE_DEFAULT, 1)
lvgl.style_set_border_opa(style_home_whitebg_main, lvgl.STATE_DEFAULT, 255)
lvgl.style_set_pad_left(style_home_whitebg_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_right(style_home_whitebg_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_top(style_home_whitebg_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_bottom(style_home_whitebg_main, lvgl.STATE_DEFAULT, 0)
lvgl.obj_add_style(ui.home_whitebg, lvgl.CONT_PART_MAIN, style_home_whitebg_main)
lvgl.obj_set_pos(ui.home_whitebg, 0, 100)
lvgl.obj_set_size(ui.home_whitebg, 480, 172)
lvgl.obj_set_click(ui.home_whitebg, false)
lvgl.cont_set_layout(ui.home_whitebg, lvgl.LAYOUT_OFF)
lvgl.cont_set_fit(ui.home_whitebg, lvgl.FIT_NONE)
--Write codes home_cont2
ui.home_cont2 = lvgl.cont_create(ui.home, nil)
--Write style lvgl.CONT_PART_MAIN for home_cont2
-- local style_home_cont2_main
-- lvgl.style_init(style_home_cont2_main)
local style_home_cont2_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_cont2_main
lvgl.style_set_radius(style_home_cont2_main, lvgl.STATE_DEFAULT, 10)
lvgl.style_set_bg_color(style_home_cont2_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xf6, 0xfa, 0xff))
lvgl.style_set_bg_grad_color(style_home_cont2_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xf6, 0xfa, 0xff))
lvgl.style_set_bg_grad_dir(style_home_cont2_main, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_cont2_main, lvgl.STATE_DEFAULT, 255)
lvgl.style_set_border_color(style_home_cont2_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x99, 0x99, 0x99))
lvgl.style_set_border_width(style_home_cont2_main, lvgl.STATE_DEFAULT, 1)
lvgl.style_set_border_opa(style_home_cont2_main, lvgl.STATE_DEFAULT, 255)
lvgl.style_set_pad_left(style_home_cont2_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_right(style_home_cont2_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_top(style_home_cont2_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_bottom(style_home_cont2_main, lvgl.STATE_DEFAULT, 0)
lvgl.obj_add_style(ui.home_cont2, lvgl.CONT_PART_MAIN, style_home_cont2_main)
lvgl.obj_set_pos(ui.home_cont2, 40, 80)
lvgl.obj_set_size(ui.home_cont2, 380, 120)
lvgl.obj_set_click(ui.home_cont2, false)
lvgl.cont_set_layout(ui.home_cont2, lvgl.LAYOUT_OFF)
lvgl.cont_set_fit(ui.home_cont2, lvgl.FIT_NONE)
--Write codes home_labeldate
ui.home_labeldate = lvgl.label_create(ui.home, nil)
-- lvgl.label_set_text(ui.home_labeldate, "20 Nov 2020 08:08")
lvgl.label_set_long_mode(ui.home_labeldate, lvgl.LABEL_LONG_BREAK)
lvgl.label_set_align(ui.home_labeldate, lvgl.LABEL_ALIGN_CENTER)
--Write style lvgl.LABEL_PART_MAIN for home_labeldate
-- local style_home_labeldate_main
-- lvgl.style_init(style_home_labeldate_main)
local style_home_labeldate_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_labeldate_main
lvgl.style_set_radius(style_home_labeldate_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_bg_color(style_home_labeldate_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x2f, 0x32, 0x43))
lvgl.style_set_bg_grad_color(style_home_labeldate_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x2f, 0x32, 0x43))
lvgl.style_set_bg_grad_dir(style_home_labeldate_main, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_labeldate_main, lvgl.STATE_DEFAULT, 255)
lvgl.style_set_text_color(style_home_labeldate_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_text_font(style_home_labeldate_main, lvgl.STATE_DEFAULT, lvgl.font_get("opposans_m_18"))
lvgl.style_set_text_letter_space(style_home_labeldate_main, lvgl.STATE_DEFAULT, 2)
lvgl.style_set_pad_left(style_home_labeldate_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_right(style_home_labeldate_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_top(style_home_labeldate_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_bottom(style_home_labeldate_main, lvgl.STATE_DEFAULT, 0)
lvgl.obj_add_style(ui.home_labeldate, lvgl.LABEL_PART_MAIN, style_home_labeldate_main)
lvgl.obj_set_pos(ui.home_labeldate, 240, 30)
lvgl.obj_set_size(ui.home_labeldate, 225, 0)
--Write codes home_imgbtncopy
ui.home_imgbtncopy = lvgl.imgbtn_create(ui.home, nil)
--Write style lvgl.IMGBTN_PART_MAIN for home_imgbtncopy
-- local style_home_imgbtncopy_main
-- lvgl.style_init(style_home_imgbtncopy_main)
local style_home_imgbtncopy_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_imgbtncopy_main
lvgl.style_set_text_color(style_home_imgbtncopy_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor(style_home_imgbtncopy_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_imgbtncopy_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_imgbtncopy_main, lvgl.STATE_DEFAULT, 255)
--Write style state: lvgl.STATE_PRESSED for style_home_imgbtncopy_main
lvgl.style_set_text_color(style_home_imgbtncopy_main, lvgl.STATE_PRESSED, lvgl.color_make(0xFF, 0x33, 0xFF))
lvgl.style_set_image_recolor(style_home_imgbtncopy_main, lvgl.STATE_PRESSED, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor_opa(style_home_imgbtncopy_main, lvgl.STATE_PRESSED, 0)
--Write style state: lvgl.STATE_CHECKED for style_home_imgbtncopy_main
lvgl.style_set_text_color(style_home_imgbtncopy_main, lvgl.STATE_CHECKED, lvgl.color_make(0xFF, 0x33, 0xFF))
lvgl.style_set_image_recolor(style_home_imgbtncopy_main, lvgl.STATE_CHECKED, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor_opa(style_home_imgbtncopy_main, lvgl.STATE_CHECKED, 0)
lvgl.obj_add_style(ui.home_imgbtncopy, lvgl.IMGBTN_PART_MAIN, style_home_imgbtncopy_main)
lvgl.obj_set_pos(ui.home_imgbtncopy, 50, 90)
lvgl.obj_set_size(ui.home_imgbtncopy, 85, 100)
lvgl.imgbtn_set_src(ui.home_imgbtncopy,lvgl.BTN_STATE_RELEASED,"/images/btn_bg_1_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtncopy,lvgl.BTN_STATE_PRESSED,"/images/btn_bg_1_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtncopy,lvgl.BTN_STATE_CHECKED_RELEASED,"/images/btn_bg_1_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtncopy,lvgl.BTN_STATE_CHECKED_PRESSED,"/images/btn_bg_1_alpha_85x100.png")
--Write codes home_labelcopy
ui.home_labelcopy = lvgl.label_create(ui.home, nil)
lvgl.label_set_text(ui.home_labelcopy, "复印")
lvgl.label_set_long_mode(ui.home_labelcopy, lvgl.LABEL_LONG_BREAK)
lvgl.label_set_align(ui.home_labelcopy, lvgl.LABEL_ALIGN_CENTER)
--Write style lvgl.LABEL_PART_MAIN for home_labelcopy
-- local style_home_labelcopy_main
-- lvgl.style_init(style_home_labelcopy_main)
local style_home_labelcopy_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_labelcopy_main
lvgl.style_set_radius(style_home_labelcopy_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_bg_color(style_home_labelcopy_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_color(style_home_labelcopy_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_dir(style_home_labelcopy_main, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_labelcopy_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_text_color(style_home_labelcopy_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_text_font(style_home_labelcopy_main, lvgl.STATE_DEFAULT, lvgl.font_get("opposans_m_18"))
lvgl.style_set_text_letter_space(style_home_labelcopy_main, lvgl.STATE_DEFAULT, 2)
lvgl.style_set_pad_left(style_home_labelcopy_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_right(style_home_labelcopy_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_top(style_home_labelcopy_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_bottom(style_home_labelcopy_main, lvgl.STATE_DEFAULT, 0)
lvgl.obj_add_style(ui.home_labelcopy, lvgl.LABEL_PART_MAIN, style_home_labelcopy_main)
lvgl.obj_set_pos(ui.home_labelcopy, 60, 155)
lvgl.obj_set_size(ui.home_labelcopy, 62, 0)
--Write codes home_imgbtnset
ui.home_imgbtnset = lvgl.imgbtn_create(ui.home, nil)
--Write style lvgl.IMGBTN_PART_MAIN for home_imgbtnset
-- local style_home_imgbtnset_main
-- lvgl.style_init(style_home_imgbtnset_main)
local style_home_imgbtnset_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_imgbtnset_main
lvgl.style_set_text_color(style_home_imgbtnset_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor(style_home_imgbtnset_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_imgbtnset_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_imgbtnset_main, lvgl.STATE_DEFAULT, 255)
--Write style state: lvgl.STATE_PRESSED for style_home_imgbtnset_main
lvgl.style_set_text_color(style_home_imgbtnset_main, lvgl.STATE_PRESSED, lvgl.color_make(0xFF, 0x33, 0xFF))
lvgl.style_set_image_recolor(style_home_imgbtnset_main, lvgl.STATE_PRESSED, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor_opa(style_home_imgbtnset_main, lvgl.STATE_PRESSED, 0)
--Write style state: lvgl.STATE_CHECKED for style_home_imgbtnset_main
lvgl.style_set_text_color(style_home_imgbtnset_main, lvgl.STATE_CHECKED, lvgl.color_make(0xFF, 0x33, 0xFF))
lvgl.style_set_image_recolor(style_home_imgbtnset_main, lvgl.STATE_CHECKED, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor_opa(style_home_imgbtnset_main, lvgl.STATE_CHECKED, 0)
lvgl.obj_add_style(ui.home_imgbtnset, lvgl.IMGBTN_PART_MAIN, style_home_imgbtnset_main)
lvgl.obj_set_pos(ui.home_imgbtnset, 320, 90)
lvgl.obj_set_size(ui.home_imgbtnset, 85, 100)
lvgl.imgbtn_set_src(ui.home_imgbtnset,lvgl.BTN_STATE_RELEASED,"/images/btn4_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtnset,lvgl.BTN_STATE_PRESSED,"/images/btn4_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtnset,lvgl.BTN_STATE_CHECKED_RELEASED,"/images/btn4_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtnset,lvgl.BTN_STATE_CHECKED_PRESSED,"/images/btn4_alpha_85x100.png")
--Write codes home_imgbtnscan
ui.home_imgbtnscan = lvgl.imgbtn_create(ui.home, nil)
--Write style lvgl.IMGBTN_PART_MAIN for home_imgbtnscan
-- local style_home_imgbtnscan_main
-- lvgl.style_init(style_home_imgbtnscan_main)
local style_home_imgbtnscan_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_imgbtnscan_main
lvgl.style_set_text_color(style_home_imgbtnscan_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor(style_home_imgbtnscan_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_imgbtnscan_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_imgbtnscan_main, lvgl.STATE_DEFAULT, 255)
--Write style state: lvgl.STATE_PRESSED for style_home_imgbtnscan_main
lvgl.style_set_text_color(style_home_imgbtnscan_main, lvgl.STATE_PRESSED, lvgl.color_make(0xFF, 0x33, 0xFF))
lvgl.style_set_image_recolor(style_home_imgbtnscan_main, lvgl.STATE_PRESSED, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor_opa(style_home_imgbtnscan_main, lvgl.STATE_PRESSED, 0)
--Write style state: lvgl.STATE_CHECKED for style_home_imgbtnscan_main
lvgl.style_set_text_color(style_home_imgbtnscan_main, lvgl.STATE_CHECKED, lvgl.color_make(0xFF, 0x33, 0xFF))
lvgl.style_set_image_recolor(style_home_imgbtnscan_main, lvgl.STATE_CHECKED, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor_opa(style_home_imgbtnscan_main, lvgl.STATE_CHECKED, 0)
lvgl.obj_add_style(ui.home_imgbtnscan, lvgl.IMGBTN_PART_MAIN, style_home_imgbtnscan_main)
lvgl.obj_set_pos(ui.home_imgbtnscan, 140, 90)
lvgl.obj_set_size(ui.home_imgbtnscan, 85, 100)
lvgl.imgbtn_set_src(ui.home_imgbtnscan,lvgl.BTN_STATE_RELEASED,"/images/btn2_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtnscan,lvgl.BTN_STATE_PRESSED,"/images/btn2_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtnscan,lvgl.BTN_STATE_CHECKED_RELEASED,"/images/btn2_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtnscan,lvgl.BTN_STATE_CHECKED_PRESSED,"/images/btn2_alpha_85x100.png")
--Write codes home_imgbtnprt
ui.home_imgbtnprt = lvgl.imgbtn_create(ui.home, nil)
--Write style lvgl.IMGBTN_PART_MAIN for home_imgbtnprt
-- local style_home_imgbtnprt_main
-- lvgl.style_init(style_home_imgbtnprt_main)
local style_home_imgbtnprt_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_imgbtnprt_main
lvgl.style_set_text_color(style_home_imgbtnprt_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor(style_home_imgbtnprt_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_imgbtnprt_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_imgbtnprt_main, lvgl.STATE_DEFAULT, 255)
--Write style state: lvgl.STATE_PRESSED for style_home_imgbtnprt_main
lvgl.style_set_text_color(style_home_imgbtnprt_main, lvgl.STATE_PRESSED, lvgl.color_make(0xFF, 0x33, 0xFF))
lvgl.style_set_image_recolor(style_home_imgbtnprt_main, lvgl.STATE_PRESSED, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor_opa(style_home_imgbtnprt_main, lvgl.STATE_PRESSED, 0)
--Write style state: lvgl.STATE_CHECKED for style_home_imgbtnprt_main
lvgl.style_set_text_color(style_home_imgbtnprt_main, lvgl.STATE_CHECKED, lvgl.color_make(0xFF, 0x33, 0xFF))
lvgl.style_set_image_recolor(style_home_imgbtnprt_main, lvgl.STATE_CHECKED, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_image_recolor_opa(style_home_imgbtnprt_main, lvgl.STATE_CHECKED, 0)
lvgl.obj_add_style(ui.home_imgbtnprt, lvgl.IMGBTN_PART_MAIN, style_home_imgbtnprt_main)
lvgl.obj_set_pos(ui.home_imgbtnprt, 230, 90)
lvgl.obj_set_size(ui.home_imgbtnprt, 85, 100)
lvgl.imgbtn_set_src(ui.home_imgbtnprt,lvgl.BTN_STATE_RELEASED,"/images//btn3_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtnprt,lvgl.BTN_STATE_PRESSED,"/images//btn3_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtnprt,lvgl.BTN_STATE_CHECKED_RELEASED,"/images//btn3_alpha_85x100.png")
lvgl.imgbtn_set_src(ui.home_imgbtnprt,lvgl.BTN_STATE_CHECKED_PRESSED,"/images//btn3_alpha_85x100.png")
--Write codes home_labelscan
ui.home_labelscan = lvgl.label_create(ui.home, nil)
lvgl.label_set_text(ui.home_labelscan, "扫描")
lvgl.label_set_long_mode(ui.home_labelscan, lvgl.LABEL_LONG_BREAK)
lvgl.label_set_align(ui.home_labelscan, lvgl.LABEL_ALIGN_CENTER)
--Write style lvgl.LABEL_PART_MAIN for home_labelscan
-- local style_home_labelscan_main
-- lvgl.style_init(style_home_labelscan_main)
local style_home_labelscan_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_labelscan_main
lvgl.style_set_radius(style_home_labelscan_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_bg_color(style_home_labelscan_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_color(style_home_labelscan_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_dir(style_home_labelscan_main, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_labelscan_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_text_color(style_home_labelscan_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_text_font(style_home_labelscan_main, lvgl.STATE_DEFAULT, lvgl.font_get("opposans_m_18"))
lvgl.style_set_text_letter_space(style_home_labelscan_main, lvgl.STATE_DEFAULT, 2)
lvgl.style_set_pad_left(style_home_labelscan_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_right(style_home_labelscan_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_top(style_home_labelscan_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_bottom(style_home_labelscan_main, lvgl.STATE_DEFAULT, 0)
lvgl.obj_add_style(ui.home_labelscan, lvgl.LABEL_PART_MAIN, style_home_labelscan_main)
lvgl.obj_set_pos(ui.home_labelscan, 150, 155)
lvgl.obj_set_size(ui.home_labelscan, 60, 0)
--Write codes home_labelprt
ui.home_labelprt = lvgl.label_create(ui.home, nil)
lvgl.label_set_text(ui.home_labelprt, "打印")
lvgl.label_set_long_mode(ui.home_labelprt, lvgl.LABEL_LONG_BREAK)
lvgl.label_set_align(ui.home_labelprt, lvgl.LABEL_ALIGN_CENTER)
--Write style lvgl.LABEL_PART_MAIN for home_labelprt
-- local style_home_labelprt_main
-- lvgl.style_init(style_home_labelprt_main)
local style_home_labelprt_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_labelprt_main
lvgl.style_set_radius(style_home_labelprt_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_bg_color(style_home_labelprt_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_color(style_home_labelprt_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_dir(style_home_labelprt_main, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_labelprt_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_text_color(style_home_labelprt_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_text_font(style_home_labelprt_main, lvgl.STATE_DEFAULT, lvgl.font_get("opposans_m_18"))
lvgl.style_set_text_letter_space(style_home_labelprt_main, lvgl.STATE_DEFAULT, 2)
lvgl.style_set_pad_left(style_home_labelprt_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_right(style_home_labelprt_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_top(style_home_labelprt_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_bottom(style_home_labelprt_main, lvgl.STATE_DEFAULT, 0)
lvgl.obj_add_style(ui.home_labelprt, lvgl.LABEL_PART_MAIN, style_home_labelprt_main)
lvgl.obj_set_pos(ui.home_labelprt, 240, 155)
lvgl.obj_set_size(ui.home_labelprt, 70, 0)
--Write codes home_labelset
ui.home_labelset = lvgl.label_create(ui.home, nil)
lvgl.label_set_text(ui.home_labelset, "设置")
lvgl.label_set_long_mode(ui.home_labelset, lvgl.LABEL_LONG_BREAK)
lvgl.label_set_align(ui.home_labelset, lvgl.LABEL_ALIGN_CENTER)
--Write style lvgl.LABEL_PART_MAIN for home_labelset
-- local style_home_labelset_main
-- lvgl.style_init(style_home_labelset_main)
local style_home_labelset_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_labelset_main
lvgl.style_set_radius(style_home_labelset_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_bg_color(style_home_labelset_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_color(style_home_labelset_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_dir(style_home_labelset_main, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_labelset_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_text_color(style_home_labelset_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_text_font(style_home_labelset_main, lvgl.STATE_DEFAULT, lvgl.font_get("opposans_m_18"))
lvgl.style_set_text_letter_space(style_home_labelset_main, lvgl.STATE_DEFAULT, 2)
lvgl.style_set_pad_left(style_home_labelset_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_right(style_home_labelset_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_top(style_home_labelset_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_bottom(style_home_labelset_main, lvgl.STATE_DEFAULT, 0)
lvgl.obj_add_style(ui.home_labelset, lvgl.LABEL_PART_MAIN, style_home_labelset_main)
lvgl.obj_set_pos(ui.home_labelset, 328, 155)
lvgl.obj_set_size(ui.home_labelset, 75, 0)
--Write codes home_labelnote
ui.home_labelnote = lvgl.label_create(ui.home, nil)
lvgl.label_set_text(ui.home_labelnote, "欢迎使用Luat打印机")
lvgl.label_set_long_mode(ui.home_labelnote, lvgl.LABEL_LONG_BREAK)
lvgl.label_set_align(ui.home_labelnote, lvgl.LABEL_ALIGN_CENTER)
--Write style lvgl.LABEL_PART_MAIN for home_labelnote
-- local style_home_labelnote_main
-- lvgl.style_init(style_home_labelnote_main)
local style_home_labelnote_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_labelnote_main
lvgl.style_set_radius(style_home_labelnote_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_bg_color(style_home_labelnote_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xf6, 0xfa, 0xff))
lvgl.style_set_bg_grad_color(style_home_labelnote_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xf6, 0xfa, 0xff))
lvgl.style_set_bg_grad_dir(style_home_labelnote_main, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_labelnote_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_text_color(style_home_labelnote_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_text_font(style_home_labelnote_main, lvgl.STATE_DEFAULT, lvgl.font_get("opposans_m_22"))
lvgl.style_set_text_letter_space(style_home_labelnote_main, lvgl.STATE_DEFAULT, 2)
lvgl.style_set_pad_left(style_home_labelnote_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_right(style_home_labelnote_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_top(style_home_labelnote_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_bottom(style_home_labelnote_main, lvgl.STATE_DEFAULT, 0)
lvgl.obj_add_style(ui.home_labelnote, lvgl.LABEL_PART_MAIN, style_home_labelnote_main)
lvgl.obj_set_pos(ui.home_labelnote, 16, 225)
lvgl.obj_set_size(ui.home_labelnote, 276, 0)
--Write codes home_contbars
ui.home_contbars = lvgl.cont_create(ui.home, nil)
--Write style lvgl.CONT_PART_MAIN for home_contbars
-- local style_home_contbars_main
-- lvgl.style_init(style_home_contbars_main)
local style_home_contbars_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_contbars_main
lvgl.style_set_radius(style_home_contbars_main, lvgl.STATE_DEFAULT, 5)
lvgl.style_set_bg_color(style_home_contbars_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xf6, 0xfa, 0xff))
lvgl.style_set_bg_grad_color(style_home_contbars_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xf6, 0xfa, 0xff))
lvgl.style_set_bg_grad_dir(style_home_contbars_main, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_contbars_main, lvgl.STATE_DEFAULT, 255)
lvgl.style_set_border_color(style_home_contbars_main, lvgl.STATE_DEFAULT, lvgl.color_make(0x99, 0x99, 0x99))
lvgl.style_set_border_width(style_home_contbars_main, lvgl.STATE_DEFAULT, 1)
lvgl.style_set_border_opa(style_home_contbars_main, lvgl.STATE_DEFAULT, 255)
lvgl.style_set_pad_left(style_home_contbars_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_right(style_home_contbars_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_top(style_home_contbars_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_pad_bottom(style_home_contbars_main, lvgl.STATE_DEFAULT, 0)
lvgl.obj_add_style(ui.home_contbars, lvgl.CONT_PART_MAIN, style_home_contbars_main)
lvgl.obj_set_pos(ui.home_contbars, 300, 205)
lvgl.obj_set_size(ui.home_contbars, 150, 50)
lvgl.obj_set_click(ui.home_contbars, false)
lvgl.cont_set_layout(ui.home_contbars, lvgl.LAYOUT_OFF)
lvgl.cont_set_fit(ui.home_contbars, lvgl.FIT_NONE)
--Write codes home_bar1
ui.home_bar1 = lvgl.bar_create(ui.home, nil)
--Write style lvgl.BAR_PART_BG for home_bar1
-- local style_home_bar1_bg
-- lvgl.style_init(style_home_bar1_bg)
local style_home_bar1_bg = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_bar1_bg
lvgl.style_set_radius(style_home_bar1_bg, lvgl.STATE_DEFAULT, 5)
lvgl.style_set_bg_color(style_home_bar1_bg, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_color(style_home_bar1_bg, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_dir(style_home_bar1_bg, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_bar1_bg, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_bar1, lvgl.BAR_PART_BG, style_home_bar1_bg)
--Write style lvgl.BAR_PART_INDIC for home_bar1
-- local style_home_bar1_indic
-- lvgl.style_init(style_home_bar1_indic)
local style_home_bar1_indic = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_bar1_indic
lvgl.style_set_radius(style_home_bar1_indic, lvgl.STATE_DEFAULT, 10)
lvgl.style_set_bg_color(style_home_bar1_indic, lvgl.STATE_DEFAULT, lvgl.color_make(0x01, 0xa2, 0xb1))
lvgl.style_set_bg_grad_color(style_home_bar1_indic, lvgl.STATE_DEFAULT, lvgl.color_make(0x01, 0xa2, 0xb1))
lvgl.style_set_bg_grad_dir(style_home_bar1_indic, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_bar1_indic, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_bar1, lvgl.BAR_PART_INDIC, style_home_bar1_indic)
lvgl.obj_set_pos(ui.home_bar1, 315, 220)
lvgl.obj_set_size(ui.home_bar1, 20, 30)
lvgl.bar_set_anim_time(ui.home_bar1,1000)
lvgl.bar_set_value(ui.home_bar1,60,lvgl.ANIM_OFF)
lvgl.bar_set_range(ui.home_bar1,0,100)
--Write codes home_bar2
ui.home_bar2 = lvgl.bar_create(ui.home, nil)
--Write style lvgl.BAR_PART_BG for home_bar2
-- local style_home_bar2_bg
-- lvgl.style_init(style_home_bar2_bg)
local style_home_bar2_bg = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_bar2_bg
lvgl.style_set_radius(style_home_bar2_bg, lvgl.STATE_DEFAULT, 5)
lvgl.style_set_bg_color(style_home_bar2_bg, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_color(style_home_bar2_bg, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_dir(style_home_bar2_bg, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_bar2_bg, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_bar2, lvgl.BAR_PART_BG, style_home_bar2_bg)
--Write style lvgl.BAR_PART_INDIC for home_bar2
-- local style_home_bar2_indic
-- lvgl.style_init(style_home_bar2_indic)
local style_home_bar2_indic = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_bar2_indic
lvgl.style_set_radius(style_home_bar2_indic, lvgl.STATE_DEFAULT, 10)
lvgl.style_set_bg_color(style_home_bar2_indic, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0x00, 0xff))
lvgl.style_set_bg_grad_color(style_home_bar2_indic, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0x00, 0xff))
lvgl.style_set_bg_grad_dir(style_home_bar2_indic, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_bar2_indic, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_bar2, lvgl.BAR_PART_INDIC, style_home_bar2_indic)
lvgl.obj_set_pos(ui.home_bar2, 350, 220)
lvgl.obj_set_size(ui.home_bar2, 20, 30)
lvgl.bar_set_anim_time(ui.home_bar2,1000)
lvgl.bar_set_value(ui.home_bar2,40,lvgl.ANIM_OFF)
lvgl.bar_set_range(ui.home_bar2,0,100)
--Write codes home_bar3
ui.home_bar3 = lvgl.bar_create(ui.home, nil)
--Write style lvgl.BAR_PART_BG for home_bar3
-- local style_home_bar3_bg
-- lvgl.style_init(style_home_bar3_bg)
local style_home_bar3_bg = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_bar3_bg
lvgl.style_set_radius(style_home_bar3_bg, lvgl.STATE_DEFAULT, 5)
lvgl.style_set_bg_color(style_home_bar3_bg, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_color(style_home_bar3_bg, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_dir(style_home_bar3_bg, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_bar3_bg, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_bar3, lvgl.BAR_PART_BG, style_home_bar3_bg)
--Write style lvgl.BAR_PART_INDIC for home_bar3
-- local style_home_bar3_indic
-- lvgl.style_init(style_home_bar3_indic)
local style_home_bar3_indic = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_bar3_indic
lvgl.style_set_radius(style_home_bar3_indic, lvgl.STATE_DEFAULT, 10)
lvgl.style_set_bg_color(style_home_bar3_indic, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0x80))
lvgl.style_set_bg_grad_color(style_home_bar3_indic, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0x80))
lvgl.style_set_bg_grad_dir(style_home_bar3_indic, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_bar3_indic, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_bar3, lvgl.BAR_PART_INDIC, style_home_bar3_indic)
lvgl.obj_set_pos(ui.home_bar3, 385, 220)
lvgl.obj_set_size(ui.home_bar3, 20, 30)
lvgl.bar_set_anim_time(ui.home_bar3,1000)
lvgl.bar_set_value(ui.home_bar3,80,lvgl.ANIM_OFF)
lvgl.bar_set_range(ui.home_bar3,0,100)
--Write codes home_bar4
ui.home_bar4 = lvgl.bar_create(ui.home, nil)
--Write style lvgl.BAR_PART_BG for home_bar4
-- local style_home_bar4_bg
-- lvgl.style_init(style_home_bar4_bg)
local style_home_bar4_bg = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_bar4_bg
lvgl.style_set_radius(style_home_bar4_bg, lvgl.STATE_DEFAULT, 5)
lvgl.style_set_bg_color(style_home_bar4_bg, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_color(style_home_bar4_bg, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_bg_grad_dir(style_home_bar4_bg, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_bar4_bg, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_bar4, lvgl.BAR_PART_BG, style_home_bar4_bg)
--Write style lvgl.BAR_PART_INDIC for home_bar4
-- local style_home_bar4_indic
-- lvgl.style_init(style_home_bar4_indic)
local style_home_bar4_indic = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_bar4_indic
lvgl.style_set_radius(style_home_bar4_indic, lvgl.STATE_DEFAULT, 10)
lvgl.style_set_bg_color(style_home_bar4_indic, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_bg_grad_color(style_home_bar4_indic, lvgl.STATE_DEFAULT, lvgl.color_make(0x00, 0x00, 0x00))
lvgl.style_set_bg_grad_dir(style_home_bar4_indic, lvgl.STATE_DEFAULT, lvgl.GRAD_DIR_VER)
lvgl.style_set_bg_opa(style_home_bar4_indic, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_bar4, lvgl.BAR_PART_INDIC, style_home_bar4_indic)
lvgl.obj_set_pos(ui.home_bar4, 425, 220)
lvgl.obj_set_size(ui.home_bar4, 20, 30)
lvgl.bar_set_anim_time(ui.home_bar4,1000)
lvgl.bar_set_value(ui.home_bar4,30,lvgl.ANIM_OFF)
lvgl.bar_set_range(ui.home_bar4,0,100)
--Write codes home_wifi
ui.home_wifi = lvgl.img_create(ui.home, nil)
--Write style lvgl.IMG_PART_MAIN for home_wifi
-- local style_home_wifi_main
-- lvgl.style_init(style_home_wifi_main)
local style_home_wifi_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_wifi_main
lvgl.style_set_image_recolor(style_home_wifi_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_wifi_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_wifi_main, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_wifi, lvgl.IMG_PART_MAIN, style_home_wifi_main)
lvgl.obj_set_pos(ui.home_wifi, 56, 31)
lvgl.obj_set_size(ui.home_wifi, 29, 19)
lvgl.obj_set_click(ui.home_wifi, true)
lvgl.img_set_src(ui.home_wifi,"/images/wifi_alpha_29x19.png")
lvgl.img_set_pivot(ui.home_wifi, 0,0)
lvgl.img_set_angle(ui.home_wifi, 0)
--Write codes home_tel
ui.home_tel = lvgl.img_create(ui.home, nil)
--Write style lvgl.IMG_PART_MAIN for home_tel
-- local style_home_tel_main
-- lvgl.style_init(style_home_tel_main)
local style_home_tel_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_tel_main
lvgl.style_set_image_recolor(style_home_tel_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_tel_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_tel_main, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_tel, lvgl.IMG_PART_MAIN, style_home_tel_main)
lvgl.obj_set_pos(ui.home_tel, 105, 30)
lvgl.obj_set_size(ui.home_tel, 21, 21)
lvgl.obj_set_click(ui.home_tel, true)
lvgl.img_set_src(ui.home_tel,"/images/tel_alpha_21x21.png")
lvgl.img_set_pivot(ui.home_tel, 0,0)
lvgl.img_set_angle(ui.home_tel, 0)
--Write codes home_eco
ui.home_eco = lvgl.img_create(ui.home, nil)
--Write style lvgl.IMG_PART_MAIN for home_eco
-- local style_home_eco_main
-- lvgl.style_init(style_home_eco_main)
local style_home_eco_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_eco_main
lvgl.style_set_image_recolor(style_home_eco_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_eco_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_eco_main, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_eco, lvgl.IMG_PART_MAIN, style_home_eco_main)
lvgl.obj_set_pos(ui.home_eco, 147, 30)
lvgl.obj_set_size(ui.home_eco, 21, 21)
lvgl.obj_set_click(ui.home_eco, true)
lvgl.img_set_src(ui.home_eco,"/images/eco_alpha_21x21.png")
lvgl.img_set_pivot(ui.home_eco, 0,0)
lvgl.img_set_angle(ui.home_eco, 0)
--Write codes home_pc
ui.home_pc = lvgl.img_create(ui.home, nil)
--Write style lvgl.IMG_PART_MAIN for home_pc
-- local style_home_pc_main
-- lvgl.style_init(style_home_pc_main)
local style_home_pc_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_pc_main
lvgl.style_set_image_recolor(style_home_pc_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_pc_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_pc_main, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_pc, lvgl.IMG_PART_MAIN, style_home_pc_main)
lvgl.obj_set_pos(ui.home_pc, 198, 30)
lvgl.obj_set_size(ui.home_pc, 21, 21)
lvgl.obj_set_click(ui.home_pc, true)
lvgl.img_set_src(ui.home_pc,"/images/pc_alpha_21x21.png")
lvgl.img_set_pivot(ui.home_pc, 0,0)
lvgl.img_set_angle(ui.home_pc, 0)
--Write codes home_imgcopy
ui.home_imgcopy = lvgl.img_create(ui.home, nil)
--Write style lvgl.IMG_PART_MAIN for home_imgcopy
-- local style_home_imgcopy_main
-- lvgl.style_init(style_home_imgcopy_main)
local style_home_imgcopy_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_imgcopy_main
lvgl.style_set_image_recolor(style_home_imgcopy_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_imgcopy_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_imgcopy_main, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_imgcopy, lvgl.IMG_PART_MAIN, style_home_imgcopy_main)
lvgl.obj_set_pos(ui.home_imgcopy, 90, 108)
lvgl.obj_set_size(ui.home_imgcopy, 29, 29)
lvgl.obj_set_click(ui.home_imgcopy, true)
lvgl.img_set_src(ui.home_imgcopy,"/images/copy_alpha_29x29.png")
lvgl.img_set_pivot(ui.home_imgcopy, 0,0)
lvgl.img_set_angle(ui.home_imgcopy, 0)
--Write codes home_imgscan
ui.home_imgscan = lvgl.img_create(ui.home, nil)
--Write style lvgl.IMG_PART_MAIN for home_imgscan
-- local style_home_imgscan_main
-- lvgl.style_init(style_home_imgscan_main)
local style_home_imgscan_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_imgscan_main
lvgl.style_set_image_recolor(style_home_imgscan_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_imgscan_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_imgscan_main, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_imgscan, lvgl.IMG_PART_MAIN, style_home_imgscan_main)
lvgl.obj_set_pos(ui.home_imgscan, 180, 108)
lvgl.obj_set_size(ui.home_imgscan, 29, 29)
lvgl.obj_set_click(ui.home_imgscan, true)
lvgl.img_set_src(ui.home_imgscan,"/images/scan_alpha_29x29.png")
lvgl.img_set_pivot(ui.home_imgscan, 0,0)
lvgl.img_set_angle(ui.home_imgscan, 0)
--Write codes home_imgprt
ui.home_imgprt = lvgl.img_create(ui.home, nil)
--Write style lvgl.IMG_PART_MAIN for home_imgprt
-- local style_home_imgprt_main
-- lvgl.style_init(style_home_imgprt_main)
local style_home_imgprt_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_imgprt_main
lvgl.style_set_image_recolor(style_home_imgprt_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_imgprt_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_imgprt_main, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_imgprt, lvgl.IMG_PART_MAIN, style_home_imgprt_main)
lvgl.obj_set_pos(ui.home_imgprt, 270, 108)
lvgl.obj_set_size(ui.home_imgprt, 29, 29)
lvgl.obj_set_click(ui.home_imgprt, true)
lvgl.img_set_src(ui.home_imgprt,"/images/print_alpha_29x29.png")
lvgl.img_set_pivot(ui.home_imgprt, 0,0)
lvgl.img_set_angle(ui.home_imgprt, 0)
--Write codes home_imgset
ui.home_imgset = lvgl.img_create(ui.home, nil)
--Write style lvgl.IMG_PART_MAIN for home_imgset
-- local style_home_imgset_main
-- lvgl.style_init(style_home_imgset_main)
local style_home_imgset_main = lvgl.style_create()
--Write style state: lvgl.STATE_DEFAULT for style_home_imgset_main
lvgl.style_set_image_recolor(style_home_imgset_main, lvgl.STATE_DEFAULT, lvgl.color_make(0xff, 0xff, 0xff))
lvgl.style_set_image_recolor_opa(style_home_imgset_main, lvgl.STATE_DEFAULT, 0)
lvgl.style_set_image_opa(style_home_imgset_main, lvgl.STATE_DEFAULT, 255)
lvgl.obj_add_style(ui.home_imgset, lvgl.IMG_PART_MAIN, style_home_imgset_main)
lvgl.obj_set_pos(ui.home_imgset, 360, 108)
lvgl.obj_set_size(ui.home_imgset, 29, 29)
lvgl.obj_set_click(ui.home_imgset, true)
lvgl.img_set_src(ui.home_imgset,"/images/setup_alpha_29x29.png")
lvgl.img_set_pivot(ui.home_imgset, 0,0)
lvgl.img_set_angle(ui.home_imgset, 0)
end
return home
|
local src_dir, build_dir = ...
package.path = src_dir .. "?.lua;" .. package.path
package.cpath = build_dir .. "?.so;" .. package.cpath
local tap = require("tap")
local ev = require("ev")
local help = require("help")
local dump = require("dumper").dump
local ok = tap.ok
local noleaks = help.collect_and_assert_no_watchers
local loop = ev.Loop.default
function touch_file(path)
ev.Timer.new(function(loop, timer, revents)
os.execute('touch ' .. path)
timer:stop(loop)
end, 1):start(loop)
end
function remove_file(path)
ev.Timer.new(function(loop, timer, revents)
os.execute('rm ' .. path)
timer:stop(loop)
end, 1):start(loop)
end
function test_basic()
local path = os.tmpname()
local stat = ev.Stat.new(function(loop, stat, revents)
local data = stat:getdata()
ok(data.path == path, 'got proper path')
ok(data.attr.nlink > 0, 'file exists')
ok(data.attr.size == 0, 'file has size of 0 bytes')
os.execute('rm ' .. path)
stat:stop(loop)
end, path)
stat:start(loop)
touch_file(path)
loop:loop()
end
function test_remove()
local path = os.tmpname()
local stat = ev.Stat.new(function(loop, stat, revents)
local data = stat:getdata()
ok(data.path == path, 'got proper path')
ok(data.attr.nlink == 0, 'file doesn\'t exist')
ok(data.prev.nlink > 0, 'file previously existed')
stat:stop(loop)
end, path)
stat:start(loop)
remove_file(path)
loop:loop()
end
noleaks(test_basic, "test_basic")
noleaks(test_remove, "test_remove")
|
local recv_protos = {
[1001] = "RoleInfo"
}
return recv_protos
|
-- TODO: Make my own timer class that returns count and limit as well...
dofile("$SURVIVAL_DATA/Scripts/game/util/Timer.lua")
dofile("$SURVIVAL_DATA/Scripts/game/survival_items.lua")
dofile("$SURVIVAL_DATA/Scripts/game/survival_survivalobjects.lua")
StreamReader = class( nil )
local readClock = os.clock
MOD_FOLDER = "$SURVIVAL_DATA/Scripts/game/StreamReaderData"
gameStatsPath = MOD_FOLDER.."/gameStats.json"
streamChatPath = MOD_FOLDER.."/streamchat.json"
function StreamReader.sv_onCreate( self,survivalGameData )
--print("oncreate",survivalGameData)
if sm.isHost then
self:onCreate(survivalGameData)
end
end
-- TODO: Stop reading commands while player is dead
function StreamReader.onCreate( self,survivalGameData ) -- Server_
--print( "Loading Stream Reader",survivalGameData )
self.gameData = survivalGameData
--print('prenetwork',self.network)
self.network = survivalGameData.network -- Needs more research
--print("POSTNET",self.network)
self.readRate = 1 -- Whole seconds in which to wait before reading file again
self.started = readClock()
self.localClock = 0
self.gotTick = false
self.lastInstruction = {['id']= -1}
self.world = survivalGameData.sv.saved.overworld
self.instructionQue = {}
self.initialized = false
-- Cooldowns and other timers
-- CooldownLimits
self.raidLimit = 60 -- whole seconds in which the cooldown counts
self.killLimit = 0
self.shieldLimit = 30 -- How long shield (invincibility) lasts
self.healLimit = 10 -- how long to wait until player can be healed again
self.rainLimit = 45 -- How long before the bombs can drop
self.slapLimit = 50
self.tripLimit = 50
self.blastLimit = 15
self.spawnLimit = 10 -- Only here just in case
self.speedLimit = 15
self.shieldLength = 20
self.rainLength = 1
self.speedLength = 7
-- cooldown counters
self.raidCooldown = Timer()
self.killCooldown = Timer()
self.shieldCooldown = Timer()
self.healCooldown = Timer()
self.rainCooldown = Timer()
self.slapCooldown = Timer()
self.tripCooldown = Timer()
self.blastCooldown = Timer()
self.spawnCooldown = Timer() -- Maybe not?
self.speedCooldown = Timer()
-- LimitedEffect Timers
self.shieldEffect = Timer() -- five seconds?
self.rainEffect = Timer() -- How long it rains for
self.speedEffect = Timer() -- HOw long we be speeding
-- Start counters
self.raidCooldown:start(self.raidLimit)
self.killCooldown:start(self.killLimit)
self.shieldCooldown:start(self.shieldLimit)
self.healCooldown:start(self.healLimit)
self.rainCooldown:start(self.rainLimit)
self.slapCooldown:start(self.slapLimit)
self.tripCooldown:start(self.tripLimit)
self.blastCooldown:start(self.blastLimit)
self.spawnCooldown:start(self.spawnLimit)
self.speedCooldown:start(self.speedLimit)
self.shieldEffect:start(self.shieldLength)
self.rainEffect:start(0)
self.speedEffect:start(0)
self.deathCounter = 0
self.lives = 100 -- Just in case
-- stats =
local loadedGameStats = sm.json.open( gameStatsPath )
local deathStats = loadedGameStats.deaths
deaths = 0
if(deathStats ~= nil and type(deathStats) == "number") then
deaths = deathStats
end
self.gameStats = { -- Not entirely sure what to put here
deaths = deaths,
bonks = 0,
robotKills = 0
}
-- states
self.shielding = false
self.raining = false
self.speedEffected = false
self.speedSet = 0 -- -1 for slow, 1 for fast
self.playerDead = false
self.dataChange = false
end
function StreamReader.server_onDestroy(self)
--print("streamreader destroy")
end
function StreamReader.server_onRefresh( self )
--print("Refresh")
end
function StreamReader.sv_onRefresh( self,survivalGameData )
--print("ReloadingReader",survivalGameData)
self:server_onDestroy()
self:onCreate(survivalGameData)
end
function StreamReader.init(self)
--print("Streamreader init hehe")
end
function StreamReader.sv_readJson(self,fileName)
--print("ReadingJson",fileName)
local instructions = sm.json.open( fileName )
if instructions ~= nil then
--print("GotJson",instructions)
return instructions
else
return nil
end
return instructions
end
function StreamReader.tickSeconds(self) -- ticks off every second that has passed (server)
local now = readClock()
local floorCheck = math.floor(now - self.started)
if self.localClock ~= floorCheck then
self.gotTick = true
self.localClock = floorCheck
self.raidCooldown:tick()
self.killCooldown:tick()
self.shieldCooldown:tick()
self.healCooldown:tick()
self.rainCooldown:tick()
self.slapCooldown:tick()
self.tripCooldown:tick()
self.blastCooldown:tick()
self.spawnCooldown:tick()
self.shieldEffect:tick()
self.rainEffect:tick()
self.speedEffect:tick()
else
self.gotTick = false
self.localClock = floorCheck
end
end
function searchUnitID(unit)
local uuid = nil
if unit == "woc" then
uuid = unit_woc
elseif unit == "tapebot" then
uuid = unit_tapebot
elseif unit == "redtapebot" then
uuid = unit_tapebot_red
elseif unit == "totebot" then
uuid = unit_totebot_green
elseif unit == "haybot" then
uuid = unit_haybot
elseif unit == "worm" then
uuid = unit_worm
elseif unit == "farmbot" then
uuid = unit_farmbot
end
return uuid
end
function searchKitParam(kit)
local instruct = nil
if kit == "meme" then
instruct = "/memekit"
elseif kit == "seed" then
instruct = "/seedkit"
elseif kit == "pipe" then
instruct = "/pipekit"
elseif kit == "food" then
instruct = "/foodkit"
elseif kit == "starter" then
instruct = "/starterkit"
end
return instruct
end
function searchGiveParam(give) -- Possibly combine into one gant switch?
local item = nil
if give == "components" then
item = "/components"
elseif give == "ammo" then
item = "/ammo"
elseif give == "glowsticks" then
item = "/glowsticks"
end
return item
end
function searchItemID(item)
local uuid = nil
if item == 'components' then
uuid = obj_consumable_component
end
return uuid
end
function StreamReader.runInstructions(self,instructionQue)
--print("Running Instructions",instructionQue,self.instructionQue)
--print('final test',instructionQue)
for k=1, #instructionQue do local instruction=instructionQue[k] -- Double check the thing
self:runInstruction(instruction)
self.lastInstruction = instruction
end
end
function StreamReader.runInstruction(self,instruction) -- (Server)?
--print("runing instruction",instruction)
local altmessage = nil
local usernameColor = "#ff0000"
local textColor = "#ffffff"
local moneyColor = "#3fe30e"
local alertmessage = ""
if instruction == nil then
return
end
local chatInstruction = "/"..instruction.type
local chatParam = instruction.params
local paramList = instruction.params
if(type(instruction.params)=="table") then
chatParam = instruction.params[1]
end
local chatMessage = {chatInstruction,chatParam}
if chatInstruction == "/kit" then -- Simple things
chatMessage = {searchKitParam(chatParam)}
elseif chatInstruction == "/raid" then
if self.raidCooldown:done() then
local raidlevel = math.floor(sm.noise.randomNormalDistribution(1,6))-- Randomize the raid level
if raidlevel <=0 then raidlevel = 1 -- Handle potential negatives
elseif raidlevel >=11 then raidlevel = 9 end -- Handle overages.
chatMessage = {chatInstruction,tonumber(raidlevel),3} --
self.raidCooldown:reset()
else
chatMessage = {chatInstruction}
chatInstruction = "cooldown"
end
elseif chatInstruction == "/give" then
chatMessage = {searchGiveParam(chatParam)}
elseif chatInstruction == "/aggro" then
chatMessage = {"/aggroall"}
elseif chatInstruction == "/trip" then
if self.tripCooldown:done() then
chatMessage = {"/tumble",true}
self.tripCooldown:reset()
else
chatMessage = {"/trip"}
chatInstruction = "cooldown"
end
elseif chatInstruction == "/kill" then -- Kills Player
--[[
if self.killCooldown:done() then
chatMessage = {"/die"}
self.killCooldown:reset()
else
chatMessage = {"/kill"}
chatInstruction = "cooldown"
end
]]
elseif chatInstruction == "/heal" then -- heals player to 100%
if self.healCooldown:done() then
chatMessage = {"/sethp",100}
self.healCooldown:reset()
else
chatMessage = {"/heal"}
chatInstruction = "cooldown"
end
elseif chatInstruction == '/spawn' then
local spawnParams = { -- Spawn specified unit around you...
uuid = sm.uuid.new( "00000000-0000-0000-0000-000000000000" ),
world =self.world,
position = self.playerLocation + sm.vec3.new(sm.noise.randomRange(-10,10),sm.noise.randomRange(-10,10),3),
yaw = 0.0
}
spawnParams.uuid = searchUnitID(instruction.params)
self.network:sendToServer( "sv_spawnUnit", spawnParams )
elseif chatInstruction == "/slap" then -- TODO: add paid Megaslap option?
if self.slapCooldown:done() then
local direction = sm.vec3.new(sm.noise.randomRange(-1,1),sm.noise.randomRange(-1,1),sm.noise.randomRange(0,1))
local force = sm.noise.randomRange(1000,7000)
self.slapParams = direction * force
self.gameData:cl_onChatCommand({"/tumble",true}) -- This is a workaround to client-server callbacks, eventually you should just add your own functions to survivalGame
self.slapCooldown:reset()
else
chatMessage = {"/slap"}
chatInstruction = "cooldown"
end
elseif chatInstruction == "/shield" then -- Grant brief invincibility TODO: add effect on player to show shield
if self.shieldCooldown:done() then
self.shieldEffect:reset()
self.shieldEffect:start(self.shieldLength)
self.shieldCooldown:reset()
else
chatMessage = {"/shield"}
chatInstruction = "cooldown"
end
elseif chatInstruction == "/rain" then -- Make it rain explosives
if self.rainCooldown:done() then
self.rainEffect:reset()
self.rainEffect:start(self.rainLength)
self.rainCooldown:reset()
else
chatMessage = {"/rain"}
chatInstruction = "cooldown"
end
elseif chatInstruction == "/slow" then
if self.speedCooldown:done() then
self.speedEffect:reset()
self.speedEffect:start(self.speedLength)
self.speedSet = -1
self.speedCooldown:reset()
else
chatMessage = {"/slow"}
chatInstruction = "cooldown"
end
elseif chatInstruction == "/fast" then
if self.speedCooldown:done() then
self.speedEffect:reset()
self.speedEffect:start(self.speedLength)
self.speedSet = 1
self.speedCooldown:reset()
else
chatMessage = {"/fast"}
chatInstruction = "cooldown"
end
elseif chatInstruction == "/blast" then
if self.blastCooldown:done() then
if not self.blast then
self.blast = true
end
self.blastCooldown:reset()
else
chatMessage = {"/blast"}
chatInstruction ="cooldown"
end
elseif chatInstruction == "/import" then
self.gameData:cl_importCreation(paramList)
elseif chatInstruction == "/chat" then
if #chatParam > 90 then
if (not instruction.amount == 0) then
sm.gui.displayAlertText(usernameColor..instruction.username.." "..textColor.."donated "..moneyColor..instruction.amount, instruction.amount+7)
sm.gui.chatMessage( usernameColor..instruction.username.." "..textColor.."donated "..moneyColor..instruction.amount..": "..textColor..chatParam )
else
sm.gui.displayAlertText(usernameColor..instruction.username.." "..textColor.."sent a message", instruction.amount+5)
sm.gui.chatMessage( usernameColor..instruction.username.." "..textColor..": "..chatParam )
end
else
if (not instruction.amount == 0) then
sm.gui.chatMessage( usernameColor..instruction.username.." "..textColor.."donated "..moneyColor..instruction.amount )
end
sm.gui.displayAlertText(usernameColor..instruction.username.."\n"..textColor..chatParam, instruction.amount+7 )
end
elseif chatInstruction == "/log" then
sm.gui.chatMessage( usernameColor.."Encountered an Exception: "..textColor..chatParam )
if (not instruction.amount == 0) then
sm.gui.chatMessage( usernameColor..instruction.username..textColor.." requires a refund of "..moneyColor..instruction.amount )
end
end
if chatInstruction == "cooldown" then
--print("is on cooldown")
alertmessage = chatMessage[1] .. " Is on cooldown" -- alert player name? just say "/spawn failed"?
elseif chatInstruction ~= "/spawn" and chatInstruction ~= "/import" and chatInstruction ~= "/chat" then
--print("running",chatInstruction)
self.gameData:cl_onChatCommand(chatMessage)
end
-- Alert messages
local showPayments = (self.showPayments or (instruction.amount > 0)) -- TODO: Move to actual configuration
local paymentMessage = ""
if chatInstruction ~= "cooldown" then -- TODO: separate to different function(*s)
if showPayments then
--[[
if instruction.type == "spawn" then
paymentMessage = usernameColor..instruction.username.." "..textColor.." paid "..moneyColor..instruction.amount.." "..textColor.."to spawn a "..instruction.params
elseif instruction.type == 'give' then
paymentMessage = usernameColor..instruction.username.." "..textColor.." paid "..moneyColor..instruction.amount.." "..textColor.."to give you "..instruction.params
elseif instruction.type == 'kit' then
paymentMessage = usernameColor..instruction.username.." "..textColor.." paid "..moneyColor..instruction.amount.." "..textColor.."to give you a "..instruction.params.. " kit"
elseif instruction.type == 'raid' then
paymentMessage = usernameColor..instruction.username.." "..textColor.." paid "..moneyColor..instruction.amount.." "..textColor.."to spawn a level "..chatMessage[2] .. " raid."
elseif instruction.type == 'aggro' then
paymentMessage = usernameColor..instruction.username.." "..textColor.." paid "..moneyColor..instruction.amount.." "..textColor.."to aggro all nearby enemies"
elseif instruction.type == 'kill' then
paymentMessage = usernameColor..instruction.username.." "..textColor.." paid "..moneyColor..instruction.amount.." "..textColor.."to kill you... goodbye"
elseif instruction.type == 'trip' then
paymentMessage = usernameColor..instruction.username.." "..textColor.." paid "..moneyColor..instruction.amount.." "..textColor.."to trip you"
end
]]--
paymentMessage = " paid "..moneyColor..instruction.amount..textColor.." and"
else
if instruction.type == "spawn" then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." spawned a "..instruction.params
elseif instruction.type == 'give' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." gave you "..instruction.params
elseif instruction.type == 'kit' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." gave you a "..instruction.params.. " kit"
elseif instruction.type == 'raid' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." spawned a level "..chatMessage[2] .. " raid."
elseif instruction.type == 'aggro' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." aggrovated all nearby enemies"
elseif instruction.type == 'kill' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." killed you... goodbye"
elseif instruction.type == 'trip' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." tripped you"
elseif instruction.type == 'slap' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." slapped you"
elseif instruction.type == 'shield' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." is protecting you"
elseif instruction.type == 'rain' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." made it rain"
elseif instruction.type == 'heal' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." healed you"
elseif instruction.type == 'blast' then
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." blasted all bots"
elseif instruction.type == 'speed' then
local suffix = " changed Your Speed"
if self.speedSet == -1 then
suffix = " slowed you down"
elseif self.speedSet == 1 then
suffix = " sped you up"
end
alertmessage = usernameColor..instruction.username..textColor..paymentMessage..suffix
elseif instruction.type == 'import' then
local jsonData = self:sv_readJson(MOD_FOLDER.."/"..chatParam.."-desc.json")
alertmessage = usernameColor..instruction.username..textColor..paymentMessage.." imported #db6f16"..jsonData['name']
end
end
end
if instruction ~= nil then
--print("Ran Instruction:",instruction.type)
end
--local testMessge = "#ff0000Hello"
if #alertmessage > 0 then
sm.gui.chatMessage( alertmessage )
end
end
function StreamReader.sv_importCreation(importParams)
sm.creation.importFromFile( importParams.world, "$SURVIVAL_DATA/LocalBlueprints/"..importParams.name..".blueprint", importParams.position )
end
-- Misc funtions
function StreamReader.cl_awaitSlap(self) -- Waits for character to be tumbling before applying impulse
if self.slapParams ~= nil then
self.player.character:applyTumblingImpulse( self.slapParams) -- TODO: add hit effect
self.slapParams = nil -- delete to fly lol
else
return
end
end
function StreamReader.cl_changeSpeed(self)
local speed = 1
--print(self.speedEffect:done(),self.speedEffected)
if not self.speedEffect:done() and not self.speedEffected then
if self.speedSet == 1 then
speed = 6
elseif self.speedSet == -1 then
speed = 0.4
else
speed = 1
end
sm.gui.chatMessage("Starting Speed Change")
self.player.character:setMovementSpeedFraction( speed )-- TODO: use this to add speed/slow/reversed controls
self.speedEffected = true
elseif self.speedEffect:done() and self.speedEffected then
sm.gui.chatMessage("Stopping Speed CHange")
self.player.character:setMovementSpeedFraction(1) -- or default
self.speedSet = 0
self.speedEffected = false
elseif self.speedEffect:done() and not self.speedEffected then
if self.player.character ~= nil then
self.player.character:setMovementSpeedFraction(1) -- or default
end
self.speedSet = 0
end
end
function StreamReader.cl_shield(self) -- Shileds player while shiledEffect timer is not done
--print(self.survivalGameData)
if not self.gameData then return end -- maubeunecessary...
if not self.shieldEffect:done() and not self.shielding then
--self.gameData:cl_shield({character = self.player.character, position = self.playerLocation}) -- in case I want effects to wotk (sm.sendToPlayer)
self.network:sendToServer( "sv_switchGodMode" ) -- need better way to do this...
self.shielding = true
sm.gui.chatMessage("#00ff00Shield Started")
elseif self.shieldEffect:done() and self.shielding then
self.shielding = false
self.network:sendToServer( "sv_switchGodMode" )
sm.gui.chatMessage("#ff0000Shield Stopped")
end
-- body
end
function StreamReader.sv_rain(self,params) -- calls rain event from/to server
if not self.world then return end -- maubeunecessary...
if not self.rainEffect:done() and not self.raining then
--print("Making it rain")
sm.event.sendToWorld( self.world, "sv_e_onChatCommand", {"/rain",location = self.playerLocation} ) -- Add Item command? -- need better way to do this...
self.raining = true
--sm.gui.chatMessage("#ff0000Prepare For Rain")
elseif self.rainEffect:done() and self.raining then
self.raining = false
--[[local bodies = sm.body.getAllBodies()
for _, body in ipairs( bodies ) do
local usable = body:isUsable()
if usable then
local shape = body:getShapes()[1]
if shape:getShapeUuid() == obj_interactive_propanetank_small or shape:getShapeUuid() == obj_interactive_propanetank_large then
sm.physics.explode( shape:getWorldPosition() , 7, 2.0, 6.0, 25.0, "RedTapeBot - ExplosivesHit" )
end
end
--print(shape)
end]]
--sm.gui.chatMessage("#00ff00RainStopped")
end
end
function StreamReader.sv_blast(self)-- Destroys all units arroung?
if not self.blast then return end
sm.event.sendToWorld( self.world, "sv_e_onChatCommand", {"/blast",location = self.playerLocation} ) -- Add Item command? -- need better way to do this...
self.blast = false
end
function StreamReader.readFileAtInterval(self,interval) --- Reads specified file at interval (sever?)
if self.gotTick and self.localClock % interval == 0 then -- Everysecond...
local jsonData = self:sv_readJson(streamChatPath)
--print("Reading json",jsonData)
if jsonData == nil or jsonData == {} or not jsonData or #jsonData == 0 or jsonData == "{}" then
--print("NO data")
return
end
local lastInstructionID = jsonData[#jsonData].id
if self.lastInstruction == nil or lastInstructionID ~= self.lastInstruction.id then
self.recievedInstruction = true
--print("Got new instructions",lastInstructionID,self.lastInstruction.id)
-- Only append instructions that are > than lastInstruction
for i,j in pairs(jsonData) do
if self.lastInstruction == nil or j.id > self.lastInstruction.id then
--print("using",j)
table.insert(self.instructionQue,j)
else
--print("rejected",j)
end
end
--self.instructionQue = jsonData -- Or should I append the new data?
self.lastInstruction = self.instructionQue[#self.instructionQue]
end
end
end
function clearTable(table,lastID)
for k = 0, lastID do
for i, j in pairs(table) do
if k == j.id then
--print("removing",k)
table[i] = nil
--table.remove(table, j)
end
end
end
--print("Trimmed instructions",table)
return table
end
function StreamReader.clearInstructions(self)-- Clears the json file of stuff
local lastInstructions = self:sv_readJson(streamChatPath)
if lastInstructions == nil or self.lastInstruction == nil then -- Shorcut this error
--print("no last instruction",self.lastInstruction)
return
end
local lastInstructionID = self.lastInstruction.id
local clearedTable = clearTable(lastInstructions,lastInstructionID)
if clearedTable == nil or clearedTable == {} then
clearJson = "[]"
else
clearJson = clearedTable
end
self.instructionQue = clearedTable
sm.json.save(clearJson, streamChatPath)
end
function StreamReader.sv_onFixedUpdate( self, timeStep )
-- Server awaiting
if self.initialized then
self:readFileAtInterval(self.readRate)
self:tickSeconds()
self:sv_rain()
self:sv_blast()
end
if self.dataChange then -- output stats to json
--print("dataChange",self.gameStats)
self:outputData(self.gameStats)
self.dataChange = false
end
end
function StreamReader.cl_onFixedUpdate( self, timeStep )
if self.initialized then
local dead = self.player:getCharacter():isDowned()
self.deathCounter = sm.json.open( gameStatsPath ).deaths
if dead and not self.playerDead then
self.deathCounter = self.deathCounter + 1
self.gameStats.deaths = self.deathCounter -- probably unecessary, could consolidate
self.playerDead = true
sm.gui.chatMessage("#ffff00You have died #ff0000" .. self.deathCounter .. " #ffff00times")
self.dataChange = true
elseif not dead and self.playerDead then
self.playerDead = false
end
end
self.move = 0
local player = sm.localPlayer.getPlayer()
if self.player == nil then self.player = player end
if player ~= nil then
local char = player.character
if char ~= nil then
local pos = char:getWorldPosition()
local dir = char:getDirection()
local tel = pos + dir * 5
local cellX, cellY = math.floor( tel.x/64 ), math.floor( tel.y/64 )
local telParams = {cellX,cellY,player,tel}
--self.network:sendToServer( "sv_teleport", telParams )
if pos ~= nil then -- check type too?
self.playerLocation = pos
if not self.initialized then -- everything is loaded
self.initialized = true
print("StreamReader Initialized")
end
end
end
end
-- Await async Functions here
self:cl_awaitSlap()
self:cl_shield()
self:cl_changeSpeed()
if self.recievedInstruction then
--print("recieved instructions",self.instructionQue)
--local success, message = pcall(self:runInstructions(), self.instructionQue) USE THIS WHEN Confidently finished
--print("Instruction result",success,message)
self:runInstructions(self.instructionQue)
self:clearInstructions()
self.recievedInstruction = false
end
--print(self.playerLocation)
end
function StreamReader.outputData(self,data) -- writes data to json file
sm.json.save(data,gameStatsPath)
end
|
-- Material design button.
-- RoactMaterial does not implement floating action buttons, so they are not shown here.
local UserInputService = game:GetService("UserInputService")
-- Import configuration; gives access to Roact library.
local Configuration = require(script.Parent.Parent.Configuration)
local Roact = Configuration.Roact
local RoactAnimate = Configuration.RoactAnimate
local Shadow = require(script.Parent.Shadow)
local Ink = require(script.Parent.Ink)
local TextView = require(script.Parent.TextView)
local ThemeAccessor = require(script.Parent.Parent.Utility.ThemeAccessor)
local BUTTON_TEXT_SUBSTITUTION = string.upper
local RIPPLE_TRIGGER_INPUT_TYPES = {
Enum.UserInputType.MouseButton1,
Enum.UserInputType.MouseButton2,
Enum.UserInputType.MouseButton3,
Enum.UserInputType.Touch
}
local COLOR_TWEEN_INFO = TweenInfo.new(
0.15,
Enum.EasingStyle.Linear
)
local Button = Roact.PureComponent:extend("MaterialButton")
function Button:init(props)
self.state = {
_pressed = false;
_pressPoint = UDim2.new(0, 0, 0, 0);
Elevation = 2;
_mouseOver = false;
_bgColor = RoactAnimate.Value.new(self.props.BackgroundColor3 or (self.props.Flat and ThemeAccessor.Get(self, "FlatButtonColor", Color3.new(1, 1, 1)) or ThemeAccessor.Get(self, "ButtonColor", Color3.new(1, 1, 1))));
}
self._lastInputEvent = tick()
end
function Button:willUpdate(nextProps, nextState)
local goalColor
if nextState._pressed then
goalColor = self.props.PressColor3 or ThemeAccessor.Get(self, self.props.Flat and "FlatButtonPressColor" or "ButtonPressColor", Color3.new(0.9, 0.9, 0.9))
elseif nextState._mouseOver then
goalColor = self.props.HoverColor3 or ThemeAccessor.Get(self, self.props.Flat and "FlatButtonHoverColor" or "ButtonHoverColor", Color3.new(1, 1, 1))
else
goalColor = self.props.BackgroundColor3 or ThemeAccessor.Get(self, self.props.Flat and "FlatButtonColor" or "ButtonColor", Color3.new(1, 1, 1))
end
RoactAnimate(self.state._bgColor, COLOR_TWEEN_INFO, goalColor):Start()
end
function Button:_scheduleHitTest(rbx)
local timestamp = tick()
self._lastHitTest = timestamp
-- Spawn the function in a new thread.
-- This means that visuals will be inaccurate for a frame (or possibly more), but
-- also means that we won't throw if the hit-test somehow executes in `render`.
spawn(function()
if self._lastHitTest == timestamp then
local absolutePosition = rbx.AbsolutePosition
local absoluteSize = rbx.AbsoluteSize
local mousePosition = UserInputService:GetMouseLocation()
local bottomRight = absolutePosition + absoluteSize
if mousePosition.X < absolutePosition.X or mousePosition.Y < absolutePosition.Y or mousePosition.X > bottomRight.X or mousePosition.Y > bottomRight.Y then
self:setState({
_pressed = false,
_mouseOver = false,
})
end
end
end)
end
function Button:render()
local flat = self.props.Flat
local elevation = (flat and 0) or self.state.Elevation
local function hitTester(rbx)
self:_scheduleHitTest(rbx)
end
-- root is a dummy frame
return Roact.createElement("Frame", {
BackgroundTransparency = 1;
Position = self.props.Position or UDim2.new(0, 0, 0, 0);
AnchorPoint = self.props.AnchorPoint or Vector2.new(0, 0);
Size = self.props.Size or UDim2.new(0, 100, 0, 40);
ZIndex = self.props.ZIndex or 1;
LayoutOrder = self.props.LayoutOrder,
[Roact.Change.AbsolutePosition] = hitTester,
[Roact.Change.AbsoluteSize] = hitTester,
}, {
Roact.createElement(RoactAnimate.TextButton, {
AutoButtonColor = false;
BorderSizePixel = 0;
BackgroundColor3 = self.state._bgColor;
Size = UDim2.new(1, 0, 1, 0);
Text = "";
ZIndex = 2;
[Roact.Ref] = function(rbx)
self._rbx = rbx
end;
[Roact.Event.InputBegan] = function(rbx, input)
for _, allowed in ipairs(RIPPLE_TRIGGER_INPUT_TYPES) do
if input.UserInputType == allowed then
local relativeX = (input.Position.X - rbx.AbsolutePosition.X) / rbx.AbsoluteSize.X
local relativeY = (input.Position.Y - rbx.AbsolutePosition.Y) / rbx.AbsoluteSize.Y
self:setState({
_pressPoint = UDim2.new(relativeX, 0, relativeY, 0);
_pressed = true;
})
break
end
end
end,
[Roact.Event.InputEnded] = function(rbx, input)
for _, allowed in ipairs(RIPPLE_TRIGGER_INPUT_TYPES) do
if input.UserInputType == allowed then
self:setState({
_pressed = false;
})
break
end
end
end,
[Roact.Event.MouseEnter] = function()
self:setState({
Elevation = 4;
_mouseOver = true;
})
end;
[Roact.Event.MouseLeave] = function()
self:setState({
Elevation = 2;
_mouseOver = false;
})
end,
[Roact.Event.MouseButton1Click] = function()
if self.props.onClicked then
self.props.onClicked()
end
end,
}, self.props[Roact.Children]);
Children = Roact.createElement("Frame", {
Size = UDim2.new(1, 0, 1, 0),
BackgroundTransparency = 1,
ZIndex = 4,
}, self.props[Roact.Children]),
Ink = Roact.createElement(Ink, {
ZIndex = 3;
Rippling = self.state._pressed;
Origin = self.state._pressPoint;
InkColor3 = self.props.InkColor3 or (self.props.Flat and ThemeAccessor.Get(self, "PrimaryColor") or Color3.new(1, 1, 1));
InkTransparency = 0.5;
});
Shadow = Roact.createElement(Shadow, {
Elevation = elevation;
ZIndex = 1;
});
TextLabel = Roact.createElement(TextView, {
Class = "Button";
Size = UDim2.new(1, 0, 1, 0);
Text = self.props.Text and BUTTON_TEXT_SUBSTITUTION(self.props.Text) or "";
ZIndex = 4;
})
})
end
return Button
|
project "GLFW"
kind "StaticLib"
language "C"
targetdir ("%{wks.location}/bin/" .. outputdir .. "/%{prj.name}")
objdir ("%{wks.location}/bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"module/include/GLFW/glfw3.h",
"module/include/GLFW/glfw3native.h",
"module/src/glfw_config.h",
"module/src/context.c",
"module/src/init.c",
"module/src/input.c",
"module/src/monitor.c",
"module/src/vulkan.c",
"module/src/window.c"
}
filter "system:linux"
pic "On"
systemversion "latest"
staticruntime "On"
files
{
"module/src/x11_init.c",
"module/src/x11_monitor.c",
"module/src/x11_window.c",
"module/src/xkb_unicode.c",
"module/src/posix_time.c",
"module/src/posix_thread.c",
"module/src/glx_context.c",
"module/src/egl_context.c",
"module/src/osmesa_context.c",
"module/src/linux_joystick.c"
}
defines
{
"_GLFW_X11"
}
filter "system:windows"
systemversion "latest"
staticruntime "On"
files
{
"module/src/win32_init.c",
"module/src/win32_joystick.c",
"module/src/win32_monitor.c",
"module/src/win32_time.c",
"module/src/win32_thread.c",
"module/src/win32_window.c",
"module/src/wgl_context.c",
"module/src/egl_context.c",
"module/src/osmesa_context.c"
}
defines
{
"_GLFW_WIN32",
"_CRT_SECURE_NO_WARNINGS"
}
filter "configurations:Debug"
runtime "Debug"
symbols "on"
filter "configurations:Release"
runtime "Release"
optimize "on"
|
function tprint (tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do
formatting = string.rep(" ", indent) .. k .. ": "
if type(v) == "table" then
print(formatting)
tprint(v, indent+1)
elseif type(v) == 'boolean' then
print(formatting .. tostring(v))
else
print(formatting .. v)
end
end
end
function recv(v)
print(type(v))
tprint(v, 0)
end
local obj = {key= "str"}
send({key= "str", miaou=1})
send({key= "str", miaou={1,2,3}})
|
-- the unlocked wardrobe is kind of buggy and messy
local CM = ClickMorph
if not CM.isRetail then return end
local db
local cache = {}
local f = CreateFrame("Frame")
local VerifyFrame = CreateFrame("Frame")
local ItemsCollection
local active, unlocked
local startupTimer, startupUnlockTime
local IsWardRobeSortLoaded -- WardRobeSort actually gets screwed by this addon
local verifyIterations = 0
local needsRefresh
local needsModelUpdate
local ScanningModel
local MAX_SOURCE_ID = 1.1e5 -- highest ID is 104339 (8.1.5)
local MAX_ILLUSION_ID = 1e4 -- highest ID is 6096 (8.1.5)
local defaults = {
version = 1,
build = select(2, GetBuildInfo()),
}
local weaponSlots = {
MAINHANDSLOT = true,
SECONDARYHANDSLOT = true,
}
-- C_TransmogCollection.GetCategoryInfo is filtered by class proficiency
local weaponCategories = {
-- name, isWeapon, canEnchant, canMainHand
-- fallback for canOffHand to original values
[12] = {"Wands", true, true, true},
[13] = {"One-Handed Axes", true, true, true},
[14] = {"One-Handed Swords", true, true, true},
[15] = {"One-Handed Maces", true, true, true},
[16] = {"Daggers", true, true, true,},
[17] = {"Fist Weapons", true, true, true},
[18] = {"Shields", true, false, false},
[19] = {"Held In Off-hand", true, false, false},
[20] = {"Two-Handed Axes", true, true, true},
[21] = {"Two-Handed Swords", true, true, true},
[22] = {"Two-Handed Maces", true, true, true},
[23] = {"Staves", true, true, true},
[24] = {"Polearms", true, true, true},
[25] = {"Bows", true, false, true},
[26] = {"Guns", true, false, true},
[27] = {"Crossbows", true, false, true},
[28] = {"Warglaives", true, true, true},
[29] = {"Legion Artifacts", true, true, true},
}
function f:OnEvent(event, arg1)
if event == "ADDON_LOADED" and arg1 == "Blizzard_Collections" then
self:InitWardrobe()
self:UnregisterEvent(event)
elseif event == "TRANSMOG_COLLECTION_ITEM_UPDATE" then
if not unlocked then
startupTimer = .6
self:SetScript("OnUpdate", self.UnlockTimer)
end
if not IsWardRobeSortLoaded then
-- when mouse scrolling the tooltip waits for uncached item info and gets refreshed
self.UpdateMouseFocus()
end
end
end
-- wait until all initial TRANSMOG_COLLECTION_ITEM_UPDATE events have fired
function f:UnlockTimer(elapsed)
startupTimer = startupTimer - elapsed
-- between the first and second event there can be more than 2 seconds delay
if startupTimer < 0 and time() > startupUnlockTime + 4 then
self:SetScript("OnUpdate", nil)
unlocked = true
VerifyFrame:SetScript("OnUpdate", self.VerifyModels)
CM:PrintChat("Unlocked Appearances Tab!")
end
end
if IsAddOnLoaded("Blizzard_Collections") then
f:InitWardrobe()
else
f:RegisterEvent("ADDON_LOADED")
end
f:SetScript("OnEvent", f.OnEvent)
function f:InitWardrobe()
-- only load once the appearances tab is opened
WardrobeCollectionFrame:HookScript("OnShow", function(frame)
if active then
-- needed when showing the wardrobe after the first time
self:UpdateModelCamera(ItemsCollection)
-- needed when showing the wardrobe again after using the search function
if needsRefresh then
VerifyFrame:SetScript("OnUpdate", self.VerifyModels)
end
return
end
active = true
ItemsCollection = WardrobeCollectionFrame.ItemsCollectionFrame
IsWardRobeSortLoaded = IsAddOnLoaded("WardRobeSort")
-- item sets
WardrobeCollectionFrame.SetsCollectionFrame.Model:HookScript("OnMouseUp", CM.MorphTransmogSet)
-- items
for _, model in pairs(ItemsCollection.Models) do
model:HookScript("OnMouseUp", CM.MorphTransmogItem)
end
ScanningModel = CreateFrame("DressUpModel")
ScanningModel:SetUnit("player")
self:CreateUnlockButton()
end)
end
function f:CreateUnlockButton()
local btn = CreateFrame("Button", nil, ItemsCollection, "UIPanelButtonTemplate")
btn:SetPoint("TOPLEFT", WardrobeCollectionFrame.Tabs[1], "BOTTOMLEFT", -40, -55) -- topleft corner of the frame
btn:SetWidth(100)
btn:SetText(UNLOCK)
btn:SetScript("OnClick", function(frame)
startupUnlockTime = time()
self:UnlockWardrobe()
frame:Hide()
end)
end
function f:UnlockWardrobe()
if not unlocked then
-- Load On Demand data from DBCs
local fd = CM:GetFileData(self).Live
CM.ItemAppearance, CM.ItemVisuals = fd.ItemAppearance, fd.ItemVisuals
self:InitializeData()
self:HookWardrobe()
self:UpdateWardrobe() -- initial update
end
end
function f:InitializeData()
-- clear cache on new game builds or db structure changes
if not ClickMorphDataDB or ClickMorphDataDB.build < defaults.build or ClickMorphDataDB.version < defaults.version then
ClickMorphDataDB = CopyTable(defaults)
end
db = ClickMorphDataDB
local version = GetAddOnMetadata("ClickMorph", "Version")
if not db.SourceInfo then
CM:PrintChat(format("|cff71D5FFv%s|r Rebuilding data..", version))
db.SourceInfo, db.IllusionSourceInfo = self:QueryData()
else
unlocked = true
CM:PrintChat(format("|cff71D5FFv%s|r Unlocked Appearances Tab!", version))
VerifyFrame:SetScript("OnUpdate", self.VerifyModels)
end
self:RegisterEvent("TRANSMOG_COLLECTION_ITEM_UPDATE")
cache.CategoryVisuals = {}
for i = 0, 29 do -- init category tables
cache.CategoryVisuals[i] = {}
end
for visualID, sources in pairs(db.SourceInfo) do
tinsert(cache.CategoryVisuals[sources[1].categoryID], {
isCollected = true,
isUsable = true,
visualID = visualID,
uiOrder = visualID,
})
end
end
function f:QueryData()
local sources, illusions = {}, {}
local enchants = {}
for i = 1, MAX_SOURCE_ID do
local source = C_TransmogCollection.GetSourceInfo(i)
if source then
sources[source.visualID] = sources[source.visualID] or {}
tinsert(sources[source.visualID], source)
end
end
for _, v in pairs(C_TransmogCollection.GetIllusions()) do
v.isCollected = true
v.isUsable = true
v.uiOrder = v.visualID
enchants[v.visualID] = v
end
for i = 1, MAX_ILLUSION_ID do
local id = C_TransmogCollection.GetIllusionSourceInfo(i)
if id and id > 0 and not enchants[id] and CM.ItemVisuals[id] then
enchants[id] = {
isCollected = true,
isUsable = true,
sourceID = i,
visualID = id,
uiOrder = id,
}
end
end
for k in pairs(CM.ItemVisuals) do
if not enchants[k] then
enchants[k] = {
isCollected = true,
isUsable = true,
visualID = k,
uiOrder = k,
}
end
end
for k, v in pairs(enchants) do
tinsert(illusions, v)
end
sort(illusions, function(a, b)
return a.visualID > b.visualID
end)
return sources, illusions
end
function f:HookWardrobe()
local searchAppearanceIDs = {}
local activeSearch
-- appearances
function C_TransmogCollection.GetCategoryAppearances(categoryID)
return activeSearch and searchAppearanceIDs or cache.CategoryVisuals[categoryID]
end
function C_TransmogCollection.GetAppearanceSources(appearanceID)
return db.SourceInfo[appearanceID]
end
-- illusions
function C_TransmogCollection.GetIllusions()
return db.IllusionSourceInfo
end
-- categories
local oldGetCategoryInfo = C_TransmogCollection.GetCategoryInfo
function C_TransmogCollection.GetCategoryInfo(categoryID)
local name, _, _, _, canOffHand = oldGetCategoryInfo(categoryID)
local cats = weaponCategories[categoryID]
if cats then
cats[1] = name or cats[1] -- prioritizy any localized name
cats[5] = canOffHand -- fallback since this is different between classes
return unpack(weaponCategories[categoryID])
else
return name
end
end
-- update model camera on category/tab changes
local function OnCategoryChange()
if not ItemsCollection:GetActiveCategory() then return end -- ignore illusions
WardrobeCollectionFrame.searchBox:GetScript("OnTextChanged")(WardrobeCollectionFrame.searchBox) -- redo any active search
self:UpdateModelCamera()
end
hooksecurefunc(ItemsCollection, "SetActiveSlot", OnCategoryChange)
hooksecurefunc("WardrobeCollectionFrame_SetTab", function(tabID)
if tabID == 1 then -- Items
OnCategoryChange()
elseif tabID == 2 then -- Sets
-- ...
end
end)
-- update items on page changes
hooksecurefunc(ItemsCollection.PagingFrame, "SetCurrentPage", function(frame)
verifyIterations = 0
VerifyFrame:SetScript("OnUpdate", self.VerifyModels)
end)
-- fill progress bar
hooksecurefunc(ItemsCollection, "UpdateProgressBar", self.UpdateProgressBar)
-- show appearance information in tooltip
if not IsWardRobeSortLoaded then -- avoid double functionality
for _, model in pairs(ItemsCollection.Models) do
-- for illusions, if the sourceId is not valid then show our own tooltip instead
local pre = model:GetScript("OnEnter")
model:SetScript("OnEnter", function(frame) f.Model_OnEnterPrehook(frame, pre) end)
model:HookScript("OnEnter", f.Model_OnEnterPosthook)
-- sanitize OnEnter handler when scrolling through unlocked illusions
local oldOnEnter = model.OnEnter
model.OnEnter = function(frame)
if frame.visualInfo.sourceID then
oldOnEnter(frame)
else
GameTooltip:ClearLines()
end
f.Model_OnEnterPosthook(frame)
end
end
end
-- fix search function
WardrobeCollectionFrame.searchBox:HookScript("OnTextChanged", function(frame)
local text = frame:GetText():trim():lower()
local tab = WardrobeCollectionFrame.selectedCollectionTab
if tab == 1 then -- Items tab
if #text > 0 then
wipe(searchAppearanceIDs)
activeSearch = true
for _, visuals in pairs(cache.CategoryVisuals[ItemsCollection:GetActiveCategory()]) do
for _, source in pairs(db.SourceInfo[visuals.visualID]) do
-- cache stuff on the go and pray nobody pastes in a whole name instead of typing
-- yeah this is disgusting and it doesnt even work properly, gotta rework this
if not source.name then
local newSource = C_TransmogCollection.GetSourceInfo(source.sourceID)
source.name = newSource.name
source.quality = newSource.quality
end
-- also search through texture name
if source.name and source.name:lower():find(text) or (CM.ItemAppearance[visuals.visualID] or ""):find(text) then
tinsert(searchAppearanceIDs, { -- fake visual
isCollected = true,
isUsable = true,
visualID = visuals.visualID,
uiOrder = visuals.visualID,
})
break
end
end
end
-- update search models
VerifyFrame:SetScript("OnUpdate", self.VerifyModels)
else
activeSearch = false
end
-- also fixes a blizzard bug:
-- when you have an active search from items, and switch to sets then back to items,
-- only the previously shown models get updated
self:UpdateWardrobe()
self:UpdateModelCamera() -- need to update model camera only after UpdateWardrobe
elseif tab == 2 then -- Sets tab
-- ...
end
end)
local function ClearSearch()
wipe(searchAppearanceIDs)
activeSearch = false
needsRefresh = true -- models need to be updated more than once after clearing a search
self:UpdateWardrobe() -- prepare the wardrobe for the next time it gets shown again
end
WardrobeCollectionFrame.searchBox:HookScript("OnHide", ClearSearch)
WardrobeCollectionFrame.searchBox.clearButton:HookScript("OnClick", ClearSearch)
end
function f:UpdateWardrobe()
if needsModelUpdate then
needsModelUpdate = false
-- this gives a noticeable delay when reloading the models
ItemsCollection:OnUnitModelChangedEvent()
self:UpdateModelCamera()
end
ItemsCollection:RefreshVisualsList()
ItemsCollection:UpdateItems()
self.UpdateMouseFocus() -- update tooltip when scrolling
end
function f:UpdateModelCamera()
if not ItemsCollection:GetActiveCategory() then return end
for _, model in pairs(ItemsCollection.Models) do
if model:IsShown() then
-- cant use C_TransmogCollection.GetAppearanceCameraID since it doesnt return an ID for non-class proficiency appearances
local sources = C_TransmogCollection.GetAppearanceSources(model.visualInfo.visualID)
Model_ApplyUICamera(model, C_TransmogCollection.GetAppearanceCameraIDBySource(sources[1].sourceID))
end
end
end
function f.VerifyModels()
if not ItemsCollection:GetActiveCategory() then return end -- ignore illusions
f:UpdateWardrobe() -- need to update first before verifying
verifyIterations = verifyIterations + 1
needsRefresh = false
for _, model in pairs(ItemsCollection.Models) do
if model:IsShown() then
local visualID = model.visualInfo.visualID
local sources = C_TransmogCollection.GetAppearanceSources(visualID)
local reason = ScanningModel:TryOn(sources[1].sourceID)
-- refresh sources for when header source is invalid, and for updating the tooltip
for _, v in pairs(sources) do
if not v.name then
local newSource = C_TransmogCollection.GetSourceInfo(v.sourceID)
v.name = newSource.name
v.quality = newSource.quality
end
end
if reason == Enum.ItemTryOnReason.WrongRace then
needsRefresh = true
local visuals = cache.CategoryVisuals[ItemsCollection:GetActiveCategory()]
for k, v in pairs(visuals) do
if v.visualID == visualID then
tremove(visuals, k) -- filter out undisplayable/unmorphable faction-specific gear
break
end
end
end
end
end
f:UpdateWardrobe()
if verifyIterations > 25 then
VerifyFrame:SetScript("OnUpdate", nil)
error("VerifyModels Script ran too long.")
elseif not needsRefresh and verifyIterations > 1 then
-- do anything that would otherwise be overridden by UpdateWardrobe
VerifyFrame:SetScript("OnUpdate", nil)
f:OverrideUpdate()
end
end
function f:OverrideUpdate()
for _, model in pairs(ItemsCollection.Models) do
if model:IsShown() then
local sources = C_TransmogCollection.GetAppearanceSources(model.visualInfo.visualID)
local reason = ScanningModel:TryOn(sources[1].sourceID)
if reason == Enum.ItemTryOnReason.DataPending then
if #sources == 1 then
if not weaponSlots[ItemsCollection:GetActiveSlot()] then -- weapons can still be shown
model:SetModel("interface/buttons/talktomequestionmark.m2")
Model_ApplyUICamera(model, 372) -- looks nice, maybe a bit too close
needsModelUpdate = true
end
else
for _, v in pairs(sources) do
if v.name then
model:TryOn(v.sourceID) -- update appearance
break
end
end
end
end
end
end
end
function f.UpdateProgressBar()
local category = ItemsCollection:GetActiveCategory()
if category then
local total = #cache.CategoryVisuals[category]
WardrobeCollectionFrame_UpdateProgressBar(total, total)
end
end
-- avoid an error for illusions if there is no sourceID
function f.Model_OnEnterPrehook(frame, func)
if ItemsCollection:GetActiveCategory() or frame.visualInfo.sourceID then
func(frame)
end
end
function f.Model_OnEnterPosthook(frame)
local visualID = frame.visualInfo.visualID
-- dont update tooltip while unlocking,
-- otherwise unlocked illusions are added multiple times to the tooltip
if unlocked then
if ItemsCollection:GetActiveCategory() then
local source = db.SourceInfo[visualID][1] -- dunno yet how update the tooltip on item cycle
GameTooltip:AddLine(CM.ItemAppearance[visualID]) -- appearances
GameTooltip:AddDoubleLine("|cffFFFFFF"..visualID.."|r", format("|cff71D5FFitem %d:%d|r", source.itemID, source.itemModID))
else
if not GameTooltip:GetOwner() then
GameTooltip:SetOwner(frame, "ANCHOR_RIGHT")
end
GameTooltip:AddLine(CM.ItemVisuals[visualID]) -- illusions
GameTooltip:AddLine("|cffFFFFFF"..visualID.."|r")
end
GameTooltip:Show()
end
end
function f.UpdateMouseFocus()
if not IsWardRobeSortLoaded then
local focus = GetMouseFocus()
if focus and focus:GetObjectType() == "DressUpModel" and focus:GetParent() == ItemsCollection then
focus:GetScript("OnEnter")(focus)
end
end
end
|
local tree = require'nvim-tree'
local tree_cb = require'nvim-tree.config'.nvim_tree_callback
-- following options are the default
tree.setup {
-- disables netrw completely
disable_netrw = true,
-- hijack netrw window on startup
hijack_netrw = true,
-- open the tree when running this setup function
open_on_setup = false,
-- will not open on setup if the filetype is in this list
ignore_ft_on_setup = {},
-- closes neovim automatically when the tree is the last **WINDOW** in the view
auto_close = true,
-- opens the tree when changing/opening a new tab if the tree wasn't previously opened
open_on_tab = false,
-- hijack the cursor in the tree to put it at the start of the filename
hijack_cursor = false,
-- updates the root directory of the tree on `DirChanged` (when your run `:cd` usually)
update_cwd = false,
-- show lsp diagnostics in the signcolumn
diagnostics = {
enable = false,
},
-- false by default, this option hides files and folders starting with a dot `.`
hide_dotfiles = true,
-- update the focused file on `BufEnter`, un-collapses the folders recursively until it finds the file
update_focused_file = {
-- enables the feature
enable = false,
-- update the root directory of the tree to the one of the folder containing the file if the file is not under the current root directory
-- only relevant when `update_focused_file.enable` is true
update_cwd = false,
-- list of buffer names / filetypes that will not update the cwd if the file isn't found under the current root directory
-- only relevant when `update_focused_file.update_cwd` is true and `update_focused_file.enable` is true
ignore_list = {}
},
-- configuration options for the system open command (`s` in the tree by default)
system_open = {
-- the command to run this, leaving nil should work in most cases
cmd = nil,
-- the command arguments as a list
args = {}
},
view = {
-- width of the window, can be either a number (columns) or a string in `%`
width = 40,
side = 'right',
-- if true the tree will resize itself after opening a file
auto_resize = true,
mappings = {
-- custom only false will merge the list with the default mappings
-- if true, it will only use your list to set the mappings
custom_only = false,
-- list of mappings to set on the tree manually
list = {
{ key = {"<CR>", "o", "<2-LeftMouse>"}, cb = tree_cb("edit") },
{ key = {"<2-RightMouse>", "c"}, cb = tree_cb("cd") },
{ key = "v", cb = tree_cb("vsplit") },
{ key = "V", cb = tree_cb("split") },
{ key = "t", cb = tree_cb("tabnew") },
{ key = "<", cb = tree_cb("prev_sibling") },
{ key = ">", cb = tree_cb("next_sibling") },
{ key = "P", cb = tree_cb("parent_node") },
{ key = "<BS>", cb = tree_cb("close_node") },
{ key = "<S-CR>", cb = tree_cb("close_node") },
{ key = "<Tab>", cb = tree_cb("preview") },
{ key = "K", cb = tree_cb("first_sibling") },
{ key = "J", cb = tree_cb("last_sibling") },
{ key = "I", cb = tree_cb("toggle_ignored") },
{ key = "H", cb = tree_cb("toggle_dotfiles") },
{ key = "R", cb = tree_cb("refresh") },
{ key = "a", cb = tree_cb("create") },
{ key = "d", cb = tree_cb("remove") },
{ key = "r", cb = tree_cb("rename") },
{ key = "<C-r>", cb = tree_cb("full_rename") },
{ key = "x", cb = tree_cb("cut") },
{ key = "yy", cb = tree_cb("copy") },
{ key = "p", cb = tree_cb("paste") },
{ key = "y", cb = tree_cb("copy_name") },
{ key = "Y", cb = tree_cb("copy_path") },
{ key = "gy", cb = tree_cb("copy_absolute_path") },
{ key = "[c", cb = tree_cb("prev_git_item") },
{ key = "]c", cb = tree_cb("next_git_item") },
{ key = "b", cb = tree_cb("dir_up") },
{ key = "s", cb = tree_cb("system_open") },
{ key = "q", cb = tree_cb("close") },
{ key = "g?", cb = tree_cb("toggle_help") },
}
}
}
}
vim.g.nvim_tree_git_hl = 1 --0 by default, will enable file highlight for git attributes (can be used without the icons).
vim.g.nvim_tree_highlight_opened_files = 1 --0 by default, will enable folder and file icon highlight for opened files/directories.
vim.g.nvim_tree_root_folder_modifier = ':~' --This is the default. See :help filename-modifiers for more options
vim.g.nvim_tree_icon_padding = ' ' --one space by default, used for rendering the space between the icon and the filename. Use with caution, it could break rendering if you set an empty string depending on your font.
vim.g.nvim_tree_window_picker_exclude = {
filetype = {
'packer',
'qf'
},
buftype = {
'terminal'
}
}
-- Dictionary of buffer option names mapped to a list of option values that
-- indicates to the window picker that the buffer's window should not be
-- selectable.
vim.g.nvim_tree_special_files = {
["Cargo.toml"] = true,
Makefile = true,
["README.md"] = true,
["readme.md"] = true,
["Makefile"] = true,
} -- List of filenames that gets highlighted with NvimTreeSpecialFile
vim.gnvim_tree_show_icons = {
git = true,
folders = true,
files = true,
folder_arrows = true,
}
--If 0, do not show the icons for one of 'git' 'folder' and 'files'
--1 by default, notice that if 'files' is 1, it will only display
--if nvim-web-devicons is installed and on your runtimepath.
--if folder is 1, you can also tell folder_arrows 1 to show small arrows next to the folder icons.
--but this will not work when you set indent_markers (because of UI conflict)
-- default will show icon by default if no icon is provided
-- default shows no icon by default
vim.g.nvim_tree_icons = {
default = '',
symlink = '',
git = {
unstaged = "✗",
staged = "✓",
unmerged = "",
renamed = "➜",
untracked = "★",
deleted = "",
ignored = "◌"
},
folder = {
arrow_open = "",
arrow_closed = "",
default = "",
open = "",
empty = "",
empty_open = "",
symlink = "",
symlink_open = "",
},
lsp = {
hint = "",
info = "",
warning = "",
error = "",
}
}
|
-- akinsho/nvim-toggleterm.lua
-- Please ensure you have set hidden in your neovim config, otherwise the terminals will be discarded when closed.
vim.o.hidden = true
require('toggleterm').setup{
-- size can be a number or function which is passed the current terminal
size = function(term)
if term.direction == 'horizontal' then
return 15
elseif term.direction == 'vertical' then
return vim.o.columns * 0.4
end
end,
-- open_mapping = [[<c-\>]],
hide_numbers = false, -- hide the number column in toggleterm buffers
shade_filetypes = {},
shade_terminals = true,
shading_factor = 2, -- the degree by which to darken to terminal colour, default: 1 for dark backgrounds, 3 for light
start_in_insert = true,
insert_mappings = true, -- whether or not the open mapping applies in insert mode
persist_size = true,
-- direction = 'vertical' | 'horizontal' | 'window' | 'float',
close_on_exit = true, -- close the terminal window when the process exits
shell = vim.o.shell, -- change the default shell
-- This field is only relevant if direction is set to 'float'
float_opts = {
-- The border key is *almost* the same as 'nvim_win_open'
-- see :h nvim_win_open for details on borders however
-- the 'curved' border is a custom border type
-- not natively supported but implemented in this plugin.
-- border = 'single' | 'double' | 'shadow' | 'curved' | ... other options supported by win open
border = 'curved',
-- width = <value>,
-- height = <value>,
winblend = 3,
highlights = {
border = 'Normal',
background = 'Normal',
}
}
}
local Terminal = require('toggleterm.terminal').Terminal
-- Floating terminal
local fterm = Terminal:new({
direction = 'float'
})
function _Fterm_toggle()
fterm:toggle()
end
-- Horizontal terminal
local hterm = Terminal:new({
direction = 'horizontal'
})
function _Hterm_toggle()
hterm:toggle()
end
-- Vertical terminal
local vterm = Terminal:new({
direction = 'vertical'
})
function _Vterm_toggle()
vterm:toggle()
end
-- Window terminal
local wterm = Terminal:new({
direction = 'window'
})
function _Wterm_toggle()
wterm:toggle()
end
local wk = require('which-key')
wk.register({
['<Leader>t'] = {
name = 'Terminal',
['f'] = {'<Cmd>lua _Fterm_toggle()<CR>','TTerm Float'},
['h'] = {'<Cmd>lua _Hterm_toggle()<CR>', 'TTerm Horizon'},
['v'] = {'<Cmd>lua _Vterm_toggle()<CR>', 'TTerm Vertical'},
['w'] = {'<Cmd>lua _Vterm_toggle()<CR>', 'TTerminal Windows'},
},
})
|
package.loaded['neon'] = nil
require 'neon'
|
--[[------------------------------------------------------------------
INTERSECTING VALUES
Intersect different values to get a fade effect
]]--------------------------------------------------------------------
if CLIENT then
--[[
Given a value, determines how much of each one is shown
@param {number} a
@param {number} b
@param {number} value
@return {number} result
]]
function HL2RBHUD:Intersect(a, b, value)
return (a * value) + (b * (1-value));
end
--[[
Intersects two colours based on a value
@param {number} a
@param {number} b
@param {number} value
@param {Color} result
]]
function HL2RBHUD:IntersectColour(a, b, value)
return Color(HL2RBHUD:Intersect(a.r, b.r, value), HL2RBHUD:Intersect(a.g, b.g, value), HL2RBHUD:Intersect(a.b, b.b, value), HL2RBHUD:Intersect(a.a, b.a, value));
end
end
|
--- Headers policy
-- This policy allows to include custom headers that will be sent to the
-- upstream as well as modify or delete the ones included in the original
-- request.
-- Similarly, this policy also allows to add, modify, and delete the headers
-- included in the response.
local ipairs = ipairs
local type = type
local insert = table.insert
local TemplateString = require 'apicast.template_string'
local default_value_type = 'plain'
local policy = require('apicast.policy')
local _M = policy.new('Headers policy')
local new = _M.new
local function new_header_value(current_value, value_to_add)
if not value_to_add then return current_value end
local new_value = current_value or {}
if type(new_value) == 'string' then
new_value = { new_value }
end
insert(new_value, value_to_add)
return new_value
end
local function push_request_header(header_name, value, req_headers)
local new_value = new_header_value(req_headers[header_name], value)
ngx.req.set_header(header_name, new_value)
end
local function set_request_header(header_name, value)
ngx.req.set_header(header_name, value)
end
local function add_request_header(header_name, value, req_headers)
if req_headers[header_name] then
push_request_header(header_name, value, req_headers)
end
end
local function push_resp_header(header_name, value)
local new_value = new_header_value(ngx.header[header_name], value)
ngx.header[header_name] = new_value
end
local function set_resp_header(header_name, value)
ngx.header[header_name] = value
end
local function add_resp_header(header_name, value)
if ngx.header[header_name] then
push_resp_header(header_name, value)
end
end
local function delete_request_header(header_name)
ngx.req.clear_header(header_name)
end
local function delete_resp_header(header_name)
ngx.header[header_name] = nil
end
local command_functions = {
request = {
push = push_request_header,
add = add_request_header,
set = set_request_header,
delete = delete_request_header
},
response = {
push = push_resp_header,
add = add_resp_header,
set = set_resp_header,
delete = delete_resp_header
}
}
-- header_type can be 'request' or 'response'.
local function run_commands(context, commands, header_type, ...)
for _, command in ipairs(commands) do
local command_func = command_functions[header_type][command.op]
local value = command.template_string:render(context)
command_func(command.header, value, ...)
end
end
-- Initialize the config so we do not have to check for nulls in the rest of
-- the code.
local function init_config(config)
local res = config or {}
res.request = res.request or {}
res.response = res.response or {}
return res
end
local function build_templates(commands)
for _, command in ipairs(commands) do
command.template_string = TemplateString.new(
command.value, command.value_type or default_value_type)
end
end
--- Initialize a Headers policy
-- @tparam[opt] table config
-- @field[opt] request Table with the operations to apply to the request headers
-- @field[opt] response Table with the operations to apply to the response headers
-- Each operation is a table with three elements:
-- 1) op: can be 'add', 'set', 'push' or 'delete'.
-- 2) header
-- 3) value
-- 4) value_type (can be 'liquid' or 'plain'). Defaults to 'plain'.
-- The push operation:
-- 1) When the header is not set, creates it with the given value.
-- 2) When the header is set, it creates a new header with the same name and
-- the given value.
-- The set operation:
-- 1) When the header is not set, creates it with the given value.
-- 2) When the header is set, replaces its value with the given one.
-- 3) Deletes a header when the value is "".
-- The add operation:
-- 1) When the header is not set, it does nothing.
-- 2) When the header is set, it creates a new header with the same name and
-- the given value.
-- The delete operation:
-- 1) Deletes a header when it is set.
function _M.new(config)
local self = new(config)
self.config = init_config(config)
for _, commands in ipairs({ self.config.request, self.config.response } ) do
build_templates(commands)
end
return self
end
function _M:rewrite(context)
-- This is here to avoid calling ngx.req.get_headers() in every command
-- applied to the request headers.
local req_headers = ngx.req.get_headers() or {}
run_commands(context, self.config.request, 'request', req_headers)
end
function _M:header_filter(context)
run_commands(context, self.config.response, 'response')
end
return _M
|
require "core.strict"
require "core.regex"
local common = require "core.common"
local config = require "core.config"
local style = require "core.style"
local command
local keymap
local RootView
local StatusView
local TitleView
local CommandView
local NagView
local DocView
local Doc
local core = {}
local function load_session()
local ok, t = pcall(dofile, USERDIR .. "/session.lua")
return ok and t or {}
end
local function save_session()
local fp = io.open(USERDIR .. "/session.lua", "w")
if fp then
fp:write("return {recents=", common.serialize(core.recent_projects),
", window=", common.serialize(table.pack(system.get_window_size())),
", window_mode=", common.serialize(system.get_window_mode()),
", previous_find=", common.serialize(core.previous_find),
", previous_replace=", common.serialize(core.previous_replace),
"}\n")
fp:close()
end
end
local function update_recents_project(action, dir_path_abs)
local dirname = common.normalize_volume(dir_path_abs)
if not dirname then return end
local recents = core.recent_projects
local n = #recents
for i = 1, n do
if dirname == recents[i] then
table.remove(recents, i)
break
end
end
if action == "add" then
table.insert(recents, 1, dirname)
end
end
function core.set_project_dir(new_dir, change_project_fn)
local chdir_ok = pcall(system.chdir, new_dir)
if chdir_ok then
if change_project_fn then change_project_fn() end
core.project_dir = common.normalize_volume(new_dir)
core.project_directories = {}
core.add_project_directory(new_dir)
return true
end
return false
end
function core.open_folder_project(dir_path_abs)
if core.set_project_dir(dir_path_abs, core.on_quit_project) then
core.root_view:close_all_docviews()
update_recents_project("add", dir_path_abs)
if not core.load_project_module() then
command.perform("core:open-log")
end
core.on_enter_project(dir_path_abs)
end
end
local function strip_leading_path(filename)
return filename:sub(2)
end
local function strip_trailing_slash(filename)
if filename:match("[^:][/\\]$") then
return filename:sub(1, -2)
end
return filename
end
local function compare_file(a, b)
return a.filename < b.filename
end
-- compute a file's info entry completed with "filename" to be used
-- in project scan or falsy if it shouldn't appear in the list.
local function get_project_file_info(root, file)
local info = system.get_file_info(root .. file)
if info then
info.filename = strip_leading_path(file)
return (info.size < config.file_size_limit * 1e6 and
not common.match_pattern(common.basename(info.filename), config.ignore_files)
and info)
end
end
-- Predicate function to inhibit directory recursion in get_directory_files
-- based on a time limit and the number of files.
local function timed_max_files_pred(dir, filename, entries_count, t_elapsed)
local n_limit = entries_count <= config.max_project_files
local t_limit = t_elapsed < 20 / config.fps
return n_limit and t_limit and core.project_subdir_is_shown(dir, filename)
end
-- "root" will by an absolute path without trailing '/'
-- "path" will be a path starting with '/' and without trailing '/'
-- or the empty string.
-- It will identifies a sub-path within "root.
-- The current path location will therefore always be: root .. path.
-- When recursing "root" will always be the same, only "path" will change.
-- Returns a list of file "items". In eash item the "filename" will be the
-- complete file path relative to "root" *without* the trailing '/'.
local function get_directory_files(dir, root, path, t, entries_count, recurse_pred, begin_hook)
if begin_hook then begin_hook() end
local t0 = system.get_time()
local all = system.list_dir(root .. path) or {}
local t_elapsed = system.get_time() - t0
local dirs, files = {}, {}
for _, file in ipairs(all) do
local info = get_project_file_info(root, path .. PATHSEP .. file)
if info then
table.insert(info.type == "dir" and dirs or files, info)
entries_count = entries_count + 1
end
end
local recurse_complete = true
table.sort(dirs, compare_file)
for _, f in ipairs(dirs) do
table.insert(t, f)
if recurse_pred(dir, f.filename, entries_count, t_elapsed) then
local _, complete, n = get_directory_files(dir, root, PATHSEP .. f.filename, t, entries_count, recurse_pred, begin_hook)
recurse_complete = recurse_complete and complete
entries_count = n
else
recurse_complete = false
end
end
table.sort(files, compare_file)
for _, f in ipairs(files) do
table.insert(t, f)
end
return t, recurse_complete, entries_count
end
function core.project_subdir_set_show(dir, filename, show)
dir.shown_subdir[filename] = show
if dir.files_limit and PLATFORM == "Linux" then
local fullpath = dir.name .. PATHSEP .. filename
local watch_fn = show and system.watch_dir_add or system.watch_dir_rm
local success = watch_fn(dir.watch_id, fullpath)
if not success then
core.log("Internal warning: error calling system.watch_dir_%s", show and "add" or "rm")
end
end
end
function core.project_subdir_is_shown(dir, filename)
return not dir.files_limit or dir.shown_subdir[filename]
end
local function show_max_files_warning(dir)
local message = dir.slow_filesystem and
"Filesystem is too slow: project files will not be indexed." or
"Too many files in project directory: stopped reading at "..
config.max_project_files.." files. For more information see "..
"usage.md at github.com/lite-xl/lite-xl."
core.status_view:show_message("!", style.accent, message)
end
local function file_search(files, info)
local filename, type = info.filename, info.type
local inf, sup = 1, #files
while sup - inf > 8 do
local curr = math.floor((inf + sup) / 2)
if system.path_compare(filename, type, files[curr].filename, files[curr].type) then
sup = curr - 1
else
inf = curr
end
end
while inf <= sup and not system.path_compare(filename, type, files[inf].filename, files[inf].type) do
if files[inf].filename == filename then
return inf, true
end
inf = inf + 1
end
return inf, false
end
local function project_scan_add_entry(dir, fileinfo)
local index, match = file_search(dir.files, fileinfo)
if not match then
table.insert(dir.files, index, fileinfo)
dir.is_dirty = true
end
end
local function files_info_equal(a, b)
return a.filename == b.filename and a.type == b.type
end
-- for "a" inclusive from i1 + 1 and i1 + n
local function files_list_match(a, i1, n, b)
if n ~= #b then return false end
for i = 1, n do
if not files_info_equal(a[i1 + i], b[i]) then
return false
end
end
return true
end
-- arguments like for files_list_match
local function files_list_replace(as, i1, n, bs)
local m = #bs
local i, j = 1, 1
while i <= m or i <= n do
local a, b = as[i1 + i], bs[j]
if i > n or (j <= m and not files_info_equal(a, b) and
not system.path_compare(a.filename, a.type, b.filename, b.type))
then
table.insert(as, i1 + i, b)
i, j, n = i + 1, j + 1, n + 1
elseif j > m or system.path_compare(a.filename, a.type, b.filename, b.type) then
table.remove(as, i1 + i)
n = n - 1
else
i, j = i + 1, j + 1
end
end
end
local function project_subdir_bounds(dir, filename)
local index, n = 0, #dir.files
for i, file in ipairs(dir.files) do
local file = dir.files[i]
if file.filename == filename then
index, n = i, #dir.files - i
for j = 1, #dir.files - i do
if not common.path_belongs_to(dir.files[i + j].filename, filename) then
n = j - 1
break
end
end
return index, n, file
end
end
end
local function rescan_project_subdir(dir, filename_rooted)
local new_files = get_directory_files(dir, dir.name, filename_rooted, {}, 0, core.project_subdir_is_shown, coroutine.yield)
local index, n = 0, #dir.files
if filename_rooted ~= "" then
local filename = strip_leading_path(filename_rooted)
index, n = project_subdir_bounds(dir, filename)
end
if not files_list_match(dir.files, index, n, new_files) then
files_list_replace(dir.files, index, n, new_files)
dir.is_dirty = true
return true
end
end
local function add_dir_scan_thread(dir)
core.add_thread(function()
while true do
local has_changes = rescan_project_subdir(dir, "")
if has_changes then
core.redraw = true -- we run without an event, from a thread
end
coroutine.yield(5)
end
end)
end
-- Populate a project folder top directory by scanning the filesystem.
local function scan_project_folder(index)
local dir = core.project_directories[index]
if PLATFORM == "Linux" then
local fstype = system.get_fs_type(dir.name)
dir.force_rescan = (fstype == "nfs" or fstype == "fuse")
end
local t, complete, entries_count = get_directory_files(dir, dir.name, "", {}, 0, timed_max_files_pred)
if not complete then
dir.slow_filesystem = not complete and (entries_count <= config.max_project_files)
dir.files_limit = true
if not dir.force_rescan then
-- Watch non-recursively on Linux only.
-- The reason is recursively watching with dmon on linux
-- doesn't work on very large directories.
dir.watch_id = system.watch_dir(dir.name, PLATFORM ~= "Linux")
end
if core.status_view then -- May be not yet initialized.
show_max_files_warning(dir)
end
else
if not dir.force_rescan then
dir.watch_id = system.watch_dir(dir.name, true)
end
end
dir.files = t
if dir.force_rescan then
add_dir_scan_thread(dir)
else
core.dir_rescan_add_job(dir, ".")
end
end
function core.add_project_directory(path)
-- top directories has a file-like "item" but the item.filename
-- will be simply the name of the directory, without its path.
-- The field item.topdir will identify it as a top level directory.
path = common.normalize_volume(path)
local dir = {
name = path,
item = {filename = common.basename(path), type = "dir", topdir = true},
files_limit = false,
is_dirty = true,
shown_subdir = {},
}
table.insert(core.project_directories, dir)
scan_project_folder(#core.project_directories)
if path == core.project_dir then
core.project_files = dir.files
end
core.redraw = true
end
function core.update_project_subdir(dir, filename, expanded)
local index, n, file = project_subdir_bounds(dir, filename)
if index then
local new_files = expanded and get_directory_files(dir, dir.name, PATHSEP .. filename, {}, 0, core.project_subdir_is_shown) or {}
files_list_replace(dir.files, index, n, new_files)
dir.is_dirty = true
return true
end
end
-- Find files and directories recursively reading from the filesystem.
-- Filter files and yields file's directory and info table. This latter
-- is filled to be like required by project directories "files" list.
local function find_files_rec(root, path)
local all = system.list_dir(root .. path) or {}
for _, file in ipairs(all) do
local file = path .. PATHSEP .. file
local info = system.get_file_info(root .. file)
if info then
info.filename = strip_leading_path(file)
if info.type == "file" then
coroutine.yield(root, info)
else
find_files_rec(root, PATHSEP .. info.filename)
end
end
end
end
-- Iterator function to list all project files
local function project_files_iter(state)
local dir = core.project_directories[state.dir_index]
if state.co then
-- We have a coroutine to fetch for files, use the coroutine.
-- Used for directories that exceeds the files nuumber limit.
local ok, name, file = coroutine.resume(state.co, dir.name, "")
if ok and name then
return name, file
else
-- The coroutine terminated, increment file/dir counter to scan
-- next project directory.
state.co = false
state.file_index = 1
state.dir_index = state.dir_index + 1
dir = core.project_directories[state.dir_index]
end
else
-- Increase file/dir counter
state.file_index = state.file_index + 1
while dir and state.file_index > #dir.files do
state.dir_index = state.dir_index + 1
state.file_index = 1
dir = core.project_directories[state.dir_index]
end
end
if not dir then return end
if dir.files_limit then
-- The current project directory is files limited: create a couroutine
-- to read files from the filesystem.
state.co = coroutine.create(find_files_rec)
return project_files_iter(state)
end
return dir.name, dir.files[state.file_index]
end
function core.get_project_files()
local state = { dir_index = 1, file_index = 0 }
return project_files_iter, state
end
function core.project_files_number()
local n = 0
for i = 1, #core.project_directories do
if core.project_directories[i].files_limit then return end
n = n + #core.project_directories[i].files
end
return n
end
local function project_dir_by_watch_id(watch_id)
for i = 1, #core.project_directories do
if core.project_directories[i].watch_id == watch_id then
return core.project_directories[i]
end
end
end
local function project_scan_remove_file(dir, filepath)
local fileinfo = { filename = filepath }
for _, filetype in ipairs {"dir", "file"} do
fileinfo.type = filetype
local index, match = file_search(dir.files, fileinfo)
if match then
table.remove(dir.files, index)
dir.is_dirty = true
return
end
end
end
local function project_scan_add_file(dir, filepath)
for fragment in string.gmatch(filepath, "([^/\\]+)") do
if common.match_pattern(fragment, config.ignore_files) then
return
end
end
local fileinfo = get_project_file_info(dir.name, PATHSEP .. filepath)
if fileinfo then
project_scan_add_entry(dir, fileinfo)
end
end
-- create a directory using mkdir but may need to create the parent
-- directories as well.
local function create_user_directory()
local success, err = common.mkdirp(USERDIR)
if not success then
error("cannot create directory \"" .. USERDIR .. "\": " .. err)
end
for _, modname in ipairs {'plugins', 'colors', 'fonts'} do
local subdirname = USERDIR .. PATHSEP .. modname
if not system.mkdir(subdirname) then
error("cannot create directory: \"" .. subdirname .. "\"")
end
end
end
local function write_user_init_file(init_filename)
local init_file = io.open(init_filename, "w")
if not init_file then error("cannot create file: \"" .. init_filename .. "\"") end
init_file:write([[
-- put user settings here
-- this module will be loaded after everything else when the application starts
-- it will be automatically reloaded when saved
local core = require "core"
local keymap = require "core.keymap"
local config = require "core.config"
local style = require "core.style"
------------------------------ Themes ----------------------------------------
-- light theme:
-- core.reload_module("colors.summer")
--------------------------- Key bindings -------------------------------------
-- key binding:
-- keymap.add { ["ctrl+escape"] = "core:quit" }
------------------------------- Fonts ----------------------------------------
-- customize fonts:
-- style.font = renderer.font.load(DATADIR .. "/fonts/FiraSans-Regular.ttf", 14 * SCALE)
-- style.code_font = renderer.font.load(DATADIR .. "/fonts/JetBrainsMono-Regular.ttf", 14 * SCALE)
--
-- font names used by lite:
-- style.font : user interface
-- style.big_font : big text in welcome screen
-- style.icon_font : icons
-- style.icon_big_font : toolbar icons
-- style.code_font : code
--
-- the function to load the font accept a 3rd optional argument like:
--
-- {antialiasing="grayscale", hinting="full"}
--
-- possible values are:
-- antialiasing: grayscale, subpixel
-- hinting: none, slight, full
------------------------------ Plugins ----------------------------------------
-- enable or disable plugin loading setting config entries:
-- enable plugins.trimwhitespace, otherwise it is disable by default:
-- config.plugins.trimwhitespace = true
--
-- disable detectindent, otherwise it is enabled by default
-- config.plugins.detectindent = false
]])
init_file:close()
end
function core.load_user_directory()
return core.try(function()
local stat_dir = system.get_file_info(USERDIR)
if not stat_dir then
create_user_directory()
end
local init_filename = USERDIR .. "/init.lua"
local stat_file = system.get_file_info(init_filename)
if not stat_file then
write_user_init_file(init_filename)
end
dofile(init_filename)
end)
end
function core.remove_project_directory(path)
-- skip the fist directory because it is the project's directory
for i = 2, #core.project_directories do
local dir = core.project_directories[i]
if dir.name == path then
table.remove(core.project_directories, i)
return true
end
end
return false
end
local function reload_on_user_module_save()
-- auto-realod style when user's module is saved by overriding Doc:Save()
local doc_save = Doc.save
local user_filename = system.absolute_path(USERDIR .. PATHSEP .. "init.lua")
function Doc:save(filename, abs_filename)
doc_save(self, filename, abs_filename)
if self.abs_filename == user_filename then
core.reload_module("core.style")
core.load_user_directory()
end
end
end
function core.init()
command = require "core.command"
keymap = require "core.keymap"
RootView = require "core.rootview"
StatusView = require "core.statusview"
TitleView = require "core.titleview"
CommandView = require "core.commandview"
NagView = require "core.nagview"
DocView = require "core.docview"
Doc = require "core.doc"
if PATHSEP == '\\' then
USERDIR = common.normalize_volume(USERDIR)
DATADIR = common.normalize_volume(DATADIR)
EXEDIR = common.normalize_volume(EXEDIR)
end
do
local session = load_session()
if session.window_mode == "normal" then
system.set_window_size(table.unpack(session.window))
elseif session.window_mode == "maximized" then
system.set_window_mode("maximized")
end
core.recent_projects = session.recents or {}
core.previous_find = session.previous_find or {}
core.previous_replace = session.previous_replace or {}
end
local project_dir = core.recent_projects[1] or "."
local project_dir_explicit = false
local files = {}
local delayed_error
for i = 2, #ARGS do
local arg_filename = strip_trailing_slash(ARGS[i])
local info = system.get_file_info(arg_filename) or {}
if info.type == "file" then
local file_abs = system.absolute_path(arg_filename)
if file_abs then
table.insert(files, file_abs)
project_dir = file_abs:match("^(.+)[/\\].+$")
end
elseif info.type == "dir" then
project_dir = arg_filename
project_dir_explicit = true
else
-- on macOS we can get an argument like "-psn_0_52353" that we just ignore.
if not ARGS[i]:match("^-psn") then
delayed_error = string.format("error: invalid file or directory %q", ARGS[i])
end
end
end
core.frame_start = 0
core.clip_rect_stack = {{ 0,0,0,0 }}
core.log_items = {}
core.docs = {}
core.cursor_clipboard = {}
core.cursor_clipboard_whole_line = {}
core.window_mode = "normal"
core.threads = setmetatable({}, { __mode = "k" })
core.blink_start = system.get_time()
core.blink_timer = core.blink_start
local project_dir_abs = system.absolute_path(project_dir)
local set_project_ok = project_dir_abs and core.set_project_dir(project_dir_abs)
if set_project_ok then
if project_dir_explicit then
update_recents_project("add", project_dir_abs)
end
else
if not project_dir_explicit then
update_recents_project("remove", project_dir)
end
project_dir_abs = system.absolute_path(".")
if not core.set_project_dir(project_dir_abs) then
system.show_fatal_error("Lite XL internal error", "cannot set project directory to cwd")
os.exit(1)
end
end
core.redraw = true
core.visited_files = {}
core.restart_request = false
core.quit_request = false
core.root_view = RootView()
core.command_view = CommandView()
core.status_view = StatusView()
core.nag_view = NagView()
core.title_view = TitleView()
local cur_node = core.root_view.root_node
cur_node.is_primary_node = true
cur_node:split("up", core.title_view, {y = true})
cur_node = cur_node.b
cur_node:split("up", core.nag_view, {y = true})
cur_node = cur_node.b
cur_node = cur_node:split("down", core.command_view, {y = true})
cur_node = cur_node:split("down", core.status_view, {y = true})
command.add_defaults()
local got_user_error = not core.load_user_directory()
local plugins_success, plugins_refuse_list = core.load_plugins()
do
local pdir, pname = project_dir_abs:match("(.*)[/\\\\](.*)")
core.log("Opening project %q from directory %s", pname, pdir)
end
local got_project_error = not core.load_project_module()
-- We assume we have just a single project directory here. Now that StatusView
-- is there show max files warning if needed.
if core.project_directories[1].files_limit then
show_max_files_warning(core.project_directories[1])
end
for _, filename in ipairs(files) do
core.root_view:open_doc(core.open_doc(filename))
end
if delayed_error then
core.error(delayed_error)
end
if not plugins_success or got_user_error or got_project_error then
command.perform("core:open-log")
end
system.set_window_bordered(not config.borderless)
core.title_view:configure_hit_test(config.borderless)
core.title_view.visible = config.borderless
if #plugins_refuse_list.userdir.plugins > 0 or #plugins_refuse_list.datadir.plugins > 0 then
local opt = {
{ font = style.font, text = "Exit", default_no = true },
{ font = style.font, text = "Continue" , default_yes = true }
}
local msg = {}
for _, entry in pairs(plugins_refuse_list) do
if #entry.plugins > 0 then
msg[#msg + 1] = string.format("Plugins from directory \"%s\":\n%s", common.home_encode(entry.dir), table.concat(entry.plugins, "\n"))
end
end
core.nag_view:show(
"Refused Plugins",
string.format(
"Some plugins are not loaded due to version mismatch.\n\n%s.\n\n" ..
"Please download a recent version from https://github.com/lite-xl/lite-xl-plugins.",
table.concat(msg, ".\n\n")),
opt, function(item)
if item.text == "Exit" then os.exit(1) end
end)
end
reload_on_user_module_save()
end
function core.confirm_close_docs(docs, close_fn, ...)
local dirty_count = 0
local dirty_name
for _, doc in ipairs(docs or core.docs) do
if doc:is_dirty() then
dirty_count = dirty_count + 1
dirty_name = doc:get_name()
end
end
if dirty_count > 0 then
local text
if dirty_count == 1 then
text = string.format("\"%s\" has unsaved changes. Quit anyway?", dirty_name)
else
text = string.format("%d docs have unsaved changes. Quit anyway?", dirty_count)
end
local args = {...}
local opt = {
{ font = style.font, text = "Yes", default_yes = true },
{ font = style.font, text = "No" , default_no = true }
}
core.nag_view:show("Unsaved Changes", text, opt, function(item)
if item.text == "Yes" then close_fn(table.unpack(args)) end
end)
else
close_fn(...)
end
end
local temp_uid = (system.get_time() * 1000) % 0xffffffff
local temp_file_prefix = string.format(".lite_temp_%08x", temp_uid)
local temp_file_counter = 0
local function delete_temp_files()
for _, filename in ipairs(system.list_dir(EXEDIR)) do
if filename:find(temp_file_prefix, 1, true) == 1 then
os.remove(EXEDIR .. PATHSEP .. filename)
end
end
end
function core.temp_filename(ext)
temp_file_counter = temp_file_counter + 1
return USERDIR .. PATHSEP .. temp_file_prefix
.. string.format("%06x", temp_file_counter) .. (ext or "")
end
-- override to perform an operation before quitting or entering the
-- current project
do
local do_nothing = function() end
core.on_quit_project = do_nothing
core.on_enter_project = do_nothing
end
local function quit_with_function(quit_fn, force)
if force then
delete_temp_files()
core.on_quit_project()
save_session()
quit_fn()
else
core.confirm_close_docs(core.docs, quit_with_function, quit_fn, true)
end
end
function core.quit(force)
quit_with_function(function() core.quit_request = true end, force)
end
function core.restart()
quit_with_function(function() core.restart_request = true end)
end
local function check_plugin_version(filename)
local info = system.get_file_info(filename)
if info ~= nil and info.type == "dir" then
filename = filename .. "/init.lua"
info = system.get_file_info(filename)
end
if not info or not filename:match("%.lua$") then return false end
local f = io.open(filename, "r")
if not f then return false end
local version_match = false
for line in f:lines() do
local mod_version = line:match('%-%-.*%f[%a]mod%-version%s*:%s*(%d+)')
if mod_version then
version_match = (mod_version == MOD_VERSION)
break
end
-- The following pattern is used for backward compatibility only
-- Future versions will look only at the mod-version tag.
local version = line:match('%-%-%s*lite%-xl%s*(%d+%.%d+)$')
if version then
-- we consider the version tag 2.0 equivalent to mod-version:2
version_match = (version == '2.0' and MOD_VERSION == "2")
break
end
end
f:close()
return true, version_match
end
function core.load_plugins()
local no_errors = true
local refused_list = {
userdir = {dir = USERDIR, plugins = {}},
datadir = {dir = DATADIR, plugins = {}},
}
local files, ordered = {}, {}
for _, root_dir in ipairs {DATADIR, USERDIR} do
local plugin_dir = root_dir .. "/plugins"
for _, filename in ipairs(system.list_dir(plugin_dir) or {}) do
if not files[filename] then table.insert(ordered, filename) end
files[filename] = plugin_dir -- user plugins will always replace system plugins
end
end
table.sort(ordered)
for _, filename in ipairs(ordered) do
local plugin_dir, basename = files[filename], filename:match("(.-)%.lua$") or filename
local is_lua_file, version_match = check_plugin_version(plugin_dir .. '/' .. filename)
if is_lua_file then
if not version_match then
core.log_quiet("Version mismatch for plugin %q from %s", basename, plugin_dir)
local list = refused_list[plugin_dir:find(USERDIR, 1, true) == 1 and 'userdir' or 'datadir'].plugins
table.insert(list, filename)
end
if version_match and config.plugins[basename] ~= false then
local ok = core.try(require, "plugins." .. basename)
if ok then core.log_quiet("Loaded plugin %q from %s", basename, plugin_dir) end
if not ok then
no_errors = false
end
end
end
end
return no_errors, refused_list
end
function core.load_project_module()
local filename = ".lite_project.lua"
if system.get_file_info(filename) then
return core.try(function()
local fn, err = loadfile(filename)
if not fn then error("Error when loading project module:\n\t" .. err) end
fn()
core.log_quiet("Loaded project module")
end)
end
return true
end
function core.reload_module(name)
local old = package.loaded[name]
package.loaded[name] = nil
local new = require(name)
if type(old) == "table" then
for k, v in pairs(new) do old[k] = v end
package.loaded[name] = old
end
end
function core.set_visited(filename)
for i = 1, #core.visited_files do
if core.visited_files[i] == filename then
table.remove(core.visited_files, i)
break
end
end
table.insert(core.visited_files, 1, filename)
end
function core.set_active_view(view)
assert(view, "Tried to set active view to nil")
if view ~= core.active_view then
if core.active_view and core.active_view.force_focus then
core.next_active_view = view
return
end
core.next_active_view = nil
if view.doc and view.doc.filename then
core.set_visited(view.doc.filename)
end
core.last_active_view = core.active_view
core.active_view = view
end
end
function core.show_title_bar(show)
core.title_view.visible = show
end
function core.add_thread(f, weak_ref)
local key = weak_ref or #core.threads + 1
local fn = function() return core.try(f) end
core.threads[key] = { cr = coroutine.create(fn), wake = 0 }
return key
end
function core.push_clip_rect(x, y, w, h)
local x2, y2, w2, h2 = table.unpack(core.clip_rect_stack[#core.clip_rect_stack])
local r, b, r2, b2 = x+w, y+h, x2+w2, y2+h2
x, y = math.max(x, x2), math.max(y, y2)
b, r = math.min(b, b2), math.min(r, r2)
w, h = r-x, b-y
table.insert(core.clip_rect_stack, { x, y, w, h })
renderer.set_clip_rect(x, y, w, h)
end
function core.pop_clip_rect()
table.remove(core.clip_rect_stack)
local x, y, w, h = table.unpack(core.clip_rect_stack[#core.clip_rect_stack])
renderer.set_clip_rect(x, y, w, h)
end
function core.normalize_to_project_dir(filename)
filename = common.normalize_path(filename)
if common.path_belongs_to(filename, core.project_dir) then
filename = common.relative_path(core.project_dir, filename)
end
return filename
end
-- The function below works like system.absolute_path except it
-- doesn't fail if the file does not exist. We consider that the
-- current dir is core.project_dir so relative filename are considered
-- to be in core.project_dir.
-- Please note that .. or . in the filename are not taken into account.
-- This function should get only filenames normalized using
-- common.normalize_path function.
function core.project_absolute_path(filename)
if filename:match('^%a:\\') or filename:find('/', 1, true) == 1 then
return filename
else
return core.project_dir .. PATHSEP .. filename
end
end
function core.open_doc(filename)
local new_file = not filename or not system.get_file_info(filename)
local abs_filename
if filename then
-- normalize filename and set absolute filename then
-- try to find existing doc for filename
filename = core.normalize_to_project_dir(filename)
abs_filename = core.project_absolute_path(filename)
for _, doc in ipairs(core.docs) do
if doc.abs_filename and abs_filename == doc.abs_filename then
return doc
end
end
end
-- no existing doc for filename; create new
local doc = Doc(filename, abs_filename, new_file)
table.insert(core.docs, doc)
core.log_quiet(filename and "Opened doc \"%s\"" or "Opened new doc", filename)
return doc
end
function core.get_views_referencing_doc(doc)
local res = {}
local views = core.root_view.root_node:get_children()
for _, view in ipairs(views) do
if view.doc == doc then table.insert(res, view) end
end
return res
end
local function log(icon, icon_color, fmt, ...)
local text = string.format(fmt, ...)
if icon then
core.status_view:show_message(icon, icon_color, text)
end
local info = debug.getinfo(2, "Sl")
local at = string.format("%s:%d", info.short_src, info.currentline)
local item = { text = text, time = os.time(), at = at }
table.insert(core.log_items, item)
if #core.log_items > config.max_log_items then
table.remove(core.log_items, 1)
end
return item
end
function core.log(...)
return log("i", style.text, ...)
end
function core.log_quiet(...)
return log(nil, nil, ...)
end
function core.error(...)
return log("!", style.accent, ...)
end
function core.get_log(i)
if i == nil then
local r = {}
for _, item in ipairs(core.log_items) do
table.insert(r, core.get_log(item))
end
return table.concat(r, "\n")
end
local item = type(i) == "number" and core.log_items[i] or i
local text = string.format("[%s] %s at %s", os.date(nil, item.time), item.text, item.at)
if item.info then
text = string.format("%s\n%s\n", text, item.info)
end
return text
end
function core.try(fn, ...)
local err
local ok, res = xpcall(fn, function(msg)
local item = core.error("%s", msg)
item.info = debug.traceback(nil, 2):gsub("\t", "")
err = msg
end, ...)
if ok then
return true, res
end
return false, err
end
local scheduled_rescan = {}
function core.has_pending_rescan()
for _ in pairs(scheduled_rescan) do
return true
end
end
function core.dir_rescan_add_job(dir, filepath)
local dirpath = filepath:match("^(.+)[/\\].+$")
local dirpath_rooted = dirpath and PATHSEP .. dirpath or ""
local abs_dirpath = dir.name .. dirpath_rooted
if dirpath then
-- check if the directory is in the project files list, if not exit
local dir_index, dir_match = file_search(dir.files, {filename = dirpath, type = "dir"})
-- Note that is dir_match is false dir_index greaten than the last valid index.
-- We use dir_index to index dir.files below only if dir_match is true.
if not dir_match or not core.project_subdir_is_shown(dir, dir.files[dir_index].filename) then return end
end
local new_time = system.get_time() + 1
-- evaluate new rescan request versus existing rescan
local remove_list = {}
for _, rescan in pairs(scheduled_rescan) do
if abs_dirpath == rescan.abs_path or common.path_belongs_to(abs_dirpath, rescan.abs_path) then
-- abs_dirpath is a subpath of a scan already ongoing: skip
rescan.time_limit = new_time
return
elseif common.path_belongs_to(rescan.abs_path, abs_dirpath) then
-- abs_dirpath already cover this rescan: add to the list of rescan to be removed
table.insert(remove_list, rescan.abs_path)
end
end
for _, key_path in ipairs(remove_list) do
scheduled_rescan[key_path] = nil
end
scheduled_rescan[abs_dirpath] = {dir = dir, path = dirpath_rooted, abs_path = abs_dirpath, time_limit = new_time}
core.add_thread(function()
while true do
local rescan = scheduled_rescan[abs_dirpath]
if not rescan then return end
if system.get_time() > rescan.time_limit then
local has_changes = rescan_project_subdir(rescan.dir, rescan.path)
if has_changes then
core.redraw = true -- we run without an event, from a thread
rescan.time_limit = new_time
else
scheduled_rescan[rescan.abs_path] = nil
return
end
end
coroutine.yield(0.2)
end
end)
end
-- no-op but can be overrided by plugins
function core.on_dirmonitor_modify(dir, filepath)
end
function core.on_dir_change(watch_id, action, filepath)
local dir = project_dir_by_watch_id(watch_id)
if not dir then return end
core.dir_rescan_add_job(dir, filepath)
if action == "delete" then
project_scan_remove_file(dir, filepath)
elseif action == "create" then
project_scan_add_file(dir, filepath)
core.on_dirmonitor_modify(dir, filepath);
elseif action == "modify" then
core.on_dirmonitor_modify(dir, filepath);
end
end
function core.on_event(type, ...)
local did_keymap = false
if type == "textinput" then
core.root_view:on_text_input(...)
elseif type == "keypressed" then
did_keymap = keymap.on_key_pressed(...)
elseif type == "keyreleased" then
keymap.on_key_released(...)
elseif type == "mousemoved" then
core.root_view:on_mouse_moved(...)
elseif type == "mousepressed" then
if not core.root_view:on_mouse_pressed(...) then
did_keymap = keymap.on_mouse_pressed(...)
end
elseif type == "mousereleased" then
core.root_view:on_mouse_released(...)
elseif type == "mousewheel" then
if not core.root_view:on_mouse_wheel(...) then
did_keymap = keymap.on_mouse_wheel(...)
end
elseif type == "resized" then
core.window_mode = system.get_window_mode()
elseif type == "minimized" or type == "maximized" or type == "restored" then
core.window_mode = type == "restored" and "normal" or type
elseif type == "filedropped" then
local filename, mx, my = ...
local info = system.get_file_info(filename)
if info and info.type == "dir" then
system.exec(string.format("%q %q", EXEFILE, filename))
else
local ok, doc = core.try(core.open_doc, filename)
if ok then
local node = core.root_view.root_node:get_child_overlapping_point(mx, my)
node:set_active_view(node.active_view)
core.root_view:open_doc(doc)
end
end
elseif type == "focuslost" then
core.root_view:on_focus_lost(...)
elseif type == "dirchange" then
core.on_dir_change(...)
elseif type == "quit" then
core.quit()
end
return did_keymap
end
local function get_title_filename(view)
local doc_filename = view.get_filename and view:get_filename() or view:get_name()
return (doc_filename ~= "---") and doc_filename or ""
end
function core.compose_window_title(title)
return title == "" and "Lite XL" or title .. " - Lite XL"
end
function core.step()
-- handle events
local did_keymap = false
for type, a,b,c,d in system.poll_event do
if type == "textinput" and did_keymap then
did_keymap = false
elseif type == "mousemoved" then
core.try(core.on_event, type, a, b, c, d)
else
local _, res = core.try(core.on_event, type, a, b, c, d)
did_keymap = res or did_keymap
end
core.redraw = true
end
local width, height = renderer.get_size()
-- update
core.root_view.size.x, core.root_view.size.y = width, height
core.root_view:update()
if not core.redraw then return false end
core.redraw = false
-- close unreferenced docs
for i = #core.docs, 1, -1 do
local doc = core.docs[i]
if #core.get_views_referencing_doc(doc) == 0 then
table.remove(core.docs, i)
doc:on_close()
end
end
-- update window title
local current_title = get_title_filename(core.active_view)
if current_title ~= core.window_title then
system.set_window_title(core.compose_window_title(current_title))
core.window_title = current_title
end
-- draw
renderer.begin_frame()
core.clip_rect_stack[1] = { 0, 0, width, height }
renderer.set_clip_rect(table.unpack(core.clip_rect_stack[1]))
core.root_view:draw()
renderer.end_frame()
return true
end
local run_threads = coroutine.wrap(function()
while true do
local max_time = 1 / config.fps - 0.004
local need_more_work = false
for k, thread in pairs(core.threads) do
-- run thread
if thread.wake < system.get_time() then
local _, wait = assert(coroutine.resume(thread.cr))
if coroutine.status(thread.cr) == "dead" then
if type(k) == "number" then
table.remove(core.threads, k)
else
core.threads[k] = nil
end
elseif wait then
thread.wake = system.get_time() + wait
else
need_more_work = true
end
end
-- stop running threads if we're about to hit the end of frame
if system.get_time() - core.frame_start > max_time then
coroutine.yield(true)
end
end
if not need_more_work then coroutine.yield(false) end
end
end)
function core.run()
local idle_iterations = 0
while true do
core.frame_start = system.get_time()
local did_redraw = core.step()
local need_more_work = run_threads() or core.has_pending_rescan()
if core.restart_request or core.quit_request then break end
if not did_redraw and not need_more_work then
idle_iterations = idle_iterations + 1
-- do not wait of events at idle_iterations = 1 to give a chance at core.step to run
-- and set "redraw" flag.
if idle_iterations > 1 then
if system.window_has_focus() then
-- keep running even with no events to make the cursor blinks
local t = system.get_time() - core.blink_start
local h = config.blink_period / 2
local dt = math.ceil(t / h) * h - t
system.wait_event(dt + 1 / config.fps)
else
system.wait_event()
end
end
else
idle_iterations = 0
local elapsed = system.get_time() - core.frame_start
system.sleep(math.max(0, 1 / config.fps - elapsed))
end
end
end
function core.blink_reset()
core.blink_start = system.get_time()
end
function core.request_cursor(value)
core.cursor_change_req = value
end
function core.on_error(err)
-- write error to file
local fp = io.open(USERDIR .. "/error.txt", "wb")
fp:write("Error: " .. tostring(err) .. "\n")
fp:write(debug.traceback(nil, 4) .. "\n")
fp:close()
-- save copy of all unsaved documents
for _, doc in ipairs(core.docs) do
if doc:is_dirty() and doc.filename then
doc:save(doc.filename .. "~")
end
end
end
return core
|
-- main.lua
--
|
function dump(...)
local objects = vim.tbl_map(vim.inspect, { ... })
print(unpack(objects))
end
local function map(type, input, output)
vim.api.nvim_set_keymap(type, input, output, { silent = true })
end
local function noremap(type, input, output)
vim.api.nvim_set_keymap(type, input, output, { noremap = true, silent = true })
end
function bufnoremap(bufnr, type, input, output)
vim.api.nvim_buf_set_keymap(bufnr, type, input, output, { noremap = true, silent = true })
end
function nnoremap(input, output)
noremap("n", input, output)
end
function inoremap(input, output)
noremap("i", input, output)
end
function vnoremap(input, output)
noremap("v", input, output)
end
function xnoremap(input, output)
noremap("x", input, output)
end
function onoremap(input, output)
noremap("o", input, output)
end
function tnoremap(input, output)
noremap("t", input, output)
end
function cnoremap(input, output)
noremap("c", input, output)
end
function nmap(input, output)
map("n", input, output)
end
function imap(input, output)
map("i", input, output)
end
function vmap(input, output)
map("v", input, output)
end
function xmap(input, output)
map("x", input, output)
end
function omap(input, output)
map("o", input, output)
end
function tmap(input, output)
map("t", input, output)
end
|
--Copyright (C) 2009 <SWGEmu>
--This File is part of Core3.
--This program is free software; you can redistribute
--it and/or modify it under the terms of the GNU Lesser
--General Public License as published by the Free Software
--Foundation; either version 2 of the License,
--or (at your option) any later version.
--This program is distributed in the hope that it will be useful,
--but WITHOUT ANY WARRANTY; without even the implied warranty of
--MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
--See the GNU Lesser General Public License for
--more details.
--You should have received a copy of the GNU Lesser General
--Public License along with this program; if not, write to
--the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
--Linking Engine3 statically or dynamically with other modules
--is making a combined work based on Engine3.
--Thus, the terms and conditions of the GNU Lesser General Public License
--cover the whole combination.
--In addition, as a special exception, the copyright holders of Engine3
--give you permission to combine Engine3 program with free software
--programs or libraries that are released under the GNU LGPL and with
--code included in the standard release of Core3 under the GNU LGPL
--license (or modified versions of such code, with unchanged license).
--You may copy and distribute such a system following the terms of the
--GNU LGPL for Engine3 and the licenses of the other code concerned,
--provided that you include the source code of that other code when
--and as the GNU LGPL requires distribution of source code.
--Note that people who make modified versions of Engine3 are not obligated
--to grant this special exception for their modified versions;
--it is their choice whether to do so. The GNU Lesser General Public License
--gives permission to release a modified version without this exception;
--this exception also makes it possible to release a modified version
--which carries forward this exception.
object_tangible_loot_dungeon_death_watch_bunker_shared_art_crate = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_art_crate.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/con_gen_crate_basic_s3.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8218,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_n:art_crate",
gameObjectType = 8218,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:art_crate",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3487250459,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_art_crate, "object/tangible/loot/dungeon/death_watch_bunker/shared_art_crate.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_binary_liquid = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_binary_liquid.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/edb_con_winebottle_s04.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:binary_liquid",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:binary_liquid",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 4135561605,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_binary_liquid, "object/tangible/loot/dungeon/death_watch_bunker/shared_binary_liquid.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_blood_vial = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_blood_vial.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_medic_antidote_lg_s1.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:blood_vial",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:blood_vial",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3164930997,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_blood_vial, "object/tangible/loot/dungeon/death_watch_bunker/shared_blood_vial.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_ducted_fan = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_ducted_fan.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_comp_generator_turbine.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:jetpack_ducted_fan",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:jetpack_ducted_fan",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2674191794,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_ducted_fan, "object/tangible/loot/dungeon/death_watch_bunker/shared_ducted_fan.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_emulsion_protection = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_emulsion_protection.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/edb_con_winebottle_s03.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:emulsion_protector",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:emulsion_protector",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3565585514,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_emulsion_protection, "object/tangible/loot/dungeon/death_watch_bunker/shared_emulsion_protection.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_fuel_dispersion_unit = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_fuel_dispersion_unit.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_comp_chemical_dispersion.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:jetpack_fuel_dispersion_unit",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:jetpack_fuel_dispersion_unit",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2809463476,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_fuel_dispersion_unit, "object/tangible/loot/dungeon/death_watch_bunker/shared_fuel_dispersion_unit.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_fuel_injector_tank = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_fuel_injector_tank.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_comp_medpak_broad_spectrum.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:jetpack_injector_tank",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:jetpack_injector_tank",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 2471910625,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_fuel_injector_tank, "object/tangible/loot/dungeon/death_watch_bunker/shared_fuel_injector_tank.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_jetpack_base = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_jetpack_base.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_repair_clothing_formal.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:jetpack_base",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:jetpack_base",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 4035920074,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_jetpack_base, "object/tangible/loot/dungeon/death_watch_bunker/shared_jetpack_base.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_jetpack_stabilizer = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_jetpack_stabilizer.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/wp_ammo_rocket.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:jetpack_stabilizer",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:jetpack_stabilizer",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 1405799440,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_jetpack_stabilizer, "object/tangible/loot/dungeon/death_watch_bunker/shared_jetpack_stabilizer.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_mining_drill_reward = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_mining_drill_reward.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/con_gen_crate_basic_s4.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8211,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:alum_reward",
gameObjectType = 8211,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:alum_reward",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 3782407794,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_mining_drill_reward, "object/tangible/loot/dungeon/death_watch_bunker/shared_mining_drill_reward.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_pistol_de10_barrel = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_pistol_de10_barrel.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/wp_muzzle_m_s01.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 262153,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:de10_barrel",
gameObjectType = 262153,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:de10_barrel",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 431650444,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_pistol_de10_barrel, "object/tangible/loot/dungeon/death_watch_bunker/shared_pistol_de10_barrel.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_viewscreen_s1 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_viewscreen_s1.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_tool_handheld_viewscreen_s1.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8218,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:viewscreen_s1",
gameObjectType = 8218,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:viewscreen_s1",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 765586613,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_viewscreen_s1, "object/tangible/loot/dungeon/death_watch_bunker/shared_viewscreen_s1.iff")
object_tangible_loot_dungeon_death_watch_bunker_shared_viewscreen_s2 = SharedTangibleObjectTemplate:new {
clientTemplateFileName = "object/tangible/loot/dungeon/death_watch_bunker/shared_viewscreen_s2.iff"
--Data below here is deprecated and loaded from the tres, keeping for easy lookups
--[[
appearanceFilename = "appearance/eqp_tool_handheld_viewscreen_s2.apt",
arrangementDescriptorFilename = "",
certificationsRequired = {},
clearFloraRadius = 0,
clientDataFile = "",
clientGameObjectType = 8218,
collisionActionBlockFlags = 0,
collisionActionFlags = 51,
collisionActionPassFlags = 1,
collisionMaterialBlockFlags = 0,
collisionMaterialFlags = 1,
collisionMaterialPassFlags = 0,
containerType = 0,
containerVolumeLimit = 1,
customizationVariableMapping = {},
detailedDescription = "@item_d:viewscreen_s2",
gameObjectType = 8218,
locationReservationRadius = 0,
lookAtText = "string_id_table",
noBuildRadius = 0,
objectName = "@item_n:viewscreen_s2",
onlyVisibleInTools = 0,
paletteColorCustomizationVariables = {},
portalLayoutFilename = "",
rangedIntCustomizationVariables = {},
scale = 1,
scaleThresholdBeforeExtentTest = 0.5,
sendToClient = 1,
slotDescriptorFilename = "",
snapToTerrain = 1,
socketDestinations = {},
structureFootprintFileName = "",
surfaceType = 0,
targetable = 1,
totalCellNumber = 0,
useStructureFootprintOutline = 0,
clientObjectCRC = 4139140130,
derivedFromTemplates = {"object/object/base/shared_base_object.iff", "object/tangible/base/shared_tangible_base.iff"}
]]
}
ObjectTemplates:addClientTemplate(object_tangible_loot_dungeon_death_watch_bunker_shared_viewscreen_s2, "object/tangible/loot/dungeon/death_watch_bunker/shared_viewscreen_s2.iff")
|
ManagedSingleton = inherit(ManagedClass)
ManagedSingleton._getSingleton = function(class) return class._instances[1] end
function ManagedSingleton:new(...)
self.new = function() end
return ManagedClass.new(self, ...)
end
function ManagedSingleton:getSingleton(...)
local instance = self:getClass():_getSingleton()
if not instance then
return self:getClass():new(...)
end
return instance
end
|
s = Procedural.TriangleShape():setLength(3):realizeShape()
tests:addShape(s)
|
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_belt.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_belt_gcw.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_bicep_l.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_bicep_l_gcw.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_bicep_r.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_bicep_r_gcw.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_boots.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_boots_gcw.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_bracer_l.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_bracer_l_gcw.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_bracer_r.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_bracer_r_gcw.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_chest_plate.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_chest_plate_gcw.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_gloves.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_gloves_gcw.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_helmet.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_helmet_gcw.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_leggings.lua")
includeFile("tangible/wearables/armor/rebel_spec_force/armor_rebel_spec_force_leggings_gcw.lua")
|
---@class GridEntitySpikes:GridEntity @
local GridEntitySpikes = {}
--------------------
-- Variables
--------------------
---@type number @(member) (int)
GridEntitySpikes.Timeout = nil
|
local vec3 = require("vec3")
local utils = require("utils")
local locTracker = require("locationtracker")
local VectorChunk = {}
--VectorChunk.__index = VectorChunk
setmetatable(VectorChunk, {__call = function(cls, packValues, allowFloats, offset)
local self = {}
self.hashData = {}
self.arrayData = {}
-- default offset to locTracker.position, and if it doesn't exist, default to vector [0, 0, 0]
self.offset = offset and offset or (locTracker.position and (locTracker.position - vec3(2048, locTracker.position.y, 2048)) or vec3(0, 0, 0))
self.pack = allowFloats and cls.packFloat or cls.packInt
self.unpack = allowFloats and cls.unpackFloat or cls.unpackInt
self.packValues = packValues or false
setmetatable(self, cls)
return self
end })
--[[ Packs x, y, z values in range x: [0, 4095], y: [0, 255], z: [0, 4095]
into a single integer. The packed format is [x: 12 bits, y: 8 bits, z: 12 bits] --]]
function VectorChunk:packInt(x, y, z)
local offset = self.offset
return (((x - offset.x) & 0x00000FFF) << 20) |
(((y - offset.y) & 0x000000FF) << 12) |
((z - offset.z) & 0x00000FFF)
end
--- unpacks vector as a single integer into x, y, z values
function VectorChunk:unpackInt(number)
local offset = self.offset
return ((number & 0xFFF00000) >> 20) + offset.x,
((number & 0x000FF000) >> 12) + offset.y,
(number & 0x00000FFF) + offset.z
end
-- packs vector with floating point coordinates into a string using string.pack
function VectorChunk:packFloat(x, y, z)
local offset = self.offset
return string.pack(">fff", x - offset.x, y - offset.y, z - offset.z)
end
-- unpacks vector with floating point coordinates from string into x, y, z value using string.unpack
function VectorChunk:unpackFloat(number)
local offset = self.offset
local x, y, z = string.unpack(">fff", number)
return x + offset.x, y + offset.y, z + offset.z
end
--[[ below are raw methods for accessing data without using __index and __newindex, with their
optimized versions (not needing a vec3 object as constructing new table is inefficient) having
"xyz" suffix --]]
function VectorChunk:at(vec)
local value = self.hashData[self:pack(vec.x, vec.y, vec.z)]
return self.packValues and (value and vec3(self:unpack(value)) or nil) or value
end
function VectorChunk:atxyz(x, y, z)
local value = self.hashData[self:pack(x, y, z)]
return self.packValues and (value and vec3(self:unpack(value)) or nil) or value
end
function VectorChunk:atIndex(index)
return self.arrayData[index] and vec3(self:unpack(self.arrayData[index])) or nil
end
function VectorChunk:set(vec, elem)
self.hashData[self:pack(vec.x, vec.y, vec.z)] = self.packValues and self:pack(elem.x, elem.y, elem.z) or elem
end
function VectorChunk:setxyz(x, y, z, elem)
self.hashData[self:pack(x, y, z)] = self.packValues and self:pack(elem.x, elem.y, elem.z) or elem
end
function VectorChunk:setIndex(index, vec)
self.arrayData[index] = vec and self:pack(vec.x, vec.y, vec.z) or nil
end
function VectorChunk:setIndexXyz(index, x, y, z)
self.arrayData[index] = self:pack(x, y, z)
end
function VectorChunk:insert(pos, vec)
if vec then
table.insert(self.arrayData, pos, self:pack(vec.x, vec.y, vec.z))
else
vec = pos
self.arrayData[#self.arrayData + 1] = vec and self:pack(vec.x, vec.y, vec.z) or nil
end
end
function VectorChunk:remove(index)
return vec3(self:unpack(table.remove(self.arrayData, index)))
end
function VectorChunk.__index(self, index)
if utils.isInstance(index, vec3) then
return self:at(index)
elseif type(index) == "number" then
return self:atIndex(index)
else
return getmetatable(self)[index] -- gets the metatable with methods and metamethods and returns a method
end
end
function VectorChunk.__newindex(self, index, elem)
if utils.isInstance(index, vec3) then
self:set(index, elem)
elseif type(index) == "number" then
self:setIndex(index, elem)
else
rawset(self, index, elem) -- dealing with raw table elements
end
end
-- not guaranteed to be the largest index
function VectorChunk.__len(self)
return #self.arrayData
end
function VectorChunk.__pairs(self)
local function statelessIterator(self, index)
local element
index, element = next(self.hashData, index and self:pack(index.x, index.y, index.z) or index)
if element then
return vec3(self:unpack(index)), self.packValues and vec3(self:unpack(element)) or element
end
end
return statelessIterator, self, nil
end
-- another way of writing pairs(VectorChunkObject) to make it more standardized in line with VectorChunk.ipairs
function VectorChunk:pairs()
return self.__pairs(self)
end
--[[ Lua 5.3 doesn't support __ipairs metamethod anymore, so we use custom-named function returning an
iterator (note that ipairs(VectorChunkObject) will still work because standard ipairs now uses the
index metamethod which is implemented above) --]]
function VectorChunk:ipairs()
local function statelessIterator(self, index)
index = index + 1
local element = self.arrayData[index]
if element then
return index, vec3(self:unpack(element))
end
end
return statelessIterator, self, 0
end
return VectorChunk
|
local comment_col_max = 72
local comment_delim_col_start = 73
local comment_start = "/*"
local comment_end = "*/"
local note_comment = "* NOTE *"
local note_comment_indent = #comment_start + 1 + #note_comment
local M = {}
-- Checks if the current line is a ss1 style comment.
local function is_comment(line)
-- Remove all whitespace from beginning and end of string.
line = vim.trim(line)
-- Return true if the line begins with a comment. Otherwise false.
return line:sub(1, #comment_start) == comment_start
end
-- Checks if the current line is a ss1 style note comment. ]]
local function is_note_comment(line)
-- Return true if the line has the note prefix. Otherwise false.
return string.find(line, note_comment, 1, true)
end
-- Checks if the current line of the current comment is malformatted.
local function is_bad_comment(line)
-- Find the offset of the comment end
local line_col = string.find(line, comment_end)
if line_col > comment_delim_col_start or line_col < comment_delim_col_start then
return true
else
return false
end
end
-- Reflows the text.
local function reflow_text(line_start, line_end, text_width)
-- Visually select all lines in the range.
vim.api.nvim_feedkeys(string.format("%dGV%dG", line_start, line_end) , 'x', false)
-- Save options.
local textwidth = vim.api.nvim_buf_get_option(0, "textwidth")
local smartindent = vim.api.nvim_buf_get_option(0, "smartindent")
local autoindent = vim.api.nvim_buf_get_option(0, "autoindent")
local cindent = vim.api.nvim_buf_get_option(0, "cindent")
local smarttab = vim.api.nvim_get_option("smarttab")
local indentexpr = vim.api.nvim_buf_get_option(0, "indentexpr")
-- Set options for reflowing text.
vim.api.nvim_buf_set_option(0, "textwidth", text_width)
vim.api.nvim_buf_set_option(0, "smartindent", false)
vim.api.nvim_buf_set_option(0, "autoindent", false)
vim.api.nvim_buf_set_option(0, "cindent", false)
vim.api.nvim_set_option("smarttab", false)
vim.api.nvim_buf_set_option(0, "indentexpr", "")
-- Reflow the text.
vim.api.nvim_feedkeys("gq", 'x', false)
-- Restore options.
vim.api.nvim_buf_set_option(0, "textwidth", textwidth)
vim.api.nvim_buf_set_option(0, "smartindent", smartindent)
vim.api.nvim_buf_set_option(0, "autoindent", autoindent)
vim.api.nvim_buf_set_option(0, "cindent", cindent)
vim.api.nvim_set_option("smarttab", smarttab)
vim.api.nvim_buf_set_option(0, "indentexpr", indentexpr)
-- Visually Select the all lines from the reflow. More lines may have been
-- added, but we can quickly re-select them.
vim.api.nvim_feedkeys("'[V']", 'x', false)
-- If additional lines were added, then we need to update the last line of
-- the section. This will be in ascending order order so we don't need to
-- swap these.
line_end = vim.fn.getcurpos()[2]
-- Clear the visual selection.
vim.api.nvim_feedkeys(vim.api.nvim_eval('"\\<ESC>"'), 'x', false)
-- Return the section line end so the caller knows if it changed.
return line_end
end
-- Formats an ss1 normal comment section.
local function format_normal_section(section)
local new_line
local padding
-- Save the indent level from the current line.
local indent = string.find(section.lines[1], "%S") - 1
local indent_string = string.sub(section.lines[1], 1, indent)
-- Remove indentation, comment delimiters, and trailing white space from all
-- section lines.
local new_line
local line_list = {}
for _, line in ipairs(section.lines) do
-- Remove indent and trailing white space.
new_line = vim.trim(line)
-- Remove the comment prefix.
new_line, _ = string.gsub(new_line, vim.pesc(comment_start) .. "%s?", "", 1)
-- Remove the comment suffix.
new_line, _ = string.sub(new_line, 1, -#comment_end - 1)
-- Remove all trailing space now that delimeters
-- have been removed
new_line = vim.trim(new_line)
-- Store the modified line.
table.insert(line_list, new_line)
end
-- Update the lines in the buffer (API zero indexed).
vim.api.nvim_buf_set_lines(0, section.line_start-1, section.line_end, false, line_list)
-- Reflow the text block. This function will return the new section line end
-- if additional lines were added to the section due to the reflowing of the
-- text.
section.line_end = reflow_text(section.line_start, section.line_end, comment_col_max - indent - #comment_start - 1)
-- Get the lines from the selection (API zero indexed).
lines = vim.api.nvim_buf_get_lines(0, section.line_start-1, section.line_end, false)
-- Add comment delimeters back to the lines and return the update lines to
-- the caller.
section.updated_lines = {}
for _, line in ipairs(lines) do
-- Calculate the padding till the end of line delimiter.
padding = comment_col_max - indent - #comment_start - 1 - #line
-- Format the line.
new_line = indent_string .. comment_start .. ' ' .. line .. string.rep(' ', padding) .. comment_end
-- Add the line to the list.
table.insert(section.updated_lines, new_line)
end
end
-- Formats an ss1 note comment section.
local function format_note_section(section)
local new_line
local padding
-- Save the indent level from the current line.
local indent = string.find(section.lines[1], "%S") - 1
local indent_string = string.sub(section.lines[1], 1, indent)
-- Remove indentation, comment delimiters, and trailing white space from all
-- section lines.
local line_list = {}
for index, line in ipairs(section.lines) do
-- Remove indent and trailing white space.
new_line = vim.trim(line)
-- Remove the comment prefix.
new_line, _ = string.gsub(new_line, vim.pesc(comment_start) .. "%s?", "", 1)
-- Remove the note prefix.
if index == 1 then
--Extra space after the note prefix will be stripped below.
new_line, _ = string.gsub(new_line, vim.pesc(note_comment) .. "%s?", "", 1)
end
-- Remove the comment suffix.
new_line, _ = string.sub(new_line, 1, -#comment_end - 1)
-- Remove all trailing space now that delimeters
-- have been removed
new_line = vim.trim(new_line)
-- Store the modified line.
table.insert(line_list, new_line)
end
-- Update the lines in the buffer.
vim.api.nvim_buf_set_lines(0, section.line_start-1, section.line_end, false, line_list)
-- Reflow the text block. This function will return the new section line end
-- if additional lines were added to the section due to the reflowing of the
-- text.
section.line_end = reflow_text(section.line_start, section.line_end, comment_col_max - indent - #comment_start - #note_comment - 1 - 1)
-- Get the lines from the selection (API zero indexed).
lines = vim.api.nvim_buf_get_lines(0, section.line_start-1, section.line_end, false)
-- Add comment delimeters back to the lines and return the update lines to
-- the caller.
section.updated_lines = {}
for index, line in ipairs(lines) do
-- Calculate the padding till the end of line delimiter.
padding = comment_col_max - indent - #comment_start - 1 - #note_comment - 1 - #line
-- If this is the first line, then we need to add back the note prefix.
if index == 1 then
-- Format the line.
new_line = indent_string .. comment_start .. ' ' .. note_comment .. ' ' .. line .. string.rep(' ', padding) .. comment_end
else
-- Format the line.
new_line = indent_string .. comment_start .. string.rep(' ', #note_comment + 1) .. ' ' .. line .. string.rep(' ', padding) .. comment_end
end
-- Add the line to the list.
table.insert(section.updated_lines, new_line)
end
end
-- Visually selects the next bad comment from the current line. If the current
-- line is a bad comment, then that comment will be visually selected.
function M.next_bad_comment()
local line_count = vim.api.nvim_buf_line_count(0)
--Save the current cursor position.
local previous_line_number, previous_col_number = unpack(vim.api.nvim_win_get_cursor(0))
local current_line_number = previous_line_number
-- If we have not reached eof.
while current_line_number ~= line_count do
--Get current line (API zero indexed).
local line = vim.api.nvim_buf_get_lines(0, current_line_number-1, current_line_number, false)[1]
--If the current line is a comment.
if is_comment(line) then
--If this is a bad comment.
if is_bad_comment(line) then
-- Find the offset of the comment start. This offset is
-- the actual comment string not the delimiter.
local line_col = string.find(line, comment_start, 1, true) + #comment_start
-- Update the cursor position at beginning of the comment text.
vim.api.nvim_win_set_cursor(0, {current_line_number, line_col})
-- Set starting and end line numbers for visually selecting
-- the comment block.
local line_start = current_line_number - 1
local line_end = current_line_number + 1
-- Find the start of the comment block.
while line_start ~= 0 do
-- Get the current line.
line = vim.api.nvim_buf_get_lines(0, line_start-1, line_start, false)[1]
-- If this line is not a comment, then the next line
-- is the start of the comment block.
if not is_comment(line) then
line_start = line_start + 1
break
end
line_start = line_start - 1;
end
-- Find the end of the comment block.
while line_end ~= line_count do
-- Get the current line.
line = vim.api.nvim_buf_get_lines(0, line_end-1, line_end, false)[1]
-- If this line is not a comment, then the previous line
-- is the end of the comment block.
if not is_comment(line) then
line_end = line_end - 1
break
end
line_end = line_end + 1;
end
-- Visually select the comment block
vim.api.nvim_feedkeys(string.format("%dGV%dG", line_start, line_end) , 'n', false)
break
end
end
--Get next line.
current_line_number = current_line_number + 1;
end
end
-- Formats an ss1 comment.
function M.format_comment(selection)
-- Check if the caller defined the visual selection.
local next = next
selection = selection or {}
if next(selection) == nil then
-- Get the visual selection.
selection.line_start = vim.fn.getpos('v')[2]
selection.line_end = vim.fn.getcurpos()[2]
-- Clear the visual selection.
vim.api.nvim_feedkeys(vim.api.nvim_eval('"\\<ESC>"'), 'x', false)
-- If the visual selection start is not in order of
-- increasing line order swap them. This may happen if
-- the user explicitly made the visual selection.
if selection.line_start > selection.line_end then
selection.line_start, selection.line_end = selection.line_end, selection.line_start
end
-- Get the lines from the selection (API zero indexed).
selection.comment = {}
selection.comment.line_start = selection.line_start
selection.comment.line_end = selection.line_end
selection.comment.lines = vim.api.nvim_buf_get_lines(0, selection.line_start-1, selection.line_end, false)
end
-- Initialize the normal section that is going to be formatted. The comment
-- section line end will be updated for each line until we find the end of
-- the normal section. Note sections may follow the normal section and will
-- follow the same process.
local section = {}
section.line_start = selection.comment.line_start
section.line_end = section.line_start
section.updated_lines = {}
section.note_section = false
-- Process the comment.
for index, line in ipairs(selection.comment.lines) do
-- If the current line is a comment.
if is_comment(line) then
-- Determine if we have reached the end of a section. This will be the
-- case if the current line is the last line, the next line is the start
-- of a note section.
if index == #selection.comment.lines or is_note_comment(selection.comment.lines[index+1]) then
-- Get the lines for the section (API zero indexed).
section.lines = vim.api.nvim_buf_get_lines(0, section.line_start-1, section.line_end, false)
-- Format the current section.
if section.note_section then
format_note_section(section)
else
format_normal_section(section)
end
-- Update the buffer with the formatted lines. Any additional lines
-- that were added due to text reflow will be inserted before the start
-- of the next section. The current section line end has also been
-- updated to reflect the additional lines that were added to the
-- section.
vim.api.nvim_buf_set_lines(0, section.line_start-1, section.line_end, false, section.updated_lines)
-- If this isn't the last line in the selection.
if index ~= #selection.comment.lines then
-- If we are still processing the normal section.
if not section.note_section then
-- If the next section is a note section.
if is_note_comment(selection.comment.lines[index+1]) then
-- Flag that additional sections are note sections.
section.note_section = true
end
end
end
-- If this is not the last line of the selection, then update the line
-- start and line end for the next section.
if index ~= #selection.comment.lines then
-- Process the next section in the selection. The format functions
-- already updated the section line end if additional lines were
-- added to the section.
section.line_start = section.line_end + 1
section.line_end = section.line_start
end
else
-- Process the next line as part of the current section.
section.line_end = section.line_end + 1
end
else
-- Found a line in the selection that is not a comment we will terminate
-- and not process the current section. Any previous sections that were
-- formatted up to this point will remain formatted.
break
end
end
-- Make sure the caller knows if the end of the comment block has changed.
selection.comment.line_end = section.line_end
end
-- Formats all ss1 comments in the selection.
function M.format_all_comments()
-- Get the visual selection.
selection = {}
selection.line_start = vim.fn.getpos('v')[2]
selection.line_end = vim.fn.getcurpos()[2]
-- Get the lines from the selection (API zero indexed).
selection.lines = vim.api.nvim_buf_get_lines(0, selection.line_start-1, selection.line_end, false)
-- Clear the visual selection.
vim.api.nvim_feedkeys(vim.api.nvim_eval('"\\<ESC>"'), 'x', false)
-- If the visual selection start is not in order of
-- increasing line order swap them. This may happen if
-- the user explicitly made the visual selection.
if selection.line_start > selection.line_end then
selection.line_start, selection.line_end = selection.line_end, selection.line_start
end
-- If this function is called, then the selection is the only comment that
-- will be formatted.
selection.comment = {}
selection.comment.line_start = selection.line_start
selection.comment.line_end = selection.line_start
selection.comment.bad_comment = false
-- Neovim Lua currently only supports Lua 5.1.
table.unpack = table.unpack or unpack
-- Process the comment.
index = 1
while index <= #selection.lines do
-- Get the current line.
line = selection.lines[index]
-- If the current line is a comment, then this is the start of a comment
-- block.
if is_comment(line) then
-- Flag that we have not found a bad comment for the current comment
-- block.
selection.comment.bad_comment = false
-- If the current line is a bad comment
if is_bad_comment(line) then
selection.comment.bad_comment = true
end
-- If this is not the last line, then we need to find the end of the
-- comment block.
if index ~= #selection.lines then
-- Start with the next line and find the last line of the comment
-- block.
local lines = {table.unpack(selection.lines, index + 1)}
for index2, line2 in ipairs(lines) do
-- If the current line is a comment, then we have not found the end
-- of the comment block.
if is_comment(lines[index2]) then
-- If the current line is a bad comment, then we need to flag it, but
-- this not the end of the comment block so we need to continue
-- looking for the end of the comment block.
if is_bad_comment(line2) then
selection.comment.bad_comment = true
end
-- Update the end of the comment block.
selection.comment.line_end = selection.comment.line_end + 1
else
-- Store the current line end so that if additional lines are added
-- we can determine how many were added. The format_comment function
-- will update the line of the comment block if it changes.
local NewLineCount = selection.comment.line_end
-- Only format the comment block if we determined that it contains
-- a line that is a bad comment.
if selection.comment.bad_comment then
-- Get the lines from the selection (API zero indexed).
selection.comment.lines = vim.api.nvim_buf_get_lines(0, selection.comment.line_start-1, selection.comment.line_end, false)
M.format_comment(selection)
-- Set the number of lines that were added after the comment
-- block was formatted.
NewLineCount = selection.comment.line_end - NewLineCount
end
-- Since we processed additional lines we need to update the main
-- loop to skip over lines that we already processed in the inner
-- loop.
index = index + index2
-- If there are more lines in the visual selection, then there may
-- be another comment block that needs to be formatted.
if index ~= #selection.lines then
-- Next comment block should start after the current line
-- (non-comment) that was just processed and marked the end of
-- the current comment block.
selection.comment.line_start = selection.comment.line_end + 2
selection.comment.line_end = selection.comment.line_start
end
-- Continue processing lines in the visual selection.
break
end
end
else
-- The line end for the comment block has already been set to start for
-- this case.
-- Only format the comment block if we determined that it is a bad
-- comment.
if selection.comment.bad_comment then
-- Get the lines from the selection (API zero indexed).
selection.comment.lines = vim.api.nvim_buf_get_lines(0, selection.comment.line_start-1, selection.comment.line_end, false)
M.format_comment(selection)
end
end
else
-- Keep incrementing the next line as the comment start until we find a
-- comment.
selection.comment.line_start = selection.comment.line_start + 1
selection.comment.line_end = selection.comment.line_start
end
-- Get the next line in the visual selection.
index = index + 1
end
end
return M
|
local Routines = {}
function AddRoutineForNPC(npcid, hour, minute)
table.insert(Routines,{id = npcid, h = hour, m = minute})
end
function RemoveNPCRoutine(npcid, hour, minute)
for k, v in ipairs(Routines) do
if v.id == npcid and v.h == hour and v.m == minute then
table.remove(Routine, k)
end
end
end
function CheckRoutine()
for k, v in ipairs(Routines)
do
local hour, minute = GetTime()
if v.h == hour and v.m == minute then
OnBotRoutine(v.id, hour, minute) -- callback
end
end
end
function OnBotRoutine(npcid, hour, minute)
--Do something ;3
end
|
require("std/orklib")
inspect = require("std/inspect")
local s = ork.getscene();
printf("Hello world, from %s yo.",_VERSION)
--printf( "Lua Initializing scene NumEnt<%d>",s:NumEntities() )
-------------------------------------
spawned = 0
at_start = 0
function OnSceneCompose()
printf("OnSceneCompose()")
if at_start==1 then
for i=1, 500 do
s:spawn("/arch/xy","dynaentXY"..i)
s:spawn("/arch/xz","dynaentXZ"..i)
s:spawn("/arch/yz","dynaentYZ"..i)
--printf( "i<%d>", i )
end
end
end
-------------------------------------
function OnSceneLink()
printf("OnSceneLink()")
end
-------------------------------------
function OnSceneStart()
printf("OnSceneStart()")
end
-------------------------------------
function OnSceneStop()
printf("OnSceneStop()")
end
-------------------------------------
function OnSceneUnLink()
printf("OnSceneUnLink()")
end
-------------------------------------
function OnSceneUpdate(dt,gt)
if at_start==1 then return end
if spawned < 1000 then
local r = math.random(100)
if r>95 then
s:spawn("/arch/xz","dynaentXZ"..spawned)
elseif r>90 then
s:spawn("/arch/xy","dynaentXY"..spawned)
elseif r>85 then
s:spawn("/arch/yz","dynaentYZ"..spawned)
end
spawned = spawned+1
end
--printf( "///////////////////////////")
--printf( "OnSceneUpdate")
--printf( "///////////////////////////")
end
-------------------------------------
|
local utils = require('restructure.utils')
local vstruct = require('vstruct') -- FIXME avoid exposing buffer internals.
local Reserved = {}
Reserved.__index = Reserved
function Reserved.new(type, count)
local b = setmetatable({}, Reserved)
b.type = type
b.count = count or 1
return b
end
function Reserved:decode(stream, parent)
vstruct.read("x"..self:size(nil, parent), stream.buffer, {})
return nil
end
function Reserved:size(_, parent)
local count = utils.resolveLength(self.count, nil, parent)
return self.type:size() * count
end
function Reserved:encode(stream, val, parent)
stream:fill(0, self:size(val, parent))
end
return Reserved
|
local api = vim.api
local M = {}
local repeat_fn
function M.repeat_action()
repeat_fn()
end
function M.mk_repeatable(fn)
return function(...)
local args = { ... }
local nargs = select('#', ...)
repeat_fn = function()
fn(unpack(args, 1, nargs))
local vimfn = vim.fn
local sequence = string.format('%sGitsignsRepeat',
api.nvim_replace_termcodes('<Plug>', true, true, true))
pcall(vimfn['repeat#set'], sequence, -1)
end
repeat_fn()
end
end
api.nvim_set_keymap(
'n',
'<Plug>GitsignsRepeat',
'<cmd>lua require"gitsigns.repeat".repeat_action()<CR>',
{ noremap = false, silent = true })
return M
|
AddCSLuaFile( "cl_init.lua" )
AddCSLuaFile( "shared.lua" )
include('shared.lua')
util.AddNetworkString("UrbanWeaponSpawnsOpenMenu")
function ENT:Initialize()
self:SetNWInt("id", 0)
self:SetNWFloat("respawnTime", 10)
self:SetNWString("weapon","weapon_medkit")
self:SetModel( "models/weapons/w_medkit.mdl" )
self:SetUseType( SIMPLE_USE )
self:SetSolid( SOLID_VPHYSICS )
end
function ENT:Use(a, ply)
if ply:IsAdmin() then
net.Start("UrbanWeaponSpawnsOpenMenu")
net.WriteEntity(self)
net.Send(ply)
end
end
function ENT:SetConfig(id, weapon, pos, respawnTime)
self:SetNWInt("id", id)
self:SetNWFloat("respawnTime", respawnTime)
self:SetNWString("weapon", weapon)
self:SetPos(Vector(pos))
self:SetModel( weapons.Get(weapon).WorldModel )
end
function ENT:StartTouch(ply)
self:GiveToPlayer(ply)
end
function ENT:GiveToPlayer(ply)
local weapon = weapons.Get(self:GetNWString("weapon"))
if ply:IsPlayer() then
if ply:Give(weapon.ClassName) == NULL then --If the player already has the weapon
if weapon.Primary.ClipSize > 0 then
ply:GiveAmmo(weapon.Primary.ClipSize, weapon.Primary.Ammo)
else
ply:GiveAmmo(weapon.Primary.DefaultClip, weapon.Primary.Ammo)
end
end
self:SetNoDraw(true)
self:SetSolid( SOLID_NONE )
timer.Simple(self:GetNWFloat("respawnTime"), function()
if self:IsValid() then
self:SetSolid( SOLID_VPHYSICS )
self:SetNoDraw(false)
for k,v in pairs(ents.FindInSphere(self:GetPos(), self:GetModelRadius())) do
if v:IsPlayer() then
self:GiveToPlayer(v)
end
end
end
end)
end
end
|
local ActionCreator = require(script.Parent.Parent.ActionCreator)
return ActionCreator("SetHasPermissionToVoiceChat", function(hasPermissionToVoiceChat)
return {
hasPermissionToVoiceChat = hasPermissionToVoiceChat,
}
end)
|
-- Copyright (c) Jérémie N'gadi
--
-- All rights reserved.
--
-- Even if 'All rights reserved' is very clear :
--
-- You shall not use any piece of this software in a commercial product / service
-- You shall not resell this software
-- You shall not provide any facility to install this particular software in a commercial product / service
-- If you redistribute this software, you must link to ORIGINAL repository at https://github.com/ESX-Org/es_extended
-- This copyright should appear in every part of the project code
M('player')
xPlayer.createDBAccessor(
'accessories',
{name = 'accessories', type = 'MEDIUMTEXT', length = nil, default = 'NULL', extra = nil},
function(x)
if x == nil then x = {} end
return json.encode(x)
end,
function(x)
if x == nil then x = '{}' end
return json.decode(x)
end
)
|
local loader = require 'lib.love-loader'
loading = {}
function loading:enter()
self.loading = false
self.started = false
self.loadingDone = false
end
function loading:draw()
local width, height = love.graphics:getWidth(),love.graphics:getHeight()
love.graphics.printf("Loading...",0,height/2,width,"center")
--love.graphics.printf(loader.loadedCount .. "/" .. loader.resourceCount,0,height/2+15, width,"center")
end
function loading:update(dt)
if self.loading == false then
self.loading = true
elseif self.loadingDone ~= true and self.started ~= true then
self.started = true
output:load_all_images()
output:load_ui()
self.loadingDone = true
end
if self.loadingDone == true then
Gamestate.switch(modloader)
end
end
function loading:load_all_images()
local folders = love.filesystem.getDirectoryItems('images')
for _,folderName in pairs(folders) do
if love.filesystem.isDirectory('images/' .. folderName) then
local files = love.filesystem.getDirectoryItems('images/' .. folderName)
for _,fileName in pairs(files) do
local extension = string.sub(fileName, -4)
if extension == ".png" then
fileName = string.sub(fileName,1,-5)
loader.newImage(images, folderName .. fileName,"images/" .. folderName .. "/" .. fileName .. ".png")
end --end extension check
end --end fileName for
end --end is folder if
end --end folderName for
for _,tileset in pairs(love.filesystem.getDirectoryItems('images/levels')) do
local files = love.filesystem.getDirectoryItems('images/levels/' .. tileset)
for _,fileName in pairs(files) do
local extension = string.sub(fileName, -4)
if extension == ".png" then
fileName = string.sub(fileName,1,-5)
loader.newImage(images, tileset .. fileName, "images/levels/" .. tileset .. "/" .. fileName .. ".png")
end --end extension check
end --end fileName for
end
--[[loader.start(function()
self.loadingDone = true
end)]]
end
|
vim.g.gitgutter_sign_added = ""
vim.g.gitgutter_sign_removed = ""
vim.g.gitgutter_sign_modified = ""
vim.g.gitgutter_map_keys = 0
|
function arithmeticExpression(a, b, c)
divInt = false
plus = a + b
sub = a - b
mult = a * b
if a % b == 0 then
divInt = true
else
divInt = false
end
if plus == c or sub == c or mult == c then
return true
elseif divInt == true then
if a / b == c then
return true
else
return false
end
else
return false
end
end
|
local setmetatable = setmetatable
local io = io
local button = require( "awful.button" )
local beautiful = require( "beautiful" )
local util = require( "awful.util" )
local config = require( "forgotten" )
local tooltip2 = require( "radical.tooltip" )
local wibox = require( "wibox" )
local themeutils = require( "blind.common.drawing" )
local color = require("gears.color")
local module={}
local data = {}
local function update()
end
local function setupKb()
--local keyboardPipe = io.open('/tmp/kbMap',"r") --This is not reliable
--local text = keyboardPipe:read("*all")
--keyboardPipe:close()
return "us"--text
end
local function new(screen, args)
local keyboardSwitcher = wibox.widget.imagebox()
local tt = tooltip2(keyboardSwitcher,"Change keyboard layout",{down=true})
keyboardSwitcher:connect_signal("mouse::enter", function()keyboardSwitcher.bg = beautiful.bg_highlight end)
keyboardSwitcher:connect_signal("mouse::leave", function()keyboardSwitcher.bg = beautiful.bg_normal end)
if setupKb() == "us" then
keyboardSwitcher:set_image(color.apply_mask(config.iconPath .. "us_flag.png"))
else
keyboardSwitcher:set_image(color.apply_mask(config.iconPath .. "canada_flag.png"))
end
keyboardSwitcher:buttons( util.table.join(
button({ }, 1, function()
if setupKb() == "us" then
keyboardSwitcher.text = "ca"
local aFile = io.open('/tmp/kbMap',"w")
aFile:write("ca")
aFile:close()
util.spawn("setxkbmap ca")
keyboardSwitcher:set_image(config.iconPath .. "canada_flag.png")
else
keyboardSwitcher.text = "us"
local aFile = io.open('/tmp/kbMap',"w")
aFile:write("us")
aFile:close()
util.spawn("setxkbmap us")
keyboardSwitcher:set_image(config.iconPath .. "us_flag.png")
end
end)
))
return keyboardSwitcher
end
return setmetatable(module, { __call = function(_, ...) return new(...) end })
|
local _message_handler = {
-- common message
["ENUM_SHOW_START_UI"] = { file = "ui/ui_demo", func = "ShowDemoUI(...)"},
}
local function ReceiveUIMessage(message,... )
local handleEvents = _message_handler[message]
if handleEvents then
if handleEvents.file~=nil then
require( handleEvents.file )
end
local func = handleEvents.func
if type(func) == "string" then
func = loadstring(func)
end
if func then
func( luaType, ... )
end
func = nil
end
end
function SendUIMessage( ... )
ReceiveUIMessage(...)
end
function SendGlobalMessage( ... )
ReceiveUIMessage(...)
triggerGlobalEvent(...)
end
|
-- Nothing --
|
ITEM.name = "The Bible"
ITEM.desc = ""
ITEM.model = "models/z-o-m-b-i-e/metro_2033/books/m33_book_15.mdl"
ITEM.contents = [[
<h1>The Holy Bible</h1>
<p>
<ol>
<li>In the beginning God created the heaven and the earth.</li>
<li>And the earth was without form, and void; and darkness was upon
the face of the deep. And the Spirit of God moved upon the face of
the waters.</li>
<li>And God said, Let there be light: and there was light.</li>
<li>And God saw the light, that it was good: and God divided the light
from the darkness.</li>
<li>And God called the light Day, and the darkness he called Night.
And the evening and the morning were the first day.</li>
<li>And God said, Let there be a firmament in the midst of the
waters, and let it divide the waters from the waters.</li>
<li>And God made the firmament, and divided the waters which were
under the firmament from the waters which were above the
firmament: and it was so.</li>
<li>And God called the firmament Heaven. And the evening and the
morning were the second day.</li>
<li>And God said, Let the waters under the heaven be gathered
together unto one place, and let the dry land appear: and it was so.</li>
<li>And God called the dry land Earth; and the gathering together of
the waters called he Seas: and God saw that it was good.</li>
<li>And God said, Let the earth bring forth grass, the herb yielding
seed, and the fruit tree yielding fruit after his kind, whose seed is in
itself, upon the earth: and it was so.</li>
<li>And the earth brought forth grass, and herb yielding seed after his
kind, and the tree yielding fruit, whose seed was in itself, after his
kind: and God saw that it was good.</li>
<li>And the evening and the morning were the third day</li>
<li>And God said, Let there be lights in the firmament of the heaven
to divide the day from the night; and let them be for signs, and for
seasons, and for days, and years:</li>
<li>and let them be for lights in the firmament of the heaven to give
light upon the earth: and it was so.</li>
<li>And God made two great lights; the greater light to rule the day,
and the lesser light to rule the night: he made the stars also.</li>
<li>And God set them in the firmament of the heaven to give light
upon the earth,</li>
<li>and to rule over the day and over the night, and to divide the light
from the darkness: and God saw that it was good.</li>
<li>And the evening and the morning were the fourth day.</li>
<li>And God said, Let the waters bring forth abundantly the moving
creature that hath life, and fowl that may fly above the earth in the
open firmament of heaven.</li>
<li>And God created great whales, and every living creature that
moveth, which the waters brought forth abundantly, after their
kind, and every winged fowl after his kind: and God saw that it was
good.</li>
<li>And God blessed them, saying, Be fruitful, and multiply, and fill
the waters in the seas, and let fowl multiply in the earth.</li>
<li>And the evening and the morning were the fifth day.</li>
<li>And God said, Let the earth bring forth the living creature after
his kind, cattle, and creeping thing, and beast of the earth after his
kind: and it was so.</li>
<li>And God made the beast of the earth after his kind, and cattle after
their kind, and every thing that creepeth upon the earth after his
kind: and God saw that it was good.</li>
<li>And God said, Let us make man in our image, after our likeness:
and let them have dominion over the fish of the sea, and over the
fowl of the air, and over the cattle, and over all the earth, and over
every creeping thing that creepeth upon the earth.</li>
<li>So God created man in his own image, in the image of God created
he him; male and female created he them.</li>
<li>And God blessed them, and God said unto them, Be fruitful, and
multiply, and replenish the earth, and subdue it: and have
dominion over the fish of the sea, and over the fowl of the air, and
over every living thing that moveth upon the earth.</li>
<li>And God said, Behold, I have given you every herb bearing seed,
which is upon the face of all the earth, and every tree, in the which
is the fruit of a tree yielding seed; to you it shall be for meat.</li>
<li>And to every beast of the earth, and to every fowl of the air, and to
every thing that creepeth upon the earth, wherein there is life, I have
given every green herb for meat: and it was so.</li>
<li>And God saw every thing that he had made, and, behold, it was
very good. And the evening and the morning were the sixth day.</li>
</ol>
</p>
]]
|
local example = {}
example.title = "Panel"
example.category = "Object Demonstrations"
function example.func(loveframes, centerarea)
local frame = loveframes.create("frame")
frame:setName("Panel")
frame:setSize(210, 85)
frame:centerWithinArea(unpack(centerarea))
local panel = loveframes.create("panel", frame)
panel:setPosition(5, 30)
end
return example
|
local ThemeColor = LoadModule('Theme.Colors.lua')
return Def.ActorFrame {
InitCommand = function(self)
self
:Center()
:sleep(4)
end,
Def.Quad {
InitCommand = function(self)
self
:SetSize(SCREEN_WIDTH, SCREEN_HEIGHT)
:diffuse(color('#000000'))
:diffusealpha(0)
end,
StartTransitioningCommand = function(self)
self
:easeoutexpo(1)
:diffusealpha(0.5)
end,
},
Def.Quad {
InitCommand = function(self)
self
:SetSize(SCREEN_WIDTH * 1.5, 206)
:diffuse(ColorLightTone(ThemeColor.Red))
:skewx(-0.5)
:cropright(1)
end,
StartTransitioningCommand = function(self)
self
:easeinoutexpo(0.5)
:cropright(0)
:sleep(3.5)
:easeinoutexpo(0.5)
:cropleft(1)
end,
},
Def.Quad {
InitCommand = function(self)
self
:SetSize(SCREEN_WIDTH * 1.5, 192)
:diffuse(ColorDarkTone(ThemeColor.Red))
:diffusebottomedge(ColorDarkTone(ColorDarkTone(ThemeColor.Red)))
:skewx(-0.5)
:cropright(1)
end,
StartTransitioningCommand = function(self)
self
:easeinoutexpo(0.5)
:cropright(0)
:sleep(3.5)
:easeinoutexpo(0.5)
:cropleft(1)
end,
},
Def.BitmapText {
Font = '_xiaxide 80px',
Text = 'FAILED',
InitCommand = function(self)
self
:diffuse(ThemeColor.White)
:blend('add')
:diffusealpha(0)
:addx(-50)
:addy(20)
:zoom(2)
end,
StartTransitioningCommand = function(self)
self
:sleep(0.25)
:easeoutexpo(0.25)
:addx(40)
:diffusealpha(0.5)
:linear(3)
:addx(20)
:easeinexpo(0.25)
:addx(40)
:diffusealpha(0)
end,
},
Def.Sound {
File = THEME:GetPathS(Var('LoadingScreen'), 'failed'),
StartTransitioningCommand = function(self)
self:play()
end,
},
}
|
local ConfigCompiler
do
local _class_0
local _base_0 = {
filters = {
pg = function(val)
local user, password, host, db
local _exp_0 = type(val)
if "table" == _exp_0 then
db = assert(val.database, "missing database name")
user, password, host, db = val.user or "postgres", val.password or "", val.host or "127.0.0.1", db
elseif "string" == _exp_0 then
user, password, host, db = val:match("^postgres://(.*):(.*)@(.*)/(.*)$")
end
if not (user) then
error("failed to create postgres connect string")
end
return ("%s dbname=%s user=%s password=%s"):format(host, db, user, password)
end
},
wrap_environment = function(self, env)
return setmetatable({ }, {
__index = function(self, key)
local v = os.getenv("LAPIS_" .. key:upper())
if v ~= nil then
return v
end
return env[key:lower()]
end
})
end,
add_config_header = function(self, compiled, env)
local header
do
local name = env._name
if name then
header = "env LAPIS_ENVIRONMENT=" .. tostring(name) .. ";\n"
else
header = "env LAPIS_ENVIRONMENT;\n"
end
end
return header .. compiled
end,
compile_config = function(self, config, env, opts)
if env == nil then
env = { }
end
if opts == nil then
opts = { }
end
local wrapped = opts.os_env == false and env or self:wrap_environment(env)
local out = config:gsub("(${%b{}})", function(w)
local name = w:sub(4, -3)
local filter_name, filter_arg = name:match("^(%S+)%s+(.+)$")
do
local filter = self.filters[filter_name]
if filter then
local value = wrapped[filter_arg]
if value == nil then
return w
else
return filter(value)
end
else
local value = wrapped[name]
if value == nil then
return w
else
return value
end
end
end
end)
if opts.header == false then
return out
else
return self:add_config_header(out, env)
end
end,
compile_etlua_config = function(self, config, env, opts)
if env == nil then
env = { }
end
if opts == nil then
opts = { }
end
local etlua = require("etlua")
local wrapped = opts.os_env == false and env or self:wrap_environment(env)
local template = assert(etlua.compile(config))
local out = template(wrapped)
if opts.header == false then
return out
else
return self:add_config_header(out, env)
end
end
}
_base_0.__index = _base_0
_class_0 = setmetatable({
__init = function() end,
__base = _base_0,
__name = "ConfigCompiler"
}, {
__index = _base_0,
__call = function(cls, ...)
local _self_0 = setmetatable({}, _base_0)
cls.__init(_self_0, ...)
return _self_0
end
})
_base_0.__class = _class_0
ConfigCompiler = _class_0
end
return {
ConfigCompiler = ConfigCompiler
}
|
local WorldEntity = require "njli.ui.worldentity"
local YappyBirdWorldEntity = {}
YappyBirdWorldEntity.__index = YappyBirdWorldEntity
local json = require('json')
setmetatable(YappyBirdWorldEntity, {
__index = WorldEntity,
__call = function (cls, ...)
local self = setmetatable({}, cls)
WorldEntity.create(self, ...)
self:create(...)
return self
end,
})
function YappyBirdWorldEntity:className()
return "YappyBirdWorldEntity"
end
function YappyBirdWorldEntity:class()
return self
end
function YappyBirdWorldEntity:superClass()
return WorldEntity
end
function YappyBirdWorldEntity:destroy()
YappyBirdWorldEntity.__gc(self)
WorldEntity.destroy(self)
end
function YappyBirdWorldEntity:create(init)
if init then
end
end
function YappyBirdWorldEntity:__gc()
end
function YappyBirdWorldEntity:__tostring()
return json:stringify(self)
end
function YappyBirdWorldEntity:load()
WorldEntity.load(self)
end
function YappyBirdWorldEntity:unLoad()
WorldEntity.unLoad(self)
end
function YappyBirdWorldEntity:startStateMachine()
WorldEntity.startStateMachine(self)
end
function YappyBirdWorldEntity:enter()
WorldEntity.enter(self)
end
function YappyBirdWorldEntity:update(timeStep)
WorldEntity.update(self, timeStep)
end
function YappyBirdWorldEntity:exit()
WorldEntity.exit(self)
end
function YappyBirdWorldEntity:onMessage(message)
WorldEntity.onMessage(self, message)
end
function YappyBirdWorldEntity:touchDown(touches)
WorldEntity.touchDown(self, touches)
end
function YappyBirdWorldEntity:touchUp(touches)
WorldEntity.touchUp(self, touches)
end
function YappyBirdWorldEntity:touchMove(touches)
WorldEntity.touchMove(self, touches)
end
function YappyBirdWorldEntity:touchCancelled(touches)
WorldEntity.touchCancelled(self, touches)
end
function YappyBirdWorldEntity:renderHUD()
WorldEntity.renderHUD(self)
end
function YappyBirdWorldEntity:keyboardShow()
WorldEntity.keyboardShow(self)
end
function YappyBirdWorldEntity:keyboardCancel()
WorldEntity.keyboardCancel(self)
end
function YappyBirdWorldEntity:keyboardReturn(text)
WorldEntity.keyboardReturn(self, text)
end
function YappyBirdWorldEntity:receivedMemoryWarning()
WorldEntity.receivedMemoryWarning(self)
end
function YappyBirdWorldEntity:pause()
WorldEntity.pause(self)
end
function YappyBirdWorldEntity:unPause()
WorldEntity.unPause(self)
end
return YappyBirdWorldEntity
|
DefineClass.MissionGoal = {
__parents = { "MsgObj" },
colony_approval_sol = false,
popup_intro = false,
popup_early = "Evaluation_Early_Reminder",
popup_late = "Evaluation_Late_Reminder",
popup_final_fail = false,
popup_final_good = false,
popup_final_great = false,
objective = "", --T{"<target> @ <timeout>"},
score_at_target = 2000,
score = false,
}
function MissionGoal:MsgNewDay(day)
local sponsor = GetMissionSponsor()
local timeout = sponsor.goal_timeout
local target = sponsor.goal_target
local count = self:GetProgress()
if self.colony_approval_sol and day == self.colony_approval_sol + 3 and day < timeout then
-- introduction
ShowPopupNotification(self.popup_intro, {target = target, timeout = timeout, objective = T{self.objective, {count = count, target = target, timeout = timeout}}})
elseif self.colony_approval_sol and day == self.colony_approval_sol + 20 and day < timeout then
-- early warning
ShowPopupNotification(self.popup_early, {SolsRemainingToTargetSol = timeout - day, objective = T{self.objective, {count = count, target = target, timeout = timeout}}}) -- <objective>
elseif day == timeout - 10 then
-- late warning
ShowPopupNotification(self.popup_late, {SolsRemainingToTargetSol = timeout - day, objective = T{self.objective, {count = count, target = target, timeout = timeout}}}) -- <objective>
elseif day == timeout then
-- final eval
local result = "great"
if count < MulDivRound(target, 50, 100) then
result = "fail"
elseif count < MulDivRound(target, 110, 100) then
result = "good"
end
local id = self["popup_final_" .. result]
local score = MulDivRound(self.score_at_target, count, target)
local cr = CalcChallengeRating()
local challenge_score = MulDivRound(score, cr, 100)
ShowPopupNotification(id, {count = count, target = target, Score = challenge_score })
self.score = score
Msg("MissionEvaluationDone")
end
end
function MissionGoal:MsgColonyApprovalPassed()
self.colony_approval_sol = UICity.day
end
function MissionGoal:GetProgress()
assert(false, "GetProgress not implemented for goal " .. self.class)
return 0
end
--------------------------------------------------
DefineClass.MG_Colonists = {
__parents = { "MissionGoal" },
popup_intro = "Evaluation_Colonists_Beginning",
popup_final_fail = "Evaluation_Colonist_Bad_Fail",
popup_final_good = "Evaluation_Colonist_Good",
popup_final_great = "Evaluation_Colonist_Great",
objective = T{8058, "Have <target> Colonists at Sol <timeout>. Current Colonists Count: <count>"},
}
function MG_Colonists:GetProgress()
return #(UICity.labels.Colonist or empty_table)
end
DefineClass.MG_Martianborn = {
__parents = { "MissionGoal" },
popup_intro = "Evaluation_Martianborn_Beginning",
popup_final_fail = "Evaluation_Matianborn_BadFail",
popup_final_good = "Evaluation_Matianborn_Good",
popup_final_great = "Evaluation_Matianborn_Great",
objective = T{8059, "Have <target> Martianborn Colonists at Sol <timeout>. Current Martianborn Count: <count>"},
}
function MG_Martianborn:GetProgress()
local count = 0
for _, dome in ipairs(UICity.labels.Dome or empty_table) do
count = count + #(dome.labels.Martianborn or empty_table)
end
return count
end
DefineClass.MG_TechResearch = {
__parents = { "MissionGoal" },
popup_intro = "Evaluation_Tech_Beginning",
popup_final_fail = "Evaluation_Tech_BadFail",
popup_final_good = "Evaluation_Tech_Good",
popup_final_great = "Evaluation_Tech_Great",
objective = T{8060, "Have <target> Technologies researched at Sol <timeout>. Currently Researched Technologies: <count>"},
researched = 0,
}
function MG_TechResearch:MsgTechResearched(tech_id, city, first_time)
if first_time then
self.researched = self.researched + 1
end
end
function MG_TechResearch:GetProgress()
return self.researched
end
DefineClass.MG_Anomalies = {
__parents = { "MissionGoal" },
popup_intro = "Evaluation_Anomalies_Beginning",
popup_final_fail = "Evaluation_Anomalies_BadFail",
popup_final_good = "Evaluation_Anomalies_Good",
popup_final_great = "Evaluation_Anomalies_Great",
objective = T{8061, "Analyse <target> Anomalies at Sol <timeout>. Anomalies Analysed: <count>"},
analyzed = 0,
}
function MG_Anomalies:MsgAnomalyAnalyzed()
self.analyzed = self.analyzed + 1
end
function MG_Anomalies:GetProgress()
return self.analyzed
end
DefineClass.MG_RareExport = {
__parents = { "MissionGoal" },
popup_intro = "Evaluation_Export_Beginning",
popup_final_fail = "Evaluation_Export_BadFail",
popup_final_good = "Evaluation_Export_Good",
popup_final_great = "Evaluation_Export_Great",
objective = T{8062, "Export <target> Rare Metals at Sol <timeout>. Rare Metals Exported: <count>"},
amount = 0,
}
function MG_RareExport:MsgMarkPreciousMetalsExport(city, amount)
self.amount = self.amount + amount
end
function MG_RareExport:GetProgress()
return self.amount / const.ResourceScale
end
|
function ispali(str)
i, j = 1, #str
while i < j do
if string.byte(str, i) ~= string.byte(str, j) then
return false
end
i, j = i + 1, j - 1
end
return true
end
print(ispali("step on no pets"))
print(ispali("banana"))
|
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
--]]
local ITEM = Clockwork.item:New("clothes_base");
ITEM.name = "ItemMedicUniform";
ITEM.uniqueID = "medic_uniform";
ITEM.group = "group03m";
ITEM.weight = 3;
ITEM.access = "m";
ITEM.business = true;
ITEM.protection = 0.1;
ITEM.description = "ItemMedicUniformDesc";
-- Called when a replacement is needed for a player.
function ITEM:GetReplacement(player)
if (string.lower(player:GetModel()) == "models/humans/group01/jasona.mdl") then
return "models/humans/group03m/male_02.mdl";
end;
end;
ITEM:Register();
|
dofile("/data/local/tmp/c/engine/BasicEngine.lua") --
Businesses = "遍历测试"
Edition = "1.0.0"
|
TestMisc = {}
function TestMisc:testRemove()
local a = BasicClassA:New()
a:Remove()
lu.assertEquals( BasicClassA:GetInstances()[a], nil )
collectgarbage( "collect" )
end
function TestMisc:testRemoveIndex()
local a = BasicClassA:New()
a:Remove()
lu.assertEquals( BasicClassA:GetInstances()[a], nil )
local b, err = pcall( function()
local x = a.Initialize
end )
lu.assertEquals( b, false )
lu.assertStrContains( err, "Attempt to index a removed class" )
end
function TestMisc:testRemoveNewIndex()
local a = BasicClassA:New()
a:Remove()
lu.assertEquals( BasicClassA:GetInstances()[a], nil )
local b, err = pcall( function()
a.xyz = 3
end )
lu.assertEquals( b, false )
lu.assertStrContains( err, "Attempt to index a removed class" )
end
function TestMisc:testGCLeaks()
local a = BasicClassA:New()
a = nil
collectgarbage( "collect" )
local i = 0
for k, v in pairs( BasicClassA:GetInstances() ) do
i = i +1
end
lu.assertEquals( i, 0 )
end
function TestMisc:testIsA()
local a = BasicClassA:New()
lu.assertEquals( lava.is_a(a, BasicClassA), true )
end
function TestMisc:testOneClassPerFile()
local b, err = pcall( function()
lava.loadClass "tests/classes/malformed_two_classes.lua"
end )
lu.assertEquals( b, false )
lu.assertStrContains( err, "Class definitions are restricted to 1 class per file/function" )
lava.removeClass( MalformedA )
end
function TestMisc:testMissingConstructor()
local b, err = pcall( function()
MalformedMissingConstructor:New()
end )
lu.assertEquals( b, false )
lu.assertStrContains( err, "Class MalformedMissingConstructor is missing a constructor" )
end
function TestMisc:testVarnameConflict()
_G.MalformedNameConflict = true
local b, err = pcall( function()
lava.loadClass "tests/classes/malformed_name_conflict.lua"
end )
lu.assertEquals( b, false )
lu.assertStrContains( err, "Class name conflict! Found another variable at" )
end
function TestMisc:testUserDefinedFinalizer()
if not UserFinalizer then
local b, err = pcall( function()
lava.loadClass "tests/classes/user_defined_finalizer.lua"
end )
lu.assertEquals( b, true )
end
lu.assertEquals( _G.userFinalizerSingleton, UserFinalizer:New() )
end
|
Keys = {
["ESC"] = 322, ["F1"] = 288, ["F2"] = 289, ["F3"] = 170, ["F5"] = 166, ["F6"] = 167, ["F7"] = 168, ["F8"] = 169, ["F9"] = 56, ["F10"] = 57,
["~"] = 243, ["1"] = 157, ["2"] = 158, ["3"] = 160, ["4"] = 164, ["5"] = 165, ["6"] = 159, ["7"] = 161, ["8"] = 162, ["9"] = 163, ["-"] = 84, ["="] = 83, ["BACKSPACE"] = 177,
["TAB"] = 37, ["Q"] = 44, ["W"] = 32, ["E"] = 38, ["R"] = 45, ["T"] = 245, ["Y"] = 246, ["U"] = 303, ["P"] = 199, ["["] = 39, ["]"] = 40, ["ENTER"] = 18,
["CAPS"] = 137, ["A"] = 34, ["S"] = 8, ["D"] = 9, ["F"] = 23, ["G"] = 47, ["H"] = 74, ["K"] = 311, ["L"] = 182,
["LEFTSHIFT"] = 21, ["Z"] = 20, ["X"] = 73, ["C"] = 26, ["V"] = 0, ["B"] = 29, ["N"] = 249, ["M"] = 244, [","] = 82, ["."] = 81,
["LEFTCTRL"] = 36, ["LEFTALT"] = 19, ["SPACE"] = 22, ["RIGHTCTRL"] = 70,
["HOME"] = 213, ["PAGEUP"] = 10, ["PAGEDOWN"] = 11, ["DELETE"] = 178,
["LEFT"] = 174, ["RIGHT"] = 175, ["TOP"] = 27, ["DOWN"] = 173,
["NENTER"] = 201, ["N4"] = 108, ["N5"] = 60, ["N6"] = 107, ["N+"] = 96, ["N-"] = 97, ["N7"] = 117, ["N8"] = 61, ["N9"] = 118
}
ESX = nil
Config = {
Commands = true,
StatusBars = true,
Key = false
}
Citizen.CreateThread(function()
while ESX == nil do
TriggerEvent('esx:getSharedObject', function(obj) ESX = obj end)
Citizen.Wait(1)
end
end)
RegisterNetEvent('esx-qalle-needs:openMenu')
AddEventHandler('esx-qalle-needs:openMenu', function()
OpenNeedsMenu()
end)
if Config.Commands then
RegisterNetEvent('pee')
AddEventHandler('pee', function()
if Config.StatusBars then
TriggerEvent('esx_status:getStatus', 'pee', function(status)
if status.val < 200000 then
TriggerServerEvent('esx-qalle-needs:add', 'pee', 1000000)
local hashSkin = GetHashKey("mp_m_freemode_01")
if GetEntityModel(PlayerPedId()) == hashSkin then
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'pee', 'male')
else
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'pee', 'female')
end
else
ESX.ShowNotification('~r~Vous n\'êtes pas dans le besoin')
end
end)
else
local hashSkin = GetHashKey("mp_m_freemode_01")
if GetEntityModel(PlayerPedId()) == hashSkin then
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'pee', 'male')
else
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'pee', 'female')
end
end
end, false)
RegisterNetEvent('shit')
AddEventHandler('shit', function()
if Config.StatusBars then
TriggerEvent('esx_status:getStatus', 'shit', function(status)
if status.val < 200000 then
TriggerServerEvent('esx-qalle-needs:add', 'shit', 1000000)
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'poop')
else
ESX.ShowNotification('~r~Vous n\'êtes pas dans le besoin')
end
end)
else
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'poop')
end
end, false)
--else
--Citizen.CreateThread(function()
--while true do
--Citizen.Wait(5)
--if IsControlJustReleased(0, 170) then
--OpenNeedsMenu()
--end
--end
--end)
end
function OpenNeedsMenu()
ESX.UI.Menu.Open(
'default', GetCurrentResourceName(), 'esx-qalle-needsmenu',
{
title = 'Mes besoins',
align = 'top-right',
elements = {
{ label = 'Faire petit besoin', value = 'pee' },
{ label = 'Faire gros besoin', value = 'poop' }
}
},
function(data, menu)
local value = data.current.value
if value == 'pee' then
menu.close()
if Config.StatusBars then
TriggerEvent('esx_status:getStatus', 'pee', function(status)
if status.val < 200000 then
TriggerServerEvent('esx-qalle-needs:add', 'pee', 1000000)
local hashSkin = GetHashKey("mp_m_freemode_01")
if GetEntityModel(PlayerPedId()) == hashSkin then
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'pee', 'male')
else
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'pee', 'female')
end
else
ESX.ShowNotification('~r~Tu n\'a pas envie de faire tes besoins.')
end
end)
else
local hashSkin = GetHashKey("mp_m_freemode_01")
if GetEntityModel(PlayerPedId()) == hashSkin then
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'pee', 'male')
else
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'pee', 'female')
end
end
elseif value == 'poop' then
menu.close()
if Config.StatusBars then
TriggerEvent('esx_status:getStatus', 'shit', function(status)
if status.val < 200000 then
--TriggerServerEvent('esx-qalle-needs:add', 'shit', 1000000)
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'poop')
else
ESX.ShowNotification('~r~Tu n\'a pas envie de faire tes besoins.')
end
end)
else
TriggerServerEvent('esx-qalle-needs:sync', GetPlayerServerId(PlayerId()), 'poop')
end
end
end,
function(data, menu)
menu.close()
end)
end
RegisterNetEvent('esx-qalle-needs:syncCL')
AddEventHandler('esx-qalle-needs:syncCL', function(ped, need, sex)
if need == 'pee' then
Pee(ped, sex)
else
Poop(ped)
end
end)
function Pee(ped, sex)
local Player = ped
local PlayerPed = GetPlayerPed(GetPlayerFromServerId(ped))
local particleDictionary = "core"
local particleName = "ent_amb_peeing"
local animDictionary = 'misscarsteal2peeing'
local animName = 'peeing_loop'
RequestNamedPtfxAsset(particleDictionary)
while not HasNamedPtfxAssetLoaded(particleDictionary) do
Citizen.Wait(0)
end
RequestAnimDict(animDictionary)
while not HasAnimDictLoaded(animDictionary) do
Citizen.Wait(0)
end
RequestAnimDict('missfbi3ig_0')
while not HasAnimDictLoaded('missfbi3ig_0') do
Citizen.Wait(1)
end
if sex == 'male' then
SetPtfxAssetNextCall(particleDictionary)
local bone = GetPedBoneIndex(PlayerPed, 11816)
local heading = GetEntityPhysicsHeading(PlayerPed)
TaskPlayAnim(PlayerPed, animDictionary, animName, 8.0, -8.0, -1, 0, 0, false, false, false)
local effect = StartParticleFxLoopedOnPedBone(particleName, PlayerPed, 0.0, 0.2, 0.0, -140.0, 0.0, 0.0, bone, 2.5, false, false, false)
Wait(3500)
StopParticleFxLooped(effect, 0)
ClearPedTasks(PlayerPed)
else
SetPtfxAssetNextCall(particleDictionary)
bone = GetPedBoneIndex(PlayerPed, 11816)
local heading = GetEntityPhysicsHeading(PlayerPed)
TaskPlayAnim(PlayerPed, 'missfbi3ig_0', 'shit_loop_trev', 8.0, -8.0, -1, 0, 0, false, false, false)
local effect = StartParticleFxLoopedOnPedBone(particleName, PlayerPed, 0.0, 0.0, -0.55, 0.0, 0.0, 20.0, bone, 2.0, false, false, false)
Wait(3500)
Citizen.Wait(100)
StopParticleFxLooped(effect, 0)
ClearPedTasks(PlayerPed)
end
end
function Poop(ped)
local Player = ped
local PlayerPed = GetPlayerPed(GetPlayerFromServerId(ped))
local particleDictionary = "scr_amb_chop"
local particleName = "ent_anim_dog_poo"
local animDictionary = 'missfbi3ig_0'
local animName = 'shit_loop_trev'
RequestNamedPtfxAsset(particleDictionary)
while not HasNamedPtfxAssetLoaded(particleDictionary) do
Citizen.Wait(0)
end
RequestAnimDict(animDictionary)
while not HasAnimDictLoaded(animDictionary) do
Citizen.Wait(0)
end
SetPtfxAssetNextCall(particleDictionary)
--gets bone on specified ped
bone = GetPedBoneIndex(PlayerPed, 11816)
--animation
TaskPlayAnim(PlayerPed, animDictionary, animName, 8.0, -8.0, -1, 0, 0, false, false, false)
--2 effets for more shit
effect = StartParticleFxLoopedOnPedBone(particleName, PlayerPed, 0.0, 0.0, -0.6, 0.0, 0.0, 20.0, bone, 2.0, false, false, false)
Wait(3500)
effect2 = StartParticleFxLoopedOnPedBone(particleName, PlayerPed, 0.0, 0.0, -0.6, 0.0, 0.0, 20.0, bone, 2.0, false, false, false)
Wait(1000)
StopParticleFxLooped(effect, 0)
Wait(10)
StopParticleFxLooped(effect2, 0)
end
RegisterNetEvent('NB:openMenuNeeds')
AddEventHandler('NB:openMenuNeeds', function()
OpenNeedsMenu()
end)
|
-- JWT verification module
-- Adapted version of x25/luajwt for Kong. It provides various improvements and
-- an OOP architecture allowing the JWT to be parsed and verified separately,
-- avoiding multiple parsings.
--
-- @see https://github.com/x25/luajwt
local BasePlugin = require "kong.plugins.base_plugin"
local jwt_decoder = require "kong.plugins.jwt.jwt_parser"
local type = type
local time = ngx.time
local re_gmatch = ngx.re.gmatch
local error = error
local insert = table.insert
local tostring = tostring
local setmetatable = setmetatable
local getmetatable = getmetatable
local JwtValidationHandler = BasePlugin:extend()
JwtValidationHandler.PRIORITY = 100
local err_list_mt = {}
function table_to_string(tbl)
local result = ""
for k, v in pairs(tbl) do
-- Check the key type (ignore any numerical keys - assume its an array)
if type(k) == "string" then
result = result.."[\""..k.."\"]".."="
end
-- Check the value type
if type(v) == "table" then
result = result..table_to_string(v)
elseif type(v) == "boolean" then
result = result..tostring(v)
else
result = result.."\""..v.."\""
end
result = result..","
end
-- Remove leading commas from the result
if result ~= "" then
result = result:sub(1, result:len()-1)
end
return result
end
local function add_error(errors, k, v)
if not errors then
errors = {}
end
if errors and errors[k] then
if getmetatable(errors[k]) ~= err_list_mt then
errors[k] = setmetatable({errors[k]}, err_list_mt)
end
insert(errors[k], v)
else
errors[k] = v
end
return errors
end
--[[
JWT public interface
]]--
--- Verify id and exp claims
-- Claims are verified by type and a check.
-- @return A boolean indicating true if no errors zere found
-- @return A list of errors
local function verify_claims(claims)
local errors
local id = claims["id"]
if id == nil then
errors = add_error(errors, "id", "is not present")
elseif type(id) ~= "string" then
errors = add_error(errors, "id", "must be a string")
else
id = tonumber(id)
if id == nil then
errors = add_error(errors, "id", "is invalid. It must be a number represented as a string")
else
kong.service.request.set_header("x-user-id", id)
end
end
local profile_id = claims["profile"]
if profile_id == nil then
errors = add_error(errors, "profile", "is not present")
elseif type(profile_id) ~= "number" then
errors = add_error(errors, "profile", "must be a number")
else
kong.service.request.set_header("x-user-profile-id", profile_id)
end
local exp = claims["exp"]
if exp == nil then
errors = add_error(errors, "exp", "is not present")
elseif type(exp) ~= "number" then
errors = add_error(errors, "exp", "must be a number")
end
return errors == nil, errors
end
--- Retrieve a JWT in a request.
-- Checks for the JWT in the `Authorization` header.
-- @param conf Plugin configuration
-- @return token JWT token contained in request (can be a table) or nil
-- @return err
local function retrieve_token()
local authorization_header = kong.request.get_header("authorization")
if authorization_header then
local iterator, iter_err = re_gmatch(authorization_header, "\\s*[Bb]earer\\s+(.+)")
if not iterator then
return nil, iter_err
end
local m, err = iterator()
if err then
return nil, err
end
if m and #m > 0 then
return m[1]
end
end
end
local function do_authentication(conf)
-- Retrieve token
local token, err = retrieve_token()
if err then
kong.log.err(err)
return kong.response.exit(500, { message = "An unexpected error occurred" })
end
local token_type = type(token)
if token_type ~= "string" then
if token_type == "nil" then
return false, { status = 401, message = "Unauthorized" }
elseif token_type == "table" then
return false, { status = 401, message = "Multiple tokens provided" }
else
return false, { status = 401, message = "Unrecognizable token" }
end
end
-- Decode token
local jwt, err = jwt_decoder:new(token)
if err then
return false, { status = 401, message = "Bad token; " .. tostring(err) }
end
-- Verify algorithim
if jwt.header.alg ~= (conf.algorithm or "HS256") then
return false, {status = 403, message = "Invalid algorithm"}
end
-- Verify the JWT registered claims
local ok_claims, errors = verify_claims(jwt.claims)
if not ok_claims then
return false, { status = 401, message = "Token claims invalid: " .. table_to_string(errors) }
end
-- Verify expiration
local exp = jwt.claims["exp"]
if exp <= time() then
return false, { status = 403, message = "Token expired" }
end
local verified_signature = jwt:verify_signature(conf.signature_key)
if not verified_signature then
kong.log.err("Invalid signature")
return false, { status = 401, message = "Invalid token signature" }
end
return true
end
function JwtValidationHandler:new()
JwtValidationHandler.super.new(self, "jwt-validation")
end
function JwtValidationHandler:access(conf)
JwtValidationHandler.super.access(self)
-- check if preflight request and whether it should be authenticated
if kong.request.get_method() == "OPTIONS" then
return
end
local ok, err = do_authentication(conf)
if not ok then
return kong.response.exit(err.status, err.errors or { message = err.message })
end
end
return JwtValidationHandler
|
local tp = require "tprint"
local list = {
{item = "socks", price=10, qty=5, discount=0, note="nice and warm"},
{item = "hat", price=44, qty=33, discount=0.2, note="old fashioned"},
{item = "hat", price=60, qty=20, discount=0.1, note="stylish"},
{item = "gloves", price=55, qty=25, discount=0.4, note="made of wool"},
{item = "cardigan", price=255, qty=11, discount=0.1, note="a bit pricey"},
{item = "HAT", price=40, qty=25, discount=0.2, note="modern"},
{item = "Shoes", price=155, qty=4, discount=0, note="for running"},
{item = "hat", price=10, qty=50, discount=0, note="cheap"},
}
-- with option "sort" we specify how our data should be sorted
-- by default table is not sorted
-- rows maintain its natural order of their integer index
print(tp(list,{column={"item","note","price","discount","qty"}}), "\n")
-- note that sort can only be applied to columns that contain either strings or numbers,
-- unless you also provide a compare function
-- we can specify a single column to sort by
-- this assumes ascending order on column price
print(tp(list,{column={"item","note","price","discount","qty"},
sort="price"}), "\n")
-- however, we get more control by specifying columns by their key name
-- by adding suffix "<" or ">" to column name we can assign order
-- < ascending
-- > descending
-- if suffix is not provided then ascending order is assumed
-- descending for column "price"
print(tp(list,{column={"item","note","price","discount","qty"},
sort="price>"}), "\n")
-- we can provide table to sort by multiple columns
-- first sort ascending by column "item", then descending by "price"
print(tp(list,{column={"item","note","price","discount","qty"},
sort={"item<", "price>"}}), "\n")
-- by adding prefix "_" to column name,
-- we can specify to ignore string lower and upper case
print(tp(list,{column={"item","note","price","discount","qty"},
sort={"_item<", "price>"}}), "\n")
-- you can also specify custom compare function f
-- f(a,b) --> boolean
-- a,b are values of any type, so make sure to compare only compatible types
-- function should return true if a should come before b and false otherwise
print(tp(list,{column={"item","note","price","discount","qty"},
sortCmp = function(a,b) return a < b end,
sort={"_item<", "price>"}}), "\n")
local _, msg, err
-- example of invalid setting
function err()
print(tp(list,{column={"item","note","price","discount","qty"},
sort=false}), "\n")
end
_, msg = pcall(err)
print(msg)
-- example of invalid setting
-- only columns that are actually in data table are allowed
-- sorting calculated columns is not supported
function err()
print(tp(list,{column={"item","note","price","discount","qty"},
sort="missing"}), "\n")
end
_, msg = pcall(err)
print(msg)
|
-- Setting up the general settings
vim.o.encoding = "utf8"
vim.o.mouse = "a"
vim.o.clipboard = "unnamedplus"
vim.o.sw = 4
vim.o.expandtab = true
vim.o.smartindent = true
vim.o.number = true
vim.o.rnu = true
vim.o.nuw = 1
vim.o.wrap = false
vim.o.swapfile = false
vim.o.backup = false
vim.o.undodir = ConfigPath .. "/.undodir"
vim.o.undofile = true
vim.o.ignorecase = true
vim.o.incsearch = true
vim.o.cursorline = true
vim.o.colorcolumn = "120"
vim.cmd("highlight ColoColumn ctermbg=0 guibg=lightgrey")
vim.o.splitbelow = true
vim.o.splitright = true
|
ITEM.name = "King Arms MR"
ITEM.description = "Taiwanese reflex sight. T type sight."
ITEM.category = "Attachments"
ITEM.width = 1
ITEM.height = 1
ITEM.attachName = "md_reflex"
ITEM.model = "models/cw2/attachments/microt1.mdl"
ITEM.upgradeIcon = Material("materials/vgui/ui/stalker/weaponupgrades/sights.png")
ITEM.attachSlot = 1
--ITEM.busflag = "SPECIAL3"
ITEM.price = 8500
ITEM.repairCost = ITEM.price/100*1
ITEM.weight = 0.105
ITEM.img = ix.util.GetMaterial("cotz/ui/icons/attachment_reddot6.png")
|
player_state_addr = 0x000E;
player_state_dying = 6;
player_float_addr = 0x001D;
player_float_flagpole = 3;
player_page_addr = 0x006D;
player_horizpos_addr = 0x0086;
minimum_frames = 197;
emu.speedmode("maximum");
while true do
if (emu.framecount() > minimum_frames) then
--dead?
local dead = memory.readbyte(player_state_addr) == player_state_dying;
--flagpole?
local won = memory.readbyte(player_float_addr) == player_float_flagpole;
if (dead or won) then
local str = (dead and "died" or "won");
local x_pos = math.floor(memory.readbyteunsigned(player_page_addr)*256 + memory.readbyteunsigned(player_horizpos_addr));
local framecount = emu.framecount();
io.write(str, " ", x_pos, " ", framecount, "\n");
os.exit(0);
end;
end;
emu.frameadvance();
end
|
corellian_butterfly_defender = Creature:new {
objectName = "@mob/creature_names:corellian_butterfly_defender",
socialGroup = "butterfly",
faction = "",
level = 18,
chanceHit = 0.32,
damageMin = 210,
damageMax = 220,
baseXp = 1257,
baseHAM = 2000,
baseHAMmax = 2400,
armor = 0,
resists = {5,115,-1,-1,-1,-1,-1,-1,-1},
meatType = "meat_insect",
meatAmount = 16,
hideType = "hide_scaley",
hideAmount = 16,
boneType = "",
boneAmount = 0,
milk = 0,
tamingChance = 0.25,
ferocity = 0,
pvpBitmask = AGGRESSIVE + ATTACKABLE + ENEMY,
creatureBitmask = PACK + HERD,
optionsBitmask = AIENABLED,
diet = CARNIVORE,
templates = {"object/mobile/corellian_butterfly_defender.iff"},
hues = { 0, 1, 2, 3, 4, 5, 6, 7 },
controlDeviceTemplate = "object/intangible/pet/corellian_butterfly_hue.iff",
scale = 1.2,
lootGroups = {},
weapons = {"creature_spit_small_yellow"},
conversationTemplate = "",
attacks = {
{"",""},
{"intimidationattack",""}
}
}
CreatureTemplates:addCreatureTemplate(corellian_butterfly_defender, "corellian_butterfly_defender")
|
---@diagnostic disable-next-line: unused-local
return function(client, bufnr)
-- Enable completion triggered by <c-x><c-o>
vim.opt.omnifunc = 'v:lua.vim.lsp.omnifunc'
-- Enable lsp_signature
require('lsp_signature').on_attach()
if client.name == 'tsserver' or 'jsonls' then
client.resolved_capabilities.document_formatting = false
client.resolved_capabilities.document_range_formatting = false
end
if client.name == 'tsserver' then
local ts_utils = require 'nvim-lsp-ts-utils'
ts_utils.setup {
debug = false,
disable_commands = false,
enable_import_on_completion = true,
-- import all
import_all_timeout = 5000, -- ms
-- lower numbers indicate higher priority
import_all_priorities = {
same_file = 1, -- add to existing import statement
local_files = 2, -- git files or files with relative path markers
buffer_content = 3, -- loaded buffer content
buffers = 4, -- loaded buffer names
},
import_all_scan_buffers = 100,
import_all_select_source = false,
-- eslint
eslint_enable_code_actions = false,
eslint_enable_disable_comments = true,
eslint_bin = 'eslint_d',
eslint_enable_diagnostics = false,
eslint_opts = {},
-- formatting
enable_formatting = false,
formatter = 'prettier',
formatter_opts = {},
-- update imports on file move
update_imports_on_move = false,
require_confirmation_on_move = false,
watch_dir = nil,
-- filter diagnostics
filter_out_diagnostics_by_severity = {},
filter_out_diagnostics_by_code = {},
-- inlay hints
auto_inlay_hints = true,
inlay_hints_highlight = 'Comment',
}
-- required to fix code action ranges and filter diagnostics
ts_utils.setup_client(client)
-- no default maps, so you may want to define some here
local opts = { silent = true }
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gs', ':TSLspOrganize<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', ':TSLspRenameFile<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gi', ':TSLspImportAll<CR>', opts)
end
vim.cmd [[augroup Format]]
vim.cmd [[autocmd! * <buffer>]]
vim.cmd [[autocmd BufWritePre <buffer> lua vim.lsp.buf.formatting_sync()]]
vim.cmd [[augroup END]]
end
|
--
local int = int
local abs = abs
local min = min
local max = max
local sin = sin
local cos = cos
local task = task
local Color = Color
local New = New
local IsValid = IsValid
local PlaySound = PlaySound
local SetImageState = SetImageState
local Render = Render
local Del = Del
local ObjList = ObjList
local KeyIsDown = KeyIsDown
local Dist = Dist
local Angle = Angle
LoadPS('player_death_ef', 'THlib\\player\\player_death_ef.psi', 'parimg1')
LoadPS('graze', 'THlib\\player\\graze.psi', 'parimg6')
LoadImageFromFile('player_spell_mask', 'THlib\\player\\spellmask.png')
---
---@class THlib.player_class:object
player_class = Class(object)
function player_class:init()
self.group = GROUP_PLAYER
self.y = -176
self.supportx = 0
self.supporty = self.y
self.hspeed = 4
self.lspeed = 2
self.collect_line = 96
self.slow = 0
self.layer = LAYER_PLAYER
self.lr = 1
self.lh = 0
self.fire = 0
self.lock = false
self.dialog = false--是否处于对话状态
self.nextshoot = 0
self.nextspell = 0
self.A = 0--|自机判定大小
self.B = 0--|
--self.nextcollect=0--HZC收点系统
self.death = 0--miss之后的计时器,100->0
self.protect = 120
lstg.player = self
player = self
self.grazer = New(grazer)
if not lstg.var.init_player_data then
error('Player data has not been initialized. (Call function item.PlayerInit.)')
end
self.support = int(lstg.var.power / 100)--子机数量
self.sp = {}
self.time_stop = false
end
function player_class:frame()
--find target
if ((not IsValid(self.target)) or (not self.target.colli)) then
player_class.findtarget(self)
end
if not KeyIsDown 'shoot' then
self.target = nil
end
--
local dx = 0
local dy = 0
local v = self.hspeed
if (self.death == 0 or self.death > 90) and (not self.lock) and not (self.time_stop) then
--slow
if KeyIsDown 'slow' then
self.slow = 1
else
self.slow = 0
end
--shoot and spell
if not self.dialog then
if KeyIsDown 'shoot' and self.nextshoot <= 0 then
self.class.shoot(self)
end
if KeyIsDown 'spell' and self.nextspell <= 0 and lstg.var.bomb > 0 and not lstg.var.block_spell then
--spell
item.PlayerSpell()
lstg.var.bomb = lstg.var.bomb - 1
self.class.spell(self)
self.death = 0
end
else
self.nextshoot = 15
self.nextspell = 30--每隔15帧处理一次shoot,每隔30帧处理一次spell
end
--move
if self.death == 0 and not self.lock then
if self.slowlock then
self.slow = 1
end
if self.slow == 1 then
v = self.lspeed
end
if KeyIsDown 'up' then
dy = dy + 1
end
if KeyIsDown 'down' then
dy = dy - 1
end
if KeyIsDown 'left' then
dx = dx - 1
end
if KeyIsDown 'right' then
dx = dx + 1
end
if dx * dy ~= 0 then
v = v * SQRT2_2
end--斜向移动时除以根号2
self.x = self.x + v * dx
self.y = self.y + v * dy
--限位
self.x = max(min(self.x, lstg.world.pr - 8), lstg.world.pl + 8)
self.y = max(min(self.y, lstg.world.pt - 32), lstg.world.pb + 16)
end
--fire
if KeyIsDown 'shoot' and not self.dialog then
self.fire = self.fire + 0.16
else
self.fire = self.fire - 0.16
end
if self.fire < 0 then
self.fire = 0
end
if self.fire > 1 then
self.fire = 1
end
--收点
if self.y > self.collect_line then
for i, o in ObjList(GROUP_ITEM) do
o.attract = 8
end
--HZC收点系统
-- else
-- if self.y>self.collect_line then
-- for i,o in ObjList(GROUP_ITEM) do o.attract=8 self.item=i
-- end
-- if self.nextcollect==0 then
-- item.playercollect(self.item)
-- end
-- self.item=0
-- self.nextcollect=60
else
if KeyIsDown 'slow' then
for i, o in ObjList(GROUP_ITEM) do
if Dist(self, o) < 48 then
o.attract = max(o.attract, 3)
end
end
else
for i, o in ObjList(GROUP_ITEM) do
if Dist(self, o) < 24 then
o.attract = max(o.attract, 3)
end
end
end
end
elseif self.death == 90 then
if self.time_stop then
self.death = self.death - 1
end--不受时停影响
item.PlayerMiss()
--反色圆效果
self.deathee = {}
self.deathee[1] = New(deatheff, self.x, self.y, 'first')
self.deathee[2] = New(deatheff, self.x, self.y, 'second')
--粒子效果
New(player_death_ef, self.x, self.y)
elseif self.death == 84 then
if self.time_stop then
self.death = self.death - 1
end
self.hide = true
self.support = int(lstg.var.power / 100)
elseif self.death == 50 then
if self.time_stop then
self.death = self.death - 1
end
self.x = 0
self.supportx = 0
self.y = -236
self.supporty = -236
self.hide = false
New(bullet_deleter, self.x, self.y)--消弹
elseif self.death < 50 and not (self.lock) and not (self.time_stop) then
--此处没有self.death-1,会被时停影响
self.y = -176 - 1.2 * self.death--从下向上出现
end
--img
--加上time_stop的限制来实现图像时停
if not (self.time_stop) then
--根据lr决定显示哪一帧
if abs(self.lr) == 1 then
self.img = self.imgs[int(self.ani / 8) % 8 + 1]
elseif self.lr == -6 then
self.img = self.imgs[int(self.ani / 8) % 4 + 13]
elseif self.lr == 6 then
self.img = self.imgs[int(self.ani / 8) % 4 + 21]
elseif self.lr < 0 then
self.img = self.imgs[7 - self.lr]
elseif self.lr > 0 then
self.img = self.imgs[15 + self.lr]
end
--设置判定(碰撞盒大小)
self.a = self.A
self.b = self.B
--计算lr
self.lr = self.lr + dx;
if self.lr > 6 then
self.lr = 6
end
if self.lr < -6 then
self.lr = -6
end
if self.lr == 0 then
self.lr = self.lr + dx
end
if dx == 0 then
if self.lr > 1 then
self.lr = self.lr - 1
end
if self.lr < -1 then
self.lr = self.lr + 1
end
end
--低速过渡状态,用于子机位置过渡、判定点显示过渡
self.lh = self.lh + (self.slow - 0.5) * 0.3
if self.lh < 0 then
self.lh = 0
end
if self.lh > 1 then
self.lh = 1
end
if self.nextshoot > 0 then
self.nextshoot = self.nextshoot - 1
end
if self.nextspell > 0 then
self.nextspell = self.nextspell - 1
end
--if self.nextcollect>0 then self.nextcollect=self.nextcollect-1 end--HZC收点系统
if self.support > int(lstg.var.power / 100) then
self.support = self.support - 0.0625
elseif self.support < int(lstg.var.power / 100) then
self.support = self.support + 0.0625
end
if abs(self.support - int(lstg.var.power / 100)) < 0.0625 then
self.support = int(lstg.var.power / 100)
end
self.supportx = self.x + (self.supportx - self.x) * 0.6875
self.supporty = self.y + (self.supporty - self.y) * 0.6875
if self.protect > 0 then
self.protect = self.protect - 1
end
if self.death > 0 then
self.death = self.death - 1
end
lstg.var.pointrate = item.PointRateFunc(lstg.var)
--更新子机
if self.slist then
--子机位置表
self.sp = {}--子机
if self.support == 5 then
for i = 1, 4 do
self.sp[i] = MixTable(self.lh, self.slist[6][i])
self.sp[i][3] = 1--子机火力,一般大于0.5时才有效
end
else
local s = int(self.support) + 1
local t = self.support - int(self.support)
for i = 1, 4 do
if self.slist[s][i] and self.slist[s + 1][i] then
self.sp[i] = MixTable(t,
MixTable(self.lh, self.slist[s][i]),
MixTable(self.lh, self.slist[s + 1][i])
)
self.sp[i][3] = 1
elseif self.slist[s + 1][i] then
self.sp[i] = MixTable(self.lh, self.slist[s + 1][i])
self.sp[i][3] = t
end
end
end
end
--
end
--time_stop
if self.time_stop then
self.timer = self.timer - 1
end
end
function player_class:render()
--闪烁蓝色
--TODO 反复set影响效率
if self.protect % 3 == 1 then
SetImageState(self.img, '', Color(0xFF0000FF))--初始值应避开此条件
else
SetImageState(self.img, '', Color(0xFFFFFFFF))
end
object.render(self)
end
function player_class:colli(other)
if self.death == 0 and not self.dialog and not cheat then
if self.protect == 0 then
--miss
PlaySound('pldead00', 0.5)
self.death = 100
end
if other.group == GROUP_ENEMY_BULLET then
Del(other)
end
end
end
---追踪功能,以最接近垂直方向的敌人作为目标
function player_class:findtarget()
self.target = nil
local maxpri = -1
for i, o in ObjList(GROUP_ENEMY) do
if o.colli then
local dx = self.x - o.x
local dy = self.y - o.y
local pri = abs(dy) / (abs(dx) + 0.01)
if pri > maxpri then
maxpri = pri
self.target = o
end
end
end
end
---擦弹功能
---@class THlib.grazer:object
grazer = Class(object)
function grazer:init()
self.layer = LAYER_ENEMY_BULLET_EF + 50
self.group = GROUP_PLAYER
self.player = lstg.player
self.grazed = false
self.img = 'graze'
ParticleStop(self)
self.a = 24
self.b = 24
self.aura = 0
end
function grazer:frame()
self.x = self.player.x
self.y = self.player.y
self.hide = self.player.hide
if not self.player.time_stop then
self.aura = self.aura + 1.5
end
--
if self.grazed then
PlaySound('graze', 0.3, self.x / 200)
self.grazed = false
ParticleFire(self)
else
ParticleStop(self)
end
end
function grazer:render()
--self.x = self.player.x
--self.y = self.player.y
object.render(self)
--渲染判定点,根据低速过渡状态改变透明度和大小,匀速自转
--写在这里可能是为了实现gzz效果
SetImageState('player_aura', '', Color(0xC0FFFFFF) * self.player.lh + Color(0x00FFFFFF) * (1 - self.player.lh))
Render('player_aura', self.x, self.y, self.aura, 2 - self.player.lh)
SetImageState('player_aura', '', Color(0xC0FFFFFF))
Render('player_aura', self.x, self.y, -self.aura, self.player.lh)
end
function grazer:colli(other)
if other.group ~= GROUP_ENEMY and (not other._graze) then
item.PlayerGraze()
lstg.player.grazer.grazed = true
other._graze = true
--只能擦一次,激光的擦弹由激光对象计算
end
end
---直线
---@class THlib.player_bullet_straight:object
player_bullet_straight = Class(object)
---@param img string
---@param x number
---@param y number
---@param v number
---@param angle number
---@param dmg number
function player_bullet_straight:init(img, x, y, v, angle, dmg)
self.group = GROUP_PLAYER_BULLET
self.layer = LAYER_PLAYER_BULLET
self.img = img
self.x = x
self.y = y
self.rot = angle
self.vx = v * cos(angle)
self.vy = v * sin(angle)
self.dmg = dmg
if self.a ~= self.b then
self.rect = true
end
end
---直线,colli=false,没有img
---@class THlib.player_bullet_hide:object
player_bullet_hide = Class(object)
function player_bullet_hide:init(a, b, x, y, v, angle, dmg, delay)
self.group = GROUP_PLAYER_BULLET
self.layer = LAYER_PLAYER_BULLET
self.colli = false
self.a = a
self.b = b
self.x = x
self.y = y
self.rot = angle
self.vx = v * cos(angle)
self.vy = v * sin(angle)
self.dmg = dmg
self.delay = delay or 0
end
function player_bullet_hide:frame()
if self.timer == self.delay then
self.colli = true
end
end
---诱导
---@class THlib.player_bullet_trail:object
player_bullet_trail = Class(object)
function player_bullet_trail:init(img, x, y, v, angle, target, trail, dmg)
self.group = GROUP_PLAYER_BULLET
self.layer = LAYER_PLAYER_BULLET
self.img = img
self.x = x
self.y = y
self.rot = angle
self.v = v
self.target = target
self.trail = trail
self.dmg = dmg
end
function player_bullet_trail:frame()
if IsValid(self.target) and self.target.colli then
local a = math.mod(Angle(self, self.target) - self.rot + 720, 360)
if a > 180 then
a = a - 360
end
--有限程度的诱导
local da = self.trail / (Dist(self, self.target) + 1)
if da >= abs(a) then
self.rot = Angle(self, self.target)
else
self.rot = self.rot + sign(a) * da
end
end
self.vx = self.v * cos(self.rot)
self.vy = self.v * sin(self.rot)
end
---bomb颜色遮罩
---@class THlib.player_spell_mask:object
player_spell_mask = Class(object)
function player_spell_mask:init(r, g, b, t1, t2, t3)
self.x = 0
self.y = 0
self.group = GROUP_GHOST
self.layer = LAYER_BG + 1
self.img = 'player_spell_mask'
self.red = r
self.green = g
self.blue = b
SetImageState('player_spell_mask', 'mul+add', Color(0, r, g, b))
task.New(self, function()
for i = 1, t1 do
SetImageState('player_spell_mask', 'mul+add', Color(i * 255 / t1, r, g, b))
task.Wait(1)
end
task.Wait(t2)
for i = t3, 1, -1 do
SetImageState('player_spell_mask', 'mul+add', Color(i * 255 / t1, r, g, b))
task.Wait(1)
end
Del(self)
end)
end
function player_spell_mask:frame()
task.Do(self)
end
---miss时的粒子效果
---@class THlib.player_death_ef:object
player_death_ef = Class(object)
function player_death_ef:init(x, y)
self.x = x
self.y = y
self.img = 'player_death_ef'
self.layer = LAYER_PLAYER + 50
end
function player_death_ef:frame()
if self.timer == 4 then
ParticleStop(self)
end
if self.timer == 60 then
Del(self)
end
end
---MixTable(x,t1,t2)
---对表中数值进行线性组合
---r=(1-x)*t1+x*t2
---r=(1-x)*t1前半+x*t1后半
function MixTable(x, t1, t2)
local r = {}
local y = 1 - x
if t2 then
for i = 1, #t1 do
r[i] = y * t1[i] + x * t2[i]
end
return r
else
local n = int(#t1 / 2)
for i = 1, n do
r[i] = y * t1[i] + x * t1[i + n]
end
return r
end
end
---miss时的圆形扩散效果
---@class THlib.deatheff:object
deatheff = Class(object)
function deatheff:init(x, y, type_)
self.x = x
self.y = y
self.type = type_
self.size = 0
self.size1 = 0
self.layer = LAYER_TOP - 1
task.New(self, function()
local size = 0
local size1 = 0
if self.type == 'second' then
task.Wait(30)
end
for i = 1, 360 do
self.size = size
self.size1 = size1
size = size + 12
size1 = size1 + 8
task.Wait(1)
end
end)
end
function deatheff:frame()
task.Do(self)
if self.timer > 180 then
Del(self)
end
end
function deatheff:render()
if self.type == 'first' then
--5个反色圆,1大4小
rendercircle(self.x, self.y, self.size, 180)
rendercircle(self.x + 35, self.y + 35, self.size1, 180)
rendercircle(self.x + 35, self.y - 35, self.size1, 180)
rendercircle(self.x - 35, self.y + 35, self.size1, 180)
rendercircle(self.x - 35, self.y - 35, self.size1, 180)
elseif self.type == 'second' then
rendercircle(self.x, self.y, self.size, 180)
end
end
---player列表
---{显示名, 类名(score用), 简称(rep显示用)}
---@class THlib.player_list
player_list = {
{ 'Hakurei Reimu', 'reimu_player', 'Reimu' },
{ 'Kirisame Marisa', 'marisa_player', 'Marisa' },
{ 'Shalimar', 'shababa_player', 'Shalimar' },
}
Include 'THlib/player/reimu/reimu.lua'
Include 'THlib/player/marisa/marisa.lua'
Include 'THlib/player/shababa/shababa_player.lua'
|
require "core/game/camera"
GameBase = GameBase or {
world = nil, -- Default world
camera_unit = nil, -- Default camera
game = nil, -- User Game
game_level = nil,
_test_package = nil,
}
function GameBase.init()
-- Create world
GameBase.world = Device.create_world()
-- Create default camera
GameBase.camera_unit = World.spawn_unit(GameBase.world, "core/units/camera")
local scene_graph = World.scene_graph(GameBase.world)
local camera_transform = SceneGraph.instance(scene_graph, GameBase.camera_unit)
SceneGraph.set_local_position(scene_graph, camera_transform, Vector3(0, 6.5, -30))
-- Load test level if launched from Level Editor.
if TEST then
GameBase._test_package = Device.create_resource_package("_level_editor_test")
ResourcePackage.load(GameBase._test_package)
ResourcePackage.flush(GameBase._test_package)
World.load_level(GameBase.world, "_level_editor_test")
else
if GameBase.game_level then
World.load_level(GameBase.world, GameBase.game_level)
end
end
if GameBase.game and GameBase.game.level_loaded then
GameBase.game.level_loaded()
end
end
function GameBase.update(dt)
-- Update world
World.update(GameBase.world, dt)
if TEST then
-- Stop the engine when the 'ESC' key is released
if Keyboard.released(Keyboard.button_id("escape")) then
Device.quit()
end
end
if GameBase.game and GameBase.game.update then
GameBase.game.update(dt)
end
end
function GameBase.render(dt)
if GameBase.game and GameBase.game.render then
GameBase.game.render(dt)
end
Device.render(GameBase.world, GameBase.camera_unit)
end
function GameBase.shutdown()
if GameBase.game and GameBase.game.shutdown then
GameBase.game.shutdown()
end
Device.destroy_world(GameBase.world)
if GameBase._test_package then
Device.destroy_resource_package(GameBase._test_package)
end
end
|
-- Very very simple XML library, misses a lot of features
local xml = {}
--- Tags are tables as follow:
--- name: Name
--- attr: Attributes
--- parent: Parent
--- childrens: Childrens
--- What this function return is a root tag (just a tag with no name, no attribute and no parent, that have all tags (not nested ones) as childrens)
function xml.parse(str)
local chars = string.toCharArray(str)
local line = 1
local rootTag = {
name = nil,
attr = nil,
parent = nil,
childrens = {}
}
local ok, err = pcall(function()
local currentTag = rootTag
local i = 1
local _st = false -- is parsing tag name? (<ohml>)
local _sta = false -- is parsing attributes?
local _te = false -- is tag a ending tag? (</ohml>)
local _tn = "" -- tag name
local _otn = "" -- old tag name
local _ott = "" -- old parsing text
local _tap = "" -- tag attribute propety (name)
local _tav = "" -- tag attribute value
local _tt = "" -- currently parsing text
local _ttcdata = false -- is the current parsing text in a CDATA section? (<![CDATA ]]>)
local _itap = false -- is parsing attribute property?
local _ta = {} -- currently parsing attributes
local _ota = {} -- old parsing attributes
while i < #chars do
local ch = chars[i]
if ch == '/' and not _sta and _tt == "" then
i = i + 1
ch = chars[i] -- skip "/"
_te = true
end
if ch == '\n' then
line = line + 1
end
if _sta then
if _itap then
if ch == '=' then
_itap = false
elseif ch ~= " " then
_tap = _tap .. ch
end
else
if ch ~= ' ' and ch ~= '>' then
_tav = _tav .. ch
end
end
end
if _st then
if ch == '>' then
_st = false
_sta = false
if _te then
currentTag = currentTag.parent
_te = false
else
if _tap ~= "" then
_ta[_tap] = load("return " .. _tav)() -- value conversion, insecure
_tap = ""
_tav = ""
end
local tag = {
name = _tn,
attr = _ta,
childrens = {},
parent = currentTag
}
table.insert(currentTag.childrens, tag)
currentTag = tag
end
elseif ch == ' ' and not _te then
if _tap ~= "" then
_ta[_tap] = load("return " .. _tav)() -- value conversion, insecure
end
_tap = ""
_tav = ""
_sta = true
_itap = true
elseif not _sta then
_tn = _tn .. ch
if string.sub(_tn, string.len(_tn)-7) == "![CDATA[" then -- minus length of <![CDATA[
_ttcdata = true
table.remove(currentTag.childrens)
_st = false
_sta = false
_te = false
_tt = _ott
_tn = _otn
_ta = _ota
end
end
end
if ch == '<' and not _ttcdata then
if _tt ~= "" then
local textTag = {
name = "#text",
content = _tt,
attr = {},
childrens = {},
parent = currentTag
}
table.insert(currentTag.childrens, textTag)
end
_st = true
_sta = false
_te = false
_otn = _tn
_tn = ""
_ott = _tt
_tt = ""
_ota = _ta
_ta = {}
end
if not _st then
if ch ~= "\r" and ch ~= "\n" and ch ~= "\t" then
_tt = _tt .. ch
else
if _ttcdata then
if string.sub(_tt, string.len(_tt)-2) == "]]>" then -- minus length of ]]>
_tt = string.sub(_tt, 1, string.len(_tt)-3)
_ttcdata = false
else
_tt = _tt .. ch
end
end
end
if _tt:sub(1, 1) == ">" then
_tt = ""
end
end
i = i + 1
end
if _ttcdata then
error("EOF in CDATA section, expected ]]>")
end
end) -- end of pcall
if not ok then
error("error at line " .. tostring(line) .. ": " .. tostring(err))
end
return rootTag
end
return xml
|
FACTION.name = "SS-Reichssicherheitshauptamt"
FACTION.desc = "Reich Security Main Office"
FACTION.color = Color(255, 1, 1)
FACTION.isDefault = false
FACTION.pay = 125
FACTION.payTime = 900
FACTION.isGloballyRecognized = true
FACTION_RHSA = FACTION.index
|
function GenerateResource(pPlayer, pCity)
--Creates a Gold resource on a land plot that doesn't have a resource
--Preference is for hills
for i = 1, pCity:GetNumCityPlots() - 1, 1 do
local fPlot = pCity:GetCityIndexPlot(i)
if not fPlot:IsMountain() then
if fPlot:IsHills() then
if fPlot:GetResourceType(-1) == (-1) then
fPlot:SetResourceType(GameInfoTypes.RESOURCE_GOLD, 1)
return true
end
end
end
end
--And if that fails, stick it pretty much anywhere
for i = 1, pCity:GetNumCityPlots() - 1, 1 do
local fPlot = pCity:GetCityIndexPlot(i)
if not fPlot:IsMountain() then
if fPlot:GetTerrainType() == TerrainTypes.TERRAIN_GRASS then
if fPlot:GetResourceType(-1) == (-1) then
fPlot:SetResourceType(GameInfoTypes.RESOURCE_GOLD, 1)
return true
end
elseif fPlot:GetTerrainType() == TerrainTypes.TERRAIN_PLAINS then
if fPlot:GetResourceType(-1) == (-1) then
fPlot:SetResourceType(GameInfoTypes.RESOURCE_GOLD, 1)
return true
end
elseif fPlot:GetTerrainType() == TerrainTypes.TERRAIN_DESERT then
if fPlot:GetResourceType(-1) == (-1) then
if not fPlot:GetFeatureType() == GameInfoTypes.FEATURE_OASIS then
fPlot:SetResourceType(GameInfoTypes.RESOURCE_GOLD, 1)
return true
end
end
elseif fPlot:GetTerrainType() == TerrainTypes.TERRAIN_TUNDRA then
if fPlot:GetResourceType(-1) == (-1) then
fPlot:SetResourceType(GameInfoTypes.RESOURCE_GOLD, 1)
return true
end
elseif fPlot:GetTerrainType() == TerrainTypes.TERRAIN_SNOW then
if fPlot:GetResourceType(-1) == (-1) then
fPlot:SetResourceType(GameInfoTypes.RESOURCE_GOLD, 1)
return true
end
end
end
end
return false
end
GameEvents.CityConstructed.Add(function(iPlayer, iCity, building)
--Watch to see when a Iwan Palace is constructed
if building == GameInfoTypes.BUILDING_IWAN_PALACE then
local pPlayer = Players[iPlayer]
local pCity = pPlayer:GetCityByID(iCity)
--Try to generate a resource. Message if it fails
if GenerateResource(pPlayer, pCity) == false then
print("Could not place any resources.")
end
end
end)
|
casting_rooted_modifier = class( {} )
function casting_rooted_modifier:DeclareFunctions()
local funcs = {
}
return funcs
end
function casting_rooted_modifier:CheckState()
local state = {
[MODIFIER_STATE_SILENCED] = true,
[MODIFIER_STATE_DISARMED] = true,
[MODIFIER_STATE_ROOTED] = true
}
return state
end
function casting_rooted_modifier:OnDestroy()
end
function casting_rooted_modifier:IsHidden()
return true
end
function casting_rooted_modifier:IsPurgable()
return false
end
function casting_rooted_modifier:IsPurgeException()
return false
end
function casting_rooted_modifier:IsStunDebuff()
return false
end
function casting_rooted_modifier:IsDebuff()
return false
end
|
-- siamese network
--
-- David-Alexandre Beaupre
--
require 'nn'
require 'cunn'
function create_model(max_dips, nChannel)
-- whole network
local model = nn.Sequential()
-- base = combination of left and right network
local base = nn.ParallelTable()
local left = nn.Sequential()
-- building block (convolution, batch normalization and ReLU activation)
local function ConvBNReLU(nInputPlane, nOutputPlane, kw, kh)
left:add(nn.SpatialConvolution(nInputPlane, nOutputPlane, kw, kh))
left:add(nn.SpatialBatchNormalization(nOutputPlane, 1e-3))
left:add(nn.ReLU(true))
return left
end
local c = nChannel or 3
-- 5 layers for feature extraction
ConvBNReLU(c, 32, 7, 7):add(nn.Dropout(0.2))
ConvBNReLU(32, 32, 7, 7):add(nn.Dropout(0.5))
ConvBNReLU(32, 64, 7, 7):add(nn.Dropout(0.5))
ConvBNReLU(64, 64, 7, 7):add(nn.Dropout(0.5))
ConvBNReLU(64, 64, 7, 7):add(nn.Dropout(0.5))
-- no ReLU activation for last layer
left:add(nn.SpatialConvolution(64, 64, 7, 7))
left:add(nn.SpatialBatchNormalization(64, 1e-3))
-- left and right share parameters
local right = left:clone('weight', 'bias', 'gradWeight', 'gradBias')
left:add(nn.Transpose({2, 3}, {3, 4}))
-- left is a vector
left:add(nn.Reshape(1, 64))
-- right is a volume
right:add(nn.Reshape(64, max_dips))
base:add(left):add(right)
model:add(base)
-- correlation between left and right (for every disparity location)
model:add(nn.MM())
model:add(nn.Reshape(max_dips))
-- numerically stable probabilities
model:add(nn.LogSoftMax())
return model
end
|
function readfile(name)
local f = io.open(name, "rb")
if not f then return nil end
local s = f:read("*a")
f:close()
return s
end
function similar(s1, s2)
return string.lower(string.gsub(s1 or "", "%s", "")) ==
string.lower(string.gsub(s2 or "", "%s", ""))
end
function fail(msg)
msg = msg or "failed"
error(msg, 2)
end
function compare(input, output)
local original = readfile(input)
local recovered = readfile(output)
if original ~= recovered then fail("comparison failed")
else print("ok") end
end
local G = _G
local set = rawset
local warn = print
local setglobal = function(table, key, value)
warn("changed " .. key)
set(table, key, value)
end
setmetatable(G, {
__newindex = setglobal
})
|
resource_manifest_version "44febabe-d386-4d18-afbe-5e627f4af937"
client_script "discord.lua"
|
-- Created by Elfansoer
--[[
Ability checklist (erase if done/checked):
- Scepter Upgrade
- Break behavior
- Linken/Reflect behavior
- Spell Immune/Invulnerable/Invisible behavior
- Illusion behavior
- Stolen behavior
]]
--------------------------------------------------------------------------------
modifier_marci_rebound_lua = class({})
--------------------------------------------------------------------------------
-- Classifications
function modifier_marci_rebound_lua:IsHidden()
return true
end
function modifier_marci_rebound_lua:IsDebuff()
return false
end
function modifier_marci_rebound_lua:IsPurgable()
return true
end
--------------------------------------------------------------------------------
-- Initializations
function modifier_marci_rebound_lua:OnCreated( kv )
self.parent = self:GetParent()
self.ability = self:GetAbility()
-- references
-- self.duration = self:GetAbility():GetSpecialValueFor( "max_lob_travel_time" )
self.duration = 0.5
self.height = self:GetAbility():GetSpecialValueFor( "min_height_above_highest" )
self.min_distance = self:GetAbility():GetSpecialValueFor( "min_jump_distance" )
self.max_distance = self:GetAbility():GetSpecialValueFor( "max_jump_distance" )
self.radius = self:GetAbility():GetSpecialValueFor( "landing_radius" )
self.damage = self:GetAbility():GetSpecialValueFor( "impact_damage" )
self.debuff = self:GetAbility():GetSpecialValueFor( "debuff_duration" )
self.buff = self:GetAbility():GetSpecialValueFor( "ally_buff_duration" )
if not IsServer() then return end
self.projectile = tonumber(kv.proj)
self.target = EntIndexToHScript( kv.target )
self.point = Vector( kv.point_x, kv.point_y, 0 )
-- precaution against non-dodging TPs
self.targetpos = self.target:GetOrigin()
self.distancethreshold = 1000
-- apply motion
if not self:ApplyHorizontalMotionController() then
self.interrupted = true
self:Destroy()
end
-- play effects
local speed = self:GetAbility():GetSpecialValueFor( "move_speed" )
self:PlayEffects1( self.parent, speed )
end
function modifier_marci_rebound_lua:OnRefresh( kv )
end
function modifier_marci_rebound_lua:OnRemoved()
end
function modifier_marci_rebound_lua:OnDestroy()
if not IsServer() then return end
self:GetParent():RemoveHorizontalMotionController( self )
if self.interrupted then return end
-- add buff to ally
local allied = self.target:GetTeamNumber()==self.parent:GetTeamNumber()
if allied then
self.target:AddNewModifier(
self.parent, -- player source
self.ability, -- ability source
"modifier_marci_rebound_lua_buff", -- modifier name
{ duration = self.buff } -- kv
)
end
local origin = self:GetParent():GetOrigin()
local direction = self.point - origin
local distance = direction:Length2D()
direction.z = 0
direction = direction:Normalized()
-- face towards
self:GetParent():SetForwardVector( direction )
local duration = 0.5
local distance = math.min(math.max(distance,self.min_distance),self.max_distance)
-- create arc
local arc = self:GetParent():AddNewModifier(
self:GetParent(), -- player source
self:GetAbility(), -- ability source
"modifier_generic_arc_lua", -- modifier name
{
dir_x = direction.x,
dir_y = direction.y,
duration = self.duration,
distance = distance,
height = self.height,
fix_end = false,
isStun = true,
isForward = true,
activity = ACT_DOTA_FLAIL,
} -- kv
)
arc:SetEndCallback( function( interrupted )
-- find enemies
local enemies = FindUnitsInRadius(
self.parent:GetTeamNumber(), -- int, your team number
self.parent:GetOrigin(), -- point, center point
nil, -- handle, cacheUnit. (not known)
self.radius, -- float, radius. or use FIND_UNITS_EVERYWHERE
DOTA_UNIT_TARGET_TEAM_ENEMY, -- int, team filter
DOTA_UNIT_TARGET_HERO + DOTA_UNIT_TARGET_BASIC, -- int, type filter
0, -- int, flag filter
0, -- int, order filter
false -- bool, can grow cache
)
-- precache damage
local damageTable = {
-- victim = target,
attacker = self.parent,
damage = self.damage,
damage_type = DAMAGE_TYPE_MAGICAL,
ability = self.ability, --Optional.
}
for _,enemy in pairs(enemies) do
-- damage
damageTable.victim = enemy
ApplyDamage(damageTable)
-- slow
enemy:AddNewModifier(
self.parent, -- player source
self.ability, -- ability source
"modifier_marci_rebound_lua_debuff", -- modifier name
{ duration = self.debuff } -- kv
)
end
-- play effects
self:PlayEffects4( self.parent:GetOrigin(), origin, self.radius )
end)
-- play effects
self:PlayEffects2( self.parent, arc, allied )
self:PlayEffects3( origin + distance*direction, self.radius )
end
--------------------------------------------------------------------------------
-- Modifier Effects
function modifier_marci_rebound_lua:DeclareFunctions()
local funcs = {
MODIFIER_PROPERTY_OVERRIDE_ANIMATION,
}
return funcs
end
function modifier_marci_rebound_lua:GetOverrideAnimation()
return ACT_DOTA_FLAIL
end
--------------------------------------------------------------------------------
-- Status Effects
function modifier_marci_rebound_lua:CheckState()
local state = {
[MODIFIER_STATE_STUNNED] = true,
}
return state
end
--------------------------------------------------------------------------------
-- Motion Effects
function modifier_marci_rebound_lua:UpdateHorizontalMotion( me, dt )
-- precaution against non-dodging tps
local targetpos = self.target:GetOrigin()
if (targetpos - self.targetpos):Length2D()>self.distancethreshold then
self.dodged = true
self.interrupted = true
return
end
self.targetpos = targetpos
local loc = ProjectileManager:GetTrackingProjectileLocation( self.projectile )
me:SetOrigin( GetGroundPosition( loc, me ) )
-- face towards
me:FaceTowards( self.target:GetOrigin() )
end
function modifier_marci_rebound_lua:OnHorizontalMotionInterrupted()
self.interrupted = true
self:Destroy()
end
--------------------------------------------------------------------------------
-- Graphics & Animations
function modifier_marci_rebound_lua:PlayEffects1( caster, speed )
-- Get Resources
local particle_cast = "particles/units/heroes/hero_marci/marci_rebound_charge_projectile.vpcf"
local sound_cast = "Hero_Marci.Rebound.Cast"
-- Create Particle
local effect_cast = ParticleManager:CreateParticle( particle_cast, PATTACH_ABSORIGIN_FOLLOW, caster )
ParticleManager:SetParticleControlEnt(
effect_cast,
1,
caster,
PATTACH_POINT_FOLLOW,
"attach_hitloc",
Vector(0,0,0), -- unknown
true -- unknown, true
)
ParticleManager:SetParticleControl( effect_cast, 2, Vector( speed, 0, 0 ) )
-- buff particle
self:AddParticle(
effect_cast,
false, -- bDestroyImmediately
false, -- bStatusEffect
-1, -- iPriority
false, -- bHeroEffect
false -- bOverheadEffect
)
-- Create Sound
EmitSoundOn( sound_cast, caster )
end
function modifier_marci_rebound_lua:PlayEffects2( caster, buff )
-- Get Resources
local particle_cast = "particles/units/heroes/hero_marci/marci_rebound_bounce.vpcf"
local sound_cast = "Hero_Marci.Rebound.Leap"
-- Create Particle
local effect_cast = ParticleManager:CreateParticle( particle_cast, PATTACH_ABSORIGIN_FOLLOW, caster )
ParticleManager:SetParticleControlEnt(
effect_cast,
1,
caster,
PATTACH_POINT_FOLLOW,
"attach_attack1",
Vector(0,0,0), -- unknown
true -- unknown, true
)
ParticleManager:SetParticleControlEnt(
effect_cast,
3,
caster,
PATTACH_POINT_FOLLOW,
"attach_hitloc",
Vector(0,0,0), -- unknown
true -- unknown, true
)
-- buff particle
buff:AddParticle(
effect_cast,
false, -- bDestroyImmediately
false, -- bStatusEffect
-1, -- iPriority
false, -- bHeroEffect
false -- bOverheadEffect
)
-- Create Sound
EmitSoundOn( sound_cast, caster )
end
function modifier_marci_rebound_lua:PlayEffects3( center, radius )
-- Get Resources
local particle_cast = "particles/units/heroes/hero_marci/marci_rebound_landing_zone.vpcf"
-- Create Particle
local effect_cast = ParticleManager:CreateParticle( particle_cast, PATTACH_WORLDORIGIN, nil )
ParticleManager:SetParticleControl( effect_cast, 0, center )
ParticleManager:SetParticleControl( effect_cast, 1, Vector(radius, radius, radius) )
ParticleManager:ReleaseParticleIndex( effect_cast )
end
function modifier_marci_rebound_lua:PlayEffects4( center, origin, radius )
-- Get Resources
local particle_cast = "particles/units/heroes/hero_marci/marci_rebound_bounce_impact.vpcf"
local sound_cast = "Hero_Marci.Rebound.Impact"
-- Create Particle
local effect_cast = ParticleManager:CreateParticle( particle_cast, PATTACH_WORLDORIGIN, nil )
ParticleManager:SetParticleControl( effect_cast, 0, center )
ParticleManager:SetParticleControl( effect_cast, 1, origin )
ParticleManager:SetParticleControl( effect_cast, 9, Vector(radius, radius, radius) )
ParticleManager:SetParticleControl( effect_cast, 10, center )
ParticleManager:ReleaseParticleIndex( effect_cast )
-- Create Sound
EmitSoundOnLocationWithCaster( center, sound_cast, self.parent )
end
|
require"socket"
require"event"
module(...,package.seeall)
local ctx = {
--state = "idle",
sockid = nil,
}
function poll()
if ctx.sockid then
while true do
local s = ctx.sockid:receive()
if s and string.len(s) > 2 then
local len = string.byte(s,1)*256 + string.byte(s,2)
if len == string.len(s) then
event.dispatch(string.sub(s,3,-1))
end
else
break
end
end
end
end
function close()
ctx.sockid:close()
ctx = {}
removetask(poll)
end
function open()
ctx.sockid = socket.udp()
ctx.sockid:setsockname("127.0.0.1",62888)
ctx.sockid:settimeout(0)
addtask(poll)
end
function emit_event(id,d)
if not ctx.sockid then return end
local len = string.len(d)+3
local outd = string.char(len/256,len%256,id) .. d
ctx.sockid:sendto(outd,"127.0.0.1",62887)
end
|
Config = {}
Config.keys = {}
Config.SpawnTrain = {}
Config.Locale = 'fr'
Config.keys.EnterTrain = 'DELETE'
Config.keys.control = { traction = 'TOP', brakes = 'DOWN', EnginePower = 'TAB' }
Config.keys.gps = 'I'
Config.SpawnTrain.menu = { x = 102.2487, y = -1712.1699, z = 30.1149 }
Config.SpawnTrain.point = { x = 106.42219543457, y = -1712.8267822266, z = 28.527147293091 }
Config.LoadThisModel = {
'metrotrain'
}
Config.BreakTime = 380 -- Break time for all stops
Config.Torque = 0.045 -- Train speed torque (Default at 0.045)
Config.EmergencyTorque = 0.08 -- Train emergency break speed torque (Default at 0.08)
Config.TrainStops = {
{ name = "Carson Avenue", x = 106.42219543457, y = -1712.8267822266, z = 28.527147293091 },
{ name = "Alta Street", x = -205.68649291992, y = -1025.8822021484, z = 28.723628997803 },
{ name = "San Andreas Avenue", x = -524.20874023438, y = -665.61804199219, z = 10.29563331604 },
{ name = "Rockford Drive North", x = -1356.6352539063, y = -441.09271240234, z = 13.531875610352 },
{ name = "Boulevard Del Perro South", x = -791.64691162109, y = -132.63354492188, z = 18.436702728271 },
{ name = "Abe Milton Parkway", x = -302.22787475586, y = -353.68316650391, z = 8.5495891571045 },
{ name = "Strawberry Avenue", x = 249.21415710449, y = -1198.6043701172, z = 37.44820022583 },
{ name = "Innocence Boulevard", x = -549.40734863281, y = -1290.7985839844, z = 25.306436538696 },
{ name = "New Empire Way", x = -899.01177978516, y = -2340.1896972656, z = -13.246250152588 },
{ name = "New Empire Way", x = -1105.708984375, y = -2730.5478515625, z = -8.9241304397583 },
{ name = "New Empire Way", x = -1061.4226074219, y = -2701.2431640625, z = -8.9241304397583 },
{ name = "New Empire Way", x = -867.73419189453, y = -2298.1987304688, z = -13.233773231506 },
{ name = "Innocence Boulevard", x = -532.44958496094, y = -1275.7165527344, z = 25.302003860474 },
{ name = "Strawberry Avenue", x = 277.58047485352, y = -1209.9291992188, z = 37.491737365723 },
{ name = "San Vitus Boulevard", x = -287.12280273438, y = -302.96704101563, z = 8.5495338439941 },
{ name = "Boulevard Del Perro South", x = -842.751953125, y = -144.80075073242, z = 18.437128067017 },
{ name = "Rockford Drive North", x = -1344.5178222656, y = -492.07604980469, z = 13.531378746033 },
{ name = "San Andreas Avenue", x = -474.44439697266, y = -680.62890625, z = 10.295550346375 },
{ name = "Alta Street", x = -221.52005004883, y = -1041.8325195313, z = 28.705011367798 },
{ name = "Carson Avenue", x = 124.02753448486, y = -1738.5079345703, z = 28.455068588257 },
}
|
-- 2677 Whispymound Drive
-- High end house 7: 120.5 549.952 184.097
exports('GetGTAOHouseHi7Object', function()
return GTAOHouseHi7
end)
GTAOHouseHi7 = {
interiorId = 206593,
Strip = {
A = "Apart_Hi_Strip_A", B = "Apart_Hi_Strip_B", C = "Apart_Hi_Strip_C",
Enable = function (details, state, refresh)
SetIplPropState(GTAOHouseHi7.interiorId, details, state, refresh)
end
},
Booze = {
A = "Apart_Hi_Booze_A", B = "Apart_Hi_Booze_B", C = "Apart_Hi_Booze_C",
Enable = function (details, state, refresh)
SetIplPropState(GTAOHouseHi7.interiorId, details, state, refresh)
end
},
Smoke = {
A = "Apart_Hi_Smokes_A", B = "Apart_Hi_Smokes_B", C = "Apart_Hi_Smokes_C",
Enable = function (details, state, refresh)
SetIplPropState(GTAOHouseHi7.interiorId, details, state, refresh)
end
},
LoadDefault = function()
GTAOHouseHi7.Strip.Enable({GTAOHouseHi7.Strip.A, GTAOHouseHi7.Strip.B, GTAOHouseHi7.Strip.C}, false)
GTAOHouseHi7.Booze.Enable({GTAOHouseHi7.Booze.A, GTAOHouseHi7.Booze.B, GTAOHouseHi7.Booze.C}, false)
GTAOHouseHi7.Smoke.Enable({GTAOHouseHi7.Smoke.A, GTAOHouseHi7.Smoke.B, GTAOHouseHi7.Smoke.C}, false)
RefreshInterior(GTAOHouseHi7.interiorId)
end
}
|
-- Required by Docker Hub Alpine container
return {
capabilities = { "chown", "setuid", "setgid" },
}
|
--[[
__ __ ____ _____ _____ _____ _ _
\ \ / / / __ \ |_ _| | __ \ / ____| (_) | |
\ \ / / | | | | | | | | | | | (___ ___ _ __ _ _ __ | |_ ___
\ \/ / | | | | | | | | | | \___ \ / __| | '__| | | | '_ \ | __| / __|
\ / | |__| | _| |_ | |__| | ____) | | (__ | | | | | |_) | | |_ \__ \
\/ \____/ |_____| |_____/ |_____/ \___| |_| |_| | .__/ \__| |___/
| |
|_|
USE AT YOUR OWN RISK - Bloxburg - Auto Jobs provided by VOID scritpts
THIS GAME IS KNOWN FOR HIGH BAN RATES - BE AWARE IF YOU EXPLOIT YOU TAKE AN IMPLICIT RISK OF BEING BANNED
Join our Discord at https://invite.gg/officialthevoidserver to keep up to date with new releases and other scripts
Credits: Developer wYn#5984 aka NinjaOperator @ v3rmillion.net
UI Library: detourious @ v3rmillion.net
VOID Staff Contributors: PikyaYT, Landon
]]
return(function(e,...)local E="This file was obfuscated using PSU Obfuscator 4.0.A | https://www.psu.dev/ & discord.gg/psu";local g=e['Sx0iuHs'];local j=e[(308479487)];local s=e[((#{747;(function(...)return...;end)(207,319)}+925435112))];local n=e[((#{}+169069023))];local u=e[((#{(function(...)return;end)()}+995201272))];local U=e[((#{679;928;(function(...)return 869,905,310,...;end)(267,423)}+833973661))];local Z=e[((931372190-#("guys someone play Among Us with memcorrupt he is so lonely :(")))];local r=e[((713348377-#("Luraph: Probably considered the worst out of the three, Luraph is another Lua Obfuscator. It isnt remotely as secure as Ironbrew or Synapse Xen, and it isn't as fast as Ironbrew either.")))];local P=e[(114434145)];local D=e[(182017230)];local B=e[((#{824;}+966450523))];local I=e[(260361506)];local k=e.emg9qdCI62;local q=e[((398232428-#("why the fuck would we sell a deobfuscator for a product we created.....")))];local V=e[((988984157-#("still waiting for luci to fix the API :|")))];local c=e[(73437084)];local W=e['x0zOWU'];local h=e[((#{741;39;705;(function(...)return 969;end)()}+587392746))];local L=e[(14031894)];local J=e['VyMV5k7DNS'];local M=e[((513812459-#("this isn't krnl support you bonehead moron")))];local p=e[((#{869;741;356;(function(...)return 222,312,851,506;end)()}+558679145))];local S=e[((#{384;980;481;444;}+660736682))];local x=e[(235201917)];local o=e[((#{423;17;895;}+398248270))];local t=e['VczyMSeH'];local z=e[(370147895)];local w=e[((111612929-#("i am not wally stop asking me for wally hub support please fuck off")))];local m=e[(570152852)];local C=e[(243514525)];local O=e['lijIhxrb'];local v=((getfenv)or(function(...)return(_ENV);end));local a,d,l=({}),(""),(v(o));local i=((l["\98\105"..e[t]..e[U]..e[L]])or(l[""..e.Wlw9W1D.."\105\116"])or({}));local a=(((i)and(i[""..e.Wlw9W1D..e[S].."\111\114"]))or(function(e,t)local l,o=o,s;while((e>s)and(t>s))do local a,i=e%n,t%n;if a~=i then o=o+l;end;e,t,l=(e-a)/n,(t-i)/n,l*n;end;if e<t then e=t;end;while e>s do local t=e%n;if t>s then o=o+l;end;e,l=(e-t)/n,l*n;end;return(o);end));local f=(n^C);local y=(f-o);local b,A,F;local f=(d[""..e['BrtCfwp']..e[h].."\117"..e["Wlw9W1D"]]);local _=(d[""..e[w]..e.ZDU7ulah..e[r].."\114"]);local f=(d["\115"..e[W]..e["Wlw9W1D"]]);local x=(d[""..e["Wlw9W1D"]..e[x]..e[t]..e[c]]);local d=((l["\117\110"..e["Jm0ZUCJSLC"].."\97"..e[w].."\107"])or(l[""..e[t]..e[r].."\98\108\101"]["\117"..e[m]..e['Jm0ZUCJSLC'].."\97\99\107"]));local H=(l["\109"..e[r]..e[t]..e.ZDU7ulah][""..e[B].."\108\111"..e[p]..e[g]]);local G=(l["\114"..e[r].."\119\115\101\116"]);local G=((l[""..e[k].."\97"..e[t].."\104"]["\108\100\101\120\112"])or(function(e,l,...)return((e*n)^l);end));local T=(l[""..e["Jm0ZUCJSLC"]..e[r]..e[u]..e[g]..e[h]]);local k=(l["\115"..e[c].."\108"..e[c]..e[w]..e[t]]);local X=(l[""..e[h].."\101\116\109"..e[c]..e[t].."\97\116\97\98\108"..e[c]]);local W=(l["\116"..e[p].."\110"..e[W].."\109"..e['Wlw9W1D']..e[c].."\114"]);local Y=(l["\116\121\112"..e[c]]);local Y=(i["\98\111\114"])or(function(e,l,...)return(y-F(y-e,y-l));end);local y=(i["\98\110\111\116"])or(function(e,...)return(y-e);end);A=((i["\114"..e[h]..e["ZDU7ulah"].."\105"..e[B]..e[t]])or(function(l,e,...)if(e<s)then return(b(l,-(e)));end;return(H(l%n^C/n^e));end));F=(i[""..e.Wlw9W1D.."\97\110\100"])or(function(l,e,...)return(((l+e)-a(l,e))/n);end);b=((i["\108"..e[h].."\104\105\102\116"])or(function(l,e,...)if(e<s)then return(A(l,-(e)));end;return((l*n^e)%n^C);end));if((not(l[""..e.Wlw9W1D..e[u].."\116\51\50"]))and(not(l[""..e['Wlw9W1D']..e[u]..e[t]])))then i[""..e['Wlw9W1D']..e[m].."\111"..e[t]]=y;i["\114"..e[h]..e.ZDU7ulah..e[u].."\102\116"]=A;i[""..e.Wlw9W1D..e[p]..e[g]]=Y;i[""..e[D]..e[h].."\104"..e[u]..e[B].."\116"]=b;i[""..e["Wlw9W1D"]..e[S].."\111\114"]=a;i[""..e.Wlw9W1D..e[r]..e[m]..e[j]]=F;end;local n=(l[""..e[t]..e[r].."\98"..e[D].."\101"][""..e[u]..e[m]..e[h]..e[c].."\114\116"]);local n=(l[""..e[t]..e[r]..e.Wlw9W1D..e[D]..e[c]]["\114"..e[c].."\109"..e[p].."\118"..e[c]]);local C=(((l[""..e[t]..e[r].."\98\108\101"]["\99"..e[g]..e[c]..e[r].."\116\101"]))or((function(e,...)return({d({},s,e);});end)));local h=(l[""..e[t]..e[r].."\98"..e[D].."\101"][""..e[w].."\111"..e[m].."\99"..e[r]..e[t]]);l["\98"..e[u].."\116"..e[U]..e[L]]=i;local l=(V);local n=(#E+M);local r,m=({}),({});for e=s,n-o do local l=_(e);r[e]=l;m[e]=l;m[l]=e;end;local u,t=(function(t)local e,a,i=x(t,o,P);if((e+a+i)~=J)then l=l+Z;n=n+O;end;t=f(t,z);local l,a,i=(""),(""),({});local e=o;local function c()local l=W(f(t,e,e),I);e=e+o;local n=W(f(t,e,e+l-o),I);e=e+l;return(n);end;l=m[c()];i[o]=l;while(e<#t)do local e=c();if r[e]then a=r[e];else a=l..f(l,o,o);end;r[n]=l..f(a,o,o);i[#i+o],l,n=a,a,n+o;end;return(h(i));end)("PSU|24822f10276277111027910181827727f27D27624K24h1527f27827b1127921d21C27O27Q21F1227627P101E1c27w101314172761P1P101i1I2771a1B27p2791e1F27t10215215277131327y27A27b27m1527l101H1h21321A1927622r1c1t1t1q111t171b21U21b27E102311k21921n27e1b1921U1Z1427623b1M181t22b1y28W23d1g1c19182341k2761I1G2822112111027J28w1v1V277122821I1J27b2aA101x1X101N1n10141427Y1c1C2771I1h132762aN27Y21A21A27723o23u1e2761r1r27727H28a2a82B42aB2AD2762Af28d1A2A62Al2BK2Ao2AQ2aS2Au2aw2792Ay28O1628W2882bi2a92BL2531J2bN2aG2761G1g2BR2am2Ab2aP2ar2at2Av2Ax2az27x27928M2aH27w28p2762902921029429629829A29c1X162931H1n141L1H21u2192bQ102381h29U1s1d2D921221822v29f28b2772An2CI2BW27p2aI277161728G1021t21T2b02bj101Y1Y2c52bt27Y1E2BC2Co28l28N2762dV28v2cU2152EC2df2dH2Dj1h219219191S1L1N22d2D32762361n1m161O1821U2Ex10237171l1l111622C29129329529729929B29o29q1022s11141523c1s2eg28210162D42dp2b42101123o2402a5101r2982762ct28A2B22G0111X1w112f028G2FZ102112131227y21L21k27B2B12b32Gl2G12gF2gH1M112AI2gk2Gm2Go27921t21S27B24K25b2bf101v1U2fp142C028s1027R28k21A21b2Gs28C2761Y1z112gt2gD2Gx2gi27p2H22GN2Gp2GR2G91o2Hb2C427y2hK2Ed2HM2hO2772hr2Ht2Gc2gV2gE2gg2hX2ht2hP2Gl2i02792GQ28k2cq2g92gu27x2FQ2cU1w2861021v2181T1n1Y21E1s22629P27622v161C2f42Ek27621Y21B171A1Y21B1r111721J21711151821v2DC27621z1y28Z21i2d71V1a1621u2Ix27621W1x1m17161t1m22X2ce28a2Bs2Ig2Gx21k21l1128p2GK1A1928q121321321227B2Kk2km2aI2i721E2gu2H02ku2KW27623O23V1F2Bd2g827c2dO2Ki2112GW2Gg2kl2KN132kp2KR2l42Kv27o27a21i21J2KX2Li2km2cL2iO2I22hI2Ir2Bx28R27m2aV2cU2F622c21N21k21k1T1p2242102GU2371a1n2212181b2762372F12KA1n21m21O121d102232Ml2762201X1d112151Z1e151D17192322cW2Ak2cg2Bu2cj102l027921n21M2Lu112Lj2ko2IL2Kq2Ks2L52lq1121N21L2822kn122ei2ED2m12m51f2la102132My102N02N22n42n62n81921S2jE102242N52N72N921b2151f1A18192EV2K61022521818172151I1s2322j8102jA2jC2k52Iy22821O1D1o1s1n1122c2O92mo162mQ2mS2mU2MW2Jv2iZ21B151C1B1q21l2OY1722129x2762341j2po2232oV22B21c1h1R1P28522c2mF2MN2MI2212Ff102PB2Pd2pf21h2j52262O92oK2811D21O2PC2pE2eV2M72m92MB2mD2Pq2JX2jZ2K12k32p92EY1n1k141s1R1n23F1u2a61s2eC2An2hU2KJ2ii2gz2av2HW2Gz1b1b2RR111a1a2Rv2ai2RV27d2rV28g2h52E22A61R2Cw2lg2IH2Gy2Jr1523O24e1q2Lb27b2HH2rm2sA2KY111D1D1i1m2Fm2nr2LO2L62aO2Ro112rt2rV2rx2RZ122S1182Rv2Fx1I1L2iY2H32FX2771714132dv27n2gP21N2NY27921J21I27b131U1T2872892ci2Lj2A61U2CN2SU2KT152Aw2o22Ef2BX27F12142D42o721J2Kg22b21i1b1a2161x1R1t2o51a121L1T16112q028W22c21p1t1O29N2pQ22b2131L1J162D62qO2J62Q721i1H21J2J11n2FL27622c21d1T1C22B2P52p7182302Nc1N28W2H31x1Z121N1L2aI2T42vw21K21m2kT2Ll2Nq1e2by101g1L152aI1h1G112121Z28W1h1l142WI1528G2fq15172TM2Ee2dw2US28T27f2SP2cu2qF102321B1I2282162mV2Iz21I2861N2PV21J1y2jc1N1j22x21N27m26826K1O2f62361j2oq1b122222P52311C1l1S2272f621V1521G1J2P82o921u2lt2g61122k23a2171O1P2212P529s29u22B2Ov22E21f161N2Ul21s21m29f27m2CV2762Ya2792JM22K22v21123c2422IT1022W25q1o2Qj23B1o2Mc1O131H12162rg2ED21n2Xl2762TW21K2Fw161I1Q29F2VU2vW2vY2aJ2s82762NR1i3102101A2w82JR142132112AJ2tz2b4212131X1Y132RA28Q2ge310k310M28V2L42O128a2ta2bT2Sr2fM2Sm2Sy2KO2e42or121I1P2Mm31072Ln2kT21w21x28K21P21p27n102Zo2772ZR31071a2zV2ZX2Gn2vV2vx2VZ2S72cW3104310631082aW2U3310C310e2CN211310H310J310l1K310n3125310q2wp2U228w2M02u62eI172iY2O831172QS2MU2qV2QM2Ou2iy2942791B2YR2yN2PA2qW2PF2pH2R32JY2132K0142k22k42O922e21R1R2Us1K1d21l2121M2Ev2q1102212192Os1121V2vn2Jb1822z2ec1i1k2ub2dr2aq2mA2832lL2Ss3103182Go2tH2132132B0313v2hv2lv2lk2a72822u12nt2zq2SY314I2sc28V2sN27P2td2762tf310n2782u22u4312E2772Lx27M27A2Iv2O72yk29T29v2p522z122OR2242VB2j9121H1q1f2Jc162PO11181h1S29B313O2fm2231y2or22R29f25S22G22325F21U224313T2e42H32B621828224k24G2Fm21Y21w2W52gA24K24s29f1v1t2h42m528a2IL312331412St31092U321f21c2l327921q21P316V311h21k316z21d21H2FM27Y1D1828w27Y21x21Y316z316x316z2m12tD192cw312J2762x4313U101F131s2Dx2Vf2PQ22n2HJ315g18315I2mV223317u2hj2X51u2jI29922n313p2y8311722R1B1D1627d2Po2oT22D2142o622v315d161j1M2Zw2WL2fa131E29n21D1m27622x1q21821B121T2Be1s2tZ31051D1n2192MT2mv318i2oV317v2xB1A31872Pj1m1h2Yr2Fq28F2up233318Y28a2vs310w2IF2SA27y2E12B031422IG23O23m2UB313m27P2O1313U313W2Gw2Bv2VZ312H2dS31272S02BV1j2BY311n2b41W2Wp27Q21j2ub27Y1w2132Iy2Fc1727l28W2H231aO314p102dY2wx2m22h521W2wK2WG2122121028v31am2GL31AO2i731aR27x27A31au31aW2dX31AZ2u52bG31442FV314Z2ed314W2Fu27M2Ga2132oV318m1h1i131B1O2292pQ2JG2Re21i31331j2EV2sw22X2322Iy2h22aB27Y2nk2nM2IJ319z2S627a27a31Co2761h2Q431bC28s27Y2M12l02oS2Cu31Ca2Jl1N31CD2D731cf22D2o9317m2a5317P317r172Vf2p522c2eR1L23D21N31CH226313i2q32Q5313I2381L318U29n31c2315d31c531C72292f62381d191L2kq21Y1W2A62Zw2gD2i727v2Ed2h62H824U2dD2HD2fc16316l31Bg319Y27U2wU31eJ27i24V311731EN2Fx2bH2DS2gz2AI24k31ex2bN2He28P2rX31br2a6310v2Ig31CN2NX2Zq2zZ311S2HI31eV2sx2Sc2Av2t92tb2in31702Gu3129312731EI21V2aj2lf310h2TI2fW2u9319Z21U2gu2wL2wN2102w531fF282311Q2w32wU317331752U32Ws2Aj319V2im2Zk2DY314q2tG2Ni2co2tk2wu2m128V31g131BV2hI31Bx2nh31bu31402cu31Dq31D631cc31ce312P315C31c431C61o23531ck316331Cm2NJ2nL314K31Cq2s527831CU31Hj28x1h1031Cz2S42Wv2fu111f2ec2lp318Z31DR28W234121r171q22B21R1O318Z172yh141e21x22a1N1h2jn315N2N921z22731771f2yR22c1731dS2Q4318031Dv31DX318v2f52UB31e631E82kq21t31e031HB31e331dD2X531dF317q317s2Vg1031DL31e82r810319021j1x31Di1i23F21n2172cN22121331IE1E31D91431Db310D27622n1O22o29e2762381r315n1631i6192222192a631Gl31es2Hj31EH31fk2h727I31EL31f72Hf31eQ31kH2g131Eg31EU31Km2ac31F62hc2HE2AV31f12Bv2Gz27d31F531EY2hE2Rx31Fa31h0279112yh2Gs314A31gm31cn31712zQ310P31272rt319Z31fx31Fh311r2Aj31Lg316o31CN21R2fM1x211142XI1431LN2h531G531Fc2TB1x1431g1161331aP2E021x2fm28Y31HS2112842w92m931FT310K21K21n31c628f27Q21G31792Fq2132X22l42I82gB2gu316o2DX27B1728431gR31h12gp21M2GU1I310F2gl312431Ll13317I23o24v2172bd2zh2762102102cF310g2LL31122W81I1v2X921131bi27a21d31bk31Fk31b927X2u321g21c2Wr31Na316z28i2Iq2u6312H27m2bE2CU31k62dE31K92Kb31kc21s31js31Ic31Jw31JY31dB1331nR102UF31Jz1h28f31IN21Y191t22a22831i51v2Vy1h21x2261b1c28i1A1d2972861b1N22B172o92R42jp2jR18313g1b2yj2fM2vo21u315b102222112DX21q1y1r31pA2d931Ou1n23e2Yw2762682671O31532Ym2qr1z2qt312n2Qx2eW2Ub22X1P2dg2JM23F31Qe27721331DS31I531I722B2F631Oz1J31P122731dk31dM23131Qx1822022V2OI22s1D1Q317Q2pd21g214318y1i315I31jF1W2271921Y21o21N1Q311f102261X22731p831Q831Pb31pd31pF31PH31pJ1q31PL31pN31p41q1r1a21W2Sp22c161b22H2271122621T28J31k9319A31p7151N2N61a21v22b313g31JZ2Ev31Ol2Uf31Da1n22031sB2ov2qL2qX1131qw27M26o25R21J31QX26w25J1O313i31ju319J1T22n2wh27631R531p12JN1921Z31p431p631S431Q931pc31pE31PG2OQ31sA31sC22l2761931482cU2P522621B2jc1w21X2a62Um310W1a31IB310731MS31BM1Y2NY2tH310t31fP310w31Lg28e2DZ21l21L31a1310y2cH2bV2AT1K1k311k28p31cR311G1U1v27b23w25621i27x1K2Fb2sO2x91i1O2Dd31v031052s931fR21d2L22eD314e2av1321i21h2tu2aO2132yr1G31i71Q310x2B4313L1x215181n1V1831V931wF31wH31wj2s231Wg31WI181Q1Q23O24x31w41031Pk27d1O31uP2GX21c21d112fA1I31uM2GL1y17314E3103121831Lc21d21k2nc122Kg2BQ311M316n21A31UR1u1i2cn1x2192812802Fa319z2223117112a221G21O1831lN31Bm2152cw315K192Wd31Ck2Lf31XB27Y1g2f328p21D2pc2102oY28v21d2121N31yo315L1h1x31W71N1U1931WT1H2vk21221A2Os19319z21Y31cK311631WD181i112C9310731Ni2h221B319J2DX21d21m31Y22H52232Dd31yC21g21p192Rx2GP21D2do31fD211313l1i14319t1A31nI31Zz29f23o2462HP21o21q2w031cd31M62Gd1i2F931432H4102ip31UL2o62sa28C2hP311331lC1W1Z2L3314u2gS32022g12p22Ec320W2Ly2Gs31x9320t1b2893107314431aT320z27X321131fB102x027F2E62Cu31k1102331s22C31OR2Oa21o2au2xf1H2QO2MI1d21W2pq2xY1p214312X2pg22C321q22x1D21v2Ud27631S122731T131t71122B31SE31sg21v31ud31522fM2xY2Y022731ol1W31t12jb2rw1n22C2XQ2XS28e2xV2P531j31l31jJ2QL2zk21821921v31Rg31rI31rk1O31RM31RO31rQ31892f4313i31q31D21721923031qX31TH1O318K2vh21d317I1L316I1631322R61631rB27m2261E22031qX31UE2fm2yl29v2Ov2342di1o31W92Og2O9220321x141Z313331352db2dd2R4324631342r72p522s152FA22X323W227248152E72Z92ft2Tg2211L2OA313Q1m22l22K1T1d1e310L22E22528121U22H21z1u220325I22k1831OW31tu21I31p031p231ty31u022a322k31T31131UA27z23821P14181a29822c22117226172pQ2221p1S2RW2D32PU1131jF2381t326G21u313I22U320831WY31qQ318Z31QT182Jm22C2O727621B22K31t231cf2yd23j21131SX151a22k2241S2ur21n21p2gz1N22723G21e1G21X2222u3141T2211C2792J328W31DW31DY21U21C2aT31jG324131E832441W21n21r2Pc323D21329A1l1f318E324927g2201V317V28A31XL31032BQ2H22lh2sC2bE2B62hN31Bl1121z21x2wU1G1J31Nc28A2B431m82Ax182Fm31aa329h1431ly31m031ak1S1s31b1151x21031sw1I15329527921A21731Mv1521v21y2wD320O21T31MF2ZQ31lz31cf31M01N3115311731O0151i321C31031C2us2U321d2xB320J310731XF2jN1621G21e318f31xG31Bm31aV27x31BP31Be2a61f2Tt31bh32al31NE2111z1631yx1621K21Q1631x7162G52uO31Xg2A22132f632Bh32bj1631wT31nd312231We31WG21k21C31xG2ht31UO3103310732BY2b431xQ1X21631PM1S2uh311m1c2RH310732302Uh21G21q1a2Ay2sZ31SH22429f27y318D2UB32BH31iJ2pl2gz2791i2vS312H132m931w531vU2b431zL31Yc31ZO31ZQ2E031ZS27i24C2zs2hc31e92AF2EQ2zq2142ot1t2UO2T432DP1N32CF1J1J23O25832dj21M21D32cg21C21c32do32DQ32082LL32BD32Cb32cD32Dv318D1D32Dz32DJ2J228E1B21g21G321I2tr1k2Dd1X2171A21c21M31081e1x32DU32Cf31vc2UH21H21i31mR23o24t2Ef21O21L32A931v22A6329G32BB1i21f2aq310732ap2Gp21O31792KT1u1R28W23w25Q21U2762wm1h28v21Q21q2A6316N31aO329W329y32A02JM32A232A42l731A52761Z1X2o01521u32Fv27a32Fp1Q2fM23w26722B27X1g1h2aV21W21W2Ty312231m8329P21k21o2D81l31x82o632CP2uS2kB2132p532h032H21W1W32c92GL32bF32cy319n2RX329M31XA171x21231Di31w927D321531XE31xg32Fp1N31yb2os31C131Aw2KT21i21d312H31b531aY2fp2G922L22M32D831ZC2GL31M831Wc31071f2wp31BM21231As2kb2WP329L32ff21132Ig32Fi310332Ij2gp326F2A632ie32IS1432D328W1A32Iw2791W32IM27X32IO32i931H02sp2m327f31C0321q321s22C3238326Z2F4321v31jU31Ot31H823J2X931lc311i2Zq313Y2zS2L02th2NW31uU123147311g2182182B0316n31v62nG31Hu2b7314T32D631Hp23o23S2cn1z1y27B31La27Y31X1311G2Eb311G2M131Vc2g72cu21f2g522831Cx2y72xz2D6236319023722p22P328A318v22531Rc31Re325a31oS2QC31jx31H822A31iI31iK1731IM31Ty2Sp23331Iq2yr326Y29a321q31K322O2y632lF31IF31qB22A31fX319e313N21p2SH313j31jV32Lg21X22u213317831z831SI1D32lK31iL226326n152Q62IY2eZ2RB2RD2VF31E531E731e91921t32jO32m932m031H822d31iv2q532ji321t2ov2251y1b1h1p191M2Pi311721w2112fA32k62O5315I2Ev31302R532502K42ov31jl31JN32ah21s31Q122A21J2Y0327M2Up31IK21J2132uL2V51231Do31OL31k831kA31oP323o21u2o931c32Jr2Yr1d1P1g1m31TF27f1G22822v31r031I631i832Jl327031iY328B31R931jI21H2hP2Uf31Hr29A31ty326L31Jw1z21F1r1D21a22531Ns31Uq2ht31vr2B4311P31Fi121m32d11021A316627x2tH21z21W310n2sl32gz31Lz31M12EB23O23Z311731q82Fm2BH320l325g32iF32j231A232j531mD21l32iy310u31M72w921d31mu31EI32ac2AC24x32qA1V1r32Ag2O532aU32j12i732qm31fk32qo24K24y319T32qS32aG32DX32Jw2AR31ak31x132R232r432QT2Cd2FA321k32py329O32q031Ak32q22482FT2g61V2FM2C428a320M32qb2KP32J6320P32QH31lv2Fm24K24032En2hC32RE1G1U32Cj32Ri329P32q11e23o24G31Ox32q632r832rt32QA32j132Am321d32Qe32Ix329L31lt32Ig32Ir32g4329X21K21P2N72sq31X931PI32i731QZ28W32g532aH152t0329X32t632CQ2h532qo31zf31Zh32Ak32SB319n27D319z31O62aO32t9319N31wL2bv31w931X1320X21432cu32bR2F627Y21821631as2U32PE329l310632Ak31b331b52m5314y32jG314s32J32fX23O25H2S6181D31ap32fD31N12B431XB32hp32hr1732q225721r2bD315n2762Qv2a632ru21131XB32j332HV2gp21Q31Bo31Id1V31Aw28h1931Ck319x32Uo32Hq1n31W932q225r22332uv2iy32gv32uz32SK32v2311231Xf31c531hR2Gl21831Z832ar21n31zt2h522031Yb31y431Y6317i32V532VA27Z1a31752Cp2U631m331bV32jH28232jJ32oW32jn31jT32mz32Lh31T732JS329832jV2Nf313z32JZ1232k132Pt32K3322R32ty32k732G22DQ32KA2DT2dZ32kD32EO31cv1032Kh32Kj32KL32902ED32KP2ed32Kr321K31vC2yH2Cu2o932NH32nJ21832nL2vx22D32ly31JK31id32lG32m132M31031z82j0311732oh1532OJ32Ol32Ne32OE32mY32jq31T722d32NO324z3135328T2bG31RE32lv31K432mt31J41923e327s32M732JP32ma32Mc32me1132mg32mi32Lm32mk31aY22332N522C32OY31j032NS1q31Jm31Jo21S2oV32mP2rC2rE31jj32N832Na32nc32NE32nX32Nz1S32O12d91132o432o6323N2fM31JH323a32lE32xw32YC31t332lJ31IJ31iL312h32lo1D32lQ1831iR1n32lT1732wk32yI2cc32or32oa31on31KB2N921S32n331iX31i331R131i832P2326232p531In32P832lg32pa32Pc21021Z2A631UZ28f32ai32pk2w131Lr32DX316532K232Pv32PX320232pZ329Q142Sp32Q332q532rq27632q831sW329n2nD32iV32qF32qh31er329i31mt317932tC32S132QQ2bn32qt2Ay32qv28a31EE32QB32QY331X31ME32S132r333212hg1c32R72Nf31M128Y32rc332d324232qA31d12u632s027I23U2B832s514317I32xH31UX32qB32SB31ak331i24A32CJ32SH2g62Hb329z328e32Sl32c632II331S329L2Rj331P319x32Su1532sW28v32al328Z31072n831Ax32T32ZQ32t9329Z2O532T5329z32Qn329l316332G432Q0319N314Y21T32tL32T532TO31va32TQ1728Y32tT32tv1832Bs31as27932Tz32U11432U32A6320631AN32y62Ub31B42fc32u92w932ub27y32UD1623O25B2zp32ui31AP21F21f32QW32vf32uQ331I25931V32g632uW10320I28a331O32hn31Vq31vS32aw2io32v632B532v832W9318v31ck3202335832VH17331i25D31Uk335D2iY32G02A6335I32V131xC32FF32BP32Q92B432vx310a21D32w031ei32W327x32w531Z732W832xI32wb321k2rt2u82NH324F276322U2Y132342XT1222T2DO316N32pL31lr32kc32ps31CT313n21S2L32th1k1M31GA279329A2W02eA281321K316L277321m213322g2oa21p1o1C28J161D21i311f1r21021D2v522b2qj21V2171932Dx2vX2d622D31oL22821R1s1Q2962US31PX29R1M1j1s221318X318z31913193319531K9319832PC319B319d32Y12Ev2X22Mh2Mj2oV2mO324721U338o1023028P22421z315D22C31P8338S22722731P622B2MI22622G22n31Tb32292PH321v2Mo2d632iJ1p1i325n318p21v330I32oc330L31QL31Qn322922d323o2mo31Kg2vt2aB23o23K32q727e2du2aj31a22aN320c2hP31OJ27631EQ32BD32kA313Z2T83326320W3146322r2Ds2AT2Rt335K2HV31ad2h4311q310031LQ310031gr31fL32D931lh31O231vy2HI21L2TL2G91m32Qa2C42sL2aB332y31v02gP335C31H032UA2U82kn31Cw1g2122X8276230335631ry315L2Oq2xL231111K2Yo21R31WT1b318V22r2Ub331Q31gm24K24N2gU21Y21z27B2TI23L23L1021B2182gU316l320x321h28x31cY31g931vC32wD314x29q2tI31mx2Gu23A31Sr1v2v12VB21D217317p318V1122O329l32k931H12Dw2Dy2wF2wH31BD31hU31d231Bu31g128R332o2Cr2U821031Bd2Ld27M21A23222V2OV2k82Ka2Kc1m23531qE21S21B21B22V2Y333cU131t21t33C92iy2J02J22J42j631uf31UH2F42P522b21M1J1V21U2x2317m22U1G2A231TG25R2Zc2cw2Q82d6101b2152Qp32yL22731QX22c1k33E62Iy313833CC31j031dK2Vj2Vl339331i61o21M21Q1k21s33972VI2vK31472Kc31iF31YR2xs1t2zI31Cf318d1q33EC2xM26721J23227M23S25t1O2pQ33G21C2Vd28p33El1k339729o31XF2XZ29731Sg21c21233G833ga2xd31ri23525h2Wy1G26b1o2oV2dF2Vk21L33fY2OH2eC2JG2jI2JK2jM2Jo2jq2js315p2J9313Q324W2jW3131324u2r72Qj33go21K219132n922331oL2352rC2oR2121U1k22723723325626h24m24B27225731Tn28w22D2ep1422N2yV27M1k22C22v31oL33Go21333ey33f031oL31jU328P328r2k42F622833802xd31i8338b338D338F2ur2uT337O33ix31W7326Z1E2dL33GR21T21B1k324e1032l72l725X2292sI31bw331531gm33b52VZ2O523o33JU2BD1P28231eQ333b2Zy1231Ge28832ih311x310a312031lQ31Ge2as1I192hb33kF311z321q24k26C21s2bn316J31nQ2sk21e31Ec33jz32PM312h33b13118314S21T31lP28A33K931NG1331mp1333kD32qd32Iw31mW2X21H21c32HP33D11332QL1533E031i51R1I33Ky31Nt31fu33I231xc31ws3103310931m42gU33lO2102131332pO1i32B9329n333028531XC21j2aB333C31Xd32Fk2ZU33mf31032N832hG32BP31y3334F2p52d61621231Mj31fo33MA332z32rK33md336a33mH33ML33mj1I1e32Ro32t11I33N433mP32Br33MS21f1y33mV31MK33LJ32HP31Mj2ai21d21a1V33m531g61V33JK31mj2a6319X331F31m133L2311w32IJ32vu32aO33mk33mG32t1333Q33mS121J33NH31fO33nw32rJ331g33nz311u33o1311W32ap31xT32CJ33O62DX32ha31Mg21e1z33ob1421D1x1g33NQ28B21d2111k33nQ317I31YM1d33Nq27d1322R22o32d833k9337233KC339W32Qd316r310B321Q33K033Lr31Gd2W433kK334o310733PI33kH32xb26c33Pb2G633k62762212212A633PD331733PF33Ke33PS33PK32Pm2Be33pL32PO1h33NS21231G92G933pa33pc31Up33Ka33q533PH311Y33PJ31GC2w233Po32AH33km33m033QO33pt23o33Pv33k528222h22h33q233qk33pe2W433LE316Q33qw33q831Lr33qa33QR2H431Gt321K317i27F2L42CU2zD2zF1p2ZH2ZJ313631172jg2A11821721521C21R1C2X633Bz2XA2XC2Xe2xg31wh1J22t33dK2dq32932gI2we31bB21331Of33dY2782Kb2CU33S221v32at33j92XF2xH1j21y2Pq21V33s62XI21h31dm31jf21X2171r1O2222f621y2152b3131O2x72x933SV33sR21E31ys3309312U33rm2ZG2zi2zk328t32v32Rn2Sc31CW2WM21233SG2a631633372310027p33Pl28P33dp33tU2H0320O32kT2z82SO2CN32I12762yp2Yr2UL33EM2y32Y52Y72f42sw22G23j339P312o2Ph33a4312m33A62SW22H23I2o922831Q72hG1j33FE33801622b33jb338E338g2UT33833385338731iJ2eV32kx330T21033UZ332F33V22v521J33Ui2P832Oe33f22X523331up33L3310Z2Sc28p2RV2rq2SY2s22ii2Vz32ue243328e2QB282314p2hw33w332bG33L132hO2Bv312733L2316n33NX31Ak2T0310p329z2s02zz319N314m310P31W92l033oo2P533cH32Tg333t32T728f2tH31O3334k32aS32V7333R31fM32BV32w72FQ21D21l334e1513334h31hv32y12cW277336p2O731Q1323R22523G21n31Hx1i21d210338L330533It2Qj31Tc2QN2qp313i22E21j32OK1g31JJ32Ze32mR31jf31PZ33Ur2qu33a632n72Py2P12p333uO31tD22c2Ov324Y2v31l22B2O933a02pT2PV31472fa1733yN2Iy33fb2qB28523g2o633bM28a33aJ33sC2GZ31aF2sy314m2SY33u02sy2FX2t12ry2SY32W731Hm32R82LJ32Ht2nQ3119314H31FM33sD320o31Oe337J334v31GX311g2O733su1y1F21933CU31bE2n222U316z32wS33ay32KS2U6340028r2133403340534072N711340A2zN2Zp332H328E31H02Dv2bo3402324x33Hv3395323Z2f71731Q8337Z3242324432p633EE29f338C33V733JE221337O220337q337s2Fc337v337X337Z338121E32QA33Hj2jj2JL2jN31Ps2jS33rw21121b2sq31JG33yE31qO2PF338a29f32ob31Oo33a3311731pr33Ho31pU2XD22133Yl312Y32Z53289141p330L32m62k721931sb328Q318E21X23821N22723421l2C91R21t2342Pc1f32nA2261Q21D28Z33973224342O33j4342r342t22r21i2dx1R31Xf31T831sB327232741T32N231i331qu2pH341N27622U1F33Hk341R33HN31pt341v341x28c32jK322T2Xz1s22O31qx22h1P22v340J34062B3340M21u323h31rJ324L323l28A31rq2SW23422f33vA33862Q433vd33A731pY33hs2QJ2xY1632vC1T1131IK29D29f341F337r337T1D323v27M21222U22v33Yt33851F191221i33yQ2Da322R33X731dt318031qj29V32yL21Q23d2ri2rk33Bn33pq33vv2Gi33W1314L329V2sY2fA2sN312h27y21421528k2CT2aI13337s32d833N7334P32U72Fc27Y314y334Y2bA2Ec1R1U28w321m21d1Z1I2101w31M231Ur21j21g2gu23O23X2CW32UY2ai2cd32B832ba2b52bz2cN2HI32WS23o242319t27H27p31V932WR340Q32eh2BD2hB1032pO334N319t313x2NG2s231v731be329v34803466348033VX348032wV32Xa2rv31v927Y21v21V28s340D33KK333N34602gZ2sp2cI31R6315D31Ik2h531kW2Gx21S21T345231c433QU321E320o31MM2L724Q332t33t32Gu21421432Gx31032Kr32hm32qx31o232QZ319Z32qo2L421G21I2U92tg21c33561033BL32PJ33L4349B329I349D332932aB31752Kt349I349K32Te31nt2Nz31GG32981W21132A532Y62gu13328L32d831Zg310W348x33BP32j731uT32Wy31Uw345Z33Ar32DJ332529f33av32Wz311j3480314M34831l23O25v2753336277348d347v2Bt311K31eD34AQ321f33Aw34at2nG34av2ng348410313z31FO333b34ar32K42l734AZ347r27722532pF28A34aM340r2ld340d34BD2Bw34bf313Z2o51I34bJ34B934as33Zo2zS32Bx32an348y2Nz31UW32ci34b5348027P23O26d22P34bo27622i22I2A634CD2GL2AB31Xi1931nQ33FD2x534aE34cQ28a34AG31Ms34aI32K2310T33DX34co32Cj347X2bw31Nj2442KG347l1122s22S2A634Cx2rL34d02dZ1W34aj27a31Uv312d32Hu34cy3205347W33ZA315k2t633zD34642SC3466314C3468279346a346c2b3346e23823B346H32RO32u631GO334s31B6346n2vs32UE26Q23a2bD346s276239239276346V346x346Z32WF3472347426t23532uX321X2AI23c23c321K32D51P32M733op33Hr2p833v633Jd338H313I32zI31Y322333vq2x6345R22b33fH31qx1m22e22v2x222121M21E22U33Ul33un33FN2YQ2ys33gs32Yn32mv2321226523825v22521j26l26033hB312w33UP32332ub2y42Y62p8341e341G3458337W2G6341L33V4313I2372Zi1m2yi31dv342I342727633Uy332233V121533V322b32yF33HW33RR276312l33YF312o22D344Q33vc338934102f83413328G32432uR32P623A28z33uu23I2Sw22I2231G3295316M2DQ33LA33lC28B33mo33lG1533D731lk31261332DX33Lw31v923o23W29F31Y7310N31OH31LB2KB2i4347431ww331M2uO27p31la33VU31Yh27q33xD31ei31Za335p319m2iY24k23P32FJ1v1O2n91933242TW21R32I633Mi320831Z832i02Ov23o24132Qa31On276332g2Ds31w928Y32up32X634Jo2Dy2G224c31UP34jl2NG34bu2hy349Q33662i734iw31fK34IY2aC34j32bN34J62sp329S311T32Un32Ho32Vg31W933d22hj34k531z932V721d21d34bB310M347Z32R932Ag2dS329Z31x132Ih34k32Bz1B31Ck316N335821K34JB34i331Ne34jE31Yc33uB2ao34kH1734Ib34ld34id32Sf32Vm27632dN34HZ34kf32uP34L531xC28B34l8320934jG2iY34jr31W934lf32Uq31Wl32Vg319n2Eb1322B22832d834k231Yh33X234Kl2h534K731AX34J027i26G22434KA34J721m21m33kI34jb33l2311234lt31uc34jH25g33Kt336127633632Ao2ZZ34jp31yW32VG2VZ33u034n034ju23O25j348E34mW1032GI33b734n432pi2dd34k334Ma32Cu34mc34j134mH34mj2SP21Z331128a32U5335v34kI28Q34Nj34IX34kN31KK33b531272S22Zz31ak2as33b534kW1O31bj33CG32ie32t123O25Z32gQ2g62LC32Lj329833X533AA31zd33Ov33oX2Oy33kd321a313L32u7318v34Kj31lc311G21L32002Zq31yY31Wj33U031wq31WJ2aS23O27034f41033fX326G1822j22j34p12yR34p32Ge34P531wH1n34p834Pa34pC27d22m32iC319u2vt32c031wn182Cd34pO2bD1J29f33Js33z8310Y313l2aX326g34OM2gL34Pw31Wr2fA23o26L22x34q129f22u22u34qA32031834OO31Yu32pO34d528a31NY31Zd31wm31Wr2kO32U532vx32ez2ot31z033vx31YY32DR33U032et1N32Dr2S231yy32cf33u032ED32cF34O632cd1219312T32Bg31yY1R32862ge31xW2ys1c32Ts1D1c21W22531yb312s1329F315M1d2121W32b11322g34Pg349O2tv34p232c434Qw34p634pN1J24727634Fu329k1423f23F34ph31Wr34P434PX34p734sI34sK21E34sM23i23I34QM34QC31wj34pz34sv2G634Q227633Cq2a633aJ34q72bz34q934Pu34qv34Pl34Qe1c23S34qi27623q23Q34t134qo33OW34qq1m31NX31NZ34t232602LL34QZ1934R131yz2KR310I34R5319J2ge34r834RA2t634rC31Ms32cc32cE31PM1n34ud21c21n34rL32cY34Ro33U034Rr34Ro34RU34Rw34Ry2Ed1B34S131cw2DI34s534S723C34sp34sb31W634pi34se34pL27D23o21f25334sK21l34S11824a24A34sQ34pj34sF27d1834v834va34Pb34VC27d24d24d34Tp34vJ34pZ34V934TL1024g24G34ta34q632C4101c34tE33tp34qn34vj34QE21824o34vX24L24L34Tp34Qp2oY34Qr33d32A634Qu34qb2t634Pl34Qy2s934R032du34r334U42yr34R634U72mI34u932CR21V2211A31Af34UB34re34Ue34o634RN34Rp31xv1C34RS34uQ34Rx34rZ33fD34uv28x34Ux34S633p824934VG34V232CY34vI34pL31x123O22b25z34sK21R2Js1825625634vh34v534px34XU34xw34XY34y025925934Vt34Pl34pz34Y834T629F25C25c34W131ZD34q82dO31KH34Tw34qE22425K34Vx25h25H34WG34Tr34wi32PP2m134tU34tg34PX34wq336b34U034Wt34U332cy34Wx32ES34wZ2OR34Ua2Yr34Rd2GE34rf34UF34ul34xb34Uo34Rt34O934RV21V2271C346834RV34XG34uT34XJ34s334UY33p825534Y334Xq34Sd34sS31wr34V723726V34Sw34TX26226234Y4350631wO34VL3509350B28p26526534yd34pX34PZ350J34YH31qF26834Yl34WN34Yn350O34qd34ax23026G34vX26D26D34yX34OP31pu34Z02u634Z234Wn34VJ34z532vW34z734R234z934U534r734ZD32tj2UH21Z22534x432ho34x634zi34x834uG34Xa34UN34xd34up34zP34ur34Xh34UU34s234XL34S7261350e350434V4350G1834XU2432gz34PB34sX28v26y26y350F34PK34y61O23O352e27934sL28V271271350Y34t31g352P352f1R34T731VZ34Tb34w334w534yo34PV34WO34PX34QE23w31Z8350S31be2U434w7313L34wh351834Qs351b34w834wp34TY34wR351G34U234R434Ww34U634zc34R934Ze32cY34zh34Ud32EE34X933Ue34zM351y34ZO33u921z22334zt2Dy34ZV34US2hi352334Uw34s434xM326026X352K34V2353h34TQ351734WJ33xi2Sp34IJ340031bw340i2Dd33sv340K344E3409340B340q340D321K340G27B354x276354z344d3408340N355334kQ340s34qS2Dv2Ci2O7345N34fL330n2MW343s10341p33HL341s342A3440341Y342g343T343m31dc312k31qm33US34hE2xX3445227344C340l2N221U342L1034392f9343B342s342u342W2G6342z3431343331sb344X32ap34503452326w345F34j8345i345K2fa2dA342E322a344n22f344h323J344K31Rp1221u355q2341p342x32iS31Yd1v33GB21F2111d346v325G313n34gM3457341i34gp337y33v323G31QX345c22v32OE34hg344s338934h8340z2o634HK33NP34Hm3416330L34Fc33V8221322x2371Z357n22M31sB32yl22o355q343U343w33hM341T33RV215341w355x31Pq2jY358Q31pV358d3424330j31KC34hq33x723834GZ2Og31ds343Q2Vi319T356F342p16343C227343e343G343i31T91732Z832ZA32nv31ol3456341H337u26C23K347b310W2ZI314B2Sc2T034DY2rv28B2sn2883469346b2ED346d2kt346g354n3340334q2tE346L27934Eh334q346P34eM346t2X933x5346y1432A11034ew2L7347634F031h1347A2Kh2ne2cm311G347h347j331m33ag33c82g532ju347P32Ut34ck347t319T33O234cy340D2t034au34822ng35a33480333V34aW2nz34892sy32tb2Iz348e33U03480317I349B34Dv314y21D31kk319z31kw2kP321F2nJ31lJ32XB24P31KF2G631no355L34D634992Ll33Lz3327349U333Y32Eo349z31w131Vx32d833au349a35CJ349c1133LO35cm32gK1335Co32j2336533la310M2Af23o25A34MM35cd2GU21h31Wx34A333be34dT33QV3338334P333W152eb349H349j31bf34Wm31Lu33X2317434a534a72iu28V31mB2g921S34Na33Bl35Dq33bn2nq34d11034Dm34D334dq359x35BG32jX1032Dx33jY34bk33AX35BJ340D28b23O26234Pt33An31q22222a635eb347X313z35EF34Oc34C434Bl34Bu34bX2aT35bM34bG2zS2Ko33lu34CA34bA2l735en35bc22C327B28A35et32X533aZ2ru35eJ348035F3313Z34KX35F735eh34bb313z32hL333n34AR31Uw336535fh1034iD26K22w35BC34Q435di34Cy21d2191S34Cu2be353m35e428D35E635E834ak312d353L35fx34bU329S23O34dB35b528s22z22z34wl31Nz35gd310335GF34dN34cb34dq33MY2Rl35eT34Dv35A0346335A21i35A41P35a634E631H11323h34T035AC2a931b234ee31b5346M2w9346O26X23H35aL27623g23G34er2xb35AP35Ar35at32Xb34p935Aw2Ai23J23J34f52IY337L2X931i01022I23h358B341C2yO34g033uF31VA34gI33Vn2F434hJ34123587341534Ho330L34HS34fl34Fj22U34hR27b33um358k34GY342j1923334fO22E22z31Nm347g340q32ju31HP2S32Sb2GI28V23o24s349734pb34Mm31A8332932Ws35Jb31CP32d135jE2gz35JG35JI34sK35jL2Rw2Dd33vU35fy2RT35Jh35jj35Ep321M349b31hH34W4347F35K034BU2aV34jI34Jk347S2Fz35kB32dD34Cu32TJ34Wk337632ws2SL34dV34Mp2A933Ty31AE31gO2Nv35c933lw33u031nh32W731cU31lw32ad331g33U033n0314M31LZ2Zk332e32jU21q32T433WZ33u033Wz35DW21w21Y2Wu2UH27b31hB31hT2Kn2c231w5320x33kz34Do1232K6340E2ww27m2hH21335In34hl35iQ2KC330l35IG33Ue33gS34Fx34fl34hS33UH34GK182DF35ia35Ic35IE338H34FJ33Uy342H35j221s32YL22Z32x231CN35Ja31ho35JQ34Dw2t332F72EF34ml28s2O135mu31hn2nv35jc33w034dX2SC2Ai35N035Jw28S34Is32J035FY2RX35ND34B127635k6319x35k82Hh28a35Nh34BU2l734JJ35Bc35KH35NS336e1A34CU2fX34qs35b92b031kS35JS31y31933wx35kt34rJ353D35Kw31Mn34i92S231Nh348835L335CZ21v33782CL35L231LX33n02s233N035OO2nv35lD333s32g62s233WZ34682FQ35LJ35lL319j31CW1K1535lP33Xg2C328935LT32ke35lX321k31B327635m134fx35me33uJ21u358K35mM35m834G133Em35j135IS27B35Ic34Hs35m335ip328h35IR19359334fl35Mk356U340p35N635Br359Z2RU33ZH334Z32f835NE35jm35q732WR35n835Qa2t735qd35N135JX34iS31HG35F02Se35QE35nL321L31Vp34k235np35KA35Qq340d34v735NV35qu35kH35qQ33M431nR33zM33XI35O432Pg348j314d33Aj35Ob31VC31Cu35Kx31nh33wL34I932Wr35oK33mc2T033n0346831CU35OW32Tm32G632t832g635O232K021P31AS2Fq32a7334Q2FP1535P334ut35P528x31Bb33dR35Lq35Pb337632hE35pE32X231h034Ij27735M135PP34fz35M933eM35q52UU31K7359635Mq28231K322e35IX27633um35Py341435Q035m62Og34Hu23h34Fl35pl2P833Uu23935mt2nj35mV35N735mx2S035Qc35NK21m33XS27635N435tG35q835Qj33zV35qL35Tm35TO311L350V34D82aT28P35Nk35K531VP32U535QY31v434ce2nG312h35KE35nW2Hp34ky34CR2L234cU310R35kM35RB28a34K234DV35Rc35OB32wr35rJ34I92S031nH35rz32wW35OK2L4331c35ou328K35oQ331G2S033N031Y835ov35le32g62S033WZ32TJ35p235lk35S935lN31Sg35p935LR34V235pd32Eo35pF31H035pH35K931H435pv23h35mm35Tb323p35MO35m735SP35pr1K34fx32Yl35sz34F910324H33v5341933jC358c35T3358835Q121s35tD35TF311H35Th35Q92gi317i2rv2L735QT35TN27B35tQ35wJ35tS35mX35WN314J32Xb35WQ35tx34Is31lT35FY35U235Qt35U434B72e9347E3149313W35nI1A35uc35R435ue35X32HJ35Uh31NR34e335rA31CU340Q33MI35Rd2HY35rf331733tZ27y35oe34i8310M35WN31NH310R35OP35L431M135wn35V628f35rt35v932T635wN35Lh35Lv327s35S21521z21U35S535Ve35p435LN31CY35sd35pa35LS31bM35Lu2L435vO34qs35SL35nM35I934hS35t834FX35Iv28Z35wD35M5341735vW31jj33ud35W135Ss35pt2Og34FN27m34fP357y324g315422m21635qh35kn35tt31l435nA2gi2L724J31Ud35wr35Tp35Jn35Wk35zP35my35wY23o35zU34SK35x135JZ35qX34bU31nj360435qU35K633Aq2Hi35nQ35Kb34Bw2SE2G435Ud2a6360834Cs34cu35V135XP31lt34dv2Ko320235Rg28q35rI35Of34kr2t635oI2GO35y32Ao35OR2t633n035l421c21G347035lC35yA329Z35OZ32G62Wq35S735vf354F35SA33Mt35VJ35sF35vm35LV35Yv35km2fx33ta2HB35IA33Um34gT34GV2yi35zc28w34fg19223357P359r341J34GQ34h635Z835mm357Z2cw3384344R33882eV35W428Z35PQ35II34fS34fU22U342033A6358332NQ31jF23B1531R6344p2CW2Cy2fI2d1323b339Q34gH31k732mu2Kq34g534g734G934gb34gd35ZD35WG27B33Uv35MC35VT35Z535t534HP33BX33Ux33VI34H433V326m34Xp332Y316O312533LC2eB35BF32sO33lh360z3127348l31nH34v734If331M34Uu27P34IJ35o332j733CY31aT21032wc35E735DV2Hi32j833xH31bn2Ed1W32tu27x34rV1o1h2CW3350335234iQ1135aY320U2b42142n227q21R2EC319Z22432jT1C1D1M32Pc27I23N31uD1v339x2rt32rG32Wt21H34rV33S02if1A1528J28i21333s223O24F2Hb1R1m2x932rS2Ds1q31Ri1q1x218319a2AT31Ai2aR366635NC33332BD366227629632R82Bw2H132Ir36542i7365731eI365a365g365i339x28V321o35nr32AJ36543669319A366635o2365636582H5366u27a365C34Ko34kq31z0366M32Dr34Bf354232AH345Z366Q2bZ2SO32qw3672366A21K365o363Z35Eb365s365U1F365W2X936731n3666348l366A3682317734VL24u35ZM2G6366j103355367P1d3673367S325N1E3640365T11365V33S236813683368G368536662s2368534RO31w122D22e32d8366P2N233X2366S31Fk367A11365C365e2X924k26u22a2Bn365k1B21s34MV31GD365O2Ay2RM367W368n367Y365X25E21Y366i2X932Vo34mZ2vx366631wT36812vZ33wO369Y1d35NC25P33Q1368b2X922022034nE2w036522gl366q369436782E0367A369C369e2hc366x1534bQ32iz3671368S3674318E2us36ai366T365b357L34o02zz367F369x353X34662ZZ34RG2PG27Q21p2cn34a13107335x23o26533r334Oh35iy22g34oK2pC34KE2gl2171E33p033P22161e33KD2LF36bR32u7330934oW31Ct2ED21l21j313t348i36BR1x21b1E1N1p28i31ir35Hk36c12B331fa2C035uj2E022736aJ31XX34B436bq1e2aX122EC34qF34qh27C32uJ27p34QK36Bp21136C936CB36Cd1e34XU26F22R2bd1L2ec22X36cy1i36C832eY36d636Ce32nl31m9314q33092m533rI2c02X034kJ21T36cO2eD36CQ328y2kG36d436dj36cc36DL31Ir33XF36DO1F2M5336P36DS2Mv35XM36dV36cP36cv2A636di36Ca36E336Cf315I2fM1736DP29Q36dr2az2X0334436dW360F36eG36dz2b436d536EK32nl31Mc36E736E92MM36Eb2Ld319z36EV36cU313T345z36bR36fb2L732xB31nN2Gu23k359U36fh23o2BD331l1034T936fm35hR1023M23M36fg36Fn34NB23n23N2l71323R331M27c34Cg36Fy33BB36E136EJ36d734XU35hP36Dc2Ec23R36g436Ey36cs36gb36E42d42UB36eo317p36cJ2bq2C0367636cn36EF36fc347W36Fe2bZ36eX23O1G24436FI27623z23z2l736H336FO2FM24024036h936h42G634eN1024124136HF2Bd2uR27624224236Hm34nb2432432L734T527E32C424436Hg36g936F036GC352o1823W36gF27624734SJ34ns2S936bR36bT21036bV31ZY35kM35ay27X28I336S2p633hS33J633J82Pv22b35mm2sw23d22m3580362i22d2Sw23E22L2Sw23c22n341031C331SB28V1733J3318E1M23321N359832792pH35Z8362734GO341K34H633eT318A34HB356334hD31Qp35711122W3337316N34DV2eB2Rv348L2sY33Vz35Qa2hK21021134dW36G93214360v320O21E21C2wu2TH2lK131q321d2C433472jB1c24k259321d1v1P31sL32EF360m34NH32hi31Yy319n366D335w33Zi2Bv31wJ34862Ar31z0310R32I02f62qA1a2WO2T8316N36L02yR34M232EY36l1337u368G36lN2AV33U32wJ32ue32Q432UX21p33u531wT321K31la27x2ak31CW28Z32p0323a2f62k82WL121b227321v22X32XX32n032yd33Y032292V8226337O362G34hh2Mr2oP2or2ot22R33bx32Ot31R236Jv363631jG328k21o131r312V33Hu1h212337x31R335ik35mF32of356233A534He31Ol33jN1d34L12J2313n32OE33J633yG2iy2ox2oZ33Yj23232zd2RA32ZF2VF2q72Q933z317229325b35BF320t333F33L031LR34o331lr2Ay33Pl2rq32Pm2cd33PL35a332PM36CM31fL2kK2W436Ii2E033l72kk31mQ31GR21L31nb34Er31YN2122zk2zu319x310H31yI2RB33nm27S35AP35By36o733WY35OY2t633wz2aY1h1u1f2121y31ob32D22b231fO320231bI33x231O432fm31B036po312B33lN36PR2io32fn32qw31bI32aR36PX320p36pz28X1Q1b33qF2W533P533Lq35i633rJ2GF33Rl2Cw33Y11N36ML362m33GS32OE33Yo2Jy36n82G636IT2GU317M35mn35sU35MP362T324v2o932Ny2KA2XF310521132xR22136mE36mG32WO31T334hF2cw22f2r133rp2Zk21U32XV228356k1R33P5343233nj357g33GB23533Gi27f22522Z324d27M31Tl21j34g634G822523f25n25p33Fm31tU36O02qc33Yz33972yp2n232j51921M1r1X36rq2xD22H2311Y1v2FB21v33Yh36Ns2P22p435zJ2yM2qz2ma2Mc2OK2fM31UG34GL2Kg36MO358136MQ2oQ2Os2qY2uB2m8328l36n336na34H133A62p52DB1b1T22m36nV32Mq32ZG36jv23f2Z727f21S26E21J33ID33If24m25125g25s36rx27F31QG1O362R34he35z836m632NY33R4320K33TX35xu2vz28833Pl29633PL36aD36Og32pm36K132pm348b348Q2Gs2lF35Ob31fO34wM310434Oc31nw34ag34I533pt36oR28p33l531m535Sg364H34Qa33Ng32J23163331f32H12Ua2Zu33oJ32H8324532HB35Rr32ho33n0333V33N034O62LI32sX36du32tL31ER32BF31YI1n2Wt1233NN33np1Z2F932H4316334TW36ui34pL2961h171m21231JN35Kl28a313v312h1H1F1u36LG2ZU35eT320434ls31z82IO34P034Ap34Ym2791g32NC33nm33No2102er33oZ1Y1j36x331zx34U62E022134S236Wm33NH32ht36Wq31ZE346I31ZI36WT320p36Wv36O5320435CJ34L936WU34nK35e7364R34Tf2e521634w32m136M127a32GS35gp27F323X321V2j031942Wp1h21021e322221W2Q7313F2fW318y322B35sx31k42PQ33J72Y021N33yQ2FC31dl2dd2342wl1S220322o31SZ2F632N8357D336E220359M32nU1I21s2p533T133t333T52Ub2V231Xz2Fd35SS36jL357r36JN338136IY344t33s21z22c1m2uZ1v2dX31SB22b29631IU330P32OU22b2oi36yV2Y0220226111r22C36yZ33842cn2r4324t36ZT36zv17227321X2Hi35yv35mW314k2LJ28g32K035Us310M36oc35Rk2ru31NH36oO34A427a31GI314V31YI31iK35Vn2192nU35Wl2gZ35bY332633Ka310036Oe31lR35nC349233Ao312B348o33nV31N235kQ17352P33W62Lc347N28a36P9321431gl3217320P2Lz35Jp370o2km2Cd35c427o2KT323E2GS319X371N32Se32sg2Lc32s8345w320K36ux321F2kT349035CZ2Ts337912349Z34Kj320Q34Lm32pH310A372735dw35q92Lj35O2372j35c9310a35V232Eo31W331mK33LW31ZY321j28331Mp32d8372935O735ub24W32S42g727B367D371t2Rk321432t035c7371Y27o2fq372x2km35Uw372K33LW370U34I935Rl310m373831Mc371235kM310t37102FM21335ss36z11y36z321N23733jp33f7215319T31CN31hP24K24W2G533CM33u52TI37202AC374n2jF33cN2AI316l35Xf35EP35wt32Xa32ju31Fg35Lv1u1S28235XF35WR2aI33rI347G35QJ31X42lk32ty371632Wy373t31Hu35xX347G35UY32i321H373631NH32Eo2u32Tq33bJ35Ls35uK3745312d337631d52Dd22U2kr2831o21321D2Y023233Xh32xa23o23L28W35Zw33DM372S319y31CU37542I133Sh2IS354v2ks2iW312Q32cw1836ct33sV370031I723633cg31fZ2W628D33M1320p36OV35Sg364f28H1d317F312f3760376R2o721M32BA318C318E376v32yX339F32na313G22c2272yh29V21Z313Q2d9344236Mw1q377035rC310h2kP377536ou2l331Bm377927Z377B321K2EI32xj34lB32zI32NB32Nd33Z02R936tp2Vf33sM217377k2182122Jc377w31jG32Oe2oI2ya32Zo182192131Q2d61K2WT32nr36nq33yI36sU330s2iZ378N318F21021k311636QJ378q18378S32nF36JR36nf36JU33z136s92Qd2oI33Uy1T377O1N2PX32XS32nn340x32np324V32ZM32O02UO32zQ32Zs1t32o7363434gG36Mj312o2v823j35bE2LF33bn373D2rV36OC2sy33zc2SC36k335H635N933VY2W931a031BY27631n4361n35SD33WX3214319X33R63158311M36uZ33ra33qQ31lR36AD35R931fL2Kt27b31EP315d31cy33Sg31gR31gV376035TY2o736u831Qp33y433Y632ol37a933Ym37A232zO37A432o332O537A732ZU322h33EU31Jj31x533092o01821533BX2R3379H378s32po344334FA35VX31Tu33yq1723j36bd371B35x4310I35Bx35O9371B34dV35tk33tR33zu2RP2w9320i35bW35ua33we34bc1536k731NR36GU33dT33Is2g5317K2Oj36Js3421379Y36n632YG33hX33fa21K2O01021432ni1L21y32My379129235dL36mB318E327128W33Y533y736nd34H11Y1t379i2y72au330L34Ff21K32Bw31sh36Nh21h1S332V31Z331sH32oE37Bu32ZP37BX32zt35792qj21z33h12rs3305341834H1320031i735Z72uB37ep34w535vz27622F2112ul32P635J427m21022s35ZI37c12P8313i36zF2ta378I2Qk363531oL21V338031Xc34172OV2j02au122N91e36Dg37cm34Bu34Jq3480372f32ph31er37b22HY311W33Q737B7310036Og33Wf132O52Nz21i21g2w533pl36a331002RT31G736Q92hY371B37G32Ht37g537b636UM1g31AG37gB28J2Th37GE37gG32pm37gi2vz28V37Gl31G937Gn311o33q42W437g4311U37G637gt37GV37Gc37Gy37gf33vx37h136Ug36Oz37h52H437g237h937hO37gr33KG33Rb37G837GU37ga37HG345j37Hi310i37hK33pl36pE33tt37h62hT37gO37HQ37hB33qv37Ht37g72vz37G92aR312737Hy37GZ37hJ371F37hL36Wk37i537ho37I833pN37hr37hc37gs36B537ie37Hw37Ig37gw37gD37I037Gh37hL2sP37hN37h7331637ir37IA33PR37Iu33Pl37If310M37Ii37J137I232Pm33U237Io37J636o831Ge37j933ko33Qp37hE37HX37gX37Hz37H037il33pL2RX37J537i737H837J837gQ37it37iC37Jr37iy37JF37jV33B837HL32DX37jz37hp37K233BB37jp36v336Of37iX37je37jt37ij37i137jW32Pm28B37Jz34qs374634CV36Qg31tU37dJ27L37DM2fa21y37EJ37bW32Zr37BY37A8323o330f1037f936s737fI34GG37BN342237bP37dZ36qy2R737fp32K731m937E728W37Ff33yz36jP1822Y33z635r034802Rq35bj369N331436uf37IR33l22ki37kh37Hu2Vz35wN37Ga31Zy37HH37K931fJ33pl27d361n37I637kT31md314Z31c033902qh31OL21Z2142Zo36sZ2md319L2Pl31Di2pn2mv22t2nc33dl340d31gR375k2DZ375m2sV27O32k0376M34DP35Ly33AO2aW31HY376S36th34Gg37mN2mJ37MV2pM338x2Mx36Ne356431QP33su2Ps2Pu2Pw2PY313K379Z37dg2K437mP37mR2R036T032OE355O22337ab2QX36Qk379o2qa36sA36yt276323r33CT379x22D36tO36Nx32zh37971S22f32S932bd36kc31fQ37hL36ad37ik310035WN32PM348L32pM2t232pM32wf33ba36Uu37HL35nc2sg33r035Pi36BD36Kd37iR31bF2w737Jb37ji37ko37OY34U037p0368g37p22RY32pM31fo371b310h32u72842cT32jF36Ot377727Y21j21H2822tr32BA36kn2li2W436gu370z310a31gJ378B37mk31BZ2Gu34i72F737MO29f33t11a21J33XS1f1I33YS31172pk37nn2pO22S337032x434BU37N435Qj370p2dZ31FL375332k235Ez34qs2CT371s37da37QU37mX37NO37LJ2K437O933y22J6321V378F32NC21i379p34H7354y37nU2pV2px2Oz35sT1037Dy37Br31ol37qm37QO33XT370233hI2JH341Q358p342a21V338334411021p37c237Nk2mk37NQ36Jt3422326p357k37Oi31iR32xt37o736qN32Mo36Nw33Yb36zn338936mY36SS2P036Su2x2323r21X36nZ37od28521r34mi34qT35gU32Wt2zS2Hy35fu35eY35eI2nG2T235BN1f34IE34Ig35B6364c35KM35Gc37Tb28s36dh31Xm37Tf355G311L37N32T4348037fy2nG34ib348035Bi35F431b434ju311h375436oh35H836OJ2WP35F932XB32vK35bC2BW37t935U9313z37Td37TU314534c534BU37tI2NG36l32aT37U12BW37u32Ng37u5313Z35XM32WX37IV311437uc31Lr310r37uf35R11824k26N32VL2hc2Ag28P34bl34Dr2RL35dQ329337R337tt35Ch37N831HK2gz2T22SY37CT2Gi34JQ2Sy34IB2Sy35h52lj37V2370s312735a335Y136pv311b28K33xm36Ic359Y35ZS32xB25O36AC36Bk35nE37uk33tQ37Vn35fu33zS35IA33zJ2T32rv37Vx2sC37vz31FN32J232Bd2gn32u731GQ31bu31hU33Bg2WU2To2Tq22135ER34xQ313Y373U31b6372r37q121J37Nd2U72781J2Hp33PT32LW37lh32ol37L91021S22V363L34hn35t6359332xV22Q36VZ2vz1N21d1y310536981n21229k33FD29N31q122W2A23661313G318Y313g37Y829l29n37t1357K23I21n32xv357C357E36SJ15357H2xd29j37Yk345427622t2uh37s237qq22b379921U21336Tl21M32U021221D2D71c21q21i292318I32xV21u21A310L2Nv21J2F92vX1121C37y42jM34xd318j2o62Df35m5328J31471Q2pL21u31iA27622P1K370833By33mu37zd2HG37zG37Zi37y737Y929M362V315422b36Rj36RL36Rn32Na33Lk36sK1B22m31q12V22dj191v21e31WG37Yf2f0347t1N2312CB374K35Mx37Am2IJ24k25632CJ374P27D374Y366h31WY326s35Zx31KN31eM2He28Y314P23O23y2Dd35eP34Ij2hz36w131aR33Lq31W1375W34V224K24Q2ec31eN2AY33Xm381w33M436oY382033BK28924K2522Hp31EN2RT332438293657381z2tg38212c424K332031KZ3650329d31ZH382931Xj382N382935uH382b32j234k231FR31pg2aJ35dq38351E2aj321a2gN34Jd2LN2io33Bh33BS334V27M314p37qi3391342D34Gf33Ym37Nm37RE2q52QZ36Te36n432oE37LF1n23d311731cL37r0348z37r22km2KO33aj35D4312735Kz34I9310r2Kt35ia37R635GH37XH2O42O6334G2mZ32o51M34Ia32ye37Nz34H933Yc33Hs37T436O136Mz36td36N236N437Sx37sS378K33F12mg2qh37SY36Nt383Y384q355A37RS37nw37rv37Ri36Qj2qp374B32Zj29n37O7383r2MR338x22532FJ363V35FY32q237pa35QU2Ga35K72E833TQ35jF34DZ35Wm34u037W035qB2sC34622gi33Vx35wy31Vd33Tw2A937vM2KM2HY371W37wo2sW2rv35Wx35qK37Aq3110310i2sY32Hl383836oZ2te37X133RJ31V1383h37xf28o1z33KZ33bl360e311K31fo37m237uD33pl32w737Nc33ZY27M365M37da34hc37DD385a10324Y384S31Ol22421128i327Q330L2oi22F21E2D82dI36t836mS31h92OW37Oo2322o92Uw326G21432Xr37SO387Z33yA32zg377Y22B3410370e387U2y0319A21037Bq33Y8321v22f21I29U38101t33DE31pt36Sr383P342F2ov33T133dg32Y2362e37nI37oa2qp2OV387t387v319A37ok33z12121r21o21F31Vr36mZ22B21n33862PG370c36n61w326F1821F388k37Dw33UC388K23833BX384v37oe31Ud32Hg35EU37Tc2Ht311237tv33ZO2km35BY32t0386i373J31Zp36k831zg1j2tw38a735O936o7314g37wP33w237v5363v36P235ds364i37853312313W378232bD33wj142T236183615331g348L35oT33OE31M131WL33n036DU36v7312931AK36Og35L7329v31lZ36vf334C331y36Q038bf31m0319n28b36PS38BK3129319n36Og36ln314M31W732bv36Wh21t377U34Sq38Bn31zf36py33292m12BH33XL3117213378v21j378X378Z37912ra3794384t37FD376Y31I8385f36Ml36JH327A385736Su3851378j37oM389x2QD31j731e231C8383Y22S35be320233bN2lF34dV33zI386q33zk33vW386p37AP386635zR352F31Fk31Cs36kB2dz35c231KV2Gs35XT31xH33BE334x2A831w12Ra32D8316331Yh33Xb34Kl2kb34Cs27x2oS31YE2L735Go10320f2W0365M34QS36y135Qv37nh2p6315d29a2Os220321V22u31xc1721p37902d6344s36n538eE31j831c838co2ph313I31C331ak21W323832mu31J12mN32gs33Z32vm2Fm232317X21u379931jU38Cf344s33jE21236mR36Ta3423343T1j338V341c313i2FO32zB37lS36Ri31Zh319032k62mI1F2b21m21M342W38Fn2uS23432s9373D34kY31FR36KF36Kh314528P1v32RO33bl31kH36VX33xB32AT31FK38c02aC25432rO36ku344z317I2nc32Bd38GI37D338Gk319z38GM23O32RN331m1e2WX35K6316338gv34oL38Gl32Cx36Ln33zi36lN2Rt24k38gO2bN36Kv27d332G33VU36lj32CZ35dW38h838gy38HA36lk2Dx1738hf38Gp36Kv27p32rs35s6373K2HI33X336Dx2K32l7376F36lw33U5366L31h036wh37mL37Qh385m37My2mw37Sg2Oi32nY3144357D1w361B1S2892fB345A35AZ35u937uj375d2nm2Lj33B931KW384G35Lv34d435km2cT3324384l2Oa384N384P37nt33Yv385D2Pz37Sg37rG37BS342f385l37qt2mP383s318038cV33Yz38CM2QP38IJ31tj1238im38Io38iq36Nm344v2P8385I378g33Y937ST36TQ379636sT2P3383y23032S937lW2ng32uE385u35eP385W360E33Vu35c0329O2Sy36K1386n37an368G37Al32hO386a33zN35uM34nh386e35Re2st38AA37vr368n32Ey38kO2GI37aO2GI381A35jr34W737Wz334R314R31gx37X3386Y2tN37xg2G92Ts32ID32aj34an33XJ33Bq384i383j32ub33SL369v21721638JW37y334R935ML385537nl38Jk37MW385n37QW2lE2nE37Ty3818372128K37r5376l35e937XH38J5384k37Sg38JO36mZ22038J91j38993892342F38K132NC37zl36Qh36mk2qp38jb37Nv37Ru2pz37o631i331Iw2Mw37Ol33Yb38if37nO385938jG33S221W38lv38Lx1Y38lZ2UT38cq37OP32s937n2348035nj38kF347s385W35U632qi37Wd2GZ3869386m38dc2Gi38kN2SC33zG35NB32AA38dh32132sB2Lj369m365r38l037CV2sz386538602rv38o02IJ35qL37hp37X02TH37X2386X37x538LI28338lK354N33aJ38lN32JE2iO33bR34qs32Ua32JF27723236rt33PT359522F31OL2dn37Ms2R122431ol35861W37692y12Oi2322991v365C33MV357L358g27a21V35z8359L29R33Rn34j62Fa33je226339i22A21Y31pi36cD345122B37073709370B2O936rE2zG36w535If2IY32nt32zb2ov21y2x838q421s1L380633Jr38091R380B37zC37ZE380F338y37YJ37yA38MU385B341Y37sE33vO2FM29O3180358k2Pq1W22c31Q8349O2N922L343K343P36Ji379K1033t11o32qs345134S136is36j71e2aF330v2k32V637ZE22T21h21J363B22526f26D33Gm2DD1W38Q2319A1P1T21s31ws1733S231k82Ag35j221Z21t27l27p21v37Z637Z81t37ZA380c38qU37zH338Y36rc379L2Up33JE1T22C33s222R1m1522838q7370a31z1322p380V1z1H34gW28F21333Vb36t731te340Q31Qf2xO377Y357v31Bv38c727737xS37992dn2DX31tY38ra22721v38T322821t31f038JE2Gu37t233A1342635J333H727f1w25v31Tj27m31RD37Lc38qJ38s81t21v34K5277323x313I38R51022m1l36QL33EM38nj36nu33eO36X633uJ1922s36tt27722o25I38s437CH318O33bJ31di33Fd36RS27m23k26136U737sI387h341033Sn359I31wH21221h1j2vZ36wC37Fh33z237Oe33Tk33rO33tm2k436M621U341037zZ35t538013790380431Ol22732K738t31p328633Hq35W7380L2Oi22P27L2OF21z38Ra38sg37F136N038wm2oG2xq1N38IL1j21u37rL32N9378g37RO37t537rQ31k731E937fS31tY38ty1535742EC38WH321L31in22b2a02Hc2282t9313i22n37E92P833VA172AY132eo2yA2KG23138Ju32V938TV1r22737oq2jI31C7228379921T2Ab21937zb380d1C33bG38wp21s37Sv2Ev337o38Y41038y638Sr380E21C2AZ1V22f313i227327t2gH22D33s231Rh344I2PD21631ce313N2QJ38qb38Vw33RQ33Ht10343U31h732YD313i29z33ru2392DG1x239363C26526s33hA313i22c32p2334b35z921J343V38Wi21y2qJ36312D029b23138tj1025S26433f9336t356r36jB356t37L9344934fR36Qt2X536qV34nC1z2mV22L1M33s222132u021x22r38Y8225343e38X736My2oi355S343x358Q23C21n31ol37Z137qn37Qp37qR389137LD38932J637Rg23138v22Q225Y390331oy2Vw31I62Ws378H37SL1D37sN32Nm22d33VF34NC38so38SQ38qT2HG21a343f3412343I344U322H33Xs33yz32Z821R21536CV315536T237C22oi38VK391w38Vm38Vo38Vq33xR27m25C25o1O35ss2pq376433t9376738Pg36mD2CN323r366931941S19334C323G38x938wi38xC38xE1v32kz1m37XO33y8341038ZM3108334j391S1C391u38X72f636Yv33Gb31i836ZJ337u357S34Gr38Tn36U531qH358V2Vc342A358Y2Qj318m1b389d336x22T38U927725O21S22933bx321v37z737Z938Y737ze2222Qj327338Ui21v2pv2p02Ec389h33xT22c23738yZ358i23322527w1I1Z34kP34cY2B6332t32Xb25M22427w38kG31nc387437CP24K24T2CW2BO348D314P1I22d34NR35u034Nc21u35B135ZN340D36uK348022Q22Q36KR343h37Vf35Fz313C32jt35xo2B924532Vv35ep332431AT35yt27a35Vo36Z836aN38a131jg22C1i22a34mv35FQ366m2At2ma311k339H35g5396E32xB36FY35Qu36lZ28a21s396738ln35FD396b396D38a534bu396h348034o635ed396j22236BM35f837UQ23O396n35Ep34cU396q396S37Tr396u396C320N2NZ35EZ340d396Z2ng397137U622v22V386B373l31Ef31ET31vZ2AL36v531VM27W3873312238Hm319n317I24K32di38hH16348d368E28A36Xq32fL2TH334j2A6395e2B439822k4395I2Bz38i527A2UH1O1U33cg36Xq2sz32T534ro34pf24k24Z311S357h1C22g22G32Uy35Rv21K21g1c396j21832G1310731If31Hx1e38Tf2Cn352P311S2RE2CN369i2A6396R2B42151C34xC39971c396U22K2263103399E31HY399h2ZQ34zn2162uJ34ZN2QV34xC34RS22T22t39A934RO34PS32T5366639aB368Q1d34ps33u934zr365C368g34zN33q0398Y31fj2ay22222236Ar35rv34Rs32g039AD399S2Ap34Rr319n395O398V37zF21q39B12S234rr31w939b632T934Ro39B034zN335539A931wJ395o3966399q399s31xW399u397F396d39a0399G321v39B1333V34zN346634ZN35Gr399T3998396J21L35j832wb36ct39A1321v23o1736g12g61N2cN35G4399P2Gl399R39c3399V396A397g399d39C939Bv31XU34Zn39By354639c0354639C234Zn21721739cm397P319Z325r37G0211366q34rV21D3695334X31NY2o51323L36fW34Xq2Q92vs1i398x21239DI31NY1i22k22k23534eZ2Ao39dK32aL32E51x21f32J31I395o24k39dO2Jf396A22822823823834982Gl21J35H839e139Dl35ub1436fL2S82hp23B34Ea28A34c921139eF1I23i2303103357d32Ax36bT32FE320V36Sp31Ax21D21335be36ux36NL2A221d21531uP2Ht1j21g2131J32ts2Io2172HP36501H38E027A2WF35nz2l726j23332Ux21d36a51236G027I22j27227921y31rT39e9397839g139g3355r21s1639e923p23p39G939g421T1739E934tN39eD21139CL34ZN34CM23o1h2452bd39cg27623T23T2a6225328x39GO3286372j21i32JT2io21h36BD23e35G239ck33s023834Ql36BF2Sq1d2Cb39c8399f39A227A39dA31Zp2A6394u39Bo2rW1B33P536C439h92G924n24k32D8316n399R34Ky367q36aV2232232l421N21H313t21I31oX2112161F1x21a1f1N1O1f39i81I36XQ1q2wg2u321N21632vv39Iq32m731Uo32te1I35m22o6399f21z22136cf365931VP32BD36I336cE31vC31Hy151936BD39Hs39HD2Ax34W439GN39gP354635ub21424s39GV2Cn24P24p2a639Er39i421031vK39HH2GP39Hy28A22b2s639h331Yi325m27p21D1V21a2102151D22r22R39K339ha39hc39h334c231UP34x42SQ22I37wh39hl39CA2cN33u932dD39HR394V39K828E39hw33BF39K41i21R35cC39kN39Cj39D836au368632mk39aJ39A539AJ34pf33u921I21m39ao39cM396j22n34Br39kU39cs2l722c25s331m2hg27P25E25E39jn39Bp3546398423839Lv355r2221C348d34YV35ox34rS34dF24k39M52Jf39m839e925j25j27i39mG355r2Y439e925k34yT399639C42271I399b399z39Cr39HN39Mf39m621Y39mi22825o25O39KZ39BO1i21N2ef39kq39D5399I1w39i139CF2CN25s39M638A0399R38DK2102141c22y22Y39nm1C39nO39nQ348d39l639L839I439LA39I639LD31S1368T1D39lG39o639lI34rV39lK39Lm39bq39mu1I39lP39MY39Hm39Cb23726U2z139gW1026626639M139b139gR23G26w39JT27626926927i21u26E398731V226a26A39H039h2399r35S621n39H639hX2Cn1326k26n31w524k22726J398721Y21Y26f26F39p839Ht2KB39pc39H7320P39K439pG39PI382222339q038GQ349626K26K39PS39jk2dx39pv39PE2A639hB39n934Bj335x1I39KS39Oi39kv364S39nv39hQ28a39JJ39l139hv36Bo39L439pF2UA27933Bl39i333S033AJ39o3366639i839pb39ic2A639ie2b439IH39ij39iL39iN39Ip39iR39iT1439IV39ix36xQ1O39j139j327x31HY39j639J8367939jA312239JC325o28q39Jf39jH39os34zn35Ub23t328639NI35GW32d239JY33s032l63103335X39kk2A639K639Ht36Wy325m31YL39Kd39kF1d311E1H22C21X212379B2Zu39L736eZ368K39La39RA39Ik39im1F39lE39sz39IN39Lg39t31F39LI31hY21i21k36cF36Gl1e34bQ39tD224224315E36Q8378n35DM39h836Bd32BD39nn27v39nP39Nr39nT39Tp39nv39tR39nX21V39nU39oT22i32dz2Km39S52E52hS2ac23N2L634J51731V232kK32d239h139hT373s39Pd39qu2G921f31x5382223S375I39uB39po34E528A39uG39jK39pU39uJ39Sd28339Um39qx382e24439uN39Ub3496340639UF39p9328639qa39uY39TN39qD39Km39I439QG39Kr39kT39bU39hN39KX39QO394t39L039Pa39L239qt39Uz39u039S1371o25621R39on2CN31Cv32SM39n939es39sB365539px36Bd39SF39Jk39Sh377B33lN39Sk39KG39sn39sP39sr2n831xC39SU36Cs39Bn2GL39Sy39rC39T131S139T639t539Wr39t831Jx39Tb333v36dK39te385P39x11z38tb36q739wj39Tm39W827I26j3707355r2261822e325Q22427924k39Xc39g439XF33R238pZ39xK21g24127931pa1831BC22739XD24k26T22839xu38Ws39xH2282292791322f22D39v22ac26V22a39y31833r2326839Y839YA39YC24K26o39YB2HC38wS31bc22c39yP39vv354639gr26g33c739U522f22e39v939ht2a239qb39Uk28a39Qe39hd364039qh21Z22D39Qk39Ls39hO39qN384139QQ39vR39QS39Pw21L39k424K25p22W2792192121B32gv22R22Q31lc2OS21N21J399i26l39zs27c39Lx1122t2fo28a22336bJ33mP31bM21839kw2Os2181W39pF23c23e39Yc31At3a0H38e1193a0K3A0m3A0o354N39QZ39I539LC39r339I939Z539r628A39R839WP39iI39T639Re39iZ39Is373239Iw2A639Rk39rm341039j539j737GC39rs39GN39rV39JE2N639RZ28A39tV39B135ub1523k39W027623i23j39s7321d39kn1w21e39W639vU39wa39k839Wc33NM39wf1D2zo39So39sQ378n36Wh39Zo39tO312239JO34rs35ub1823x3A1y1023t23s3A2239n934cX39nD39Ve3A1S3a2M39tW1239TS39NS39Nu39nW39M938pR32du39Ae22m32cr39Z636H224535ah1839Ao24324239Y82473a3h354N3a1T39GQ39u221I24Z3A2S24724632d23a3r39Jp371O1P24c3a2S24a24B3a2w39Za21435D93A2z39xA39ZH1O1k2CN24k1524g39Xu31e92E624f24e31Lc28e3a0239Pf24l24n39YM1024l3A4l1a2bE24i24j31lc34Rv3a4s2G93A4U39ym123a4V32dk1a32hE24L24k31Lc365c3A5639Uu39h239D939NV39dC2IO21g31Vp39z939lB1i37ZT39my1i21H31Ud369o368o36b039Ky39qp39l0366q39L23a5O320p3A5q2G924X3a3v3A3Q3A323A1u371O21o2553a2s2512503A4839Kn35FU39sc3A3037qr39k739pa3a2B36w13A2D22o22O361n378N35R93A2k3a0s3A5J23O22625N279329K34rP25b25A31Lc32k03a0339a31c21c21o1C2E62NZ3a0u2a621932Uu39Za23J23139w633oL39Sv35bQ21g39j42H536FA365C21G21l368j320X21A365839ry3a2L39bO3a383A3639Tv3a3839Ny3A403a2O371o22825x3a2S25T25s3A6N39I436xj3a4c3a733A3139bo39u123o22S2693A2S25z25y32D23a5S39I4227326C39Kq31jp36cy39LR39VM39hp39zJ39vq328639VS39ZN39Py26k26m39yc2h239I439r13A101D39r4372j3A141i3A1639IG3a1839Wr3a1a31033a1c39IU3a1e398b39IZ39rl31zG39J23a1I39Rp3a1K28j3a1M3a8v36gK39x13A1p39JG31xu32sV39of39mx39Cq39oJ399I23m36dn399l27626r26Q27939B739bH1C399u32eM39uz3743397z28939YV3a8j39G839oX1026y26Z3a8Q33s033Pq3A8T39PY2iT2C43ab53a6E3A8W39VW3aBA39U527w394s39s833tp3aBI39PF3AbK3Ab739Zk34rp39JM3a8b39hD39b1398425036DH2Hc2y7348d29M394s36xQ3230398e3A0L398g395F3A2n34ro32GI39jl3AaL31SW34Ro39mE398Z27w39N31C39e931xD39As3Act39mP228348N39mt399939mV3aaO3a9c321v24k24I36dn399139E933b623o25032e638e636Lx2AI1o1q2cs3ABY397C37ul2zs399W399y3976397J348039LG34802qv23o24l2vW33E227p35Gg353L39lA396t396A399x397H37V93AdW2uj348022b31R334802Aa340D32k6340D22F22F396i31sO2nJ37UA32PM36UK32Pm395O397i322R23O25Q2203952347s21C21e394s3aE7397e3AE93AdT396l340d3aDx2NG3AEG340D3aeJ34803aEl34803aEn3Aep31Gb36AD3aEu31lR3aeW3AEC37TH1a24K26M3af1395S35dC21s21U394s21V33jV394W35Xa39n834DS35Fp35e632uL28a37se35x935VR3ag734DJ33kN3Aga33BR33WX33BN32Bn39s638lp2IS2772I635km2c4398A1824422g26C24025e1Q21V22z22V37l332o237l537eM23123F1R26x23G24123n25X22Y22023r34Ga34g721p26p36u322i1H22G24b23126Y24a25p22025n21i363b25c26725s345E38VH322923E21s22m21224x25623a26536U31Q24121V1a22z25O2683ahX26524t24125r1n1D24s3ai438pi38Pk38Pm357k357m27a23025A22626K1K26B23p26j3ahx21s24p24b23225626w25I3ai42F622r2D62d81h23136rT34bP36rw310825j22C26o1626C3ahx21u2253aj624j21l26T36u33ahz363b24P25236u32462671225822j26T25d36U336S134G936s43AhX23U1f22U21G1a25926D3aHx25C25021O2681j27225c3ahx23I21S25u23F24m1g39ZQ22026W23e22y24f24426T2433Ajb3aJD3aJF22923737Wg24Z24E1S22H23b22425y36S637l821A26224U23126o24m26x3AI43918191P25Z2331125n26Y3AI434FJ23J31qe22x3Am437lC35ZA33UF21n1e21825L21O25421125u3Akb23522022p23X1R2653Ahx2121L27326z21F21n2563ahx24J23n24124n27223s3aH336z51426523524Y23j3AiF22V38zU2FH38zW29c391o3808380a394a380e38st2OT21d21836z5388V322A37lS2313Ahk38rZ23824p23d37wg26s1y23c2491422b26w36u331Rc39MR3aJQ1024823637WG38zf363c26R23v36s637FE37ci23f36tY33Ig36u13AI433FH23u21622B26z21021w26o25S21M23e3A1f32m73968329s33Ch3AFB348033EF39iy359y2lj3Apj21m35jJ38ak386j35Qc2RV28M27y37CY34dL1X2NU35gG364L33Cy33Lt33kz32j133mC32S81i21o332T32qe34Dr32H7339x39hk333p33wV329l35F736Pa32T63AqB32qD33OK3A1633n935fu32AW32BR313I3aq7398i34RM38hs3aqB335I33N93aqt32Vt34Ag34Mr38j73aqZ32HN34Lw173aQB3abH32vT3Aqt31ZJ33My31Xn32CR34lb3arb353n34pX3aQb346V310331Zj3aqT32C839c631032sZ39Hu37492do3Aqn34WS351h3aqb34Bj32c838aJ2sz369N323034rV2yY28A3aQn31Zl353W32dR3AQB39Wm319j2X52Nq2jb33Mo39sc365c35593ASf3AQ832eC34uE3aQb21K368A2k333S038AJ39QH371W39VL2o93arO3aCk32CI31Xs3a2y39QH38aj31If1I1y3aDh3a60367y321v3aRO39r21D3Aqb33aU3AtF3112365T36403a1C2wF367Z2a63aqn39rV3AQb3a5v31073att38aJ39IS37kg1r31iK32gS38CA313T3aqn39wQ39t03AqB34c9326I1g3A9w31oX3a5031c433NB3aA837xK39rN3asu2B421H37gu21D1g36vz32s731XS34oC3au83AuK310339Rl33bO39ey2Ak337n2KG3aRO21g31yw39dK2V63aqb32rU39J03aV33107357D32FH32Fj1a33IA31x61k313239Ix3AQn39ef39E039E23aqB32t03aVL3aQT33IA36Af1a39f331vM21337993ArO21i38Af21E32AF1J3aqB3aGN31073Aw23Aqt36SP1i3a2531031S327U1m21332XV1I21q32X23aVO1k39VP2b421C1L1x21G2eu2Up32HL21g33e121121f1m1x21J313g11366236aW2te3aUx32xj31Hw35WS27L347N31oH2td27h31fA2CT2X02dp32r738bI2e022F35be3a5Y2hq21g34tT3Ay12GL3axA2eA1o374j35KM32kP2o138j72Ez2F12F3380531up3AnV38Qr3aNX37zF3ANz2mr2ER2Et2eV3anq2cZ2fJ2d22uB2f836zg37ce2Fn35s62Fs37aV38lC28631Hu37az2g2360K37Wi31H3385Y35RD35Up320O372r35xq360T2lL37P7372427I2HA31kP2AV2Hh2I727S2i9329738It39u638a3386D35O73aZF376n2i32i535pC27Q3aZT2Hi2Ia32PG2ID3azi3b003azw3164321832xK314s31GZ354v31Gz3atX2fN1B38Lw2rc1p38ly33Je23131NC33DL395j340T31h2340H38Yu3B0O38Nf38nH3b0u32x33Age35Nq355i27W21r3A7R38tp35FZ33iU2O92jG31sf31tx21z23621P1B322q31Qy35mM37ym1d37t338k637Sz2p338Za2A02a2388U338P359N1i37f732op32or393k3629357T3381388C1B32x235Cc31gy314z22n2at19224326L2262281v31ni21X22F1I21X32W32xI21X2E121y1F31SF31r8392738R329R362x1H22F35T83ayt36322fk38jQ2j637xY2x031Di22A3B2L22C2Di3b2q33BJ35822dd37oH3887391M392239241E29v32xv3ayk21521B31sf319A21r32xr35Tn37yY32OE358k34hs38zu311433YZ3B2n31NI344G37s5358O355u388t38mk35Z836my356q344z390631IK37Xq2O72x2359521U1L38vV36RG2K4379922w3adM22838q03b4c1921X22131i832ml33I429F391037z337qr39O733c0345I3B3u22c394R28f3B2w2Oq21w3B2l220345122C22b2y1394R357D21x38Tw3B3J3b1S3aXZ2D92EV355N37Dx389R34fX3859391O38pJ37093B3I3B3K22A1R387p22C32813B1S1g38LI37z721x2243b5h38SZ31Sr31SH3AxZ2N82233B5Y3B3K3b612d622M1C3b2y3b1i31IN37Oq27l22433em370821U22M2F92v5393O27733E43aNP362f37SC38R232wl2Mz36lX21e3b3z338v38pl1f37ny37Df384S341037YD3b2V2e13b5431Pd31LD22838p81838pa2mC315U314Z21s36U42771O22g390A34H1338d321u2Cn37Rm1938wZ33z322T2Dg31qx36u632xV2x427A21w38tw21Z2v41321u3b7z3B2o29N32bg27638ZB2A238wj21v1C31Sb3b3a1B317B31p538q13B2Z3B7q337S22138W1364V38w336Yq38w51m389v1T374g328U3b7H355A38tG36IZ3575344j31rN344l357935q524639oW3a1539iF35k832x832xB350r395336cr395G31v924k25132Vv2bo32eM395C34BT340D35uB32kI35bC375C35kb1i39w5372T38oX35N635Sh2ed3965321A35fy36gU3B1827a32xH35KN3aes31lR371e31002AA24K22o25G33KU35lw218347u32sJ37j732pm329s33pl314733pl39a82ZZ371935o932v037B22EQ33N633n837hD37v43bbQ32pm3bBS33kb33R7339w37m53BC134a3394v2ac26J227374V1134ML31Cz3BCd3bcF395S34mL37Vi345z35ob3BaG3bce3bbh31V239a53BaE35oB32Dx39XL3bcL316I372o21G34ll35DG36o8310035Ub253349N33w727632E536ky3316346X39K12SU383g2Aj39hJ3BdF348X363W31Nh31VC32k035uy33M22a63AW737ib31GI2Wt39r739iF38392AJ3BBW37hQ3bBY3a8s3Bc13bBp32bS3bc421O37ir36BX32Km3BC123o36A734Ip2h439pO3bcw37hL3bAg24E35D93bD132Em33Q03bel33pL35ub25n3bCL3BdB2Oj37t833vu383D3aqd37Vp3bDj2Zn375436CX37pb102293AG431aT35gy334I21A2aJ3bCp37KB32dy26e22Q3bf939XH2A621b31RZ2h339NA39nc2lN31bm36V9374737qD3BA73bdf35CS314S37X43Bfp3bFR383d3112383F35e73bfx37qc3BDY28322Y36cy33Bl3Bdl31gM33KL2HB3BDO34i931vC372j3Bds2e036v739J231wX37jp3Bfz24k26434PA374P34ml39ns3BET32pM32Dx34Q033pX2822313A7u33zu2VZ32G035bQ37312Th21V21T37md31941T3BGx34pa376I2362363Bh331LR35UB35i13bh734EO34eq38KV3BdF3aRs33l433rg2ac1P34yC355r33Cn34ML23d345V3bi33bi53beK34Ml23e3ApF34Bs347W3bcq1K23o21l3BI53bEy23H35hq3bhb123BHd39IU3bHF123bhH3BHj29624K1X39gg38yh319339a536Fv3BHR31003bH5113BJ23Bey39gF366m2vZ21E21E33pl3aej2Zz312731bC24K21O2482BN1S2tr1U39GY33b731272AS3bJn3BJp2HC3BJR32s823v23V3BJV318U1E3bjy3bjq3bjs23X23x3BaE384933LX23o1n36HV35Da27636Hd3bdE31NF2ll34bj3784377732H533lv31NH2Sp31Ma31G33BdT360f317P3bK53bjx39nh355r21x3BJS34vF3bkD310i31nh35UB21034w03BkJ1034Vr3bkM316O36403bKQ31nc3a9x36P22bZ3bL03BBL3Bkn33Lw32HE33n23AQ933n03bbo33n03bBQ33N032CQ375P375R34i9384B310M3bJg33lw3aEj31nh3bJX1l24x2yz21T33LN21D24U24u3bL834ic1K24K143bLD38ge35d021g24x3bmD3bih3bKT34i935Ub34vW3BLE2502503BLh378237B531oC320r3bMw310M3bkV360X31G237AS36v72aX3Blp2Ga354N3bfI3BEu371O397933py1034YJ3BlH383D32IU3bI13BF53AZc3bNi3bII37im371o22625m3bf939mk3BNq31143apS3BF4320p383h3BLu3BBx2193Bbz3bDW37jq3BC23be931lR36uN37V7329V32pm36A037kq37V633pF32ju35rO38B433Mc2AA37k532xB23B26R3bf926126132vp3bbM3bC6123BE53bC037Pi31lr3bc33BOI37gu38783bom36683BOO3BEC35ha361433MC2rQ33N03boV33Kp37iD1239D124K22F3bOZ2hC316j335526h26h2a63AU23b0F34W4383A3BDZ3bdF2152zp3bDI3BO82AJ21632DJ3bq338363bq63BGj3ATH3bo73bG43aGC21b3BDF3AwU3BQK383h3bnH3AgS33xI2EI3BBk1826924H22u25T2721524525T22033vh31Qs25n22523b25r22022D21C24O21N224394q3aI438Ut21n25d24121h24324H1U22Y36rW24x24g23B24u25j21E24L3AI434103B3x3b7P319A3B7R340622V23L22J37Zf36tl22U36U33A2V24H38v41424l22v22025T1E1Z23V26l25X22822F2201r23Z22u25624y23W22i22S22026p3APb21E1922a25036U321k23B25k22821w24Z2553Br51E313V21724922y22k36U325w21424322G3a2r1z3AJj2uB3ajL2d72d93b0u22w22W22226N22723536U323025N2601833hA1k36u32601026N27224K1A2733ai43b393aNS23126C26p25W23t25524j2353Ah434fJ22I35Cc33z7340D31X733683314311W314437VO3Bi1384E322R35kP35O731x7367V3BV93AWg310431Nv33qW2sw2SL35Ob31X7386H316p35Dh36UX36V2321q2sl3BkE31x73BC932Qc2st33o131Fd32h732aX37qI32Sa33N031x734oc33O133au33ok2nq3aQk1735W62SL333i32T631X738Aj33Ok349q33N934L83aqW334F313I320X32J928a34Di34nu1732nl38LC1F317827l36gu31GZ35Zx34kM38aT2HQ21131xC31lT34iU27z32Vc33rh37Ds28W213355Q3Bs43b4031Wi337s3406340i2es2eu391y3az135S33BuP3ayV38F334113AyZ38Wr3AYg1823D32RO32u73az62DZ32923Az92g5373I3agQ3AzD38kk381w3b023Byg35o72Np2Dq31fr31FL2H92hB31eN27P3aZr3B062hL3AzV2Gk3b0b31633BYh33713AZg2LZ361V375x2HJ3B0732962IB2Hq2hS3b0c37Ar3byI3B0G31H034kJ3Bx727F3BeK2o738ev3aZ035w83B27393M34h638Qa36rf38Qd38m037OG357K22y32LC344b3B3o37Sm3b3Q2VX23239PC32Vv37yd327932pO381337Yi380i31Dz3AO438Ew28W38yQ327u38Fk103B5c391235w927638w8347t1538wb313N390T37S6355T343Y2Js38iS36TU32OS3b6537dZ380V213380x380z38113c0b37yh31qC33JQ3Ase312L2uq2us38sZ2O938rK38RM2Kn31Y71Q3B7e31QF31qH3b3c31uG35Wa341B338H3B3S392529W37Lp3c171L29N362K35W632Zw38Z52xr336x21M388o1t3C1Q37La37fA38YU323I324l38Yy31da313n313i2J033gR31qD36rY31Tm35Mm328d2mZ3c1A37yG38142113bzu38Px3C1i38RI387g36Ti3B322F4393R358X342C38ta38tC31161138tf362H33vd2Ph2oI36j01M21e3c303c1h2ut38WW385j3b8M2qC3C2E21026C26f38MK37sB38r137c23b843b862md2Oi394K37qq394M394O356P36rD36RF38VX38CI2F436m83Awa34Tt387z36nr3b1v388233rS2jH31I71R21338yR31QC3Aoo1023A32or3bxY363338QO380w3C233c19327931yX3452318e218391V343H31WH3C0L3425330K2oG393v36mB393Y32362223b1x33Ru2ju384r324737l9323X3B9l38003B9o38031M37l92221A37fB2E02131K1T220392L1F38z836RB38xI38Xk1837l91G25S26F38yd22d337O3C51380Y38103c5433SG1h318e3Ao333Uc35Ih33Gs3B4m356S3453392L376533TA37682Y022m2Yb3agl3B08394Y31wV21g2z138nQ31Nc39er35fY31L524P2X92BO31WT314p361Q32X12B0367V2Bq31lC396521232S4395g2ma3B0x35BQ355437lx329o37tJ24k3a5G39xu2AG2CD31mh364l35yT31HI27B34ch34CJ3aZB371S1I3AGd37wl2kM31V237KG38OB2sn3bOv36us3b1633Bc35CW38dp32d238dR2tG22I36bJ36kN31yy31W931nq3c8G3bqn351c34pL35wn34pL39X534vJ31NQ36bH36Bj31wz18397b24K27136BJ21Y39Gc312h2aN34V3335w2e13c9h3c9J39Gj312H34Bl32Cy31W92E13aRd31F43C9I2JF3c9t38Sd368a3c9334lN32Hq34Lp3c8K311w3aR92ov3Ard3c9934Ld3C9Y34ld2s034lD32pO34xr183C9y34Pl2S034pl34Qr2dX21V21W36EO2t634Ld32gV3C9R2TE172qv313z3bqm3Ca7173CA921L3aqC3AQe3CAC34lV34lD34ly335w35A334Ld32Gi3Ard2e634lO34jb3C8o2E034k72H234Q731zn31xj31vz2ZW2Rx1322J397536Kn34RR366631Nq24K2703975365J39Wd36AB3a7H368636oC39O62o53cc53cc7339X312h39i82A622F336039LB39a936ce39dz39x133m822934NA3a9Y39Rb39T02ap3BFT3aA23AuJ38aJ3aV239CP39j03aA93AUr3A1J39rR3a69395v113baz2833c8X31w523O369s32UX21g31bT33r22L7381i38E72AI34cm2L7263328x34dd34pf3CCl3cCn2i03730316z3bqL3c7l34D23BB03BFg31O7334L3bPJ3cb532Bb32G5333k3C8K3Bf3333o32t2313i35dk3b1b3ced32SX2sp1i3Ax733mm3cei28W3Abq346R28w35Gr2A63c8H36Pa3ceE3cb93CeG33oN3bWh3CEj33wz3cel33WZ31BC3cEm32sy3bgT3CEr333Q313I3CeU36Hi34EP3CEy3c943CF032sx3ceF3aqE3BwG33X73Cek21R35dk3cFa32SV32Sx3cbO334531b036li2us38gj32W931Aa33p827127231w5353W32Cf3CC422i3cG82hC1K1B35dc39G02Ao32Et21k21F32eF33l339Nd3ass2O923O23e3CGE1r1g311736gh3cfk32CA2Ru32CD3Cgm1B3CaA311u3ASR1d37da354132CF3c9934Zj3C9Y34zJ2s034Zj3CAl34r834Ro2S034zN34Qr28e21V22031pf399s34zj3cAz3cgD38c829636i02zQ34r832CF2t234Zj31x135412Gz333v3ci132CG3chb1B2Af354133K128j2uH370Z3CA62gL3ASW3cH43cFO3A273CGr31173CIb34ib34Zj35A334Zj3Cbj3Ch33Cgn3CeO3aU23CgQ3ch93cGs3cGU2BD3CGx27624M24m3ch03Cik3Ch21B3CIm3cF23aQe3Ch83Cha34Zj3Cis34Ue3CIu34UE3Ciw34UE3cBL3cix1B3CFy31Y13C8q39qr39l3334X2tz34m3272352V34xQ3aUW1n2v63cC422H3ck233NS2b2132522522Zq3Ck42V636oC3ave36Wl1F24K3Ck82Jf22f36wc172552553CKF3AuX3CKh399S3CKJ33K223d3CK23AJn2Av25825835y42V62s03cKj3cal3ck439dy33lK39eH32al34qR32gs21v22a31c435h83cKj3CAZ3CKn36M429625F25f39JX3A233avC1x3cKJ34p722L3BP22G61A32vV25i25I2a63BaV2113Avc1I3a4A3Av435a3349n1a3Av71J3aVS2a636xj1Y21f31c42lf3Cm936xj39eS38C3320P21439IX3CMq3avc24k23625Y34LK21o1h32He39nK3ce839Ri2l722a3CN027C31Qt27P25u25U3bg53agO31Bm34363cE821821P32vv132672643bZ638Pf32Vv372u3cnm2G93cNp32D83CmO31C43BVJ3aA82iO3CMU27X39Fr35Df3AAO3Cm8348p2WA311433NM216337Y21I39J221335lO21g2a72WG3cO339Ix3CO83avC31YI311431yL3CoE39k033lt21e3cOJ31C534nw315D33O934oK33P132wY33Xv332n31vM3b422al345235VI3CoK33193CON3cn63AA523O23H26x331m3cnc1126M26M32Wr3aA53CLW33nj1H34Ml3c7q3cNV28A34cp3Co939Nz3CMC3bdg2B43AwA32jU33jo31eI22A31zH3AA93Ax72ak2bs3Cdd21f3CQA2Ak151K39iX3CNz3aqG3Co23CmT3CNN3cG73cDH21C3Bn238E638yL2aI2723cge23o1533Cr38e621M315I122732733bYF354N3cEz38LN3Ch63aEb37UQ340d3c9934802E134ie353d34Dd2kb31Lc37Tp3cRB37tr3crd3adU37TG2bW3cRh34bE3aX1348034KO3AFC3aEe38KD32BG35Ed32je37NA3bPq3bBb3CIf3AeX2b92513azt35Ep35ZS3CiJ39683CRS3Apl2ng3cRW34BY3Cry2nG3cs03AEd340d36l537u63Cs632WW3bB9371D329o32pm37Hy3ADv2NG3BpS2453aZt2bO349631i033JY347D3aGf3b0E33Bn371W3AGj2B03bQ83B1735KA37ag397S3BAw320P3AGk3BQp34DS35fu3cTG3cr93bqT2M1347u371s31Wh24A3aJf26H22U25721122025324722X21q26626M22s36rW38Tj1I24q25n22022q25232PV26N26723U2113amK3c6t21T21n25W25v2zE22o25J24j21022026t1422725Y25L2631h1z2203B9A1622G2541G22R3CUi22c38zh34e936Rw32I424R26d23L24423j3ah433S23C091R31D93C1C3aO13BR6390b1I23J24i33s825825K26Q21l3cVA26122R22K26p26s21P22k25m22027022K22821Z27022l2453Cui26N25224G23Y25421h2473cUq3c4Y38ZX25q24s2491C2511G25t3cui24034Va26N26622326625N33eH3BtY3aJM2D937O834A53C8935e73aQ235Tz35Ob33b03bG82Ll33au31NW2nQ3Bvv33AI310Y3BkE33b0336831NW37M533o132t032Fl32H92x234kY38AX33B03bVU32aL37m533ok365R3Cfq33wW33AJ3bwk329Z33b0367v33Ok311W33mn31UZ3bws33X734Ky398j33b038aJ33mN37m532vT36WS34LA2f634kY3BwZ33B03BW432vT37M531zj371W31073ArM2Ov3BvA3ARp31wR32Dx34Ou31yD35gI34OX35aH29Q31hU21t36XC3bkm1Y36xY33vu34TC27Z318F336o2Mm3aYd3cX03AyW2mN36W536YS37Yc37yE3cvx381421m3AYq3bXU3BY32F233ev2FM2fo2Fq3Az32zt3cB131N93CZo3b0c2g33byD2LC385W36jz3BYL31Nu35KS3bZ33Bza385Z38L936UF3azM2Ac3aZo382t3AZQ39kW3byv3AzU2GS2E43b0B3D0w2Rv31113D0Z3Byj3Bz535vL3d1B3B083bYx3d1E3BZc3D1g386O35xQ31fr37Xe38J43b0i38P127634oj2O736Z632ZB3c4237O42MD3c1y3B3u36tg102ez38Wt37YZ31oM33a22oG3c0W3B4G3C0Z2jT3c38393T342C39363BY02Ya37zQ2Ev2O92zE38QC3c312ut391436qI2v823921N3c5s3b9N38022pl39192Z82za1o3C3j313f3C3M3D2w3C3o383o3C6S35Sq1k313i21Y21G34rO32Ne32Xv33Sv37Y534XD3C2z3d3f38sy32oO2771S2z33C6V3B4O326w3c663c6831dB3b1r21x2QJ38s61K3d3o36Zx29a388C33s23c2932363c2B29U22C36zy38Jg36m637xQ3B8a391a1024C21X22v3C2h38Yw1O3c2K31jZ3C0v2EC392a3c5a37Y7392D315D37QS2jF3C4O31Sf3C4R3c0k385936MY3C6A313Q231394127625g31Re38w738w93c0T38wC38Fs3c6h3c3Q38wy37rp3c3z28C3b7K38Z5392m37663c712y138z13c4c38z438mK3aMF32Lc2203d4r1w23Q38UD393P21A28Z3bzQ36Zl33v42qJ3C1g38sy22C37Zk37ZM2pG3a023d2S37zs37Zu37y638SV2cX3aNR3BxZ3c4539123c483C2l358i36zz3B953b1y2Jt2pq3D4H2Xu3D4j29V3c1K2YG3c1m38RO31I8391O37zl37Zn3d6S37Y137zS3c59343I3C2Q314z3b1d323X34Fl35J03c0I3C4s22d39473d6q37zO3D6T22c390z37z23c0O38uv391j391L32xt36M836sj1p31PJ21u21Q321D31zA32Yw23I3666321l21u37Y02vx388j33y721X36ZY322X3b9938XP21T36Zy2oI37xz3D2s3d8s32Ol3d8U29a37XY3d8q37y23D6v34xd38qX29M37l937lB3BZt3D3v338h3c5g393X21f393z38Zz392h33il2Q235992p53c2o1d37L232vv2Vm3C3C38tE3b9x3c3h3d853c1V34FD340n31QX3C5y25j23q32D23bFQ3AGe3bAA23o1223R3C7a28O31nc3CO835Fy36aB24k24r2o62bO34Ko3c7k32J73cxn370m3CdD39631139653cti35TY3A7N35Sj3CFD35eC2NG21j2lt3aG635CZ340C34803cAL3480312h39Y039y2395s32em38hK3608311K32BX3cj0396x311k36gu37at35Zo3c8B39fU33JW35nL1I3dAC2Ig3BOD34Ca3BzG39og34Br31KI38DK397V36KJ32iB3CG932tN33mu21234it34KG32Uq3CBl34LD2AP3ard31bc35Em34pT319538hT349627I26y34Pt21Y2y42aY2iR36Ko314724k3DCu2jF39gC2ay39D139Mc319n3BbQ36lN3BjG3DD23dCV3dd5393D332T38HL3aR132Bv3dBO325B33NC334f32BT36Ln3dCL36ln3dDA38Hs3BM736Ln39e932T531W93BbQ34LD3BM734Ld39E932AX21V21x38hT32hj32BN3bmm3DD33az43bfB39953dDI32bu32Bk32bx3arx32av32bQ3dDO38HR32CZ31v23de939bJ36Ln369i3de935a338bW32BK3dBS38Gm3dc534Kf39EZ34Mb32Qi317I1322m326c36kn32ed34Ro3bJM26x326C399139aV39TH2zq3dFB1c3aej39vw24k3DfE2bn32l13Ad42a63asz3A8w32ed36663CiD39o63aCw36ei39x13BBY3a2Y3att3Db13Aui1I3dg63AU839Fn3AuB27X365C21z2223A863a30320X3A0r370l3aCh2833dcb34V23aEz37x931RW36w034ps2l724M325B21O3aDj1222n328X38mA32Xb26H3BHa31A71135g43CO837cS1223o35G13Dbx34DF3dFT368A319y39iU376M3bZg1322w35Gs354N3DFu31fE373s3DhL373q34a53cxP370l375i364L3DHx3c7Q3DhZ35s631Le3blh36LJ3ddK31Wb3dek3ddn38j73DE93c993dex2C232Al22l3BcL3DIB2f63CeU36HO103BI93DI63ddj3dEi3dI939c73CYU3Ddp38Hs3Die38hs339H3DeH3dIG3cma3a4b3dIV2ub3dIM2uB3CgJ3dEG3DiF3dEJ3diu3DEM3dIC36Ln3DIy32cZ3Dj03Dif3DeZ33cg39oh32HN3dF336Xt31fP3Df622439Xd3DFa31Pm3dFC21239Xl39xD399134mL36HK3dFJ3cjd399831Bf3A7Q39ZF39hn23O25n39XD3aau1024539GU37473dI53Bhy3ac439oe3B9a31WB3cj039vl39bW34ZN3dcL34Zn3Bbq34ZN3BM734ZN3Ddx3dFW1d3bm73dFz39y234zQ34ZS348L34ZN3bcR39XD35k933Q024j24J3DK434rS3CeL34Zn39Bb34XD33zB32HO3dfK3dlH354634JQ34rR35Ku354134RO3DlO34RS39lE34Rr33wg2dy39l232qz33Vu39jO399U3djC3dk93DKr35463Deq39bI32Fi34zN3DEu3dkM31Bf33683dKq399I3dKC3a2S2542543blH3dm439983DM63aAp39ql2Ao34Zn3DMA354639bj3Dmd21s39B135A33dKm3DbS39D628A3djn39LB39kx3a6834Tu39dF22531So39DJ2d632AL3bjm26I3dnE39dq39Av39MR2zQ39dx3BAu32Is3ClE320l38hu3dNj39g4396A2aY25n25n3dnO3DnG3dNQ3Avw39ei371O25M3DNe3206329z1525q25q39MC32AL3BM73dNs3DDx39DK31JZ3cID3aWc31DA3DE437xK3Ag33CQd3Do432aL3bag3Dnv32G2329S25x25X3CNg39eE28B3BqJ3aVK3cPA320p39Fl32gR39fO35DT2Ac3doV21y21u332E350D27i3DPC3DcX1C2632632A63Co83avv3dNS35Nc2462Bs39eM27639OQ39p139p33Bl4346F1c2672673DPX2jF316C2ay268350u28A22H37vE3CMr3AQg3aw03Aul3AVP1l3avR3AW83Bqd2hQ21c31c526g39Pm354N3dqB2b439Et21a370K3cmF37xk3ARK3DQH3Dqj35Ue3dQL2e53dQN3Dbz3BfR39ET3DR32113cQ539FK3dr23BQe39ef3DAo36cT38yh21R1i39TH26o26o32JA1639Nb2hP3Drg39Xu2Sq34Ko26q26q3dpN399C3CmR3dOS2hP23o23i354M3DPU1026t26t36uD3dp139w33DP41I3dR921D38092Ak39fG1J36UR3dP635uE3dPO39eg39E22l723y35Y83ds6352U3dSa3Dqd3cCm39Ex3CqE39F0335h328E3Aw432h433AJ3Ay733x231Ys31ei3aXz2a6370A31032j234ky337q31Mz214321D319Z22H39fd3DSi39fH39fj3dSm2a622e32gw3cTN3aQ4320X21E39fM2kB399B2hp33M738093d1M35e73dty3dRO3Du133BI3DU433BL3dc03Dqd3C8H3DQX2Gp3Dp735cZ2b239FM31O236X63Cp53CP435Cz3cP631Vl38qn3boc2Hy3Co83aWA1X3dOM31jz2l724u2jQ2g61831zH1T381k39Ko3cQ437Xk398h3Awh3dU435cW21032Qa396K3AWo34kY21E2PG33x239FC31eI22e328E1i3DTD32c839rL33AJ21o35HA2KT33De32m7319z22G3dTk3dqi21G1W1k35a52IO216382W32v03Drb2wA141K3cOD337Y21c1K34C132U53ax01h22j22221221e31Vm31Vn320p3dwB3Bp32GL3dwE1g3dWG3cOT3Dwj33C91w3dWp3DWR3Dwt36LR21A21r3dws3Awx3cms21L3DwX27a39Pu21431ZH34N8395i27c353127p2tX35Bq3Dxk2zq3AWC21C1Z1J2qv3a7n21R382w3cPz3aWA3CQ33DVd34ky3Ax035bQ2193Aya2E022c332N3Dw53dw731Xz31Bm21H3Cp72Wc338K3dp03drA37xk3DQV31033avp3Dwa31zH34uD21K2171j3dk73a7r3DT433c81L3AWr3Dxl3DMk3DV431ZH22239I92aO32ed31jZ3CEl3AWc3dyw329e3Bg33DXh133DjT39yc23O21u3cm538E639FX2Ai39Xy27923O1B36H838E621n36W039y639y83aDo360h35ED3DDL3CRE3Ct22bW3DCL3480314736bH22G3a7935b622G22H3crO33XI3e0437U63E063CRt37TW3e0a37uz35Fj2nG3cbj3AFI218340d348d311K384d32d63Csx2vz3Cal33wd3csb2L71623N3dai27622w22x32d23dbm3E053dKO3DDM3DbQ34803e0Q2BW37u52bw3E0u2nG3aFJ2ng3E0y35Ed3E1037V333QB3Axb3e153aFS2BW28M39e53e19395s349623C23d32d23A2935U73DYn33Bn3cf33CTt37wk3Ctb360G3dud33bn3a8S3e2f3C751I3c7S3AGO3Bax3CTu3B0533XI31Oj332G31zE24Y21026R1W25s27221D3Cu63CU83cua3CUC36rw1T23p22U25l21R24S21125L3cXh2D53bu03aJo1E33853b8V26C22H25L341F339H23926h22S21w3E3H3aMF23O22C27324N1Y23021z3E3r21S24Z26C23J23x24Z21b21d3Cur35SQ21n2671825p24225B22M33Lj37xT2o63D9237y137y33D3s37Y22DM3E3a3e3C21R31i421E22024m26425c24s1m25A24d36rw23025Y1A21Z25325623n3E4f3d0423126z22G24223d21C25a3e4636ac399824W24025C3E3Q22024T21223a23U24x21624421c2333C943cE43Cxo28K3AQ436g93BKE2t83BvL351b3aQf34l83CY832453cyA32u538aX2t83BW433o13CYG2zu3BWP3CYJ32U42S93cym334Q364033ok37M533mN33683cYu3AQy32u5398J2T8371w3cZ032kM32vT33aU3AR93Cz534Nt3dch36l42zU3aQv31zE3czB38AI32163Cze2uh3arn32u534tw2t832QD31zj37M532c82NQ3arZ28E3as13BN7351F34U134WU32U71D351Q3bx735xw31cT31Oh27H33B9336H36702HQ33853cta336C28H2n9321k36cL3bXk3d043By03AYY2fB2FD3d0G3aYH3D983d2S3e4u37ZV3AYp3bXt3b633D0J3Az23bY73AZ53D0P33763BVE3D0s3Dbx3d0v33sb35O72h137b13d103cJv34dv2hy3e9K3d153BYq3aZP332E2Ed31N03BZ9371L3BzB2Ik3E9h2T33bVO3E9l37663b0438i23bZ832A23BYx2If3D1f3EA037vU31143e9p3bZg37r933U8365C321p36yL22O32Oe34Fl3D6i362A33813c6Y392N3d6238w83AI634he36TR323W33f835ss3d41345134533aNu38Qq21r36Rl39X53108380h37Yk35mH38yD22U2g534KY31kT397u33bF2LZ3B0c2aX2N235rC38D632BG35a135bs399S386o2T531Lc21v3DxN38oC39843BaI2Yz21V2jn32ur313T3D1s2sC2rX33Cj2gu382i32NA3cnt31Bm3Di128H28J3B0H36QE33Kz3Dz42vH21h393a21331E82Pg34rv2XE33802D938jH3Ao538jZ2F43d6433Tl38Z43Eb537083eb7342x3eb936cc3D9d2v037633c6z392O322V3EaP3b29163C2e31th3d6E3B8c3b8e3d2M31pT358Y321V31Dw2uo31In21V31cx3ECx3d2332Nv388C38jG2F631qS3d9S3C363D5Z3C6731d832N13C6h337o31ju3eCS33U93ecV38VP38Tc22C3eeC3Ecr2eu3EeF1Q22c390N3EEH3by0356833tI31pN3D7F38Rl2Ul3c1N36IS38593EB2356T380K31qk311736rk342x380P1h38f72VH33sZ3D6l35633c3O38sZ35q523J28Z3d2I37S73B4H33HP32yl1N34m63ByK2sn3ceo38Oa2nS35Ia3d1u37hL34N531lR3E1431Lr37gc2LR2Lt37CT2lJ3Aqb3A2y38Ob2l82o63ByE38eC35Sg3ECh27Z3ECJ3EFs314C3efu2gU3ApU35mx34E1329436si2Sy36ui2sy35a3314c37Ba38J03cE536xw31LU27q3DPa3Bn633l833Qk3Bln34w43bLp35xQ3bKe3bM531273Cal31nH34jQ35Uv32bG31nH329s2l435om3643310l1n24K23Z35J83b9033lx3DCS28a3BGI3Bgm310M2av24k25532bA3BMQ2963dd73Eh634A23blo31Nc36P936P231o23Eh436Pl31Mc33Xf22337WH33Bl36W7353934Sr352M31WR3CAL34pL34jQ34pl33zi34pL3BBO32vg31Z03Ehl3b1z22331Z734VJ3bJx26K37wH2ld27D32Jv320x34dN3Czh3CZY36Wz345i36W12171Q36X831Cw3Cqj21221b32vC37u834oz2dO3eHy34TW35k23BEH353E369W38A032043bwP320936xS2g922236A82C423o251394V21O21R38Om3BeS32Xb25L34bR326H2H439aV2a63EhY3bke3eI13EhS3bk929639AX33CX31oD378A31h036Y1310a32Xn311738Z238Pw3d3G38vz3D443EE932YD379936r134122jC1y3eel3ECT37Nv1732Oo3ebM36wy36dH36p51133Lq33u231hR36Q936C4371Z3ecg28K33zX3BZh2z82U92uB3C2633sz38yP3d7z321V392S31663Dv7392W31Ik3c5n343t3eE831QB22D3D3c3c3l3c3n341C3D9H33rO3BZV1123E35B82U331cX2ny378737863cdD3bGb31Bm364K31Xh36PR2KB21R21P37hO36p1314s1G36P436w134Kp35AP36lR35P736PI38ar3bkr3En436P32tG3bMg37lA346Z2We3eNC36pJ33bw2wH36pJ37PZ3EMT320y3ekU377c3Cb133DW2wy27735Dc37kw2pr3C4036T434h1380o356n1H21i1Z3EbA3C0631tO21331Dp1m38Z52J031Sf38cF37y838Yn34FL3d5t37RN37RP35mM3EfL3C0y358Q3emA387j340y362u33ux3eo71d36Ro3d5838rJ3d7g3eey3d7i22B321v2DN2bE39x52813d3g3eDP2JS358y3EM23c0k3d2829v3Ee3327831Qv3D693c1e356q310821h36rL38zt38Mv37aC2qp31q129o3ebA3D3U3eMk3D2X38sz38uv3eF234533d4734103eED3EEm3EcU31Sb39232Ll38eR36qI3c3I2eC31c32KV27l2ET32e23EER3d8a3c04362J36yl33fI3b8933IV3da433V822u38Zz2xn391D3eL13C4d3C5l3b1Z3c3y362F3Da12D63d7S27736U6393637l91q2623C6g2Cw3d6m3C323ed51R3eD72G63Ed93Ebb38QY32OE3d2537mT2243d3437xv38W43C5V37E037db379m34223E8t3d86391133xt3c2E396b3b8b27631tH3d6G34LB3AmL33Gs37993AYf3ELa183eLc3eeE369831i73Ckr3bO13EH13BA93C7722525l35bC385W35H135FY3E2231Ky2BO3bJg3DaT103bB73c7M2A63CeG395G3A7m3dbA35uL340d3cI534803BjM21C36hg2bO27P39613bb631UP347g37543dFo3dFf316J2H135ue3dhR33QL2W435BY3bns37M63BPq2t032pM349637ir32hT3bwP3beF261326C3BeY34Kd28a3etZ37B23Eu23aVn3be737p42Ru3eu721437JX37pQ3Bp532ht3aVh3euc3EuE3bNN37VI3EuI37hQ3EUK3BoE37kI31lR3eU631lr3Eu837PP33PL36B73bp538ow36oP2aJ348i38ap36W13EIF31n128v32D632DJ36kn32vg36L713398532DJ21Y39XF2ai3db83bB02172iy31wV31wx3EKb38oM32UL31li2Gu3etu2jF3bL52AI3ejA35C83eHo2Rq31nH2aF39eg33MB36Vm3a5x3A5Z33O139Jj3AqH33683E6W32Eo35v02aW398e21B372n372k39ia375o133Ehn3EWF34I92aS35Bq35uy39IU35ru310a21V21Z2Wr33mc34p725Y36an1z2133ENi339H3Cn63eX92fq21821528w39Y935Fe2i6372J3EXn153exP31b031kH31bI2Bz31Yd39gn36pP32Ww35S131eI32TL23O3eUD331M36d0113CDs28a35H13E6z3e2226o35FE1V1q153BjG22l326C3AFN396M2773bEy3dH13bF63BPQ36Up31lr36uI3bBt33dQ24k26035hU38Yh2182ik3DHG3eH13be12a63BDn2i0373S37312H533l723O3dh53Bei27p3BH23EYG347C3bke3e2225c34dg3bk0133BjG3BH934QM3EZc3aaG3164370r316z33L6375834eK3ezm11237237359v3BLR31nh3e2225l3Bha3bmQ3BJg23A34EL28A3e2P31Lh3Ewd36c43bO931kh383d33nB3bG93bQL33M9347c35oB33K234tJ3BF935i43eyx36Ad3EYZ31003ez12vx2Gz31bc23W173Bk4102173cb936G73EzZ31143Dp33bQa3bqL1323S3f1E38Gg2Vt383D35FP3f0V38LG37U93EYY32Ey2zz2at3bjM3BL33BEK2ai36H734dh32tF31fr3EwY3Eh331Gh2FQ3bgD3bQS3aB73eTZ38lN35by36xq3E1j2NG2Eq340d3c9b1o24c35gp27p24B24b32RH3F2H37tR3F2j39Iz3F2L2BW3F2n348032tP2Ng3dbe3csL32ge34803BbO35Ed32tj38ME36ad3ci532pm31bC3e1632xB21t34yw35QU24r24r3dhH3adq33xj3APO3e0O396F38yh219340D3f352bW3F373CRV3F392NG3f3b37u63f3d2Nv3e12123f3g31lR3f3i3E20340s24K22P3F3m2bo2fx2572573CJA3E2H35KA31KH33bn367v3E2m3Ctq3f4o35o533ab3cPy33Om3e2M3DEk2RL37M53E2F3F2F31h033rI2fZ1825z25M25w21q22126c25c25u3E3i2cX3Cxj2da3E5k26I25f24T1j2611K3aWu22027321n22m24222D23425325U2201G24s2101G22925J23D21B31rE22r1D25d2351v25F2193e4G35w1337o3ayk3ERQ1r3ErS3Ao122V21d24I1l23Y2322332313AO236J521c26821w26J23F36Rw26g26Q24227323921O21y21c22023Q21U26n22k24V23N25d3F6222x25J22324Y337u2103f7f26N39UP22r21v21C3F5g3b8F2x32x523J24Q25c2721z25y21N3F5G2203e5M3E5O2341924r25u2313bv238d334Bu34c134l833143BWP3BV93EfV2LO3bVD38o62Rv34c138aj3BV93Bwp349a31uz33PS3bVn37PE3ct037QQ33ZR2ll3EuB32J2371W3cXy32qw3Bke34C135fU31NW3BWP33O134oC3e6l3bw7331E38B531AK34c133lf32AL3bWP3cYq311u3EWr38nt3CeC33wZ34c13CYP3E6u31Vs33Mn36Ux3E7631792a2398Q33CG31633as434u2314o38LC3e8A2Td3bX631Oh2m52eI38BY3E8I31bG1y3E8l371b3E8n27Z3E8p31h0336p3AyD2F63e8v36Ys3eRO3f6o3Ers3d0D3E953d6X38zV3bXZ3E8Y3D0I2763d0K2FR3E993d0O3Az738D53BYC3E9f31nC3BZ03D0x35OA3eA33bzD35wY3fbP3E9Q3D1731EN3d193e9u3eA732pQ3ByX2Ki3byz3azZ3d1H3AZK2AM3D1v3Bz42I43bZ63e9V3ea836Ut27B3fC338nu314D3aZL3eAG3D1X27m3c8737Qi317M23J3C4u38vE2xp31J21421q39Fl21v2mt38S021b390n31rf3b4f3eFm3d2K3C1127725c26F3eDh393N31QE21K24Q3f5H3BrL3D693ajc3ajE33iF23036RW324E37xs35Z83Epa3B8Y21e3EB82191n23431Qx21w23o26421N321Q359522n3C9431er35fy32Au31vT3f8R3eae3EGN37wo32x03bB63cEa3apK3bv938aJ349A348i32Ig32BD3E6Z35x832hH3aR138Hn37Wc3ceh31Mz34k535eG3E7G33XH38sI2fX31b63CFZ3cP53eMZ2C232JC3czH3fEN31223fEP36ww3FER3DE936bP33N9371W32VT34oc3feZ2ED3fF13dBs32Tl34A33fF632iP35Gt329N2B62163F2C31n024k332s3bCg2O53c9v2li32h231fO31Uz3F9N2P523O371H32rP2fM3Ei735Xq349t35CW349e2IO32RZ35km3EKX2hD2Cu36sC21f36Se345H36Sh37yt37Yv31SM36SN39F3376X3D9R38rh388c38CX31hc22938pD319m21l36sO36sq38F131jI38uV32XV38Fv21838fX38FZ38G138fm319A341C3EqS37oj38mk38FP2jN32nV31Q13190347T2PV2d134J831dG31JE32og315d32oi3aIt32Y822C3C2u31jK338Q31943196338u319a319C3fHz31di3e8u38f53C3T3C1e321V377j32b13fif2vf380N3eF83eO8380r37yU33gb22M38jG31OL22U3fHk38Nh2qi3epX39162j73eD0389s38Es38ez3fI73b2e1d376431Sf1a22S23a1j3fGR1922T2x9310737993fHf3Eok29a1621721o3FiO3Es33c34312O3eRd3EsE33f832341M2a83efa38u63c5e32zc3c0G21j3dtu363v2g134752Cw3dh72ti3cTa3FKD35Av27C36wT2hf3FFT31a33fKk3Dh7395C33K93fKj3fKF3fKm32Q8348I32143Be337ir34I33ARK3euM3ez01p33pL31Wl32pM33ZI32PM37oZ36o92t632PM28y2lM2LL32T03CY42aM31AO3BD532bE31B621e21G33xh35Pa32D521P399C3F1R32DA319j2oS3A63319z32dg2AC24A399C36sP1a32dx372e337639fs27A3Fm039qo3fm22dD23O256399c314434u6366Z3BGK3FLY2sl31xq32Dc36bc31EI3cJU3ctm3AT133U93aST3FmI399c2Ua37b32iR33VU3AsW32EE32cQ3FM03FMt31Fk3Fmv33wX39ZL3CjX3a3Z31PG325O316X38Du2A93COq28i34eS3cO51g37y33Cqh3dYy3cQK3CMj34EC3cOQ39Fr346w31ei32kz2L725531RZ3AjN28P32UL35XQ3Cm93AR43CQO21l3cO438b1361A1431wT3ek83EkA3CQW3BIs399c2SF32m732FA32a93b1b27I26F34na32r52O5399N34Q5334p34Oa36c436q534Qs31v93BnH35n63762338p2cE3fIo33cF3E9m38dJ35c33C8p33763AxE32xI3Egj3eAh2u83BNB345o343q22P3dS223R2gU3dh733DW31us2wu2802wu37V32L13F0433l72h23EId35cW3EVJ2Gt3evl325n35lS37GY32i532uE2BB331M343v3Byt3D1A35e732b42hI335S3DSR2Dd3EW33Eto39J43Ems32xi3EKv34QS375C33aO1s31up38J733j7393i34Fm3Eal3FiY3Fj038QE31HA38Cy36o338n32pO23421n3edZ36Z83fHb323a388c3FI131iK32Y63fi432om22c21O2Hb3Ef72g63ef93fit3fGV3c2b38Vl313H28w38FQ32nV32ZY3b2e31bv22338T831sh38Ty3fRy328X314z1A3EAN38f838fa36My38Fs337o22D2Xl317X32yx21Y3fr6338H3Fk631kC3b243c123fk23Fk43c203fH0327a38593fb03fiI1421936bj3BLu331v311h3eX927921e33vm35a82tf361U22C34B033bl3AWg36r535O9319x32dB39fA3FmF31zr35JZ3aR43E821b3AsE363V3FtN34qO3FTp32dF2Dd24K26R34B03fM72ai3etP2nv21D31Zt3fTO32dE21T3fM334aY34B03au82dD332g35Bq3fU9336i3FtY3fUc3fue34Bn27c315827p37uJ24K25a32M72bO28v32XH34U132Dr3azn2hB21y224365s15396p3fuf37nE33Xj33An34KY32db372j21c31y239fa3fnA34A339Vt3ASS2pQ3fVa2G61h32Er32fj23o24r3c943eGe366Z24k23V3C94374p28Y39x53Cn63fUl27A3FuB31eI3fM33aSi32ex3fvU3c9431if34U63EHW39pb3FW633MQ3fM13dVZ3FVK3Asd3FVo3fvv2bD3FVR34lK35cc2eA3D002833fTG3cdH3eK93DbX3Bdd2AC3fu331kP28y373k3FWi3Fua3fuN32Eo21D3FWN1C3fMz3FUq3FuH276335G3cTA3ash34U82Kq31z83fW831FK3Fm331At217384132v039PA3cIH39VT3fng34m3368z3Cdh25K37t83Cgw31173foX36AF3co934523fnQ3fnz31Fk3FO12Ac34nn2hC1e3fVR31sh3fKB3cnz3cps3cK5319n334Z25Q37x931sG32VV34Nq3FEq3cQ034l83Fob3Fod3fXs32de1E1u2kG24K26Q36902Hc1g1F32DX39Ax3fY83fNX3fyB39fM2H53FyE353M3dpP39E2333V3DnS3cAL3DNs34pZ25U3FZ83AjN28B22D39ze35sg3FXT2l735BB3Cqv281123aeN38I628W21O21k31m9123993321K32r734bl3E8438ES3Fi33a9s2Pq31901v39Df31DH2VF3fIl376u36C13G0O38qZ38es39Cg2fJ38jp3fj337rJ22638jG377h27622H21I31sB22a3d8u183BJr2kC326k3b5837083b5S35Lr32443EM936mY388m3c2c388Q388s33HP3FI738fV338R3Fib33S0338V3fIE31JD3fIG3fgp3fJJ3FGt380S36sm3FH9313N38593Epa315d3G0W33J331Sb37oF3g0H3fRm37dz31j738EG1922037l831Qx33IT3aH532VV3fhu1M3fhw29B3FHy3g1x317T3C02391K3EqT22D3aH637A537L6315I3d4p3eSD3eT822g3G3538uF3fhE31913fhG1N38FY33M73fHj38g33Da627M32oq3c013FP8317o3G2u38WV2cN38fV33553fJU3g3O3FJO3G3B3fJQ2KB3FJT3fJv3fSJ3Fsl2jC3FSN3fSp38Ni3b1U36nT3FHP28w38ey1421W3FiQ3FrT3FIS3FGu3fiv3fhq32ZB2f63FpP381433v432xv37fF32DR21H3FgQ2rW345H216313L330a3fSx37rX389R33s22mO32642173eWw3g0o3C5Q25r23A36A831Yi2kg3dkk31Vt3ehy3BnR32fJ3EhZ312732Q223n2Iy34ih3FAg39D737823bns3bLv38b232eg23t2x93A3J2by34iS35DQ31m823o3g5w331m34w53FQh3cjV32it3G5i3e6z2Ay23o24731zH335327p36513feO2sE3G6e3eYc31ap35kh333h32al336532bF38H032Ro376V2WX365m36o53g6s38H127c38h33fUt3DVR3E78334z3G703G6V38hy321d3FMo3fEr3g6T38h22Wx3fvD38H62ZU31Yg371o24N1Z3FQf34jU3fmA3f3T336623O3G7l3g7N3aE433kz3dsC3G7r3g7T34nb366z31MA2jN3A5U325B34Qn35k332e72ai3c9n3G872AO32dp28P3bcj3g8B34r128v34Bl39Ez3cbU36WI2Ub3aRl2UH2N729f31N4314Q3Bx327y35dX36dn31b4318V2td2dv3AxP2d42M52CT37mg21g312331bD38a8320s3fxL1A21K36yD31bF3bw43Asc3Fxe2pQ3fwb2T03fXM2Rq3FXm36UK3fxM32s83FWb35a33FXm3Blt3A8s3ASa3abH323039wc2Fx37zd33qf39kG39X536iF39kg27d39f51M39sl31NQ39FB1O39SL34c1321A36Br3Au939X836Bs3dvG39SL37uy36d73boV3cih21Q39J439L233oW39qM21d3Dx63DGd38Po39fm37xK21F21p36AJ21Q21c36AJ2m1332g2773BAZ37QI2DB1N22n2O936Z238xv320334R932Y932ZV33sZ35sS3G263g3q36R93EmD2qJ22q3FHl1m36Zx31Wy330d3fJ63fsr34h02qk3EP13ep3321V39391e3ePU3ed83fdV22n3EQ8326W37FK3EZ81O338L1M343N3C6H2oV38T22DX3d4L29A3Fdb34h638EV36JF3frF330M38ck22B3B942p63b8Y21u228357d356L21u319a22G32y032MF3fS9392B1N22a36ZY3epG342B1b22u31Qx3B7g3B4l2cW3d2v38z336rH31tt3D2b330332lm330531tz3C63122253b8x329E3gD43gd6342y3Gd81N22g3fSO3G3H221358k3Eew3d7h3C1o3Efb31s039283fD43Eou37S933y036RL21t22Q3gcd3Efe3ePe38sY21934pt3DV93bGJ32023Bke34O631Nh3EX3310M3ehL37mc37IK31gE2963A7w37Ja3bow23O3Fzs3f0834iS33Q333PL33RD31Lr3cid33rE3gf937HS3bpP2l73gFe3BHv31hQ3dsw35OB3gfJ31003gfl31LR3flc310036OC32PM3eg031Ge31xz3EzI2aJ35cU3bkE35El3g7Z34942763eUG36bE3bLi3f9332j2371B3eY51U1o33Xh3Ff4374731o936Pk377631Nc3eVg3CP037QB3EIg3Evl22E3fZx33bL35CU34tW35el3FGB353129f3BCv3bWX32tF34Q738DZ3G8L39F4336F398O365s317732Qw34TW34O634PL2Rq34pl348l34pL333V353o34jr34WU33mq21v3ej23C9734px38He26p3fZx21921135183cb439f43BCC354O31yI36x036w139TR2eR37Jy3eLP3ejo31EI3Czt3fw734qo3B073G7Q3GH41I3beg36a83GH72Yz32Gj3GGg320438Aj31Zj371b32db31o23FTz3FUD31zT2OS31ZV36X9320A3ApG34z331WR35EL34of34VX3DFi3Gha31ZD31rP32BO3Giz2Zx3gj135Cw3gj33FXR3gj631ZW36OO3Ejr27i3GI23BcG28Y35Fd3FPi3c8b360B3Ew32aI3BFo3aa63bP4310035eL26022k3bF93cdN3GjH3bgJ3AUh3f1V3Fpw3fPj35km35Nq35yY2cU3Gc83EcP3gca3FdU3gbg3bZN3EOt390v37S93GEe3ep73geg3gBi374c3gBk3FdV2Kd2Qe2gu3GbF31883gBO31JI3geS38sx3C323b4W3C4d36r8330031DB3gdi358y3gch31Ld3GCK343n3Ep03FIR3EP232na22f3G7m3FFD35rd38Nw38l738Ks2nN2Kz311434L83egB24932Ba3eGE381v37cR3D0x2Rv38l836983Ebu3GM033u535Eg3gM43Gm62lC382K3Gm93fC53Gmb3GlZ2gi37aK38Nx2Gi36k52lJ36OO37p63fc736133C8s316Z31W02TG38GE35Ls38Dz3BCc365y2HB3cdq3bHK36d33ebI2Wa3elK381X1636qc28x3EnC33QG31KL376O33e227831513ast38Z73EL636Rb38vz37fk3d7Q3C5b321V2K836sK1Y36Rl23H3B9T24k24m2822bO38p037tp3D0w31yI3GNf36K736Oy33u233d02wu3D1w33Xi3fP539FE3eaK27621622m3FR327632jj2sW377H313i38xt111Q2Y12P522W3EsR387I22P31HR1l2uh1232ij29N2P53BY631JZ32763fI8328Q39Jg21u2SW2mL33902F121W3GC335t732kM219325232542DA379937yr2G621Q21o2f13gde22k22I2Ay36Qs3fbD151O22M2X22312852212sw29E2zd32a01T2b23gpB21u38Pt38Yh35nm342V342x21t22S3g4H36Sl359h3GdE322M2x91S394v36O53FKd3aDg3DbX3FKH36Ux331437p737i333S03f9931Lo37g731273Fla2vx31ak37OX329z3F1633433cSZ2Vx31W9333V2Zz31wJ35bY3202336C31O23GhG319Z3e8i33al2Bd33kL36M42g91L319T33bl35Et3GRW35CW3GhG3aw33FTT2pt2VR2VT3GsA3FMc35eg3aRz32AR3FNA3BVa39nd33Xb36953gso368M3dvz3gaw3ffD3aUM39eZ3FYC34jd39eY31zN3dup34jd39F339fa39F63Feq1A36nl28e21g21r34UF39HU3GSF34qM3gSi3GSC34k23fmR36bb3fqI21T3fnC34Oc32303gtb3Gtd32cq28e3GTG39v03adH3Ctv2U63BB72Nh1p361W358K3C6H3GkT2eC36z21j336e3B3Y312h3b40313N321v370E21I370G3EsR22q389w3C0g3da33D0631q838pF322V2P5388N2YM36Y73Em636YA36Yc36YE3Fse2ey37013GBQ3eaw2Qx3FJz31QY374B374d2203410358N3c4p2N234rx38xu330L321v1w3GDd3g5538Ge3D4D173GpQ3Gcy2Q2330q38X12IZ380D2d921h392p2qJ38pj31s336zU3esr37fh38Qg359o345534GN341i32Y32Q22Et1b21921B3gVN36zY379936Yo2rj343V32t119349I339537Rg2102s63Bf137HL3GrH31003Ceo34K234I131mq34C832SN36v22X2363X32h23dsl349W3CJv3e6z32pO371P36Ft2SK34DI3fLm34bj33ok32Ir3BXF33Xc36Xt21t3cBq367v32Vt32ir3Gti32W12e03e8I32Ax32Az38Gr38bp38b1333k35r938hp31O234kL2a231Bq3GY132sx33443ffp2FQ3Ggm2UB23W251335C399f2fx340v35xQ38h738gx32d2313v33P821e394V36kn36B834uC34zj34rh3cJD3cgN3cI82mI366632CQ365C35dl384131XP3cJc32eE3DBG23s32x21v3cGg28v3ei734QS33b535403gYx34Ug34ZJ33VX3CJR3A2J21E31173g7S3glU21O3Cr42Ai3bJg3CJv398j3GXc3g012Ul2uB3Eo13GkE3flO3Gso333P2iO21r2Ub133EkB39i22DQ3h001M23O3H023DIn3def32j032bF33N233o63H0a33xH1E1b38C52U639x931GZ3d1z3eGf3b852xM2Xo36MY37YQ3Ge5357F3fIu37yw3c0e3G0u3gDQ3B4X3eF4345s3eaL3gEN3gQS3geq3gBg38FS3FDr329e3Fdt3gCC1N22x28z38593GKu37s8388T33a835BE38OU360F35KA37fW394x32K53Db43H1Z2Kp3E2M35NO3f013E9N35o737Vt2sc35xm3aq0311k33b031Uz396X35Xf34dD35kh3f4q38433c822772BO332M3Eck3G0c2o734102FO36sk2PG21w3gD5342X33st3c5O362U3gVq3gll3gcJ3awo343N2f633992au21621h3gEh35W832WK31jj38vt2qd3eO937F23c2C31iK3B8v2BF22722428Q38Xw2273Ge23B8z3H323gD73GD931sk31sM31SI2lA3EHp2PV22C3B9931wY377p3d5w37sD33eU37L938uf37xu358935Ze32wI32n63g472P221T3FDY143g3536U6379938xt1P38XV38wK38XX3gDD3D543gpG38yQ3B6f1e2Pz3gU629Y3d783fd73B1e3B9v3gC53h1i3gEr3g0z385g2j63GED3gV534223g4e36Rm3g4g380S3C732kg359q36JM3Eaq33v4357b3H163gqV1B357J38PO357n3Gwb3EP53Eex38rN3GeG33s231C33GC031tY394r3fGY3eRz328i3C5u3d373D6B23q1o3D8I2933gq23D543b3h3B5831Ay365A32Mh2F03B7c34GS3C1437br3eop3b8l37Rp35SS38Ut1K339S319m33Sq33s73ECr1p235378U2eC3D2C38jU1j38In3b0Q1036SQ3d4w323j3d4Z2AL3b20321R1132kk39f33h5A3BNO25k3Fdo3Fd331tU3d72394N3d7431Sb3G1z3g4U36SG36sI3g223Fgx38IR31Qx1Y26A26f3D473B4s143b4U341E2153b7y21T3H403Ge6319a22N32xv22V38rR1J3GCB2g621h21N3c583frY3gV73B8d3c133gVs370121L32cJ324h32P63H4Y38TX376U2232211f3DPd3gd93D8u315e312H38T0369v3H5Y21g3G2433a029f38p93D262243GLP3G4F3glr3eFa38eJ38El38eN38Fe2vX38eR3GW63b2331qX37lB1N3AdH3b6a377q31Sp3h6C2FB21w3B6R3H3R1022731za1j22A21t32po1O22h3B5t3h3T19329Q21x22B2jM3C4737071O35IW1S21n355q1w3B5734m53GE521t3gE722G32mL2242tT29a2o93esl2V42Fd3hbf173d6833F73d3b3gEk3gKv388T3eaS3D613gvz2CW344y3c6w326w38Fs21n32RO3GpY342y2282Di2zK21X38q03Hbb38T6370B35Z83E5k3d4r22826U323k31zh3hC33h173fGV37Yx37YA3b4Q35W6362W362Y3glb3eFg3gul2123fhn388838Mp3915312y3d3X2761K25W26f3aIX2273HAe3FSN3FS721v3h68315d3fH839f321J38pP313n345n3Es83b5d33823GdP38pv38vX21L22m394S3h2o3h232l726722h3af23daj3364333935fY39I83bAh3BAj2ag311e395C22m37T831fA3etA3Dt22bt35Kj31Nr396j3Bo634DS39zD3e2q35E735gY387b28a22J36a8395g3cpe3Ctc3etG3APm21B340D2Ap24K23m33qg2bo28838e932k0347p38nP27737uj3962278398e35sJ1321w34Nr33Bl3ceQ3db62bW3BfB3etH2Xp35fl35h8348036a0348039X539Ia31Hp348c35bv2GE348021X21X23w25N34Nr399f31np31oX3b2S34B02rl3hfK35RD3hFN2Sy3CI52Sy39PO3ApZ31vk37CZ313Z39nY3aSl396x24k26b34NR2bO32G032x835G5395g34ML23O373g35Bc373k3E2o3C7T33Bn3DYq3CTn3agB3Hgx34cR23e34fI31Nr311E3HHA2Hj38Ac3Heh39Mv3Hea32xF3heD32ko3eTr372U35Sj3hFC2a639Nb2Hq2E73c7L3HfE2B03Hej2rl3Hel3DtV3Heo32Gg2b03heR38IU2At3HeU360g3HgD38lN2Hy3AG33E073cRu2AT3eTI35bl28B336534dV3hGZ36dA3Dbx39E92A63F0N320T3cD53Bv9316336p2373S3bGQ3hba31nC3Dk837jA35xq3FLM3b2q3AR03cEp3Ax83bwZ3Hfn34Ld3ci534lD3HGj2KB37RO3dE83dIf39nY3aVh3bws21W21u33xH33cd31792tH349z36cM3AZh3Hj73DC13HGd35Ob3HfN32PM3f4b31003Hgj3eg533u52sn3Hjl32qA3egO27I25N39Fv3BI61132G03EZY315015376D22Y3CPp3aZB2333HKE31aT3DI13eXo3DhZ3hGA3fcH3bBO2sY39le314C39NY3dR33hkB32xB35113DBX34f32a63Hjx35Rd3Hkx2sc3hKZ2sc396h3hL039tz3F8T384E2Sw23o3Hl53azB36fk3hE13FcH3Hgz1234TO3azb3dJ93hiT32143BdV3DC33dhV374732Xa24k2223HKN31en32G023S34Tk28a3Hl932143HJZ37Hl3hK131lr3Hk32vZ3Hk5112lS3Hk73HLg3H0P3EGB36ha3AZb36hQ2A63Ay531ki365c2GS3e2E2Ht3Dg63Bv932BD3E6F31b621a33i13ewS21v3g0A39DM3hEs3e6z34Bq346K2WX310a32tK33292A13exz2VT3Ey134w43EY331Fm375F32GI3ATG3ADH32Ak39Qi37wH3flo3dE92e139Ia21o31CK3A9X34tw2e11I3hhL36XK31xH3GSc3hO73aSm3aS031ol31Ax21z21S3caW38HQ3hLP3aRC34ld329532b628W24k1n24z31kP39tH24Y24Y3etb3aqe33143G6J35dk36GU32A33CeT22825W32gd3eXj28v25334Vn3HGX3E6Z3hGZ3BIM36Ft34Y23hIs3C7t3Flm3BWd37xd36q53HnS334P3hNV3aR03HNy348u372J3hO13BQh3CZI31Wj3HO53EK131Z839PU3fW61I3Dia3Ftt3G0g3hof3hoH38bY3DF033653bWZ3hoN31ay32b73EH13FLm22G37x93BW538c43EY4329V33Wz3HP232gA3hKj31vX32101321z3hn82h13HL93FLm3HGD398j3Hfn36lN3Ci536lN3HgJ2FQ21i21f334q3CFb3hk93CFe33oo3CFG22t39p036cZ31ap3Dpw3hEe3fa032g63he421n24F2bn3Eyn311e39oZ3HOK3aqO329Z3HgZ3hkM36ft26C26c3HPi3HPp3ewO32Fl3hQm28326l3HKn33bL3HiM35O73hrZ3HkN3eGe26J3dqQ3hH4320K3DVc371X37XE39Iu374L25b33PY374p32G03dRM3Hl83Hgb3hMC3aX83hK031e43hK22xP32pm3HmJ3HMl3EG72kM3hrd3bvb33zT365Y33PY3egE352j364P3Di12DX372V3di02Gs3Hl9383D3hGD3bke3hFn31NH3ci531nh3hgJ3Gf637KO31ge3hGo35cC3Eu435au32B23BEy3crn3egG2Tq22U3A0B3hsC333935ob3hgz23v3dRh3bEy3HMw3F0m3c7T383D3aRK3gKH3HSw3GK72vz3BBO32Pm39lE32pm396H33RE39ny39K03EV3321q2L434Im27i25d3a0B316b3fOl3DI531gD32h239NY3fa33BW63FG92693a0b3335327q3aay34O41434JQ32Q0312736Ab3hGx38aX3He43Ct539Xu32qT311E2Gx28a3hoB3775218214329L336531m835KJ346z339H310A334M37473hVz364I1w3DI13bfW3175398e3HW02a63Hi032Ig3Hi232So32j73BwW32ax3ffs3HeQ3HeS38AX3hIa329k2A633n432Sl38Aj32rx32qG329L3HVX32J23DP33HNU3A9X398j3Ho532T033mN22832Gj336939e03aRt34Jf31uc32Tx2kT3ffn2zu3HqC3e7J31w935fd31ax3Gy834KY32G433wp2V63COa21L3HPN3eY031mD3hNj2a63F1g3FOz3ey23HNk3HPp3bgI3HQL36q431b03hQZ32AL3hR13fes319N3HR338HS3hr538Hs3hr7153hr93HRB3cFw32A639TZ3aSL3CFq313i3Fu239Z22hc3eYn32G039yT32D233653E6Z3He426f3dxN3eYm15311E39z132D23hwx31bI39z53ey733Bf3hpn3HYD3hj93HPr36LN3hyi32cZ3Hyk32cZ3Hym3hyO33zI3HYQ3HTY3HRE3cf53CeT3HvD2Z136HI22s22T3CZO3hWc3c8B2462bj3EgE345d31lC3dhk316724r36A5355R316c32G03e1c3i0B39RH3bB93HtX39tz36xQ3bef23V3I0f3bEy2312303i0K3e1W3BPf33pL36AB321g2L33A0j3eww34a5364F2UH319231NC35D33bl934I93hE41Z3dAa3EzV311E23b23A32d23HOb3Bg93i183HtG3aq3364F3ewv3hqU3Hv03Hw93i143Hrm316O35kJ33M63HeI35Jj3bLi3hwL377534a634A835dy3hWR3bn831273hIa3EHa3i1a33lW3HgZ1923W2z135cE23u23V32D23hIt37823f9I2w938As3aq534741O24d3I2i2gu23Z23y32D23dtt34a239iu3BoS331g36A033n039x53Avj3HRx153HPz31VS33OK3DHr33N93diA3fA83cE83hqw3Ggs3i2R3evr24M3A9n3hx537823A9x38ax3i3C331R32ax35YF2a63dia3f9y2nz3i3k31fO3hz33HQo32G632952wr3I2739WO310431kH3fT72jC329L3Hx532IG3A9x3E6z3i3U33mJ31MZ38gK3hQ43dJD33MQ33X73i4135Yj31Bf3G6R3HYg31Kb33hm3FF7329L3aWM33273EX833293hx134I8349m3b8z21U24k1V25639xU3bJR31V925625732D239Cj31043HL932IG3Hgd3e6z3hFn33wz3CI533Wz3HGJ2u321i387u35L81436vF3Ht93BW532h92p524K23025L39G43dPE32g025H25G3Hz233393hVp22324K1C24P3HVs14311E25K3i66375N35v33fOf3acm334I3hwh28a3hWJ32j23Ctq3AQf3g7H31Cn3hpv38h935Dw21g21d35s532il32in3I4z3hrW38aX3HGz22L2602z136FP25y25Z3i2M3c7t32iG3cxX333d3I7A3F9Q143he43bU53I6j311e2642653i1k3HeB3HVY3i6t3Hvo33oU38AC3Hw53aEq3e6b34A53bgB3hwg3F2c3HW8372u3i803Hw23I821B35Ap3I20331p3hWL32rx364M3DRO3hWQ3HNa3Ewj331G3HwU3i8a37ee3Cnk3i6t364G31753I173I8W3Hwe3a0S3Hwa2a63I4G32J23I4i3i4532t63I4k3I613DRp3i713i4O32v43AQX3hJS1235yI333L3hGx398j329532jB3i4F3HNT32iG39QJ3HrN3i993Hpt32D63hZG3i393bwz3Ho53hoB32aw39pU3bt72A63hob3E7R1a34lB32ax3fF136ed36vV3I4V3de93I9n3I793BNV2I63FpV35dW2183Ce73iai3ab733653hub21m23o24C3aDm3gfs3aX43huh3BDf21t34og3f1m386y3iAK3HkJ3IAM37Q43E033hSD2rV3HgZ3aE13952372d37573iaY3DC135FP373p37Xe3feg27O2u33hTj320X3hks3eXX3DhZ3f553HzK3Db637uM2HT3hif3F3u34Bu3HIj2bW3gh532Ps34DD3gwf27W353L3HIC37tr3HiE3Ag43Csk2BW3IC12aT3f412AT348l3dBF37d12BW3DDX35Ed348D38J133Pl33ef33Pl2aP3F3j34AY22d3HDZ27621p21r394S3IC9311k3icb3HIG37tW3IcF35Bd340D3iCj37D0340D3ICn37u63Icp3f3e37V43IcS32pM3Icu3F4e33XJ3FU23icx395s2E63dNd394s21w3Fz83F4v34QM33Bn3bWP3E2m3cPz3e2B3esU28a3dIa3e2M3Cm733BN3aUH3f543adO34QS2c0366Z3fCO3F843H0d1t24r22n21F25C23122026n24Z22U21E24423E24F3E3426d26Y2281724g24Q23E2343F5I3bTZ3AjN3Fj737Lq23f25J2303d8Z23522j24L3F7F3cWk3cWm1s2513F6S37lC3eqJ36YK31K21O2273f8e23d23422a26O3f6227221u23B24C24s25n3fDf2203bUS3BuU3Buw3BUY3f6K35ii3B3W3eB636RL3hCl33Gb21m2dm31qX21g26s26F391826M24x3e2z1W26J2613f6224p25G25426a22x24o23y3f7f24m23s25u22Z21x21j3iem22026o21N1c24w24w26022U3E5j36303D6z363337L821V22C24l1Q26621T24T3f5H3g3037EL37BZ122313e603e6226p24i22l3e3424F24V25m3e2y1x23236Rw24425o3bUc25F1E2673f5H3H5W37Ys380S3H603Aj1112301s23M26M21K26x26e25P3f6225x25w27324p26W22F23L3E4F38Fs383Y23e2242492623Aw72193fdF35793fKo395g2a63EU33GR932km3bVI32BO3fEE2b037VL3b0d396k3bV936xq349a3Auh3F942gS386s36ul35Ff32vV3104365r31nw31uz3f9E3E2g3BkE3EZd33kn31Nw36xQ33o133683f9n3CYA3g613I7P36as331R36Be3AQH3Bw43f9y353M3ffC3Cgp33Ok34l833mn34CP3Dib3aQy35Dq398J3f0c3bwQ2U032vt34MQ3hXH3arA345Z34l434jB2Cd3geX34l934lu2zq34Ld31BF345z34tW31WP34px32he34vJ2af31Ax32I43HOI32j736XV320X31YA27x398p34C236d33FN632CF3APJ32T03AsP32V03atN2av32u7193H0T31UR37U733Xj33dM31FA27H32cq28S36Ki37bC375U3aaf34DR2JK2sQ36p9367m27Z38xp321k32qv3ayD325235s638pr3ayX3d072fD3E8t3fI73F6n3Igf3h5Y35g73fB73Fbb3by63Az43D0o36Cm3cro3Iml28q2U33E9D3AZA3EGE385W3fbn3BzE3eAF3hm03fBR38o12IE31N23bYo31kw3e9r382T37pC3fby3bYw37282gu3fcG3d122HF3EA23d1K3fcA3dU53FCC3FC03IO43e9y3iNt3GMT32j23iNr3GOK33U73ENY31bv34my3cmi38Qp370821937zP3e4t3D9B3E9637FC2F4356D3el93hbJ3H9922X32U038Rv2hG225394N380G32Xu31zH3d7L3D6R3IOu37zr37zT3E4v343O3fSY3EqK2761w3B6i21u31ii2ka3hBJ34343D7638z635603D2p337O3FRS3h5N3H9X3EOa3ebA3G2z3C0837YE3c1B38143edB31q032vv3In73Iim3H181B33Ge393p1O321V341F113B7O3bxO3b7R3Fj23B9w3C3g33893e8t34Fl3h153iqd3hCm3H1A33973IP12V53h993GqR356l22Q3eOB36cc3BXv2Vo3HcP3fH23c0g3hcV38qO3ir035t621z22q3IpF3D9A3iPI32n53hd21026O32583d473h5m3FrU3H5y22m38Qo3c0n33Xt33Vh3195319N38NH3B4438Qy3GLJ2xD3Efj37xm3iFr31Qe1W24s25O3H7Y2fN3c2I31RL3ba1357837l933fK3f6s319t3IrF3h9922w3c2w3c0c2ev3H6E2uR3ES138043fB33Eb83ir63ErT380j37993aYK38QS38Y838QV318i3gv438SW37SJ2EV3iGD37083B3Y3bXo3B421f3iS3380j3gct3b2a3h583c5M3E903ioV3E4V3IQ93GCf38FB2hp394838sP3AYm3It733vE2G53iSo31In22U3Bs53BxP3b7s3frq3IpM3Hb73b992U92N921y27923634123HKE31Gy21P39NB38x93IGe3Ed83iT022D38QO3iT43ItY3AyO3iq933S23bXn3b9i3B7S3C45343F3a9h31pN22D2G71T15224326O3h35324V3bs338Qq38Ca3c0A3C2x313G3hcz3Ha536z92FM326y3270357122A173c163c183c6M38123c1c3Bxv336u2273h6L103IU231Ty3ir3342y3GQu380s25139N728A3Bb23C762B92273dO0385V31nC3Ehy35Fy329S395739592AG32S8395C36P935Fy39D13c7W35Tr35QI35mx36A038kr3HGk28S3h2Q2JF369t34Ko382K32ir38ln31Cd3H0p3F2L313z296397r3eBh3Fpd2WU2Nd36v525m3esY34xq3dcd2hy3GXk3HXO36w53aRd3eU834ld34cG3esx366K313a312H340v24k2313iXj3DCW37d33Gay33KZ36ko2SP3iXz3Iy139Gc34Ko366z3iY636lp38hS39A53iy83Dd41634ko3C9N3fy83DI732BK3iX73HjM3dje3Diw32cZ3eu836LN348l36lN39LG3dDs32bS32t931w9348l34Ld39Lg34ld31473dE53dE734X538hs2eQ3Iyh3Az42E6398A3gJj3hj83cMb3CeH32T534pJ3HPo3ho82DX21g21f34j72GP3h0B32WR3HZG3dE936A036lN3468398E32U03EKl2cB3fLO360O1y163AQB3EHy32bf2VJ21833vH3J0831Xs3J0a3IYJ34Tr3j073J093J043J0b1221f3j0E3J0L3Ar021d3d3b3J0q3j0G3J0m3iyj1k2lG3j0k31XS321a3h0O34Oc3H09320P3IZU3Bg03FER2aX398n3arb3aqH33K93BWZ31V22b621532v731IO317Y2Zu321A3fAU1c39JG2a63hh73FTK3e87192T833K93g9c353x3J1h32A221031zT2uH34X234ze3gRZ2cw3DDD277317i32Dx3eYQ32E71J1Q3Am7339W3g5S31zl3Db53HOc3A7F36bd371w39sC3fM039DC3gTS33cD3DRh3cDD3dGk33U9365T35jz3J1y2ry3fxM3J2132pQ3j232l73Gje101Z217326H1A3eZO3aqI34Z63j1V3BBd3IY02bn1M1932s83HKi3J3G3e8634Z839843J3k2HC3j3m32s82342343J033J3H34Z832k63IzD1v3j3w1u3F0A3j403j3r351H33553J443j463f0k3J493J1U34Z82Cd3J4D3j3N1u3dIP3eHx3J043FaE31z03E223j3U3j453J4l35Ht375j3ia42aC21939gz3J3V192Zo34Sz3J4g3j4Q192mA36fN36Fy33Ls2Cw36FR3IZh351F33xu3GlU3ARl2iO21C2NC3EHY32Vx360o2eR33m83Cm73J1P3J1r2833IXI3FQa32wW3J4Y24K21e2463j3l34u33BK33j56353R31Z03J591L36hL2g63GS31023y23Y2a63fTj32Vx396k3czE3j5k3j5m3j4p193J0C36x833M8316n3J5T2cW133j5W35vl32k03j5Z173dLe3j522B72483Bjz3j3q3J4H351H3j591Q24E3GS22Cw3f2u3j6h2g53ftK34jd3J6L320p3j5L3j6621d3J0o3J6R34Tt3HGD3j6u2G93j6X2I63j6z3J291k24w3J632Be34We3J663j1V3j5921b3F3p3J6C2CW24o34Wc344l3j7h3j6J3Dc03j5J3J7L3J6N34z634qP3J5Q34TT34k23J7t3J5v3IxJ3J7w3j5y3j293BI43j632ay3hOV3J8434z83J593amR3j7d2762512513J7g34z63CIJ3j8H21L3j7M3j4O3J8k3J0u3j8M3hSK351F2AX3J5U3j6W3j8R35pC3J7x27i3J4T3J3m27D25B25B3j8Z3j7921k23O3f3l3j931039lz3J973J5g367V3j7k3j9B3J8J351F3DsG2lg3J9G3I513FtK3j9J364w24D321d3DGY33u525m3EST3F5534QS32QV31c02PQ3IrX37QQ2vd2203E8T3aJK3F5k33to3FBj2t332U72wD36c228T3D153BYy3d1R3E9h2ea3gkJ3GOL344E3BXk3imz35s33FB03In322C2OI3JAs3aqc3D0e36TB2R93by43G0U3fb92d13iNd3D0N314Q28631gr31LC3d0R3INm3d0u31Nc33Z93FbO3d143DC43jC435jD3efY3fbu3BYR2HE3iO13Ea63iO3386c3IoG3jC83D1T3JC63hM03d1L3bqT3iod3b09385Y3B0b3jCJ38dA3Jca3FCK3jBc3IOn314Z3IOP34103hBI2V533xV33Xx2N933it3566322v391O3iW121Z3Iu43iQN3b9j3IUr38QQ3it538SS380G3eDb23d3B9T3eRe3c1S3ihk3Ayu36333iSY3IuO3ebA3IQ932z43Ha927621x33xW32lN1k22b224328238sZ31Ii31m9318D32yx2sP31c32382332983JeE1922U238387W1N22t318c39jH1t2353iyJ3ISn3axD3H6v3IR23geO3ir53Iq33IPy3gC632Na3IQ23ir73eR72JT3IRs3H5o3iQE22M3IvC37083iVe3iVU381422D3iQz3jEU3Ip231In3isq3Ivf3ISs3eME2eC3iPn2n73IPP3h6u3Ips31sb3H3j31q13IQC2g63iGg2Xd22m3iT33JdH3iUT380g3Ajl3B1d2cu343L2B3343n3iV03GtR3iv33Iv53Iv7173ItP2vX3e9237Y63Iq93fiy3C672Jn33tu1r2213IrE3jFI3IR131iN3iRI3e913ioW36MU36Pi3Gcz3FRk3jd43JE23guO3d2F38u735sw3iFq22o1P399c3irF35fD32JM3b6n3Je622c3je837DU3Jeb1D3Jed22Q2tH313R36MF2323jEK366B3jeN29m2952353A093jE128f3d7538wG3IuN3Err3IUp38sn394938YJ3AYN3IPa3HDl3c0O3iP03JgV3iRg3iP42fX3ajm1C3iP83aYo3Ipb2Yz3D823d7n3Ipg3iow3jIp3iOr1R3itF338v3ith3iTJ37YB3iq53jFm3C1C3iq93iVZ3jDB3IW33GqT3iru3iQJ3b7N3iu53IqO3Isu163isW3EOh3d47322X3Je52AV1T343436XV38Um32583gCx345n33SM33so2PV21q357k21U36Zy3d2p3h4I35wf3jd13jfT2v5324t29U389N326g37l93G2M363F3IVR3C523ivt3Iq73ivH3JFx38qQ3iOt3jgz3IPi3Gd1323R21u23437E23au834wW2US22623031lZ328322c2331X2262Sp3jKy3jjN3IpT321V33s93Jd51933C932O538Yn3Iuw38QQ3jIY3Bs63b9J3b9z3iSH323m35793IQU3HCj3H5X380S3HCN29m2492703J1s370k3cTb3DAE23j26Z3Esz3iwg3J043Fe831kx31eY2aG31V93c7k35ys2B034c9321o385x340D35bt360G3C7D32Xb34jW35BC35K63iwh34Bu2b7347I319t35eP36513Cmq33bn3Hl233143G5G37hL3j1H27A21G21h33U53Agp3c883H242b03ET13iwb27623W23f350A27A31vM34ck3F0x3daD394y3j7734Dv31V223o350R39uE3iPM33kZ35ul35Bq360039d12RV34ko3iWY27p24k22b3Jng3bek2Av3BcJ3j7735FY3jmr24O32x235EP3fn43jmw3FEU34AH3Cto3HfD32ww3C7y3CT339d23cRz31X537263DB43JmP340D3jMR35D835BC3iZg3Jog3iZN31vt3cPZ3Ce03EVM3fq13Emr113jN43jN63e2R3j9d35G63EZW35Ga33ls3jmP21d1421H34cU31V93jO92hj3aWQ3jPk3AwX3jPG39FC3jpp3JPm21D1c21P3jpt3JPG35XK395T3jPu37Y73JPy3JM52hj35Hw31Nr3Jpl3J1T3ctE32J43E2M3bI03iDW28a3JqA36xW3JOI3hh93F2X3b0x3JPm340d335531Er34dV3axx3jCq31lc337F3JlX3EI93Eh931nc377233Lw33m8371b38ax3Jqs3fFW3ce83exb3g0a31g43Ew725D22T3Daj2FA3eza31251j1g133bby3dB132sL3AR432iW372j3I9x35FU333p3dvz34kl2fq3i7434y03bWv3I783I8O3jR33I7p3jR52fm23O26o39ec101q1o349K39dU3j4g38Ax27i27234CN332u31v939eB2A63jrM37823duF3i243emx3I483JM43i293eW739e63EZv31v934So3JSm2zP3bLi3Jsp2W93I2535DW34a93BXA3f0d34i93jMi3Eha3ekm3I1B310M3jMr1A3j6g3BLE3BjD28A3CMQ378235fP31nW3eYH31MD3hP32A63i6X33ok3EHy3j1G2km31O831Oa35xm3i2r3J773bKe3jMr1i3J623BLe3dk33jtL34Ec37823F1L31093eXv31793jtz3i3l3bkr3jtD33lw3dBg3jo43BK931v92492493J4g3bkE3dD13jun3JSX1k24C3F2r3jpb3g5j33TA1O3jo33JNG3BMQ31v924f3hRr3JV03Bke28p3jv43juO1k24I24I3jus3Jte3127311E3Jvd3jUw3j833jvA3jvj133BjM3jUv3JV61k3J8b3JVi21D3jpd33m6348B3ce127i1j34vn3BmQ31cd24S39jS3jvP33lW3Jmr21i3hoW3blE24v24V3fnv31nt3BKs3gfB2iO3juj3j04310H318X31mX33M635gB3EIC314s337s34aA26S3jNg3ExU3jp427I3bBF3Bk92aa3CKS3JvI3jwb21A23o21N3J9U3blE3cL43jwI3BkN3f3t33KF3jwM3JsT3BKn3GAE33Nq35gB3CM73EH83JwW2G93jWY35ls3JW22aC23925t3Bk92e63Cm43jx731Nh3jMR2203iW83GGd1025L3ixj3DC23BLi3AqT3bLK3JVX35UH3jwS33LS34Di3jxQ3bng3JXT35vL3JXV24k23E39OR3ezV2sp25V25v3jY234I93jmr3CLz36h51025Y3cna3Jyb37823hEJ3JXi3ggT3JvX3jpw3jxN33lS32Ir3JYk3Jwx3JWz35pc3JYO39Pl3bK928M3Dq83Jyw3jTf3jx922q3dpY3jy726B26b3jxF3BlI3bVL3eh53ju333Ln3JQ33JyH3dJ33jQX3JXR2833Jym3Jx0372K3JVm3BMQ2RT26L26l3jZN31273jMr3boY3jz03hsv3jUA3JWj3f9B3jzY3JtD35Ao3k023G5S3JzE3jQw34Ds3f0N3jQJ33br3JaN35km33Ri31C031q13JD23IYj3je133Xy21C3ao23jAW3CXi3E3K2Vq3DhW3fcE3hUN2W038ol2m5375L36c331FK3fQ22Il1y1W37v53ByN33zw337i383i34812CU355q3K143jh533xy21N3JBN3FB83ihl2fK3jbF32a63Fbb3e8u3iN3321S3inE3jbw3E9b3JBz3D0W3e9e3Azb385w3JB03D1T3BZ23bYJ3aZ83BzE3k2N3Fpf3Inz31EN2AI3bYU3bZ73JCg372S3B0B3k2L3jCu3K2r3jCm3Iob3jCo3Fbz3jCQ3jb739FE2AM3Azj3bzF3HM03eaH3Jcy27m399537683jet3ipr3JGw31tY3jfL3jfe3IVh3jjG3JJi3Fj73B962jT3JIE37S3322x2252852jm3eei3jGj3irk3e933IQ93ji93itx3JIB3ITZ3jfo32623JGe22B3iv4338F3jGh3JF73H9x3FRV3G4I35vY3c5f3JdQ3b9c21u3jLG3Ite3JjE3b9j3jKk3iOs3irj3JgL37Zw3d6p3D7M3iRj3D6U3IpI3JFh3k3l3iRg3jJ93JEY3ir732z43Jk335T631oQ2Cn3IQk3IQM3IUY23j33BX3K4v3eRP3IN8380S22w28Z3D473JJ73JiH3JEw3gQS3IW53jf93D2p3Ji53ED63iSZ3Iq33GcX34FL3jGU3k563H993jgy3itq3E933gv7324b3g2N37cH3ivS3ISr3Ivv3Jk53k563JK81t3jKa2F4358k3jDA3k5T3IU33k4T3B7s3jF03gLQ36ro3Jf33iU038073Ji63f6P3IT03K462hP3IuS3K493jio3JDy356E32i538vp38pY3JJM3Jl03jHl3jeA32mG3jED3JeF113Jeh3JEj3JEl3jHx3JEp3jeR345n3jGa32753JD838PH2eC38yv35763IsI37C02de32JM3b4e3IPM3ipO3IPQ3h6V3IpT3IqV3jFz3h5Y3jLT29N3jdg3AnW3k763jdk3H1A38tM33JQ3d7u33f82o93GQd341234521m31au31Q822F3Jig3K6631IN3JiJ3ip63JIm3iP938SU3K6I3h6v31x434lE3d3G326131q23jjz3jKS3Is03JkV31sp22S3K7a3C3O2263Jl23jl434593JKz3JJO1q3JJq31NP37FA3Gvq3Jfb3c4q3K6g3jFf3jjv33s41Q3JJY1D3jk029A3D093jJ43Iq83h1a3iTd3JIX3iu53jJ03C0E3C5Q32583a5x3D203JIH3jhG326G3jhI3jJn3JHK2D73JHm3k7h315d2383jhq31xf22Z3JHt3Jhv2aS3k7O3jHZ2603cPk3gk63AG532pQ3c7739ov3Jm33J4g35FY3dDc3Et43JM9313v31aS3JMC3BB03db43e1F37ut320o3b183iWt32xb24h33MG35X73jV035fY2883Gxd35qu365139WM2Rl3HxF37G13jn033pL32E533Ke3BFV3Jp73jn5372Q38oY3DaU3jn93kB834bU39Dz2Aq32R73eHL39643Db43iWA340D3aPY32a2394y3Db33jOk35Jo370n2hi3fYv28g3jOr2b03KcK34803kCM3kb432KE376D23426S32gd32XE103GH93JQn34803KBt3gR535qU3bD43kBx33bN3aQT3e2F39PB3JOM3cSn348G2Pg3IbN3jos3Jq5340D3kbt3FMj35bc3Evx28A3KdG28A3BAv31Vt3hly31643bIU3JP532983Jp836Ot3AGk3Jpg34Tr31nr34i33JPg382y3jq83jpQ3jQ5324121k3JQ43Hef31Mu3KEL35G61Q2173KeO2an3j6q3KEg3jPU1821L3kES34cR1j1y3Jpt3H293JqM35cU33bN3DUF3e2m3cTL3jQM3jOt34803AVY320s34dV3kd03jQt27a3jqv3Kb23eh23JQY3hmT31Ud3Jv131bC3jwK3G5T31M13kfH3jr637473JR833B936v724k25E39HG31402b739aB34I83JRI1334ml1I3i6v33BO32iW39iU3I9x3i3F3Jrt33ln3Jrv2Y53i753f473i8m3DXI3iaH3kFs38AX3Kfv3Js526P3bHx3JsA349K3bhP3JsE3I7P3DDc27334sa32R531V93cFJ3i6U3I21378233nb3jSq3i263JxK3jV13ddc3bj13Jve3J4w3Kh83Jwj3khB3JT43jSr35Dx3eNt37883I1N3DKK3jV131Gr3K053jzZ33LW3KBt1f3f1e3JY73Hm82a63KbX37823dG63JyE3jWa31Nh3KBt3Bkh3jZ03j6f3ki439l837823ke033PI21N3ex93juh3hjv3jWN3jSu2E624k2283kd53juW2463jU73kHX31NH2Ma3kiR3KIt3jVu3juQ3k0f3eIh3KJ03jvE3juY3kj43J433kIs3JVe3JV83kj43bPs3Kjb3juw3JVg3kJ431v23Kj63JVN34WF3JVp34qP3jw038093ke427i1G3CQU3EI51T39jV3kj43KBT2173JWh3blE3jW83KiF3JWJ37ph3k0o3jwo33LN3j5833oy28b3HUw3BkN3BnF34Aa26v3kit2I63kJs2AC22t25d3Bk92SP3cKd3kjZ1p23O21k3Cl53Ble3JX63kdX3kIg2Ll34Ag3kI83jzZ33M433m634L731223k0T2833KkI35lS3KKl24K22Y3DoD3ezV2Fx3cLr3kKS23O3IXU3BlE3jY13kKZ3jwJ3EWo3kl33k0P1t3j0D3kl633oz3GLU3kFM3K05133KLB35Vl3klD23J3Dpm3eZV27d3Cn53KI934I93Kbt3Cn93Jz03Jyu3kk53jxg3ABH3KLs3kk921D3Keq3kKC3GgG3Kl93kM13KKj35pc3kld22435123EZv28y350m3Klk22V3jZu3bLE3JZm3KLP3Jxg3Jto3I2q3kIO3JxL3KEX3kmn32J03kMP3KM23kKK39rh35C93kJL3bMQ2aP26I26I3klK2383DrN3bLe3K0d3kMG3Bli38Aj3KMJ31NT33803KF23kLW3geX3klz3eha3Kf63Ibg3k0x3hE03bz62m133rI2bH3iS83EAM3iVL32jm37l93K6c3E8T3K133jk6163k953k7B2us340622032z43k8n3K403K8Q3K8S38yn3jAX3E3K2392kg3IBP3d11371C33WB311q348n2h131kh3eHc32x73Hn635Cz3i3k3E9j31N23e6z312h3HNe2tD27y2dv2ct337k35xW31b831B031A23ElC3ClF310Y3HNM3h0t3H0V3Inf3bxk3K1y3kOJ3KOl3C3o3HcW3fb73K1a3jbp3D0H3K2A3aYz3K273D0m3BY831d032d23K2H3JC12TQ3jQZ3K3B3e9i3k1r33163k2O3k31386837733kqm3k2s3fbV31L03E9t3JCF3d1C3C8q3K303kQJ3eA13K33372R3JCN3e2T3JCP3bYX3K1O3bZC3KqO31F33kqL3f0O3K3E3fCL27828e38ED3Ifo2p5315r31593iJ83H5K3iOx38z63gwm3EoW387k33953K5z337Y315s1821R3H1a38N238X2328b1a35cc31Sr338F22S23039jg28523238sj3haU326m21w348V36Lk113cvb2233158314431P33B9f22B320l2b11s22m32YL22d35uE35un35o732UE395y3fBL3FYW38kk3eYs37gv2L03Hlj3C8B3kT13aZb3Bas3f8W314C37pG28D3c8M3ebv314c37JO33ZS375u387c27f3EUg37Da32xp1l32Nk3HcY2p523932gW2Gh33eW21m356b38mk3IPY328M32b12PV21O38fi318i38VZ3D5E3h4n2P32Y33eww3ARz38Wd36t32F43d4N2FM3ktW2Fp1J38CB38CD38eo38cG36Rh3KtV3KSg32Al38833D561H3Fh828F36252X223421t32j2321q23A21Z1m3Kuu2fc36Yb2Gu3Kv4161G383x3eF63ku43g4W3EeU3eP932wM3glH387z3ifo3C1t34Ff374C3h7o2x2341A37fH388A32mS36ZE389I327H22032X23g7q33Bn34dI38kx32Hl3abH3kth2sC38D72SC36Vr3H2E3gmP38Nv38db3GmQ3ac13DbT3G7q321434Di37B23KWA32073fl431003gww37y134UG33WD33u137Pk2VZ3GG23BBa37As35C5348I3gFv36SI32pm33kI2W43gg62Wa2rb312H33m4346Z3jPL321A3e6Z317I1H2uZ3end31bF35et31AO2DG1p3KXp32al32J03kXS33Qe36PJ35dP31nZ3kxS31Cy3Ky03CYf3FlL15364v1o3KXV3FY83KXS1P39XW3ky5310A34rk349k34qS35vQ33D62Oi239343h346F18378P2JC3gVy34422OV22p3B2z1t214335x22631B03Kfa3DBA38423Iws33xi38Le33F63h2W358535iO35t437Xv34hp28z3h7l3C2j38yZ21v3k9t3Jfd3jKI3eQU3JHb345n3kA43K3P3it119389v37xK27I316g2cA37u728r3ixD33X338aD33l23jc4367d38AD3E9O371M2dz3hUG2832b139pJ3eC2395s27p3BaS3l07381Y36k935xs310Y2g13L0836K935kr320k371W373P3ENU375t374433XI337K3GiL36M43AUr35863kzE3H4j23A3k5k3IQB3jKl3k4x3Jiu345N3k433k4Y3KZu35pn3eal3kzI38yX38Yz23a3DRr3KZZ395S31N835Bz3fgh33LP36K92h1360S35cw36P636K93e9x31fe2Bz3EbO3l0E32vv382q3l0H340v3iMF3G8m2GD33m43l203L2b2IG36k73L1v311438o633KE3l0W364F373938oZ2Fm27x3KrH31hq3Aur38w23eS03h6G3eOh3k3w37z43K7r3k4m21S3L1K3d4Y38yz3Koy3C7s3Jlq3IQw33Gb3k8c38W03KZc35m4363m330l358k3k5L3f6o3JG01B22q2HB316F316H2AG3Bx638dI35aO36K92t832U53L0q33xD38aD3BlH3gnd3L0D33ld32M7382q3FuW3l0031uB2Nc3l3x35Cw35Hw3L2e3ELI34w43l2438Di37Ar3FoN3DbX36513L4b3gxM38aD3l3w2s93L0q31743L403B0E3L423l4h35O6369N3L2M3hqu3Ktm3K1V2783KZa3b0M3K7X3KZj3C2L3Kzl3L3E35pZ3KzF2N93l1838Vn3k743jg43k8g38sU3k8e3AYL3l5J2OT3Edb35mH345n3ksv3l1o3l3Q3e9b3F9z2Sa31gG38AD2h138O63L2H2sD3Bve3eBn2TQ3L0F38223L282ag28V3kTC2Tb3l4S1438Ad3G9g3l6d3L1y3ELM3l2I3ByB32Hm371x3l0X35Cz3L523L2P33RJ3l553jJU2X93L573l1L3l5935W433Bx3KA83JLi1N3KAB3ebc35Z43L5B3l1635wf3k4R3ka93Jde1F23g3L5t3L003BZi3b0C3L5Y36K93d1i3L2C3l0m3l6338o63L652G93l673l273He634813BaS3fbn3L7k3L633L7y3L7O2kO3FbJ35C6320o3l6P310s3l0Z2o33L2Q27A2DX33bw3Aua3jDT3Ji73Jdv3H1a3l343H7n3Hdj31qY3KRv3fB43IUp32yl39J727i24I2UB3L293l023l1X39No3L4e35O63L7r2831e3663382E3c7g3l00364b31cK3l8y39Tr3l0N3Inv320K32QD3l503l0y3GNN3l113EKY2o73L7034S538qF1Q392339253B8o2BH31682Fm3eTN2Dz376J3l0q3l9c370Q28539Pj24J2IY2BO28P31a93d0w3l8Z375g35km340033d633fu31ID33fx33Fz32Yl38u135Rc38D43KR0386A27A3Fph3GfT35lP3b1927m340h31Q122y32Y61731Q631S531Qa31h82353B0v37QZ3kZ737d7386w3eo2339431T321M2131V34GU3Cjv3ie23LAU3Lba340W2J93B8y36693h4B3Fdw3lB63Ctj37xH38lE3GNQ37993JBl3iRZ3JKu3fj1362k2Wf2123irw3D873irY3JKt3Is133je3jj12333FU13L8u3l7H3B0I3Az83L7z3bYM397t3L4g2tQ2kQ39pj39583L002aI381V3FBj3l7z37BI340f37X233sk2O7391o3C463Dvs22t3k163Jd622B3JL632833Hdn2mn3g2Q2Ui2uK2UM33jN3590370839in31DI3D802CN3JlA3JE23kou22F391o33t138Cf3Han21T3DVq32Uj322322633t3343v3KZP1031K322037lV3AzZ31Ku31ei31Kw381r381T2lC31Kr2Vt32143JCl3Hqt31FW28235lO37bH2KT3fQ9354N3L842Nq3bV932QD3ktL3l892u63L9k3Gnq391o3k143A5Y2B11n21j3Ld43jlC22C3K933hBj3k203jd63gul3AUa32yL2263j293LCE3L1Q320o3Foy3l2g3L1Z3gMG3GOc3L232TQ1B29F33bl3l073lFl34KJ3Lb93Dro31oK3ldg3Ldz3ldJ3K6O2g53ld122c3ld33jLB3je33lD73d7e31173k8O3k413k8R3jLE3Ldp2G53lDR2D63LDt3lDv2n721w3ldy3LDi3ayS2CW2mo2UH2uJ2Ul1f22X33z63LFn31Kj38dl3FQn3dbx31eQ3lEp3K1s3FQ03lEI31CW31C533u4346e3leN3flx3dC138a431143LeS2ns3L6r35Km3lew3bxk3LEy3kOJ3lF02d63Ils3KOm2UT3L9N3lF72V53kq133je3Efj375C3ad93l8V2Ag3l1R3lCt35UH3l6l3lGZ3l433lfq3CNy3KQJ3HqT38Ad314Y3Lfw374733bW38fH3Ium370833vH2oR3kRZ3l763is83EQW2ac31693L4831gZ3bVE3l622g93la338223La53LcQ3hI532UM3lfK3l6k3jp93kz831H2375c3g0G21Z2P2319M317x22q3H1u3EfN18390X38R72DD2FO33e92kd21Q38cR33EO2ve33er3FJ537Cf38Z53krT3H3629f33hJ36jB1d218321T32ba3BV337fZ2aC3l0H3F242w53jT8396833l23l0v37UP3CT23ibW3Ea23IK23iCV3G7035eP2sK3H2637AI38kT3JOj2G93gN4354N35xi311K3LKG32j43ix938A231bg396l3g7d35QU32Rs35uf3Gsw3KdJ3krF33SI39Hn339t3g3D3C0t339x1E339z327c325C2aU13325F355r32V83gqK3H9d2Oa21S2922Oq2OR2qm1D1J36kV319A327G1n23A33sa310w3f5331v13KC93lJ927m33D63h75339u3LlH339y1m3fcY2hb22W325d3llo325g22331Ri2A02Kd3EK52oa22236Z822H3C6721C21922r3lm734Ds3Lm93Jn73LAu22m22k27w33x722c33H1317832Mn3Iqq325g3eM93KZM3K9V3Ivh2y92vw18346S22822s342n1g21W2O92vQ3CVc31DI163Gt939aK3929212317i2Ka37e31D21f1t3EXj38mo2PQ22g1w3LN0315i2uq3GaY22n33Dc31T722a22W3lbf22f33S2391031323k9y3ka021x31q1339T326S2Mv2sZ1u319436sP3CK539AK3HbT3c70392p1C35J83Fs427m23c2PL22T22P1L23823D318q1723633vs1p2322362g73hb13B2F28d2v13EkC2Zf327m22F31MB1g32N72103K8p3eeI3b4k2IY3LBc324V2F621h1722221T292319B2dD3LMm3llN1333KT22J3Ho63k891r3l3L3L3c31q121w3k9g38py3Lg93JL11X2213K503IPE3D6t3IpH3e933d6X31OZ2xi1S21635LD2y231Qr36jb313G33V42pQ356F22c23033I133I333S2338c370h1w3B7V2o63k1z3Lf433iT37mp3lJE36WL2jC22q3272339X384O2232F622Z31iF31Rn21q3ePW336t2fQ3FML33ek33ss2f621t1r3ls51522S2373l1F3iOW3Iq93D3L36nc2o923322N22u34Jb1q1L315i22D22n3JAv2CW3B1h3IuY221379922B21k1A2d9335x3llj1m31y52DJ33kL1T1V394C3Erl28N2Sz1839Yf2hT2PQ3FIm3144337t3gqa37mP315S31XF319n380T33s22262172b233rN2dl3Lm13iR733902YR3D482cW22a3AMn1f1S21F21h2qB22f2PQ39Fv3HAu318e37ge33N73Fiw2dd23632h73DV7133lsx31pN33GU346W1Q31Sz31PO34Ae21y220366B3b9e33i21o2Fe363034RJ2FQ3803171K3LDf2mz1x2n733V139xJ31y627f2441B2673ISE2Ez2jB2kd31323FRy3Bxv2382dx33Y83El5318Q318v328R318137633EMC32n12pQ3LJO2kb3lJq36su31Ol2JG39JG3496365e2273H8R3h8t3h8v1r3h8X3h8Z3GdE3gPg21Z21r310c2G637Dp2Cn22r317p3791338K1r2uq395i1M31Ol29O2sR3GVy33812f622I3dzz32B91e22l321V3IPZ35ee34RO37zi3D3836tu26E38Vg33c034S1161F22n3Bnb34Le2qj22a21p2sP340i133C633C6r3hd0322A36R038JT3au81W3cqG36iS339736Mf3KVP3drA346x2r138x43k5e3c0q21K2S81h3B7O387p37Sw3LJT312s312u337o23c1W1J31XQ3Gt9325g320y357d1n2161W22N33s23kyo3lp13K9C1N21721K2p22263Jkf3C6l3LnK38ye2kg22831xj3b9H1221E1Q212339v33M7313N3EPl38Er362g345H2go3h9Q2763jhq32Ci34jU3LXg3fIL2Az1421621B3AiT326s38Wn36rK1521o3l203Ep42v23c5E31o337dz3fI71W39DS22w2n1113D4U2P222X37oq3dv72202362NV37s33iiL3k8A3IIN3Aj03HDI3H7U2o73iu8356e1X33I23DW81O2JP31E8365W34x42DG32a331E835c233V13g2b2QJ37QM21w2373c0O362o34fv33s222B3DcF317Y34PB3m202uB2262Ov37O81s3IGI28f3FJ7359535mP31oL22G21P36Vz1p15317R355Y3Ipv3jGb3bxv387T3b1z2qJ38Mm2ag2eu21C3eVz37Sh33Uc3139313b313d313F31T429f3jeO2TA2Zi1C3Dwr3gPS3l5l3jDi3AnY3K8h37YY3lag33FW33hg3KRv3iOt378x31qZ2MV1V3Lva27621t3C7938XX22Y357K39so2OI339t3h772xI38ca1C2f13B8i3e1B286331h3g453d3h3m1c3ljp1M3H5Q34Hb34A7310J27A1Z2143bXP32UI22C1839kd3hbw1c3EPt3EpV3h8G3B4U21k2cb22122x31ii2Jb27W31Y731sh22q3D6Q1q37Y021Z38Rx1P31sz23821O31tx3L332X92303LM02vZ21h384z33Iy33Ez3d2E31C331IJ3dV731JG3gLG32XY32n13K9X2ar33s533Sr2Jg37ql21C2jm36KU32UI3lnF31JK38863BXL313A3d2E21t32s821L2j22Rh2233c45358g3lNz32uI2243m5C34j83Gq93kVy38k42Vf3Gox2gO3gp022733S23Lay2rD32lM31Sg33cd3G1A38xx2qJ21T2E72PL10327q380T3hb539Ds3Fs11I22v38XT28F39AB1B388Z1122R3H6z3c3S3aoI38N8383t2ub36QI22D3lBX3LC637Qq3lbZ3Lc93C1x2Iy31C32yr31e33C2n378N2d83D2A22V22E1621T32v92212X22dN3B1N2Pq33992n636VZ3fK7337o22f35Ow33TA1Z31yn2Yq31pK33yz33S23M7H2gH1S2PU1E32cP1f37oq2PQ21t219327m318F3f2d3lv92O9324k36A5337U31n631Xg2eV3h9z3ep232863EP2365D31Uk1L36mE326r2Pd1Q2pU22e2Ws3m4n3h9V342y3K592eV3M1B2Fo2qa31sB313A380322B3a6y22e3b2w32rq31AZ2US369I32Na3LD929G35W221G318521U22l1431s134GI33Sw33ss2qj3ks92wS339x1L3adl21w3KrV3LIn3krY3h1a3M962eR3KlU21d31sL3e0E3gab3cw12282O93aJl37XK2Be3Lm43D6x32Mx3177351Q19390h3EM423E22m1F2Y034J835G72kb3gl52jf3Am72353gLe3d662iY22T1s3A7j31I61821y3kvI2mz324R324t3395380v21e323K3K7Z123DB82RB32om173G4Z33vS2yh1322a355Q2M837yk21x3Lnr343a342q3LRJ33I236253153338l3m4938y43h8Y334b3m3338fL3Geb3FE3143LPZ32FJ31TV1B3m5831Q4326M3JkS3Lb231Pc23231jS31s931Pk33fd32322QJ3AYK3M6z2g63C1Q21s3Dq222v3b5f3Le227f1A33p13GPv3B2q34EN2243GQn31Ih32hY3hau2sR32Yx3haX36jB2f21L33e12773lYX38Qf36EO38Xn2Nh2N02uB22I2yG27l1l36iX3M4P1P3LZe37DK3M3O3H1m3eZW3GKr22N2f62323lG03jBO1022Y1B32281k192273lC53es93m7Y3LC83K9D3Jj131jj22P2RX31p52g7388D2o631Q32Dx2263mdO1i22F3h8136rb3erW38Pb36J7318n318P318R2Fa31IZ29n2Qj22e2AW384s31e53FCv39Fl21W313C368A3fSb3B2f1g2981g3gPV34de3FjH2PG380327932vv3b2F23C361Z3C3c3M492J03lt92aw2fD3K5c34172o921t21k1S3CNl36BS33NO28322m38p8315d28X2hG1U3m2L3m7e3fK83m0321734xZ3m792XV2Y9328d38AY31LY370H22C3C5021M3ce92DJ33JE389d2N7317r21r36Js3a0t323f38Z139H63cb73m1824W33IH3cu122m38VF3H96322H31aV31m23Dxb2eU38Vp2uL22A3MAa3MAC2iv32Y6113mAg3eFa391O2373F0X33M91A34HX31952a122L2s427p1M2qj3M8F3LTh2uR328q31i83l7b3l733iQO385932ZY3Ipd3m562F935yI1r22h344P21j2251M32861c1k39ds37Xz378x3FJg21F3GDF21U33T12Cn3MJ42xi34Zt36JC37o129f2392pL2F0325437DO341038y432d333j42nV31YW321L21n1d237358K3eR934hB3b3T38sz3M3U3B1s2r32J53c2B33952Ov22I37Q334323m423lnc35582e528w33sv22821X39aK31c231y7345i3m2A3K983m1S3hax394l3H9e21y31Sr3708387W31p7324l2PF3H6p22b21V31Dg3eOh2F63m831n1238yC3lgr3lM43LBe38yn36yN3MFm3fJ13laX3LaZ3lB131u33GbU2Cw38Fv2MT3Jhm3H7P2332l036661A3LF62O63lZz345i336E37Yk2b73KsT336W3C5j34033mAy2Eo2Xi21438Uw2763LB533t31T325g22M37O738UV2q73COi325G36sq359p3gw9337U33sN3l1A3K603L3a3jg1337o3lwg364U2Ys2N93FaR3m7l3HDc3l6W3lFq2AI313q1n2H723F1c22R2oi22521031Sb2D61Z21032zO31be3a3j2223lHW3KoK3LqU3m8132402vK36623GbG2qr21l2rJ28I3Bx022E365S1g3MHA2OY2Ar171p378Z1f1o22E3l8o3k613ir73m7538Ng3lTh31PB313N2PQ22V3lBo32K72Kd323237Fk379b2Os3H8p32n738wX32zk37Fh2vi3hi937RV31dk2xl1336263H5r3mNP3B2834GR3mFu31k73b9m3L2w3D363eoh31q131C33Loy398o3lZb3LP3337u3jg22Hp3gWk3MoZ3GWn3gWP362U3kYw3kYY3kZ034593Lho3k563Lhq3Lf23lrT3jh73m5H152tt2G71v3iVk3lng3c0P31OY31W71H3JNI1R22m3me23FS423E338K32ln397P313q22T37Yd1I32L622p39zS28I22W3JhQ1F3LPP3lPr3kg331073gc83fNz1b21P384s33Su21n3mFg2P031XB3aVo22l33s233993H4W1739Kd21P2Tf2bs3g2c31Cb3GNT3D463Kve31973D6x32JK28C3Ftu32mD3G2i38QO3KRL183H9D3H9f3kSd28522632812Dx377t33hS323q357K323T3h632213gB5357K21n39jG32ro22M321v2293mOj27l3MK732gF3Fm81r2262qJ32NH32ij33n737x91k33yE21R37rP3gUg379h31cd330U3lf53B3W38wi2mI31ik3gCl325n310L31853lXU3lUV387m387o3lUe341733J137901Y389R3gNZ2192C91321Q21A3Gq92xd1H3MEY27633XQ22n31pm2191K23E22D3Mo331K7318O2n733v81f349721c3mV02Z931E838Tc3LUv2923Ls33Fcu3fcw1I21V1j2P53MoE39iS21w3M8X33s03MD83CGx36cv22e2B331D832vV3gnS3LxT327M33093Ksh34G13ipJ1031i437013EPa34pI173fxC32Dv2JS32322O934QH1T1E21121q32uJ3GP02Ut37Sg3LwF3c4o325M3lk53Mdo2CN328C2D73mr5378q341N36Nj3HCZ22539nQ2RX3MLc32oA27Y1t229319J35iJ2MZ219331H2PE3LWk31zH31c339D1338e3mx439Pv2SZ33jD39Ak2qj34Eq39IN3aUx3J1q3D9V3mve3JdZ32eT21w3Mlr3C473hAh3k863hBj3fTG31Ny1B2263K7d3je73Kan3JEa392Y34h13DYJ36Kk21A379h1N21V31C6111V38eX37bf3g4C3GBV36Nj32y61E346r325J33s2389633V121e2162uQ2jc34rT3mNH2uv3Ms43M2X3MwD3fia3is13LZe3lzG3jAx29m35aq3GVB2o632NY37A33ah73c0Y3gEH3MjX348E1u33yO1E1W2Sh1m1A2203k7834393lms3m4C1Q2203LMN3LLp31za38rl3Lls33Q12203LlV317O2rx32UI2PE3lm03LM22F036mi3mmN335f1c21o36kl27l3LJw3kRQ32zg319L3is1319p2h03Mex2X221C37561L38jS31443AU8330Y3fhL34FE2UV3jPH32cI3G2c3ljZ324v3GUG315S3MNf123d0D325m3BTk3Gce2cw22221r3m2i1C2123Cvg171G3lji3D2k389l3MwD32rq1e321F38033mwP3B7S31pQ38VO3b8Z22r3mpo377p31j72q43M853c2133YY38RI3lgC3kOT3Lgf2o931jU346s2Nv3G4X312U37fe33XS313A3G4z22t2At2963C6I2Kg2372C23Ax42wM365S36612oz378h3D2P3IqJ215399L3dZ31Z3m2i347t22L3mPl315D36Q731t32Ka3D2a2k83n212G73az036zb33t433J637e23AiT2fD2X222a389E3mTl2Cn379S2143MYQ21636jb21c3lvY34RA224313i33IN3mxl22n1L38T12AI318d3D0d2vy3hc6379534Cl21R2D736kl1D36j62O63m1z2WD38wS1821m39Mw320L2D62Ph3mtv1x32Dx2KR3lP337zX2mZ369P3mRW37gb2323JeO33j422Q3Hc13bZX3kA13HAL32rQ31In3H3U2aU1o22B394R2J23B6n3B6P38eR22d21q31NI39rC21Y3MG636rp3iqe34h5322V33ux3229357J28s3N2532yT36mH31T33D7S26222s24f23r26F22u2ov3D7L2jC376w3mVx31083ApS3GQj3mGB3k4Q2x931c33Hdf2Fb3hDh3H623mha2AB337V1U3n7922G3MUi3b5B3M7x37QR2Ov324q321y2Jy3MaI22s2d61a22L36v528X2Oi3iug36Rm3BBJ38M421M21F1p1k3MC92Fm3GbW28322334103Lyf3m5u31t71T1Z1822R3MUn3mKf31Jj3cuT36w11w3m65379r3GEO3K5w3fgv380u32vv3ama21L3Gui380y36Zv21221j3Je92N23myl3g0V39S4312t38nh38Sz2PQ2em3Dv72Eo378q3M0s2UB3H3D3m0a3h3G337o377j33AZ3b6f317Q2FW1o22i2tG3LqG36Jr183mQS36Qz38jK3kuz3G2421639FL2283C453awC2zj320L32dR21437e2321L3luQ380715365E330932iC28v1n2qJ2253MU221a2PD1l2Pd3iQG38Um33f82Oi38MM2Sz2KA1O3Mek1u3EjO2803G3p2j932793k713Get3D9j2cW22T27W2tz31tW313J2p521C23e34sZ3f6z32y4315d3lF93LF532Xo37dN3ktT391m31Ol3kyX338f2e63KRM2FM3Gwk2273N2Y28636n43GBv2AS1E1l2Re31IJ36mz3Fr133J93G4Z32n83es232xV21x31yA2zK3b2Z3lBe2tf1B39D12RE28529C3kzS3kzo3iq93K4I36RO3k4K3JG1322537du1F2HD310538Sz3aJk3M9M2uP38eR31c33fr92VN313V1N21x32Z43EPa3h8T33Ng3kyT21D3442391O22D3lpE3LpG3lpi3lPk3Lpm2YH3mRZ3jSa2302P521h22i34R93k8334Nc3m62330921p313F352C3Ax9325m22a2x222t384O38X83FBd3ISg3McH3jLN3BY022P329K328r36N4390J3cZw21o2e73bFq2g73iqs2cw3b9K1R21f21222l3M5133Np2GU36Mf31I831R4343f3mWb2F62203Ku83es322G3N1Y31I63lK339233gBG3gC83c0e21X3md033i337OL3mcm3ep4343u1h21q343x3JGr2212f62z02Yc36R72CN2Vm357N32zS2sz22C380Y3N1M2RT2XI2D937y42DI3N8e29f339t3H6a33iT3d3q2172uY39JG3279326S31i62A8327H2a131Eb3l9p3CnL334B37DO3JBH3FK7341034H231U321X3mG2327H22c355Q23B21A3mjx3mJZ36981K3a6y31Si39is2951m3lmU3mhq3fi83b2221s37zK3lNN3LNP3McX3n0821W3Jky3H6R313i336Z32QT1822L2QJ3lgS3Ldc3lgv3lvh3Ep531SH326L22C3C4a3fBd2Fc2812mC3gPj2PQ22a32o53mS6339533Hy3mB8312T3MYu3c6P37qX3IRo24l1226k22324X22u2zd3n573M90376v3efA2f622721321o31yS31TR3Iuw3M0031ZX3b9h22i27W2V63GUw3Gpa3luV32dR2PO3mex31q13NcA2pl337n2Z11122N2362PS31592oi39zs2n221b357k21a2OL2of21S31CA21G37E3101u39F52k222l3K7U392Q31TU3n0V31sg2TO33953MLP3mY63my83dvs3MYa3KoJ22c39gJ3lf122A21w36wC3LHt3m493ESi38qM391O3LGX313v32pf21T2182PC3exi3jGw3mbS2UL3LDK3LDA2vc3Mas3h7923531cA2V3387w21o21B31Cf3Ndx2oK2OE2oN3KU82ev3g5234122hc3d8f2N731e928A21y3K6U3h9w3k6w3IUP37Ll33eq2qp38Vj2XG3N1p2AB2eu32aS3m0U3MJd3m1r21J2Vk2oS34Ia38ty3410362w2ul3cpU3FJU3lmh3LTC3M02390e31xF3au831xF2243H9z320l3ha138eP3ha32o922b21E2oQ34R938fY3h7J2Ev345n2pq22D1S22X3jKy1b382v380T3NF232642273b493AWe1d339k31xG3mjz35j822n23j22Q21c29733m9321t38tw22H318Q22d21U3mjU23A3lm23lsk379p3MCn2SP22t2172fQ1m3e0e23J23c3H3j2Ov3GQD36Cv2Sz38YN2qj3g1527d2BF1T22L3ATO3IUw3IvP31Ax34682UQ29A35e72Iy21Z38vo31wi325m36tN2iy3nBq37e3329k3C5K28W38Ek39hj3eOh313i387n3JjN3MAI21T21E3LWC36C5345Q2FM31OZ33YR3Mbe345H3dZD33FY3gbL3lOJ2DD36CY21A3ECp313a2aU21y3MQy3h6v3MR03LhS3d3G3lx721936TL32g036tl3g2J36Sw29v378V21c33do2n828335DL3LxT22L1K2Oi3Eqm2123eqo1l3eQQ3eCX3Jl931jz3LDn3LgF3NLP3M4q33FD315f36KK33fC3M2L339939Rl3Mfb3If63EcX3L8k3KZK3aIX3ltH3aiz3h6138Pq338333cu36SG3n0U36kl37o82cw21x3cNM345116218337u2373n2y31E72mw32z629n32Xv339t3MXR3m5639uI2N23FHW3NP53m962113KSE22622Z3kRx3H9U342821C338K3lYh3k222AS3Ndx2r433lk3FK331Sl367W3G2B3m8x3NCW39KD388g387W3jFg319T3nRc3cpU3N7w2pm38g23N1E2ut3GVQ33S23NbW3fQy29a1u31xG38tC31ZE22m391O3LXd183hr9392w31N6324l32v91f339W31vQ2OA31OL31RH2la31x8327038js35LM34UG315B32p63lRU29F34qh31C631I51Q1K22938yd3Gv737LB3KYw2JC36wC39gc32fH2G53JfY3K713l8I37yY2pQ21g3NOS22F354a2Yr27d3N713BzX3lrO384s3B1g39fH39kD2e737ZR2FD33su3GVw3220392P3Muj3Kal3jl2341d2kg22r3N4O1D3c2b31id3aiT2N73gpV3D2E2vi35M53D2a2PK36wc3JgS3hcx391m34gY3MvP22837Fp37Zd2so29A3Mpy33FS21I3gCd31oL2Xy2DY3ICX2FC21R3B8q31QH2oi3LnC33G936V53NWK22f2Rx3Myv28W3AJL3MZn3gQ72Fn3GQ922M3FI731JU3309312h3gqK21x3E5p2la21y3NH036823mSI22f388X33Df31dy313N3k5L3Jkm3K693D6W3k8N39jh2aY1C310n36502292OV3n4531mb34UU2Mw339s34123lTH3dQi33Ld1J229131g3c1t31Q12j01V1922h3Nhn3nHD3nhP3bxc3Iv73h732Ov22Q3bTk31Hr32V922E321V3LJO1Q318V31pM370831ID228337O22721m1o3cic21K31ZL21b2162zf2SZ37Dv33s238Wv2Ji33Xf318v3LYB3m1P3gvU3Luc387p3eof37s32oi3N5L345I3Mgr32Y73FRo3c6j379e31di39fo33M631P534uG37ZD39sO313i33J73b2z33yz391O21y213328R1Q2163NQt3N39143jgP2di35S33Esk3H6u34RO3Esn3ElD3BYt3gW42p53N4j14222337o3N452XI1b2mS1d21J3LY0325O31IJ1C3Es333IX384s32Xv3LOD2v33NK43hC62eu2D822U28236Z523J313i3nPK347T3efA3L723kAA3b433L8j2X923C21M320z1R21n21A32Ol38Tf36613N913gu93GUB3d5a32PC313N2SW2dC393835wE32453nV131172eZ3N8z3cDD2K93McN3mha32DB32VH3Luv34RY3j3N33SU3eji316J3Ab121i3AU83nuy31jG3nQB1N38pf2di3NDE3C5b37fk1Y2d931xF379T3mqN2YZ391Q3jG538Su3Ml82pS2EU21P1S2383MOo3k6k3K6M3by03c2o33ek33em3d9K3c5i2Xu2223Nn03d723Lg93D2A23c3C3M3H8y34nC2qj36tk1T39233GQK33j537eY379h323E3n9122621N3Lgp1X21I3McL32Cw3D8h321d358d21Y3nnz1Q22d3axz3B2Z3B5j31943Nd9317c2D83fhR32NE3H3c3NAv32uJ163LV5368a3Lpb3lPT3O4Y3O4Z3LPu2Dd313s1s2Rb34l12923D9V32xo3o2933ea22H22v36SU339s31xt3FOg32lm2n23Nth2243M1B36rK315821k1d29S2sD3lvG3B5N3LRj2xt112251n28q2D82Oi2Df3lo52N921j36Rl317423b3n7t38ws3H7F3h7h38Ip3H7J3guf3LWY376u3gPa335X3fiu3eS331C32to3lVX324p3lzK3D6x2xY2OZ38EN3Hbj3KvN31tU3MI33DV73N192Qw2b323631qe1o26L3iFl37EO317Q3b1m37zS3NRX38fS3kYn3Kyp2Jc3kyS183KYu31JG3kYW31cF31YJ31x63mZD37z02xd1s21P23j323831Z32VL33S23FRP1d21421K31IB1k21M3Eww2YH3B9k2O622G1U23B21V34UG1x321f21l22V22k1a21Q23j33s23Ama21Q38pG21637zM3N6u38Z02cW31K834Ho399V33XG3Lyz33fA39dk33fD33fF2J61M394V3lQi3O0k325G3449337u22122M3fT21722l325R357923E1S22U3H9e3NwZ34S42161S337W3o0u3mJR1L22121U3N8021y3LP92yZ3Nhl38T43Ny82KD358i3n0B3llN3LLP3LmQ3NHC3lmT3n0h3lmw21s3lMy1r3ln021s379923C3NL12wt33s03AW72vX3njF1D37E92163GBH3428358w3D2n3Gdk31Qx3k6C313I2k8317z223321v21x34971c21e2101m3Lxu2793NJB2Cn32242EB3MNf33P633t8321l3c652Dd389H2N22OS36wc39Rl3m4D3d2b33g9338Y1h3lNX2D63ec43AXf31Q133i62cD1G21m27S33DE3mQC32443o6X337P3iQL3K6S358Z3e1B325m3mFg36yX32j233Jg21o31e8328J27w1k21R21g2AT2Sz2xV322531M933n736P41E22e1K2qJ21l1921V32Lm2Jn1v123C3321L1k21E3nu43Jd63m2L33i6319A1r392F27f39013IqI3MKb1O2Bc3C6P3GZe2PG31WY22M32Xv3N7U3Ao138jL2Mr3Nt73fJ13nPg3lRK3MD22fm3gpE38Mo3fSJ3m3236yq3n2u37o03NdX3d2r37y122A22r3JIU3Jg33k8f393c3k4a2qJ3D4h379T31ij37DO3iHw3ah83IHy3ES333EX1U3obD3NL537e32231M3Eec390l390N37zE3jIN3iPa3B113b0p38iP3b0S2US3gdL27F23K25t1H3h5C22E21l337u21W3nhn3gpP29F29S2N836Cc36Tl3H633NaI21G21B2Tt2UZ335x3b1S2O93O443lgP3lyb3M003ndX3Gbw3o6J2VY3mz21u22l27e1E3Ny12CW38y43f9u36Zu1R3Mc83MBe32863gCj3CK521c211389F321v31T63ma71636sP33ry1n25w24x29q1i23W3j7c3DB2323E33dp2A63IbY31131i3igM27931042483i2l3hj422T39ep3aqf21839Vz33N52ht3ohK33MN24123M3OHk3ar72g834je1I21U39Y7310732C826u26d3oHK3aSA22a3AG132CK33s026525r3a7v26525q3ohk3aTF25524Q3Ohk3aTT3g3727W3Dg73b3U3oHk3AV223P3a3y31073Av53dSY3DSD25i3A8m3DY627026n3oHk3awK38PL3ohk3dvJ3OhY3ohK3dtF23R3dKh311m39rl26F3dS931073lm1395D3IUe31073mGp1I21A36LX31072qa1i25J3doZ31071M329T2583BMJ310734R931VQ35Y81A1k31XS23u3bjZ3lt9365j23l3BKi2uI32Hf21h2L61a39D2329z352F1A3NA61i2613Iwe1A2N41I22W3Big1a39KE39l63ez831073Njv1I22o2373ohK378p1i24h3HoS3107378Z1I22R39dv2Jj2141i3fJG31031Z2P126n3Ck23a5D2161i21733BH3J331i25c25V3oHK2dl1I23S34XP3ia83BoC24a23t3oHK21021A1i26K3cGE3me521b1i3BUb3oHK3oc81i24923u3OHk21n3nDG3JZ63G9E3jwK1a21L21f3iQL21f21R21Q2GJ3iB0320N1i23D22y3oHK349a3Muv3OIT31nW23q3a3P3AQF25H34xx33n525s25f3ohW31XC3Hi73del1I3DyW3OHk31ZJ26s3dPy31xN38BO3oiB2X526B26O3OHK3asP21x3hyX3A993I5139c81i3ANC31033aTT3EWo3au624O3I5H31073aV225j25W3OHk3Av526425r3ohk3avL23W24F3Ohk3aw23F5g31033AWk39743AWN34Tt25m3BuH31073dtf25L2623ohK31vQ1I24v3BI53fM8339W26c26u31033oJs3Hj33cm233ls22y34pa1A3OK21i24L34vN34Wz3DSE39u43oKa31Xs3Hwl32431I25S39M031073Lz61I24N3j963mS21X28c2BS3okR37Y437M53oKX3cD53OL23LF33oHk3OL625424q31033olB315X3OHK3olG37Y33OHK1Y3olL34BJ3OLP1I26Q3A9031071W3OLu2553j883oLY26E26t3oM22181i382f3103340I1I26w3kNm31073OMc37kG341W31nx39S41A3oMM25W3Dzp1a3Omr39iq3Jsb31073OmU26j3kB13oMw3OMy21e3oN03ON22H126t39PR348Y1i3jej35cH3CD03hj43A0d3IkN26Y3kmV3aQh25Z3f3M33N92563i6i3oNP26M2713onS35o93dxw3OHK32C81B395R3AsM1I27139Q03aT11I26C26v3oHk39Qh3Ay53oO83hfK367W32D33BDY3dG722122I3oIw31C43LYB3Ool28b22C316C3DSD22n2273OIT3AW23oGQ3Oj932h42Nq3dVj24A3HM93Gt932AH39EV31033oP823M36He3Ojn339w23e3e1d3oJr31Wb1Y39Un3OpJ3j1d3OpO26w26J3oHK3ok7337n3Oit3Okb1I23536dB31073Opy3dra3OHK3OQ331t03OIt3oko3luE3Ohk3OkS23L3A3m31073OKx24T3jXC3OL12101i2683drX3oL52111i23X3a4P31073oLB39fG3oqP21339iQ2jm31073oqt3Olv335C3FSd2p124v2583oHk3oR13dg831Fg3OLY21T39Yf31073Om324e36i731073ORd37Mr3OMB3OMD26d3jnG3oMh320l3MM831073oMm38aj3Ors26I26X3OHk3OMU24Z3a4K31073omX3oMZ3oN1314D31iK3OIT3BV921B3M5D349r22322j3oNC32j23am73OiT33O124223L3OHk33ok24Q3a6J3ceh1i2203jsi33691Z3aZt3oI33elK3Oi7311M23I39yz3OSx2C93oo233S03Djn3a9938VN3OiM368k22134sA3OtA23T24A3ohK3AU626o39P73ooH31C43Hly3aVI1u3bQ53dQX1I26v26C3oot3aWX25U34yk31073AWk3OMO3OjC34tT2303a213oP332aH25239Nh3OjJ3mVQ3dbI3OPc1I25V25c3oHK3ojs25A24t3OhK3Ojx3bi03OPn329T25K35283OPS23f3a063oPV1i26725O3oHk3oPy2wc3OIT3oQ333nb3OkO2623I6N3OQB3b233BiQ3OkW346W22Y3E2831073OQG2GN3ovD1i24G3jWe1A3oLB388j3OVL1i23C22Y31033oVq23Z34VS31073oqW2263gkb3Or03oLU26K2733ohk32ES39E33jI03ow43or924Y3bLD3om71i2633iXJ35o03OMd22x3A0W3OWF22z23c3OmL3dqn24f3BKC31073ORs24R2543owo21E1121F21e3owv314Y3auj2AJ23622p3oN9314s3ciI3P1v3Ohk32Ij23N22q3HRI1S3b2o3cNE2A63OoN27933663ARD34qr34nx28A24L2523oSq3OjY3ooK2gL3j2L3ooR3P2B3Im21B3Cne1i3p203oIf31lC1u3FJi3Gb037DA31lc337w2rt31uR3Gj42a625X39ML3E7R31zU31zw31LN38E237fS27623N2293CnF317O3Nxk39p63p293OOO3Jt9310m2353J3z38Aq2a63a973i3v3Jss37Au2fW33Xf1I2263hdS2E53m1D31yi329e33NM24N3CwY33m624v24U21c23d3GeC3P4a24u1J22U2393p2b38Ax2503J9636wy2Wc31YL3cub32iS153i7v21c23h22636Wf1533Ef21D21V2362103LvJ22o34CJ38BJ28a3p4J3p2b3e6Z2602613p4I3p4k3FfE36lN3P4n31CT21A21433X438Gx3HRF35v921s21X152162141g3p2o3p5I38Hs399338i03GyO2E03dF03P4127w34k338Dz3Df43gXO3Ho23l2032BP3a5G24h36eN39gK2282Fq3e1e35Y83J7I1C3iBF3J9A3J9C3ok83p2b3j6j26b26P32c736Xa3ja7360M3p6M3j6j34OC3ja63P6R3nyV3P6T35O924h24y3OsT3p6Y3p753p7135O93P6o3Oit3P7431YB34063kXn2NC2593kK23Onw24N3a6m3E7R3Kgb35a73oT13LZE3OT52Sq2433cr23oO826239ms3OTA26l39ga3Dg725F3A8P3OYb1I23z3a443Oj028B24w3a533DSD25d3jyv3Dy625R2643Ott3CQ131073dvj2493F1e3Otz33mo3OP823h3Hke3Oz324c3JTi3mj731wb3AQt3ojx3Ad63oPo3nL13OIt3Ok724236fl3Ozl23135I53oUr365J25t25E3oUU32HF26H26y3OhK3oKo2193en231073OKs1c31Vg3oV4346W2693Aax3P053OV923A3i033P0823V3jUR3OvI3dcf2162W43OLF3oVM25424r3oqS3oLL3CF33oqw2293bhi3P0R1i26625p3p0v39Fl22e35vf36Lf3OR923323G3oHK3oRD3M903Oit3ORI3HOB3oRK22l39xd3orN3dQn3hsM3OrS21O32Ps3G9D3dTY25Q3CNq3owS39E13lOE3OIt21q3cok26h3jm2310721r32p225P2663OHk21O3Cog26r2683Ohk21p39eF3Awr3OhK3c3m1i23223h3Ohk21F3CB926l3cr8310732eV1I26G3Abe3107336E3BCh328K37Zh2Hy23r2443P7B39Dm3KSL3p7s22D329B3oIf3OI422A3OIT39Qh2443Dah39CQ3GSS37qq2323ez63Dg73cMf3oTg1I26a3knp3AVI2523A4Y3DSd2703hKn3Aww1I3mAb3P8o24d3dzX1A3DVJ3HXC3DTE32AH23s3A473DVU1I2193ON23Ou61I25k2633OZ731wB3j8G3ojX3Dg63oPo1U3EBO3opS31Jr3OUM31Xs2213hDy3P9G3baU38Li3okj3Dc23Okn3OQ825V3kKO3P9S37Y424u2593OHk3Okx25124n31033ol23MWp3oQI3OVe320C3oqM3DcF3aRK3OlG24z24h3P0j3oll26x26I3OHk3oqW3Fi23pAL25W25j3PAP1I3aHF31033OM33hjX3P1323539ZZ3orH3oMd22M2253ohk3OrK24b3J513Pb63oQX3DQ93OrR3NdG31m03P1m3P0g22z3oHK3Omx1I3CV731033PbK2a7360x1A3pBp1I23M39xT31073PBu32aM34o931073PBz1i2693bPV1A3Pc321y35fe1a3pC83DSe32dJ32Eu3n5522821s3Oit3pci35TN21R37zh2H13aTo3pCP3Coc3p7S3DuY3OxV3cw23I0V39hH2Ak2TH3Pd223G36Rt3otA32qD3AU63eu33Av225i3Hp63p8e1i2503a5b3oYh21A320G3DY624o35033Dt4311535P53pDp34Tt25824v3oJf32Ah32bl3oP739rl25P3dq33Pe026J26w3Pe43Hq439243oJw33lS21Y39yP3ozE1I27326k3OUJ1T1i24t3A7D31073oUN3HQj31033opy326i3OzS32hF25e39M63PEN3b2s3Idp3Ozy2533kJN3p0132Fh3ae23ov83dbz3Id13p0825724O3OLA3Dcf3Han3P0f3iKY3OVQ212349J3p0n2P124g3a6D3OLT3dRK31ts31073P0w3ny03or83h0P3ORD3i313pfu3Pce354M3oWF2253A3d3OwI3DQN24K2533OmQ3ndg21f2gg3Orv3dtY3ncx3OIT3pgC3A7T3PgF3COk2zj3OHk3pGk34523OIt3pGp23b3jRD3pgs39eF23722o3pC23lzf25g3I7I31073PH224536gi3PH53C8G2193Ph933XS3pHb37Zh384732Ik3Onw24j3bmu3OSX325M3OIT3AsP24636FY3a9921S31P83pd23IZj3OtA22722N3oIT3au631Pj3OIT3av226f26S3oTJ3onQ3AT03avl2223Nj93Dy622722k3P8O24m3cQu3pId1i22p3f0B3oYw3DG831hJ3OZ03j2H3oHK3oJo32pa3oIT3ojs24b3a2V3pIU1i26E3kIT3PiY31Uz3Ok722t3I1j3PJ731XS3Dia3OPY23K36hr3Oq232hf23u2493p9o3oQ822F339C3Per1i26m3JLW3P9W39na2143Ohk3oL2367v3oL622022J3pjw1i25H3a933pAB1I23V2483paF2Sr315I3Pk43oXH22g3oIT3ovy3dXg3PFL371W3Om336P43oW83BOc2433A1x3PKi26125M3PFY3oMI34ag3OMM2d73PKs31052xu3PkW3p1O3p1q37Zh31fo3okh3fLy34Zc3G9E3ia833h13ouW3p2V3Fwo35jZ3Nlg3OnY32cr21i21O32Ek1I3PPi3CJb3dyv3cGn2kv1J3OpI3cJH2o93CIb34Yb3CIB3IAm31C61A3pPv3PPx3olI3cH13pPy3bKI39H339cm3pQ33Ppo3ad736bd26V351539K239oB39lL3CEo238397q3PQS1C39OC3EVd3Gto38413pqG39ZA3Ppz3CCO39o63CeL39O63pQ939O626u26V1j25g3Cna39Hl365c21i3MKU363Z25T3ClS3aaP3PrJ3PRl368K26t26e3OY03698337v3PRr39nE2A63pr43A5T3pr639rv3cEL39X13pQ939X13PRd3Prf3prh368m39t939WZ37qQ3PRN3OoB28J3PSD36Cf1I2533A5g3au33psi39WY3cdA21t369736WY3OYf2t83DvT369O31Bm21c3KoZ28i3h8x3oGk3AUj3BVJ368m3psz3PT11F3pT33ILd3Cob3psO320x3Pt036Il3PTa3AmN3ild23H38pj3PTe3pT83PTH3ptb3AuJ3mm23oiT3PT73Cdd3ptg27a3pt23pTJ3aUJ2513I3o3PTn3Ptv3pt93ptq3oI43EFR3oTa21z22F3pmE3aUJ3oq02b43Cm924c23Z3otj320x3Cqg27x37xK3JPj32L03opZ3oQ13cQ03i9S3Cd632J73Pul27A3PUN2103puP3pUe2gL3cM923G3Ama3p8e31AT3pUw3aa93pUO35eF3PV13CQ03hy93CQO3NZ93pUM3a5x3PuZ3pVB3puR3cM933683PVF3pv83pUy3pV03Pvl31c422434pt3PuU35E73Pvp3pvI3pvr3PUF31C43Lv03OIT3pVo3Cqa3Pvq3PVK3Pw11i25o2673pUJ3Puv3PW63PvZ3pW83pV231C42503Cj93PV63Pwe3PvH3pVa37xK3pVc3CM924823u3CMc3pv73pwf3pwp3PUQ3pW924i3J803PWM3PVx3PwX3PVJ3pwQ3PVs3DSC3PVW3pvg3PuX3PwG3px73Pw925r350N3Px33Pxb3Pv93px63pwZ3PWi31nx1F3pW43cmS3pXJ3pw73PXE3PXn2603A783pi03Hh73duG3pxt3pXm3CQ03DIi3cq224Q3dmn3Dp43PXk3PW03pXN22H2223pMl22I2223oiT39Ey3py13pWr31c43idU3pWv3pwN3pXC3pwy3PyK1I39uv3Cd631bm3pVY3PyQ3Px825Z3I6B3Pi027226l3Oop2aL3pYJ3px821p21A3pML3O823PYh3pZ53pXd3Py23cm92pL3Pxq3CMA37Dj3pY83PXT37bC37AV31Ij1I2223E0I2e53Cmm3abS3pZO31C43F0n3cML3pL42Gu36Lk1i23Y3I2v3PZT33rq2fm3Q0223N2402793PzZ37FS28w3Q0227239q73q063ELy3pZW1I23922u3Q0C3Cmm32h8314Q319M32CV2x53KBz3pZz163n283q0s3CoA33B023D3dhp3Q0D29m3Q0l2643KLG3Q0D326H3Q0l2663iW83PzZ39Fn2UZ32vv337u31172f93CmS3fLG39wA3aTH39J131vr2hP3lNZ2CN3Lvf3dP534i321s22B3q0C33803gpA2X932Bl37xK3DWg27w3OUC2q431pG37aV2v41i26p3kN13q282MU2o63Q241I24s25B3Q202Q42A73Q2B37XK26325k3Q2n33o93q1I3Q2C22w23F3Q2U3AUJ3q2q1i24x24i3Q2U31cx3q322343bFM2e53Q211m2G53q2j2233E0e3Q3B344S32qA3q2J23b3A0b3q283PWw364p21G3q3e32Om314Q2T92dv32R73JpL23t3F2v2e532nZ38rv3q3U36A235ee2C93JpL23922V2HQ32nZ123jSA37AV38vp1i26y26H3Q0c3q4c2qB3q4f32H425A3jW93MUP2VZ3Adl3q4n313u31gO3Q4r2Gy1O2DJ2a63Pr63Dvl3o471N3nYX1N3PQ326X3DqQ3oPc31lD1P2133FI71I26O26b3PE43AxF3lz53MCG31wT3dtl33VT3pR63dVx1X379E31SX1p3ceL3q5t36Bw3pq93q5T31ri263262328j3M5631Ri2603I7E31sF2Zh2hb2kc2Hb3412317r2D431oJ32kP2c432rG347u32BX349q1y21q317R3gP0314q31K92cT347u32rg32bX21W22f3Q0c3q6p31Kb32Ba3Q6E2dv347u35Gb1X3J7O2E53q6P39dm2203OHk3oK21133rO21i3O9R3apj3cCU31033Okb2993lr821i319731XS3Q783p6721N2hE2Hd3c0t32rO31Vq31443OK13Ngk1q3q7I329S329t3q7l3PNM3q7O38yY3Q7r1I3q6y3p2b3Q7V3MYU346s326R2eG319737Av3gp03M7f2383Q7037573LTh3q8M329t21r31933q7a37573K1p3q8t1i24w3JvH3q8x1232ge3q903DQs3Q9434dm3q9025739Jw3Q8X1632be3Q6s326s3oHK311M22n39Xj3Q9E3kF23q9H27Y32Hl33263q6o37573lWv2fw3Q8N26z3BQ03Q9433e03q903F7n3q8q122Gm3Q9023f36cY3Q9T123P5v3Q9025B24s3qA433rW3q9021i36Oy3q94214368A32Bw329t21Y22E3Q273q7121935j83q6E27Y34c13O9i3QAS317r21632x23qaW3Q9J1I24u3KkW3q9t3fJS35cC3Q7427W32QV32hl3D1e3q71214332T3QBC317o2La32Hl26826r3qa43Gwf3q9023439kJ3q9436KF3q9025Y38U93QAA39um3Q902CE3qb0123Af43Q9039hf2hQ3Q713G4s3Q9p3Qb526R3hRi3Qaa37GE3Q9033Ov3qC437q23Q902263MJB3Q94349I3q9021G33QG3qaA38rY3q9024x3j723qAA21M32DJ3qao3jU623P3QA42Nw3Q903kkE3qAa2W33Q903dp33qAA33bg3q9022F3kSg3q8x320x21o3bY72Ms314Q3k4G27l32QV34kd347a347n35eF25n3Cm01Y21r327R31rz37ew2dv32kr32Hl22Z3BIa3Qdx2ur32BJ3qdn3etW27z2BC32HL2733k0e2e53qdy1621L3A7R37eW3q9Q311M25u25D3Q0C3Qdy3PQI2b42mB1X21O1T21k2113LO933H13oPI32431131VF33iY3lk722C33cN3q89327Q21i3Ngg3aqb3q883oKf11327q2163NMD2Af163C9K314Q38RL27y32w731vf3GQ932ba3BIw2s63q723p2t33pw3QE73mM932gJ3qfY37Za3Q273Qes3qG52gl2Mb2Ax31Z32A63pVc2Mb3JXH3Q7n3qFc3Qfe3q7w3GYE32cj31wv32F531WY31WY32s8316o28a3pR63qeV3QEx3QEZ3Qf11j3oSl3oZp31vg3QF63G132Ao3qGw3qF03N9y1J3pvc21M365j36Xq3LZ63QF51v21i2151V32he3qHF3QF72L725G3myS2g62kC327d34073J9H3D3u3pY23q7V3jxH3Qf42hD21i21431VF31vG2IO21032BA3eX13QhP33Bl3QgU1T3QeW3qey3Qf03pq33qh03P9g3QHl3qH43qiD3QGx3qh81S3ECJ3Qfh3QH332Ba23o3qHO2B3313a32ba3FLV2b33qhu3qGf3qiO3OHk3Q7n3qI53Lk73Qib3QIl3QIF33h123Q36hg3qiq1V3Qhm28A3pVC3qhx36xq3OPY3Oyr2gl1532hF25x25i3PNw2iH21i3k8R3CCz3qJl31Lz3Oq822P3m113PEr3O282K0310j37y42453i1F3ov83Qfi1T36Xy3kF231Kt35e73l6F27X2Lg21332ZY3115345I3PO425924u3po72G12Lg21w39ac34ut2173JNu31VF21h2173mZy32HF23035hg2113QhX3pr63QhB39dR3dne3Pen3QhF3H3F1v3Ccz21037Gf3oQ73O2821W22j3817312S1L32cJ2b63N1727X31vf34j62cb3pY23qjn1I3PUh3qJR2GF3QJt3HWC1x23o26b22S3QIv3fre3m0322p3Qiz24S25A31033QHe39FA37GU2A622V3BHX3oqB2iH21g2173MYv310k3bU32B333bl3QMC3qME2Gg3QmG385q3AeA3qk12gf3QMN3QMP1x21R1u3lf21w23w3I2H31bM2ge3qLR1V3knX27X32kk31AV3g7W25F3jxy3QLH3qM03o8f3OQ821639u43BXC1Y3m1D38NG21h1y3fZw1i26N2703peV2HS32kk3O482hr2HS2IO2xp35es2q43P9w2Ih32cD2VV346w39SA3QoC2Hr31w7385q34IA3OIt39Ke3qod3esn3c9226725p3pEZ3qkQ33m53qKj3QOm3ovD3qod191Z2AA1I26z26g3pf23l6k3Exj3GLu1I23123I3pJw3o2836bv33E03dCF3qoh3P0c2kw2kv33M63Hg93Qpc3oVL3qpf1F2Gm3Ovm3lsX3qpQ33tu2gN33MG1I22X34v13OLk112lG2163N1y34961i22H2213OIT3Ovq22S23B3pFf346B346A1533Os2A63QQ13pfb3Qq436IG3qQ73OLl3QQA3QQC3oLL2283eC43pK4113qqi3qQK28a3qqm3Ovp3Po63qQ53qQq1i26u3hs33QR33A5x31K13OVT1233l637av32TZ1138LV3qQj33E13QQ03qQ23Oqt3QQo3qq62123qQ83QR83PfB39Dr39513PK412316B3QRg2163QRi2163qrk3qQl3Qrn3qr43qQp3QRR3OlL3qRT3qra38Wk3QqG3i9i33603nRv3Qs13QRj3qR03qrM3Qqn3qr53QS93Qr73qr93oLk1i21t2293oIT3OLp1235Lj3Qs03qs23Qs43qr13Qs63qrp3qR63QSB3qSr3CJ03qSW21x34Nr3Qsh3QT03QSk3Qr23QQ33QsN3Qrs3qsq3oVQ2473bJ23qrd22237WH3qTc3QsJ3qrL3qTf3QRO36k83qrq3Qq83QQS3QRa2293dxn3oVt3QqY3EXQ3qtE3qt33qtV3QT53QtJ3OLL25Y3bbG3qrx3Llt2fW3QRh3qtr3QS53QQN3qU73qSo3QTy3qsr23p36Ib3qU23Qqz3qTs3qu639iG3qr624723O3pOl3Ar43Qsw22037x93qTC36Wy31jr2Hy2J43OIT3OM32403E243OM711340621H1u323T37163N9y3QT13py23JVr3Qlx3Pui3Pab3C3E3pk233Bx3e0c22p26E3qiV3Ne127625Y25x3QIz3qtT3po63qUk3qTX3qqB3qRa23Y3juZ3QUq3QU43qUS3quJ3QUU3qSo3QuW3POL24J24w3QSE22137VE3Qv32Wa3Qv52hT3QV73P0Z1i24E3a2R3poY3qVD2183QVF3Qvh113QVj3qU53qWD3qtW3qqR3qw63qSr26A26p3qqG3QU33qvk3qw23L6K3QX51I3qWg3qRA3bw43QSw3MYG3qSz3Qv42jq3QWq3aF53qWS2563J8C3Qvc3qve3qvG2Eq3Qx132a43qsk3Pvc3qVM3QLy3QVP2kv21I3QvS21323O23Q31ep2g63qVX1026w26z3qw13qut3QxG3QXI3qSR21q375I3qrd3hD83QXN3QWO3qXP3AtG3QXr3Pat3awT3QYo340i3QwX3QWz3Qxy3Qx23QrL3QPP3Qr33h7R3cZV3qr63qoS3qqn21521433SG3QWc3Qqx2kv2X838CA2P13Qum3OqW2603EsT3olt3Qt03elc3qUi3qZg33By3Ch928M3Qsp3oLO2P13I5j3or1123djt37AV3qau3qxz325a389Z3qTf3OlP3QVQ3qzi3qZW3Qzl2P13lvf3oVX3qSI3QS33qZR3Qt23qZy3r0b3QZv2P125O3jYR3oVT329Z311s3OLT3gE03bCl163r0536WY3pBa2hY24039di3p1324p3i5C3pfU3DAz21921h1p3iAM3Pz934063R073qZs3Qu23qzh3r0o3qzx3PoO26P26A3R0h1231P73r042JQ3Qvj3R0K3Qsl3QzT3r0C3qZK3qX73oQw24Y24H3R0H3QZQ3R083Qq23r0a3R1J3qzj3Pwa3r0r3OqW23K2433r1p22B3AG43r0y3qxP2Wa3R112ht3r133oRc3bOC36Ux3Omc3R193r1b3r1d3qwx3r1G3r0l3r1x3R1K3qt63oqW3A2y3r0122836an3r2J3r063R1V3r09346b3r293r0D3R202P126I3ba63qzP3QRj3r393r273r3B3qZu3R2A3r312P125E25t3r1p22934OG3r373r1U3R263R0M3r3C2p13qyl3OqW23A3Ezu3r0v22e35fE3r373r103EZ83qXq3OIt3Ord21e34aj3p173r2t3r1c2B73r2W3r1V3QZ53QU23HWc3r1Y1i24p3F4m3QqX346a31483R3y3P0r2Wh365W123QAm3Olu3QuM3ovy3I6x32es3R0621935JJ3R1w3QZp33tU2163r5139A53qQ93qx73oVY39Z93J333R583R5a3QTF3or13R4Z3r5E3R523R5h3POR3OLU3FZ33oIT3R573qVJ3R592A63R4n3R5p2Hr3r5R3r5G22B31KM3r3i2163O013r5A3R4n3r573r641321539d11I24I24x3PAP3qXz2131E2Ef3qPB3qpD3p0Z113R643kd832K639E33j3z3r6t3bxR3me23R5B3QYZ3qzc3qsI3BBY3qum3ord24f3QNa3R4h21B3mUw32a33R1h3r743Qam3qRI3R773QX73ORD24R3cKT3r183r7D153R7F3r2Y3Qvc3r753r7J3BOC3r783bOc3BjH3OWb113r7q3r7s3r7337163R7v3qVH3R5t3Poy3BAu37q33R7p3R7e35J83R852n33R7I3R883QYl3oRD3b8v3pB03bfg39Ya37Av3B3y31YI3Loe3Qv63qyV3ors26d39om3PPD31x421H153Af43p1n27r3R7R3r8F3qTF3r7h3r763BoC3r8K3boc365r3oMC3ODc3fZ8163R8r36wy3R8T3r4c3p1I3NDg24d3i2z3R8z31733r923BjG3L1y3R963r7g3716346A3r9a3R893P132443HlT3r7c3R8E3R9X3Qs23rA03r7Y3a5u3k1q3R8d3R9W28a2463Qd42gL3e3M2aX38TF2eD21J21q3j6V25324w29Q349P3P7e31xt3P6P3p7I3P703P771I25B24T3p6X2gP3P7D3Raz23x3jv93p6Q2NC3p763J5G3p793p7B3rb43Rba3RAU3P7G3OxP3Rbf321K2Qv"),(#E-q);local function n(l,e,...)if(l==143212356)then return(a((((e)-17258)-760769)-248528,531726));elseif(l==251704754)then return(a(a(a(e,542595),42481),747788));elseif(l==911163867)then return((((a(e,689551))-408614)-231422)-973499);elseif(l==526409018)then return(a(a((e)-282353,143451),620086));elseif(l==646155226)then return(a(((e)-489677)-288101,418013));elseif(l==917143085)then return(a(((e)-495855)-785792,861098));else end;end;local y=e[(381620097)];local w=e[(925435115)];local p=e[(564968487)];local n=e[((594364115-#("why the fuck would we sell a deobfuscator for a product we created.....")))];local i=e[(169069023)];local r=e[(114434145)];local o=e[((#{153;(function(...)return...;end)(599,803)}+398248270))];local h=e[(492433869)];local function c()local e,o=x(u,t,t+i);e=a(e,l);l=e%n;o=a(o,l);l=o%n;t=t+i;return((o*n)+e);end;local function s(l,e,n)if(n)then local e=(l/i^(e-o))%i^((n-o)-(e-o)+o);return(e-(e%o));else local e=i^(e-o);return(((l%(e+e)>=e)and(o))or(w));end;end;local function i()local o,e,r,i=x(u,t,t+r);o=a(o,l);l=o%n;e=a(e,l);l=e%n;r=a(r,l);l=r%n;i=a(i,l);l=i%n;t=t+h;return((i*p)+(r*y)+(e*n)+o);end;local function r()local e=a(x(u,t,t),l);l=e%n;t=(t+o);return(e);end;local F=""..e["HvA0ozx5q"];local function y(...)return({...}),k(F,...);end;local function M(...)local n=e[((398248338-#("woooow u hooked an opcode, congratulations! i do NOT give a fuck.")))];local C=e[(243514525)];local M=e[((408785627-#("why does psu.dev attract so many ddosing retards wtf")))];local B=e[(114434145)];local p=e["lsIjsm3"];local y=e[(169069023)];local O=e.Irozd;local J=e[((535238601-#("who the fuck looked at synapse xen and said 'yeah this is good enough for release'")))];local F=e[((#{16;333;(function(...)return 850;end)()}+950137572))];local v=e[((913684279-#("who the fuck looked at synapse xen and said 'yeah this is good enough for release'")))];local w=e.McDgR6;local g=e[((594364092-#("ililililililili guys look at me i'm intimidating")))];local E=e[((66974480-#("you dumped constants by printing the deserializer??? ladies and gentlemen stand clear we have a genius in the building.")))];local A=e[((#{321;994;119;2;}+492433865))];local W=e[((727774498-#("Luraph: Probably considered the worst out of the three, Luraph is another Lua Obfuscator. It isnt remotely as secure as Ironbrew or Synapse Xen, and it isn't as fast as Ironbrew either.")))];local I=e[(307137573)];local U=e[(637262543)];local L=e[((194238429-#("luraph is now down until further notice for an emergency major security update")))];local o=e[((925435210-#("uh oh everyone watch out pain exist coming in with the backspace method one dot two dot man dot")))];local S=e[((#{838;152;677;679;(function(...)return 893,468,754;end)()}+422346533))];local z=e[(54524752)];local Z=e['GkDgvVU2'];local D=e[(370147895)];local function b(...)local e=({});local k=({});local h=({});for e=o,i(l)-n,n do k[e]=b();end;local b=r(l);for c=o,i(l)-n,n do local d=r(l);if(d==E)then local l=r(l);e[c]=(l~=o);elseif(d==p)then while(true)do local t=i(l);local l=i(l);local i=n;local a=(s(l,n,v)*(y^C))+t;local t=s(l,U,S);local l=((-n)^s(l,C));if(t==o)then if(a==o)then e[c]=(l*o);break;else t=n;i=o;end;elseif(t==O)then e[c]=(a==o)and(l*(n/o))or(l*(o/o));break;end;e[c]=G(l,t-W)*(i+(a/(y^z)));break;end;elseif(d==J)then while(true)do local i=i(l);if(i==o)then e[c]=('');break;end;if(i>M)then local o,r=(''),(f(u,t,t+i-n));t=t+i;for e=n,#r,n do local e=a(x(f(r,e,e)),l);l=e%g;o=o..m[e];end;e[c]=o;else local n,o=(''),({x(u,t,t+i-n)});t=t+i;for o,e in T(o)do local e=a(e,l);l=e%g;n=n..m[e];end;e[c]=n;end;break;end;else e[c]=(nil);end;end;local t=i(l);for e=o,t-n,n do h[e]=({});end;for C=o,t-n,n do local t=r(l);if(t~=o)then t=t-n;local m,a,f,d,u,g=o,o,o,o,o,o;local x=s(t,n,B);if(x==w)then elseif(x==o)then a=(c(l));u=(r(l));d=(c(l));f=(c(l));elseif(x==n)then a=(i(l));u=(r(l));d=(c(l));elseif(x==y)then a=h[(i(l))];u=(r(l));d=(c(l));elseif(x==B)then a=h[(i(l))];u=(r(l));d=(c(l));f=(c(l));elseif(x==D)then a=(i(l));u=(r(l));d=(c(l));f=(c(l));m=({});for e=n,f,n do m[e]=({[o]=r(l),[n]=c(l)});end;end;if(s(t,p,p)==n)then g=h[i(l)];else g=h[C+n];end;if(s(t,D,D)==n)then a=e[a];end;if(s(t,w,w)==n)then f=e[f];end;if(s(t,A,A)==n)then d=e[d];end;if(s(t,F,F)==n)then m=({});for e=n,r(),n do m[e]=i();end;end;local e=h[C];e["iduGe"]=f;e["ZosYR3"]=u;e[L]=g;e['lnlUOFFxgJ']=m;e[I]=a;e["nukJhtdTd"]=d;end;end;local l=c(l);return({['ahB']=k;[336787.88303013187]=b;["Exyh8P"]=o;['lGLc5B2']=l;["cak"]=e;[-Z]=h;});end;return(b(...));end;local function u(e,f,h,...)local o=e[-539278];local l=e["cak"];local n=e[336787.88303013187];local l=0;local w=e['ahB'];local c=e['lGLc5B2'];return(function(...)local i=o[l];local p={};local r=-(1);local o="nukJhtdTd";local e=(true);local t=936040;local g="lnlUOFFxgJ";local l={};local b=623844;local x={...};local D='ZosYR3';local e=(409177574);local s=({});local a="iduGe";local m=(k(F,...)-1);for e=0,m,1 do if(e>=n)then p[e-n]=x[e+1];else l[e]=x[e+1];end;end;local x=m-n+1;while(true)do local e=i;local n=e[D];i=e[b];if(n<=35)then if(n<=17)then if(n<=8)then if(n<=3)then if(n<=1)then if(n==0)then if(l[e[o]]>=e[a])then i=e[t];end;elseif(n<=1)then if(e[o]>=l[e[a]])then i=e[t];end;end;elseif(n==2)then l[e[o]]=l[e[t]]-e[a];elseif(n<=3)then local n=e[o];local t={l[n](d(l,n+1,r));};local o=e[a];local e=0;for n=n,o do e=e+1;l[n]=t[e];end;for e=o+1,c do l[e]=nil;end;end;elseif(n<=5)then if(n>4)then local n=e[o];l[n](d(l,n+1,e[t]));for e=n+1,c do l[e]=nil;end;elseif(n<5)then if(l[e[o]]~=l[e[a]])then i=e[t];end;end;elseif(n<=6)then l[e[o]]=u(w[e[t]],(nil),h);elseif(n>7)then if(l[e[o]])then i=e[t];end;elseif(n<8)then local t=w[e[t]];local i=e[g];local n={};local r=X({},{__index=function(l,e)local e=n[e];return(e[1][e[2]]);end,__newindex=function(o,e,l)local e=n[e];e[1][e[2]]=l;end;});for e=1,e[a],1 do local o=i[e];if(o[0]==0)then n[e-1]=({l,o[1]});else n[e-1]=({f,o[1]});end;s[#s+1]=n;end;l[e[o]]=u(t,r,h);end;elseif(n<=12)then if(n<=10)then if(n>9)then l[e[o]]=e[t];elseif(n<10)then local n=e[o];local t=({l[n](d(l,n+1,e[t]))});local o=e[a];local e=0;for n=n,o,1 do e=e+1;l[n]=t[e];end;for e=o+1,c do l[e]=nil;end;end;elseif(n>11)then l[e[o]]();elseif(n<12)then local e=e[o];l[e]=l[e](d(l,e+1,r));for e=e+1,r do l[e]=nil;end;end;elseif(n<=14)then if(n==13)then local e=e[o];r=e+x-1;for n=0,x do l[e+n]=p[n];end;for e=r+1,c do l[e]=nil;end;elseif(n<=14)then do return(l[e[o]]);end;end;elseif(n<=15)then local n=e[o];local a=l[n+2];local o=l[n]+a;l[n]=o;if(a>0)then if(o<=l[n+1])then i=e[t];l[n+3]=o;end;elseif(o>=l[n+1])then i=e[t];l[n+3]=o;end;elseif(n>16)then l[e[o]]=C(e[t]);elseif(n<17)then l[e[o]]=C(256);end;elseif(n<=26)then if(n<=21)then if(n<=19)then if(n==18)then local n=e[o];local t={l[n](l[n+1]);};local o=e[a];local e=0;for n=n,o do e=e+1;l[n]=t[e];end;for e=o+1,c do l[e]=nil;end;elseif(n<=19)then l[e[o]]=l[e[t]]*e[a];end;elseif(n>20)then if(e[o]<l[e[a]])then i=e[t];end;elseif(n<21)then l[e[o]]=l[e[t]]*l[e[a]];end;elseif(n<=23)then if(n>22)then l[e[o]]=l[e[t]][e[a]];elseif(n<23)then l[e[o]]=(not(l[e[t]]));end;elseif(n<=24)then for e=e[o],e[t]do l[e]=(nil);end;elseif(n==25)then i=e[t];elseif(n<=26)then if(l[e[o]]<=l[e[a]])then i=e[t];end;end;elseif(n<=30)then if(n<=28)then if(n>27)then local n=e[o];l[n]=0+(l[n]);l[n+1]=0+(l[n+1]);l[n+2]=0+(l[n+2]);local o=l[n];local a=l[n+2];if(a>0)then if(o>l[n+1])then i=e[t];else l[n+3]=o;end;elseif(o<l[n+1])then i=e[t];else l[n+3]=o;end;elseif(n<28)then if(not(l[e[o]]))then i=e[t];end;end;elseif(n>29)then l[e[o]]=#l[e[t]];elseif(n<30)then if(l[e[o]]==l[e[a]])then i=e[t];end;end;elseif(n<=32)then if(n>31)then l[e[o]]=(e[t]~=0);elseif(n<32)then if(l[e[o]]~=e[a])then i=e[t];end;end;elseif(n<=33)then local n=l[e[a]];if(not(n))then l[e[o]]=n;i=e[t];end;elseif(n>34)then if(l[e[o]]>l[e[a]])then i=e[t];end;elseif(n<35)then h[e[t]]=l[e[o]];end;elseif(n<=53)then if(n<=44)then if(n<=39)then if(n<=37)then if(n==36)then l[e[o]][e[t]]=e[a];elseif(n<=37)then l[e[o]]=h[e[t]];end;elseif(n>38)then local n=e[o];l[n]=l[n](d(l,n+1,e[t]));for e=n+1,c do l[e]=nil;end;elseif(n<39)then l[e[o]][e[t]]=l[e[a]];end;elseif(n<=41)then if(n>40)then do return;end;elseif(n<41)then local e=e[o];local o,n=y(l[e](l[e+1]));r=n+e-1;local n=0;for e=e,r do n=n+1;l[e]=o[n];end;end;elseif(n<=42)then local n=e[o];local o=l[e[t]];l[n+1]=o;l[n]=o[l[e[a]]];elseif(n>43)then f[e[t]]=l[e[o]];elseif(n<44)then if(e[o]>l[e[a]])then i=e[t];end;end;elseif(n<=48)then if(n<=46)then if(n>45)then local e=e[o];l[e]=l[e]();elseif(n<46)then if(l[e[o]]>e[a])then i=e[t];end;end;elseif(n==47)then l[e[o]]=(e[t]~=0);elseif(n<=48)then l[e[o]]=l[e[t]]+e[a];end;elseif(n<=50)then if(n>49)then local e=e[o];local o,n=y(l[e]());r=n+e-1;local n=0;for e=e,r do n=n+1;l[e]=o[n];end;for e=r+1,c do l[e]=nil;end;elseif(n<50)then l[e[o]]=l[e[t]];end;elseif(n<=51)then local n=e[o];do return l[n](d(l,n+1,e[t]))end;elseif(n>52)then l[e[o]][l[e[t]]]=l[e[a]];elseif(n<53)then local t=e[t];local n=l[t];for e=t+1,e[a]do n=n..l[e];end;l[e[o]]=n;end;elseif(n<=62)then if(n<=57)then if(n<=55)then if(n==54)then l[e[o]]=l[e[t]][l[e[a]]];elseif(n<=55)then local a=e[o];local t={};for e=1,#s,1 do local e=s[e];for n=0,#e,1 do local e=e[n];local o=e[1];local n=e[2];if((o==l)and(n>=a))then t[n]=o[n];e[1]=t;end;end;end;end;elseif(n==56)then local o=e[o];local n=l[e[t]];l[o+1]=n;l[o]=n[e[a]];elseif(n<=57)then local e=e[o];l[e](l[e+1]);for e=e,c do l[e]=nil;end;end;elseif(n<=59)then if(n==58)then if(l[e[o]]>=l[e[a]])then i=e[t];end;elseif(n<=59)then l[e[o]]=f[e[t]];end;elseif(n<=60)then local n=e[o];local a=e[a];local o=n+2;local n=({l[n](l[n+1],l[o]);});for e=1,a do l[o+e]=n[e];end;local n=n[1];if(n)then l[o]=n;i=e[t];end;elseif(n>61)then local e=e[o];do return d(l,e,r);end;elseif(n<62)then local e=e[o];l[e](d(l,e+1,r));for e=e+1,r do l[e]=nil;end;end;elseif(n<=66)then if(n<=64)then if(n>63)then l[e[o]]=l[e[t]]/e[a];elseif(n<64)then local n=e[o];local i=e[t];local t=50*(e[a]-1);local o=l[n];local e=0;for a=n+1,i do o[t+e+1]=l[n+(a-n)];e=e+1;end;end;elseif(n>65)then if(l[e[o]]<e[a])then i=e[t];end;elseif(n<66)then local e=e[o];l[e]=l[e](l[e+1]);for e=e+1,c do l[e]=nil;end;end;elseif(n<=68)then if(n>67)then local n=e[o];local o,e=y(l[n](d(l,n+1,e[t])));r=e+n-1;local e=0;for n=n,r do e=e+1;l[n]=o[e];end;elseif(n<68)then l[e[o]]=l[e[t]]-l[e[a]];end;elseif(n<=69)then local e=e[o];do return l[e](d(l,e+1,r))end;elseif(n>70)then l[e[o]]=l[e[t]]+l[e[a]];elseif(n<71)then if(l[e[o]]==e[a])then i=e[t];end;end;end;end);end;return u(M(),{},v())(...);end)(({[(699155668)]=("\108");[((#{120;561;}+408785573))]=(((5061-#("guys someone play Among Us with memcorrupt he is so lonely :("))));[((#{(function(...)return 160,522,672,...;end)()}+169069020))]=((2));[(267410924)]=("\115");[((#{(function(...)return 699,...;end)(676,649)}+79617478))]=("\50");[(887795053)]=("\109");[((558679184-#("psu 60fps, luraph 5fps, xen 0fps")))]=(((#{908;191;842;(function(...)return;end)()}+496302254)));[((#{(function(...)return 736,...;end)(559,596,644,626)}+14031889))]=(((#{519;853;286;}+79617478)));[((56145465-#("I'm not ignoring you, my DMs are full. Can't DM me? Shoot me a email: mem@mem.rip (Business enquiries only)")))]=("\101");["McDgR6"]=(((73-#("@everyone designs are done. luraph website coming.... eta JULY 2020"))));[(713348192)]=(((844958617-#("@everyone designs are done. luraph website coming.... eta JULY 2020"))));[(844958550)]=("\97");lijIhxrb=(((319-#("luraph is now down until further notice for an emergency major security update"))));['emg9qdCI62']=(((887795131-#("luraph is now down until further notice for an emergency major security update"))));[(212267483)]=("\105");Wlw9W1D=("\98");[(587392750)]=((267410924));[((#{507;280;90;269;}+570152848))]=((984635870));[((111612923-#("guys someone play Among Us with memcorrupt he is so lonely :(")))]=(((844353741-#("you dumped constants by printing the deserializer??? ladies and gentlemen stand clear we have a genius in the building."))));[(844353622)]=("\99");[(398232357)]=(((275-#("Luraph: Probably considered the worst out of the three, Luraph is another Lua Obfuscator. It isnt remotely as secure as Ironbrew or Synapse Xen, and it isn't as fast as Ironbrew either."))));[((988984178-#("guys someone play Among Us with memcorrupt he is so lonely :(")))]=((207));[(398248273)]=(((108-#("I'm not ignoring you, my DMs are full. Can't DM me? Shoot me a email: mem@mem.rip (Business enquiries only)"))));[(727774313)]=((1023));VczyMSeH=((363295904));[(913684197)]=((20));['GkDgvVU2']=(((#{762;(function(...)return 400;end)()}+539276)));[((#{}+422346540))]=((31));[((235202024-#("I'm not ignoring you, my DMs are full. Can't DM me? Shoot me a email: mem@mem.rip (Business enquiries only)")))]=(((517495418-#("psu premium chads winning (only losers use the free version)"))));[(307137573)]=((936040));[((#{79;572;703;(function(...)return 699,743,141;end)()}+370147889))]=(((112-#("I'm not ignoring you, my DMs are full. Can't DM me? Shoot me a email: mem@mem.rip (Business enquiries only)"))));[((#{806;(function(...)return;end)()}+535238518))]=((39));[(299516368)]=("\114");['Irozd']=((2047));[((274425220-#("I'm not ignoring you, my DMs are full. Can't DM me? Shoot me a email: mem@mem.rip (Business enquiries only)")))]=("\51");[(363295904)]=("\116");["lsIjsm3"]=(((87-#("Are you using AztupBrew, clvbrew, or IB2? Congratulations! You're deobfuscated!"))));[((496302318-#("guys someone play Among Us with memcorrupt he is so lonely :(")))]=("\111");[(660736686)]=((919716565));[(492433869)]=((4));["Sx0iuHs"]=((299516368));[((#{65;(function(...)return 958,827,242,491;end)()}+513812412))]=(((260-#("uh oh everyone watch out pain exist coming in with the backspace method one dot two dot man dot"))));[((73437177-#("Luraph v12.6 has been released!: changed absolutely fucking nothing but donate to my patreon!")))]=(((56145436-#("luraph is now down until further notice for an emergency major security update"))));[((#{249;668;734;354;}+260361502))]=((36));['ZDU7ulah']=("\104");[(950137575)]=((7));[(966450524)]=((200707200));[(865435830)]=("\117");[(995201272)]=((212267483));[(243514525)]=((32));[((833973729-#("guys someone play Among Us with memcorrupt he is so lonely :(")))]=(((274425172-#("LuraphDeobfuscator.zip (oh god DMCA incoming everyone hide)"))));[((#{771;}+594364043))]=((256));[(984635870)]=("\110");["VyMV5k7DNS"]=(((#{685;468;396;}+245)));["BrtCfwp"]=("\103");[((#{}+308479487))]=((868713524));[((54524937-#("Luraph: Probably considered the worst out of the three, Luraph is another Lua Obfuscator. It isnt remotely as secure as Ironbrew or Synapse Xen, and it isn't as fast as Ironbrew either.")))]=((52));[((#{501;468;}+637262541))]=((21));[((925435193-#("luraph is now down until further notice for an emergency major security update")))]=((0));[(517495358)]=("\121");[(868713524)]=("\100");[((#{607;(function(...)return 759,795;end)()}+194238348))]=(((623926-#("who the fuck looked at synapse xen and said 'yeah this is good enough for release'"))));[((#{856;924;952;(function(...)return 650,122,...;end)(171,965)}+182017223))]=(((699155853-#("Luraph: Probably considered the worst out of the three, Luraph is another Lua Obfuscator. It isnt remotely as secure as Ironbrew or Synapse Xen, and it isn't as fast as Ironbrew either."))));[(931372129)]=((96));[(919716565)]=("\120");[((#{59;748;567;}+200707197))]=("\102");["Jm0ZUCJSLC"]=("\112");["HvA0ozx5q"]=("\35");[((564968527-#("still waiting for luci to fix the API :|")))]=((16777216));[(66974361)]=(((88-#("why the fuck would we sell a deobfuscator for a product we created....."))));[(381620097)]=((65536));[((114434187-#("this isn't krnl support you bonehead moron")))]=(((#{956;949;582;}+0)));x0zOWU=(((865435912-#("who the fuck looked at synapse xen and said 'yeah this is good enough for release'"))));}),...);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.