content stringlengths 5 1.05M |
|---|
--[[
MIT License
Copyright (c) 2020 DekuJuice
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
]]--
local floor = math.floor
local ceil = math.ceil
local min = math.min
local max = math.max
local abs = math.abs
local sign
function math.sign(n)
if n > 0 then
return 1
elseif n < 0 then
return -1
else
return 0
end
end
sign = math.sign
function math.clamp(n, lo, hi)
return min(hi, max(lo, n))
end
function math.movetowards(c, t, d)
if abs(t - c) <= d then
return t
end
return c + sign(t - c) * d
end
function math.round(n, step)
step = step or 1
return floor(n / step + 0.5 ) * step
end
function math.truncate(n)
if n > 0 then
return math.floor(n)
else
return math.ceil(n)
end
end
|
--------------------------------------------------------------------------
-- Moonshine - a Lua virtual machine.
--
-- Email: moonshine@gamesys.co.uk
-- http://moonshinejs.org
--
-- Copyright (c) 2013-2015 Gamesys Limited. All rights reserved.
--
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this software and associated documentation files (the
-- "Software"), to deal in the Software without restriction, including
-- without limitation the rights to use, copy, modify, merge, publish,
-- distribute, sublicense, and/or sell copies of the Software, and to
-- permit persons to whom the Software is furnished to do so, subject to
-- the following conditions:
--
-- The above copyright notice and this permission notice shall be
-- included in all copies or substantial portions of the Software.
--
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
-- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
-- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
-- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--
do
local passed, failed = 0, 0
local startTime
local currentFile
if getTimestamp then
startTime = getTimestamp()
end
function assertTrue (condition, message)
if not condition then
failed = failed + 1
reportError(message)
else
passed = passed + 1
end
return condition
end
function assertEqual (actual, expected, message)
if actual ~= expected and (actual == actual or expected == expected) then
failed = failed + 1
reportError(message..'; expected "'..tostring(expected)..'", got "'..tostring(actual)..'".')
else
passed = passed + 1
end
return condition
end
function reportError (message)
-- if currentFile ~= lastErrorFile then
-- print('\n-['..currentFile..']-----------------------------------------')
-- end
-- lastErrorFile = currentFile
print('- '..message)
end
function showResults ()
local durationStr = ''
if getTimestamp then
local endTime = getTimestamp()
durationStr = '\nCompleted in '..(endTime - startTime)..'ms.'
end
print "\n------------------------"
if failed == 0 then
print " Passed."
else
print "FAILED!"
end
print "------------------------\n"
print ("Total asserts: "..(passed + failed).."; Passed: "..passed.."; Failed: "..failed..durationStr)
end
end
local a = 1
assertTrue (a == 1, 'Local should retain value')
local a, b, c, d = 5, 20, 0, nil
assertTrue (a == 5, 'Local should change value')
assertTrue (b == 20, 'Local should accept multiple assignments')
local result = a + b
assertTrue (result == 25, 'Plus operator should result in addition of operands')
result = a - b
assertTrue (result == -15, 'Minus operator should result in subtraction of operands')
result = a * b
assertTrue (result == 100, 'Asterisk operator should result in multiplication of operands')
result = b / a
assertTrue (result == 4, 'Slash operator should result in division of operands')
result = a / b
assertTrue (result == .25, 'Division should handle floating point results')
result = a / c
assertTrue (result == math.huge, 'Division by zero should return infinity')
result = a / -c
assertTrue (result == -math.huge, 'Division by negative zero should return negative infinity')
xpcall(function () result = a / d end, function () result = 'failed' end)
assertTrue (result == 'failed', 'Division by nil should error')
xpcall(function () result = a / 'x' end, function () result = 'failed2' end)
assertTrue (result == 'failed2', 'Division by string value should error')
xpcall(function () result = 'x' / a end, function () result = 'failed3' end)
assertTrue (result == 'failed3', 'Division of string value should error')
result = 5 % 3
assertTrue (result == 2, 'Modulo operator should return the remainder of the division of the two operands')
result = #'moo\0moo'
assertTrue (result == 7, 'Length operator should return the correct length of string with null character inside')
result = #'moo\0'
assertTrue (result == 4, 'Length operator should return the correct length of string with null character appended')
do
local a = 5
local b = 3
local c = 5.5
local d = 23
local e = 7
local f = 0
local g = 0 / 0 -- nan
local h = math.huge
local i = -math.huge
assertEqual (a % b, 2, 'Modulo operator should return the remainder of the division of the two operands')
assertEqual (c % b, 2.5, 'Modulo operator should return the fraction part of the remainder of the division of the two operands')
assertEqual (-d % e, 5, 'Modulo operator should always return a positive number if the divisor is positive and wrap around if passed a negative dividend')
assertEqual (d % -e, -5, 'Modulo operator should always return a negative number if the divisor is negative')
assertEqual (-d % -e, -2, 'Modulo operator should always wrap around when passed a negative dividend')
assertEqual (d % f, g, 'Modulo operator should always return "nan" when passed zero as a divisor')
assertEqual (f % d, 0, 'Modulo operator should return zero when passed zero as a dividend (unless divisor == 0)')
assertEqual (f % f, g, 'Modulo operator should return "nan" when passed zero as a dividend and divisor')
assertEqual (d % g, g, 'Modulo operator should return "nan" when passed "nan" as a divisor')
assertEqual (g % d, g, 'Modulo operator should return "nan" when passed "nan" as a dividend')
assertEqual (d % h, g, 'Modulo operator should return "nan" when passed "inf" as a divisor')
assertEqual (h % d, g, 'Modulo operator should return "nan" when passed "inf" as a dividend')
assertEqual (d % i, g, 'Modulo operator should return "nan" when passed "-inf" as a divisor')
assertEqual (i % d, g, 'Modulo operator should return "nan" when passed "-inf" as a dividend')
end
assertTrue (a == a, 'Equality operator should return true if first operand is equal to second')
assertTrue (not (a == b), 'Equality operator should return false if first operand is not equal to second')
assertTrue (a < b, 'Less than should return true if first operand is less than second')
assertTrue (not (a < a), 'Less than should return false if first operand is equal to second')
assertTrue (not (b < a), 'Less than should return false if first operand is greater than second')
assertTrue (b > a, 'Greater than should return true if first operand is Greater than second')
assertTrue (not (a > a), 'Greater than should return false if first operand is equal to second')
assertTrue (not (a > b), 'Greater than should return false if first operand is less than second')
assertTrue (a <= b, 'Less than or equal to should return true if first operand is less than second')
assertTrue (a <= a, 'Less than or equal to should return true if first operand is equal to second')
assertTrue (not (b <= a), 'Less than or equal to should return false if first operand is greater than second')
assertTrue (b >= a, 'Greater than or equal to should return true if first operand is Greater than second')
assertTrue (a >= a, 'Greater than or equal to should return true if first operand is equal to second')
assertTrue (not (a >= b), 'Greater than or equal to should return false if first operand is less than second')
local t = true
local f = false
local n
assertTrue (t, 'True should be true')
assertTrue (0, '0 should coerce to true')
assertTrue (1, '1 should coerce to true')
assertTrue ('moo', 'A string should coerce to true')
assertTrue ('', 'An empty string should coerce to true')
assertTrue ({}, 'An empty table should coerce to true')
assertTrue (not f, 'False should coerce to false')
assertTrue (not n, 'nil should coerce to false')
assertTrue (t and t, 'And operator should return true if both operands are true')
assertTrue (not (f and t), 'And operator should return false if first operand is false')
assertTrue (not (t and f), 'And operator should return false if second operand is false')
assertTrue (not (f and f), 'And operator should return false if both operands are false')
assertTrue (t or t, 'Or operator should return true if both operands are true')
assertTrue (f or t, 'Or operator should return true even if first operand is false')
assertTrue (t or f, 'Or operator should return true even if second operand is false')
assertTrue (not (f or f), 'Or operator should return false if both operands are false')
local tests = {
addition = function (a, b) return a + b end,
subtraction = function (a, b) return a - b end,
muliplication = function (a, b) return a * b end,
division = function (a, b) return a / b end,
modulus = function (a, b) return a % b end,
pow = function (a, b) return a ^ b end,
['unary-minus'] = function (a, b) return -a, -b end
}
for name, test in pairs(tests) do
local success, result = pcall (test, 5, 2)
assertTrue (success, 'Simple use of '..name..' operator should not fail')
success, result = pcall (test, '3', 6)
assertTrue (success, 'Applying '..name..' operator to a string containing a number should not error [1]')
success, result = pcall (test, '3.', 9)
assertTrue (success, 'Applying '..name..' operator to a string containing a number should not error [2]')
success, result = pcall (test, '3.2', 9)
assertTrue (success, 'Applying '..name..' operator to a string containing a number should not error [3]')
success, result = pcall (test, '3.2e4', 9)
assertTrue (success, 'Applying '..name..' operator to a string containing an exponenial number should not error [4]')
success, result = pcall (test, 8, '2')
assertTrue (success, 'Passing a string containing a number to the '..name..' operator should not error [1]')
success, result = pcall (test, 1, '2.')
assertTrue (success, 'Passing a string containing a number to the '..name..' operator should not error [2]')
success, result = pcall (test, 1, '2.5')
assertTrue (success, 'Passing a string containing a number to the '..name..' operator should not error [3]')
success, result = pcall (test, 1, '2.5e3')
assertTrue (success, 'Passing a string containing an exponential number to the '..name..' operator should not error [4]')
success, result = pcall (test, '9', '2')
assertTrue (success, 'Applying '..name..' operator to two strings containing a numbers should not error')
success, result = pcall (test, 'a', 2)
assertTrue (not success, 'Applying '..name..' operator to an alpha string should error [1]')
success, result = pcall (test, '8a', 2)
assertTrue (not success, 'Applying '..name..' operator to an alpha string should error [2]')
success, result = pcall (test, 'a8', 2)
assertTrue (not success, 'Applying '..name..' operator to an alpha string should error [3]')
success, result = pcall (test, 8, '2a')
assertTrue (not success, 'Passing an alpha string to the '..name..' operator should error')
end
local b = 20
function addOne ()
assertTrue (b == 20, 'Functions should be able to access locals of parent closures [1]')
function nested ()
assertTrue (b == 20, 'Functions should be able to access locals of parent closures [2]')
local cc = 9
assertTrue (cc == 9, 'Functions should be able to access their own locals')
end
nested ()
assertTrue (cc == nil, 'Function locals should not be accessible from outside the function')
b = b + 1
assertTrue (b == 21, 'Operations performed on upvalues should use external value')
end
addOne ()
assertTrue (b == 21, 'Operations performed on upvalues in functions should affect the external value too')
function f (...)
local a, b, c = ...
assertTrue (a == -1, 'Varargs should pass values around correctly [1]')
assertTrue (b == 0, 'Varargs should pass values around correctly [2]')
assertTrue (c == 2, 'Varargs should pass values around correctly [3]')
local d, e, f, g, h = ...
assertTrue (d == -1, 'Varargs should pass values around correctly [4]')
assertTrue (e == 0, 'Varargs should pass values around correctly [5]')
assertTrue (f == 2, 'Varargs should pass values around correctly [6]')
assertTrue (g == 9, 'Varargs should pass values around correctly [7]')
assertTrue (h == nil, 'Varargs should pass nil for list entries beyond its length')
end
f(-1,0,2,9)
function g (a, ...)
local b, c = ...
assertTrue (a == -1, 'Varargs should pass values around correctly [8]')
assertTrue (b == 0, 'Varargs should pass values around correctly [9]')
assertTrue (c == 2, 'Varargs should pass values around correctly [10]')
end
g(-1,0,2,9)
function h (a, b, ...)
local c = ...
assertTrue (a == -1, 'Varargs should pass values around correctly [11]')
assertTrue (b == 0, 'Varargs should pass values around correctly [12]')
assertTrue (c == 2, 'Varargs should pass values around correctly [13]')
end
h(-1,0,2,9)
function getFunc ()
local b = 6
return function () return b end
end
x = getFunc () ()
assertTrue (x == 6, 'Functions should be able to return functions (and maintain their scope)')
function add (val1)
return function (val2) return val1 + val2 end
end
local addThree = add (3)
x = addThree (4)
assertTrue (x == 7, 'Functions should be able to be curried')
a = {1,2,3,4}
b = a
assertTrue (a == b, 'Tables should be able to be compared by identity')
assertTrue (not (a == {1,2,3,4}), 'Tables should not be able to be compared to literals')
assertTrue (#a == 4, 'Length operator should return the number of items in a table')
assertTrue (a[1] == 1, 'Square brackets operation on table should return correct value for index [1]')
assertTrue (a[2] == 2, 'Square brackets operation on table should return correct value for index [2]')
assertTrue (a[3] == 3, 'Square brackets operation on table should return correct value for index [3]')
assertTrue (a[4] == 4, 'Square brackets operation on table should return correct value for index [4]')
assertTrue (a[5] == nil, 'Square brackets operation on table should return nil for an index greater than the length')
assertTrue (a[0] == nil, 'Square brackets operation on table should return nil for an index of 0')
assertTrue (a[-1] == nil, 'Square brackets operation on table should return nil for an index less than 0')
a = {[1] = 20, [3] = 40}
assertTrue (a[1] == 20, 'Square brackets operation on table should return correct value for index when keys are used in literal assignment [1]')
assertTrue (a[2] == nil, 'Square brackets operation on table should return correct value for index when keys are used in literal assignment [2]')
assertTrue (a[3] == 40, 'Square brackets operation on table should return correct value for index when keys are used in literal assignment [3]')
assertTrue (a[4] == nil, 'Square brackets operation on table should return correct value for index when keys are used in literal assignment [4]')
-- TABLES
Account = { balance = 0 }
function Account:new (o)
o = o or {}
setmetatable (o,self)
self.__index = self
return o
end
function Account:deposit (v)
self.balance = self.balance + v
end
function Account:withdraw (v)
if v > self.balance then error "insufficient funds" end
self.balance = self.balance - v
end
acc = Account:new ()
assertTrue (acc.balance == 0, 'Class properties should be initiated when instantiated [1]')
acc:deposit (20)
assertTrue (acc.balance == 20, 'Class instance properties should be updatable though instance method calls [1]')
acc:withdraw (5)
assertTrue (acc.balance == 15, 'Class instance properties should maintain their value in the instance')
acc2 = Account:new ()
assertTrue (acc2.balance == 0, 'Class properties should be initiated when instantiated [2]')
acc2:deposit (50)
assertTrue (acc2.balance == 50, 'Class instance properties should be updatable though instance method calls [2]')
assertTrue (acc.balance == 15, 'Class instance properties should maintain their value separate to other instances')
SpecialAccount = Account:new ()
function SpecialAccount:withdraw (v)
if v - self.balance >= self:getLimit () then
error "insufficient funds"
end
self.balance = self.balance - v
end
function SpecialAccount:getLimit ()
return self.limit or 0
end
s = SpecialAccount:new {limit=1000.00}
assertTrue (s.balance == 0, 'Class properties should be initiated when instantiated, even if class is inherited')
assertTrue (s:getLimit () == 1000, 'Inherited class should have its own properties')
assertTrue (acc.getLimit == nil, 'Base class properties should not change when inherited class manipulated')
s:deposit (500)
assertTrue (s.balance == 500, 'Class instance properties should be updatable though instance method calls [3]')
function f ()
return 1, 3, 9
end
local t = {f()}
assertTrue (t[1] == 1, 'Table should be able to be instantiated by the result of a function [1]')
assertTrue (t[2] == 3, 'Table should be able to be instantiated by the result of a function [2]')
assertTrue (t[3] == 9, 'Table should be able to be instantiated by the result of a function [3]')
t = {}
t[1] = 'number'
t['1'] = 'string'
assertTrue (t[1] == 'number', 'A numerical table index should return a different value than when using the same index as a sting. [1]')
assertTrue (t['1'] == 'string', 'A numerical table index should return a different value than when using the same index as a sting. [2]')
local a, b, i = 0, 0, 0
for i = 1, 5 do
a = a + 1
b = b + i
end
assertTrue (a == 5, 'For loop should iterate the correct number of times')
assertTrue (b == 15, 'For loop variable should hold the value of the current iteration')
a = { a = 1, b = 2 }
b = 0
for _ in pairs(a) do b = b + 1 end
assertTrue (b == 2, 'For block should iterate over all properties of a table')
a.a = nil
b = 0
for _ in pairs(a) do b = b + 1 end
assertTrue (b == 1, 'Setting a table property to nil should remove that property from the table.')
b = {}
for i = 1, 3 do
local c = i
b[i] = function() return c end
end
assertTrue (b[1]() == 1, 'Local within a closure should keep its value [1]')
assertTrue (b[2]() == 2, 'Local within a closure should keep its value [2]')
assertTrue (b[3]() == 3, 'Local within a closure should keep its value [3]')
a = ''
u = {['@!#'] = 'qbert', [{}] = 1729, [6.28] = 'tau', [function () end] = 'test'}
for key, val in pairs(u) do
a = a..'['..tostring(key)..'=='..tostring(val)..']'
end
assertTrue (string.find(a, '[6.28==tau]') ~= nil, 'for/pairs iteration should include items with double as key.')
assertTrue (string.find(a, '[@!#==qbert]') ~= nil, 'for/pairs iteration should include items with string as key.')
assertTrue (string.find(a, '[table: 0x%d+==1729]') ~= nil, 'for/pairs iteration should include items with table as key.')
assertTrue (string.find(a, '[function: 0x%d+==test]') ~= nil, 'for/pairs iteration should include items with function as key.')
-- Coercion
assertTrue (0, 'Zero should coerce to true.')
assertTrue (1, 'Positive number should coerce to true.')
assertTrue (-1, 'Negative number should coerce to true.')
assertTrue ('Test', 'String should coerce to true.')
assertTrue ('', 'Empty string should coerce to true.')
assertTrue (0 + '123' == 123, 'Integer strings should coerce to integers')
assertTrue (0 + '123.45' == 123.45, 'Floating point strings should coerce to floats')
assertTrue (0 + '0xa' == 10, 'Hexidecimal syntax strings should coerce to decimal integers')
assertTrue (0 + '0xa.2' == 10.125, 'Floating point hexidecimal syntax strings should coerce to decimal floats')
assertTrue (0 + '0123' == 123, 'JS Octal syntax strings should be coerced as normal decimal strings in Lua')
assertTrue (0 + '-123' == -123, 'Negative integer strings should coerce to negative integers')
assertTrue (0 + '-0xa.2' == -10.125, 'Negative floating point hexidecimal syntax strings should coerce to negative decimal floats')
assertTrue (0 + 'inf' == math.huge, '"inf" should coerce to inf')
assertTrue (0 + '-inf' == -math.huge, '"-inf" should coerce to negative inf')
local a = 0 + 'nan'
assertTrue (a ~= a, '"nan" should coerce to nan')
assertTrue (not (nil), 'Nil should coerce to false.')
assertTrue (not (false), 'False should be false.')
assertTrue (not (10 == '10'), 'String should coerce to number.')
-- TYPE ERRORS
function conc (a, b)
return a..b
end
a = pcall (conc, 'a', 'b')
b = pcall (conc, 'a', 44)
c = pcall (conc, 55, 'b')
d = pcall (conc, 55, 44)
e = pcall (conc, 'a', {})
f = pcall (conc, {}, 'b')
g = pcall (conc, 'a', os.date)
assertTrue (a, 'Concatenation should not error with two strings')
assertTrue (b, 'Concatenation should not error with a string and a number')
assertTrue (c, 'Concatenation should not error with a number and a string')
assertTrue (d, 'Concatenation should not error with two numbers')
assertTrue (not (e), 'Concatenation should error with a string and a table')
assertTrue (not (f), 'Concatenation should error with a table and a string')
assertTrue (not (g), 'Concatenation should error with a string and a function')
function add (a, b)
return a + b
end
a = pcall (add, 'a', 'b')
b = pcall (add, 'a', 44)
c = pcall (add, 55, 'b')
d = pcall (add, 55, 44)
e = pcall (add, 'a', {})
f = pcall (add, {}, 'b')
g = pcall (add, 'a', os.date)
assertTrue (not (a), 'Addition operator should error with two strings')
assertTrue (not (b), 'Addition operator should error with a string and a number')
assertTrue (not (c), 'Addition operator should error with a number and a string')
assertTrue (d, 'Addition operator should not error with two numbers')
assertTrue (not (e), 'Addition operator should error with a string and a table')
assertTrue (not (f), 'Addition operator should error with a table and a string')
assertTrue (not (g), 'Addition operator should error with a string and a function')
function sub (a, b)
return a - b
end
a = pcall (sub, 'a', 'b')
b = pcall (sub, 'a', 44)
c = pcall (sub, 55, 'b')
d = pcall (sub, 55, 44)
e = pcall (sub, 'a', {})
f = pcall (sub, {}, 'b')
g = pcall (sub, 'a', os.date)
assertTrue (not (a), 'Subtraction operator should error with two strings')
assertTrue (not (b), 'Subtraction operator should error with a string and a number')
assertTrue (not (c), 'Subtraction operator should error with a number and a string')
assertTrue (d, 'Subtraction operator should not error with two numbers')
assertTrue (not (e), 'Subtraction operator should error with a string and a table')
assertTrue (not (f), 'Subtraction operator should error with a table and a string')
assertTrue (not (g), 'Subtraction operator should error with a string and a function')
function mult (a, b)
return a * b
end
a = pcall (mult, 'a', 'b')
b = pcall (mult, 'a', 44)
c = pcall (mult, 55, 'b')
d = pcall (mult, 55, 44)
e = pcall (mult, 'a', {})
f = pcall (mult, {}, 'b')
g = pcall (mult, 'a', os.date)
assertTrue (not (a), 'Multiplication operator should error with two strings')
assertTrue (not (b), 'Multiplication operator should error with a string and a number')
assertTrue (not (c), 'Multiplication operator should error with a number and a string')
assertTrue (d, 'Multiplication operator should not error with two numbers')
assertTrue (not (e), 'Multiplication operator should error with a string and a table')
assertTrue (not (f), 'Multiplication operator should error with a table and a string')
assertTrue (not (g), 'Multiplication operator should error with a string and a function')
function divide (a, b)
return a / b
end
a = pcall (divide, 'a', 'b')
b = pcall (divide, 'a', 44)
c = pcall (divide, 55, 'b')
d = pcall (divide, 55, 44)
e = pcall (divide, 'a', {})
f = pcall (divide, {}, 'b')
g = pcall (divide, 'a', os.date)
assertTrue (not (a), 'Division operator should error with two strings')
assertTrue (not (b), 'Division operator should error with a string and a number')
assertTrue (not (c), 'Division operator should error with a number and a string')
assertTrue (d, 'Division operator should not error with two numbers')
assertTrue (not (e), 'Division operator should error with a string and a table')
assertTrue (not (f), 'Division operator should error with a table and a string')
assertTrue (not (g), 'Division operator should error with a string and a function')
function modu (a, b)
return a % b
end
a = pcall (modu, 'a', 'b')
b = pcall (modu, 'a', 44)
c = pcall (modu, 55, 'b')
d = pcall (modu, 55, 44)
e = pcall (modu, 'a', {})
f = pcall (modu, {}, 'b')
g = pcall (modu, 'a', os.date)
assertTrue (not (a), 'Modulo operator should error with two strings')
assertTrue (not (b), 'Modulo operator should error with a string and a number')
assertTrue (not (c), 'Modulo operator should error with a number and a string')
assertTrue (d, 'Modulo operator should not error with two numbers')
assertTrue (not (e), 'Modulo operator should error with a string and a table')
assertTrue (not (f), 'Modulo operator should error with a table and a string')
assertTrue (not (g), 'Modulo operator should error with a string and a function')
function power (a, b)
return a ^ b
end
a = pcall (power, 'a', 'b')
b = pcall (power, 'a', 44)
c = pcall (power, 55, 'b')
d = pcall (power, 55, 44)
e = pcall (power, 'a', {})
f = pcall (power, {}, 'b')
g = pcall (power, 'a', os.date)
assertTrue (not (a), 'Exponentiation operator should error with two strings')
assertTrue (not (b), 'Exponentiation operator should error with a string and a number')
assertTrue (not (c), 'Exponentiation operator should error with a number and a string')
assertTrue (d, 'Exponentiation operator should not error with two numbers')
assertTrue (not (e), 'Exponentiation operator should error with a string and a table')
assertTrue (not (f), 'Exponentiation operator should error with a table and a string')
assertTrue (not (g), 'Exponentiation operator should error with a string and a function')
function neg (a)
return -a
end
a = pcall (neg, 'a')
b = pcall (neg, 55)
c = pcall (neg, {})
assertTrue (not (a), 'Negation operator should error when passed a string')
assertTrue (b, 'Negation operator should not error when passed a number')
assertTrue (not (c), 'Negation operator should error when passed a table')
-- Event metametods
-- __index
local o = {}
local index = 'mogwai'
local returnVal = {}
local test
local x = {}
--nil
setmetatable(o, {})
assertTrue (o[index] == nil, 'Getting an index of an empty table with empty metamethod should return nil.')
--function
setmetatable(o, { __index = function (t, i)
assertTrue (t == o, '__index function in metatable should be passed the table as first argument.')
assertTrue (i == index, '__index function in metatable should be passed the index as second argument.')
test = true
return returnVal
end })
local result = o[index]
assertTrue (test, '__index function in metatable should be executed when table has no property by that index.')
assertTrue (result == returnVal, 'Value returned from __index function in metatable should be passed as the value')
--table
setmetatable(x, { __index = o });
test = false
result = x[index]
assertTrue (test, '__index function in metatable should be executed when table has no property by that index, even when nested.')
assertTrue (result == returnVal, 'Value returned from __index function in metatable should be passed as the value when nested')
--don't call if assigned
x[index] = 456
test = false
result = x[index]
assertTrue (not test, '__index function in metatable should not be executed when table has a property by that index.')
assertTrue (result == 456, '__index should be ignored when index is set.')
--test diffferent types of keys
setmetatable(o, { __index = function (t, i)
test = true
return returnVal
end })
test = false
result = o[123]
assertTrue (test, '__index function in metatable should be executed when table has no property by numerical index')
assertTrue (result == returnVal, 'Value returned from __index function in metatable should be passed as the value when index is numerical')
test = false
result = o[function () end]
assertTrue (test, '__index function in metatable should be executed when table has no property with a function key')
assertTrue (result == returnVal, 'Value returned from __index function in metatable should be passed as the value with a function key')
test = false
result = o[{}]
assertTrue (test, '__index function in metatable should be executed when table has no property with a table key')
assertTrue (result == returnVal, 'Value returned from __index function in metatable should be passed as the value with a table key')
-- nil (assigned)
getmetatable(o).__index = nil
assertTrue (o[index] == nil, 'When __index property of metatable is nil, value returned should be nil')
-- __newindex
--nil
o = {}
setmetatable(o, {})
o[index] = 123
assertTrue (o[index] == 123, 'Setting an index of an empty table with empty metamethod should set that value.')
--function
local value = {}
test = false
o = {}
setmetatable(o, { __newindex = function (t, i, v)
assertTrue (t == o, '__newindex function in metatable should be passed the table as first argument.')
assertTrue (i == index, '__newindex function in metatable should be passed the index as second argument.')
assertTrue (v == value, '__newindex function in metatable should be passed the value as third argument.')
test = true
return returnVal
end })
o[index] = value
assertTrue (test, '__newindex function in metatable should be executed when table has no property by that index.')
assertTrue (o[index] == nil, '__newindex function should not set the value unless done so explicitly,')
--table does not have same effect as __index
x = {}
setmetatable(x, { __index = o });
test = false
x[index] = value
assertTrue (not test, '__newindex function in metatable should not be executed when nested.')
assertTrue (x[index] == value, '__newindex function in metatable should be be ignored when nested.')
--don't call if assigned
test = false
rawset(o, index, 111)
o[index] = value
assertTrue (not test, '__newindex function in metatable should not be executed when table has a property by that index.')
assertTrue (o[index] == value, '__newindex should be ignored when index is set.')
--test different types of keys
setmetatable(o, { __newindex = function (t, i, v)
test = true
return returnVal
end })
test = false
index = 123
o[index] = value
assertTrue (test, '__newindex function in metatable should be executed when table has not property for numerical key.')
assertTrue (o[index] == nil, '__newindex should return the correct value when passed a numerical key.')
test = false
index = function () end
o[index] = value
assertTrue (test, '__newindex function in metatable should be executed when table has not property for function key.')
assertTrue (o[index] == nil, '__newindex should return the correct value when passed a function key.')
test = false
index = {}
o[index] = value
assertTrue (test, '__newindex function in metatable should be executed when table has not property for table key.')
assertTrue (o[index] == nil, '__newindex should return the correct value when passed a table key.')
-- nil (assigned)
rawset(o, index, nil)
getmetatable(o).__index = nil
assertTrue (o[index] == nil, 'When __index property of metatable is nil, value returned should be nil')
-- metatable
local mt = { moo = '123' }
local fake = {}
local fake2 = {}
o = {}
setmetatable(o, mt)
result = getmetatable(o)
assertTrue (result == mt, 'getmetatable() should return metatable when __metatable is not set')
mt.__metatable = fake
result = getmetatable(o)
assertTrue (result ~= mt, 'getmetatable() should not return metatable when __metatable is set')
assertTrue (result == fake, 'getmetatable() should return the value of __metatable, if set')
local setmet = function ()
setmetatable(o, mt)
end
local s, _ = pcall(setmet)
assertTrue (not s, 'setmetatable() should error when metatable has __metatable set')
mt.__metatable = function () return fake2 end
result = getmetatable(o)
assertTrue (result ~= fake2, 'getmetatable() should not return the value returned by __metatable, if it is set to a function')
assertTrue (type(result) == 'function', 'getmetatable() should return the value of __metatable, even if it is set to a function')
-- Arithmetic metamethods
local mt = {}
local Obj = {}
function Obj.new (v)
local self = { ['value'] = v }
setmetatable (self, mt);
return self
end
local o = Obj.new (3);
local p = Obj.new (5);
local x = { value = 'moo' }
-- __add
mt.__add = function (a, b)
return a.value..'(__add)'..b.value
end
assertTrue (o + p == '3(__add)5', 'Add operator should use __add metamethod, if provided [1]')
assertTrue (o + x == '3(__add)moo', 'Add operator should use __add metamethod, if provided [2]')
assertTrue (x + p == 'moo(__add)5', 'Add operator should use __add metamethod, if provided [3]')
-- __concat
mt.__concat = function (a, b)
return a.value..'(__concat)'..b.value
end
assertTrue (o..p == '3(__concat)5', 'Concatenation operator should use __concat metamethod, if provided [1]')
assertTrue (o..x == '3(__concat)moo', 'Concatenation operator should use __concat metamethod, if provided [2]')
assertTrue (x..p == 'moo(__concat)5', 'Concatenation operator should use __concat metamethod, if provided [3]')
-- __div
mt.__div = function (a, b)
return a.value..'(__div)'..b.value
end
assertTrue (o / p == '3(__div)5', 'Divide operator should use __div metamethod, if provided [1]')
assertTrue (o / x == '3(__div)moo', 'Divide operator should use __div metamethod, if provided [2]')
assertTrue (x / p == 'moo(__div)5', 'Divide operator should use __div metamethod, if provided [3]')
-- __mod
mt.__mod = function (a, b)
return a.value..'(__mod)'..b.value
end
assertTrue (o % p == '3(__mod)5', 'Modulo operator should use __mod metamethod, if provided [1]')
assertTrue (o % x == '3(__mod)moo', 'Modulo operator should use __mod metamethod, if provided [2]')
assertTrue (x % p == 'moo(__mod)5', 'Modulo operator should use __mod metamethod, if provided [3]')
-- __mul
mt.__mul = function (a, b)
return a.value..'(__mul)'..b.value
end
assertTrue (o * p == '3(__mul)5', 'Muliplication operator should use __mul metamethod, if provided [1]')
assertTrue (o * x == '3(__mul)moo', 'Muliplication operator should use __mul metamethod, if provided [2]')
assertTrue (x * p == 'moo(__mul)5', 'Muliplication operator should use __mul metamethod, if provided [3]')
-- __pow
mt.__pow = function (a, b)
return a.value..'(__pow)'..b.value
end
assertTrue (o ^ p == '3(__pow)5', 'Exponentiation operator should use __pow metamethod, if provided [1]')
assertTrue (o ^ x == '3(__pow)moo', 'Exponentiation operator should use __pow metamethod, if provided [2]')
assertTrue (x ^ p == 'moo(__pow)5', 'Exponentiation operator should use __pow metamethod, if provided [3]')
-- __sub
mt.__sub = function (a, b)
return a.value..'(__sub)'..b.value
end
assertTrue (o - p == '3(__sub)5', 'Subtraction operator should use __sub metamethod, if provided [1]')
assertTrue (o - x == '3(__sub)moo', 'Subtraction operator should use __sub metamethod, if provided [2]')
assertTrue (x - p == 'moo(__sub)5', 'Subtraction operator should use __sub metamethod, if provided [3]')
-- __unm
mt.__unm = function (a)
return '(__unm)'..a.value
end
assertTrue (-o == '(__unm)3', 'Negation operator should use __unm metamethod, if provided')
-- Relational metamethods
-- __eq
local x = 0
mt.__eq = function (a, b)
x = x + 1
return true
end
assertTrue (o == p, 'Equality operator should use __eq metamethod, if provided [1]')
assertTrue (x == 1, 'Equality operator should use __eq metamethod, if provided [2]')
assertTrue (not (o == 123), 'Equality operator should not use __eq metamethod if objects are of different type [1]')
assertTrue (x == 1, 'Equality operator should not use __eq metamethod if operands are of different type [2]')
assertTrue (o == o, 'Equality operator should not use __eq metamethod if the operands are the same object [1]')
assertTrue (x == 1, 'Equality operator should not use __eq metamethod if the operands are the same object [2]')
-- __le
x = 0
mt.__le = function (a, b)
x = x + 1
return a.value == 3
end
assertTrue (o <= p, 'Less than or equal to operator should use __le metamethod, if provided [1]')
assertTrue (x == 1, 'Less than or equal to operator should use __le metamethod, if provided [2]')
assertTrue (not (p <= o), 'Less than or equal to operator should use __le metamethod, if provided [3]')
assertTrue (x == 2, 'Less than or equal to operator should use __le metamethod, if provided [4]')
-- __lt
x = 0
mt.__lt = function (a, b)
x = x + 1
return a.value == 3
end
assertTrue (o < p, 'Less than operator should use __le metamethod, if provided [1]')
assertTrue (x == 1, 'Less than operator should use __le metamethod, if provided [2]')
assertTrue (not (p < o), 'Less than operator should use __le metamethod, if provided [3]')
assertTrue (x == 2, 'Less than operator should use __le metamethod, if provided [4]')
-- __call
x = ''
mt.__concat = nil
mt.__call = function (p1, p2)
if p1 == o then
x = 'Ron '
end
x = x .. p2
return 'CEO'
end
y = o('Dennis')
assertTrue (x == 'Ron Dennis', 'When executing a table, __call metamethod should be used, if provided')
assertTrue (y == 'CEO', 'When executing a table with a __call metamethod, the return value(s) of __call function should be returned')
-------------
-- LIBRARY --
-------------
-- MAIN FUNCTIONS
-- assert
local ass = function (test)
return assert (test, 'error message')
end
a, b, c = pcall (ass, true)
assertTrue (a, 'Assert should not throw an error when passed true')
assertTrue (b, 'Assert should return the value passed in the first return value')
assertTrue (c == 'error message', 'Assert should return the message passed in the second return value')
a, b, c = pcall (ass, 0)
assertTrue (a, 'Assert should not throw an error when passed 0')
a, b, c = pcall (ass, 1)
assertTrue (a, 'Assert should not throw an error when passed 1')
a, b, c = pcall (ass, '')
assertTrue (a, 'Assert should not throw an error when passed an empty string')
a, b, c = pcall (ass, nil)
assertTrue (not a, 'Assert should throw an error when passed nil')
--assertTrue (b == 'error message', 'Assert should throw an error with the given message')
a, b, c = pcall (ass, false)
assertTrue (not a, 'Assert should throw an error when passed false')
-- getmetatable
local mt = {}
local t = {}
setmetatable(t, mt)
a = getmetatable(t)
b = getmetatable('moo')
c = getmetatable(123)
d = getmetatable({})
e = getmetatable(true)
f = getmetatable(function () end)
g = getmetatable('baa')
assertTrue (a == mt, 'getmetatable() should return a table\'s metatable if set')
assertTrue (type(b) == 'table', 'getmetatable() should return a metatable when passed a string')
assertTrue (b.__index == string, 'getmetatable() should return the string module as a prototype of string')
assertTrue (c == nil, 'getmetatable() should return nil when passed a number')
assertTrue (d == nil, 'getmetatable() should return nil when passed a table without a metatable')
assertTrue (e == nil, 'getmetatable() should return nil when passed a boolean')
assertTrue (f == nil, 'getmetatable() should return nil when passed a function')
assertTrue (g == b, 'The metatable of all strings should be the same table')
-- ipairs
local a = {2,4,8}
local b = ''
for i, v in ipairs(a) do
b = b..'['..i..'='..v..']'
end
assertTrue (b == '[1=2][2=4][3=8]', 'ipairs() should iterate over table items [1]')
-- load
-- loadfile
-- local f = loadfile('scripts/not-a-file.luac')
-- assertTrue (f == nil, 'loadfile() should return nil when passed an invalid filename')
-- mainGlobal1 = 'mainGlbl'
-- mainGlobal2 = 'mainGlbl'
-- local mainLocal = 'mainLoc'
-- f = loadfile('lib-loadfile.lua')
-- assertTrue (type(f) == 'function', 'loadfile() should return a function when passed a valid filename')
-- local result = f();
-- assertTrue (type(result) == 'table', 'The function returned from loadfile() should return the value from the script')
-- assertTrue (type(result.getValue) == 'function', 'The function returned from loadfile() should return the value that is returned from the script[1]')
-- assertTrue (result.getValue() == 'moo', 'The function returned from loadfile() should return the value that is returned from the script[2]')
-- assertTrue (mainGlobal1 == 'innerGlbl', 'The function returned from loadfile() should share the same global namespace as the outer script[1]')
-- assertTrue (mainGlobal2 == 'mainGlbl', 'The function returned from loadfile() should share the same global namespace as the outer script[2]')
-- assertTrue (innerLocal == nil, 'Function locals should not leak into outer environment in a loadfile() function call')
-- loadstring
-- local f = loadstring(src)
-- assertTrue (type(f) == 'function', 'loadstring() should return a function when passed a valid source string')
-- local result = f()
-- assertTrue (result == 'hello', 'The function returned from loadstring() should return the value from the script')
-- pairs
local a, b = "", {foo=1}
b["bar"] = "Hello",
table.insert(b, 123)
for i, v in pairs(b) do
a = a..i..':'..v..';'
end
assertTrue (#a == #'1:123;bar:Hello;foo:1;', 'pairs() should iterate over table items [2]') -- Have to compare lengths because order is arbitrary
local t = {
[0] = "zero",
[1] = "one",
[-1] = "negative",
foo = "string",
[0.5] = "half"
}
local r = {}
for i, v in pairs(t) do
r[v] = true
end
assertTrue (r.zero, 'pairs() should iterate over zero key')
assertTrue (r.one, 'pairs() should iterate over positive integer keys')
assertTrue (r.negative, 'pairs() should iterate over negative keys')
assertTrue (r.string, 'pairs() should iterate over string keys')
assertTrue (r.half, 'pairs() should iterate over non-integer numberic keys')
t = { nil, nil, 123 }
a = ''
for i, v in pairs(t) do
a = a..i..':'..v..';'
end
assertTrue (a == '3:123;', 'pairs() should iterate over numeric table items')
t = {}
t[10] = {}
t[15] = {}
s = ''
for i in pairs(t) do
s = s..i..';'
end
assertTrue (s == '10;15;', 'pairs() should return correct numeric keys')
-- pcall
function goodfunc (x)
return x + 1, x + 2
end
function badfunc ()
error ('I\'m bad.')
end
a, b, c = pcall (goodfunc, 6)
assertTrue (a == true, 'pcall() should return true in the first item when a function executes successfully')
assertTrue (b == 7, 'pcall() should return the result of the function in the items following the first item returned, when a function executes successfully [1]')
assertTrue (c == 8, 'pcall() should return the result of the function in the items following the first item returned, when a function executes successfully [2]')
a, b, c = pcall (badfunc, 6)
assertTrue (a == false, 'pcall() should return false in the first item when the function errors during execution')
assertTrue (not (b == nil), 'pcall() should return an error message in the second item when the function error during execution')
assertTrue (c == nil, 'pcall() should only return 2 items when the function error during execution')
-- rawequal
-- rawget
-- rawset
-- TODO
-- -- require
-- mainGlobal1 = 'mainGlbl'
-- mainGlobal2 = 'mainGlbl'
-- local mainLocal = 'mainLoc'
-- local result = require 'lib-require'
-- assertTrue (type(result) == 'table', 'require() should return a table')
-- assertTrue (type(result.getValue) == 'function', 'require() should return the value that is returned from the module[1]')
-- assertTrue (result.getValue() == 'modVal', 'require() should return the value that is returned from the module[2]')
-- assertTrue (package.loaded['lib-require'] == result, 'Module loaded by require() should also be available in package.loaded[modname]')
-- assertTrue (mainGlobal1 == 'innerGlbl', 'require() should pass the same global namespace into the module[1]')
-- assertTrue (mainGlobal2 == 'mainGlbl', 'require() should pass the same global namespace into the module[2]')
-- assertTrue (innerLocal == nil, 'Module locals should not leak into outer environment in a require() call')
-- select
local a, b, c, d = select (3, 2, 4, 6, 8, 10)
assertTrue (a == 6, 'select() should return its own arguments from the (n + 1)th index, where n is the value of the first argument [1]')
assertTrue (b == 8, 'select() should return its own arguments from the (n + 1)th index, where n is the value of the first argument [2]')
assertTrue (c == 10, 'select() should return its own arguments from the (n + 1)th index, where n is the value of the first argument [3]')
assertTrue (d == nil, 'select() should return its own arguments from the (n + 1)th index, where n is the value of the first argument [4]')
local a, b = select ('#', 2, 4, 6, 8, 10)
assertTrue (a == 5, 'select() should return the total number of arguments - 1, when the first argument is "#" [1]')
assertTrue (b == nil, 'select() should return the total number of arguments - 1, when the first argument is "#" [2]')
local f = function ()
local x, y = select ('moo', 2, 4, 6, 8, 10)
end
local a, b = pcall (f)
assertTrue (a == false, 'select() should error if the first argument is not a number or a string with the value of "#"')
-- setmetatable
-- TODO
-- tonumber
local a = tonumber ('1234')
local b = tonumber ('1234 ')
local c = tonumber (' 1234 ')
local d = tonumber ('1234abc')
local e = tonumber ('1234 12')
local f = tonumber ('1.234')
local g = tonumber ('1.234e+5')
local h = tonumber ('1.234e-5')
assertTrue (a == 1234, 'tonumber() should convert basic numeric strings to decimal and default to base 10')
assertTrue (b == 1234, 'tonumber() should convert numeric strings suffixed with spaces [1]')
assertTrue (c == 1234, 'tonumber() should convert numeric strings prefixed with spaces [1]')
assertTrue (d == nil, 'tonumber() should not convert strings containing letters [1]')
assertTrue (e == nil, 'tonumber() should not convert numeric strings containing spaces in the middle [1]')
assertTrue (f == 1.234, 'tonumber() should convert numeric strings of floating point numbers at base 10 [1]')
assertTrue (g == 123400, 'tonumber() should convert numeric strings of exponential (+ve) numbers at base 10 [1]')
assertTrue (h == 0.00001234, 'tonumber() should convert numeric strings of exponential (-ve) numbers at base 10 [1]')
local a = tonumber ('1234', 10)
local b = tonumber ('1234 ', 10)
local c = tonumber (' 1234 ', 10)
local d = tonumber ('1234abc', 10)
local e = tonumber ('1234 12', 10)
local f = tonumber ('1.234', 10)
local g = tonumber ('1.234e+5', 10)
local h = tonumber ('1.234e-5', 10)
assertTrue (a == 1234, 'tonumber() should convert basic numeric strings to decimal with base 10')
assertTrue (b == 1234, 'tonumber() should convert numeric strings suffixed with spaces [2]')
assertTrue (c == 1234, 'tonumber() should convert numeric strings prefixed with spaces [2]')
assertTrue (d == nil, 'tonumber() should not convert strings containing letters [2]')
assertTrue (e == nil, 'tonumber() should not convert numeric strings containing spaces in the middle [2]')
assertTrue (f == 1.234, 'tonumber() should convert numeric strings of floating point numbers at base 10 [2]')
assertTrue (g == 123400, 'tonumber() should convert numeric strings of exponential (+ve) numbers at base 10 [2]')
assertTrue (h == 0.00001234, 'tonumber() should convert numeric strings of exponential (-ve) numbers at base 10 [2]')
local a = tonumber ('101', 2)
local b = tonumber ('101 ', 2)
local c = tonumber (' 101 ', 2)
local d = tonumber ('101abc', 2)
local e = tonumber ('101 10', 2)
local f = tonumber ('101.10', 2)
local g = tonumber ('1.01e+10', 2)
assertTrue (a == 5, 'tonumber() should convert basic numeric strings to decimal with base 2')
assertTrue (b == 5, 'tonumber() should convert numeric strings suffixed with spaces with base 2')
assertTrue (c == 5, 'tonumber() should convert numeric strings prefixed with spaces with base 2')
assertTrue (d == nil, 'tonumber() should not convert strings containing letters with base 2')
assertTrue (e == nil, 'tonumber() should not convert numeric strings containing spaces in the middle with base 2')
assertTrue (f == nil, 'tonumber() should not convert numeric strings of floating point numbers at base 2')
assertTrue (g == nil, 'tonumber() should not convert numeric strings of exponential numbers at base 2')
local a = tonumber ('123', 16)
local b = tonumber ('1AF', 16)
local c = tonumber ('1AF ', 16)
local d = tonumber (' 1AF ', 16)
local e = tonumber ('123Axyz', 16)
local f = tonumber ('123 45', 16)
local g = tonumber ('123.4', 16)
local h = tonumber ('1.23e+10', 16)
assertTrue (a == 291, 'tonumber() should convert basic numeric strings to decimal with base 16')
assertTrue (b == 431, 'tonumber() should convert hexadecimal strings to decimal with base 16')
assertTrue (c == 431, 'tonumber() should convert hexadecimal strings suffixed with spaces with base 16')
assertTrue (d == 431, 'tonumber() should convert hexadecimal strings prefixed with spaces with base 16')
assertTrue (e == nil, 'tonumber() should not convert strings containing letters out of the range of hexadecimal, with base 16')
assertTrue (f == nil, 'tonumber() should not convert hexadecimal strings containing spaces in the middle with base 16')
assertTrue (g == nil, 'tonumber() should not convert hexadecimal strings of floating point numbers at base 16')
assertTrue (h == nil, 'tonumber() should not convert hexadecimal strings of exponential numbers at base 16')
local a = tonumber ('')
local b = tonumber ('', 2)
local c = tonumber ('', 10)
local d = tonumber ('', 16)
assertTrue (a == nil, 'tonumber() should return nil with passed an empty string')
assertTrue (b == nil, 'tonumber() should return nil with passed an empty string with base 2')
assertTrue (c == nil, 'tonumber() should return nil with passed an empty string with base 10')
assertTrue (d == nil, 'tonumber() should return nil with passed an empty string with base 16')
local a = tonumber (nil)
local b = tonumber (0/0)
local c = tonumber (math.huge)
local d = tonumber (-math.huge)
assertTrue (a == nil, 'tonumber() should return nil when passed nil')
assertTrue (b ~= b, 'tonumber() should return nan when passed nan')
assertTrue (c == math.huge, 'tonumber() should return a number when passed inf')
assertTrue (d == -math.huge, 'tonumber() should return a number when passed -inf')
local a = tonumber (123)
local b = tonumber (-123)
local c = tonumber (0)
local d = tonumber { value = 123 }
local e = tonumber (function () return 123 end)
assertTrue (a == 123, 'tonumber() should return a number when passed a number')
assertTrue (b == -123, 'tonumber() should return a negative number when passed a negative number')
assertTrue (c == 0, 'tonumber() should return a zero when passed a zero')
assertTrue (d == nil, 'tonumber() should return nil when passed a table')
assertTrue (e == nil, 'tonumber() should return nil when passed a function')
local a = tonumber ('0xa.2')
local b = tonumber ('0xa.2', 10)
local c = tonumber ('0xa.2', 16)
local d = tonumber ('0xa', 10)
local e = tonumber ('0xa', 16)
local f = tonumber ('0xa', 12)
assertTrue (a == 10.125, 'tonumber() should coerce string when using base 10 [1]')
assertTrue (b == 10.125, 'tonumber() should coerce string when using base 10 [2]')
assertTrue (c == nil, 'tonumber() should return nil when string is invalid [1]')
assertTrue (d == 10, 'tonumber() should coerce string when using base 10 [3]')
assertTrue (e == 10, 'tonumber() should ignore leading "0x" when converting to base 16.')
assertTrue (f == nil, 'tonumber() should return nil when string is invalid [2]')
local a = tonumber (10, 16)
local b = tonumber (0xa, 16)
local c = tonumber ('0xa', 34)
local d = tonumber ('inf')
local e = tonumber ('inf', 16)
local f = tonumber (math.huge, 16)
assertTrue (a == 16, 'tonumber() should coerce first argument to a string [1]')
assertTrue (b == 16, 'tonumber() should coerce first argument to a string [2]')
assertTrue (c == 1132, 'tonumber() should convert "x" correctly for bases greater than 33')
assertTrue (d == math.huge, 'tonumber() should coerce "inf" to inf with base 10')
assertTrue (e == nil, 'tonumber() should coerce "inf" to nil with bases other than 10')
assertTrue (f == nil, 'tonumber() should return nil when passed inf with bases other than 10')
local a = tonumber (0/0, 16)
assertTrue (a == nil, 'tonumber() should return nil when passed inf for bases other than 10')
-- tostring
-- TODO Check for use of __tostring metamethod
a = tostring (123)
b = tostring ({})
c = tostring ({1, 2, 3})
d = tostring (function () return true end)
e = tostring(math.huge)
f = tostring(-math.huge)
g = tostring(0/0)
h = tostring(true)
assertTrue (a == '123', 'tostring() should convert a number to a string')
assertTrue (string.sub(b, 1, 9) == 'table: 0x', 'tostring() should convert an empty table to a string')
assertTrue (string.sub(c, 1, 9) == 'table: 0x', 'tostring() should convert a table to a string')
assertTrue (string.sub(d, 1, 12) == 'function: 0x', 'tostring() should convert a function to a string')
assertTrue (e == 'inf', 'tostring() should convert infinity to "inf"')
assertTrue (f == '-inf', 'tostring() should convert negative infinity to "-inf"')
assertTrue (g == 'nan', 'tostring() should convert not-a-number to "nan"')
assertTrue (h == 'true', 'tostring() should convert a boolean to a string')
a = {}
setmetatable(a, { __tostring = function () return 'Les Revenants' end })
b = tostring (a)
assertTrue (b == 'Les Revenants', 'tostring() should use __tostring function, if available on metatable')
-- type
local a = type (nil)
local b = type (123)
local c = type ('abc')
local d = type (true)
local e = type ({})
local f = type (function () return true end)
assertTrue (a == 'nil', 'type() should return "nil" for a variable with value of nil')
assertTrue (b == 'number', 'type() should return "number" for a variable with value of number')
assertTrue (c == 'string', 'type() should return "string" for a variable with value of type string')
assertTrue (d == 'boolean', 'type() should return "boolean" for a variable with value of type boolean')
assertTrue (e == 'table', 'type() should return "table" for a variable with value of type table')
assertTrue (f == 'function', 'type() should return "function" for a variable with value of type function')
-- unpack
do
local a = {0, 1, 2, 4, 20, 50, 122}
local b, c, d, e, f, g = unpack (a, 3);
local h, i = unpack (a, 3, 2);
local j, k, l, m = unpack (a, 3, 5);
assertTrue (b == 2, 'unpack() should return the correct items of the given list [1]')
assertTrue (c == 4, 'unpack() should return the correct items of the given list [2]')
assertTrue (d == 20, 'unpack() should return the correct items of the given list [3]')
assertTrue (e == 50, 'unpack() should return the correct items of the given list [4]')
assertTrue (f == 122, 'unpack() should return the correct items of the given list [5]')
assertTrue (g == nil, 'unpack() should return the correct items of the given list [6]')
assertTrue (h == nil, 'unpack() should return the correct items of the given list [7]')
assertTrue (i == nil, 'unpack() should return the correct items of the given list [8]')
assertTrue (j == 2, 'unpack() should return the correct items of the given list [9]')
assertTrue (k == 4, 'unpack() should return the correct items of the given list [10]')
assertTrue (l == 20, 'unpack() should return the correct items of the given list [11]')
assertTrue (m == nil, 'unpack() should return the correct items of the given list [12]')
local a = {nil, nil, 180}
local b, c, d, e = unpack (a);
assertTrue (b == nil, 'unpack() should return the correct items of the given list [13]')
assertTrue (c == nil, 'unpack() should return the correct items of the given list [14]')
assertTrue (d == 180, 'unpack() should return the correct items of the given list [15]')
assertTrue (e == nil, 'unpack() should return the correct items of the given list [16]')
--Make sure binary searching is implemented the same way as C…
local table1 = {true, nil, true, false, nil, true, nil}
local table2 = {true, false, nil, false, nil, true, nil}
local table3 = {true, false, false, false, true, true, nil}
local a1, b1, c1, d1, e1, f1 = unpack (table1);
local a2, b2, c2, d2, e2, f2 = unpack (table2);
local a3, b3, c3, d3, e3, f3, g3 = unpack (table3);
assertTrue (a1, 'unpack() should return the same items as the C implementation [1]')
assertTrue (b1 == nil, 'unpack() should return the same items as the C implementation [2]')
assertTrue (c1, 'unpack() should return the same items as the C implementation [3]')
assertTrue (not d1, 'unpack() should return the same items as the C implementation [4]')
assertTrue (e1 == nil, 'unpack() should return the same items as the C implementation [5]')
assertTrue (f1 == nil, 'unpack() should return the same items as the C implementation [6]')
assertTrue (a2, 'unpack() should return the same items as the C implementation [7]')
assertTrue (not b2, 'unpack() should return the same items as the C implementation [8]')
assertTrue (c2 == nil, 'unpack() should return the same items as the C implementation [9]')
assertTrue (d2 == nil, 'unpack() should return the same items as the C implementation [10]')
assertTrue (e2 == nil, 'unpack() should return the same items as the C implementation [11]')
assertTrue (f2 == nil, 'unpack() should return the same items as the C implementation [12]')
assertTrue (a3, 'unpack() should return the same items as the C implementation [13]')
assertTrue (not b3, 'unpack() should return the same items as the C implementation [14]')
assertTrue (not c3, 'unpack() should return the same items as the C implementation [15]')
assertTrue (not d3, 'unpack() should return the same items as the C implementation [16]')
assertTrue (e3, 'unpack() should return the same items as the C implementation [17]')
assertTrue (f3, 'unpack() should return the same items as the C implementation [18]')
assertTrue (g3 == nil, 'unpack() should return the same items as the C implementation [19]')
end
-- _VERSION
assertTrue (_VERSION == 'Lua 5.1', '_VERSION should be "Lua 5.1"')
-- xpcall
function goodfunc ()
return 10, "win"
end
function badfunc ()
error ('I\'m bad.')
end
function errfunc ()
return 999, "fail"
end
a, b, c, d = xpcall (goodfunc, errfunc)
assertTrue (a == true, 'xpcall() should return true in the first item when a function executes successfully')
assertTrue (b == 10, 'xpcall() should return the result of the function in the items following the first item returned, when a function executes successfully [1]')
assertTrue (c == 'win', 'xpcall() should return the result of the function in the items following the first item returned, when a function executes successfully [2]')
assertTrue (d == nil, 'xpcall() should return the result of the function in the items following the first item returned, when a function executes successfully [3]')
a, b, c = xpcall (badfunc, errfunc)
assertTrue (a == false, 'xpcall() should return false in the first item when the function errors during execution')
assertTrue (b == 999, 'xpcall() should return the first item of the result of the error function in the second item returned, when the function errors during execution')
assertTrue (c == nil, 'xpcall() should only return the first item of the result of the error function in the items following the first item returned, when the function errors during execution')
-- STRING FUNCTIONS
-- byte
local a, b = string.byte ('Mo0')
assertTrue (a == 77, 'string.byte() should return the numerical code for the first character in the first returned item')
assertTrue (b == nil, 'string.byte() should return only one item when only no length is given [1]')
local a, b = string.byte ('Mo0', 2)
assertTrue (a == 111, 'string.byte() should return the numerical code for the nth character in the first returned item, when n is specified in the second argument [1]')
assertTrue (b == nil, 'string.byte() should return only one item when only no length is given [2]')
local a, b, c = string.byte ('Mo0', 2, 3)
assertTrue (a == 111, 'string.byte() should return the numerical code for the nth character in the first returned item, when n is specified in the second argument [2]')
assertTrue (b == 48, 'string.byte() should return the numerical code for the nth character in the first returned item, when n is specified in the second argument [3]')
assertTrue (c == nil, 'string.byte() should return only the number of items specified in the length argument or the up to the end of the string, whichever is encountered first [1]')
local a, b, c = string.byte ('Mo0', 3, 20)
assertTrue (a == 48, 'string.byte() should return the numerical code for the nth character in the first returned item, when n is specified in the second argument [4]')
assertTrue (b == nil, 'string.byte() should return only the number of items specified in the length argument or the up to the end of the string, whichever is encountered first [2]')
-- char
local a = string.char ()
local b = string.char (116, 101, 115, 116, 105, 99, 108, 101, 115)
assertTrue (a == '', 'string.byte() should return an empty string when called with no arguments')
assertTrue (b == 'testicles', 'string.byte() should return a string comprising of characters representing by the value each of the arguments passed')
-- find
local a = 'The quick brown fox'
local b = string.find (a, 'quick');
local c = string.find (a, 'fox');
local d = string.find (a, 'kipper');
local e = string.find (a, '');
local f = string.find (a, 'quick', 8);
local g = string.find (a, 'fox', 8);
assertTrue (b == 5, 'string.find() should return the location of the first occurrence of the second argument within the first, if it is present [1]')
assertTrue (c == 17, 'string.find() should return the location of the first occurrence of the second argument within the first, if it is present [2]')
assertTrue (d == nil, 'string.find() should return nil if the second argument is not contained within the first [1]')
assertTrue (e == 1, 'string.find() should return return 1 if the second argument is an empty string')
assertTrue (f == nil, 'string.find() should return nil if the second argument is not contained within the first after the index specified by the third argument')
assertTrue (g == 17, 'string.find() should return the location of the second argument if it is contained within the first after the index specified by the third argument')
local b, c, d, e = string.find (a, 'q(.)(.)');
assertEqual (b, 5, 'string.find() should return the location of the first occurrence of the second argument within the first, if it is present [3]')
assertEqual (c, 7, 'string.find() should return the location of the last character of the first occurrence of the second argument within the first, if it is present')
assertEqual (d, 'u', 'string.find() should return the groups that are specified in the regex. [1]')
assertEqual (e, 'i', 'string.find() should return the groups that are specified in the regex. [2]')
b = string.find('[', '[_%w]')
assertTrue (b == nil, 'string.find() should not return the location of special syntax [ and ].')
-- format
do
local a = string.format("%s %q", "Hello", "Lua user!")
local b = string.format("%c%c%c", 76,117,97) -- char
local c = string.format("%e, %E", math.pi,math.pi) -- exponent
local d1 = string.format("%f", math.pi) -- float
local d2 = string.format("%g", math.pi) -- compact float
-- issues:
local e = string.format("%d, %i, %u", -100,-100,-100) -- signed, signed, unsigned integer
local f = string.format("%o, %x, %X", -100,-100,-100) -- octal, hex, hex
local g = string.format("%%s", 100)
assertTrue (a == 'Hello "Lua user!"', 'string.format() should format %s and %q correctly')
assertTrue (b == 'Lua', 'string.format() should format %c correctly')
assertTrue (d1 == '3.141593', 'string.format() should format %f correctly')
-- assertTrue (e == '-100, -100, 4294967196', 'string.format() should format %d, %i and %u correctly')
-- assertTrue (f == '37777777634, ffffff9c, FFFFFF9C', 'string.format() should format %o, %x and %X correctly')
-- assertTrue (e == '-100, -100, 18446744073709551516', 'string.format() should format %d, %i and %u correctly')
-- assertTrue (f == '1777777777777777777634, ffffffffffffff9c, FFFFFFFFFFFFFF9C', 'string.format() should format %o, %x and %X correctly')
assertTrue (g == '%s', 'string.format() should format %% correctly')
-- TODO!!!
-- assertTrue (c == '3.141593e+00, 3.141593E+00', 'string.format() should format %e and %E correctly')
-- assertTrue (d2 == '3.14159', 'string.format() should format %g correctly')
a = function () string.format("%*", 100) end
b = function () string.format("%l", 100) end
c = function () string.format("%L", 100) end
d = function () string.format("%n", 100) end
e = function () string.format("%p", 100) end
f = function () string.format("%h", 100) end
assertTrue (not pcall(a), 'string.format() should error when passed %*')
assertTrue (not pcall(b), 'string.format() should error when passed %l')
assertTrue (not pcall(c), 'string.format() should error when passed %L')
assertTrue (not pcall(d), 'string.format() should error when passed %n')
assertTrue (not pcall(e), 'string.format() should error when passed %p')
assertTrue (not pcall(f), 'string.format() should error when passed %h')
a = string.format("%.3f", 5.1)
b = "Lua version " .. string.format("%.1f", 5.1)
c = string.format("pi = %.4f", math.pi)
local d, m, y = 5, 11, 1990
e = string.format("%02d/%02d/%04d", d, m, y)
assertTrue (a == '5.100', 'string.format() should format floating point numbers correctly[1]')
assertTrue (b == 'Lua version 5.1', 'string.format() should format floating point numbers correctly[2]')
assertTrue (c == 'pi = 3.1416', 'string.format() should format floating point numbers correctly[3]')
assertTrue (e == '05/11/1990', 'string.format() should format decimals correctly [0]')
a = function () string.format('%#####s', 'x') end
b = function () string.format('%######s', 'x') end
assertTrue (pcall(a), 'string.format() should handle five flags')
assertTrue (not pcall(b), 'string.format() should not handle six flags')
local tag, title = "h1", "a title"
a = string.format("<%s>%s</%s>", tag, title, tag)
b = string.format("%8s", "Lua")
c = string.format("%.8s", "Lua")
d = string.format("%.2s", "Lua")
e = string.format("%8.2s", "Lua")
f = string.format("%+8.2s", "Lua")
g = string.format("%-8.2s", "Lua")
local h = string.format("%08.2s", "Lua")
local i = string.format("%#8.2s", "Lua")
local j = string.format("% 8.2s", "Lua")
local k = string.format("%+-0# 8.2s", "Lua")
local l = string.format("%0.2s", "Lua")
assertTrue (a == '<h1>a title</h1>', 'string.format() should format strings correctly[1]')
assertTrue (b == ' Lua', 'string.format() should format strings correctly[2]')
assertTrue (c == 'Lua', 'string.format() should format strings correctly[3]')
assertTrue (d == 'Lu', 'string.format() should format strings correctly[4]')
assertTrue (e == ' Lu', 'string.format() should format strings correctly[5]')
assertTrue (f == ' Lu', 'string.format() should format strings correctly[6]')
assertTrue (g == 'Lu ', 'string.format() should format strings correctly[7]')
assertTrue (h == '000000Lu', 'string.format() should format strings correctly[8]')
assertTrue (i == ' Lu', 'string.format() should format strings correctly[9]')
assertTrue (j == ' Lu', 'string.format() should format strings correctly[10]')
assertTrue (k == 'Lu ', 'string.format() should format strings correctly[11]')
assertTrue (l == 'Lu', 'string.format() should format strings correctly[12]')
a = string.format("%8d", 123.45)
b = string.format("%.8d", 123.45)
c = string.format("%.2d", 123.45)
d = string.format("%8.2d", 123.45)
e = string.format("%+8.2d", 123.45)
f = string.format("%-8.2d", 123.45)
g = string.format("%08.2d", 123.45)
h = string.format("%#8.2d", 123.45)
i = string.format("% 8.2d", 123.45)
j = string.format("%+-0# 8.2d", 123.45)
k = string.format("%0.2d", 123.45)
l = string.format("%+.8d", 123.45)
local m = string.format("%-.8d", 123.45)
local n = string.format("%#.8d", 123.45)
local o = string.format("%0.8d", 123.45)
local p = string.format("% .8d", 123.45)
local q = string.format("%+-#0 .8d", 123.45)
local r = string.format("%8.5d", 123.45)
local s = string.format("%+8.5d", 123.45)
local t = string.format("%-8.5d", 123.45)
local u = string.format("%-+8.5d", 123.45)
local v = string.format("%5d", 12.3e10)
local w = string.format("%.d", 123.45)
assertTrue (a == ' 123', 'string.format() should format decimals correctly[1]')
assertTrue (b == '00000123', 'string.format() should format decimals correctly[2]')
assertTrue (c == '123', 'string.format() should format decimals correctly[3]')
assertTrue (d == ' 123', 'string.format() should format decimals correctly[4]')
assertTrue (e == ' +123', 'string.format() should format decimals correctly[5]')
assertTrue (f == '123 ', 'string.format() should format decimals correctly[6]')
assertTrue (g == ' 123', 'string.format() should format decimals correctly[7]')
assertTrue (h == ' 123', 'string.format() should format decimals correctly[8]')
assertTrue (i == ' 123', 'string.format() should format decimals correctly[9]')
assertTrue (j == '+123 ', 'string.format() should format decimals correctly[10]')
assertTrue (k == '123', 'string.format() should format decimals correctly[11]')
assertTrue (l == '+00000123', 'string.format() should format decimals correctly[12]')
assertTrue (m == '00000123', 'string.format() should format decimals correctly[13]')
assertTrue (n == '00000123', 'string.format() should format decimals correctly[14]')
assertTrue (o == '00000123', 'string.format() should format decimals correctly[15]')
assertTrue (p == ' 00000123', 'string.format() should format decimals correctly[16]')
assertTrue (q == '+00000123', 'string.format() should format decimals correctly[17]')
assertTrue (r == ' 00123', 'string.format() should format decimals correctly[18]')
assertTrue (s == ' +00123', 'string.format() should format decimals correctly[19]')
assertTrue (t == '00123 ', 'string.format() should format decimals correctly[20]')
assertTrue (u == '+00123 ', 'string.format() should format decimals correctly[21]')
assertTrue (v == '123000000000', 'string.format() should format decimals correctly[22]')
assertTrue (w == '123', 'string.format() should format decimals correctly[23]')
a = string.format("%8d", -123.45)
b = string.format("%.8d", -123.45)
c = string.format("%.2d", -123.45)
d = string.format("%8.2d", -123.45)
e = string.format("%+8.2d", -123.45)
f = string.format("%-8.2d", -123.45)
g = string.format("%08.2d", -123.45)
h = string.format("%#8.2d", -123.45)
i = string.format("% 8.2d", -123.45)
j = string.format("%+-0# 8.2d", -123.45)
k = string.format("%0.2d", -123.45)
l = string.format("%+.8d", -123.45)
m = string.format("%-.8d", -123.45)
n = string.format("%#.8d", -123.45)
o = string.format("%0.8d", -123.45)
p = string.format("% .8d", -123.45)
q = string.format("%+-#0 .8d", -123.45)
r = string.format("%8.5d", -123.45)
s = string.format("%+8.5d", -123.45)
t = string.format("%-8.5d", -123.45)
u = string.format("%-+8.5d", -123.45)
v = string.format("%5d", -12.3e10)
w = string.format("%.d", -123.45)
assertTrue (a == ' -123', 'string.format() should format decimals correctly[31]')
assertTrue (b == '-00000123', 'string.format() should format decimals correctly[32]')
assertTrue (c == '-123', 'string.format() should format decimals correctly[33]')
assertTrue (d == ' -123', 'string.format() should format decimals correctly[34]')
assertTrue (e == ' -123', 'string.format() should format decimals correctly[35]')
assertTrue (f == '-123 ', 'string.format() should format decimals correctly[36]')
assertTrue (g == ' -123', 'string.format() should format decimals correctly[37]')
assertTrue (h == ' -123', 'string.format() should format decimals correctly[38]')
assertTrue (i == ' -123', 'string.format() should format decimals correctly[39]')
assertTrue (j == '-123 ', 'string.format() should format decimals correctly[40]')
assertTrue (k == '-123', 'string.format() should format decimals correctly[41]')
assertTrue (l == '-00000123', 'string.format() should format decimals correctly[42]')
assertTrue (m == '-00000123', 'string.format() should format decimals correctly[43]')
assertTrue (n == '-00000123', 'string.format() should format decimals correctly[44]')
assertTrue (o == '-00000123', 'string.format() should format decimals correctly[45]')
assertTrue (p == '-00000123', 'string.format() should format decimals correctly[46]')
assertTrue (q == '-00000123', 'string.format() should format decimals correctly[47]')
assertTrue (r == ' -00123', 'string.format() should format decimals correctly[48]')
assertTrue (s == ' -00123', 'string.format() should format decimals correctly[49]')
assertTrue (t == '-00123 ', 'string.format() should format decimals correctly[50]')
assertTrue (u == '-00123 ', 'string.format() should format decimals correctly[51]')
assertTrue (v == '-123000000000', 'string.format() should format decimals correctly[52]')
assertTrue (w == '-123', 'string.format() should format decimals correctly[53]')
a = string.format("%+05.d", 123.45)
b = string.format("%05d", 123.45)
c = string.format("%05d", -123.45)
d = string.format("%+05d", 123.45)
assertTrue (a == ' +123', 'string.format() should format decimals correctly[60]')
assertTrue (b == '00123', 'string.format() should format decimals correctly[61]')
assertTrue (c == '-0123', 'string.format() should format decimals correctly[62]')
assertTrue (d == '+0123', 'string.format() should format decimals correctly[63]')
a = string.format("%8f", 123.45)
b = string.format("%.8f", 123.45)
c = string.format("%.1f", 123.45)
d = string.format("%8.2f", 123.45)
e = string.format("%+8.2f", 123.45)
f = string.format("%-8.3f", 123.45)
g = string.format("%08.3f", 123.45)
h = string.format("%#8.3f", 123.45)
i = string.format("% 8.3f", 123.45)
j = string.format("%+-0# 8.2f", 123.45)
k = string.format("%0.2f", 123.45)
l = string.format("%+.8f", 123.45)
m = string.format("%-.8f", 123.45)
n = string.format("%#.8f", 123.45)
o = string.format("%9.3f", 123.45)
p = string.format("%+9.3f", 123.45)
q = string.format("%-9.3f", 123.45)
r = string.format("%-+9.3f", 123.45)
s = string.format("%.0f", 123.45)
t = string.format("%.4f", 123.05)
assertTrue (a == '123.450000', 'string.format() should format floats correctly[1]')
assertTrue (b == '123.45000000', 'string.format() should format floats correctly[2]')
assertTrue (c == '123.5', 'string.format() should format floats correctly[3]')
assertTrue (d == ' 123.45', 'string.format() should format floats correctly[4]')
assertTrue (e == ' +123.45', 'string.format() should format floats correctly[5]')
assertTrue (f == '123.450 ', 'string.format() should format floats correctly[6]')
assertTrue (g == '0123.450', 'string.format() should format floats correctly[7]')
assertTrue (h == ' 123.450', 'string.format() should format floats correctly[8]')
assertTrue (i == ' 123.450', 'string.format() should format floats correctly[9]')
assertTrue (j == '+123.45 ', 'string.format() should format floats correctly[10]')
assertTrue (k == '123.45', 'string.format() should format floats correctly[11]')
assertTrue (l == '+123.45000000', 'string.format() should format floats correctly[12]')
assertTrue (m == '123.45000000', 'string.format() should format floats correctly[13]')
assertTrue (n == '123.45000000', 'string.format() should format floats correctly[14]')
assertTrue (o == ' 123.450', 'string.format() should format floats correctly[15]')
assertTrue (p == ' +123.450', 'string.format() should format floats correctly[16]')
assertTrue (q == '123.450 ', 'string.format() should format floats correctly[17]')
assertTrue (r == '+123.450 ', 'string.format() should format floats correctly[18]')
assertTrue (s == '123', 'string.format() should format floats correctly[19]')
assertTrue (t == '123.0500', 'string.format() should format floats correctly[20]')
a = string.format("%x", 123)
b = string.format("%x", 123.45)
c = string.format("%x", -123)
d = string.format("%4x", 123)
e = string.format("%.4x", 123)
f = string.format("%8.4x", 123)
g = string.format("%+8.4x", 123)
h = string.format("%-8.4x", 123)
i = string.format("%#8.4x", 123)
j = string.format("%08.4x", 123)
k = string.format("% 8.4x", 123)
l = string.format("%+-#0 8.4x", 123)
m = string.format("%08x", 123)
n = string.format("% x", 123)
assertTrue (a == '7b', 'string.format() should format hex correctly[1]')
assertTrue (b == '7b', 'string.format() should format hex correctly[2]')
assertTrue (c == 'ffffffffffffff85', 'string.format() should format hex correctly[3]')
assertTrue (d == ' 7b', 'string.format() should format hex correctly[4]')
assertTrue (e == '007b', 'string.format() should format hex correctly[5]')
assertTrue (f == ' 007b', 'string.format() should format hex correctly[6]')
assertTrue (g == ' 007b', 'string.format() should format hex correctly[7]')
assertTrue (h == '007b ', 'string.format() should format hex correctly[8]')
assertTrue (i == ' 0x007b', 'string.format() should format hex correctly[9]')
assertTrue (k == ' 007b', 'string.format() should format hex correctly[11]')
assertTrue (l == '0x007b ', 'string.format() should format hex correctly[12]')
assertTrue (n == '7b', 'string.format() should format hex correctly[14]')
a = string.format("%8.2f\n", 1.234)
b = string.format("\n%8.2f", 1.234)
c = string.format("\n%8.2f\n", 1.234)
assertTrue (a == ' 1.23\n', 'string.format() should correctly format patterns that contain new lines.[1]')
assertTrue (b == '\n 1.23', 'string.format() should correctly format patterns that contain new lines.[2]')
assertTrue (c == '\n 1.23\n', 'string.format() should correctly format patterns that contain new lines.[3]')
-- TODO!!!!
-- assertTrue (j == ' 007b', 'string.format() should format hex correctly[10]')
-- assertTrue (m == '0000007b', 'string.format() should format hex correctly[13]')
-- print (c)
end
-- gmatch
local s = "from=world, to=Lua"
local x = string.gmatch(s, "(%w+)=(%w+)")
assertTrue (type(x) == 'function', 'string.gmatch() should return an iterator function')
local a, b, c = x()
assertTrue (a == 'from', 'string.gmatch() iterator should return the first group matched in the string [1]')
assertTrue (b == 'world', 'string.gmatch() iterator should return the second group matched in the string [1]')
assertTrue (c == nil, 'string.gmatch() iterator should return nil after all groups are matched [1]')
local a, b, c = x()
assertTrue (a == 'to', 'string.gmatch() iterator should return the first group matched in the string [2]')
assertTrue (b == 'Lua', 'string.gmatch() iterator should return the second group matched in the string [2]')
assertTrue (c == nil, 'string.gmatch() iterator should return nil after all groups are matched [2]')
local a = x()
assertTrue (a == nil, 'string.gmatch() iterator should return nil after all matches have ben returned')
local x = string.gmatch(s, "%w+=%w+")
local a, b = x()
assertTrue (a == 'from=world', 'string.gmatch() iterator should return the first match when no groups are specified')
assertTrue (b == nil, 'string.gmatch() iterator should return nil as second return value when no groups are specified [1]')
local a, b = x()
assertTrue (a == 'to=Lua', 'string.gmatch() iterator should return the second match when no groups are specified')
assertTrue (b == nil, 'string.gmatch() iterator should return nil as second return value when no groups are specified [2]')
do
local x = string.gmatch(';a;', 'a*')
local a, b, c, d, e, f = x(), x(), x(), x(), x(), x();
assertEqual (a, '', 'string.gmatch() iterator should return correct values [1]')
assertEqual (b, 'a', 'string.gmatch() iterator should return correct values [2]')
assertEqual (c, '', 'string.gmatch() iterator should return correct values [3]')
assertEqual (d, '', 'string.gmatch() iterator should return correct values [4]')
assertEqual (e, nil, 'string.gmatch() iterator should return correct values [5]')
assertEqual (e, nil, 'string.gmatch() iterator should return correct values [6]')
end
-- gsub
a = '<%?xml version="1.0" encoding="UTF%-8"%?>'
b = '<?xml version="1.0" encoding="UTF-8"?><my-xml></my-xml>'
c = string.gsub (b, a, 'moo')
assertTrue (c == 'moo<my-xml></my-xml>', 'string.gsub() should replace the matched part of the string[1]')
-- Not even scraping the surface
a = '%%1'
b = 'Hello %1'
c = string.gsub (b, a, 'world')
assertTrue (c == 'Hello world', 'string.gsub() should replace the matched part of the string[2]')
a = '%d'
b = 'ab5kfd8scf4lll'
c = function (x) return '('..x..')' end
d = string.gsub (b, a, c, 2)
assertTrue (d == 'ab(5)kfd(8)scf4lll', 'string.gsub() should replace the matched part of the string with the value returned from the given map function')
a = "[^:]+"
b = ":aa:bbb:cccc:ddddd:eee:"
c = function (subStr) end
d = string.gsub (b, a, c)
assertTrue (d == ':aa:bbb:cccc:ddddd:eee:', 'string.gsub() should not replace the matched part of the string if the value returned from the map function is nil')
c = function (subStr) return 'X' end
d = string.gsub (b, a, c)
assertTrue (d == ':X:X:X:X:X:', 'string.gsub() should replace the matched part of the string if the value returned from the map function is not nil')
c = string.gsub (';a;', 'a*', 'ITEM')
assertTrue (c == 'ITEM;ITEMITEM;ITEM', 'string.gsub() should replace the matched part of the string[2]')
-- len
local a = 'McLaren Mercedes'
local b = string.len ('');
local c = string.len (a);
assertTrue (b == 0, 'string.len() should return 0 if passed an empty string')
assertTrue (c == 16, 'string.len() should return the length of the string in the first argument')
-- lower
local a = 'McLaren Mercedes'
local b = string.lower ('');
local c = string.lower (a);
assertTrue (b == '', 'string.lower() should return an empty string if passed an empty string')
assertTrue (c == 'mclaren mercedes', 'string.lower() should return the string in the first argument with all character in lower case')
-- rep
local a = 'Ho'
local b = string.rep (a, 0);
local c = string.rep (a, 1);
local d = string.rep (a, 3);
assertTrue (b == '', 'string.rep() should return an empty string if the second argument is 0')
assertTrue (c == 'Ho', 'string.rep() should return the first argument if the second argument is 1')
assertTrue (d == 'HoHoHo', 'string.rep() should return a string containing the first argument repeated the second argument number of times')
-- reverse
local a = string.reverse ('');
local b = string.reverse ('x');
local c = string.reverse ('tpircSavaJ');
assertTrue (a == '', 'string.reverse() should return an empty string if passed an empty string')
assertTrue (b == 'x', 'string.reverse() should return the first argument if its length is 1')
assertTrue (c == 'JavaScript', 'string.reverse() should return a string containing the first argument reversed')
-- sub
local a = 'Pub Standards'
local b = string.sub (a, 1)
local c = string.sub (a, 5)
local d = string.sub (a, -4)
local e = string.sub (a, 1, 3)
local f = string.sub (a, 7, 9)
local g = string.sub (a, -4, -2)
local h = string.sub (a, 5, -2)
local i = string.sub (a, 0)
assertTrue (b == 'Pub Standards', 'string.sub() should return the first argument if the second argument is 1')
assertTrue (c == 'Standards', 'string.sub() should return a subset of the first argument from the nth character onwards, when n is the second argument and positive')
assertTrue (d == 'ards', 'string.sub() should return the last n characters of the first argument, where n is the absolute value of the second argument and the second argument is negative')
assertTrue (e == 'Pub', 'string.sub() should return the first n characters of the first argument when the second argument is one and n is the third argument')
assertTrue (f == 'and', 'string.sub() should return a subset of the first argument from the nth character to the mth character, when n is the second argument and positive and m is the third argument and negative')
assertTrue (h == 'Standard', 'string.sub() should return a subset of the first argument from the nth character to the last but mth character, when n is the second argument and positive and m is the third argument and negative')
assertTrue (i == 'Pub Standards', 'string.sub() should return a subset of the first argument from the last but nth character to the last but mth character, when n is the second argument and negative and m is the third argument and negative')
-- upper
local a = string.upper ('');
local b = string.upper ('JavaScript');
assertTrue (a == '', 'string.upper() should return an empty string if passed an empty string')
assertTrue (b == 'JAVASCRIPT', 'string.upper() should return the first argument in uppercase')
function tables ()
-- TABLE FUNCTIONS
-- concat
local a = {2, 4, "moo", 102}
local b = table.concat ({})
local c = table.concat ({}, ':')
local d = table.concat ({}, ', ', 3)
--local e = table.concat ({}, ', ', 3, 4)
local f = table.concat (a)
local g = table.concat (a, '-')
local h = table.concat (a, '..', 2)
local i = table.concat (a, '+', 2, 3)
assertTrue (b == '', 'table.concat() should return an empty string if passed an empty table [1]')
assertTrue (c == '', 'table.concat() should return an empty string if passed an empty table [2]')
assertTrue (d == '', 'table.concat() should return an empty string if passed an empty table [3]')
--assertTrue (e == '', 'table.concat() should return an empty string if passed an empty table [4]')
assertTrue (f == '24moo102', 'table.concat() should return all items in the table in argument 1 in a string with no spaces, when arguments 2 and 3 are absent')
assertTrue (g == '2-4-moo-102', 'table.concat() should return return all items in the table in argument 1 in a string delimited by argument 2, when argument 3 is absent')
assertTrue (h == '4..moo..102', 'table.concat() should return the items in the table in argument 1 from the nth index in a string delimited by argument 2, when n is the third argument')
assertTrue (i == '4+moo', 'table.concat() should return the items in the table in argument 1 from the nth index to the mth index in a string delimited by argument 2, when n is the third argument and m is the forth argument')
-- getn
do
local a = {'a', 'b', 'c'}
local b = {'a', 'b', 'c', nil}
local c = {'a', nil, 'b', 'c'}
local d = {'a', nil, 'b', 'c', nil}
local e = {'a', 'b', 'c', moo = 123 }
local f = { moo = 123 }
local g = {}
assertTrue (table.getn (a) == 3, 'table.getn() should return the size of the array part of a table')
assertTrue (table.getn (b) == 3, 'table.getn() should ignore nils at the end of the array part of a table')
assertTrue (table.getn (c) == 4, 'table.getn() should include nils in the middle of the array part of a table')
assertTrue (table.getn (d) == 1, 'table.getn() should return the same random value as C implementation when the last item is nil')
assertTrue (table.getn (e) == 3, 'table.getn() should ignore the hash part of a table')
assertTrue (table.getn (f) == 0, 'table.getn() should return zero when the array part of a table is empty')
assertTrue (table.getn (g) == 0, 'table.getn() should return zero when the table is empty')
end
-- insert
local b = {}
local w = table.insert (b, 'Lewis')
local c = {}
local x = table.insert (c, 3, 'Jenson')
local d = {'We', 'exist', 'to'}
local y = table.insert (d, 'win')
local e = {1, 1998, 1, 1999}
local z = table.insert (e, 3, 'Mika')
local f = {'Kimi'}
local z2 = table.insert (f, 4, 2)
assertTrue (b[1] == 'Lewis', 'table.concat() should add argument 2 to the end of the table in argument 1, when the third argument is absent [1]')
assertTrue (b[2] == nil, 'table.concat() should only add argument 2 to the end of the table in argument 1, when the third argument is absent [2]')
assertTrue (c[1] == nil, 'table.concat() should pad the table with nils when the desired index is greater than the length of the table [1]')
assertTrue (c[2] == nil, 'table.concat() should pad the table with nils when the desired index is greater than the length of the table [2]')
assertTrue (c[3] == 'Jenson', 'table.concat() should add argument 2 to the end of the table in argument 1, when the third argument is greater than the length of the table [1]')
assertTrue (c[4] == nil, 'table.concat() should only add argument 2 to the end of the table in argument 1, when the third argument is greater than the length of the table [2]')
assertTrue (d[1] == 'We', 'table.concat() should not affect existing items in the table when the third argument is missing [1]')
assertTrue (d[2] == 'exist', 'table.concat() should not affect existing items in the table when the third argument is missing [2]')
assertTrue (d[3] == 'to', 'table.concat() should not affect existing items in the table when the third argument is missing [3]')
assertTrue (d[4] == 'win', 'table.concat() should add argument 2 to the end of the table in argument 1, when the third argument is missing [1]')
assertTrue (d[5] == nil, 'table.concat() should only add argument 2 to the end of the table in argument 1, when the third argument is missing [2]')
assertTrue (e[1] == 1, 'table.concat() should not affect existing items in the table at indices less than that specified in the third argument [1]')
assertTrue (e[2] == 1998, 'table.concat() should not affect existing items in the table at indices less than that specified in the third argument [2]')
assertTrue (e[3] == 'Mika', 'table.concat() should add argument 3 into the table in argument 1 at the index specified in argument 2')
assertTrue (e[4] == 1, 'table.concat() should shift items in the table in argument 1 down by one after and including the index at argument 2 [1]')
assertTrue (e[5] == 1999, 'table.concat() should shift items in the table in argument 1 down by one after and including the index at argument 2 [2]')
assertTrue (e[6] == nil, 'table.concat() should only add one index to the table in argument 1 [1]')
assertTrue (f[1] == 'Kimi', 'table.concat() should not affect existing items in the table at indices less than that specified in the third argument [3]')
assertTrue (f[2] == nil, 'table.concat() should pad the table with nils when the desired index is greater than the length of the table [3]')
assertTrue (f[3] == nil, 'table.concat() should pad the table with nils when the desired index is greater than the length of the table [4]')
assertTrue (f[4] == 2, 'table.concat() should not affect existing items in the table at indices less than that specified in the third argument [2]')
assertTrue (f[5] == nil, 'table.concat() should only add one index to the table in argument 1 [2]')
assertTrue (w == nil, 'table.concat() should update list in place and return nil')
assertTrue (x == nil, 'table.concat() should update list in place and return nil')
assertTrue (y == nil, 'table.concat() should update list in place and return nil')
assertTrue (z == nil, 'table.concat() should update list in place and return nil')
assertTrue (z2 == nil, 'table.concat() should update list in place and return nil')
local function insertStringKey ()
table.insert({}, 'string key', 1)
end
a, b = pcall(insertStringKey)
assertTrue (a == false, 'table.insert() should error when passed a string key')
local function insertStringKey ()
table.insert({}, '23', 1)
end
a, b = pcall(insertStringKey)
assertTrue (a, 'table.insert() should not error when passed a string key that can be coerced to a number [1]')
local function insertStringKey ()
table.insert({}, '1.23e33', 1)
end
a, b = pcall(insertStringKey)
assertTrue (a, 'table.insert() should not error when passed a string key that can be coerced to a number [2]')
local function insertStringKey ()
table.insert({}, '-23', 1)
end
a, b = pcall(insertStringKey)
assertTrue (a, 'table.insert() should not error when passed a string key that can be coerced to a negative number')
-- maxn
local a = table.maxn ({})
local b = table.maxn ({1, 2, 4, 8})
local c = table.maxn ({nil, nil, 123})
local d = {}
table.insert (d, 3, 'Moo')
local e = table.maxn (d)
assertTrue (a == 0, 'table.maxn() should return zero when passed an empty table')
assertTrue (b == 4, 'table.maxn() should return the highest index in the passed table [1]')
assertTrue (c == 3, 'table.maxn() should return the highest index in the passed table [2]')
assertTrue (e == 3, 'table.maxn() should return the highest index in the passed table [3]')
assertTrue (#d == 0, 'Length operator should return the first empty index minus one [1]')
-- remove
local a = {14, 2, "Hello", 298}
local b = table.remove (a)
local c = {14, 2, "Hello", 298}
local d = table.remove (c, 3)
local e = {14, 2}
local f = table.remove (e, 6)
local g = table.remove ({}, 1)
assertTrue (a[1] == 14, 'table.remove() should not affect items before the removed index [1]')
assertTrue (a[2] == 2, 'table.remove() should not affect items before the removed index [2]')
assertTrue (a[3] == "Hello", 'table.remove() should not affect items before the removed index [3]')
assertTrue (a[4] == nil, 'table.remove() should remove the last item in the table when second argument is absent')
assertTrue (b == 298, 'table.remove() should return the removed item [1]')
assertTrue (c[1] == 14, 'table.remove() should not affect items before the removed index [3]')
assertTrue (c[2] == 2, 'table.remove() should not affect items before the removed index [4]')
assertTrue (c[3] == 298, 'table.remove() should remove the item at the index specified by the second argument and shift subsequent item down')
assertTrue (c[4] == nil, 'table.remove() should decrease the length of the table by one')
assertTrue (d == 'Hello', 'table.remove() should return the removed item [2]')
assertTrue (e[1] == 14, 'table.remove() should not affect items before the removed index [5]')
assertTrue (e[2] == 2, 'table.remove() should not affect items before the removed index [6]')
assertTrue (e[3] == nil, 'table.remove() should not affect the table if the given index is past the length of the table')
assertTrue (f == nil, 'table.remove() should return nil if the given index is past the length of the table [1]')
assertTrue (g == nil, 'table.remove() should return nil if the given index is past the length of the table [2]')
c = {nil, nil, 123}
assertTrue (#c == 3, 'Length operator should return the first empty index minus one [2]')
table.remove (c, 1)
assertTrue (#c == 0, 'Length operator should return the first empty index minus one [3]')
assertTrue (c[1] == nil, 'table.remove() should shift values down if index <= initial length [1]')
assertTrue (c[2] == 123, 'table.remove() should shift values down if index <= initial length [2]')
assertTrue (c[3] == nil, 'table.remove() should shift values down if index <= initial length [3]')
table.remove (c, 1)
assertTrue (#c == 0, 'Length operator should return the first empty index minus one [4]')
assertTrue (c[1] == nil, 'table.remove() should not affect the array if index > initial length [1]')
assertTrue (c[2] == 123, 'table.remove() should not affect the array if index > initial length [2]')
assertTrue (c[3] == nil, 'table.remove() should not affect the array if index > initial length [3]')
table.remove (c, 2)
assertTrue (#c == 0, 'Length operator should return the first empty index minus one [5]')
assertTrue (c[1] == nil, 'table.remove() should not affect the array if index > initial length [4]')
assertTrue (c[2] == 123, 'table.remove() should not affect the array if index > initial length [5]')
assertTrue (c[3] == nil, 'table.remove() should not affect the array if index > initial length [6]')
-- sort
local a = { 1, 2, 3, 6, 5, 4, 20 }
table.sort (a)
assertTrue (a[1] == 1, 'table.sort() should sort elements into alphnumeric order, when not passed a sort function [1]')
assertTrue (a[2] == 2, 'table.sort() should sort elements into alphnumeric order, when not passed a sort function [2]')
assertTrue (a[3] == 3, 'table.sort() should sort elements into alphnumeric order, when not passed a sort function [3]')
assertTrue (a[4] == 4, 'table.sort() should sort elements into alphnumeric order, when not passed a sort function [4]')
assertTrue (a[5] == 5, 'table.sort() should sort elements into alphnumeric order, when not passed a sort function [5]')
assertTrue (a[6] == 6, 'table.sort() should sort elements into alphnumeric order, when not passed a sort function [6]')
assertTrue (a[7] == 20, 'table.sort() should sort elements into alphnumeric order, when not passed a sort function [7]')
assertTrue (a[8] == nil, 'table.sort() should not affect the table if the given index is past the length of the table')
local a = { 1, 2, 3, 6, 5, 4, 20 }
table.sort (a, function (a, b) return b < a end)
assertTrue (a[1] == 20, 'table.sort() should sort elements into order defined by sort function [1]')
assertTrue (a[2] == 6, 'table.sort() should sort elements into order defined by sort function [2]')
assertTrue (a[3] == 5, 'table.sort() should sort elements into order defined by sort function [3]')
assertTrue (a[4] == 4, 'table.sort() should sort elements into order defined by sort function [4]')
assertTrue (a[5] == 3, 'table.sort() should sort elements into order defined by sort function [5]')
assertTrue (a[6] == 2, 'table.sort() should sort elements into order defined by sort function [6]')
assertTrue (a[7] == 1, 'table.sort() should sort elements into order defined by sort function [7]')
assertTrue (a[8] == nil, 'table.sort() should not affect the table if the given index is past the length of the table')
end
tables()
function maths ()
-- MATHS FUNCTIONS
-- abs
local a = math.abs (10)
local b = math.abs (-20)
local c = math.abs (2.56)
local d = math.abs (-34.67)
local e = math.abs (-0)
assertTrue (a == 10, 'math.abs() should return the passed argument if it is positive')
assertTrue (b == 20, 'math.abs() should return the positive form of the passed argument if it is negative')
assertTrue (c == 2.56, 'math.abs() should return the passed argument if it is a positive floating point number')
assertTrue (d == 34.67, 'math.abs() should return the positive form of the passed argument if it is a positive floating point number')
assertTrue (e == 0, 'math.abs() should return zero if passed zero')
-- math.acos
-- math.cos
local a = math.acos (1)
--local b = math.acos (math.cos (0.3))
local c = math.cos (0)
--local d = math.cos (math.acos (0.3))
assertTrue (a == 0, 'math.acos() should return 0 when passed 1')
--assertTrue (b == 0.3, 'math.acos() should return x when passed math.cos(x)')
assertTrue (c == 1, 'math.cos() should return 1 when passed 0')
--assertTrue (d == 0.3, 'math.cos() should return x when passed math.acos(x)')
-- math.asin
-- math.sin
local a = math.asin (0)
--local b = math.asin (math.sin (90))
local c = math.sin (0)
local d = math.sin (math.asin (0.3))
assertTrue (a == 0, 'math.asin() should return 0 when passed 0')
--assertTrue (b == 90, 'math.asin() should return x when passed math.sin(x)')
assertTrue (c == 0, 'math.sin() should return 0 when passed 0')
assertTrue (d == 0.3, 'math.sin() should return x when passed math.asin(x)')
-- math.atan
-- math.tan
local a = math.atan (0)
--local b = math.atan (math.tan (0.3))
local c = math.tan (0)
local d = math.tan (math.atan (0.3))
assertTrue (a == 0, 'math.atan() should return 0 when passed 0')
--assertTrue (b == 0.3, 'math.atan() should return x when passed math.tan(x)')
assertTrue (c == 0, 'math.tan() should return 0 when passed 0')
assertTrue (d == 0.3, 'math.tan() should return x when passed math.atan(x)')
-- math.ceil
local a = math.ceil (14)
local b = math.ceil (14.45)
local c = math.ceil (14.5)
local d = math.ceil (0.1)
local e = math.ceil (0.6)
local f = math.ceil (-0.6)
local g = math.ceil (-122.4)
assertTrue (a == 14, 'math.ceil() should round up to the next integer [1]')
assertTrue (b == 15, 'math.ceil() should round up to the next integer [2]')
assertTrue (c == 15, 'math.ceil() should round up to the next integer [3]')
assertTrue (d == 1, 'math.ceil() should round up to the next integer [4]')
assertTrue (e == 1, 'math.ceil() should round up to the next integer [5]')
assertTrue (f == 0, 'math.ceil() should round up to the next integer [6]')
assertTrue (g == -122, 'math.ceil() should round up to the next integer [7]')
-- math.deg
a = math.deg (0)
b = math.deg (math.pi)
c = math.deg (math.pi * 2)
d = math.deg (math.pi / 2)
assertTrue (a == 0, 'math.deg() should return 0 when passed zero')
assertTrue (b == 180, 'math.deg() should return 180 when passed Pi')
assertTrue (c == 360, 'math.deg() should return 360 when passed 2Pi')
assertTrue (d == 90, 'math.deg() should return 90 when passed Pi/2')
--math.frexp
a, b = math.frexp(63)
assertTrue (a == 0.984375, 'math.frexp should return the correct mantissa when passed a positive number.')
assertTrue (b == 6, 'math.frexp should return the correct exponent when passed a positive number.')
a, b = math.frexp(-63)
assertTrue (a == -0.984375, 'math.frexp should return the correct mantissa when passed a negative number.')
assertTrue (b == 6, 'math.frexp should return the correct exponent when passed a negative number.')
a, b = math.frexp(0)
assertTrue (a == 0, 'math.frexp should return a zero mantissa when passed zero.')
assertTrue (b == 0, 'math.frexp should return a zero exponent when passed zero.')
--math.huge
a = math.huge + 1
b = -math.huge - 1
assertTrue (a == math.huge, 'math.huge should not change value with addition.')
assertTrue (b == -math.huge, 'Negative math.huge should not change value with subtraction.')
-- math.rad
a = math.rad (0)
b = math.rad (180)
c = math.rad (270)
d = math.rad (360)
e = math.rad (450)
f = math.rad (-180)
assertTrue (a == 0, 'math.rad() should return 0 when passed zero')
assertTrue (b == math.pi, 'math.rad() should return Pi when passed 180')
assertTrue (c == 1.5 * math.pi, 'math.rad() should return 1.5*Pi when passed 270')
assertTrue (d == 2 * math.pi, 'math.rad() should return 2*Pi when passed 360')
assertTrue (e == 2.5 * math.pi, 'math.rad() should return 2.5*Pi when passed 450')
assertTrue (f == -math.pi, 'math.rad() should return -Pi when passed -180')
-- math.random
a = math.random()
b = math.random()
assertTrue (a == 16807 / 2147483647, 'math.random() should initialise with a value of 1')
assertTrue (b == ((16807 * a * 2147483647) % 2147483647) / 2147483647, 'math.random() should follow the right sequence [1]')
-- math.randomseed
math.randomseed(123)
c = math.random()
d = math.random()
assertTrue (c == ((16807 * 123) % 2147483647) / 2147483647, 'math.random() should follow the right sequence [2]')
assertTrue (d == ((16807 * c * 2147483647) % 2147483647) / 2147483647, 'math.random() should follow the right sequence [3]')
end
maths()
local datetest = function ()
--[[
local dates = {{1, 1}, {1, 2}, {28, 2}, {29, 2}, {1, 3}, {31, 12}}
local years = {1999, 2000, 2011}
local symbols = {'%a', '%A', '%b', '%B', '%d', '%H', '%I', '%j', '%m', '%M', '%p', '%S', '%U', '%w', '%W', '%x', '%X', '%y', '%Y', '%Z', '%%', '!%a', '!%A', '!%b', '!%B', '!%d', '!%H', '!%I', '!%j', '!%m', '!%M', '!%p', '!%S', '!%U', '!%w', '!%W', '!%x', '!%X', '!%y', '!%Y', '!%Z'}
local index = 0
for _, year in pairs (years) do
for _, date in pairs (dates) do
local time = os.time {
year = year,
month = date[2],
day = date[1],
hour = date[2]
}
print ('\nlocal time = '..time..'\n')
for _, symbol in pairs (symbols) do
index = index + 1
print ("assertTrue (os.date ('"..symbol.."', time) == '"..os.date (symbol, time).."', 'os.date() did not return expected value when passed \""..symbol.."\" ["..index.."]')")
end
local data = os.date ('*t', time)
for key, value in pairs (data) do
index = index + 1
local val = tostring (value)
if type (value) == 'string' then val = "'"..val.."'" end
print ("assertTrue (os.date ('*t', time)."..key.." == "..val..", 'os.date() did not return expected value when passed \"*t\" ["..index.."]')")
end
local data = os.date ('!*t', time)
for key, value in pairs (data) do
index = index + 1
local val = tostring (value)
if type (value) == 'string' then val = "'"..val.."'" end
print ("assertTrue (os.date ('!*t', time)."..key.." == "..val..", 'os.date() did not return expected value when passed \"!*t\" ["..index.."]')")
end
end
end
--]]
local time = 915152400
assertTrue (os.date ('%a', time) == 'Fri', 'os.date() did not return expected value when passed "%a" [1]')
assertTrue (os.date ('%A', time) == 'Friday', 'os.date() did not return expected value when passed "%A" [2]')
assertTrue (os.date ('%b', time) == 'Jan', 'os.date() did not return expected value when passed "%b" [3]')
assertTrue (os.date ('%B', time) == 'January', 'os.date() did not return expected value when passed "%B" [4]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [5]')
assertTrue (os.date ('%H', time) == '01', 'os.date() did not return expected value when passed "%H" [6]')
assertTrue (os.date ('%I', time) == '01', 'os.date() did not return expected value when passed "%I" [7]')
assertTrue (os.date ('%j', time) == '001', 'os.date() did not return expected value when passed "%j" [8]')
assertTrue (os.date ('%m', time) == '01', 'os.date() did not return expected value when passed "%m" [9]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [10]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [11]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [12]')
assertTrue (os.date ('%U', time) == '00', 'os.date() did not return expected value when passed "%U" [13]')
assertTrue (os.date ('%w', time) == '5', 'os.date() did not return expected value when passed "%w" [14]')
assertTrue (os.date ('%W', time) == '00', 'os.date() did not return expected value when passed "%W" [15]')
assertTrue (os.date ('%x', time) == '01/01/99', 'os.date() did not return expected value when passed "%x" [16]')
assertTrue (os.date ('%X', time) == '01:00:00', 'os.date() did not return expected value when passed "%X" [17]')
assertTrue (os.date ('%y', time) == '99', 'os.date() did not return expected value when passed "%y" [18]')
assertTrue (os.date ('%Y', time) == '1999', 'os.date() did not return expected value when passed "%Y" [19]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [20]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [21]')
assertTrue (os.date ('!%a', time) == 'Fri', 'os.date() did not return expected value when passed "!%a" [22]')
assertTrue (os.date ('!%A', time) == 'Friday', 'os.date() did not return expected value when passed "!%A" [23]')
assertTrue (os.date ('!%b', time) == 'Jan', 'os.date() did not return expected value when passed "!%b" [24]')
assertTrue (os.date ('!%B', time) == 'January', 'os.date() did not return expected value when passed "!%B" [25]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [26]')
assertTrue (os.date ('!%H', time) == '01', 'os.date() did not return expected value when passed "!%H" [27]')
assertTrue (os.date ('!%I', time) == '01', 'os.date() did not return expected value when passed "!%I" [28]')
assertTrue (os.date ('!%j', time) == '001', 'os.date() did not return expected value when passed "!%j" [29]')
assertTrue (os.date ('!%m', time) == '01', 'os.date() did not return expected value when passed "!%m" [30]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [31]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [32]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [33]')
assertTrue (os.date ('!%U', time) == '00', 'os.date() did not return expected value when passed "!%U" [34]')
assertTrue (os.date ('!%w', time) == '5', 'os.date() did not return expected value when passed "!%w" [35]')
assertTrue (os.date ('!%W', time) == '00', 'os.date() did not return expected value when passed "!%W" [36]')
assertTrue (os.date ('!%x', time) == '01/01/99', 'os.date() did not return expected value when passed "!%x" [37]')
assertTrue (os.date ('!%X', time) == '01:00:00', 'os.date() did not return expected value when passed "!%X" [38]')
assertTrue (os.date ('!%y', time) == '99', 'os.date() did not return expected value when passed "!%y" [39]')
assertTrue (os.date ('!%Y', time) == '1999', 'os.date() did not return expected value when passed "!%Y" [40]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [41]')
assertTrue (os.date ('*t', time).hour == 1, 'os.date() did not return expected value when passed "*t" [42]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [43]')
assertTrue (os.date ('*t', time).wday == 6, 'os.date() did not return expected value when passed "*t" [44]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [45]')
assertTrue (os.date ('*t', time).month == 1, 'os.date() did not return expected value when passed "*t" [46]')
assertTrue (os.date ('*t', time).year == 1999, 'os.date() did not return expected value when passed "*t" [47]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [48]')
assertTrue (os.date ('*t', time).yday == 1, 'os.date() did not return expected value when passed "*t" [49]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [50]')
assertTrue (os.date ('!*t', time).hour == 1, 'os.date() did not return expected value when passed "!*t" [51]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [52]')
assertTrue (os.date ('!*t', time).wday == 6, 'os.date() did not return expected value when passed "!*t" [53]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [54]')
assertTrue (os.date ('!*t', time).month == 1, 'os.date() did not return expected value when passed "!*t" [55]')
assertTrue (os.date ('!*t', time).year == 1999, 'os.date() did not return expected value when passed "!*t" [56]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [57]')
assertTrue (os.date ('!*t', time).yday == 1, 'os.date() did not return expected value when passed "!*t" [58]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [59]')
local time = 917834400
assertTrue (os.date ('%a', time) == 'Mon', 'os.date() did not return expected value when passed "%a" [60]')
assertTrue (os.date ('%A', time) == 'Monday', 'os.date() did not return expected value when passed "%A" [61]')
assertTrue (os.date ('%b', time) == 'Feb', 'os.date() did not return expected value when passed "%b" [62]')
assertTrue (os.date ('%B', time) == 'February', 'os.date() did not return expected value when passed "%B" [63]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [64]')
assertTrue (os.date ('%H', time) == '02', 'os.date() did not return expected value when passed "%H" [65]')
assertTrue (os.date ('%I', time) == '02', 'os.date() did not return expected value when passed "%I" [66]')
assertTrue (os.date ('%j', time) == '032', 'os.date() did not return expected value when passed "%j" [67]')
assertTrue (os.date ('%m', time) == '02', 'os.date() did not return expected value when passed "%m" [68]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [69]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [70]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [71]')
assertTrue (os.date ('%U', time) == '05', 'os.date() did not return expected value when passed "%U" [72]')
assertTrue (os.date ('%w', time) == '1', 'os.date() did not return expected value when passed "%w" [73]')
assertTrue (os.date ('%W', time) == '05', 'os.date() did not return expected value when passed "%W" [74]')
assertTrue (os.date ('%x', time) == '02/01/99', 'os.date() did not return expected value when passed "%x" [75]')
assertTrue (os.date ('%X', time) == '02:00:00', 'os.date() did not return expected value when passed "%X" [76]')
assertTrue (os.date ('%y', time) == '99', 'os.date() did not return expected value when passed "%y" [77]')
assertTrue (os.date ('%Y', time) == '1999', 'os.date() did not return expected value when passed "%Y" [78]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [79]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [80]')
assertTrue (os.date ('!%a', time) == 'Mon', 'os.date() did not return expected value when passed "!%a" [81]')
assertTrue (os.date ('!%A', time) == 'Monday', 'os.date() did not return expected value when passed "!%A" [82]')
assertTrue (os.date ('!%b', time) == 'Feb', 'os.date() did not return expected value when passed "!%b" [83]')
assertTrue (os.date ('!%B', time) == 'February', 'os.date() did not return expected value when passed "!%B" [84]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [85]')
assertTrue (os.date ('!%H', time) == '02', 'os.date() did not return expected value when passed "!%H" [86]')
assertTrue (os.date ('!%I', time) == '02', 'os.date() did not return expected value when passed "!%I" [87]')
assertTrue (os.date ('!%j', time) == '032', 'os.date() did not return expected value when passed "!%j" [88]')
assertTrue (os.date ('!%m', time) == '02', 'os.date() did not return expected value when passed "!%m" [89]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [90]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [91]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [92]')
assertTrue (os.date ('!%U', time) == '05', 'os.date() did not return expected value when passed "!%U" [93]')
assertTrue (os.date ('!%w', time) == '1', 'os.date() did not return expected value when passed "!%w" [94]')
assertTrue (os.date ('!%W', time) == '05', 'os.date() did not return expected value when passed "!%W" [95]')
assertTrue (os.date ('!%x', time) == '02/01/99', 'os.date() did not return expected value when passed "!%x" [96]')
assertTrue (os.date ('!%X', time) == '02:00:00', 'os.date() did not return expected value when passed "!%X" [97]')
assertTrue (os.date ('!%y', time) == '99', 'os.date() did not return expected value when passed "!%y" [98]')
assertTrue (os.date ('!%Y', time) == '1999', 'os.date() did not return expected value when passed "!%Y" [99]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [100]')
assertTrue (os.date ('*t', time).hour == 2, 'os.date() did not return expected value when passed "*t" [101]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [102]')
assertTrue (os.date ('*t', time).wday == 2, 'os.date() did not return expected value when passed "*t" [103]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [104]')
assertTrue (os.date ('*t', time).month == 2, 'os.date() did not return expected value when passed "*t" [105]')
assertTrue (os.date ('*t', time).year == 1999, 'os.date() did not return expected value when passed "*t" [106]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [107]')
assertTrue (os.date ('*t', time).yday == 32, 'os.date() did not return expected value when passed "*t" [108]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [109]')
assertTrue (os.date ('!*t', time).hour == 2, 'os.date() did not return expected value when passed "!*t" [110]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [111]')
assertTrue (os.date ('!*t', time).wday == 2, 'os.date() did not return expected value when passed "!*t" [112]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [113]')
assertTrue (os.date ('!*t', time).month == 2, 'os.date() did not return expected value when passed "!*t" [114]')
assertTrue (os.date ('!*t', time).year == 1999, 'os.date() did not return expected value when passed "!*t" [115]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [116]')
assertTrue (os.date ('!*t', time).yday == 32, 'os.date() did not return expected value when passed "!*t" [117]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [118]')
local time = 920167200
assertTrue (os.date ('%a', time) == 'Sun', 'os.date() did not return expected value when passed "%a" [119]')
assertTrue (os.date ('%A', time) == 'Sunday', 'os.date() did not return expected value when passed "%A" [120]')
assertTrue (os.date ('%b', time) == 'Feb', 'os.date() did not return expected value when passed "%b" [121]')
assertTrue (os.date ('%B', time) == 'February', 'os.date() did not return expected value when passed "%B" [122]')
assertTrue (os.date ('%d', time) == '28', 'os.date() did not return expected value when passed "%d" [123]')
assertTrue (os.date ('%H', time) == '02', 'os.date() did not return expected value when passed "%H" [124]')
assertTrue (os.date ('%I', time) == '02', 'os.date() did not return expected value when passed "%I" [125]')
assertTrue (os.date ('%j', time) == '059', 'os.date() did not return expected value when passed "%j" [126]')
assertTrue (os.date ('%m', time) == '02', 'os.date() did not return expected value when passed "%m" [127]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [128]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [129]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [130]')
assertTrue (os.date ('%U', time) == '09', 'os.date() did not return expected value when passed "%U" [131]')
assertTrue (os.date ('%w', time) == '0', 'os.date() did not return expected value when passed "%w" [132]')
assertTrue (os.date ('%W', time) == '08', 'os.date() did not return expected value when passed "%W" [133]')
assertTrue (os.date ('%x', time) == '02/28/99', 'os.date() did not return expected value when passed "%x" [134]')
assertTrue (os.date ('%X', time) == '02:00:00', 'os.date() did not return expected value when passed "%X" [135]')
assertTrue (os.date ('%y', time) == '99', 'os.date() did not return expected value when passed "%y" [136]')
assertTrue (os.date ('%Y', time) == '1999', 'os.date() did not return expected value when passed "%Y" [137]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [138]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [139]')
assertTrue (os.date ('!%a', time) == 'Sun', 'os.date() did not return expected value when passed "!%a" [140]')
assertTrue (os.date ('!%A', time) == 'Sunday', 'os.date() did not return expected value when passed "!%A" [141]')
assertTrue (os.date ('!%b', time) == 'Feb', 'os.date() did not return expected value when passed "!%b" [142]')
assertTrue (os.date ('!%B', time) == 'February', 'os.date() did not return expected value when passed "!%B" [143]')
assertTrue (os.date ('!%d', time) == '28', 'os.date() did not return expected value when passed "!%d" [144]')
assertTrue (os.date ('!%H', time) == '02', 'os.date() did not return expected value when passed "!%H" [145]')
assertTrue (os.date ('!%I', time) == '02', 'os.date() did not return expected value when passed "!%I" [146]')
assertTrue (os.date ('!%j', time) == '059', 'os.date() did not return expected value when passed "!%j" [147]')
assertTrue (os.date ('!%m', time) == '02', 'os.date() did not return expected value when passed "!%m" [148]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [149]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [150]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [151]')
assertTrue (os.date ('!%U', time) == '09', 'os.date() did not return expected value when passed "!%U" [152]')
assertTrue (os.date ('!%w', time) == '0', 'os.date() did not return expected value when passed "!%w" [153]')
assertTrue (os.date ('!%W', time) == '08', 'os.date() did not return expected value when passed "!%W" [154]')
assertTrue (os.date ('!%x', time) == '02/28/99', 'os.date() did not return expected value when passed "!%x" [155]')
assertTrue (os.date ('!%X', time) == '02:00:00', 'os.date() did not return expected value when passed "!%X" [156]')
assertTrue (os.date ('!%y', time) == '99', 'os.date() did not return expected value when passed "!%y" [157]')
assertTrue (os.date ('!%Y', time) == '1999', 'os.date() did not return expected value when passed "!%Y" [158]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [159]')
assertTrue (os.date ('*t', time).hour == 2, 'os.date() did not return expected value when passed "*t" [160]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [161]')
assertTrue (os.date ('*t', time).wday == 1, 'os.date() did not return expected value when passed "*t" [162]')
assertTrue (os.date ('*t', time).day == 28, 'os.date() did not return expected value when passed "*t" [163]')
assertTrue (os.date ('*t', time).month == 2, 'os.date() did not return expected value when passed "*t" [164]')
assertTrue (os.date ('*t', time).year == 1999, 'os.date() did not return expected value when passed "*t" [165]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [166]')
assertTrue (os.date ('*t', time).yday == 59, 'os.date() did not return expected value when passed "*t" [167]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [168]')
assertTrue (os.date ('!*t', time).hour == 2, 'os.date() did not return expected value when passed "!*t" [169]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [170]')
assertTrue (os.date ('!*t', time).wday == 1, 'os.date() did not return expected value when passed "!*t" [171]')
assertTrue (os.date ('!*t', time).day == 28, 'os.date() did not return expected value when passed "!*t" [172]')
assertTrue (os.date ('!*t', time).month == 2, 'os.date() did not return expected value when passed "!*t" [173]')
assertTrue (os.date ('!*t', time).year == 1999, 'os.date() did not return expected value when passed "!*t" [174]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [175]')
assertTrue (os.date ('!*t', time).yday == 59, 'os.date() did not return expected value when passed "!*t" [176]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [177]')
local time = 920253600
assertTrue (os.date ('%a', time) == 'Mon', 'os.date() did not return expected value when passed "%a" [178]')
assertTrue (os.date ('%A', time) == 'Monday', 'os.date() did not return expected value when passed "%A" [179]')
assertTrue (os.date ('%b', time) == 'Mar', 'os.date() did not return expected value when passed "%b" [180]')
assertTrue (os.date ('%B', time) == 'March', 'os.date() did not return expected value when passed "%B" [181]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [182]')
assertTrue (os.date ('%H', time) == '02', 'os.date() did not return expected value when passed "%H" [183]')
assertTrue (os.date ('%I', time) == '02', 'os.date() did not return expected value when passed "%I" [184]')
assertTrue (os.date ('%j', time) == '060', 'os.date() did not return expected value when passed "%j" [185]')
assertTrue (os.date ('%m', time) == '03', 'os.date() did not return expected value when passed "%m" [186]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [187]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [188]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [189]')
assertTrue (os.date ('%U', time) == '09', 'os.date() did not return expected value when passed "%U" [190]')
assertTrue (os.date ('%w', time) == '1', 'os.date() did not return expected value when passed "%w" [191]')
assertTrue (os.date ('%W', time) == '09', 'os.date() did not return expected value when passed "%W" [192]')
assertTrue (os.date ('%x', time) == '03/01/99', 'os.date() did not return expected value when passed "%x" [193]')
assertTrue (os.date ('%X', time) == '02:00:00', 'os.date() did not return expected value when passed "%X" [194]')
assertTrue (os.date ('%y', time) == '99', 'os.date() did not return expected value when passed "%y" [195]')
assertTrue (os.date ('%Y', time) == '1999', 'os.date() did not return expected value when passed "%Y" [196]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [197]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [198]')
assertTrue (os.date ('!%a', time) == 'Mon', 'os.date() did not return expected value when passed "!%a" [199]')
assertTrue (os.date ('!%A', time) == 'Monday', 'os.date() did not return expected value when passed "!%A" [200]')
assertTrue (os.date ('!%b', time) == 'Mar', 'os.date() did not return expected value when passed "!%b" [201]')
assertTrue (os.date ('!%B', time) == 'March', 'os.date() did not return expected value when passed "!%B" [202]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [203]')
assertTrue (os.date ('!%H', time) == '02', 'os.date() did not return expected value when passed "!%H" [204]')
assertTrue (os.date ('!%I', time) == '02', 'os.date() did not return expected value when passed "!%I" [205]')
assertTrue (os.date ('!%j', time) == '060', 'os.date() did not return expected value when passed "!%j" [206]')
assertTrue (os.date ('!%m', time) == '03', 'os.date() did not return expected value when passed "!%m" [207]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [208]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [209]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [210]')
assertTrue (os.date ('!%U', time) == '09', 'os.date() did not return expected value when passed "!%U" [211]')
assertTrue (os.date ('!%w', time) == '1', 'os.date() did not return expected value when passed "!%w" [212]')
assertTrue (os.date ('!%W', time) == '09', 'os.date() did not return expected value when passed "!%W" [213]')
assertTrue (os.date ('!%x', time) == '03/01/99', 'os.date() did not return expected value when passed "!%x" [214]')
assertTrue (os.date ('!%X', time) == '02:00:00', 'os.date() did not return expected value when passed "!%X" [215]')
assertTrue (os.date ('!%y', time) == '99', 'os.date() did not return expected value when passed "!%y" [216]')
assertTrue (os.date ('!%Y', time) == '1999', 'os.date() did not return expected value when passed "!%Y" [217]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [218]')
assertTrue (os.date ('*t', time).hour == 2, 'os.date() did not return expected value when passed "*t" [219]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [220]')
assertTrue (os.date ('*t', time).wday == 2, 'os.date() did not return expected value when passed "*t" [221]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [222]')
assertTrue (os.date ('*t', time).month == 3, 'os.date() did not return expected value when passed "*t" [223]')
assertTrue (os.date ('*t', time).year == 1999, 'os.date() did not return expected value when passed "*t" [224]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [225]')
assertTrue (os.date ('*t', time).yday == 60, 'os.date() did not return expected value when passed "*t" [226]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [227]')
assertTrue (os.date ('!*t', time).hour == 2, 'os.date() did not return expected value when passed "!*t" [228]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [229]')
assertTrue (os.date ('!*t', time).wday == 2, 'os.date() did not return expected value when passed "!*t" [230]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [231]')
assertTrue (os.date ('!*t', time).month == 3, 'os.date() did not return expected value when passed "!*t" [232]')
assertTrue (os.date ('!*t', time).year == 1999, 'os.date() did not return expected value when passed "!*t" [233]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [234]')
assertTrue (os.date ('!*t', time).yday == 60, 'os.date() did not return expected value when passed "!*t" [235]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [236]')
local time = 920257200
assertTrue (os.date ('%a', time) == 'Mon', 'os.date() did not return expected value when passed "%a" [237]')
assertTrue (os.date ('%A', time) == 'Monday', 'os.date() did not return expected value when passed "%A" [238]')
assertTrue (os.date ('%b', time) == 'Mar', 'os.date() did not return expected value when passed "%b" [239]')
assertTrue (os.date ('%B', time) == 'March', 'os.date() did not return expected value when passed "%B" [240]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [241]')
assertTrue (os.date ('%H', time) == '03', 'os.date() did not return expected value when passed "%H" [242]')
assertTrue (os.date ('%I', time) == '03', 'os.date() did not return expected value when passed "%I" [243]')
assertTrue (os.date ('%j', time) == '060', 'os.date() did not return expected value when passed "%j" [244]')
assertTrue (os.date ('%m', time) == '03', 'os.date() did not return expected value when passed "%m" [245]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [246]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [247]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [248]')
assertTrue (os.date ('%U', time) == '09', 'os.date() did not return expected value when passed "%U" [249]')
assertTrue (os.date ('%w', time) == '1', 'os.date() did not return expected value when passed "%w" [250]')
assertTrue (os.date ('%W', time) == '09', 'os.date() did not return expected value when passed "%W" [251]')
assertTrue (os.date ('%x', time) == '03/01/99', 'os.date() did not return expected value when passed "%x" [252]')
assertTrue (os.date ('%X', time) == '03:00:00', 'os.date() did not return expected value when passed "%X" [253]')
assertTrue (os.date ('%y', time) == '99', 'os.date() did not return expected value when passed "%y" [254]')
assertTrue (os.date ('%Y', time) == '1999', 'os.date() did not return expected value when passed "%Y" [255]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [256]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [257]')
assertTrue (os.date ('!%a', time) == 'Mon', 'os.date() did not return expected value when passed "!%a" [258]')
assertTrue (os.date ('!%A', time) == 'Monday', 'os.date() did not return expected value when passed "!%A" [259]')
assertTrue (os.date ('!%b', time) == 'Mar', 'os.date() did not return expected value when passed "!%b" [260]')
assertTrue (os.date ('!%B', time) == 'March', 'os.date() did not return expected value when passed "!%B" [261]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [262]')
assertTrue (os.date ('!%H', time) == '03', 'os.date() did not return expected value when passed "!%H" [263]')
assertTrue (os.date ('!%I', time) == '03', 'os.date() did not return expected value when passed "!%I" [264]')
assertTrue (os.date ('!%j', time) == '060', 'os.date() did not return expected value when passed "!%j" [265]')
assertTrue (os.date ('!%m', time) == '03', 'os.date() did not return expected value when passed "!%m" [266]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [267]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [268]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [269]')
assertTrue (os.date ('!%U', time) == '09', 'os.date() did not return expected value when passed "!%U" [270]')
assertTrue (os.date ('!%w', time) == '1', 'os.date() did not return expected value when passed "!%w" [271]')
assertTrue (os.date ('!%W', time) == '09', 'os.date() did not return expected value when passed "!%W" [272]')
assertTrue (os.date ('!%x', time) == '03/01/99', 'os.date() did not return expected value when passed "!%x" [273]')
assertTrue (os.date ('!%X', time) == '03:00:00', 'os.date() did not return expected value when passed "!%X" [274]')
assertTrue (os.date ('!%y', time) == '99', 'os.date() did not return expected value when passed "!%y" [275]')
assertTrue (os.date ('!%Y', time) == '1999', 'os.date() did not return expected value when passed "!%Y" [276]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [277]')
assertTrue (os.date ('*t', time).hour == 3, 'os.date() did not return expected value when passed "*t" [278]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [279]')
assertTrue (os.date ('*t', time).wday == 2, 'os.date() did not return expected value when passed "*t" [280]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [281]')
assertTrue (os.date ('*t', time).month == 3, 'os.date() did not return expected value when passed "*t" [282]')
assertTrue (os.date ('*t', time).year == 1999, 'os.date() did not return expected value when passed "*t" [283]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [284]')
assertTrue (os.date ('*t', time).yday == 60, 'os.date() did not return expected value when passed "*t" [285]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [286]')
assertTrue (os.date ('!*t', time).hour == 3, 'os.date() did not return expected value when passed "!*t" [287]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [288]')
assertTrue (os.date ('!*t', time).wday == 2, 'os.date() did not return expected value when passed "!*t" [289]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [290]')
assertTrue (os.date ('!*t', time).month == 3, 'os.date() did not return expected value when passed "!*t" [291]')
assertTrue (os.date ('!*t', time).year == 1999, 'os.date() did not return expected value when passed "!*t" [292]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [293]')
assertTrue (os.date ('!*t', time).yday == 60, 'os.date() did not return expected value when passed "!*t" [294]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [295]')
local time = 946641600
assertTrue (os.date ('%a', time) == 'Fri', 'os.date() did not return expected value when passed "%a" [296]')
assertTrue (os.date ('%A', time) == 'Friday', 'os.date() did not return expected value when passed "%A" [297]')
assertTrue (os.date ('%b', time) == 'Dec', 'os.date() did not return expected value when passed "%b" [298]')
assertTrue (os.date ('%B', time) == 'December', 'os.date() did not return expected value when passed "%B" [299]')
assertTrue (os.date ('%d', time) == '31', 'os.date() did not return expected value when passed "%d" [300]')
assertTrue (os.date ('%H', time) == '12', 'os.date() did not return expected value when passed "%H" [301]')
assertTrue (os.date ('%I', time) == '12', 'os.date() did not return expected value when passed "%I" [302]')
assertTrue (os.date ('%j', time) == '365', 'os.date() did not return expected value when passed "%j" [303]')
assertTrue (os.date ('%m', time) == '12', 'os.date() did not return expected value when passed "%m" [304]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [305]')
assertTrue (os.date ('%p', time) == 'PM', 'os.date() did not return expected value when passed "%p" [306]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [307]')
assertTrue (os.date ('%U', time) == '52', 'os.date() did not return expected value when passed "%U" [308]')
assertTrue (os.date ('%w', time) == '5', 'os.date() did not return expected value when passed "%w" [309]')
assertTrue (os.date ('%W', time) == '52', 'os.date() did not return expected value when passed "%W" [310]')
assertTrue (os.date ('%x', time) == '12/31/99', 'os.date() did not return expected value when passed "%x" [311]')
assertTrue (os.date ('%X', time) == '12:00:00', 'os.date() did not return expected value when passed "%X" [312]')
assertTrue (os.date ('%y', time) == '99', 'os.date() did not return expected value when passed "%y" [313]')
assertTrue (os.date ('%Y', time) == '1999', 'os.date() did not return expected value when passed "%Y" [314]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [315]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [316]')
assertTrue (os.date ('!%a', time) == 'Fri', 'os.date() did not return expected value when passed "!%a" [317]')
assertTrue (os.date ('!%A', time) == 'Friday', 'os.date() did not return expected value when passed "!%A" [318]')
assertTrue (os.date ('!%b', time) == 'Dec', 'os.date() did not return expected value when passed "!%b" [319]')
assertTrue (os.date ('!%B', time) == 'December', 'os.date() did not return expected value when passed "!%B" [320]')
assertTrue (os.date ('!%d', time) == '31', 'os.date() did not return expected value when passed "!%d" [321]')
assertTrue (os.date ('!%H', time) == '12', 'os.date() did not return expected value when passed "!%H" [322]')
assertTrue (os.date ('!%I', time) == '12', 'os.date() did not return expected value when passed "!%I" [323]')
assertTrue (os.date ('!%j', time) == '365', 'os.date() did not return expected value when passed "!%j" [324]')
assertTrue (os.date ('!%m', time) == '12', 'os.date() did not return expected value when passed "!%m" [325]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [326]')
assertTrue (os.date ('!%p', time) == 'PM', 'os.date() did not return expected value when passed "!%p" [327]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [328]')
assertTrue (os.date ('!%U', time) == '52', 'os.date() did not return expected value when passed "!%U" [329]')
assertTrue (os.date ('!%w', time) == '5', 'os.date() did not return expected value when passed "!%w" [330]')
assertTrue (os.date ('!%W', time) == '52', 'os.date() did not return expected value when passed "!%W" [331]')
assertTrue (os.date ('!%x', time) == '12/31/99', 'os.date() did not return expected value when passed "!%x" [332]')
assertTrue (os.date ('!%X', time) == '12:00:00', 'os.date() did not return expected value when passed "!%X" [333]')
assertTrue (os.date ('!%y', time) == '99', 'os.date() did not return expected value when passed "!%y" [334]')
assertTrue (os.date ('!%Y', time) == '1999', 'os.date() did not return expected value when passed "!%Y" [335]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [336]')
assertTrue (os.date ('*t', time).hour == 12, 'os.date() did not return expected value when passed "*t" [337]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [338]')
assertTrue (os.date ('*t', time).wday == 6, 'os.date() did not return expected value when passed "*t" [339]')
assertTrue (os.date ('*t', time).day == 31, 'os.date() did not return expected value when passed "*t" [340]')
assertTrue (os.date ('*t', time).month == 12, 'os.date() did not return expected value when passed "*t" [341]')
assertTrue (os.date ('*t', time).year == 1999, 'os.date() did not return expected value when passed "*t" [342]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [343]')
assertTrue (os.date ('*t', time).yday == 365, 'os.date() did not return expected value when passed "*t" [344]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [345]')
assertTrue (os.date ('!*t', time).hour == 12, 'os.date() did not return expected value when passed "!*t" [346]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [347]')
assertTrue (os.date ('!*t', time).wday == 6, 'os.date() did not return expected value when passed "!*t" [348]')
assertTrue (os.date ('!*t', time).day == 31, 'os.date() did not return expected value when passed "!*t" [349]')
assertTrue (os.date ('!*t', time).month == 12, 'os.date() did not return expected value when passed "!*t" [350]')
assertTrue (os.date ('!*t', time).year == 1999, 'os.date() did not return expected value when passed "!*t" [351]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [352]')
assertTrue (os.date ('!*t', time).yday == 365, 'os.date() did not return expected value when passed "!*t" [353]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [354]')
local time = 946688400
assertTrue (os.date ('%a', time) == 'Sat', 'os.date() did not return expected value when passed "%a" [355]')
assertTrue (os.date ('%A', time) == 'Saturday', 'os.date() did not return expected value when passed "%A" [356]')
assertTrue (os.date ('%b', time) == 'Jan', 'os.date() did not return expected value when passed "%b" [357]')
assertTrue (os.date ('%B', time) == 'January', 'os.date() did not return expected value when passed "%B" [358]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [359]')
assertTrue (os.date ('%H', time) == '01', 'os.date() did not return expected value when passed "%H" [360]')
assertTrue (os.date ('%I', time) == '01', 'os.date() did not return expected value when passed "%I" [361]')
assertTrue (os.date ('%j', time) == '001', 'os.date() did not return expected value when passed "%j" [362]')
assertTrue (os.date ('%m', time) == '01', 'os.date() did not return expected value when passed "%m" [363]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [364]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [365]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [366]')
assertTrue (os.date ('%U', time) == '00', 'os.date() did not return expected value when passed "%U" [367]')
assertTrue (os.date ('%w', time) == '6', 'os.date() did not return expected value when passed "%w" [368]')
assertTrue (os.date ('%W', time) == '00', 'os.date() did not return expected value when passed "%W" [369]')
assertTrue (os.date ('%x', time) == '01/01/00', 'os.date() did not return expected value when passed "%x" [370]')
assertTrue (os.date ('%X', time) == '01:00:00', 'os.date() did not return expected value when passed "%X" [371]')
assertTrue (os.date ('%y', time) == '00', 'os.date() did not return expected value when passed "%y" [372]')
assertTrue (os.date ('%Y', time) == '2000', 'os.date() did not return expected value when passed "%Y" [373]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [374]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [375]')
assertTrue (os.date ('!%a', time) == 'Sat', 'os.date() did not return expected value when passed "!%a" [376]')
assertTrue (os.date ('!%A', time) == 'Saturday', 'os.date() did not return expected value when passed "!%A" [377]')
assertTrue (os.date ('!%b', time) == 'Jan', 'os.date() did not return expected value when passed "!%b" [378]')
assertTrue (os.date ('!%B', time) == 'January', 'os.date() did not return expected value when passed "!%B" [379]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [380]')
assertTrue (os.date ('!%H', time) == '01', 'os.date() did not return expected value when passed "!%H" [381]')
assertTrue (os.date ('!%I', time) == '01', 'os.date() did not return expected value when passed "!%I" [382]')
assertTrue (os.date ('!%j', time) == '001', 'os.date() did not return expected value when passed "!%j" [383]')
assertTrue (os.date ('!%m', time) == '01', 'os.date() did not return expected value when passed "!%m" [384]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [385]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [386]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [387]')
assertTrue (os.date ('!%U', time) == '00', 'os.date() did not return expected value when passed "!%U" [388]')
assertTrue (os.date ('!%w', time) == '6', 'os.date() did not return expected value when passed "!%w" [389]')
assertTrue (os.date ('!%W', time) == '00', 'os.date() did not return expected value when passed "!%W" [390]')
assertTrue (os.date ('!%x', time) == '01/01/00', 'os.date() did not return expected value when passed "!%x" [391]')
assertTrue (os.date ('!%X', time) == '01:00:00', 'os.date() did not return expected value when passed "!%X" [392]')
assertTrue (os.date ('!%y', time) == '00', 'os.date() did not return expected value when passed "!%y" [393]')
assertTrue (os.date ('!%Y', time) == '2000', 'os.date() did not return expected value when passed "!%Y" [394]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [395]')
assertTrue (os.date ('*t', time).hour == 1, 'os.date() did not return expected value when passed "*t" [396]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [397]')
assertTrue (os.date ('*t', time).wday == 7, 'os.date() did not return expected value when passed "*t" [398]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [399]')
assertTrue (os.date ('*t', time).month == 1, 'os.date() did not return expected value when passed "*t" [400]')
assertTrue (os.date ('*t', time).year == 2000, 'os.date() did not return expected value when passed "*t" [401]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [402]')
assertTrue (os.date ('*t', time).yday == 1, 'os.date() did not return expected value when passed "*t" [403]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [404]')
assertTrue (os.date ('!*t', time).hour == 1, 'os.date() did not return expected value when passed "!*t" [405]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [406]')
assertTrue (os.date ('!*t', time).wday == 7, 'os.date() did not return expected value when passed "!*t" [407]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [408]')
assertTrue (os.date ('!*t', time).month == 1, 'os.date() did not return expected value when passed "!*t" [409]')
assertTrue (os.date ('!*t', time).year == 2000, 'os.date() did not return expected value when passed "!*t" [410]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [411]')
assertTrue (os.date ('!*t', time).yday == 1, 'os.date() did not return expected value when passed "!*t" [412]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [413]')
local time = 949370400
assertTrue (os.date ('%a', time) == 'Tue', 'os.date() did not return expected value when passed "%a" [414]')
assertTrue (os.date ('%A', time) == 'Tuesday', 'os.date() did not return expected value when passed "%A" [415]')
assertTrue (os.date ('%b', time) == 'Feb', 'os.date() did not return expected value when passed "%b" [416]')
assertTrue (os.date ('%B', time) == 'February', 'os.date() did not return expected value when passed "%B" [417]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [418]')
assertTrue (os.date ('%H', time) == '02', 'os.date() did not return expected value when passed "%H" [419]')
assertTrue (os.date ('%I', time) == '02', 'os.date() did not return expected value when passed "%I" [420]')
assertTrue (os.date ('%j', time) == '032', 'os.date() did not return expected value when passed "%j" [421]')
assertTrue (os.date ('%m', time) == '02', 'os.date() did not return expected value when passed "%m" [422]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [423]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [424]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [425]')
assertTrue (os.date ('%U', time) == '05', 'os.date() did not return expected value when passed "%U" [426]')
assertTrue (os.date ('%w', time) == '2', 'os.date() did not return expected value when passed "%w" [427]')
assertTrue (os.date ('%W', time) == '05', 'os.date() did not return expected value when passed "%W" [428]')
assertTrue (os.date ('%x', time) == '02/01/00', 'os.date() did not return expected value when passed "%x" [429]')
assertTrue (os.date ('%X', time) == '02:00:00', 'os.date() did not return expected value when passed "%X" [430]')
assertTrue (os.date ('%y', time) == '00', 'os.date() did not return expected value when passed "%y" [431]')
assertTrue (os.date ('%Y', time) == '2000', 'os.date() did not return expected value when passed "%Y" [432]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [433]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [434]')
assertTrue (os.date ('!%a', time) == 'Tue', 'os.date() did not return expected value when passed "!%a" [435]')
assertTrue (os.date ('!%A', time) == 'Tuesday', 'os.date() did not return expected value when passed "!%A" [436]')
assertTrue (os.date ('!%b', time) == 'Feb', 'os.date() did not return expected value when passed "!%b" [437]')
assertTrue (os.date ('!%B', time) == 'February', 'os.date() did not return expected value when passed "!%B" [438]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [439]')
assertTrue (os.date ('!%H', time) == '02', 'os.date() did not return expected value when passed "!%H" [440]')
assertTrue (os.date ('!%I', time) == '02', 'os.date() did not return expected value when passed "!%I" [441]')
assertTrue (os.date ('!%j', time) == '032', 'os.date() did not return expected value when passed "!%j" [442]')
assertTrue (os.date ('!%m', time) == '02', 'os.date() did not return expected value when passed "!%m" [443]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [444]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [445]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [446]')
assertTrue (os.date ('!%U', time) == '05', 'os.date() did not return expected value when passed "!%U" [447]')
assertTrue (os.date ('!%w', time) == '2', 'os.date() did not return expected value when passed "!%w" [448]')
assertTrue (os.date ('!%W', time) == '05', 'os.date() did not return expected value when passed "!%W" [449]')
assertTrue (os.date ('!%x', time) == '02/01/00', 'os.date() did not return expected value when passed "!%x" [450]')
assertTrue (os.date ('!%X', time) == '02:00:00', 'os.date() did not return expected value when passed "!%X" [451]')
assertTrue (os.date ('!%y', time) == '00', 'os.date() did not return expected value when passed "!%y" [452]')
assertTrue (os.date ('!%Y', time) == '2000', 'os.date() did not return expected value when passed "!%Y" [453]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [454]')
assertTrue (os.date ('*t', time).hour == 2, 'os.date() did not return expected value when passed "*t" [455]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [456]')
assertTrue (os.date ('*t', time).wday == 3, 'os.date() did not return expected value when passed "*t" [457]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [458]')
assertTrue (os.date ('*t', time).month == 2, 'os.date() did not return expected value when passed "*t" [459]')
assertTrue (os.date ('*t', time).year == 2000, 'os.date() did not return expected value when passed "*t" [460]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [461]')
assertTrue (os.date ('*t', time).yday == 32, 'os.date() did not return expected value when passed "*t" [462]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [463]')
assertTrue (os.date ('!*t', time).hour == 2, 'os.date() did not return expected value when passed "!*t" [464]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [465]')
assertTrue (os.date ('!*t', time).wday == 3, 'os.date() did not return expected value when passed "!*t" [466]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [467]')
assertTrue (os.date ('!*t', time).month == 2, 'os.date() did not return expected value when passed "!*t" [468]')
assertTrue (os.date ('!*t', time).year == 2000, 'os.date() did not return expected value when passed "!*t" [469]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [470]')
assertTrue (os.date ('!*t', time).yday == 32, 'os.date() did not return expected value when passed "!*t" [471]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [472]')
local time = 951703200
assertTrue (os.date ('%a', time) == 'Mon', 'os.date() did not return expected value when passed "%a" [473]')
assertTrue (os.date ('%A', time) == 'Monday', 'os.date() did not return expected value when passed "%A" [474]')
assertTrue (os.date ('%b', time) == 'Feb', 'os.date() did not return expected value when passed "%b" [475]')
assertTrue (os.date ('%B', time) == 'February', 'os.date() did not return expected value when passed "%B" [476]')
assertTrue (os.date ('%d', time) == '28', 'os.date() did not return expected value when passed "%d" [477]')
assertTrue (os.date ('%H', time) == '02', 'os.date() did not return expected value when passed "%H" [478]')
assertTrue (os.date ('%I', time) == '02', 'os.date() did not return expected value when passed "%I" [479]')
assertTrue (os.date ('%j', time) == '059', 'os.date() did not return expected value when passed "%j" [480]')
assertTrue (os.date ('%m', time) == '02', 'os.date() did not return expected value when passed "%m" [481]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [482]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [483]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [484]')
assertTrue (os.date ('%U', time) == '09', 'os.date() did not return expected value when passed "%U" [485]')
assertTrue (os.date ('%w', time) == '1', 'os.date() did not return expected value when passed "%w" [486]')
assertTrue (os.date ('%W', time) == '09', 'os.date() did not return expected value when passed "%W" [487]')
assertTrue (os.date ('%x', time) == '02/28/00', 'os.date() did not return expected value when passed "%x" [488]')
assertTrue (os.date ('%X', time) == '02:00:00', 'os.date() did not return expected value when passed "%X" [489]')
assertTrue (os.date ('%y', time) == '00', 'os.date() did not return expected value when passed "%y" [490]')
assertTrue (os.date ('%Y', time) == '2000', 'os.date() did not return expected value when passed "%Y" [491]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [492]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [493]')
assertTrue (os.date ('!%a', time) == 'Mon', 'os.date() did not return expected value when passed "!%a" [494]')
assertTrue (os.date ('!%A', time) == 'Monday', 'os.date() did not return expected value when passed "!%A" [495]')
assertTrue (os.date ('!%b', time) == 'Feb', 'os.date() did not return expected value when passed "!%b" [496]')
assertTrue (os.date ('!%B', time) == 'February', 'os.date() did not return expected value when passed "!%B" [497]')
assertTrue (os.date ('!%d', time) == '28', 'os.date() did not return expected value when passed "!%d" [498]')
assertTrue (os.date ('!%H', time) == '02', 'os.date() did not return expected value when passed "!%H" [499]')
assertTrue (os.date ('!%I', time) == '02', 'os.date() did not return expected value when passed "!%I" [500]')
assertTrue (os.date ('!%j', time) == '059', 'os.date() did not return expected value when passed "!%j" [501]')
assertTrue (os.date ('!%m', time) == '02', 'os.date() did not return expected value when passed "!%m" [502]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [503]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [504]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [505]')
assertTrue (os.date ('!%U', time) == '09', 'os.date() did not return expected value when passed "!%U" [506]')
assertTrue (os.date ('!%w', time) == '1', 'os.date() did not return expected value when passed "!%w" [507]')
assertTrue (os.date ('!%W', time) == '09', 'os.date() did not return expected value when passed "!%W" [508]')
assertTrue (os.date ('!%x', time) == '02/28/00', 'os.date() did not return expected value when passed "!%x" [509]')
assertTrue (os.date ('!%X', time) == '02:00:00', 'os.date() did not return expected value when passed "!%X" [510]')
assertTrue (os.date ('!%y', time) == '00', 'os.date() did not return expected value when passed "!%y" [511]')
assertTrue (os.date ('!%Y', time) == '2000', 'os.date() did not return expected value when passed "!%Y" [512]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [513]')
assertTrue (os.date ('*t', time).hour == 2, 'os.date() did not return expected value when passed "*t" [514]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [515]')
assertTrue (os.date ('*t', time).wday == 2, 'os.date() did not return expected value when passed "*t" [516]')
assertTrue (os.date ('*t', time).day == 28, 'os.date() did not return expected value when passed "*t" [517]')
assertTrue (os.date ('*t', time).month == 2, 'os.date() did not return expected value when passed "*t" [518]')
assertTrue (os.date ('*t', time).year == 2000, 'os.date() did not return expected value when passed "*t" [519]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [520]')
assertTrue (os.date ('*t', time).yday == 59, 'os.date() did not return expected value when passed "*t" [521]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [522]')
assertTrue (os.date ('!*t', time).hour == 2, 'os.date() did not return expected value when passed "!*t" [523]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [524]')
assertTrue (os.date ('!*t', time).wday == 2, 'os.date() did not return expected value when passed "!*t" [525]')
assertTrue (os.date ('!*t', time).day == 28, 'os.date() did not return expected value when passed "!*t" [526]')
assertTrue (os.date ('!*t', time).month == 2, 'os.date() did not return expected value when passed "!*t" [527]')
assertTrue (os.date ('!*t', time).year == 2000, 'os.date() did not return expected value when passed "!*t" [528]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [529]')
assertTrue (os.date ('!*t', time).yday == 59, 'os.date() did not return expected value when passed "!*t" [530]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [531]')
local time = 951789600
assertTrue (os.date ('%a', time) == 'Tue', 'os.date() did not return expected value when passed "%a" [532]')
assertTrue (os.date ('%A', time) == 'Tuesday', 'os.date() did not return expected value when passed "%A" [533]')
assertTrue (os.date ('%b', time) == 'Feb', 'os.date() did not return expected value when passed "%b" [534]')
assertTrue (os.date ('%B', time) == 'February', 'os.date() did not return expected value when passed "%B" [535]')
assertTrue (os.date ('%d', time) == '29', 'os.date() did not return expected value when passed "%d" [536]')
assertTrue (os.date ('%H', time) == '02', 'os.date() did not return expected value when passed "%H" [537]')
assertTrue (os.date ('%I', time) == '02', 'os.date() did not return expected value when passed "%I" [538]')
assertTrue (os.date ('%j', time) == '060', 'os.date() did not return expected value when passed "%j" [539]')
assertTrue (os.date ('%m', time) == '02', 'os.date() did not return expected value when passed "%m" [540]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [541]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [542]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [543]')
assertTrue (os.date ('%U', time) == '09', 'os.date() did not return expected value when passed "%U" [544]')
assertTrue (os.date ('%w', time) == '2', 'os.date() did not return expected value when passed "%w" [545]')
assertTrue (os.date ('%W', time) == '09', 'os.date() did not return expected value when passed "%W" [546]')
assertTrue (os.date ('%x', time) == '02/29/00', 'os.date() did not return expected value when passed "%x" [547]')
assertTrue (os.date ('%X', time) == '02:00:00', 'os.date() did not return expected value when passed "%X" [548]')
assertTrue (os.date ('%y', time) == '00', 'os.date() did not return expected value when passed "%y" [549]')
assertTrue (os.date ('%Y', time) == '2000', 'os.date() did not return expected value when passed "%Y" [550]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [551]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [552]')
assertTrue (os.date ('!%a', time) == 'Tue', 'os.date() did not return expected value when passed "!%a" [553]')
assertTrue (os.date ('!%A', time) == 'Tuesday', 'os.date() did not return expected value when passed "!%A" [554]')
assertTrue (os.date ('!%b', time) == 'Feb', 'os.date() did not return expected value when passed "!%b" [555]')
assertTrue (os.date ('!%B', time) == 'February', 'os.date() did not return expected value when passed "!%B" [556]')
assertTrue (os.date ('!%d', time) == '29', 'os.date() did not return expected value when passed "!%d" [557]')
assertTrue (os.date ('!%H', time) == '02', 'os.date() did not return expected value when passed "!%H" [558]')
assertTrue (os.date ('!%I', time) == '02', 'os.date() did not return expected value when passed "!%I" [559]')
assertTrue (os.date ('!%j', time) == '060', 'os.date() did not return expected value when passed "!%j" [560]')
assertTrue (os.date ('!%m', time) == '02', 'os.date() did not return expected value when passed "!%m" [561]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [562]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [563]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [564]')
assertTrue (os.date ('!%U', time) == '09', 'os.date() did not return expected value when passed "!%U" [565]')
assertTrue (os.date ('!%w', time) == '2', 'os.date() did not return expected value when passed "!%w" [566]')
assertTrue (os.date ('!%W', time) == '09', 'os.date() did not return expected value when passed "!%W" [567]')
assertTrue (os.date ('!%x', time) == '02/29/00', 'os.date() did not return expected value when passed "!%x" [568]')
assertTrue (os.date ('!%X', time) == '02:00:00', 'os.date() did not return expected value when passed "!%X" [569]')
assertTrue (os.date ('!%y', time) == '00', 'os.date() did not return expected value when passed "!%y" [570]')
assertTrue (os.date ('!%Y', time) == '2000', 'os.date() did not return expected value when passed "!%Y" [571]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [572]')
assertTrue (os.date ('*t', time).hour == 2, 'os.date() did not return expected value when passed "*t" [573]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [574]')
assertTrue (os.date ('*t', time).wday == 3, 'os.date() did not return expected value when passed "*t" [575]')
assertTrue (os.date ('*t', time).day == 29, 'os.date() did not return expected value when passed "*t" [576]')
assertTrue (os.date ('*t', time).month == 2, 'os.date() did not return expected value when passed "*t" [577]')
assertTrue (os.date ('*t', time).year == 2000, 'os.date() did not return expected value when passed "*t" [578]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [579]')
assertTrue (os.date ('*t', time).yday == 60, 'os.date() did not return expected value when passed "*t" [580]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [581]')
assertTrue (os.date ('!*t', time).hour == 2, 'os.date() did not return expected value when passed "!*t" [582]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [583]')
assertTrue (os.date ('!*t', time).wday == 3, 'os.date() did not return expected value when passed "!*t" [584]')
assertTrue (os.date ('!*t', time).day == 29, 'os.date() did not return expected value when passed "!*t" [585]')
assertTrue (os.date ('!*t', time).month == 2, 'os.date() did not return expected value when passed "!*t" [586]')
assertTrue (os.date ('!*t', time).year == 2000, 'os.date() did not return expected value when passed "!*t" [587]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [588]')
assertTrue (os.date ('!*t', time).yday == 60, 'os.date() did not return expected value when passed "!*t" [589]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [590]')
local time = 951879600
assertTrue (os.date ('%a', time) == 'Wed', 'os.date() did not return expected value when passed "%a" [591]')
assertTrue (os.date ('%A', time) == 'Wednesday', 'os.date() did not return expected value when passed "%A" [592]')
assertTrue (os.date ('%b', time) == 'Mar', 'os.date() did not return expected value when passed "%b" [593]')
assertTrue (os.date ('%B', time) == 'March', 'os.date() did not return expected value when passed "%B" [594]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [595]')
assertTrue (os.date ('%H', time) == '03', 'os.date() did not return expected value when passed "%H" [596]')
assertTrue (os.date ('%I', time) == '03', 'os.date() did not return expected value when passed "%I" [597]')
assertTrue (os.date ('%j', time) == '061', 'os.date() did not return expected value when passed "%j" [598]')
assertTrue (os.date ('%m', time) == '03', 'os.date() did not return expected value when passed "%m" [599]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [600]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [601]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [602]')
assertTrue (os.date ('%U', time) == '09', 'os.date() did not return expected value when passed "%U" [603]')
assertTrue (os.date ('%w', time) == '3', 'os.date() did not return expected value when passed "%w" [604]')
assertTrue (os.date ('%W', time) == '09', 'os.date() did not return expected value when passed "%W" [605]')
assertTrue (os.date ('%x', time) == '03/01/00', 'os.date() did not return expected value when passed "%x" [606]')
assertTrue (os.date ('%X', time) == '03:00:00', 'os.date() did not return expected value when passed "%X" [607]')
assertTrue (os.date ('%y', time) == '00', 'os.date() did not return expected value when passed "%y" [608]')
assertTrue (os.date ('%Y', time) == '2000', 'os.date() did not return expected value when passed "%Y" [609]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [610]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [611]')
assertTrue (os.date ('!%a', time) == 'Wed', 'os.date() did not return expected value when passed "!%a" [612]')
assertTrue (os.date ('!%A', time) == 'Wednesday', 'os.date() did not return expected value when passed "!%A" [613]')
assertTrue (os.date ('!%b', time) == 'Mar', 'os.date() did not return expected value when passed "!%b" [614]')
assertTrue (os.date ('!%B', time) == 'March', 'os.date() did not return expected value when passed "!%B" [615]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [616]')
assertTrue (os.date ('!%H', time) == '03', 'os.date() did not return expected value when passed "!%H" [617]')
assertTrue (os.date ('!%I', time) == '03', 'os.date() did not return expected value when passed "!%I" [618]')
assertTrue (os.date ('!%j', time) == '061', 'os.date() did not return expected value when passed "!%j" [619]')
assertTrue (os.date ('!%m', time) == '03', 'os.date() did not return expected value when passed "!%m" [620]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [621]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [622]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [623]')
assertTrue (os.date ('!%U', time) == '09', 'os.date() did not return expected value when passed "!%U" [624]')
assertTrue (os.date ('!%w', time) == '3', 'os.date() did not return expected value when passed "!%w" [625]')
assertTrue (os.date ('!%W', time) == '09', 'os.date() did not return expected value when passed "!%W" [626]')
assertTrue (os.date ('!%x', time) == '03/01/00', 'os.date() did not return expected value when passed "!%x" [627]')
assertTrue (os.date ('!%X', time) == '03:00:00', 'os.date() did not return expected value when passed "!%X" [628]')
assertTrue (os.date ('!%y', time) == '00', 'os.date() did not return expected value when passed "!%y" [629]')
assertTrue (os.date ('!%Y', time) == '2000', 'os.date() did not return expected value when passed "!%Y" [630]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [631]')
assertTrue (os.date ('*t', time).hour == 3, 'os.date() did not return expected value when passed "*t" [632]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [633]')
assertTrue (os.date ('*t', time).wday == 4, 'os.date() did not return expected value when passed "*t" [634]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [635]')
assertTrue (os.date ('*t', time).month == 3, 'os.date() did not return expected value when passed "*t" [636]')
assertTrue (os.date ('*t', time).year == 2000, 'os.date() did not return expected value when passed "*t" [637]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [638]')
assertTrue (os.date ('*t', time).yday == 61, 'os.date() did not return expected value when passed "*t" [639]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [640]')
assertTrue (os.date ('!*t', time).hour == 3, 'os.date() did not return expected value when passed "!*t" [641]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [642]')
assertTrue (os.date ('!*t', time).wday == 4, 'os.date() did not return expected value when passed "!*t" [643]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [644]')
assertTrue (os.date ('!*t', time).month == 3, 'os.date() did not return expected value when passed "!*t" [645]')
assertTrue (os.date ('!*t', time).year == 2000, 'os.date() did not return expected value when passed "!*t" [646]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [647]')
assertTrue (os.date ('!*t', time).yday == 61, 'os.date() did not return expected value when passed "!*t" [648]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [649]')
local time = 978264000
assertTrue (os.date ('%a', time) == 'Sun', 'os.date() did not return expected value when passed "%a" [650]')
assertTrue (os.date ('%A', time) == 'Sunday', 'os.date() did not return expected value when passed "%A" [651]')
assertTrue (os.date ('%b', time) == 'Dec', 'os.date() did not return expected value when passed "%b" [652]')
assertTrue (os.date ('%B', time) == 'December', 'os.date() did not return expected value when passed "%B" [653]')
assertTrue (os.date ('%d', time) == '31', 'os.date() did not return expected value when passed "%d" [654]')
assertTrue (os.date ('%H', time) == '12', 'os.date() did not return expected value when passed "%H" [655]')
assertTrue (os.date ('%I', time) == '12', 'os.date() did not return expected value when passed "%I" [656]')
assertTrue (os.date ('%j', time) == '366', 'os.date() did not return expected value when passed "%j" [657]')
assertTrue (os.date ('%m', time) == '12', 'os.date() did not return expected value when passed "%m" [658]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [659]')
assertTrue (os.date ('%p', time) == 'PM', 'os.date() did not return expected value when passed "%p" [660]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [661]')
assertTrue (os.date ('%U', time) == '53', 'os.date() did not return expected value when passed "%U" [662]')
assertTrue (os.date ('%w', time) == '0', 'os.date() did not return expected value when passed "%w" [663]')
assertTrue (os.date ('%W', time) == '52', 'os.date() did not return expected value when passed "%W" [664]')
assertTrue (os.date ('%x', time) == '12/31/00', 'os.date() did not return expected value when passed "%x" [665]')
assertTrue (os.date ('%X', time) == '12:00:00', 'os.date() did not return expected value when passed "%X" [666]')
assertTrue (os.date ('%y', time) == '00', 'os.date() did not return expected value when passed "%y" [667]')
assertTrue (os.date ('%Y', time) == '2000', 'os.date() did not return expected value when passed "%Y" [668]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [669]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [670]')
assertTrue (os.date ('!%a', time) == 'Sun', 'os.date() did not return expected value when passed "!%a" [671]')
assertTrue (os.date ('!%A', time) == 'Sunday', 'os.date() did not return expected value when passed "!%A" [672]')
assertTrue (os.date ('!%b', time) == 'Dec', 'os.date() did not return expected value when passed "!%b" [673]')
assertTrue (os.date ('!%B', time) == 'December', 'os.date() did not return expected value when passed "!%B" [674]')
assertTrue (os.date ('!%d', time) == '31', 'os.date() did not return expected value when passed "!%d" [675]')
assertTrue (os.date ('!%H', time) == '12', 'os.date() did not return expected value when passed "!%H" [676]')
assertTrue (os.date ('!%I', time) == '12', 'os.date() did not return expected value when passed "!%I" [677]')
assertTrue (os.date ('!%j', time) == '366', 'os.date() did not return expected value when passed "!%j" [678]')
assertTrue (os.date ('!%m', time) == '12', 'os.date() did not return expected value when passed "!%m" [679]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [680]')
assertTrue (os.date ('!%p', time) == 'PM', 'os.date() did not return expected value when passed "!%p" [681]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [682]')
assertTrue (os.date ('!%U', time) == '53', 'os.date() did not return expected value when passed "!%U" [683]')
assertTrue (os.date ('!%w', time) == '0', 'os.date() did not return expected value when passed "!%w" [684]')
assertTrue (os.date ('!%W', time) == '52', 'os.date() did not return expected value when passed "!%W" [685]')
assertTrue (os.date ('!%x', time) == '12/31/00', 'os.date() did not return expected value when passed "!%x" [686]')
assertTrue (os.date ('!%X', time) == '12:00:00', 'os.date() did not return expected value when passed "!%X" [687]')
assertTrue (os.date ('!%y', time) == '00', 'os.date() did not return expected value when passed "!%y" [688]')
assertTrue (os.date ('!%Y', time) == '2000', 'os.date() did not return expected value when passed "!%Y" [689]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [690]')
assertTrue (os.date ('*t', time).hour == 12, 'os.date() did not return expected value when passed "*t" [691]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [692]')
assertTrue (os.date ('*t', time).wday == 1, 'os.date() did not return expected value when passed "*t" [693]')
assertTrue (os.date ('*t', time).day == 31, 'os.date() did not return expected value when passed "*t" [694]')
assertTrue (os.date ('*t', time).month == 12, 'os.date() did not return expected value when passed "*t" [695]')
assertTrue (os.date ('*t', time).year == 2000, 'os.date() did not return expected value when passed "*t" [696]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [697]')
assertTrue (os.date ('*t', time).yday == 366, 'os.date() did not return expected value when passed "*t" [698]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [699]')
assertTrue (os.date ('!*t', time).hour == 12, 'os.date() did not return expected value when passed "!*t" [700]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [701]')
assertTrue (os.date ('!*t', time).wday == 1, 'os.date() did not return expected value when passed "!*t" [702]')
assertTrue (os.date ('!*t', time).day == 31, 'os.date() did not return expected value when passed "!*t" [703]')
assertTrue (os.date ('!*t', time).month == 12, 'os.date() did not return expected value when passed "!*t" [704]')
assertTrue (os.date ('!*t', time).year == 2000, 'os.date() did not return expected value when passed "!*t" [705]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [706]')
assertTrue (os.date ('!*t', time).yday == 366, 'os.date() did not return expected value when passed "!*t" [707]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [708]')
local time = 1293843600
assertTrue (os.date ('%a', time) == 'Sat', 'os.date() did not return expected value when passed "%a" [709]')
assertTrue (os.date ('%A', time) == 'Saturday', 'os.date() did not return expected value when passed "%A" [710]')
assertTrue (os.date ('%b', time) == 'Jan', 'os.date() did not return expected value when passed "%b" [711]')
assertTrue (os.date ('%B', time) == 'January', 'os.date() did not return expected value when passed "%B" [712]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [713]')
assertTrue (os.date ('%H', time) == '01', 'os.date() did not return expected value when passed "%H" [714]')
assertTrue (os.date ('%I', time) == '01', 'os.date() did not return expected value when passed "%I" [715]')
assertTrue (os.date ('%j', time) == '001', 'os.date() did not return expected value when passed "%j" [716]')
assertTrue (os.date ('%m', time) == '01', 'os.date() did not return expected value when passed "%m" [717]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [718]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [719]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [720]')
assertTrue (os.date ('%U', time) == '00', 'os.date() did not return expected value when passed "%U" [721]')
assertTrue (os.date ('%w', time) == '6', 'os.date() did not return expected value when passed "%w" [722]')
assertTrue (os.date ('%W', time) == '00', 'os.date() did not return expected value when passed "%W" [723]')
assertTrue (os.date ('%x', time) == '01/01/11', 'os.date() did not return expected value when passed "%x" [724]')
assertTrue (os.date ('%X', time) == '01:00:00', 'os.date() did not return expected value when passed "%X" [725]')
assertTrue (os.date ('%y', time) == '11', 'os.date() did not return expected value when passed "%y" [726]')
assertTrue (os.date ('%Y', time) == '2011', 'os.date() did not return expected value when passed "%Y" [727]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [728]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [729]')
assertTrue (os.date ('!%a', time) == 'Sat', 'os.date() did not return expected value when passed "!%a" [730]')
assertTrue (os.date ('!%A', time) == 'Saturday', 'os.date() did not return expected value when passed "!%A" [731]')
assertTrue (os.date ('!%b', time) == 'Jan', 'os.date() did not return expected value when passed "!%b" [732]')
assertTrue (os.date ('!%B', time) == 'January', 'os.date() did not return expected value when passed "!%B" [733]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [734]')
assertTrue (os.date ('!%H', time) == '01', 'os.date() did not return expected value when passed "!%H" [735]')
assertTrue (os.date ('!%I', time) == '01', 'os.date() did not return expected value when passed "!%I" [736]')
assertTrue (os.date ('!%j', time) == '001', 'os.date() did not return expected value when passed "!%j" [737]')
assertTrue (os.date ('!%m', time) == '01', 'os.date() did not return expected value when passed "!%m" [738]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [739]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [740]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [741]')
assertTrue (os.date ('!%U', time) == '00', 'os.date() did not return expected value when passed "!%U" [742]')
assertTrue (os.date ('!%w', time) == '6', 'os.date() did not return expected value when passed "!%w" [743]')
assertTrue (os.date ('!%W', time) == '00', 'os.date() did not return expected value when passed "!%W" [744]')
assertTrue (os.date ('!%x', time) == '01/01/11', 'os.date() did not return expected value when passed "!%x" [745]')
assertTrue (os.date ('!%X', time) == '01:00:00', 'os.date() did not return expected value when passed "!%X" [746]')
assertTrue (os.date ('!%y', time) == '11', 'os.date() did not return expected value when passed "!%y" [747]')
assertTrue (os.date ('!%Y', time) == '2011', 'os.date() did not return expected value when passed "!%Y" [748]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [749]')
assertTrue (os.date ('*t', time).hour == 1, 'os.date() did not return expected value when passed "*t" [750]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [751]')
assertTrue (os.date ('*t', time).wday == 7, 'os.date() did not return expected value when passed "*t" [752]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [753]')
assertTrue (os.date ('*t', time).month == 1, 'os.date() did not return expected value when passed "*t" [754]')
assertTrue (os.date ('*t', time).year == 2011, 'os.date() did not return expected value when passed "*t" [755]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [756]')
assertTrue (os.date ('*t', time).yday == 1, 'os.date() did not return expected value when passed "*t" [757]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [758]')
assertTrue (os.date ('!*t', time).hour == 1, 'os.date() did not return expected value when passed "!*t" [759]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [760]')
assertTrue (os.date ('!*t', time).wday == 7, 'os.date() did not return expected value when passed "!*t" [761]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [762]')
assertTrue (os.date ('!*t', time).month == 1, 'os.date() did not return expected value when passed "!*t" [763]')
assertTrue (os.date ('!*t', time).year == 2011, 'os.date() did not return expected value when passed "!*t" [764]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [765]')
assertTrue (os.date ('!*t', time).yday == 1, 'os.date() did not return expected value when passed "!*t" [766]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [767]')
local time = 1296525600
assertTrue (os.date ('%a', time) == 'Tue', 'os.date() did not return expected value when passed "%a" [768]')
assertTrue (os.date ('%A', time) == 'Tuesday', 'os.date() did not return expected value when passed "%A" [769]')
assertTrue (os.date ('%b', time) == 'Feb', 'os.date() did not return expected value when passed "%b" [770]')
assertTrue (os.date ('%B', time) == 'February', 'os.date() did not return expected value when passed "%B" [771]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [772]')
assertTrue (os.date ('%H', time) == '02', 'os.date() did not return expected value when passed "%H" [773]')
assertTrue (os.date ('%I', time) == '02', 'os.date() did not return expected value when passed "%I" [774]')
assertTrue (os.date ('%j', time) == '032', 'os.date() did not return expected value when passed "%j" [775]')
assertTrue (os.date ('%m', time) == '02', 'os.date() did not return expected value when passed "%m" [776]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [777]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [778]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [779]')
assertTrue (os.date ('%U', time) == '05', 'os.date() did not return expected value when passed "%U" [780]')
assertTrue (os.date ('%w', time) == '2', 'os.date() did not return expected value when passed "%w" [781]')
assertTrue (os.date ('%W', time) == '05', 'os.date() did not return expected value when passed "%W" [782]')
assertTrue (os.date ('%x', time) == '02/01/11', 'os.date() did not return expected value when passed "%x" [783]')
assertTrue (os.date ('%X', time) == '02:00:00', 'os.date() did not return expected value when passed "%X" [784]')
assertTrue (os.date ('%y', time) == '11', 'os.date() did not return expected value when passed "%y" [785]')
assertTrue (os.date ('%Y', time) == '2011', 'os.date() did not return expected value when passed "%Y" [786]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [787]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [788]')
assertTrue (os.date ('!%a', time) == 'Tue', 'os.date() did not return expected value when passed "!%a" [789]')
assertTrue (os.date ('!%A', time) == 'Tuesday', 'os.date() did not return expected value when passed "!%A" [790]')
assertTrue (os.date ('!%b', time) == 'Feb', 'os.date() did not return expected value when passed "!%b" [791]')
assertTrue (os.date ('!%B', time) == 'February', 'os.date() did not return expected value when passed "!%B" [792]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [793]')
assertTrue (os.date ('!%H', time) == '02', 'os.date() did not return expected value when passed "!%H" [794]')
assertTrue (os.date ('!%I', time) == '02', 'os.date() did not return expected value when passed "!%I" [795]')
assertTrue (os.date ('!%j', time) == '032', 'os.date() did not return expected value when passed "!%j" [796]')
assertTrue (os.date ('!%m', time) == '02', 'os.date() did not return expected value when passed "!%m" [797]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [798]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [799]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [800]')
assertTrue (os.date ('!%U', time) == '05', 'os.date() did not return expected value when passed "!%U" [801]')
assertTrue (os.date ('!%w', time) == '2', 'os.date() did not return expected value when passed "!%w" [802]')
assertTrue (os.date ('!%W', time) == '05', 'os.date() did not return expected value when passed "!%W" [803]')
assertTrue (os.date ('!%x', time) == '02/01/11', 'os.date() did not return expected value when passed "!%x" [804]')
assertTrue (os.date ('!%X', time) == '02:00:00', 'os.date() did not return expected value when passed "!%X" [805]')
assertTrue (os.date ('!%y', time) == '11', 'os.date() did not return expected value when passed "!%y" [806]')
assertTrue (os.date ('!%Y', time) == '2011', 'os.date() did not return expected value when passed "!%Y" [807]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [808]')
assertTrue (os.date ('*t', time).hour == 2, 'os.date() did not return expected value when passed "*t" [809]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [810]')
assertTrue (os.date ('*t', time).wday == 3, 'os.date() did not return expected value when passed "*t" [811]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [812]')
assertTrue (os.date ('*t', time).month == 2, 'os.date() did not return expected value when passed "*t" [813]')
assertTrue (os.date ('*t', time).year == 2011, 'os.date() did not return expected value when passed "*t" [814]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [815]')
assertTrue (os.date ('*t', time).yday == 32, 'os.date() did not return expected value when passed "*t" [816]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [817]')
assertTrue (os.date ('!*t', time).hour == 2, 'os.date() did not return expected value when passed "!*t" [818]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [819]')
assertTrue (os.date ('!*t', time).wday == 3, 'os.date() did not return expected value when passed "!*t" [820]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [821]')
assertTrue (os.date ('!*t', time).month == 2, 'os.date() did not return expected value when passed "!*t" [822]')
assertTrue (os.date ('!*t', time).year == 2011, 'os.date() did not return expected value when passed "!*t" [823]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [824]')
assertTrue (os.date ('!*t', time).yday == 32, 'os.date() did not return expected value when passed "!*t" [825]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [826]')
local time = 1298858400
assertTrue (os.date ('%a', time) == 'Mon', 'os.date() did not return expected value when passed "%a" [827]')
assertTrue (os.date ('%A', time) == 'Monday', 'os.date() did not return expected value when passed "%A" [828]')
assertTrue (os.date ('%b', time) == 'Feb', 'os.date() did not return expected value when passed "%b" [829]')
assertTrue (os.date ('%B', time) == 'February', 'os.date() did not return expected value when passed "%B" [830]')
assertTrue (os.date ('%d', time) == '28', 'os.date() did not return expected value when passed "%d" [831]')
assertTrue (os.date ('%H', time) == '02', 'os.date() did not return expected value when passed "%H" [832]')
assertTrue (os.date ('%I', time) == '02', 'os.date() did not return expected value when passed "%I" [833]')
assertTrue (os.date ('%j', time) == '059', 'os.date() did not return expected value when passed "%j" [834]')
assertTrue (os.date ('%m', time) == '02', 'os.date() did not return expected value when passed "%m" [835]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [836]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [837]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [838]')
assertTrue (os.date ('%U', time) == '09', 'os.date() did not return expected value when passed "%U" [839]')
assertTrue (os.date ('%w', time) == '1', 'os.date() did not return expected value when passed "%w" [840]')
assertTrue (os.date ('%W', time) == '09', 'os.date() did not return expected value when passed "%W" [841]')
assertTrue (os.date ('%x', time) == '02/28/11', 'os.date() did not return expected value when passed "%x" [842]')
assertTrue (os.date ('%X', time) == '02:00:00', 'os.date() did not return expected value when passed "%X" [843]')
assertTrue (os.date ('%y', time) == '11', 'os.date() did not return expected value when passed "%y" [844]')
assertTrue (os.date ('%Y', time) == '2011', 'os.date() did not return expected value when passed "%Y" [845]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [846]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [847]')
assertTrue (os.date ('!%a', time) == 'Mon', 'os.date() did not return expected value when passed "!%a" [848]')
assertTrue (os.date ('!%A', time) == 'Monday', 'os.date() did not return expected value when passed "!%A" [849]')
assertTrue (os.date ('!%b', time) == 'Feb', 'os.date() did not return expected value when passed "!%b" [850]')
assertTrue (os.date ('!%B', time) == 'February', 'os.date() did not return expected value when passed "!%B" [851]')
assertTrue (os.date ('!%d', time) == '28', 'os.date() did not return expected value when passed "!%d" [852]')
assertTrue (os.date ('!%H', time) == '02', 'os.date() did not return expected value when passed "!%H" [853]')
assertTrue (os.date ('!%I', time) == '02', 'os.date() did not return expected value when passed "!%I" [854]')
assertTrue (os.date ('!%j', time) == '059', 'os.date() did not return expected value when passed "!%j" [855]')
assertTrue (os.date ('!%m', time) == '02', 'os.date() did not return expected value when passed "!%m" [856]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [857]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [858]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [859]')
assertTrue (os.date ('!%U', time) == '09', 'os.date() did not return expected value when passed "!%U" [860]')
assertTrue (os.date ('!%w', time) == '1', 'os.date() did not return expected value when passed "!%w" [861]')
assertTrue (os.date ('!%W', time) == '09', 'os.date() did not return expected value when passed "!%W" [862]')
assertTrue (os.date ('!%x', time) == '02/28/11', 'os.date() did not return expected value when passed "!%x" [863]')
assertTrue (os.date ('!%X', time) == '02:00:00', 'os.date() did not return expected value when passed "!%X" [864]')
assertTrue (os.date ('!%y', time) == '11', 'os.date() did not return expected value when passed "!%y" [865]')
assertTrue (os.date ('!%Y', time) == '2011', 'os.date() did not return expected value when passed "!%Y" [866]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [867]')
assertTrue (os.date ('*t', time).hour == 2, 'os.date() did not return expected value when passed "*t" [868]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [869]')
assertTrue (os.date ('*t', time).wday == 2, 'os.date() did not return expected value when passed "*t" [870]')
assertTrue (os.date ('*t', time).day == 28, 'os.date() did not return expected value when passed "*t" [871]')
assertTrue (os.date ('*t', time).month == 2, 'os.date() did not return expected value when passed "*t" [872]')
assertTrue (os.date ('*t', time).year == 2011, 'os.date() did not return expected value when passed "*t" [873]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [874]')
assertTrue (os.date ('*t', time).yday == 59, 'os.date() did not return expected value when passed "*t" [875]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [876]')
assertTrue (os.date ('!*t', time).hour == 2, 'os.date() did not return expected value when passed "!*t" [877]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [878]')
assertTrue (os.date ('!*t', time).wday == 2, 'os.date() did not return expected value when passed "!*t" [879]')
assertTrue (os.date ('!*t', time).day == 28, 'os.date() did not return expected value when passed "!*t" [880]')
assertTrue (os.date ('!*t', time).month == 2, 'os.date() did not return expected value when passed "!*t" [881]')
assertTrue (os.date ('!*t', time).year == 2011, 'os.date() did not return expected value when passed "!*t" [882]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [883]')
assertTrue (os.date ('!*t', time).yday == 59, 'os.date() did not return expected value when passed "!*t" [884]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [885]')
local time = 1298944800
assertTrue (os.date ('%a', time) == 'Tue', 'os.date() did not return expected value when passed "%a" [886]')
assertTrue (os.date ('%A', time) == 'Tuesday', 'os.date() did not return expected value when passed "%A" [887]')
assertTrue (os.date ('%b', time) == 'Mar', 'os.date() did not return expected value when passed "%b" [888]')
assertTrue (os.date ('%B', time) == 'March', 'os.date() did not return expected value when passed "%B" [889]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [890]')
assertTrue (os.date ('%H', time) == '02', 'os.date() did not return expected value when passed "%H" [891]')
assertTrue (os.date ('%I', time) == '02', 'os.date() did not return expected value when passed "%I" [892]')
assertTrue (os.date ('%j', time) == '060', 'os.date() did not return expected value when passed "%j" [893]')
assertTrue (os.date ('%m', time) == '03', 'os.date() did not return expected value when passed "%m" [894]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [895]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [896]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [897]')
assertTrue (os.date ('%U', time) == '09', 'os.date() did not return expected value when passed "%U" [898]')
assertTrue (os.date ('%w', time) == '2', 'os.date() did not return expected value when passed "%w" [899]')
assertTrue (os.date ('%W', time) == '09', 'os.date() did not return expected value when passed "%W" [900]')
assertTrue (os.date ('%x', time) == '03/01/11', 'os.date() did not return expected value when passed "%x" [901]')
assertTrue (os.date ('%X', time) == '02:00:00', 'os.date() did not return expected value when passed "%X" [902]')
assertTrue (os.date ('%y', time) == '11', 'os.date() did not return expected value when passed "%y" [903]')
assertTrue (os.date ('%Y', time) == '2011', 'os.date() did not return expected value when passed "%Y" [904]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [905]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [906]')
assertTrue (os.date ('!%a', time) == 'Tue', 'os.date() did not return expected value when passed "!%a" [907]')
assertTrue (os.date ('!%A', time) == 'Tuesday', 'os.date() did not return expected value when passed "!%A" [908]')
assertTrue (os.date ('!%b', time) == 'Mar', 'os.date() did not return expected value when passed "!%b" [909]')
assertTrue (os.date ('!%B', time) == 'March', 'os.date() did not return expected value when passed "!%B" [910]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [911]')
assertTrue (os.date ('!%H', time) == '02', 'os.date() did not return expected value when passed "!%H" [912]')
assertTrue (os.date ('!%I', time) == '02', 'os.date() did not return expected value when passed "!%I" [913]')
assertTrue (os.date ('!%j', time) == '060', 'os.date() did not return expected value when passed "!%j" [914]')
assertTrue (os.date ('!%m', time) == '03', 'os.date() did not return expected value when passed "!%m" [915]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [916]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [917]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [918]')
assertTrue (os.date ('!%U', time) == '09', 'os.date() did not return expected value when passed "!%U" [919]')
assertTrue (os.date ('!%w', time) == '2', 'os.date() did not return expected value when passed "!%w" [920]')
assertTrue (os.date ('!%W', time) == '09', 'os.date() did not return expected value when passed "!%W" [921]')
assertTrue (os.date ('!%x', time) == '03/01/11', 'os.date() did not return expected value when passed "!%x" [922]')
assertTrue (os.date ('!%X', time) == '02:00:00', 'os.date() did not return expected value when passed "!%X" [923]')
assertTrue (os.date ('!%y', time) == '11', 'os.date() did not return expected value when passed "!%y" [924]')
assertTrue (os.date ('!%Y', time) == '2011', 'os.date() did not return expected value when passed "!%Y" [925]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [926]')
assertTrue (os.date ('*t', time).hour == 2, 'os.date() did not return expected value when passed "*t" [927]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [928]')
assertTrue (os.date ('*t', time).wday == 3, 'os.date() did not return expected value when passed "*t" [929]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [930]')
assertTrue (os.date ('*t', time).month == 3, 'os.date() did not return expected value when passed "*t" [931]')
assertTrue (os.date ('*t', time).year == 2011, 'os.date() did not return expected value when passed "*t" [932]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [933]')
assertTrue (os.date ('*t', time).yday == 60, 'os.date() did not return expected value when passed "*t" [934]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [935]')
assertTrue (os.date ('!*t', time).hour == 2, 'os.date() did not return expected value when passed "!*t" [936]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [937]')
assertTrue (os.date ('!*t', time).wday == 3, 'os.date() did not return expected value when passed "!*t" [938]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [939]')
assertTrue (os.date ('!*t', time).month == 3, 'os.date() did not return expected value when passed "!*t" [940]')
assertTrue (os.date ('!*t', time).year == 2011, 'os.date() did not return expected value when passed "!*t" [941]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [942]')
assertTrue (os.date ('!*t', time).yday == 60, 'os.date() did not return expected value when passed "!*t" [943]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [944]')
local time = 1298948400
assertTrue (os.date ('%a', time) == 'Tue', 'os.date() did not return expected value when passed "%a" [945]')
assertTrue (os.date ('%A', time) == 'Tuesday', 'os.date() did not return expected value when passed "%A" [946]')
assertTrue (os.date ('%b', time) == 'Mar', 'os.date() did not return expected value when passed "%b" [947]')
assertTrue (os.date ('%B', time) == 'March', 'os.date() did not return expected value when passed "%B" [948]')
assertTrue (os.date ('%d', time) == '01', 'os.date() did not return expected value when passed "%d" [949]')
assertTrue (os.date ('%H', time) == '03', 'os.date() did not return expected value when passed "%H" [950]')
assertTrue (os.date ('%I', time) == '03', 'os.date() did not return expected value when passed "%I" [951]')
assertTrue (os.date ('%j', time) == '060', 'os.date() did not return expected value when passed "%j" [952]')
assertTrue (os.date ('%m', time) == '03', 'os.date() did not return expected value when passed "%m" [953]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [954]')
assertTrue (os.date ('%p', time) == 'AM', 'os.date() did not return expected value when passed "%p" [955]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [956]')
assertTrue (os.date ('%U', time) == '09', 'os.date() did not return expected value when passed "%U" [957]')
assertTrue (os.date ('%w', time) == '2', 'os.date() did not return expected value when passed "%w" [958]')
assertTrue (os.date ('%W', time) == '09', 'os.date() did not return expected value when passed "%W" [959]')
assertTrue (os.date ('%x', time) == '03/01/11', 'os.date() did not return expected value when passed "%x" [960]')
assertTrue (os.date ('%X', time) == '03:00:00', 'os.date() did not return expected value when passed "%X" [961]')
assertTrue (os.date ('%y', time) == '11', 'os.date() did not return expected value when passed "%y" [962]')
assertTrue (os.date ('%Y', time) == '2011', 'os.date() did not return expected value when passed "%Y" [963]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [964]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [965]')
assertTrue (os.date ('!%a', time) == 'Tue', 'os.date() did not return expected value when passed "!%a" [966]')
assertTrue (os.date ('!%A', time) == 'Tuesday', 'os.date() did not return expected value when passed "!%A" [967]')
assertTrue (os.date ('!%b', time) == 'Mar', 'os.date() did not return expected value when passed "!%b" [968]')
assertTrue (os.date ('!%B', time) == 'March', 'os.date() did not return expected value when passed "!%B" [969]')
assertTrue (os.date ('!%d', time) == '01', 'os.date() did not return expected value when passed "!%d" [970]')
assertTrue (os.date ('!%H', time) == '03', 'os.date() did not return expected value when passed "!%H" [971]')
assertTrue (os.date ('!%I', time) == '03', 'os.date() did not return expected value when passed "!%I" [972]')
assertTrue (os.date ('!%j', time) == '060', 'os.date() did not return expected value when passed "!%j" [973]')
assertTrue (os.date ('!%m', time) == '03', 'os.date() did not return expected value when passed "!%m" [974]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [975]')
assertTrue (os.date ('!%p', time) == 'AM', 'os.date() did not return expected value when passed "!%p" [976]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [977]')
assertTrue (os.date ('!%U', time) == '09', 'os.date() did not return expected value when passed "!%U" [978]')
assertTrue (os.date ('!%w', time) == '2', 'os.date() did not return expected value when passed "!%w" [979]')
assertTrue (os.date ('!%W', time) == '09', 'os.date() did not return expected value when passed "!%W" [980]')
assertTrue (os.date ('!%x', time) == '03/01/11', 'os.date() did not return expected value when passed "!%x" [981]')
assertTrue (os.date ('!%X', time) == '03:00:00', 'os.date() did not return expected value when passed "!%X" [982]')
assertTrue (os.date ('!%y', time) == '11', 'os.date() did not return expected value when passed "!%y" [983]')
assertTrue (os.date ('!%Y', time) == '2011', 'os.date() did not return expected value when passed "!%Y" [984]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [985]')
assertTrue (os.date ('*t', time).hour == 3, 'os.date() did not return expected value when passed "*t" [986]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [987]')
assertTrue (os.date ('*t', time).wday == 3, 'os.date() did not return expected value when passed "*t" [988]')
assertTrue (os.date ('*t', time).day == 1, 'os.date() did not return expected value when passed "*t" [989]')
assertTrue (os.date ('*t', time).month == 3, 'os.date() did not return expected value when passed "*t" [990]')
assertTrue (os.date ('*t', time).year == 2011, 'os.date() did not return expected value when passed "*t" [991]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [992]')
assertTrue (os.date ('*t', time).yday == 60, 'os.date() did not return expected value when passed "*t" [993]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [994]')
assertTrue (os.date ('!*t', time).hour == 3, 'os.date() did not return expected value when passed "!*t" [995]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [996]')
assertTrue (os.date ('!*t', time).wday == 3, 'os.date() did not return expected value when passed "!*t" [997]')
assertTrue (os.date ('!*t', time).day == 1, 'os.date() did not return expected value when passed "!*t" [998]')
assertTrue (os.date ('!*t', time).month == 3, 'os.date() did not return expected value when passed "!*t" [999]')
assertTrue (os.date ('!*t', time).year == 2011, 'os.date() did not return expected value when passed "!*t" [1000]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [1001]')
assertTrue (os.date ('!*t', time).yday == 60, 'os.date() did not return expected value when passed "!*t" [1002]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [1003]')
local time = 1325332800
assertTrue (os.date ('%a', time) == 'Sat', 'os.date() did not return expected value when passed "%a" [1004]')
assertTrue (os.date ('%A', time) == 'Saturday', 'os.date() did not return expected value when passed "%A" [1005]')
assertTrue (os.date ('%b', time) == 'Dec', 'os.date() did not return expected value when passed "%b" [1006]')
assertTrue (os.date ('%B', time) == 'December', 'os.date() did not return expected value when passed "%B" [1007]')
assertTrue (os.date ('%d', time) == '31', 'os.date() did not return expected value when passed "%d" [1008]')
assertTrue (os.date ('%H', time) == '12', 'os.date() did not return expected value when passed "%H" [1009]')
assertTrue (os.date ('%I', time) == '12', 'os.date() did not return expected value when passed "%I" [1010]')
assertTrue (os.date ('%j', time) == '365', 'os.date() did not return expected value when passed "%j" [1011]')
assertTrue (os.date ('%m', time) == '12', 'os.date() did not return expected value when passed "%m" [1012]')
assertTrue (os.date ('%M', time) == '00', 'os.date() did not return expected value when passed "%M" [1013]')
assertTrue (os.date ('%p', time) == 'PM', 'os.date() did not return expected value when passed "%p" [1014]')
assertTrue (os.date ('%S', time) == '00', 'os.date() did not return expected value when passed "%S" [1015]')
assertTrue (os.date ('%U', time) == '52', 'os.date() did not return expected value when passed "%U" [1016]')
assertTrue (os.date ('%w', time) == '6', 'os.date() did not return expected value when passed "%w" [1017]')
assertTrue (os.date ('%W', time) == '52', 'os.date() did not return expected value when passed "%W" [1018]')
assertTrue (os.date ('%x', time) == '12/31/11', 'os.date() did not return expected value when passed "%x" [1019]')
assertTrue (os.date ('%X', time) == '12:00:00', 'os.date() did not return expected value when passed "%X" [1020]')
assertTrue (os.date ('%y', time) == '11', 'os.date() did not return expected value when passed "%y" [1021]')
assertTrue (os.date ('%Y', time) == '2011', 'os.date() did not return expected value when passed "%Y" [1022]')
assertTrue (os.date ('%Z', time) == 'GMT', 'os.date() did not return expected value when passed "%Z" [1023]')
assertTrue (os.date ('%%', time) == '%', 'os.date() did not return expected value when passed "%%" [1024]')
assertTrue (os.date ('!%a', time) == 'Sat', 'os.date() did not return expected value when passed "!%a" [1025]')
assertTrue (os.date ('!%A', time) == 'Saturday', 'os.date() did not return expected value when passed "!%A" [1026]')
assertTrue (os.date ('!%b', time) == 'Dec', 'os.date() did not return expected value when passed "!%b" [1027]')
assertTrue (os.date ('!%B', time) == 'December', 'os.date() did not return expected value when passed "!%B" [1028]')
assertTrue (os.date ('!%d', time) == '31', 'os.date() did not return expected value when passed "!%d" [1029]')
assertTrue (os.date ('!%H', time) == '12', 'os.date() did not return expected value when passed "!%H" [1030]')
assertTrue (os.date ('!%I', time) == '12', 'os.date() did not return expected value when passed "!%I" [1031]')
assertTrue (os.date ('!%j', time) == '365', 'os.date() did not return expected value when passed "!%j" [1032]')
assertTrue (os.date ('!%m', time) == '12', 'os.date() did not return expected value when passed "!%m" [1033]')
assertTrue (os.date ('!%M', time) == '00', 'os.date() did not return expected value when passed "!%M" [1034]')
assertTrue (os.date ('!%p', time) == 'PM', 'os.date() did not return expected value when passed "!%p" [1035]')
assertTrue (os.date ('!%S', time) == '00', 'os.date() did not return expected value when passed "!%S" [1036]')
assertTrue (os.date ('!%U', time) == '52', 'os.date() did not return expected value when passed "!%U" [1037]')
assertTrue (os.date ('!%w', time) == '6', 'os.date() did not return expected value when passed "!%w" [1038]')
assertTrue (os.date ('!%W', time) == '52', 'os.date() did not return expected value when passed "!%W" [1039]')
assertTrue (os.date ('!%x', time) == '12/31/11', 'os.date() did not return expected value when passed "!%x" [1040]')
assertTrue (os.date ('!%X', time) == '12:00:00', 'os.date() did not return expected value when passed "!%X" [1041]')
assertTrue (os.date ('!%y', time) == '11', 'os.date() did not return expected value when passed "!%y" [1042]')
assertTrue (os.date ('!%Y', time) == '2011', 'os.date() did not return expected value when passed "!%Y" [1043]')
assertTrue (os.date ('!%Z', time) == 'UTC', 'os.date() did not return expected value when passed "!%Z" [1044]')
assertTrue (os.date ('*t', time).hour == 12, 'os.date() did not return expected value when passed "*t" [1045]')
assertTrue (os.date ('*t', time).min == 0, 'os.date() did not return expected value when passed "*t" [1046]')
assertTrue (os.date ('*t', time).wday == 7, 'os.date() did not return expected value when passed "*t" [1047]')
assertTrue (os.date ('*t', time).day == 31, 'os.date() did not return expected value when passed "*t" [1048]')
assertTrue (os.date ('*t', time).month == 12, 'os.date() did not return expected value when passed "*t" [1049]')
assertTrue (os.date ('*t', time).year == 2011, 'os.date() did not return expected value when passed "*t" [1050]')
assertTrue (os.date ('*t', time).sec == 0, 'os.date() did not return expected value when passed "*t" [1051]')
assertTrue (os.date ('*t', time).yday == 365, 'os.date() did not return expected value when passed "*t" [1052]')
assertTrue (os.date ('*t', time).isdst == false, 'os.date() did not return expected value when passed "*t" [1053]')
assertTrue (os.date ('!*t', time).hour == 12, 'os.date() did not return expected value when passed "!*t" [1054]')
assertTrue (os.date ('!*t', time).min == 0, 'os.date() did not return expected value when passed "!*t" [1055]')
assertTrue (os.date ('!*t', time).wday == 7, 'os.date() did not return expected value when passed "!*t" [1056]')
assertTrue (os.date ('!*t', time).day == 31, 'os.date() did not return expected value when passed "!*t" [1057]')
assertTrue (os.date ('!*t', time).month == 12, 'os.date() did not return expected value when passed "!*t" [1058]')
assertTrue (os.date ('!*t', time).year == 2011, 'os.date() did not return expected value when passed "!*t" [1059]')
assertTrue (os.date ('!*t', time).sec == 0, 'os.date() did not return expected value when passed "!*t" [1060]')
assertTrue (os.date ('!*t', time).yday == 365, 'os.date() did not return expected value when passed "!*t" [1061]')
assertTrue (os.date ('!*t', time).isdst == false, 'os.date() did not return expected value when passed "!*t" [1062]')
end
datetest ()
showResults()
|
----------------------------------------
--
-- Copyright (c) 2015, Hadriel Kaplan
--
-- author: Hadriel Kaplan <hadrielk@yahoo.com>
--
-- This code is licensed under the MIT license.
--
-- Version: 1.0
--
------------------------------------------
-- prevent wireshark loading this file as a plugin
if not _G['pcapng_test_gen'] then return end
local Defines = require "defines"
local pad = Defines.pad
local getPad = Defines.getPad
--------------------------------------------------------------------------------
-- The Option base class, from which others derive
--
-- All Options have a type
--
local Option = {}
local Option_mt = { __index = Option }
function Option.new(otype, value)
assert(otype, "Not given an option type")
local new_class = { -- the new instance
["otype"] = otype,
["code"] = Defines:getOptionCode(otype),
["endian"] = Defines:getEndian(),
["value"] = value,
}
setmetatable( new_class, Option_mt )
return new_class
end
function Option.call(_, ...)
return Option.new(...)
end
setmetatable( Option, { __call = Option.call } )
function Option:getType()
return self.otype
end
function Option:setValue(value)
self.value = value
return self
end
-- all options have a code, length, value, pad
local opt_fmt = "I2 I2 c0 c0"
function Option:pack()
self.value = self.value or ""
local opt_len = string.len(self.value)
return Struct.pack(self.endian .. opt_fmt,
self.code,
opt_len,
self.value,
getPad(opt_len))
end
return Option
|
local validateBoolean = require('reactor.propTypes.boolean')
describe('boolean', function()
describe('behaviour', function()
it('returns a validator function to use for validation', function()
expect(type(validateBoolean()))
.to.be('function')
end)
it('returns true if the supplied value to the validator is of type boolean', function()
local validator = validateBoolean()
expect(validator(true))
.to.be(true)
expect(validator(false))
.to.be(true)
end)
it('does not return a second return value when validation is successful', function()
local validator = validateBoolean()
local isValid, reason = validator(true)
expect(reason)
.to.be(nil)
end)
it('returns false if the supplied value to the validator is of a type that is not a boolean', function()
local validator = validateBoolean()
expect(validator(nil))
.to.be(false)
expect(validator(12))
.to.be(false)
expect(validator('test'))
.to.be(false)
expect(validator(function() end))
.to.be(false)
expect(validator({}))
.to.be(false)
end)
it('returns a second return value of type string that represents the reason validation failed', function()
local validator = validateBoolean()
local isValid, reason = validator(nil)
expect(type(reason))
.to.be('string')
end)
end)
end) |
local transform;
local gameObject;
GameWorldPanel = {};
local this = GameWorldPanel;
--启动事件--
function GameWorldPanel.Awake(obj)
gameObject = obj;
transform = obj.transform;
this.InitPanel();
logWarn("Awake lua--->>"..gameObject.name);
end
--初始化面板--
function GameWorldPanel.InitPanel()
this.btnSend = transform:FindChild("Button_send").gameObject;
this.PanelDie = transform:FindChild("Panel_die").gameObject;
this.btnRelive = transform:FindChild("Panel_die/Button_relive").gameObject;
this.btnClose = transform:FindChild("Button_close").gameObject;
this.textContent = transform:FindChild("Scroll View/Viewport/trans_content").gameObject;
this.sb_vertical = transform:FindChild("Scroll View/Scrollbar Vertical"):GetComponent("Scrollbar");
this.input_content = transform:FindChild("InputField_content"):GetComponent("InputField");
this.btnResetView = transform:FindChild("Button_resetView").gameObject;
this.btnSkill1 = transform:FindChild("Button_skill1").gameObject;
this.btnSkill2 = transform:FindChild("Button_skill2").gameObject;
this.btnSkill3 = transform:FindChild("Button_skill3").gameObject;
this.btnTabTarget = transform:FindChild("Button_tabTarget").gameObject;
end
--单击事件--
function GameWorldPanel.OnDestroy()
logWarn("OnDestroy---->>>");
end
|
local t = Def.ActorFrame {
LoadActor( "Yellow Go Receptor" )..{
InitCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'InitCommand');
NoneCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'NoneCommand');
};
LoadActor( "Yellow Go Receptor" )..{
InitCommand=NOTESKIN:GetMetricA('ReceptorOverlay', 'InitCommand');
PressCommand=NOTESKIN:GetMetricA('ReceptorOverlay', 'PressCommand');
LiftCommand=NOTESKIN:GetMetricA('ReceptorOverlay', 'LiftCommand');
NoneCommand=NOTESKIN:GetMetricA('ReceptorArrow', 'NoneCommand');
};
};
return t;
|
Particles = { }
-- private variables
local particlesWindow
local particlesButton
-- private functions
local function onExtendedParticles(protocol, opcode, buffer)
end
-- public functions
function Particles.init()
particlesWindow = g_ui.displayUI('particles.otui')
particlesButton = TopMenu.addLeftButton('particlesButton', tr('Particles Manager'), 'particles.png', Particles.toggle)
local particlesList = particlesWindow:getChildById('particlesList')
g_keyboard.bindKeyPress('Up', function() particlesList:focusPreviousChild(KeyboardFocusReason) end, particlesWindow)
g_keyboard.bindKeyPress('Down', function() particlesList:focusNextChild(KeyboardFocusReason) end, particlesWindow)
Extended.register(ExtendedParticles, onExtendedParticles)
end
function Particles.terminate()
particlesWindow:destroy()
particlesWindow = nil
particlesButton:destroy()
particlesButton = nil
Extended.unregister(ExtendedParticles)
end
function Particles.show()
Particles.refreshList()
particlesWindow:show()
particlesWindow:raise()
particlesWindow:focus()
end
function Particles.hide()
particlesWindow:hide()
end
function Particles.toggle()
if particlesWindow:isVisible() then
Particles.hide()
else
Particles.show()
end
end
function Particles.refreshInfo()
local particlesList = particlesWindow:getChildById('particlesList')
local widget = particlesList:getFocusedChild()
local name = particlesWindow:getChildById('name')
name:setText(widget.effect:getName())
local location = particlesWindow:getChildById('location')
location:setText(widget.effect:getFile())
local description = particlesWindow:getChildById('description')
description:setText(widget.effect:getDescription())
end
function Particles.refreshList()
local particlesList = particlesWindow:getChildById('particlesList')
particlesList.onChildFocusChange = nil
particlesList:destroyChildren()
local firstChild = nil
local effects = g_particles.getEffectsTypes()
for name,effect in pairs(effects) do
local label = g_ui.createWidget('ParticlesListLabel', particlesList)
label:setText(name)
label.effect = effect
if not firstChild then
firstChild = label
end
end
particlesList.onChildFocusChange = Particles.refreshInfo
if firstChild then
firstChild:focus()
end
end
function Particles.start()
local particlesList = particlesWindow:getChildById('particlesList')
local focusedEffect = particlesList:getFocusedChild()
local preview = particlesWindow:getChildById('preview')
preview:addEffect(focusedEffect:getText())
end
|
--[[
Logging Module
Writes logs to output and to the file stream
]]
local lib
local config
local logging
logging = {
history = {},
write = function(self, ...)
local out = table.concat({...}, " ")
if (config.history) then
self.history[#self.history + 1] = out
end
if (config.realtime) then
self:report(out)
end
end,
report = function(self, ...)
print(...)
end,
clear = function(self)
self.history = {}
end,
save = function(self, filename)
if (not love.filesystem.exists(config.save_directory)) then
love.filesystem.mkdir(config.save_directory)
end
local file_out = love.filesystem.newFile(config.save_directory .. "/" .. filename .. ".txt")
if (file_out:open("w")) then
file_out:write(table.concat(self.history, "\r\n"))
file_out:close()
end
end,
init = function(self, engine)
lib = engine.lib
lib.oop:objectify(self)
engine.log = self:new()
config = {
realtime = true,
history = true,
autosave = false,
save_directory = "logs"
}
engine.config.log = config
engine.log:write("Using engine version " .. tostring(engine.config.version))
end,
close = function(self, engine)
engine.log:write("End")
if (config.autosave) then
engine.log:save(os.date():gsub("[/: ]", "-"))
end
end
}
return logging |
function dgsCreateSVG(...)
local svg
if select("#",...) == 1 then
local pathOrRaw = ...
if not(type(pathOrRaw) == "number") then error(dgsGenAsrt(pathOrRaw,"dgsCreateSVG",1,"string")) end
svg = svgCreate(pathOrRaw)
else
local w,h = ...
if not(type(w) == "number") then error(dgsGenAsrt(w,"dgsCreateSVG",1,"number")) end
if not(type(h) == "number") then error(dgsGenAsrt(h,"dgsCreateSVG",2,"number")) end
svg = svgCreate(w,h)
end
dgsSetType(svg,"dgs-dxsvg")
dgsElementData[svg] = {
svgDocument = svgGetDocumentXML(svg),
svgDocumentUpdate = false,
}
dgsSetData(svg,"asPlugin","dgs-dxsvg")
triggerEvent("onDgsPluginCreate",svg,sourceResource)
return svg
end
dgsCustomTexture["dgs-dxsvg"] = function(posX,posY,width,height,u,v,usize,vsize,image,rotation,rotationX,rotationY,color,postGUI)
local eleData = dgsElementData[image]
if eleData.svgDocumentUpdate then
svgSetDocumentXML(image,eleData.svgDocument)
eleData.svgDocumentUpdate = false
end
dxSetBlendMode("add")
if u and v and usize and vsize then
dxDrawImageSection(posX,posY,width,height,u,v,usize,vsize,image,rotation,rotationX,rotationY,color,postGUI)
else
dxDrawImage(posX,posY,width,height,image,rotation,rotationX,rotationY,color,postGUI)
end
dxSetBlendMode("blend")
return true
end
function dgsSVGGetSize(svg)
if not(dgsIsType(dgsEle,"svg")) then error(dgsGenAsrt(dgsEle,"dgsSVGGetSize",1,"svg")) end
return svgGetSize(svg)
end
function dgsSVGSetSize(svg,w,h)
if not(dgsIsType(dgsEle,"svg")) then error(dgsGenAsrt(dgsEle,"dgsSVGSetSize",1,"svg")) end
if not type(w) == "number" then error(dgsGenAsrt(w,"dgsSVGSetSize",2,"number")) end
if not type(h) == "number" then error(dgsGenAsrt(h,"dgsSVGSetSize",3,"number")) end
return svgSetSize(svg,w,h)
end
function toStyle(t)
local style = ""
for k,v in pairs(t) do
style = style..k..":"..v..";"
end
return style
end
function fromStyle(s)
local t = split(s,";")
local nTab = {}
for i=1,#t do
local pair = split(t[i],":")
if #pair == 2 then
nTab[pair[1]] = pair[2]
end
end
return nTab
end
function dgsSVGGetElementStyle(element)
local style = xmlNodeGetAttribute(element,"style") or ""
return fromStyle(style)
end
function dgsSVGSetElementStyle(element,styleTable)
return xmlNodeSetAttribute(element,"style",toStyle(styleTable))
end
function dgsSVGCreateRect(svg,x,y,width,height,parent,rx,ry)
if not(dgsIsType(svg,"svg")) then error(dgsGenAsrt(svg,"dgsSVGCreateRect",1,"svg")) end
local newRect = xmlCreateChild(parent or dgsElementData[svg].svgDocument,"rect")
xmlNodeSetAttribute(newRect,"x",x)
xmlNodeSetAttribute(newRect,"y",y)
xmlNodeSetAttribute(newRect,"width",width)
xmlNodeSetAttribute(newRect,"height",height)
xmlNodeSetAttribute(newRect,"rx",rx or 0)
xmlNodeSetAttribute(newRect,"ry",ry or 0)
dgsElementData[svg].svgDocumentUpdate = true
return newRect
end
function dgsSVGCreateCircle()
end
function dgsSVGCreateEllipse()
end
function dgsSVGCreateLine()
end
function dgsSVGCreatePolygon()
end
function dgsSVGCreatePath()
end
function dgsSVGCreateText()
end
function dgsSVGSetElementID()
end
function dgsSVGGetElementID()
end
function dgsSVGGetElementByID()
end
function dgsSVGGetElementsByType()
end
|
--
-- Copyright (c) 2018 Milos Tosic. All rights reserved.
-- License: http://www.opensource.org/licenses/BSD-2-Clause
--
-- Based on Qt4 build script from Kyle Hendricks <kyle.hendricks@gentex.com>
-- and Josh Lareau <joshua.lareau@gentex.com>
--
qt = {}
qt.version = "6" -- default Qt version
RTM_QT_FILES_PATH_MOC = "../.qt/qt_moc"
RTM_QT_FILES_PATH_UI = "../.qt/qt_ui"
RTM_QT_FILES_PATH_QRC = "../.qt/qt_qrc"
RTM_QT_FILES_PATH_TS = "../.qt/qt_qm"
QT_LIB_PREFIX = "Qt" .. qt.version
function qtConfigure( _config, _projectName, _mocfiles, _qrcfiles, _uifiles, _tsfiles, _libsToLink, _copyDynamicLibraries, _is64bit, _dbgPrefix )
local sourcePath = getProjectPath(_projectName) .. "src/"
local QT_PREBUILD_LUA_PATH = '"' .. RTM_ROOT_DIR .. "build/qtprebuild.lua" .. '"'
-- Defaults
local qtEnv = "QTDIR_" .. string.upper(_ACTION);
if _is64bit then
qtEnv = qtEnv .. "_x64"
else
qtEnv = qtEnv .. "_x86"
end
local QT_PATH = os.getenv(qtEnv)
if getTargetOS() == "windows" then
if QT_PATH == nil then
print ("ERROR: The " .. qtEnv .. " environment variable must be set to the Qt root directory to use qtpresets5.lua")
os.exit()
end
else
QT_PATH = ""
end
flatten( _mocfiles )
flatten( _qrcfiles )
flatten( _uifiles )
flatten( _tsfiles )
local QT_MOC_FILES_PATH = sourcePath .. RTM_QT_FILES_PATH_MOC
local QT_UI_FILES_PATH = sourcePath .. RTM_QT_FILES_PATH_UI
local QT_QRC_FILES_PATH = sourcePath .. RTM_QT_FILES_PATH_QRC
local QT_TS_FILES_PATH = sourcePath .. RTM_QT_FILES_PATH_TS
recreateDir( QT_MOC_FILES_PATH )
recreateDir( QT_QRC_FILES_PATH )
recreateDir( QT_UI_FILES_PATH )
recreateDir( QT_TS_FILES_PATH )
local LUAEXE = "lua "
if os.is("windows") then
LUAEXE = "lua.exe "
end
local addedFiles = {}
-- Set up Qt pre-build steps and add the future generated file paths to the pkg
for _,file in ipairs( _mocfiles ) do
local mocFile = stripExtension(file)
local mocFileBase = path.getbasename(file)
local mocFilePath = QT_MOC_FILES_PATH .. "/" .. mocFileBase .. "_moc.cpp"
local headerSrc = readFile(file);
if headerSrc:find("Q_OBJECT") then
local moc_header = path.getrelative(path.getdirectory(mocFilePath), file)
prebuildcommands { LUAEXE .. QT_PREBUILD_LUA_PATH .. ' -moc "' .. path.getabsolute(file) .. '" "' .. QT_PATH .. '" "' .. _projectName .. '" "' .. moc_header .. '"' }
local mocAbsolutePath = path.getabsolute(mocFilePath)
files { file, mocAbsolutePath }
table.insert(addedFiles, file)
end
end
for _,file in ipairs( _qrcfiles ) do
local qrcFile = stripExtension( file )
local qrcFilePath = QT_QRC_FILES_PATH .. "/" .. path.getbasename(file) .. "_qrc.cpp"
prebuildcommands { LUAEXE .. QT_PREBUILD_LUA_PATH .. ' -rcc "' .. path.getabsolute(file) .. '" "' .. QT_PATH .. '"' .. " " .. _projectName }
local qrcAbsolutePath = path.getabsolute(qrcFilePath)
files { file, qrcAbsolutePath }
table.insert(addedFiles, qrcAbsolutePath)
end
for _,file in ipairs( _uifiles ) do
local uiFile = stripExtension( file )
local uiFilePath = QT_UI_FILES_PATH .. "/" .. path.getbasename(file) .. "_ui.h"
prebuildcommands { LUAEXE .. QT_PREBUILD_LUA_PATH .. ' -uic "' .. path.getabsolute(file) .. '" "' .. QT_PATH .. '"' .. " " .. _projectName }
local uiAbsolutePath = path.getabsolute(uiFilePath)
files { file, uiAbsolutePath }
table.insert(addedFiles, uiAbsolutePath)
end
for _,file in ipairs( _tsfiles ) do
local tsFile = stripExtension( file )
local tsFilePath = QT_TS_FILES_PATH .. "/" .. path.getbasename(file) .. "_ts.qm"
prebuildcommands { LUAEXE .. QT_PREBUILD_LUA_PATH .. ' -ts "' .. path.getabsolute(file) .. '" "' .. QT_PATH .. '"' .. " " .. _projectName }
local tsAbsolutePath = path.getabsolute(tsFilePath)
files { file, tsAbsolutePath }
table.insert(addedFiles, tsAbsolutePath)
end
local subDir = getLocationDir()
local binDir = getBuildDirRoot(_config)
includedirs { QT_PATH .. "/include" }
if os.is("windows") then
_libsToLink = mergeTables(_libsToLink, "WinExtras")
if _copyDynamicLibraries then
local destPath = binDir
destPath = string.gsub( destPath, "([/]+)", "\\" ) .. 'bin\\'
for _, lib in ipairs( _libsToLink ) do
local libname = QT_LIB_PREFIX .. lib .. _dbgPrefix .. '.dll'
local source = QT_PATH .. '\\bin\\' .. libname
local dest = destPath .. "\\" .. libname
if not os.isdir(destPath) then
mkdir(destPath)
end
if not os.isdir(destPath .. "/platforms") then
mkdir(destPath .. "/platforms")
end
if not os.isfile(dest) then
os.copyfile( source, dest )
end
end
otherDLLNames = { "libEGL" .. _dbgPrefix, "libGLESv2" .. _dbgPrefix, "platforms\\qwindows" .. _dbgPrefix, "platforms\\qminimal" .. _dbgPrefix }
otherDLLSrcPrefix = { "\\bin\\", "\\bin\\", "\\plugins\\", "\\plugins\\", "\\bin\\" }
if _ACTION:find("gmake") then
if _is64bit then
otherDLLNames = mergeTwoTables(otherDLLNames, {"libstdc++_64-6"})
else
otherDLLNames = mergeTwoTables(otherDLLNames, {"libstdc++-6"})
end
end
for i=1, #otherDLLNames, 1 do
local libname = otherDLLNames[i] .. '.dll'
local source = QT_PATH .. otherDLLSrcPrefix[i] .. libname
local dest = destPath .. '\\' .. libname
if not os.isfile(dest) then
mkdir(path.getdirectory(dest))
os.copyfile( source, dest )
end
end
-- optional OpenSSL
if os.isdir(RTM_ROOT_DIR .. "3rd\\openssl_winbinaries") then
local winVer = "win32"
if _is64bit then
winVer = "win64"
end
local src1 = string.gsub( RTM_ROOT_DIR .. "3rd\\openssl_winbinaries\\" .. winVer .. "\\libeay32.dll", "([/]+)", "\\" )
local src2 = string.gsub( RTM_ROOT_DIR .. "3rd\\openssl_winbinaries\\" .. winVer .. "\\ssleay32.dll", "([/]+)", "\\" )
os.copyfile( src1, destPath .. "libeay32.dll" )
os.copyfile( src2, destPath .. "ssleay32.dll" )
end
end
defines { "QT_THREAD_SUPPORT", "QT_USE_QSTRINGBUILDER" }
local libsDirectory = QT_PATH .. "/lib/"
configuration { _config }
libdirs { libsDirectory }
configuration { _config }
includedirs { QT_PATH .. "/qtwinextras/include" }
if _ACTION:find("vs") then
-- Qt rcc doesn't support forced header inclusion - preventing us to do PCH in visual studio (gcc accepts files that don't include pch)
buildoptions( "/FI" .. '"' .. _projectName .. "_pch.h" .. '"' .. " " )
-- 4127 conditional expression is constant
-- 4275 non dll-interface class 'stdext::exception' used as base for dll-interface class 'std::bad_cast'
buildoptions( "/wd4127 /wd4275 /Zc:__cplusplus /std:c++17" )
end
for _, lib in ipairs( _libsToLink ) do
local libDebug = libsDirectory .. QT_LIB_PREFIX .. lib .. "d" -- .. ".lib"
local libRelease = libsDirectory .. QT_LIB_PREFIX .. lib -- .. ".lib"
configuration { "debug", _config }
links( libDebug )
configuration { "not debug", _config }
links( libRelease )
end
configuration { _config }
else
-- check if X11Extras is needed
local extrasLib = QT_PATH .. "lib/lib" .. QT_LIB_PREFIX .. "X11Extras.a"
if os.isfile(extrasLib) == true then
_libsToLink = mergeTables(_libsToLink, "X11Extras")
end
-- should run this first (path may vary):
-- export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/home/user/Qt5.7.0/5.7/gcc_64/lib/pkgconfig
-- lfs support is required too: sudo luarocks install luafilesystem
local qtLinks = QT_LIB_PREFIX .. table.concat( libsToLink, " " .. QT_LIB_PREFIX )
local qtLibs = "pkg-config --libs " .. qtLinks
local qtFlags = "pkg-config --cflags " .. qtLinks
local libPipe = io.popen( qtLibs, 'r' )
local flagPipe= io.popen( qtFlags, 'r' )
qtLibs = libPipe:read( '*line' )
qtFlags = flagPipe:read( '*line' )
libPipe:close()
flagPipe:close()
configuration { _config }
buildoptions { qtFlags }
linkoptions { qtLibs }
end
configuration {}
return addedFiles
end
|
-- #######################################
-- ## Project: MTA iLife ##
-- ## Name: ModelLoader.lua ##
-- ## Author: Noneatme ##
-- ## Version: 1.0 ##
-- ## License: See top Folder ##
-- #######################################
-- FUNCTIONS / METHODS --
local cFunc = {}; -- Local Functions
local cSetting = {}; -- Local Settings
ModelLoader = {};
ModelLoader.__index = ModelLoader;
addEvent("onClientDownloadFinnished", true)
--[[
]]
-- ///////////////////////////////
-- ///// New //////
-- ///// Returns: Object //////
-- ///////////////////////////////
function ModelLoader:New(...)
local obj = setmetatable({}, {__index = self});
if obj.Constructor then
obj:Constructor(...);
end
return obj;
end
-- ///////////////////////////////
-- ///// LoadModels //////
-- ///// Returns: void //////
-- ///////////////////////////////
function ModelLoader:LoadModels()
for model, id in pairs(self.models) do
local dff = engineLoadDFF("res/models/"..model..".dff", 0);
local txd = engineLoadTXD("res/textures/"..model..".txd", true);
engineImportTXD(txd, id);
engineReplaceModel(dff, id);
end
end
-- ///////////////////////////////
-- ///// Constructor //////
-- ///// Returns: void //////
-- ///////////////////////////////
function ModelLoader:Constructor(...)
-- Klassenvariablen --
self.models =
{
["Info_v2"] = 1239,
};
-- Methoden --
addEventHandler("onClientDownloadFinnished", getLocalPlayer(), function()
self:LoadModels()
end)
-- Events --
--logger:OutputInfo("[CALLING] ModelLoader: Constructor");
end
-- EVENT HANDLER --
|
local M = {}
local options = {
size = 80,
type = 0
}
local function setup(opts, ifNotExists)
if not opts then
return
end
if type(opts) ~= "table" then
print("WARNING program.nvim - setup.terminal")
print("'terminal' needs to be a table")
return
end
if options.size == nil or ifNotExists == false then
if opts.size then
if opts.size < 10 or opts.size > 200 then
print("WARNING program.nvim - setup.terminal")
print("'terminal.size'" .. "can only be between 10 and 200")
else
options.size = opts.size
end
end
end
if options.type == nil or ifNotExists == false then
if opts.type then
if (opts.type ~= 0 and opts.type ~= 1) then
print("WARNING program.nvim - setup.terminal")
print("'terminal.type' can only be 0 or 1")
else
options.type = opts.type
end
end
end
end
function M.setup(opts)
setup(opts, false)
end
function M.setupIfNoConfig(opts)
setup(opts, true)
end
local create_window = function()
if options.type == 1 then
vim.cmd("new terminal | resize" .. options.size)
else
vim.cmd("vertical new terminal | vertical resize" .. options.size)
end
end
function M.toggle_terminal()
local term_buffers = vim.fn.split(vim.fn.execute("buffers R"), "\n")
if term_buffers == nil or next(term_buffers) == nil then
create_window()
vim.fn.termopen(vim.o.shell, {detach = 0})
else
local buf_nr = tonumber(vim.fn.split(term_buffers[1], " ")[1])
local win_nr = vim.fn.bufwinid(buf_nr)
if vim.fn.win_gotoid(win_nr) == 1 then
vim.cmd("hide")
return
else
create_window()
vim.cmd("buffer " .. buf_nr)
end
end
vim.cmd("startinsert!")
end
function M.get_opts()
return options
end
return M
|
local PLUGIN = PLUGIN
PLUGIN.name = "World Item Spawner"
PLUGIN.author = "Black Tea (NS 1.0), Neon (NS 1.1)"
PLUGIN.desc = "World Item Spawner."
PLUGIN.itempoints = PLUGIN.itempoints or {}
PLUGIN.spawngroups = { -- Example is based on HL2RP items.
["ore"] = {
{"ore"},
}
}
PLUGIN.spawnrate = 30
PLUGIN.maxitems = 50
PLUGIN.itemsperspawn = 2
PLUGIN.spawneditems = PLUGIN.spawneditems or {}
if SERVER then
local spawntime = 1
function PLUGIN:ItemShouldSave(entity)
return (!entity.generated)
end
function PLUGIN:Think()
if spawntime > CurTime() then return end
spawntime = CurTime() + self.spawnrate
for k, v in ipairs(self.spawneditems) do
if (!v:IsValid()) then
table.remove(self.spawneditems, k)
end
end
if #self.spawneditems >= self.maxitems then return end
for i = 1, self.itemsperspawn do
if #self.spawneditems >= self.maxitems then
table.remove(self.spawneditems)
return
end
local v = table.Random(self.itempoints)
if (!v) then
return
end
local data = {}
data.start = v[1]
data.endpos = data.start + Vector(0, 0, 1)
data.filter = client
data.mins = Vector(-16, -16, 0)
data.maxs = Vector(16, 16, 16)
local trace = util.TraceHull(data)
if trace.Entity:IsValid() then
continue
end
local idat = table.Random(self.spawngroups[v[2]]) or self.spawngroup["default"]
nut.item.spawn(idat[1], v[1] + Vector( math.Rand(-8,8), math.Rand(-8,8), 10 ), nil, AngleRand(), idat[2] or {})
end
end
function PLUGIN:LoadData()
self.itempoints = self:getData() or {}
end
function PLUGIN:SaveData()
self:setData(self.itempoints)
end
else
netstream.Hook("nut_DisplaySpawnPoints", function(data)
for k, v in pairs(data) do
local emitter = ParticleEmitter( v[1] )
local smoke = emitter:Add( "sprites/glow04_noz", v[1] )
smoke:SetVelocity( Vector( 0, 0, 1 ) )
smoke:SetDieTime(10)
smoke:SetStartAlpha(255)
smoke:SetEndAlpha(255)
smoke:SetStartSize(64)
smoke:SetEndSize(64)
smoke:SetColor(255,186,50)
smoke:SetAirResistance(300)
end
end)
end
nut.command.add("itemspawnadd", {
adminOnly = true,
syntax = "<string itemgroup>",
onRun = function(client, arguments)
local trace = client:GetEyeTraceNoCursor()
local hitpos = trace.HitPos + trace.HitNormal*5
local spawngroup = arguments[1] or "default"
table.insert( PLUGIN.itempoints, { hitpos, spawngroup } )
client:notify( "You added ".. spawngroup .. " item spawner." )
end
})
nut.command.add("itemspawnremove", {
adminOnly = true,
onRun = function(client, arguments)
local trace = client:GetEyeTraceNoCursor()
local hitpos = trace.HitPos + trace.HitNormal*5
local range = arguments[1] or 128
local mt = 0
for k, v in pairs( PLUGIN.itempoints ) do
local distance = v[1]:Distance( hitpos )
if distance <= tonumber(range) then
PLUGIN.itempoints[k] = nil
mt = mt + 1
end
end
client:notify( mt .. " item spawners has been removed.")
end
})
nut.command.add("itemspawndisplay", {
adminOnly = true,
onRun = function(client, arguments)
if SERVER then
netstream.Start(client, "nut_DisplaySpawnPoints", PLUGIN.itempoints)
client:notify( "Displayed All Points for 10 secs." )
end
end
})
|
------------------------------------------------------------------------------
-- DynASM s390x module.
--
-- Copyright (C) 2005-2017 Mike Pall. All rights reserved.
-- See dynasm.lua for full copyright notice.
------------------------------------------------------------------------------
-- Module information:
local _info = {
arch = "s390x",
description = "DynASM s390x module",
version = "1.4.0",
vernum = 10400,
release = "2015-10-18",
author = "Mike Pall",
license = "MIT",
}
-- Exported glue functions for the arch-specific module.
local _M = { _info = _info }
-- Cache library functions.
local type, tonumber, pairs, ipairs = type, tonumber, pairs, ipairs
local assert, setmetatable, rawget = assert, setmetatable, rawget
local _s = string
local sub, format, byte, char = _s.sub, _s.format, _s.byte, _s.char
local match, gmatch, gsub = _s.match, _s.gmatch, _s.gsub
local concat, sort, insert = table.concat, table.sort, table.insert
local bit = bit or require("bit")
local band, shl, shr, sar = bit.band, bit.lshift, bit.rshift, bit.arshift
local ror, tohex = bit.ror, bit.tohex
-- Inherited tables and callbacks.
local g_opt, g_arch
local wline, werror, wfatal, wwarn
-- Action name list.
-- CHECK: Keep this in sync with the C code!
local action_names = {
"STOP", "SECTION", "ESC", "REL_EXT",
"ALIGN", "REL_LG", "LABEL_LG",
"REL_PC", "LABEL_PC", "DISP12", "DISP20", "IMM8", "IMM16", "IMM32", "LEN8R","LEN4HR","LEN4LR",
}
-- Maximum number of section buffer positions for dasm_put().
-- CHECK: Keep this in sync with the C code!
local maxsecpos = 25 -- Keep this low, to avoid excessively long C lines.
-- Action name -> action number.
local map_action = {}
local max_action = 0
for n, name in ipairs(action_names) do
map_action[name] = n-1
max_action = n
end
-- Action list buffer.
local actlist = {}
-- Argument list for next dasm_put(). Start with offset 0 into action list.
local actargs = { 0 }
-- Current number of section buffer positions for dasm_put().
local secpos = 1
------------------------------------------------------------------------------
-- Dump action names and numbers.
local function dumpactions(out)
out:write("DynASM encoding engine action codes:\n")
for n, name in ipairs(action_names) do
local num = map_action[name]
out:write(format(" %-10s %02X %d\n", name, num, num))
end
out:write("\n")
end
local function havearg(a)
return a == "ESC" or
a == "SECTION" or
a == "REL_LG" or
a == "LABEL_LG" or
a == "REL_EXT"
end
-- Write action list buffer as a huge static C array.
local function writeactions(out, name)
local nn = #actlist
if nn == 0 then nn = 1; actlist[0] = map_action.STOP end
out:write("static const unsigned short ", name, "[", nn, "] = {")
local esc = false -- also need to escape for action arguments
for i = 1, nn do
assert(out:write("\n 0x", sub(tohex(actlist[i]), 5, 8)))
if i ~= nn then assert(out:write(",")) end
local name = action_names[actlist[i]+1]
if not esc and name then
assert(out:write(" /* ", name, " */"))
esc = havearg(name)
else
esc = false
end
end
assert(out:write("\n};\n\n"))
end
------------------------------------------------------------------------------
-- Add halfword to action list.
local function wputxhw(n)
assert(n >= 0 and n <= 0xffff, "halfword out of range")
actlist[#actlist+1] = n
end
-- Add action to list with optional arg. Advance buffer pos, too.
local function waction(action, val, a, num)
local w = assert(map_action[action], "bad action name `"..action.."'")
wputxhw(w)
if val then wputxhw(val) end -- Not sure about this, do we always have one arg?
if a then actargs[#actargs+1] = a end
if val or a or num then secpos = secpos + (num or 1) end
end
-- Flush action list (intervening C code or buffer pos overflow).
local function wflush(term)
if #actlist == actargs[1] then return end -- Nothing to flush.
if not term then waction("STOP") end -- Terminate action list.
wline(format("dasm_put(Dst, %s);", concat(actargs, ", ")), true)
actargs = { #actlist } -- Actionlist offset is 1st arg to next dasm_put().
secpos = 1 -- The actionlist offset occupies a buffer position, too.
end
-- Put escaped halfword.
local function wputhw(n)
if n <= max_action then waction("ESC") end
wputxhw(n)
end
-- Reserve position for halfword.
local function wpos()
local pos = #actlist+1
actlist[pos] = ""
return pos
end
------------------------------------------------------------------------------
-- Global label name -> global label number. With auto assignment on 1st use.
local next_global = 20
local map_global = setmetatable({}, { __index = function(t, name)
if not match(name, "^[%a_][%w_]*$") then werror("bad global label") end
local n = next_global
if n > 2047 then werror("too many global labels") end
next_global = n + 1
t[name] = n
return n
end})
-- Dump global labels.
local function dumpglobals(out, lvl)
local t = {}
for name, n in pairs(map_global) do t[n] = name end
out:write("Global labels:\n")
for i=20, next_global-1 do
out:write(format(" %s\n", t[i]))
end
out:write("\n")
end
-- Write global label enum.
local function writeglobals(out, prefix)
local t = {}
for name, n in pairs(map_global) do t[n] = name end
out:write("enum {\n")
for i=20, next_global-1 do
out:write(" ", prefix, t[i], ",\n")
end
out:write(" ", prefix, "_MAX\n};\n")
end
-- Write global label names.
local function writeglobalnames(out, name)
local t = {}
for name, n in pairs(map_global) do t[n] = name end
out:write("static const char *const ", name, "[] = {\n")
for i=20, next_global-1 do
out:write(" \"", t[i], "\",\n")
end
out:write(" (const char *)0\n};\n")
end
------------------------------------------------------------------------------
-- Extern label name -> extern label number. With auto assignment on 1st use.
local next_extern = 0
local map_extern_ = {}
local map_extern = setmetatable({}, { __index = function(t, name)
-- No restrictions on the name for now.
local n = next_extern
if n > 2047 then werror("too many extern labels") end
next_extern = n + 1
t[name] = n
map_extern_[n] = name
return n
end})
-- Dump extern labels.
local function dumpexterns(out, lvl)
out:write("Extern labels:\n")
for i=0, next_extern-1 do
out:write(format(" %s\n", map_extern_[i]))
end
out:write("\n")
end
-- Write extern label names.
local function writeexternnames(out, name)
out:write("static const char *const ", name, "[] = {\n")
for i=0, next_extern-1 do
out:write(" \"", map_extern_[i], "\",\n")
end
out:write(" (const char *)0\n};\n")
end
------------------------------------------------------------------------------
-- Arch-specific maps.
-- Ext. register name -> int. name.
local map_archdef = { sp = "r15" }
-- Int. register name -> ext. name.
local map_reg_rev = { r15 = "sp" }
local map_type = {} -- Type name -> { ctype, reg }
local ctypenum = 0 -- Type number (for Dt... macros).
-- Reverse defines for registers.
function _M.revdef(s)
return map_reg_rev[s] or s
end
local map_cond = {
o = 1, h = 2, nle = 3, l = 4,
nhe = 5, lh = 6, ne = 7, e = 8,
nlh = 9, he = 10, nl = 11, le = 12,
nh = 13, no = 14, [""] = 15,
}
------------------------------------------------------------------------------
local function parse_reg(expr)
if not expr then werror("expected register name") end
local tname, ovreg = match(expr, "^([%w_]+):(r1?%d)$")
local tp = map_type[tname or expr]
if tp then
local reg = ovreg or tp.reg
if not reg then
werror("type `"..(tname or expr).."' needs a register override")
end
expr = reg
end
local r = match(expr, "^[rf](1?%d)$")
if r then
r = tonumber(r)
if r <= 15 then return r, tp end
end
werror("bad register name `"..expr.."'")
end
local parse_ctx = {}
local loadenv = setfenv and function(s)
local code = loadstring(s, "")
if code then setfenv(code, parse_ctx) end
return code
end or function(s)
return load(s, "", nil, parse_ctx)
end
-- Try to parse simple arithmetic, too, since some basic ops are aliases.
local function parse_number(n)
local x = tonumber(n)
if x then return x end
local code = loadenv("return "..n)
if code then
local ok, y = pcall(code)
if ok then return y end
end
return nil
end
local function is_uint12(num)
return 0 <= num and num < 4096
end
local function is_int20(num)
return -shl(1, 19) <= num and num < shl(1, 19)
end
local function is_int32(num)
return -2147483648 <= num and num < 2147483648
end
local function is_uint16(num)
return 0 <= num and num < 0xffff
end
local function is_int16(num)
return -32768 <= num and num < 32768
end
local function is_int8(num)
return -128 <= num and num < 128
end
local function is_uint8(num)
return 0 <= num and num < 256
end
-- Split a memory operand of the form d(b) or d(x,b) into d, x and b.
-- If x is not specified then it is 0.
local function split_memop(arg)
local reg = "[%w_:]+"
local d, x, b = match(arg, "^(.*)%(%s*("..reg..")%s*,%s*("..reg..")%s*%)$")
if d then
return d, parse_reg(x), parse_reg(b)
end
local d, b = match(arg, "^(.*)%(%s*("..reg..")%s*%)$")
if d then
return d, 0, parse_reg(b)
end
-- Assume the two registers are passed as "(r1,r2)", and displacement(d) is not specified. TODO: not sure if we want to do this, GAS doesn't.
local x, b = match(arg,"%(%s*("..reg..")%s*,%s*("..reg..")%s*%)$")
if b then
return 0, parse_reg(x), parse_reg(b)
end
-- Accept a lone integer as a displacement. TODO: allow expressions/variables here? Interacts badly with the other rules currently.
local d = match(arg,"^(-?[%d]+)$")
if d then
return d, 0, 0
end
local reg, tailr = match(arg, "^([%w_:]+)%s*(.*)$")
if reg then
local r, tp = parse_reg(reg)
if tp then
return format(tp.ctypefmt, tailr), 0, r
end
end
werror("bad memory operand: "..arg)
return nil
end
-- Parse memory operand of the form d(x, b) where 0 <= d < 4096 and b and x
-- are GPRs.
-- If the fourth return value is not-nil then it needs to be called to
-- insert an action.
-- Encoded as: xbddd
local function parse_mem_bx(arg)
local d, x, b = split_memop(arg)
local dval = tonumber(d)
if dval then
if not is_uint12(dval) then
werror("displacement out of range: ", dval)
end
return dval, x, b, nil
end
if match(d, "^[rf]1?[0-9]?") then
werror("expected immediate operand, got register")
end
return 0, x, b, function() waction("DISP12", nil, d) end
end
-- Parse memory operand of the form d(b) where 0 <= d < 4096 and b is a GPR.
-- Encoded as: bddd
local function parse_mem_b(arg)
local d, x, b, a = parse_mem_bx(arg)
if x ~= 0 then
werror("unexpected index register")
end
return d, b, a
end
-- Parse memory operand of the form d(x, b) where -(2^20)/2 <= d < (2^20)/2
-- and b and x are GPRs.
-- Encoded as: xblllhh (ls are the low-bits of d, and hs are the high bits).
local function parse_mem_bxy(arg)
local d, x, b = split_memop(arg)
local dval = tonumber(d)
if dval then
if not is_int20(dval) then
werror("displacement out of range: ", dval)
end
return dval, x, b, nil
end
if match(d, "^[rf]1?[0-9]?") then
werror("expected immediate operand, got register")
end
return 0, x, b, function() waction("DISP20", nil, d) end
end
-- Parse memory operand of the form d(b) where -(2^20)/2 <= d < (2^20)/2 and
-- b is a GPR.
-- Encoded as: blllhh (ls are the low-bits of d, and hs are the high bits).
local function parse_mem_by(arg)
local d, x, b, a = parse_mem_bxy(arg)
if x ~= 0 then
werror("unexpected index register")
end
return d, b, a
end
-- Parse memory operand of the form d(l, b) where 0 <= d < 4096, 1 <= l <= 256,
-- and b is a GPR.
local function parse_mem_lb(arg)
local reg = "r1?[0-9]"
local d, l, b = match(arg, "^(.*)%s*%(%s*(.*)%s*,%s*("..reg..")%s*%)$")
if not d then
-- TODO: handle values without registers?
-- TODO: handle registers without a displacement?
werror("bad memory operand: "..arg)
return nil
end
local dval = tonumber(d)
local dact = nil
if dval then
if not is_uint12(dval) then
werror("displacement out of range: ", dval)
end
else
dval = 0
dact = function() waction("DISP12", nil, d) end
end
local lval = tonumber(l)
local lact = nil
if lval then
if lval < 1 or lval > 256 then
werror("length out of range: ", dval)
end
lval = lval - 1
else
lval = 0
lact = function() waction("LEN8R", nil, l) end
end
return dval, lval, parse_reg(b), dact, lact
end
local function parse_mem_l2b(arg, high_l)
local reg = "r1?[0-9]"
local d, l, b = match(arg, "^(.*)%s*%(%s*(.*)%s*,%s*("..reg..")%s*%)$")
if not d then
-- TODO: handle values without registers?
-- TODO: handle registers without a displacement?
werror("bad memory operand: "..arg)
return nil
end
local dval = tonumber(d)
local dact = nil
if dval then
if not is_uint12(dval) then
werror("displacement out of range: ", dval)
end
else
dval = 0
dact = function() waction("DISP12", nil, d) end
end
local lval = tonumber(l)
local lact = nil
if lval then
if lval < 1 or lval > 128 then
werror("length out of range: ", dval)
end
lval = lval - 1
else
lval = 0
if high_l then
lact = function() waction("LEN4HR", nil, l) end
else
lact = function() waction("LEN4LR", nil, l) end
end
end
return dval, lval, parse_reg(b), dact, lact
end
local function parse_imm32(imm)
local imm_val = tonumber(imm)
if imm_val then
if not is_int32(imm_val) then
werror("immediate value out of range: ", imm_val)
end
wputhw(band(shr(imm_val, 16), 0xffff))
wputhw(band(imm_val, 0xffff))
elseif match(imm, "^[rfv]([1-3]?[0-9])$") or
match(imm, "^([%w_]+):(r1?[0-9])$") then
werror("expected immediate operand, got register")
else
waction("IMM32", nil, imm) -- if we get label
end
end
local function parse_imm16(imm)
local imm_val = tonumber(imm)
if imm_val then
if not is_int16(imm_val) and not is_uint16(imm_val) then
werror("immediate value out of range: ", imm_val)
end
wputhw(band(imm_val, 0xffff))
elseif match(imm, "^[rfv]([1-3]?[0-9])$") or
match(imm, "^([%w_]+):(r1?[0-9])$") then
werror("expected immediate operand, got register")
else
waction("IMM16", nil, imm)
end
end
local function parse_imm8(imm)
local imm_val = tonumber(imm)
if imm_val then
if not is_int8(imm_val) and not is_uint8(imm_val) then
werror("Immediate value out of range: ", imm_val)
end
return imm_val, nil
end
return 0, function() waction("IMM8", nil, imm) end
end
local function parse_mask(mask)
local m3 = parse_number(mask)
if m3 then
if ((m3 == 1) or (m3 == 0) or ( m3 >=3 and m3 <=7)) then
return m3
else
werror("Mask value should be 0,1 or 3-7: ", m3)
end
end
end
local function parse_mask2(mask)
local m4 = parse_number(mask)
if ( m4 >=0 and m4 <=1) then
return m4
else
werror("Mask value should be 0 or 1: ", m4)
end
end
local function parse_label(label, def)
local prefix = sub(label, 1, 2)
-- =>label (pc label reference)
if prefix == "=>" then
return "PC", 0, sub(label, 3)
end
-- ->name (global label reference)
if prefix == "->" then
return "LG", map_global[sub(label, 3)]
end
if def then
-- [1-9] (local label definition)
if match(label, "^[1-9]$") then
return "LG", 10+tonumber(label)
end
else
-- [<>][1-9] (local label reference)
local dir, lnum = match(label, "^([<>])([1-9])$")
if dir then -- Fwd: 1-9, Bkwd: 11-19.
return "LG", lnum + (dir == ">" and 0 or 10)
end
-- extern label (extern label reference)
local extname = match(label, "^extern%s+(%S+)$")
if extname then
return "EXT", map_extern[extname]
end
end
werror("bad label `"..label.."'")
end
------------------------------------------------------------------------------
local map_op, op_template
local function op_alias(opname, f)
return function(params, nparams)
if not params then return "-> "..opname:sub(1, -3) end
f(params, nparams)
op_template(params, map_op[opname], nparams)
end
end
-- Template strings for s390x instructions.
map_op = {
a_2 = "00005a000000RX-a",
ad_2 = "00006a000000RX-a",
adb_2 = "ed000000001aRXE",
adbr_2 = "0000b31a0000RRE",
adr_2 = "000000002a00RR",
ae_2 = "00007a000000RX-a",
aeb_2 = "ed000000000aRXE",
aebr_2 = "0000b30a0000RRE",
aer_2 = "000000003a00RR",
afi_2 = "c20900000000RIL-a",
ag_2 = "e30000000008RXY-a",
agf_2 = "e30000000018RXY-a",
agfi_2 = "c20800000000RIL-a",
agfr_2 = "0000b9180000RRE",
aghi_2 = "0000a70b0000RI-a",
agr_2 = "0000b9080000RRE",
ah_2 = "00004a000000RX-a",
ahi_2 = "0000a70a0000RI-a",
ahy_2 = "e3000000007aRXY-a",
aih_2 = "cc0800000000RIL-a",
al_2 = "00005e000000RX-a",
alc_2 = "e30000000098RXY-a",
alcg_2 = "e30000000088RXY-a",
alcgr_2 = "0000b9880000RRE",
alcr_2 = "0000b9980000RRE",
alfi_2 = "c20b00000000RIL-a",
alg_2 = "e3000000000aRXY-a",
algf_2 = "e3000000001aRXY-a",
algfi_2 = "c20a00000000RIL-a",
algfr_2 = "0000b91a0000RRE",
algr_2 = "0000b90a0000RRE",
alr_2 = "000000001e00RR",
alsih_2 = "cc0a00000000RIL-a",
alsihn_2 = "cc0b00000000RIL-a",
aly_2 = "e3000000005eRXY-a",
ap_2 = "fa0000000000SS-b",
ar_2 = "000000001a00RR",
au_2 = "00007e000000RX-a",
aur_2 = "000000003e00RR",
aw_2 = "00006e000000RX-a",
awr_2 = "000000002e00RR",
axbr_2 = "0000b34a0000RRE",
axr_2 = "000000003600RR",
ay_2 = "e3000000005aRXY-a",
bakr_2 = "0000b2400000RRE",
bal_2 = "000045000000RX-a",
balr_2 = "000000000500RR",
bas_2 = "00004d000000RX-a",
basr_2 = "000000000d00RR",
bassm_2 = "000000000c00RR",
bc_2 = "000047000000RX-b",
bcr_2 = "000000000700RR",
bct_2 = "000046000000RX-a",
bctg_2 = "e30000000046RXY-a",
bctgr_2 = "0000b9460000RRE",
bctr_2 = "000000000600RR",
bras_2 = "0000a7050000RI-b",
brasl_2 = "c00500000000RIL-b",
brc_2 = "0000a7040000RI-c",
brcl_2 = "c00400000000RIL-c",
brct_2 = "0000a7060000RI-b",
brctg_2 = "0000a7070000RI-b",
brcth_2 = "cc0600000000RIL-b",
brxh_3 = "000084000000RSI",
brxhg_3 = "ec0000000044RIE-e",
bsa_2 = "0000b25a0000RRE",
bsg_2 = "0000b2580000RRE",
bsm_2 = "000000000b00RR",
bxh_3 = "000086000000RS-a",
bxhg_3 = "eb0000000044RSY-a",
bxle_3 = "000087000000RS-a",
bxleg_3 = "eb0000000045RSY-a",
c_2 = "000059000000RX-a",
cd_2 = "000069000000RX-a",
cdb_2 = "ed0000000019RXE",
cdbr_2 = "0000b3190000RRE",
cdfbr_2 = "0000b3950000RRE",
cdfbra_4 = "0000b3950000RRF-e",
cdfr_2 = "0000b3b50000RRE",
cdftr_2 = "0000b9510000RRE",
cdgbr_2 = "0000b3a50000RRE",
cdgbra_4 = "0000b3a50000RRF-e",
cdgr_2 = "0000b3c50000RRE",
cdgtr_2 = "0000b3f10000RRE",
cdr_2 = "000000002900RR",
cds_3 = "0000bb000000RS-a",
cdsg_3 = "eb000000003eRSY-a",
cdstr_2 = "0000b3f30000RRE",
cdsy_3 = "eb0000000031RSY-a",
cdtr_2 = "0000b3e40000RRE",
cdutr_2 = "0000b3f20000RRE",
ce_2 = "000079000000RX-a",
ceb_2 = "ed0000000009RXE",
cebr_2 = "0000b3090000RRE",
cedtr_2 = "0000b3f40000RRE",
cefbr_2 = "0000b3940000RRE",
cefbra_4 = "0000b3940000RRF-e",
cefr_2 = "0000b3b40000RRE",
cegbr_2 = "0000b3a40000RRE",
cegbra_4 = "0000b3a40000RRF-e",
cegr_2 = "0000b3c40000RRE",
cer_2 = "000000003900RR",
cextr_2 = "0000b3fc0000RRE",
cfdbr_3 = "0000b3990000RRF-e",
cfdbra_4 = "0000b3990000RRF-e",
cfebr_3 = "0000b3980000RRF-e",
cfebra_4 = "0000b3980000RRF-e",
cfi_2 = "c20d00000000RIL-a",
cfxbr_3 = "0000b39a0000RRF-e",
cfxbra_4 = "0000b39a0000RRF-e",
cg_2 = "e30000000020RXY-a",
cgdbr_3 = "0000b3a90000RRF-e",
cgdbra_4 = "0000b3a90000RRF-e",
cgebr_3 = "0000b3a80000RRF-e",
cgebra_4 = "0000b3a80000RRF-e",
cgf_2 = "e30000000030RXY-a",
cgfi_2 = "c20c00000000RIL-a",
cgfr_2 = "0000b9300000RRE",
cgfrl_2 = "c60c00000000RIL-b",
cgh_2 = "e30000000034RXY-a",
cghi_2 = "0000a70f0000RI-a",
cghrl_2 = "c60400000000RIL-b",
cgr_2 = "0000b9200000RRE",
cgrl_2 = "c60800000000RIL-b",
cgxbr_3 = "0000b3aa0000RRF-e",
cgxbra_4 = "0000b3aa0000RRF-e",
ch_2 = "000049000000RX-a",
chf_2 = "e300000000cdRXY-a",
chhr_2 = "0000b9cd0000RRE",
chi_2 = "0000a70e0000RI-a",
chlr_2 = "0000b9dd0000RRE",
chrl_2 = "c60500000000RIL-b",
chy_2 = "e30000000079RXY-a",
cih_2 = "cc0d00000000RIL-a",
cksm_2 = "0000b2410000RRE",
cl_2 = "000055000000RX-a",
clc_2 = "d50000000000SS-a",
clcl_2 = "000000000f00RR",
clcle_3 = "0000a9000000RS-a",
clclu_3 = "eb000000008fRSY-a",
clfi_2 = "c20f00000000RIL-a",
clg_2 = "e30000000021RXY-a",
clgf_2 = "e30000000031RXY-a",
clgfi_2 = "c20e00000000RIL-a",
clgfr_2 = "0000b9310000RRE",
clgfrl_2 = "c60e00000000RIL-b",
clghrl_2 = "c60600000000RIL-b",
clgr_2 = "0000b9210000RRE",
clgrl_2 = "c60a00000000RIL-b",
clhf_2 = "e300000000cfRXY-a",
clhhr_2 = "0000b9cf0000RRE",
clhlr_2 = "0000b9df0000RRE",
clhrl_2 = "c60700000000RIL-b",
cli_2 = "000095000000SI",
clih_2 = "cc0f00000000RIL-a",
clm_3 = "0000bd000000RS-b",
clmh_3 = "eb0000000020RSY-b",
clmy_3 = "eb0000000021RSY-b",
clr_2 = "000000001500RR",
clrl_2 = "c60f00000000RIL-b",
clst_2 = "0000b25d0000RRE",
cly_2 = "e30000000055RXY-a",
cmpsc_2 = "0000b2630000RRE",
cpya_2 = "0000b24d0000RRE",
cr_2 = "000000001900RR",
crl_2 = "c60d00000000RIL-b",
cs_3 = "0000ba000000RS-a",
csg_3 = "eb0000000030RSY-a",
csp_2 = "0000b2500000RRE",
cspg_2 = "0000b98a0000RRE",
csy_3 = "eb0000000014RSY-a",
cu41_2 = "0000b9b20000RRE",
cu42_2 = "0000b9b30000RRE",
cudtr_2 = "0000b3e20000RRE",
cuse_2 = "0000b2570000RRE",
cuxtr_2 = "0000b3ea0000RRE",
cvb_2 = "00004f000000RX-a",
cvbg_2 = "e3000000000eRXY-a",
cvby_2 = "e30000000006RXY-a",
cvd_2 = "00004e000000RX-a",
cvdg_2 = "e3000000002eRXY-a",
cvdy_2 = "e30000000026RXY-a",
cxbr_2 = "0000b3490000RRE",
cxfbr_2 = "0000b3960000RRE",
cxfbra_4 = "0000b3960000RRF-e",
cxfr_2 = "0000b3b60000RRE",
cxftr_2 = "0000b9590000RRE",
cxgbr_2 = "0000b3a60000RRE",
cxgbra_4 = "0000b3a60000RRF-e",
cxgr_2 = "0000b3c60000RRE",
cxgtr_2 = "0000b3f90000RRE",
cxr_2 = "0000b3690000RRE",
cxstr_2 = "0000b3fb0000RRE",
cxtr_2 = "0000b3ec0000RRE",
cxutr_2 = "0000b3fa0000RRE",
cy_2 = "e30000000059RXY-a",
d_2 = "00005d000000RX-a",
dd_2 = "00006d000000RX-a",
ddb_2 = "ed000000001dRXE",
ddbr_2 = "0000b31d0000RRE",
ddr_2 = "000000002d00RR",
de_2 = "00007d000000RX-a",
deb_2 = "ed000000000dRXE",
debr_2 = "0000b30d0000RRE",
der_2 = "000000003d00RR",
didbr_4 = "0000b35b0000RRF-b",
dl_2 = "e30000000097RXY-a",
dlg_2 = "e30000000087RXY-a",
dlgr_2 = "0000b9870000RRE",
dlr_2 = "0000b9970000RRE",
dr_2 = "000000001d00RR",
dsg_2 = "e3000000000dRXY-a",
dsgf_2 = "e3000000001dRXY-a",
dsgfr_2 = "0000b91d0000RRE",
dsgr_2 = "0000b90d0000RRE",
dxbr_2 = "0000b34d0000RRE",
dxr_2 = "0000b22d0000RRE",
ear_2 = "0000b24f0000RRE",
ecag_3 = "eb000000004cRSY-a",
ed_2 = "de0000000000SS-a",
edmk_2 = "df0000000000SS-a",
eedtr_2 = "0000b3e50000RRE",
eextr_2 = "0000b3ed0000RRE",
efpc_2 = "0000b38c0000RRE",
epair_2 = "0000b99a0000RRE",
epar_2 = "0000b2260000RRE",
epsw_2 = "0000b98d0000RRE",
ereg_2 = "0000b2490000RRE",
eregg_2 = "0000b90e0000RRE",
esair_2 = "0000b99b0000RRE",
esar_2 = "0000b2270000RRE",
esdtr_2 = "0000b3e70000RRE",
esea_2 = "0000b99d0000RRE",
esta_2 = "0000b24a0000RRE",
esxtr_2 = "0000b3ef0000RRE",
ex_2 = "000044000000RX-a",
exrl_2 = "c60000000000RIL-b",
fidr_2 = "0000b37f0000RRE",
fier_2 = "0000b3770000RRE",
fixr_2 = "0000b3670000RRE",
flogr_2 = "0000b9830000RRE",
hdr_2 = "000000002400RR",
her_2 = "000000003400RR",
iac_2 = "0000b2240000RRE",
ic_2 = "000043000000RX-a",
icm_3 = "0000bf000000RS-b",
icmh_3 = "eb0000000080RSY-b",
icmy_3 = "eb0000000081RSY-b",
icy_2 = "e30000000073RXY-a",
iihf_2 = "c00800000000RIL-a",
iihh_2 = "0000a5000000RI-a",
iihl_2 = "0000a5010000RI-a",
iilf_2 = "c00900000000RIL-a",
iilh_2 = "0000a5020000RI-a",
iill_2 = "0000a5030000RI-a",
ipm_2 = "0000b2220000RRE",
iske_2 = "0000b2290000RRE",
ivsk_2 = "0000b2230000RRE",
kdbr_2 = "0000b3180000RRE",
kdtr_2 = "0000b3e00000RRE",
kebr_2 = "0000b3080000RRE",
kimd_2 = "0000b93e0000RRE",
klmd_2 = "0000b93f0000RRE",
km_2 = "0000b92e0000RRE",
kmac_2 = "0000b91e0000RRE",
kmc_2 = "0000b92f0000RRE",
kmf_2 = "0000b92a0000RRE",
kmo_2 = "0000b92b0000RRE",
kxbr_2 = "0000b3480000RRE",
kxtr_2 = "0000b3e80000RRE",
l_2 = "000058000000RX-a",
la_2 = "000041000000RX-a",
laa_3 = "eb00000000f8RSY-a",
laag_3 = "eb00000000e8RSY-a",
laal_3 = "eb00000000faRSY-a",
laalg_3 = "eb00000000eaRSY-a",
lae_2 = "000051000000RX-a",
laey_2 = "e30000000075RXY-a",
lam_3 = "00009a000000RS-a",
lamy_3 = "eb000000009aRSY-a",
lan_3 = "eb00000000f4RSY-a",
lang_3 = "eb00000000e4RSY-a",
lao_3 = "eb00000000f6RSY-a",
laog_3 = "eb00000000e6RSY-a",
larl_2 = "c00000000000RIL-b",
lax_3 = "eb00000000f7RSY-a",
laxg_3 = "eb00000000e7RSY-a",
lay_2 = "e30000000071RXY-a",
lb_2 = "e30000000076RXY-a",
lbh_2 = "e300000000c0RXY-a",
lbr_2 = "0000b9260000RRE",
lcdbr_2 = "0000b3130000RRE",
lcdfr_2 = "0000b3730000RRE",
lcdr_2 = "000000002300RR",
lcebr_2 = "0000b3030000RRE",
lcer_2 = "000000003300RR",
lcgfr_2 = "0000b9130000RRE",
lcgr_2 = "0000b9030000RRE",
lcr_2 = "000000001300RR",
lctl_3 = "0000b7000000RS-a",
lctlg_3 = "eb000000002fRSY-a",
lcxbr_2 = "0000b3430000RRE",
lcxr_2 = "0000b3630000RRE",
ld_2 = "000068000000RX-a",
ldebr_2 = "0000b3040000RRE",
lder_2 = "0000b3240000RRE",
ldgr_2 = "0000b3c10000RRE",
ldr_2 = "000000002800RR",
ldxbr_2 = "0000b3450000RRE",
ldxr_2 = "000000002500RR",
ldy_2 = "ed0000000065RXY-a",
le_2 = "000078000000RX-a",
ledbr_2 = "0000b3440000RRE",
ledr_2 = "000000003500RR",
ler_2 = "000000003800RR",
lexbr_2 = "0000b3460000RRE",
lexr_2 = "0000b3660000RRE",
ley_2 = "ed0000000064RXY-a",
lfh_2 = "e300000000caRXY-a",
lg_2 = "e30000000004RXY-a",
lgb_2 = "e30000000077RXY-a",
lgbr_2 = "0000b9060000RRE",
lgdr_2 = "0000b3cd0000RRE",
lgf_2 = "e30000000014RXY-a",
lgfi_2 = "c00100000000RIL-a",
lgfr_2 = "0000b9140000RRE",
lgfrl_2 = "c40c00000000RIL-b",
lgh_2 = "e30000000015RXY-a",
lghi_2 = "0000a7090000RI-a",
lghr_2 = "0000b9070000RRE",
lghrl_2 = "c40400000000RIL-b",
lgr_2 = "0000b9040000RRE",
lgrl_2 = "c40800000000RIL-b",
lh_2 = "000048000000RX-a",
lhh_2 = "e300000000c4RXY-a",
lhi_2 = "0000a7080000RI-a",
lhr_2 = "0000b9270000RRE",
lhrl_2 = "c40500000000RIL-b",
lhy_2 = "e30000000078RXY-a",
llc_2 = "e30000000094RXY-a",
llch_2 = "e300000000c2RXY-a",
llcr_2 = "0000b9940000RRE",
llgc_2 = "e30000000090RXY-a",
llgcr_2 = "0000b9840000RRE",
llgf_2 = "e30000000016RXY-a",
llgfr_2 = "0000b9160000RRE",
llgfrl_2 = "c40e00000000RIL-b",
llgh_2 = "e30000000091RXY-a",
llghr_2 = "0000b9850000RRE",
llghrl_2 = "c40600000000RIL-b",
llgt_2 = "e30000000017RXY-a",
llgtr_2 = "0000b9170000RRE",
llh_2 = "e30000000095RXY-a",
llhh_2 = "e300000000c6RXY-a",
llhr_2 = "0000b9950000RRE",
llhrl_2 = "c40200000000RIL-b",
llihf_2 = "c00e00000000RIL-a",
llihh_2 = "0000a50c0000RI-a",
llihl_2 = "0000a50d0000RI-a",
llilf_2 = "c00f00000000RIL-a",
llilh_2 = "0000a50e0000RI-a",
llill_2 = "0000a50f0000RI-a",
lm_3 = "000098000000RS-a",
lmg_3 = "eb0000000004RSY-a",
lmh_3 = "eb0000000096RSY-a",
lmy_3 = "eb0000000098RSY-a",
lndbr_2 = "0000b3110000RRE",
lndfr_2 = "0000b3710000RRE",
lndr_2 = "000000002100RR",
lnebr_2 = "0000b3010000RRE",
lner_2 = "000000003100RR",
lngfr_2 = "0000b9110000RRE",
lngr_2 = "0000b9010000RRE",
lnr_2 = "000000001100RR",
lnxbr_2 = "0000b3410000RRE",
lnxr_2 = "0000b3610000RRE",
loc_3 = "eb00000000f2RSY-b",
locg_3 = "eb00000000e2RSY-b",
lpdbr_2 = "0000b3100000RRE",
lpdfr_2 = "0000b3700000RRE",
lpdr_2 = "000000002000RR",
lpebr_2 = "0000b3000000RRE",
lper_2 = "000000003000RR",
lpgfr_2 = "0000b9100000RRE",
lpgr_2 = "0000b9000000RRE",
lpq_2 = "e3000000008fRXY-a",
lpr_2 = "000000001000RR",
lpxbr_2 = "0000b3400000RRE",
lpxr_2 = "0000b3600000RRE",
lr_2 = "000000001800RR",
lra_2 = "0000b1000000RX-a",
lrag_2 = "e30000000003RXY-a",
lray_2 = "e30000000013RXY-a",
lrdr_2 = "000000002500RR",
lrer_2 = "000000003500RR",
lrl_2 = "c40d00000000RIL-b",
lrv_2 = "e3000000001eRXY-a",
lrvg_2 = "e3000000000fRXY-a",
lrvgr_2 = "0000b90f0000RRE",
lrvh_2 = "e3000000001fRXY-a",
lrvr_2 = "0000b91f0000RRE",
lt_2 = "e30000000012RXY-a",
ltdbr_2 = "0000b3120000RRE",
ltdr_2 = "000000002200RR",
ltdtr_2 = "0000b3d60000RRE",
ltebr_2 = "0000b3020000RRE",
lter_2 = "000000003200RR",
ltg_2 = "e30000000002RXY-a",
ltgf_2 = "e30000000032RXY-a",
ltgfr_2 = "0000b9120000RRE",
ltgr_2 = "0000b9020000RRE",
ltr_2 = "000000001200RR",
ltxbr_2 = "0000b3420000RRE",
ltxr_2 = "0000b3620000RRE",
ltxtr_2 = "0000b3de0000RRE",
lura_2 = "0000b24b0000RRE",
lurag_2 = "0000b9050000RRE",
lxdbr_2 = "0000b3050000RRE",
lxdr_2 = "0000b3250000RRE",
lxebr_2 = "0000b3060000RRE",
lxer_2 = "0000b3260000RRE",
lxr_2 = "0000b3650000RRE",
ly_2 = "e30000000058RXY-a",
lzdr_2 = "0000b3750000RRE",
lzer_2 = "0000b3740000RRE",
lzxr_2 = "0000b3760000RRE",
m_2 = "00005c000000RX-a",
madb_3 = "ed000000001eRXF",
maeb_3 = "ed000000000eRXF",
maebr_3 = "0000b30e0000RRD",
maer_3 = "0000b32e0000RRD",
md_2 = "00006c000000RX-a",
mdb_2 = "ed000000001cRXE",
mdbr_2 = "0000b31c0000RRE",
mde_2 = "00007c000000RX-a",
mdeb_2 = "ed000000000cRXE",
mdebr_2 = "0000b30c0000RRE",
mder_2 = "000000003c00RR",
mdr_2 = "000000002c00RR",
me_2 = "00007c000000RX-a",
meeb_2 = "ed0000000017RXE",
meebr_2 = "0000b3170000RRE",
meer_2 = "0000b3370000RRE",
mer_2 = "000000003c00RR",
mfy_2 = "e3000000005cRXY-a",
mghi_2 = "0000a70d0000RI-a",
mh_2 = "00004c000000RX-a",
mhi_2 = "0000a70c0000RI-a",
mhy_2 = "e3000000007cRXY-a",
ml_2 = "e30000000096RXY-a",
mlg_2 = "e30000000086RXY-a",
mlgr_2 = "0000b9860000RRE",
mlr_2 = "0000b9960000RRE",
mr_2 = "000000001c00RR",
ms_2 = "000071000000RX-a",
msfi_2 = "c20100000000RIL-a",
msg_2 = "e3000000000cRXY-a",
msgf_2 = "e3000000001cRXY-a",
msgfi_2 = "c20000000000RIL-a",
msgfr_2 = "0000b91c0000RRE",
msgr_2 = "0000b90c0000RRE",
msr_2 = "0000b2520000RRE",
msta_2 = "0000b2470000RRE",
msy_2 = "e30000000051RXY-a",
mvc_2 = "d20000000000SS-a",
mvcin_2 = "e80000000000SS-a",
mvcl_2 = "000000000e00RR",
mvcle_3 = "0000a8000000RS-a",
mvclu_3 = "eb000000008eRSY-a",
mvghi_2 = "e54800000000SIL",
mvhhi_2 = "e54400000000SIL",
mvhi_2 = "e54c00000000SIL",
mvi_2 = "000092000000SI",
mvn_2 = "d10000000000SS-a",
mvpg_2 = "0000b2540000RRE",
mvst_2 = "0000b2550000RRE",
mvz_2 = "d30000000000SS-a",
mxbr_2 = "0000b34c0000RRE",
mxd_2 = "000067000000RX-a",
mxdb_2 = "ed0000000007RXE",
mxdbr_2 = "0000b3070000RRE",
mxdr_2 = "000000002700RR",
mxr_2 = "000000002600RR",
n_2 = "000054000000RX-a",
nc_2 = "d40000000000SS-a",
ng_2 = "e30000000080RXY-a",
ngr_2 = "0000b9800000RRE",
ni_2 = "000094000000SI",
nihf_2 = "c00a00000000RIL-a",
nihh_2 = "0000a5040000RI-a",
nihl_2 = "0000a5050000RI-a",
nilf_2 = "c00b00000000RIL-a",
nilh_2 = "0000a5060000RI-a",
nill_2 = "0000a5070000RI-a",
nr_2 = "000000001400RR",
ny_2 = "e30000000054RXY-a",
o_2 = "000056000000RX-a",
oc_2 = "d60000000000SS-a",
og_2 = "e30000000081RXY-a",
ogr_2 = "0000b9810000RRE",
oi_2 = "000096000000SI",
oihf_2 = "c00c00000000RIL-a",
oihh_2 = "0000a5080000RI-a",
oihl_2 = "0000a5090000RI-a",
oilf_2 = "c00d00000000RIL-a",
oilh_2 = "0000a50a0000RI-a",
oill_2 = "0000a50b0000RI-a",
or_2 = "000000001600RR",
oy_2 = "e30000000056RXY-a",
palb_2 = "0000b2480000RRE",
pcc_2 = "0000b92c0000RRE",
pckmo_2 = "0000b9280000RRE",
pfd_2 = "e30000000036m",
pfdrl_2 = "c60200000000RIL-c",
pfmf_2 = "0000b9af0000RRE",
pgin_2 = "0000b22e0000RRE",
pgout_2 = "0000b22f0000RRE",
popcnt_2 = "0000b9e10000RRE",
pt_2 = "0000b2280000RRE",
ptf_2 = "0000b9a20000RRE",
pti_2 = "0000b99e0000RRE",
rll_3 = "eb000000001dRSY-a",
rllg_3 = "eb000000001cRSY-a",
rrbe_2 = "0000b22a0000RRE",
rrbm_2 = "0000b9ae0000RRE",
s_2 = "00005b000000RX-a",
sar_2 = "0000b24e0000RRE",
sd_2 = "00006b000000RX-a",
sdb_2 = "ed000000001bRXE",
sdbr_2 = "0000b31b0000RRE",
sdr_2 = "000000002b00RR",
se_2 = "00007b000000RX-a",
seb_2 = "ed000000000bRXE",
sebr_2 = "0000b30b0000RRE",
ser_2 = "000000003b00RR",
sfasr_2 = "0000b3850000RRE",
sfpc_2 = "0000b3840000RRE",
sg_2 = "e30000000009RXY-a",
sgf_2 = "e30000000019RXY-a",
sgfr_2 = "0000b9190000RRE",
sgr_2 = "0000b9090000RRE",
sh_2 = "00004b000000RX-a",
shy_2 = "e3000000007bRXY-a",
sl_2 = "00005f000000RX-a",
sla_2 = "00008b000000RS-a",
slag_3 = "eb000000000bRSY-a",
slak_3 = "eb00000000ddRSY-a",
slb_2 = "e30000000099RXY-a",
slbg_2 = "e30000000089RXY-a",
slbgr_2 = "0000b9890000RRE",
slbr_2 = "0000b9990000RRE",
slda_2 = "00008f000000RS-a",
sldl_2 = "00008d000000RS-a",
slfi_2 = "c20500000000RIL-a",
slg_2 = "e3000000000bRXY-a",
slgf_2 = "e3000000001bRXY-a",
slgfi_2 = "c20400000000RIL-a",
slgfr_2 = "0000b91b0000RRE",
slgr_2 = "0000b90b0000RRE",
sll_2 = "000089000000RS-a",
sllg_3 = "eb000000000dRSY-a",
sllk_3 = "eb00000000dfRSY-a",
slr_2 = "000000001f00RR",
sly_2 = "e3000000005fRXY-a",
spm_2 = "000000000400RR",
sqdb_2 = "ed0000000015RXE",
sqdbr_2 = "0000b3150000RRE",
sqdr_2 = "0000b2440000RRE",
sqeb_2 = "ed0000000014RXE",
sqebr_2 = "0000b3140000RRE",
sqer_2 = "0000b2450000RRE",
sqxbr_2 = "0000b3160000RRE",
sqxr_2 = "0000b3360000RRE",
sr_2 = "000000001b00RR",
sra_2 = "00008a000000RS-a",
srag_3 = "eb000000000aRSY-a",
srak_3 = "eb00000000dcRSY-a",
srda_2 = "00008e000000RS-a",
srdl_2 = "00008c000000RS-a",
srl_2 = "000088000000RS-a",
srlg_3 = "eb000000000cRSY-a",
srlk_3 = "eb00000000deRSY-a",
srst_2 = "0000b25e0000RRE",
srstu_2 = "0000b9be0000RRE",
ssair_2 = "0000b99f0000RRE",
ssar_2 = "0000b2250000RRE",
st_2 = "000050000000RX-a",
stam_3 = "00009b000000RS-a",
stamy_3 = "eb000000009bRSY-a",
stc_2 = "000042000000RX-a",
stch_2 = "e300000000c3RXY-a",
stcm_3 = "0000be000000RS-b",
stcmh_3 = "eb000000002cRSY-b",
stcmy_3 = "eb000000002dRSY-b",
stctg_3 = "eb0000000025RSY-a",
stctl_3 = "0000b6000000RS-a",
stcy_2 = "e30000000072RXY-a",
std_2 = "000060000000RX-a",
stdy_2 = "ed0000000067RXY-a",
ste_2 = "000070000000RX-a",
stey_2 = "ed0000000066RXY-a",
stfh_2 = "e300000000cbRXY-a",
stfl_1 = "0000b2b10000S",
stg_2 = "e30000000024RXY-a",
stgrl_2 = "c40b00000000RIL-b",
sth_2 = "000040000000RX-a",
sthh_2 = "e300000000c7RXY-a",
sthrl_2 = "c40700000000RIL-b",
sthy_2 = "e30000000070RXY-a",
stm_3 = "000090000000RS-a",
stmg_3 = "eb0000000024RSY-a",
stmh_3 = "eb0000000026RSY-a",
stmy_3 = "eb0000000090RSY-a",
stoc_3 = "eb00000000f3RSY-b",
stocg_3 = "eb00000000e3RSY-b",
stpq_2 = "e3000000008eRXY-a",
strl_2 = "c40f00000000RIL-b",
strv_2 = "e3000000003eRXY-a",
strvg_2 = "e3000000002fRXY-a",
strvh_2 = "e3000000003fRXY-a",
stura_2 = "0000b2460000RRE",
sturg_2 = "0000b9250000RRE",
sty_2 = "e30000000050RXY-a",
su_2 = "00007f000000RX-a",
sur_2 = "000000003f00RR",
svc_1 = "000000000a00I",
sw_2 = "00006f000000RX-a",
swr_2 = "000000002f00RR",
sxbr_2 = "0000b34b0000RRE",
sxr_2 = "000000003700RR",
sy_2 = "e3000000005bRXY-a",
tar_2 = "0000b24c0000RRE",
tb_2 = "0000b22c0000RRE",
thder_2 = "0000b3580000RRE",
thdr_2 = "0000b3590000RRE",
tm_2 = "000091000000SI",
tmhh_2 = "0000a7020000RI-a",
tmhl_2 = "0000a7030000RI-a",
tmlh_2 = "0000a7000000RI-a",
tmll_2 = "0000a7010000RI-a",
tmy_2 = "eb0000000051SIY",
tr_2 = "dc0000000000SS-a",
trace_3 = "000099000000RS-a",
tracg_3 = "eb000000000fRSY-a",
tre_2 = "0000b2a50000RRE",
trt_2 = "dd0000000000SS-a",
trtr_2 = "d00000000000SS-a",
unpka_2 = "ea0000000000SS-a",
unpku_2 = "e20000000000SS-a",
x_2 = "000057000000RX-a",
xc_2 = "d70000000000SS-a",
xg_2 = "e30000000082RXY-a",
xgr_2 = "0000b9820000RRE",
xi_2 = "000097000000SI",
xihf_2 = "c00600000000RIL-a",
xilf_2 = "c00700000000RIL-a",
xr_2 = "000000001700RR",
xy_2 = "e30000000057RXY-a",
}
for cond, c in pairs(map_cond) do
-- Extended mnemonics for branches.
-- TODO: replace 'B' with correct encoding.
-- brc
map_op["j"..cond.."_1"] = "0000"..tohex(0xa7040000+shl(c, 20)).."RI-c"
-- brcl
map_op["jg"..cond.."_1"] = tohex(0xc0040000+shl(c, 20)).."0000".."RIL-c"
-- bc
map_op["b"..cond.."_1"] = "0000"..tohex(0x47000000+shl(c, 20)).."RX-b"
-- bcr
map_op["b"..cond.."r_1"] = "0000"..tohex(0x0700+shl(c, 4)).."RR"
end
------------------------------------------------------------------------------
-- Handle opcodes defined with template strings.
local function parse_template(params, template, nparams, pos)
-- Read the template in 16-bit chunks.
-- Leading halfword zeroes should not be written out.
local op0 = tonumber(sub(template, 1, 4), 16)
local op1 = tonumber(sub(template, 5, 8), 16)
local op2 = tonumber(sub(template, 9, 12), 16)
-- Process each character.
local p = sub(template, 13)
if p == "I" then
local imm_val, a = parse_imm8(params[1])
op2 = op2 + imm_val
wputhw(op2)
if a then a() end
elseif p == "RI-a" then
op1 = op1 + shl(parse_reg(params[1]), 4)
wputhw(op1)
parse_imm16(params[2])
elseif p == "RI-b" then
op1 = op1 + shl(parse_reg(params[1]), 4)
wputhw(op1)
local mode, n, s = parse_label(params[2])
waction("REL_"..mode, n, s)
elseif p == "RI-c" then
if #params > 1 then
op1 = op1 + shl(parse_num(params[1]), 4)
end
wputhw(op1)
local mode, n, s = parse_label(params[#params])
waction("REL_"..mode, n, s)
elseif p == "RIE-e" then
op0 = op0 + shl(parse_reg(params[1]), 4) + parse_reg(params[2])
wputhw1(op0)
local mode, n, s = parse_label(params[3])
waction("REL_"..mode, n, s)
wputhw(op2)
elseif p == "RIL-a" then
op0 = op0 + shl(parse_reg(params[1]), 4)
wputhw(op0);
parse_imm32(params[2])
elseif p == "RIL-b" then
op0 = op0 + shl(parse_reg(params[1]), 4)
wputhw(op0)
local mode, n, s = parse_label(params[2])
waction("REL_"..mode, n, s)
elseif p == "RIL-c" then
if #params > 1 then
op0 = op0 + shl(parse_num(params[1]), 4)
end
wputhw(op0)
local mode, n, s = parse_label(params[#params])
waction("REL_"..mode, n, s)
elseif p == "RR" then
if #params > 1 then
op2 = op2 + shl(parse_reg(params[1]), 4)
end
op2 = op2 + parse_reg(params[#params])
wputhw(op2)
elseif p == "RRD" then
wputhw(op1)
op2 = op2 + shl(parse_reg(params[1]), 12) + shl(parse_reg(params[2]), 4) + parse_reg(params[3])
wputhw(op2)
elseif p == "RRE" then
op2 = op2 + shl(parse_reg(params[1]), 4) + parse_reg(params[2])
wputhw(op1); wputhw(op2)
elseif p == "RRF-b" then
wputhw(op1)
op2 = op2 + shl(parse_reg(params[1]), 4) + shl(parse_reg(params[2]), 12) + parse_reg(params[3]) + shl(parse_mask(params[4]), 8)
wputhw(op2)
elseif p == "RRF-e" then
wputhw(op1)
op2 = op2 + shl(parse_reg(params[1]), 4) + shl(parse_mask(params[2]), 12) + parse_reg(params[3])
if params[4] then
op2 = op2 + shl(parse_mask2(params[4]), 8)
end
wputhw(op2)
elseif p == "RS-a" then
if (params[3]) then
local d, b, a = parse_mem_b(params[3])
op1 = op1 + shl(parse_reg(params[1]), 4) + parse_reg(params[2])
op2 = op2 + shl(b, 12) + d
else
local d, b, a = parse_mem_b(params[2])
op1 = op1 + shl(parse_reg(params[1]), 4)
op2 = op2 + shl(b, 12) + d
end
wputhw(op1); wputhw(op2)
if a then a() end
elseif p == "RS-b" then
local m = parse_mask(params[2])
local d, b, a = parse_mem_b(params[3])
op1 = op1 + shl(parse_reg(params[1]), 4) + m
op2 = op2 + shl(b, 12) + d
wputhw(op1); wputhw(op2)
if a then a() end
elseif p == "RSI" then
op1 = op1 + shl(parse_reg(params[1]), 4) + parse_reg(params[2])
wputhw(op1)
local mode, n, s = parse_label(params[3])
waction("REL_"..mode, n, s)
elseif p == "RSY-a" then
local d, b, a = parse_mem_by(params[3])
op0 = op0 + shl(parse_reg(params[1]), 4) + parse_reg(params[2])
op1 = op1 + shl(b, 12) + band(d, 0xfff)
op2 = op2 + band(shr(d, 4), 0xff00)
wputhw(op0); wputhw(op1); wputhw(op2)
if a then a() end -- a() emits action.
elseif p == "RX-a" then
local d, x, b, a = parse_mem_bx(params[2])
op1 = op1 + shl(parse_reg(params[1]), 4) + x
op2 = op2 + shl(b, 12) + d
wputhw(op1); wputhw(op2)
if a then a() end
elseif p == "RX-b" then
local d, x, b, a = parse_mem_bx(params[#params])
if #params > 1 then
op1 = op1 + shl(parse_num(params[1]), 4)
end
op1 = op1 + x
op2 = op2 + shl(b, 12) + d
wputhw(op1); wputhw(op2)
if a then a() end
elseif p == "RXE" then
local d, x, b, a = parse_mem_bx(params[2])
op0 = op0 + shl(parse_reg(params[1]), 4) + x
op1 = op1 + shl(b, 12) + d
wputhw(op0); wputhw(op1)
if a then a() end
wputhw(op2);
elseif p == "RXF" then
local d, x, b, a = parse_mem_bx(params[3])
op0 = op0 + shl(parse_reg(params[2]), 4) + x
op1 = op1 + shl(b, 12) + d
wputhw(op0); wputhw(op1)
if a then a() end
op2 = op2 + shl(parse_reg(params[1]), 12)
wputhw(op2)
elseif p == "RXY-a" then
local d, x, b, a = parse_mem_bxy(params[2])
op0 = op0 + shl(parse_reg(params[1]), 4) + x
op1 = op1 + shl(b, 12) + band(d, 0xfff)
op2 = op2 + band(shr(d, 4), 0xff00)
wputhw(op0); wputhw(op1); wputhw(op2)
if a then a() end
elseif p == "S" then
wputhw(op1);
local d, b, a = parse_mem_b(params[1])
op2 = op2 + shl(b, 12) + d
wputhw(op2)
if a then a() end
elseif p == "SI" then
local imm_val, a = parse_imm8(params[2])
op1 = op1 + imm_val
wputhw(op1)
if a then a() end
local d, b, a = parse_mem_b(params[1])
op2 = op2 + shl(b, 12) + d
wputhw(op2)
if a then a() end
elseif p == "SIL" then
wputhw(op0)
local d, b, a = parse_mem_b(params[1])
op1 = op1 + shl(b, 12) + d
wputhw(op1)
if a then a() end
parse_imm16(params[2])
elseif p == "SIY" then
local imm8, iact = parse_imm8(params[2])
op0 = op0 + shl(imm8, 8)
wputhw(op0)
if iact then iact() end
local d, b, a = parse_mem_by(params[1])
op1 = op1 + shl(b, 12) + band(d, 0xfff)
op2 = op2 + band(shr(d, 4), 0xff00)
wputhw(op1); wputhw(op2)
if a then a() end
elseif p == "SS-a" then
local d1, l1, b1, d1a, l1a = parse_mem_lb(params[1])
local d2, b2, d2a = parse_mem_b(params[2])
op0 = op0 + l1
op1 = op1 + shl(b1, 12) + d1
op2 = op2 + shl(b2, 12) + d2
wputhw(op0)
if l1a then l1a() end
wputhw(op1)
if d1a then d1a() end
wputhw(op2)
if d2a then d2a() end
elseif p == "SS-b" then
local high_l = true
local d1, l1, b1, d1a, l1a = parse_mem_l2b(params[1], high_l)
high_l = false
local d2, l2, b2, d2a, l2a = parse_mem_l2b(params[2], high_l)
op0 = op0 + shl(l1, 4) + l2
op1 = op1 + shl(b1, 12) + d1
op2 = op2 + shl(b2, 12) + d2
wputhw(op0)
if l1a then l1a() end
if l2a then l2a() end
wputhw(op1)
if d1a then d1a() end
wputhw(op2)
if d2a then d2a() end
else
werror("unrecognized encoding")
end
end
function op_template(params, template, nparams)
if not params then return template:gsub("%x%x%x%x%x%x%x%x%x%x%x%x", "") end
-- Limit number of section buffer positions used by a single dasm_put().
-- A single opcode needs a maximum of 5 positions.
if secpos+5 > maxsecpos then wflush() end
local lpos, apos, spos = #actlist, #actargs, secpos
local ok, err
for t in gmatch(template, "[^|]+") do
ok, err = pcall(parse_template, params, t, nparams)
if ok then return end
secpos = spos
actlist[lpos+1] = nil
actlist[lpos+2] = nil
actlist[lpos+3] = nil
actargs[apos+1] = nil
actargs[apos+2] = nil
actargs[apos+3] = nil
end
error(err, 0)
end
map_op[".template__"] = op_template
------------------------------------------------------------------------------
-- Pseudo-opcode to mark the position where the action list is to be emitted.
map_op[".actionlist_1"] = function(params)
if not params then return "cvar" end
local name = params[1] -- No syntax check. You get to keep the pieces.
wline(function(out) writeactions(out, name) end)
end
-- Pseudo-opcode to mark the position where the global enum is to be emitted.
map_op[".globals_1"] = function(params)
if not params then return "prefix" end
local prefix = params[1] -- No syntax check. You get to keep the pieces.
wline(function(out) writeglobals(out, prefix) end)
end
-- Pseudo-opcode to mark the position where the global names are to be emitted.
map_op[".globalnames_1"] = function(params)
if not params then return "cvar" end
local name = params[1] -- No syntax check. You get to keep the pieces.
wline(function(out) writeglobalnames(out, name) end)
end
-- Pseudo-opcode to mark the position where the extern names are to be emitted.
map_op[".externnames_1"] = function(params)
if not params then return "cvar" end
local name = params[1] -- No syntax check. You get to keep the pieces.
wline(function(out) writeexternnames(out, name) end)
end
------------------------------------------------------------------------------
-- Label pseudo-opcode (converted from trailing colon form).
map_op[".label_1"] = function(params)
if not params then return "[1-9] | ->global | =>pcexpr" end
if secpos+1 > maxsecpos then wflush() end
local mode, n, s = parse_label(params[1], true)
if mode == "EXT" then werror("bad label definition") end
waction("LABEL_"..mode, n, s, 1)
end
------------------------------------------------------------------------------
-- Pseudo-opcodes for data storage.
map_op[".long_*"] = function(params)
if not params then return "imm..." end
for _, p in ipairs(params) do
local n = tonumber(p)
if not n then werror("bad immediate `"..p.."'") end
if n < 0 then n = n + 2^32 end
wputw(n)
if secpos+2 > maxsecpos then wflush() end
end
end
-- Alignment pseudo-opcode.
map_op[".align_1"] = function(params)
if not params then return "numpow2" end
if secpos+1 > maxsecpos then wflush() end
local align = tonumber(params[1])
if align then
local x = align
-- Must be a power of 2 in the range (2 ... 256).
for i=1, 8 do
x = x / 2
if x == 1 then
waction("ALIGN", align-1, nil, 1) -- Action halfword is 2**n-1.
return
end
end
end
werror("bad alignment")
end
------------------------------------------------------------------------------
-- Pseudo-opcode for (primitive) type definitions (map to C types).
map_op[".type_3"] = function(params, nparams)
if not params then
return nparams == 2 and "name, ctype" or "name, ctype, reg"
end
local name, ctype, reg = params[1], params[2], params[3]
if not match(name, "^[%a_][%w_]*$") then
werror("bad type name `"..name.."'")
end
local tp = map_type[name]
if tp then
werror("duplicate type `"..name.."'")
end
-- Add #type to defines. A bit unclean to put it in map_archdef.
map_archdef["#"..name] = "sizeof("..ctype..")"
-- Add new type and emit shortcut define.
local num = ctypenum + 1
map_type[name] = {
ctype = ctype,
ctypefmt = format("Dt%X(%%s)", num),
reg = reg,
}
wline(format("#define Dt%X(_V) (int)(ptrdiff_t)&(((%s *)0)_V)", num, ctype))
ctypenum = num
end
map_op[".type_2"] = map_op[".type_3"]
-- Dump type definitions.
local function dumptypes(out, lvl)
local t = {}
for name in pairs(map_type) do t[#t+1] = name end
sort(t)
out:write("Type definitions:\n")
for _, name in ipairs(t) do
local tp = map_type[name]
local reg = tp.reg or ""
out:write(format(" %-20s %-20s %s\n", name, tp.ctype, reg))
end
out:write("\n")
end
------------------------------------------------------------------------------
-- Set the current section.
function _M.section(num)
waction("SECTION", num)
wflush(true) -- SECTION is a terminal action.
end
------------------------------------------------------------------------------
-- Dump architecture description.
function _M.dumparch(out)
out:write(format("DynASM %s version %s, released %s\n\n",
_info.arch, _info.version, _info.release))
dumpactions(out)
end
-- Dump all user defined elements.
function _M.dumpdef(out, lvl)
dumptypes(out, lvl)
dumpglobals(out, lvl)
dumpexterns(out, lvl)
end
------------------------------------------------------------------------------
-- Pass callbacks from/to the DynASM core.
function _M.passcb(wl, we, wf, ww)
wline, werror, wfatal, wwarn = wl, we, wf, ww
return wflush
end
-- Setup the arch-specific module.
function _M.setup(arch, opt)
g_arch, g_opt = arch, opt
end
-- Merge the core maps and the arch-specific maps.
function _M.mergemaps(map_coreop, map_def)
setmetatable(map_op, { __index = map_coreop })
setmetatable(map_def, { __index = map_archdef })
return map_op, map_def
end
return _M
------------------------------------------------------------------------------
|
---@type Plugin
local mode = ...
mode.name = 'Raw Test'
mode.author = 'jdb'
mode.description = 'An empty world where anything is possible.'
local mapName
function mode.onEnable ()
mapName = 'versus2'
server:reset()
end
function mode.onDisable ()
mapName = nil
end
function mode.hooks.ResetGame ()
server.type = 20
server.levelToLoad = mapName
end
function mode.hooks.SendPacket ()
for _, ply in ipairs(players.getNonBots()) do
if not ply.human then
ply.menuTab = 1
else
ply.menuTab = 0
end
end
end
function mode.hooks.PostSendPacket ()
for _, ply in ipairs(players.getNonBots()) do
ply.menuTab = 0
end
end
local function clickedEnterCity (ply)
if not ply.human then
ply.suitColor = 1
ply.tieColor = 8
ply.model = 1
if humans.create(Vector(1024, 29.5, 1027), orientations.n, ply) then
ply:update()
end
end
end
function mode.hooks.PlayerActions (ply)
if ply.numActions ~= ply.lastNumActions then
local action = ply:getAction(ply.lastNumActions)
if action.type == 0 and action.a == 1 and action.b == 1 then
clickedEnterCity(ply)
ply.lastNumActions = ply.numActions
end
end
end
mode.commands['/map'] = {
info = 'Change the map.',
usage = '/map <name',
canCall = function (ply) return ply.isConsole or ply.isAdmin end,
---@param args string[]
call = function (_, _, args)
assert(#args >= 1, 'usage')
mapName = args[1]
hook.once('Logic', function ()
server:reset()
end)
end
} |
require("Menu/settings.lua")
require("Menu/MainMenu/mainMenuStyle.lua")
require("Game/mapInfo.lua")
--this = SceneNode()
function destroy()
if form then
form:setVisible(false)
form:destroy()
form = nil
end
end
function hideForm()
run = false
end
function next(panel)
if tutorialIndex == #tutorialTexts then
hideForm()
end
tutorialIndex = math.clamp(tutorialIndex+1,1, #tutorialTexts)
print("next() tutorialIndex="..tutorialIndex.." max:"..#tutorialTexts)
if tutorialIndex > 1 then
previousButton:setVisible(true)
end
updateInfo()
end
function previous(panel)
tutorialIndex = math.clamp(tutorialIndex-1,1, #tutorialTexts)
if tutorialIndex == 1 then
previousButton:setVisible(false)
end
updateInfo()
end
function updateInfo()
label:setText(tutorialTexts[tutorialIndex])
if fileName=="Data/Map/Campaign/Beginning.map" then
images[tutorialIndex] = Core.getTexture("tutorial"..tutorialIndex..".png")
elseif fileName=="Data/Map/Campaign/Intrusion.map" then
images[tutorialIndex] = Core.getTexture("tutorial2_"..tutorialIndex..".png")
elseif fileName=="Data/Map/Campaign/Expansion.map" then
images[tutorialIndex] = Core.getTexture("tutorial3_"..tutorialIndex..".png")
end
image:setTexture(images[tutorialIndex])
headerLable:setText("Tutorial "..tutorialIndex.."/"..#tutorialTexts)
if tutorialIndex == #tutorialTexts then
nextButton:setText("Start")
else
nextButton:setText("Next")
end
end
function create()
run = true
mapInfo = MapInfo.new()
fileName = mapInfo.getMapFileName()
if not (fileName=="Data/Map/Campaign/Beginning.map" or fileName=="Data/Map/Campaign/Intrusion.map" or fileName=="Data/Map/Campaign/Expansion.map") then
return false
end
if Settings.overideShowTutorial() == false then
if fileName=="Data/Map/Campaign/Beginning.map" then
if Settings.isTutorial1Done() then
return false
end
Settings.setTutorial1Done()
end
if fileName=="Data/Map/Campaign/Intrusion.map" then
if Settings.isTutorial2Done() then
return false
end
Settings.setTutorial2Done()
end
if fileName=="Data/Map/Campaign/Expansion.map" then
if Settings.isTutorial3Done() then
return false
end
Settings.setTutorial3Done()
end
end
--camera = Camera()
local camera = this:getRootNode():findNodeByName("MainCamera")
if not camera then
return false
end
form = Form( camera, PanelSize(Vec2(1, 1)), Alignment.TOP_LEFT);
form:getPanelSize():setFitChildren(false, false);
form:setLayout(FlowLayout(Alignment.MIDDLE_CENTER, PanelSize(Vec2(0,0.001))));
form:setRenderLevel(200)
form:setVisible(true)
form:setBackground(Sprite(Vec4(0,0,0,0.6)))
form:addEventCallbackOnClick(hideForm)
local formPanel = form:add(Panel(PanelSize(Vec2(1,0.45),Vec2(1.1,1))))
formPanel:setPadding(BorderSize(Vec4(0.003), true))
formPanel:setBackground(Gradient(Vec4(MainMenuStyle.backgroundTopColor:toVec3(), 0.9), Vec4(MainMenuStyle.backgroundDownColor:toVec3(), 0.75)))
formPanel:setBorder(Border(BorderSize(Vec4(MainMenuStyle.borderSize),true), MainMenuStyle.borderColor))
formPanel:setLayout(FallLayout(Alignment.TOP_CENTER));
--Header
local headerPanel = formPanel:add(Panel(PanelSize(Vec2(-1,0.03))))
headerPanel:setLayout(FlowLayout(Alignment.TOP_RIGHT))
MainMenuStyle.createBreakLine(formPanel)
local quitButton = headerPanel:add( Button(PanelSize(Vec2(-1),Vec2(1)), "X", ButtonStyle.SQUARE ) )
quitButton:addEventCallbackExecute(hideForm)
quitButton:setTextColor(MainMenuStyle.textColor)
quitButton:setTextHoverColor(MainMenuStyle.textColorHighLighted)
quitButton:setTextDownColor(MainMenuStyle.textColorHighLighted)
quitButton:setTextAnchor(Anchor.MIDDLE_CENTER)
quitButton:setEdgeColor(Vec4(0), Vec4(0))
quitButton:setEdgeHoverColor(Vec4(0), Vec4(0))
quitButton:setEdgeDownColor(Vec4(0), Vec4(0))
quitButton:setInnerColor(Vec4(0), Vec4(0), Vec4(0))
quitButton:setInnerHoverColor(Vec4(1,1,1,0.4), Vec4(1,1,1,0.4), Vec4(1,1,1,0.4))
quitButton:setInnerDownColor(Vec4(1,1,1,0.4), Vec4(1,1,1,0.4), Vec4(1,1,1,0.4))
headerLable = headerPanel:add( Label( PanelSize(Vec2(-1)), "Tutorial 1/3", MainMenuStyle.textColor, Alignment.TOP_CENTER) )
--Body
local mainPanel = formPanel:add(Panel(PanelSize(Vec2(-1))))
mainPanel:setLayout(FallLayout(Alignment.TOP_CENTER))
tutorialIndex = 1
images = {}
tutorialTexts = {}
if fileName=="Data/Map/Campaign/Beginning.map" then
images[1] = Core.getTexture("tutorial1.png")
for i=1, 6 do
tutorialTexts[i] = language:getText("tutorial "..i)
end
elseif fileName=="Data/Map/Campaign/Intrusion.map" then
images[1] = Core.getTexture("tutorial2_1.png")
tutorialTexts[1] = language:getText("tutorial 7")
tutorialTexts[2] = language:getText("tutorial 8")
tutorialTexts[3] = language:getText("tutorial 9")
elseif fileName=="Data/Map/Campaign/Expansion.map" then
images[1] = Core.getTexture("tutorial3_1.png")
tutorialTexts[1] = language:getText("tutorial 10")
tutorialTexts[2] = language:getText("tutorial 11")
end
local textureSize = images[1]:getSize()
--update header text
headerLable:setText("Tutorial "..tutorialIndex.."/"..#tutorialTexts)
--Spacing
mainPanel:add(Panel(PanelSize(Vec2(-1,0.0075))))
--create image panel
image = mainPanel:add(Image(PanelSize(Vec2(-0.9,-1),Vec2(1,textureSize.y/textureSize.x)),images[1]))
--Spacing
mainPanel:add(Panel(PanelSize(Vec2(-1,0.0075))))
--
local infoAndButtonPanel = mainPanel:add(Panel(PanelSize(Vec2(-0.9,-1))))
infoAndButtonPanel:setLayout(FallLayout(Alignment.BOTTOM_CENTER))
--create next button
local buttonPanel = infoAndButtonPanel:add(Panel(PanelSize(Vec2(-1,0.03))))
buttonPanel:setLayout(FlowLayout(Alignment.BOTTOM_RIGHT))
nextButton = buttonPanel:add(MainMenuStyle.createButton(Vec2(-1),Vec2(4,1), "Next"))
nextButton:addEventCallbackExecute(next)
--create previous button
previousButton = buttonPanel:add(MainMenuStyle.createButton(Vec2(-1),Vec2(4,1), "Previous"))
previousButton:setVisible(false)
previousButton:addEventCallbackExecute(previous)
MainMenuStyle.createBreakLine(infoAndButtonPanel,-1)
label = infoAndButtonPanel:add(Label(PanelSize(Vec2(-1)), tutorialTexts[tutorialIndex], MainMenuStyle.textColor))
label:setTextAlignment(Alignment.TOP_LEFT)
label:setTextHeight(0.015)
return true
end
function update()
form:update()
return run
end |
local CudnnGetStatesWrapper, nnContainer = torch.class('znn.CudnnGetStatesWrapper', 'nn.Container')
function CudnnGetStatesWrapper:__init(rnn)
nnContainer.__init(self)
self.modules = {rnn}
self.output = {}
end
function CudnnGetStatesWrapper:updateOutput(input)
local rnn = self.modules[1]
local pred = rnn:forward(input)
self.output = {
-- pred:narrow(1, input:size(1), 1):clone(),
rnn.hiddenOutput:clone(),
rnn.cellOutput:clone()
}
return self.output
end
function CudnnGetStatesWrapper:updateGradInput(input, gradOutput)
local rnn = self.modules[1]
self.buffer = self.buffer or torch.CudaTensor()
local buffer = self.buffer
buffer:resizeAs(rnn.output):zero()
-- buffer[ input:size(1) ]:copy(gradOutput[1])
rnn.gradHiddenOutput = gradOutput[1]
rnn.gradCellOutput = gradOutput[2]
self.gradInput = rnn:backward(input, buffer)
return self.gradInput
end
|
local server = require "nvim-lsp-installer.server"
local path = require "nvim-lsp-installer.path"
local std = require "nvim-lsp-installer.installers.std"
local context = require "nvim-lsp-installer.installers.context"
return function(name, root_dir)
return server.Server:new {
name = name,
root_dir = root_dir,
homepage = "https://1c-syntax.github.io/bsl-language-server",
languages = { "onescript" },
installer = {
std.ensure_executables {
{ "java", "java was not found in path." },
},
context.use_github_release_file("1c-syntax/bsl-language-server", function(tag)
local version = tag:gsub("^v", "")
return ("bsl-language-server-%s-exec.jar"):format(version)
end),
context.capture(function(ctx)
return std.download_file(ctx.github_release_file, "bsl-lsp.jar")
end),
context.receipt(function(receipt, ctx)
receipt:with_primary_source(receipt.github_release_file(ctx))
end),
},
default_options = {
cmd = {
"java",
"-jar",
path.concat { root_dir, "bsl-lsp.jar" },
},
},
}
end
|
local conf = require "config"
local ssh = require "utils.ffi.ssh"
local mod = {}
mod.__index = mod
local session = nil
function mod.addInterfaceIP(interface, ip, pfx)
return mod.exec("ip addr add " .. ip .. "/" .. pfx .. " dev " .. interface)
end
function mod.delInterfaceIP(interface, ip, pfx)
return mod.exec("ip addr del " .. ip .. "/" .. pfx .. " dev " .. interface)
end
function mod.clearIPFilters()
return mod.exec("iptables --flush FORWARD")
end
function mod.addIPFilter(src, sPfx, dst, dPfx)
return mod.exec("iptables -A FORWARD -s " .. src .. "/" .. sPfx .. " -d " .. dst .. "/" .. dPfx .. " -j DROP")
end
function mod.delIPFilter()
return mod.exec("iptables -D FORWARD -s " .. src .. "/" .. sPfx .. " -d " .. dst .. "/" .. dPfx .. " -j DROP")
end
function mod.clearIPRoutes()
return mod.exec("ip route flush table main")
end
function mod.addIPRoute(dst, pfx, gateway, interface)
if gateway and interface then
return mod.exec("ip route add " .. dst .. "/" .. pfx .. " via " .. gateway .. " dev " .. interface)
elseif gateway then
return mod.exec("ip route add " .. dst .. "/" .. pfx .. " via " .. gateway)
elseif interface then
return mod.exec("ip route add " .. dst .. "/" .. pfx .. " dev " .. interface)
else
return -1
end
end
function mod.delIPRoute()
if gateway and interface then
return mod.exec("ip route del " .. dst .. "/" .. pfx .. " via " .. gateway .. " dev " .. interface)
elseif gateway then
return mod.exec("ip route del " .. dst .. "/" .. pfx .. " via " .. gateway)
elseif interface then
return mod.exec("ip route del " .. dst .. "/" .. pfx .. " dev " .. interface)
else
return -1
end
end
function mod.getIPRouteCount()
local ok, res = mod.exec("ip route show | wc -l")
return ok, tonumber(res)
end
function mod.exec(cmd)
local sess, err = mod.getSession()
if not sess or err ~= 0 then
return -1, err
end
cmd_res, rc = ssh.request_exec(sess, cmd)
if cmd_res == nil then
print(rc)
return -1, rc
end
return rc, cmd_res
end
--[[
function exec(cmd)
local sess, err = getSession()
if not sess or err ~= 0 then
return err
end
cmd_res = ssh.request_exec(sess, cmd)
return tonumber(ssh.request_exec(sess, "echo $?")), cmd_res
end
--]]
function mod.getSession()
if not session then
print("ssh: establishing new connection")
session = ssh.new()
if session == nil then
return nil, -1
end
ssh.set_option(session, "user", conf.getSSHUser())
ssh.set_option(session, "host", conf.getHost())
ssh.set_option(session, "port", conf.getSSHPort())
-- do not ask for checking host signature
ssh.set_option(session, "strict_hostkey", false)
ssh.connect(session)
local ok = ssh.auth_autopubkey(session)
if not ok then
ok = ssh.auth_password(session, conf.getSSHPass())
end
if not ok then
return nil, -1
end
-- could get banner to guess system
-- (Mikrotik)
-- ssh.get_issue_banner(session)
session = session
end
return session, 0
end
return mod
|
local PANEL = {}
function PANEL:Init()
if (IsValid(nut.gui.stoveinv)) then
nut.gui.stoveinv:Remove()
end
nut.gui.stoveinv = self
self:SetSize(64, 64)
self:setGridSize(nut.config.get("invW"), nut.config.get("invH"))
self.panels = {}
local created = {}
if (LocalPlayer():getChar() and LocalPlayer():getChar():getInv().slots) then
for x, items in pairs(LocalPlayer():getChar():getInv().slots) do
for y, data in pairs(items) do
if (!data.id) then continue end
local item = nut.item.instances[data.id]
if (item and !IsValid(self.panels[item.id])) then
local icon = self:addIcon(item.model or "models/props_junk/popcan01a.mdl", x, y, item.width, item.height)
if (IsValid(icon)) then
icon:SetToolTip("Item #"..item.id.."\n"..L("itemInfo", item.name, (type(item.desc) == "function" and item.desc(item) or item.desc)))
self.panels[item.id] = icon
end
end
end
end
end
end
function PANEL:setGridSize(w, h)
self.gridW = w
self.gridH = h
self:SetSize(w * 64 + 8, h * 64 + 8)
self:buildSlots()
end
function PANEL:buildSlots()
self.slots = self.slots or {}
local function PaintSlot(slot, w, h)
surface.SetDrawColor(0, 0, 0, 50)
surface.DrawRect(1, 1, w - 2, h - 2)
surface.SetDrawColor(0, 0, 0, 130)
surface.DrawOutlinedRect(1, 1, w - 2, h - 2)
end
for k, v in ipairs(self.slots) do
for k2, v2 in ipairs(v) do
v2:Remove()
end
end
self.slots = {}
for x = 1, self.gridW do
self.slots[x] = {}
for y = 1, self.gridH do
local slot = self:Add("DPanel")
slot.gridX = x
slot.gridY = y
slot:SetPos((x - 1) * 64 + 4, (y - 1) * 64 + 8)
slot:SetSize(64, 64)
slot.Paint = PaintSlot
self.slots[x][y] = slot
end
end
end
function PANEL:addIcon(model, x, y, w, h)
w = w or 1
h = h or 1
if (self.slots[x] and self.slots[x][y]) then
local panel = self:Add("nutItemIcon")
panel:SetSize(w * 64, h * 64)
panel:SetZPos(1)
panel:InvalidateLayout(true)
panel:SetModel(model)
panel:SetPos(self.slots[x][y]:GetPos())
panel.gridX = x
panel.gridY = y
panel.gridW = w
panel.gridH = h
panel.OnMousePressed = function(this, code)
if (this.doRightClick) then
this:doRightClick()
end
end
panel.doRightClick = function(this)
local itemTable = LocalPlayer():getChar():getInv():getItemAt(panel.gridX, panel.gridY)
if (itemTable) then
itemTable.client = LocalPlayer()
local cooked = itemTable:getData("cooked", 0)
if (itemTable.isFood != true or cooked != 0 or itemTable.cookable == false) then
surface.PlaySound("buttons/button10.wav")
else
local menu = DermaMenu()
menu:AddOption("Cook", function()
netstream.Start("cookFood", itemTable:getID())
end):SetImage(itemTable.icon or "icon16/brick.png")
menu:Open()
end
itemTable.client = nil
end
end
panel.PaintOver = function(this, w, h)
local itemTable = LocalPlayer():getChar():getInv():getItemAt(this.gridX, this.gridY)
local cooked = itemTable:getData("cooked", 0)
if (itemTable.isFood != true or cooked != 0 or itemTable.cookable != true) then
surface.SetDrawColor(255, 0, 0, 15)
surface.DrawRect(2, 2, w - 4, h - 4)
end
if (itemTable and itemTable.paintOver) then
itemTable.paintOver(this, itemTable, w, h)
end
end
panel.slots = {}
for i = 0, w - 1 do
for i2 = 0, h - 1 do
local slot = self.slots[x + i] and self.slots[x + i][y + i2]
if (IsValid(slot)) then
slot.item = panel
panel.slots[#panel.slots + 1] = slot
else
for k, v in ipairs(panel.slots) do
v.item = nil
end
panel:Remove()
return
end
end
end
return panel
end
end
vgui.Register("nutStoveInventory", PANEL, "EditablePanel")
PANEL = {}
function PANEL:Init()
self:SetTitle("Cooking Menu")
self.inv = self:Add("nutStoveInventory")
local x, y = self.inv:GetSize()
self.inv:SetPos(0, 20)
self:SetSize(x, y + 24)
self:Center()
self:MakePopup()
end
vgui.Register("nutStoveFrame", PANEL, "DFrame")
netstream.Hook("nutStoveFrame", function()
if (cookMenu and cookMenu:IsVisible()) then
cookMenu:Close()
cookMenu = nil
end
cookMenu = vgui.Create("nutStoveFrame")
end) |
-----------------------------------------------------
--name : lib/qui.lua
--description: qui - quick user interface - create UIs from strings
--author : mpmxyz
--github page: https://github.com/mpmxyz/ocprograms
--forum page : http://oc.cil.li/index.php?/topic/
-----------------------------------------------------
local unicode = require("unicode")
local values = require("mpm.values")
local textgfx = require("mpm.textgfx")
--local regex = require("TODO.regex") TODO: improve regex with captures
local linePattern = "([^\r\n]*)(\r?\n?)"
local qui = {
fgColor = 0xFFFFFF,
bgColor = 0x000000,
}
local methods = {}
local meta = {__index = methods}
--creates a new UI element using the given table
function qui.new(obj)
checkArg(1, obj, "table", "nil")
--obj: optional parameter
obj = obj or {}
--
setmetatable(obj, meta)
if obj.parent then
obj:setParent(obj.parent)
end
obj:assertValid()
return obj
end
--creates a user inferface from a string and a description of ui objects
function qui.load(text, uiTable, patterns)
checkArg(1, text , "string")
checkArg(2, uiTable , "table")
checkArg(3, patterns, "table", "nil")
--patterns: optional parameter
patterns = patterns or {
h = "%*+(%a*)%**",
v = "%#+(%a*)%#*",
}
--create parent object
local parentObj = qui.new{
x = 1, y = 1,
x_draw = 1, y_draw = 1,
width = 0, height = 0,
text = text,
}
local function addNew(key, x, y, width, height)
local uiContent = uiTable[key]
if uiContent then
--create qui object
local obj = qui.new{
x = x, y = y,
width = width, height = height,
parent = parentObj,
uiKey = key,
}
--paste ui properties into ui object
for k, v in pairs(uiContent) do
local previousValue = rawget(obj, k)
assert(previousValue == nil or previousValue == v, "Attempted to overwrite autogenerated ui property!")
obj[k] = v
end
--optional init method
if obj.init then
obj:init()
end
return obj
end
end
--objects created in the currently processed line; indexable by the x coordinate
local thisLine = {}
--objects created in the last processed line; indexable by the x coordinate
local lastLine
local lines = {}
local nlines = 0
local function checkLine(line, pattern, y, vertical)
thisLine, lastLine = {}, thisLine
for from, key, to in line:gmatch("()" .. pattern .. "()") do
if to == nil then
--no capture inside pattern: amend data
to = key
key = line:sub(from, to - 1)
end
to = to - 1
--get position
local x = unicode.wlen(line:sub(1, from - 1)) + 1
local width, height = unicode.wlen(line:sub(from, to)), 1
if key == "" then
--this part belongs to the object above (increment its height by one)
local aboveObject = lastLine[x]
if aboveObject then
if vertical then
if aboveObject.height == width then
aboveObject.width = aboveObject.width + 1
thisLine[x] = aboveObject
end
else
if aboveObject.width == width then
aboveObject.height = aboveObject.height + 1
thisLine[x] = aboveObject
end
end
end
else
--create object
if vertical then
thisLine[x] = addNew(key, y, x, height, width)
else
thisLine[x] = addNew(key, x, y, width, height)
end
end
end
end
--go through the text and extract locations of interactive objects
for line, lineBreak in text:gmatch(linePattern) do
if line ~= "" or lineBreak ~= "" then
nlines = nlines + 1
parentObj.width = math.max(parentObj.width, unicode.wlen(line))
lines[nlines] = line
if patterns.h then
checkLine(line, patterns.h, nlines)
end
end
end
if patterns.v then
thisLine = {}
for column = 1, parentObj.width do
local buffer = {}
for i = 1, nlines do
local char = unicode.sub(lines[i], column, column)
if char == "" then
buffer[i] = " "
else
buffer[i] = char
end
end
local columnString = table.concat(buffer)
checkLine(columnString, patterns.v, column, true)
end
end
parentObj.height = nlines
return parentObj
end
function methods:assertValid()
values.checkRawNumber(self.x, "x")
values.checkRawNumber(self.y, "y")
values.checkRawNumber(self.width , "width")
values.checkRawNumber(self.height, "height")
values.checkString(self.text, "text", "")
values.checkNumber(self.fgColor, "fgColor", "")
values.checkNumber(self.bgColor, "bgColor", "")
values.checkNumber(self.x_draw, "x_draw", "")
values.checkNumber(self.y_draw, "y_draw", "")
values.checkCallable(self.onDraw, "onDraw", "")
values.checkCallable(self.onDraw, "onClick", "")
values.checkCallable(self.onDraw, "onScroll", "")
end
function methods:isValid()
return pcall(self.assertValid, self)
end
--default drawing function
function methods:onDraw(gpu, viewXmin, viewYmin, viewXmax, viewYmax)
--get text
if self.text == nil then
return
end
local text = values.get(self.text)
if text == nil then
return
end
--check visibility
if not textgfx.checkView(self.x_draw, self.y_draw, self.width, self.height, viewXmin, viewYmin, viewXmax, viewYmax) then
return
end
--set color
local foreground, background = values.get(self.fgColor or qui.fgColor), values.get(self.bgColor or qui.bgColor)
if self.marked then
--swapping colors when marked
foreground, background = background, foreground
end
local oldForeground, oldBackground
if foreground then
oldForeground = gpu.setForeground(foreground)
end
if background then
oldBackground = gpu.setBackground(background)
end
--draw line by line
textgfx.draw(gpu, text, self.x_draw, self.y_draw, self.width, self.height, viewXmin, viewYmin, viewXmax, viewYmax, self.vertical)
--return to old color
if oldForeground then
gpu.setForeground(oldForeground)
end
if oldBackground then
gpu.setBackground(oldBackground)
end
end
function methods:setParent(newParent, dontUpdate)
--remove from old parent
--unoptimized due to low expected number of children
local oldParent = self.parent
if oldParent then
for i = 1, #oldParent do
if oldParent[i] == self then
table.remove(oldParent, i)
end
end
end
--change parent
self.parent = newParent
table.insert(newParent, self)
--update
if not dontUpdate then
self:update()
end
end
function methods:setPosition(x, y, dontUpdate)
--change position
self.x = x
self.y = y
--update
if not dontUpdate then
self:update()
end
end
function methods:isInBox(x, y)
--transform to relative coordinates
x = x - self.x_draw
y = y - self.y_draw
--return result
return (x >= 0 and y >= 0 and x < self.width_draw and y < self.height_draw)
end
local function newChildIterator(name, reversed)
if reversed then
return function(self, ...)
--reversed iteration
for i = #self, 1, -1 do
local obj = self[i]
local abort = obj[name](obj, ...)
if abort ~= nil then
return abort
end
end
end
else
return function(self, ...)
--normal iteration
for i = 1, #self do
local obj = self[i]
local abort = obj[name](obj, ...)
if abort ~= nil then
return abort
end
end
end
end
end
--updates the drawing positions
methods.updateChildren = newChildIterator("update")
function methods:update()
if self.preUpdate then
--e.g. to run ui layout managers
self:preUpdate()
end
--updating the position and shape of this object
local parent = self.parent
if parent then
self.x_draw = self.x + parent.x_draw - 1
self.y_draw = self.y + parent.y_draw - 1
else
self.x_draw = self.x
self.y_draw = self.y
end
self.width_draw = self.width
self.height_draw = self.height
if self.onUpdate then
--e.g. for graphics updates
self:onUpdate()
end
return self:updateChildren()
end
--draws all gadgets
methods.drawChildren = newChildIterator("draw")
function methods:draw(gpu)
checkArg(1, gpu, "table")
--remember gpu for redraw actions
self.lastGPU = gpu
--call drawing function
self:onDraw(gpu)
--recursion on children
return self:drawChildren(gpu)
end
--redraws all gadgets using the last used gpu
methods.redrawChildren = newChildIterator("redraw")
function methods:redraw(...)
if self.lastGPU then
--call drawing function
self:onDraw(self.lastGPU, ...)
--recursion on children
return self:redrawChildren(...)
end
end
local function newEventProcessor(childAction, eventAction)
return function(self, x, y, ...)
if self.disabled then
return
end
local childResult = self[childAction](self, x, y, ...)
if childResult ~= nil then
return childResult
end
if self[eventAction] and self:isInBox(x, y) then
self[eventAction](self, x, y, ...)
return true
end
end
end
function methods:isInteractive()
return (self.onClick ~= nil or self.onScroll ~= nil)
end
--checks for an action at the given position and executes it
methods.clickChildren = newChildIterator("click", true)
methods.click = newEventProcessor("clickChildren", "onClick")
--checks for an action at the given position and executes it
methods.scrollChildren = newChildIterator("scroll", true)
methods.scroll = newEventProcessor("scrollChildren", "onScroll")
return qui
|
local gamera = require "libs/gamera"
local Camera = Point:extend()
function Camera:new(x, y, w, h)
Camera.super.new(self)
self.cam = gamera.new(x, y, w, h)
self.follow = Mouse
self.followLock = true
self.followSpeed = 5
self.basedOnDistance = true
self.velocity = Point()
self.rotate = false
self.rotateLock = false
self.baseAngle = 0
self.angle = self.cam:getAngle()
self.zoom = 1
self:zoomTo(1)
self:set(0)
end
function Camera:update(dt)
self.angle = self.cam:getAngle()
if self.follow then
local x, y
if self.follow.centerX then
x, y = self.follow:centerX(), self.follow:centerY()
else
x, y = self.follow:getX(), self.follow:getY()
end
if self.followLock then
self.x = x
self.y = y
else
self.x = x
self.y = y
print("WARNING, NO LERP!")
--TODO: LERP!
end
if self.rotate and self.follow.angle then
local follow_angle = self.follow.angle + (self.follow.angleOffset or 0)
if self.rotateLock then
self.angle = follow_angle
else
self.angle = lume.rotate(self.angle, follow_angle, dt * 2)
self.rotateLock = self.angle == follow_angle
end
end
end
if not self.rotate then
if self.rotateLock then
self.angle = self.baseAngle
else
self.angle = lume.rotate(self.angle, self.baseAngle, dt * 2)
end
end
self.cam:setPosition(self.x, self.y)
self.cam:setAngle(self.angle)
self.cam:setScale(self.zoom)
end
function Camera:draw(f)
self.cam:draw(f)
end
function Camera:setRotate(r, lock)
self.rotate = r
self.rotateLock = lock
end
function Camera:setAngle(a)
self.angle = a
self.cam:setAngle(a)
end
function Camera:setPosition(x, y)
self.x, self.y = x, y
self.cam:setPosition(x, y)
end
function Camera:getTruePosition()
return self.cam:getPosition(x, y)
end
function Camera:setFollow(f)
self.follow = f
end
function Camera:zoomTo(zoom)
self.zoom = zoom
end
function Camera:zoomIn(amount)
self.zoom = self.zoom + (amount or 0.1)
end
function Camera:zoomOut(amount)
self.zoom = self.zoom - (amount or 0.1)
end
function Camera:getZoom()
return self.cam:getScale()
end
function Camera:__tostring()
return lume.tostring(self, "Camera")
end
return Camera |
if file.Exists('sv_resourcecontrol.json', 'DATA') then
local workshop = util.JSONToTable(file.Read('sv_resourcecontrol.json'))
for i,v in pairs(workshop) do
resource.AddWorkshop( v )
end
end
hook.Add('TTS:AuthServer', 'TTS.ResourceControl', function()
local srvId = TTS.Config.Server.id_name
ResourceTable = {}
local _oldResAddWork = resource.AddWorkshop
function resource.AddWorkshop( workshop_id )
table.insert(ResourceTable, workshop_id)
return _oldResAddWork(workshop_id)
end
timer.Simple(0, function()
-- RunConsoleCommand("sv_loadingurl", "https://shaft.cc/apps/loadscreen?gm="..srvId)
RunConsoleCommand("sv_loadingurl", "")
RunConsoleCommand("sv_allowcslua", "0")
RunConsoleCommand("sv_allowupload", "0")
RunConsoleCommand("sv_allowdownload", "0")
RunConsoleCommand("sv_hibernate_think", "1")
end)
print('srvId', srvId)
if srvId == "gm_deathrun" then
resource.AddWorkshop( '2536130490' ) -- [DR,MU] 1 L
resource.AddWorkshop( '2536132961' ) -- [DR] 2 L
resource.AddWorkshop( '2536192530' ) -- [DR] 1 LP
resource.AddWorkshop( '2536203464' ) -- [DR] 2 LP
resource.AddWorkshop( '1958417117' ) -- [DR] 34
resource.AddWorkshop( '1958420499' ) -- [DR] 35
resource.AddWorkshop( '1958423466' ) -- [DR] 36
resource.AddWorkshop( '1958444727' ) -- [DR] 36
elseif srvId == "gm_murder" then
resource.AddWorkshop( '1178876408' ) -- cs_office | Tt
resource.AddWorkshop( '111412589' ) -- Star Wars Lightsabers
resource.AddWorkshop( '2536130490' ) -- [DR,MU] 1 L
resource.AddWorkshop( '2536148307' ) -- [MU] 1 LP
resource.AddWorkshop( '2536133642' ) -- [MU] 3 L
resource.AddWorkshop( '2536160369' ) -- [MU] 2 LP
resource.AddWorkshop( '1958426599' ) -- [MU] 37
resource.AddWorkshop( '1958428696' ) -- [MU] 38
end
-- PrintTable(tabl)
file.Write('sv_resourcecontrol.json', util.TableToJSON(ResourceTable))
resource.AddFile( "resource/fonts/opensans-bolditalic-shaftim.ttf" )
resource.AddFile( "resource/fonts/opensans-bold-shaftim.ttf" )
resource.AddFile( "resource/fonts/opensans-extrabi-shaftim.ttf" )
resource.AddFile( "resource/fonts/opensans-extrabold-shaftim.ttf" )
resource.AddFile( "resource/fonts/opensans-italic-shaftim.ttf" )
resource.AddFile( "resource/fonts/opensans-lightitalic-shaftim.ttf" )
resource.AddFile( "resource/fonts/opensans-light-shaftim.ttf" )
resource.AddFile( "resource/fonts/opensans-regular-shaftim.ttf" )
resource.AddFile( "resource/fonts/opensans-semibi-shaftim.ttf" )
resource.AddFile( "resource/fonts/opensans-semibold-shaftim.ttf" )
end) |
if GetBot():IsInvulnerable() or not GetBot():IsHero() or not string.find(GetBot():GetUnitName(), "hero") or GetBot():IsIllusion() then
return;
end
local ability_item_usage_generic = dofile( GetScriptDirectory().."/ability_item_usage_generic" )
local utils = require(GetScriptDirectory() .. "/util")
local mutil = require(GetScriptDirectory() .. "/MyUtility")
function AbilityLevelUpThink()
ability_item_usage_generic.AbilityLevelUpThink();
end
function BuybackUsageThink()
ability_item_usage_generic.BuybackUsageThink();
end
function CourierUsageThink()
ability_item_usage_generic.CourierUsageThink();
end
function ItemUsageThink()
ability_item_usage_generic.ItemUsageThink()
end
local castOODesire = 0;
local castFBDesire = 0;
local castTSDesire = 0;
local castLDDesire = 0;
local abilityOO = nil;
local abilityFB = nil;
local abilityTS = nil;
local abilityLD = nil;
local npcBot = nil;
function AbilityUsageThink()
if npcBot == nil then npcBot = GetBot(); end
-- Check if we're already using an ability
if mutil.CanNotUseAbility(npcBot) then return end
if abilityOO == nil then abilityOO = npcBot:GetAbilityByName( "pugna_nether_blast" ) end
if abilityFB == nil then abilityFB = npcBot:GetAbilityByName( "pugna_decrepify" ) end
if abilityTS == nil then abilityTS = npcBot:GetAbilityByName( "pugna_nether_ward" ) end
if abilityLD == nil then abilityLD = npcBot:GetAbilityByName( "pugna_life_drain" ) end
-- Consider using each ability
castOODesire, castOOLocation = ConsiderOverwhelmingOdds();
castFBDesire, castFBTarget = ConsiderFireblast();
castTSDesire, castTSLocation = ConsiderTombStone();
castLDDesire, castLDTarget = ConsiderLifeDrain();
if ( castTSDesire > 0 )
then
npcBot:Action_UseAbilityOnLocation( abilityTS, castTSLocation );
return;
end
if ( castFBDesire > 0 )
then
npcBot:Action_UseAbilityOnEntity( abilityFB, castFBTarget );
return;
end
if ( castOODesire > 0 )
then
npcBot:Action_UseAbilityOnLocation( abilityOO, castOOLocation );
return;
end
if ( castLDDesire > 0 )
then
npcBot:Action_UseAbilityOnEntity( abilityLD, castLDTarget );
return;
end
end
function ConsiderOverwhelmingOdds()
-- Make sure it's castable
if ( not abilityOO:IsFullyCastable() )
then
return BOT_ACTION_DESIRE_NONE, 0;
end
-- Get some of its values
local nDelay = abilityOO:GetSpecialValueInt( "delay" );
local nRadius = abilityOO:GetSpecialValueInt( "radius" );
local nCastRange = abilityOO:GetCastRange();
local nCastPoint = abilityOO:GetCastPoint( );
local nDamage = abilityOO:GetSpecialValueInt("blast_damage");
--------------------------------------
-- Mode based usage
--------------------------------------
-- If we're seriously retreating, see if we can land a stun on someone who's damaged us recently
if mutil.IsRetreating(npcBot)
then
local tableNearbyEnemyHeroes = npcBot:GetNearbyHeroes( nCastRange, true, BOT_MODE_NONE );
for _,npcEnemy in pairs( tableNearbyEnemyHeroes )
do
if npcBot:WasRecentlyDamagedByHero( npcEnemy, 2.0 )
then
return BOT_ACTION_DESIRE_MODERATE, npcEnemy:GetLocation();
end
end
end
if ( npcBot:GetActiveMode() == BOT_MODE_ROSHAN )
then
local npcTarget = npcBot:GetAttackTarget();
if ( mutil.IsRoshan(npcTarget) and mutil.CanCastOnMagicImmune(npcTarget) and mutil.IsInRange(npcTarget, npcBot, nCastRange) )
then
return BOT_ACTION_DESIRE_LOW, npcTarget;
end
end
if mutil.IsInTeamFight(npcBot, 1200)
then
local locationAoE = npcBot:FindAoELocation( true, true, npcBot:GetLocation(), nCastRange, nRadius/2, 0, 0 );
if ( locationAoE.count >= 2 ) then
return BOT_ACTION_DESIRE_LOW, locationAoE.targetloc;
end
end
if mutil.IsDefending(npcBot) or mutil.IsPushing(npcBot)
then
local lanecreeps = npcBot:GetNearbyLaneCreeps(nCastRange+200, true);
local locationAoE = npcBot:FindAoELocation( true, false, npcBot:GetLocation(), nCastRange, nRadius/2, nDelay, 0 );
local tableNearbyTowers = npcBot:GetNearbyTowers( 1000, true);
local tableNearbyBarracks = npcBot:GetNearbyBarracks( 1000, true);
if tableNearbyTowers[1] ~= nil then
return BOT_ACTION_DESIRE_LOW, tableNearbyTowers[1]:GetLocation();
end
if tableNearbyBarracks[1] ~= nil then
return BOT_ACTION_DESIRE_LOW, tableNearbyBarracks[1]:GetLocation();
end
if ( locationAoE.count >= 4 and #lanecreeps >= 4 )
then
return BOT_ACTION_DESIRE_LOW, locationAoE.targetloc;
end
end
-- If we're going after someone
if mutil.IsGoingOnSomeone(npcBot)
then
local npcTarget = npcBot:GetTarget();
if mutil.IsValidTarget(npcTarget) and mutil.CanCastOnNonMagicImmune(npcTarget) and mutil.IsInRange(npcTarget, npcBot, nCastRange+200)
then
return BOT_ACTION_DESIRE_MODERATE, npcTarget:GetExtrapolatedLocation( nDelay + nCastPoint );
end
end
--
return BOT_ACTION_DESIRE_NONE, 0;
end
function ConsiderFireblast()
-- Make sure it's castable
if ( not abilityFB:IsFullyCastable() ) then
return BOT_ACTION_DESIRE_NONE, 0;
end
-- Get some of its values
local nCastRange = abilityFB:GetCastRange();
local nRadius = 0;
--------------------------------------
-- Mode based usage
--------------------------------------
-- If we're seriously retreating, see if we can land a stun on someone who's damaged us recently
if mutil.IsRetreating(npcBot)
then
local tableNearbyEnemyHeroes = npcBot:GetNearbyHeroes( nCastRange, true, BOT_MODE_NONE );
for _,npcEnemy in pairs( tableNearbyEnemyHeroes )
do
if ( mutil.CanCastOnNonMagicImmune(npcEnemy) )
then
return BOT_ACTION_DESIRE_HIGH, npcEnemy;
else
return BOT_ACTION_DESIRE_HIGH, npcBot;
end
end
end
-- If we're going after someone
if mutil.IsGoingOnSomeone(npcBot)
then
local npcTarget = npcBot:GetTarget();
if mutil.IsValidTarget(npcTarget) and mutil.CanCastOnNonMagicImmune(npcTarget) and mutil.IsInRange(npcTarget, npcBot, nCastRange+200)
and not mutil.IsDisabled(true, npcTarget)
then
return BOT_ACTION_DESIRE_MODERATE, npcTarget;
end
end
return BOT_ACTION_DESIRE_NONE, 0;
end
function ConsiderTombStone()
-- Make sure it's castable
if ( not abilityTS:IsFullyCastable() )
then
return BOT_ACTION_DESIRE_NONE, 0;
end
-- Get some of its values
local nCastRange = abilityTS:GetCastRange();
local nCastPoint = abilityTS:GetCastPoint();
--------------------------------------
-- Mode based usage
--------------------------------------
if mutil.IsInTeamFight(npcBot, 1200)
then
local tableNearbyEnemyHeroes = npcBot:GetNearbyHeroes( 1200, true, BOT_MODE_NONE );
if ( tableNearbyEnemyHeroes ~= nil and #tableNearbyEnemyHeroes >= 2 )
then
return BOT_ACTION_DESIRE_HIGH, npcBot:GetXUnitsInFront(nCastRange/2);
end
end
return BOT_ACTION_DESIRE_NONE, 0;
end
function ConsiderLifeDrain()
-- Make sure it's castable
if ( not abilityLD:IsFullyCastable() ) then
return BOT_ACTION_DESIRE_NONE, 0;
end
-- Get some of its values
local nCastRange = abilityLD:GetCastRange();
local nDamage = 500;
--------------------------------------
-- Mode based usage
-------------------------------------
-- If we're seriously retreating, see if we can land a stun on someone who's damaged us recently
if mutil.IsRetreating(npcBot)
then
local tableNearbyAllyHeroes = npcBot:GetNearbyHeroes( 1000, false, BOT_MODE_ATTACK );
if tableNearbyAllyHeroes ~= nil and #tableNearbyAllyHeroes >= 2
then
local tableNearbyEnemyHeroes = npcBot:GetNearbyHeroes( 1000, true, BOT_MODE_NONE );
for _,npcEnemy in pairs( tableNearbyEnemyHeroes )
do
if ( npcBot:WasRecentlyDamagedByHero( npcEnemy, 2.0 ) and mutil.CanCastOnNonMagicImmune(npcEnemy) )
then
return BOT_ACTION_DESIRE_MODERATE, npcEnemy;
end
end
end
end
-- If we're going after someone
if mutil.IsGoingOnSomeone(npcBot)
then
local npcTarget = npcBot:GetTarget();
if mutil.IsValidTarget(npcTarget) and mutil.CanCastOnNonMagicImmune(npcTarget) and mutil.IsInRange(npcTarget, npcBot, nCastRange)
then
return BOT_ACTION_DESIRE_MODERATE, npcTarget;
end
end
return BOT_ACTION_DESIRE_NONE, 0;
end
|
ngx.header.content_type='text/html'
ngx.status=404
ngx.print([[<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, viewport-fit=cover">
<title>404 Not Found</title>
<style type="text/css">@font-face{font-family:FSEX300;src:url(data:application/x-font-ttf;charset=utf-8;base64,AAEAAAAKAIAAAwAgT1MvMlysuCIAAACsAAAAYGNtYXBnwSHmAAABDAAAAXpnbHlmFAN22gAAAogAAA3gaGVhZPkv95UAABBoAAAANmhoZWEA1AA0AAAQoAAAACRobXR4AcwBcgAAEMQAAACKbG9jYXk4deYAABFQAAAAim1heHAASAAmAAAR3AAAACBuYW1loxsDLAAAEfwAAAO6cG9zdAdqB1sAABW4AAAAqgAEAFABkAAFAAAAcABoAAAAFgBwAGgAAABMAAoAKAgKAgsGAAcHAgQCBOUQLv8QAAAAAALNHAAAAABQT09QAEAAIQB6AIL/4gAAAIIAHmARAf///wAAAEYAWgAAACAAAAAAAAMAAAADAAAAHAABAAAAAAB0AAMAAQAAABwABABYAAAAEgAQAAMAAgAhACkALAAuADkAWgB6/////wAAACEAKAAsAC4AMABBAGH//////+D/2v/Y/9f/1v/P/8kAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAABBgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAIDAAAEAAUABgcICQoLDA0ODwAAAAAAAAAQERITFBUWFxgZGhscHR4fICEiIyQlJicoKQAAAAAAACorLC0uLzAxMjM0NTY3ODk6Ozw9Pj9AQUJDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAFAAAADwAWgALAA8AADcjFSM1IzUzNTMVMwcjNTM8ChQKChQKChQUMhQUHgoKUBQAAAABABT/7AA8AFoAEwAAFyM1IzUjNTM1MzUzFSMVIxUzFTM8FAoKCgoUCgoKChQKFDIUCgoUMhQAAAEAFP/sADwAWgATAAA3IxUjFSM1MzUzNSM1IzUzFTMVMzwKChQKCgoKFAoKChQKChQyFAoKFAAAAQAe/+wAPAAUAAkAABcjFSM1MzUjNTM8ChQKCh4KCgoKFAAAAQAeAAAAPAAUAAMAADcjNTM8Hh4AFAAAAgAUAAAAUABaAAsAFwAANyMVIzUjNTM1MxUzBzUjNTM1IxUzFSMVUAooCgooChQKChQKCgoKCkYKCkYoFAooFAoAAAABAAoAAAA8AFoACQAANyM1IzUzNTM1MzwUHhQKFAA8CgoKAAABAAoAAABGAFoAHQAANyM1MzUzNTM1MzUjFSM1MzUzFTMVIxUjFSMVIxUzRjwKCgoKFBQKKAoKCgoKKAAUCgoKHhQUCgoeCgoKCgAAAQAKAAAARgBaABsAADcjFSM1IzUzFTM1IzUzNSMVIzUzNTMVMxUjFTNGCigKFBQUFBQUCigKCgoKCgoUFB4KHhQUCgoeCgAAAQAKAAAAUABaABEAADcjFSM1IzUzNTMVIxUzNTMVM1AKFCgKFAoUFAoUFBQUMjIKKCgAAAEACgAAAEYAWgATAAA3IxUjFSM1MzUzNSM1MxUjFTMVM0YKCigeCig8KB4KFAoKCgoUMgoeCgAAAgAKAAAARgBaABMAFwAANyMVIzUjNTM1MzUzFSMVIxUzFTMHNSMVRgooCgoKHgoKFAoUFAoKCjIKFAoKCgooKCgAAAABAAoAAABGAFoAEQAANyMVIxUjFSM1MzUzNTM1IzUzRgoKChQKCgooPEYUFB4eFBQKCgAAAwAKAAAARgBaABMAGQAfAAA3IxUjNSM1MzUjNTM1MxUzFSMVMyc1IxUzFRc1IzUjFUYKKAoKCgooCgoKFBQKCgoKCgoKHgoeCgoeCgoeFAooFAoeAAAAAAIACgAAAEYAWgATABcAADcjFSMVIzUzNTM1IzUjNTM1MxUzBzUjFUYKCh4KChQKCigKFBQeChQKCgoKKAoKKCgoAAAAAgAKAAAARgBaAA8AEwAANyM1IxUjNTM1MzUzFTMVMwc1IxVGFBQUCgoUCgoUFAAeHkYKCgoKHh4eAAAAAwAKAAAARgBaAAsADwATAAA3IxUjNTMVMxUjFTMnNSMVFzUjFUYKMjIKCgoUFBQUCgpaCh4KCh4eKB4eAAAAAAEACgAAAEYAWgATAAA3IxUjNSM1MzUzFTMVIzUjFTM1M0YKKAoKKAoUFBQUCgoKRgoKFBRGFAAAAgAKAAAARgBaAAsAEwAANyMVIxUjNTMVMxUzBzUjNSMVMzVGCgooKAoKFAoKChQKCloKCjIyCkYKAAAAAQAKAAAARgBaAAsAADcjNTMVIxUzFSMVM0Y8PCgeHigAWgoeCh4AAAEACgAAAEYAWgAJAAA3IxUzFSMVIzUzRigeHhQ8UB4KKFoAAAEACgAAAEYAWgATAAA3IzUjNTM1MxUzFSM1IxUzNSM1M0YyCgooChQUFAoeAApGCgoUFEYUCgAAAQAKAAAARgBaAAsAADcjNSMVIzUzFTM1M0YUFBQUFBQAKChaKCgAAAEAFAAAADwAWgALAAA3IzUzNSM1MxUjFTM8KAoKKAoKAApGCgpGAAABAAoAAABGAFoACwAANyMVIzUjNTMVMzUzRgooChQUFAoKChQUUAAAAQAKAAAARgBaABcAADcjNSM1IxUjNTMVMzUzNTMVIxUjFTMVM0YUCgoUFAoKFAoKCgoAFBQoWigUFBQUChQAAAEACgAAAEYAWgAFAAA3IzUzFTNGPBQoAFpQAAABAAoAAABQAFoAEwAANyM1IxUjNSMVIzUzFTMVMzUzNTNQFAoKChQUCgoKFAA8Hh48WhQKChQAAAEACgAAAFAAWgATAAA3IzUjNSM1IxUjNTMVMxUzFTM1M1AUCgoKFBQKCgoUAB4KCjJaFAoKKAAAAgAKAAAARgBaAAsADwAANyMVIzUjNTM1MxUzBzUjFUYKKAoKKAoUFAoKCkYKCkZGRgAAAAIACgAAAEYAWgAJAA0AADcjFSMVIzUzFTMHNSMVRgoeFDIKFBQyCihaCh4eHgAAAAIACv/sAEYAWgARABUAABcjNSM1IzUjNTM1MxUzFSMVMyc1IxVGFAoUCgooCgoKFBQUCgoKRgoKRhQURkYAAAACAAoAAABGAFoADwATAAA3IzUjNSMVIzUzFTMVIxUzJzUjFUYUCgoUMgoKChQUAB4KKFoKHhQUHh4AAAABAAoAAABGAFoAIwAANyMVIzUjNTMVMzUjNSM1IzUjNTM1MxUzFSM1IxUzFTMVMxUzRgooChQUCgoKCgooChQUCgoKCgoKCgoKFAoKChQKCgoKFAoKCgAAAQAKAAAARgBaAAcAADcjFSM1IzUzRhQUFDxQUFAKAAABAAoAAABGAFoACwAANyMVIzUjNTMVMzUzRgooChQUFAoKClBQUAAAAQAKAAAARgBaAA8AADcjFSMVIzUjNSM1MxUzNTNGCgoUCgoUFBQUCgoKCkZGRgAAAQAKAAAAUABaABMAADcjFSM1IxUjNSM1MxUzNTMVMzUzUAoUChQKFAoKChQeHh4eHjw8Hh48AAABAAoAAABGAFoAHwAANyM1IzUjFSM1MzUzNSM1IzUzFTMVMzUzFSMVIxUzFTNGFAoKFAoKCgoUCgoUCgoKCgAeCigeChQKFBQKHhQKFAoAAAEACgAAAEYAWgAPAAA3IxUjFSM1IzUjNTMVMzUzRgoKFAoKFBQUMgooKAooKCgAAAEACgAAAEYAWgAXAAA3IzUzNTM1MzUzNSM1MxUjFSMVIxUjFTNGPAoKCgooPAoKCgooAB4KCgoUCh4KCgoUAAACAAoAAABGAEYADQARAAA3IzUjNTM1MzUjNTMVMwc1IxVGMgoKHh4oChQUAAoUChQKCjIUFAAAAAIACgAAAEYAWgAJAA0AADcjFSM1MxUzFTMHNSMVRgoyFB4KFBQKCloUCjIyMgAAAAEACgAAAEYARgATAAA3IxUjNSM1MzUzFTMVIzUjFTM1M0YKKAoKKAoUFBQUCgoKMgoKCgoyCgAAAgAKAAAARgBaAAkADQAANyM1IzUzNTM1Mwc1IxVGMgoKHhQUFAAKMgoUUDIyAAAAAgAKAAAARgBGAA0AEQAANyMVMxUjNSM1MzUzFTMHNSMVRigeKAoKKAoUFB4UCgoyCgoUFBQAAAABAAoAAABGAFoADwAANyMVIzUjNTM1MzUzFSMVM0YeFAoKCigeHigoKAoeCgoeAAACAAr/4gBGAEYADQARAAAXIxUjNTM1IzUjNTM1Mwc1IxVGCjIoHgoKMhQUFAoKFAoyCjwyMgAAAAEACgAAAEYAWgALAAA3IzUjFSM1MxUzFTNGFBQUFB4KADw8WhQKAAACAAoAAABGAGQAAwANAAA3IzUzFyM1MzUjNTMVMzIUFBQ8FBQoFFAUZAoyCjwAAAACAAr/4gA8AGQAAwANAAA3IzUzFSMVIzUzNSM1MzwUFAooHhQoUBR4CgpQCgAAAAABAAoAAABGAFoAFwAANyM1IzUjFSM1MxUzNTM1MxUjFSMVMxUzRhQKChQUCgoUCgoKCgAUCh5aMgoUFAoKCgAAAQAKAAAARgBaAAkAADcjNTM1IzUzFTNGPBQUKBQACkYKUAAAAQAKAAAAUABGAA0AADcjNSMVIzUjFSM1MxUzUBQKCgoUPAoAPDIyPEYKAAABAAoAAABGAEYACQAANyM1IxUjNTMVM0YUFBQyCgA8PEYKAAACAAoAAABGAEYACwAPAAA3IxUjNSM1MzUzFTMHNSMVRgooCgooChQUCgoKMgoKMjIyAAAAAgAK/+IARgBGAAkADQAANyMVIxUjNTMVMwc1IxVGCh4UMgoUFAoKHmQKMjIyAAAAAgAK/+IARgBGAAkADQAAFyM1IzUjNTM1Mwc1IxVGFB4KCjIUFB4eCjIKPDIyAAAAAQAKAAAARgBGAA0AADcjFSMVIzUzFTM1MzUzRh4KFBQKChQyCihGFAoKAAABAAoAAABGAEYAEwAANyMVIzUzNSM1IzUzNTMVIxUzFTNGCjIoHgoKMigeCgoKChQKFAoKFAoAAAEACgAAAEYAWgAPAAA3IzUjNSM1MzUzFTMVIxUzRigKCgoUHh4eAAoyChQUCjIAAAEACgAAAEYARgAJAAA3IzUjNTMVMzUzRjIKFBQUAAo8PDwAAAEACgAAAEYARgAPAAA3IxUjFSM1IzUjNTMVMzUzRgoKFAoKFBQUFAoKCgoyMjIAAAEACgAAAFAARgATAAA3IxUjNSMVIzUjNTMVMzUzFTM1M1AKFAoUChQKCgoUFBQUFBQyMigoMgAAAQAKAAAARgBGABsAADcjNSMVIzUzNTM1IzUjNTMVMzUzFSMVIxUzFTNGFBQUCgoKChQUFAoKCgoAFBQUCgoKFBQUFAoKCgAAAQAA/+IARgBGABUAADcjFSMVIxUjNTM1MzUjNSM1MxUzNTNGCgoKKB4KFAoUFBQKFAoKCgoKCjw8PAAAAQAKAAAARgBGABcAADcjNTM1MzUzNTM1IzUzFSMVIxUjFSMVM0Y8CgoKCig8CgoKCigAFAoKCgoKFAoKCgoAAAEAAAADAo+1CoEzXw889QAJAKAAAAAAwhEUhAAAAADXr6KeAAD/4gBQAGQAAAAJAAIAAAAAAAAAAQAAAIL/4gAAAFAAAAAAAFAAAQAAAAAAAAAAAAAAAAAAAAEAUAAAABQAFAAUAB4AHgAUAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAUAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAoAAAAAAAAAGgA2AFIAZABwAJIApADKAO4BCAEkAUYBYAGMAa4BzAHsAggCJgI6AkwCaAJ8ApACpALEAtIC7gMKAyQDPANcA3oDpgO2A8oD4gP+BCYEPgReBHoEkgSuBMYE4gT6BRYFKgVCBVoFegWMBaIFtAXOBeYF/gYUBjAGSAZaBnIGjgayBtAG8AAAAAEAAABEACQAAwAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAUAPYAAQAAAAAAAQAXAAAAAQAAAAAAAgAHABcAAQAAAAAAAwAuAB4AAQAAAAAABAAXAEwAAQAAAAAABQASAGMAAQAAAAAABgAVAHUAAQAAAAAACAAQAIoAAQAAAAAACQAQAJoAAQAAAAAACwAhAKoAAQAAAAAADAAhAMsAAwABBAkAAQAuAOwAAwABBAkAAgAOARoAAwABBAkAAwBcASgAAwABBAkABAAuAYQAAwABBAkABQAkAbIAAwABBAkABgAqAdYAAwABBAkACAAgAgAAAwABBAkACQAgAiAAAwABBAkACwBCAkAAAwABBAkADABCAoJGaXhlZHN5cyBFeGNlbHNpb3IgMy4wMVJlZ3VsYXJEYXJpZW5WYWxlbnRpbmU6IEZpeGVkc3lzIEV4Y2Vsc2lvciAzLjAxOiAyMDA3Rml4ZWRzeXMgRXhjZWxzaW9yIDMuMDFWZXJzaW9uIDMuMDEwIDIwMDdGaXhlZHN5c0V4Y2Vsc2lvcklJSWJEYXJpZW4gVmFsZW50aW5lRGFyaWVuIFZhbGVudGluZWh0dHA6Ly93d3cuZml4ZWRzeXNleGNlbHNpb3IuY29tL2h0dHA6Ly93d3cuZml4ZWRzeXNleGNlbHNpb3IuY29tLwBGAGkAeABlAGQAcwB5AHMAIABFAHgAYwBlAGwAcwBpAG8AcgAgADMALgAwADEAUgBlAGcAdQBsAGEAcgBEAGEAcgBpAGUAbgBWAGEAbABlAG4AdABpAG4AZQA6ACAARgBpAHgAZQBkAHMAeQBzACAARQB4AGMAZQBsAHMAaQBvAHIAIAAzAC4AMAAxADoAIAAyADAAMAA3AEYAaQB4AGUAZABzAHkAcwAgAEUAeABjAGUAbABzAGkAbwByACAAMwAuADAAMQBWAGUAcgBzAGkAbwBuACAAMwAuADAAMQAwACAAMgAwADAANwBGAGkAeABlAGQAcwB5AHMARQB4AGMAZQBsAHMAaQBvAHIASQBJAEkAYgBEAGEAcgBpAGUAbgAgAFYAYQBsAGUAbgB0AGkAbgBlAEQAYQByAGkAZQBuACAAVgBhAGwAZQBuAHQAaQBuAGUAaAB0AHQAcAA6AC8ALwB3AHcAdwAuAGYAaQB4AGUAZABzAHkAcwBlAHgAYwBlAGwAcwBpAG8AcgAuAGMAbwBtAC8AaAB0AHQAcAA6AC8ALwB3AHcAdwAuAGYAaQB4AGUAZABzAHkAcwBlAHgAYwBlAGwAcwBpAG8AcgAuAGMAbwBtAC8AAAACAAAAAAAA//EACgAAAAAAAAAAAAAAAAAAAAAAAABEAEQAAAAEAAsADAAPABEAEwAUABUAFgAXABgAGQAaABsAHAAkACUAJgAnACgAKQAqACsALAAtAC4ALwAwADEAMgAzADQANQA2ADcAOAA5ADoAOwA8AD0ARABFAEYARwBIAEkASgBLAEwATQBOAE8AUABRAFIAUwBUAFUAVgBXAFgAWQBaAFsAXABdAAA=) format("truetype"),url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxmb250IGlkPSJmb250ZWRpdG9yIiBob3Jpei1hZHYteD0iODAiPjxmb250LWZhY2UgZm9udC1mYW1pbHk9IkZpeGVkc3lzIEV4Y2Vsc2lvciAzLjAxIiBmb250LXdlaWdodD0iNDAwIiB1bml0cy1wZXItZW09IjE2MCIgcGFub3NlLTE9IjIgMTEgNiAwIDcgNyAyIDQgMiA0IiBhc2NlbnQ9IjEzMCIgZGVzY2VudD0iLTMwIiB4LWhlaWdodD0iNCIgYmJveD0iMCAtMzAgODAgMTAwIiB1bmRlcmxpbmUtdGhpY2tuZXNzPSIxMCIgdW5kZXJsaW5lLXBvc2l0aW9uPSItMTUiIHVuaWNvZGUtcmFuZ2U9IlUrMDAyMS0wMDdhIi8+PGdseXBoIGdseXBoLW5hbWU9ImV4Y2xhbSIgdW5pY29kZT0iISIgZD0iTTYwIDUwSDUwVjMwSDMwdjIwSDIwdjMwaDEwdjEwaDIwVjgwaDEwVjUwek01MCAwSDMwdjIwaDIwVjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9InBhcmVubGVmdCIgdW5pY29kZT0iKCIgZD0iTTYwLTIwSDQwdjEwSDMwdjIwSDIwdjUwaDEwdjIwaDEwdjEwaDIwVjgwSDUwVjYwSDQwVjEwaDEwdi0yMGgxMHYtMTB6Ii8+PGdseXBoIGdseXBoLW5hbWU9InBhcmVucmlnaHQiIHVuaWNvZGU9IikiIGQ9Ik02MCAxMEg1MHYtMjBINDB2LTEwSDIwdjEwaDEwdjIwaDEwdjUwSDMwdjIwSDIwdjEwaDIwVjgwaDEwVjYwaDEwVjEweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJjb21tYSIgdW5pY29kZT0iLCIgZD0iTTYwLTEwSDUwdi0xMEgzMHYxMGgxMFYwSDMwdjIwaDMwdi0zMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0icGVyaW9kIiB1bmljb2RlPSIuIiBkPSJNNjAgMEgzMHYyMGgzMFYweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJ6ZXJvIiB1bmljb2RlPSIwIiBkPSJNODAgMTBINzBWMEgzMHYxMEgyMHY3MGgxMHYxMGg0MFY4MGgxMFYxMHptLTIwIDB2NDBINTB2MjBoMTB2MTBINDBWNDBoMTBWMjBINDBWMTBoMjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9Im9uZSIgdW5pY29kZT0iMSIgZD0iTTYwIDBINDB2NjBIMTB2MTBoMjB2MTBoMTB2MTBoMjBWMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0idHdvIiB1bmljb2RlPSIyIiBkPSJNNzAgMEgxMHYyMGgxMHYxMGgxMHYxMGgxMHYxMGgxMHYzMEgzMFY2MEgxMHYyMGgxMHYxMGg0MFY4MGgxMFY1MEg2MFY0MEg1MFYzMEg0MFYyMEgzMFYxMGg0MFYweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJ0aHJlZSIgdW5pY29kZT0iMyIgZD0iTTcwIDEwSDYwVjBIMjB2MTBIMTB2MjBoMjBWMTBoMjB2MzBIMzB2MTBoMjB2MzBIMzBWNjBIMTB2MjBoMTB2MTBoNDBWODBoMTBWNTBINjBWNDBoMTBWMTB6Ii8+PGdseXBoIGdseXBoLW5hbWU9ImZvdXIiIHVuaWNvZGU9IjQiIGQ9Ik04MCAyMEg3MFYwSDUwdjIwSDEwdjIwaDEwdjUwaDIwVjQwSDMwVjMwaDIwdjQwaDIwVjMwaDEwVjIweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJmaXZlIiB1bmljb2RlPSI1IiBkPSJNNzAgMjBINjBWMTBINTBWMEgxMHYxMGgzMHYxMGgxMHYyMEgxMHY1MGg2MFY4MEgzMFY1MGgzMFY0MGgxMFYyMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0ic2l4IiB1bmljb2RlPSI2IiBkPSJNNzAgMTBINjBWMEgyMHYxMEgxMHY1MGgxMHYxMGgxMHYyMGgzMFY4MEg1MFY3MEg0MFY2MGgyMFY1MGgxMFYxMHptLTIwIDB2NDBIMzBWMTBoMjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9InNldmVuIiB1bmljb2RlPSI3IiBkPSJNNzAgNzBINjBWNTBINTBWMzBINDBWMEgyMHYzMGgxMHYyMGgxMHYyMGgxMHYxMEgxMHYxMGg2MFY3MHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0iZWlnaHQiIHVuaWNvZGU9IjgiIGQ9Ik03MCAxMEg2MFYwSDIwdjEwSDEwdjMwaDEwdjEwSDEwdjMwaDEwdjEwaDQwVjgwaDEwVjUwSDYwVjQwaDEwVjEwek01MCA1MHYzMEgzMFY2MGgxMFY1MGgxMHptMC00MHYyMEg0MHYxMEgzMFYxMGgyMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0ibmluZSIgdW5pY29kZT0iOSIgZD0iTTcwIDMwSDYwVjIwSDUwVjBIMjB2MTBoMTB2MTBoMTB2MTBIMjB2MTBIMTB2NDBoMTB2MTBoNDBWODBoMTBWMzB6TTUwIDQwdjQwSDMwVjQwaDIweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJBIiB1bmljb2RlPSJhIiBkPSJNNzAgMEg1MHYzMEgzMFYwSDEwdjcwaDEwdjEwaDEwdjEwaDIwVjgwaDEwVjcwaDEwVjB6TTUwIDQwdjMwSDMwVjQwaDIweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJCIiB1bmljb2RlPSJiIiBkPSJNNzAgMTBINjBWMEgxMHY5MGg1MFY4MGgxMFY1MEg2MFY0MGgxMFYxMHpNNTAgNTB2MzBIMzBWNTBoMjB6bTAtNDB2MzBIMzBWMTBoMjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IkMiIHVuaWNvZGU9ImMiIGQ9Ik03MCAxMEg2MFYwSDIwdjEwSDEwdjcwaDEwdjEwaDQwVjgwaDEwVjYwSDUwdjIwSDMwVjEwaDIwdjIwaDIwVjEweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJEIiB1bmljb2RlPSJkIiBkPSJNNzAgMjBINjBWMTBINTBWMEgxMHY5MGg0MFY4MGgxMFY3MGgxMFYyMHptLTIwIDB2NTBINDB2MTBIMzBWMTBoMTB2MTBoMTB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IkUiIHVuaWNvZGU9ImUiIGQ9Ik03MCAwSDEwdjkwaDYwVjgwSDMwVjUwaDMwVjQwSDMwVjEwaDQwVjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IkYiIHVuaWNvZGU9ImYiIGQ9Ik03MCA4MEgzMFY1MGgzMFY0MEgzMFYwSDEwdjkwaDYwVjgweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJHIiB1bmljb2RlPSJnIiBkPSJNNzAgMEgyMHYxMEgxMHY3MGgxMHYxMGg0MFY4MGgxMFY2MEg1MHYyMEgzMFYxMGgyMHYyMEg0MHYxMGgzMFYweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJIIiB1bmljb2RlPSJoIiBkPSJNNzAgMEg1MHY0MEgzMFYwSDEwdjkwaDIwVjUwaDIwdjQwaDIwVjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IkkiIHVuaWNvZGU9ImkiIGQ9Ik02MCAwSDIwdjEwaDEwdjcwSDIwdjEwaDQwVjgwSDUwVjEwaDEwVjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IkoiIHVuaWNvZGU9ImoiIGQ9Ik03MCAxMEg2MFYwSDIwdjEwSDEwdjIwaDIwVjEwaDIwdjgwaDIwVjEweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJLIiB1bmljb2RlPSJrIiBkPSJNNzAgMEg1MHYyMEg0MHYyMEgzMFYwSDEwdjkwaDIwVjUwaDEwdjIwaDEwdjIwaDIwVjcwSDYwVjUwSDUwVjQwaDEwVjIwaDEwVjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IkwiIHVuaWNvZGU9ImwiIGQ9Ik03MCAwSDEwdjkwaDIwVjEwaDQwVjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9Ik0iIHVuaWNvZGU9Im0iIGQ9Ik04MCAwSDYwdjYwSDUwVjMwSDQwdjMwSDMwVjBIMTB2OTBoMjBWNzBoMTBWNjBoMTB2MTBoMTB2MjBoMjBWMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0iTiIgdW5pY29kZT0ibiIgZD0iTTgwIDBINjB2MzBINTB2MTBINDB2MTBIMzBWMEgxMHY5MGgyMFY3MGgxMFY2MGgxMFY1MGgxMHY0MGgyMFYweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJPIiB1bmljb2RlPSJvIiBkPSJNNzAgMTBINjBWMEgyMHYxMEgxMHY3MGgxMHYxMGg0MFY4MGgxMFYxMHptLTIwIDB2NzBIMzBWMTBoMjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IlAiIHVuaWNvZGU9InAiIGQ9Ik03MCA1MEg2MFY0MEgzMFYwSDEwdjkwaDUwVjgwaDEwVjUwem0tMjAgMHYzMEgzMFY1MGgyMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0iUSIgdW5pY29kZT0icSIgZD0iTTcwLTIwSDUwdjEwSDQwVjBIMjB2MTBIMTB2NzBoMTB2MTBoNDBWODBoMTBWMTBINjB2LTIwaDEwdi0xMHpNNTAgMTB2NzBIMzBWMTBoMjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IlIiIHVuaWNvZGU9InIiIGQ9Ik03MCAwSDUwdjMwSDQwdjEwSDMwVjBIMTB2OTBoNTBWODBoMTBWNTBINjBWMzBoMTBWMHpNNTAgNTB2MzBIMzBWNTBoMjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IlMiIHVuaWNvZGU9InMiIGQ9Ik03MCAxMEg2MFYwSDIwdjEwSDEwdjEwaDIwVjEwaDIwdjIwSDQwdjEwSDMwdjEwSDIwdjEwSDEwdjIwaDEwdjEwaDQwVjgwaDEwVjcwSDUwdjEwSDMwVjYwaDEwVjUwaDEwVjQwaDEwVjMwaDEwVjEweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJUIiB1bmljb2RlPSJ0IiBkPSJNNzAgODBINTBWMEgzMHY4MEgxMHYxMGg2MFY4MHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0iVSIgdW5pY29kZT0idSIgZD0iTTcwIDEwSDYwVjBIMjB2MTBIMTB2ODBoMjBWMTBoMjB2ODBoMjBWMTB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IlYiIHVuaWNvZGU9InYiIGQ9Ik03MCAyMEg2MFYxMEg1MFYwSDMwdjEwSDIwdjEwSDEwdjcwaDIwVjIwaDIwdjcwaDIwVjIweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJXIiB1bmljb2RlPSJ3IiBkPSJNODAgMzBINzBWMEg1MHYzMEg0MFYwSDIwdjMwSDEwdjYwaDIwVjMwaDEwdjMwaDEwVjMwaDEwdjYwaDIwVjMweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJYIiB1bmljb2RlPSJ4IiBkPSJNNzAgMEg1MHYzMEg0MHYxMEgzMFYwSDEwdjMwaDEwdjEwaDEwdjIwSDIwdjEwSDEwdjIwaDIwVjcwaDEwVjYwaDEwdjMwaDIwVjcwSDYwVjYwSDUwVjQwaDEwVjMwaDEwVjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9IlkiIHVuaWNvZGU9InkiIGQ9Ik03MCA1MEg2MFY0MEg1MFYwSDMwdjQwSDIwdjEwSDEwdjQwaDIwVjUwaDIwdjQwaDIwVjUweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJaIiB1bmljb2RlPSJ6IiBkPSJNNzAgMEgxMHYzMGgxMHYxMGgxMHYxMGgxMHYxMGgxMHYyMEgxMHYxMGg2MFY2MEg2MFY1MEg1MFY0MEg0MFYzMEgzMFYxMGg0MFYweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJhIiB1bmljb2RlPSJhIiBkPSJNNzAgMEgyMHYxMEgxMHYyMGgxMHYxMGgzMHYyMEgyMHYxMGg0MFY2MGgxMFYwek01MCAxMHYyMEgzMFYxMGgyMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0iYiIgdW5pY29kZT0iYiIgZD0iTTcwIDEwSDYwVjBIMTB2OTBoMjBWNzBoMzBWNjBoMTBWMTB6bS0yMCAwdjUwSDMwVjEwaDIweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJjIiB1bmljb2RlPSJjIiBkPSJNNzAgMTBINjBWMEgyMHYxMEgxMHY1MGgxMHYxMGg0MFY2MGgxMFY1MEg1MHYxMEgzMFYxMGgyMHYxMGgyMFYxMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0iZCIgdW5pY29kZT0iZCIgZD0iTTcwIDBIMjB2MTBIMTB2NTBoMTB2MTBoMzB2MjBoMjBWMHpNNTAgMTB2NTBIMzBWMTBoMjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9ImUiIHVuaWNvZGU9ImUiIGQ9Ik03MCAzMEgzMFYxMGgzMFYwSDIwdjEwSDEwdjUwaDEwdjEwaDQwVjYwaDEwVjMwek01MCA0MHYyMEgzMFY0MGgyMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0iZiIgdW5pY29kZT0iZiIgZD0iTTcwIDQwSDQwVjBIMjB2NDBIMTB2MTBoMTB2MzBoMTB2MTBoNDBWODBINDBWNTBoMzBWNDB6Ii8+PGdseXBoIGdseXBoLW5hbWU9ImciIHVuaWNvZGU9ImciIGQ9Ik03MC0yMEg2MHYtMTBIMTB2MTBoNDBWMEgyMHYxMEgxMHY1MGgxMHYxMGg1MHYtOTB6TTUwIDEwdjUwSDMwVjEwaDIweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJoIiB1bmljb2RlPSJoIiBkPSJNNzAgMEg1MHY2MEgzMFYwSDEwdjkwaDIwVjcwaDMwVjYwaDEwVjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9ImkiIHVuaWNvZGU9ImkiIGQ9Ik01MCA4MEgzMHYyMGgyMFY4MHpNNzAgMEgxMHYxMGgyMHY1MEgxMHYxMGg0MFYxMGgyMFYweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJqIiB1bmljb2RlPSJqIiBkPSJNNjAgODBINDB2MjBoMjBWODB6bTAtMTAwSDUwdi0xMEgxMHYxMGgzMHY4MEgyMHYxMGg0MHYtOTB6Ii8+PGdseXBoIGdseXBoLW5hbWU9ImsiIHVuaWNvZGU9ImsiIGQ9Ik03MCAwSDUwdjIwSDQwdjEwSDMwVjBIMTB2OTBoMjBWNDBoMTB2MTBoMTB2MjBoMjBWNTBINjBWNDBINTBWMzBoMTBWMjBoMTBWMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0ibCIgdW5pY29kZT0ibCIgZD0iTTcwIDBIMTB2MTBoMjB2NzBIMTB2MTBoNDBWMTBoMjBWMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0ibSIgdW5pY29kZT0ibSIgZD0iTTgwIDBINjB2NjBINTBWMTBINDB2NTBIMzBWMEgxMHY3MGg2MFY2MGgxMFYweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJuIiB1bmljb2RlPSJuIiBkPSJNNzAgMEg1MHY2MEgzMFYwSDEwdjcwaDUwVjYwaDEwVjB6Ii8+PGdseXBoIGdseXBoLW5hbWU9Im8iIHVuaWNvZGU9Im8iIGQ9Ik03MCAxMEg2MFYwSDIwdjEwSDEwdjUwaDEwdjEwaDQwVjYwaDEwVjEwem0tMjAgMHY1MEgzMFYxMGgyMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0icCIgdW5pY29kZT0icCIgZD0iTTcwIDEwSDYwVjBIMzB2LTMwSDEwVjcwaDUwVjYwaDEwVjEwem0tMjAgMHY1MEgzMFYxMGgyMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0icSIgdW5pY29kZT0icSIgZD0iTTcwLTMwSDUwVjBIMjB2MTBIMTB2NTBoMTB2MTBoNTBWLTMwek01MCAxMHY1MEgzMFYxMGgyMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0iciIgdW5pY29kZT0iciIgZD0iTTcwIDUwSDQwVjQwSDMwVjBIMTB2NzBoMjBWNTBoMTB2MTBoMTB2MTBoMjBWNTB6Ii8+PGdseXBoIGdseXBoLW5hbWU9InMiIHVuaWNvZGU9InMiIGQ9Ik03MCAxMEg2MFYwSDEwdjEwaDQwdjIwSDIwdjEwSDEwdjIwaDEwdjEwaDUwVjYwSDMwVjQwaDMwVjMwaDEwVjEweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJ0IiB1bmljb2RlPSJ0IiBkPSJNNzAgMEgzMHYxMEgyMHY1MEgxMHYxMGgxMHYyMGgyMFY3MGgzMFY2MEg0MFYxMGgzMFYweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJ1IiB1bmljb2RlPSJ1IiBkPSJNNzAgMEgyMHYxMEgxMHY2MGgyMFYxMGgyMHY2MGgyMFYweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJ2IiB1bmljb2RlPSJ2IiBkPSJNNzAgMjBINjBWMTBINTBWMEgzMHYxMEgyMHYxMEgxMHY1MGgyMFYyMGgyMHY1MGgyMFYyMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0idyIgdW5pY29kZT0idyIgZD0iTTgwIDIwSDcwVjBINTB2MjBINDBWMEgyMHYyMEgxMHY1MGgyMFYyMGgxMHY0MGgxMFYyMGgxMHY1MGgyMFYyMHoiLz48Z2x5cGggZ2x5cGgtbmFtZT0ieCIgdW5pY29kZT0ieCIgZD0iTTcwIDBINTB2MjBIMzBWMEgxMHYyMGgxMHYxMGgxMHYxMEgyMHYxMEgxMHYyMGgyMFY1MGgyMHYyMGgyMFY1MEg2MFY0MEg1MFYzMGgxMFYyMGgxMFYweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJ5IiB1bmljb2RlPSJ5IiBkPSJNNzAgMTBINjB2LTIwSDUwdi0xMEg0MHYtMTBIMHYxMGgzMHYxMGgxMFYwSDIwdjEwSDEwdjYwaDIwVjEwaDIwdjYwaDIwVjEweiIvPjxnbHlwaCBnbHlwaC1uYW1lPSJ6IiB1bmljb2RlPSJ6IiBkPSJNNzAgMEgxMHYyMGgxMHYxMGgxMHYxMGgxMHYxMGgxMHYxMEgxMHYxMGg2MFY1MEg2MFY0MEg1MFYzMEg0MFYyMEgzMFYxMGg0MFYweiIvPjwvZm9udD48L2RlZnM+PC9zdmc+) format("svg");font-style:normal;font-weight:400}html{overflow:hidden;font-family:FSEX300;font-style:normal;font-stretch:normal;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:baseline;-webkit-tap-highlight-color:transparent;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%;background:#0000cd;color:#fff;font-size:16px}body,html{width:100%;height:100%}body{display:-webkit-flex;display:flex;-webkit-align-items:center;align-items:center;-webkit-justify-content:center;justify-content:center}*{margin:0;padding:0;box-sizing:border-box}.container{width:500px;text-align:center}p{margin:30px 0;text-align:left}.title{background:#ccc;color:#0000cd;padding:2px 6px}</style></head>
<body>
<div class="container">
<span class="title">404 Not Found</span>
<p>
A wild 404-PAGE appeared!<br>
This means that the your browser was able to communicate with your given server, but the server could not find
what was requested.<br><br>
* Make sure the url is correct.<br>
* Don't panic.
</p>
<div>Press any key to continue _</div>
</div>
</div>
<script type="text/javascript">!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=" ",n(n.s=0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){"use strict";n.r(t);n(2)},function(e,t,n){}]);</script></body>
</html>]])
|
--[[
This file is part of cvetool. It is subject to the licence terms in the COPYRIGHT file found in the top-level directory of this distribution and at https://raw.githubusercontent.com/libertine-linux/cvetool/master/COPYRIGHT. No part of cvetool, including this file, may be copied, modified, propagated, or distributed except according to the terms contained in the COPYRIGHT file.
Copyright © 2015 The developers of cvetool. See the COPYRIGHT file in the top-level directory of this distribution and at https://raw.githubusercontent.com/libertine-linux/cvetool/master/COPYRIGHT.
]]--
|
-- Generated By protoc-gen-lua Do not Edit
local protobuf = require "protobuf"
module('BseHallUserList_pb', package.seeall)
local BSEHALLUSERLIST = protobuf.Descriptor();
local BSEHALLUSERLIST_USERID_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_NAME_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_URL_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_LEVEL_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_GENDER_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_WIN_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_TOTAL_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_ATTACK_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_YELLOWDMD_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_YELLOWDMDLV_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_POWER_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_USERCOUNT_FIELD = protobuf.FieldDescriptor();
local BSEHALLUSERLIST_PAGE_FIELD = protobuf.FieldDescriptor();
BSEHALLUSERLIST_USERID_FIELD.name = "userId"
BSEHALLUSERLIST_USERID_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.userId"
BSEHALLUSERLIST_USERID_FIELD.number = 1
BSEHALLUSERLIST_USERID_FIELD.index = 0
BSEHALLUSERLIST_USERID_FIELD.label = 3
BSEHALLUSERLIST_USERID_FIELD.has_default_value = false
BSEHALLUSERLIST_USERID_FIELD.default_value = {}
BSEHALLUSERLIST_USERID_FIELD.type = 9
BSEHALLUSERLIST_USERID_FIELD.cpp_type = 9
BSEHALLUSERLIST_NAME_FIELD.name = "name"
BSEHALLUSERLIST_NAME_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.name"
BSEHALLUSERLIST_NAME_FIELD.number = 2
BSEHALLUSERLIST_NAME_FIELD.index = 1
BSEHALLUSERLIST_NAME_FIELD.label = 3
BSEHALLUSERLIST_NAME_FIELD.has_default_value = false
BSEHALLUSERLIST_NAME_FIELD.default_value = {}
BSEHALLUSERLIST_NAME_FIELD.type = 9
BSEHALLUSERLIST_NAME_FIELD.cpp_type = 9
BSEHALLUSERLIST_URL_FIELD.name = "url"
BSEHALLUSERLIST_URL_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.url"
BSEHALLUSERLIST_URL_FIELD.number = 3
BSEHALLUSERLIST_URL_FIELD.index = 2
BSEHALLUSERLIST_URL_FIELD.label = 3
BSEHALLUSERLIST_URL_FIELD.has_default_value = false
BSEHALLUSERLIST_URL_FIELD.default_value = {}
BSEHALLUSERLIST_URL_FIELD.type = 9
BSEHALLUSERLIST_URL_FIELD.cpp_type = 9
BSEHALLUSERLIST_LEVEL_FIELD.name = "level"
BSEHALLUSERLIST_LEVEL_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.level"
BSEHALLUSERLIST_LEVEL_FIELD.number = 4
BSEHALLUSERLIST_LEVEL_FIELD.index = 3
BSEHALLUSERLIST_LEVEL_FIELD.label = 3
BSEHALLUSERLIST_LEVEL_FIELD.has_default_value = false
BSEHALLUSERLIST_LEVEL_FIELD.default_value = {}
BSEHALLUSERLIST_LEVEL_FIELD.type = 5
BSEHALLUSERLIST_LEVEL_FIELD.cpp_type = 1
BSEHALLUSERLIST_GENDER_FIELD.name = "gender"
BSEHALLUSERLIST_GENDER_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.gender"
BSEHALLUSERLIST_GENDER_FIELD.number = 5
BSEHALLUSERLIST_GENDER_FIELD.index = 4
BSEHALLUSERLIST_GENDER_FIELD.label = 3
BSEHALLUSERLIST_GENDER_FIELD.has_default_value = false
BSEHALLUSERLIST_GENDER_FIELD.default_value = {}
BSEHALLUSERLIST_GENDER_FIELD.type = 5
BSEHALLUSERLIST_GENDER_FIELD.cpp_type = 1
BSEHALLUSERLIST_WIN_FIELD.name = "win"
BSEHALLUSERLIST_WIN_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.win"
BSEHALLUSERLIST_WIN_FIELD.number = 6
BSEHALLUSERLIST_WIN_FIELD.index = 5
BSEHALLUSERLIST_WIN_FIELD.label = 3
BSEHALLUSERLIST_WIN_FIELD.has_default_value = false
BSEHALLUSERLIST_WIN_FIELD.default_value = {}
BSEHALLUSERLIST_WIN_FIELD.type = 5
BSEHALLUSERLIST_WIN_FIELD.cpp_type = 1
BSEHALLUSERLIST_TOTAL_FIELD.name = "total"
BSEHALLUSERLIST_TOTAL_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.total"
BSEHALLUSERLIST_TOTAL_FIELD.number = 7
BSEHALLUSERLIST_TOTAL_FIELD.index = 6
BSEHALLUSERLIST_TOTAL_FIELD.label = 3
BSEHALLUSERLIST_TOTAL_FIELD.has_default_value = false
BSEHALLUSERLIST_TOTAL_FIELD.default_value = {}
BSEHALLUSERLIST_TOTAL_FIELD.type = 5
BSEHALLUSERLIST_TOTAL_FIELD.cpp_type = 1
BSEHALLUSERLIST_ATTACK_FIELD.name = "attack"
BSEHALLUSERLIST_ATTACK_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.attack"
BSEHALLUSERLIST_ATTACK_FIELD.number = 8
BSEHALLUSERLIST_ATTACK_FIELD.index = 7
BSEHALLUSERLIST_ATTACK_FIELD.label = 3
BSEHALLUSERLIST_ATTACK_FIELD.has_default_value = false
BSEHALLUSERLIST_ATTACK_FIELD.default_value = {}
BSEHALLUSERLIST_ATTACK_FIELD.type = 5
BSEHALLUSERLIST_ATTACK_FIELD.cpp_type = 1
BSEHALLUSERLIST_YELLOWDMD_FIELD.name = "yellowDmd"
BSEHALLUSERLIST_YELLOWDMD_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.yellowDmd"
BSEHALLUSERLIST_YELLOWDMD_FIELD.number = 9
BSEHALLUSERLIST_YELLOWDMD_FIELD.index = 8
BSEHALLUSERLIST_YELLOWDMD_FIELD.label = 3
BSEHALLUSERLIST_YELLOWDMD_FIELD.has_default_value = false
BSEHALLUSERLIST_YELLOWDMD_FIELD.default_value = {}
BSEHALLUSERLIST_YELLOWDMD_FIELD.type = 8
BSEHALLUSERLIST_YELLOWDMD_FIELD.cpp_type = 7
BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD.name = "yellowDmdYear"
BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.yellowDmdYear"
BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD.number = 10
BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD.index = 9
BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD.label = 3
BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD.has_default_value = false
BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD.default_value = {}
BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD.type = 8
BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD.cpp_type = 7
BSEHALLUSERLIST_YELLOWDMDLV_FIELD.name = "yellowDmdLv"
BSEHALLUSERLIST_YELLOWDMDLV_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.yellowDmdLv"
BSEHALLUSERLIST_YELLOWDMDLV_FIELD.number = 11
BSEHALLUSERLIST_YELLOWDMDLV_FIELD.index = 10
BSEHALLUSERLIST_YELLOWDMDLV_FIELD.label = 3
BSEHALLUSERLIST_YELLOWDMDLV_FIELD.has_default_value = false
BSEHALLUSERLIST_YELLOWDMDLV_FIELD.default_value = {}
BSEHALLUSERLIST_YELLOWDMDLV_FIELD.type = 5
BSEHALLUSERLIST_YELLOWDMDLV_FIELD.cpp_type = 1
BSEHALLUSERLIST_POWER_FIELD.name = "power"
BSEHALLUSERLIST_POWER_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.power"
BSEHALLUSERLIST_POWER_FIELD.number = 12
BSEHALLUSERLIST_POWER_FIELD.index = 11
BSEHALLUSERLIST_POWER_FIELD.label = 3
BSEHALLUSERLIST_POWER_FIELD.has_default_value = false
BSEHALLUSERLIST_POWER_FIELD.default_value = {}
BSEHALLUSERLIST_POWER_FIELD.type = 5
BSEHALLUSERLIST_POWER_FIELD.cpp_type = 1
BSEHALLUSERLIST_USERCOUNT_FIELD.name = "userCount"
BSEHALLUSERLIST_USERCOUNT_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.userCount"
BSEHALLUSERLIST_USERCOUNT_FIELD.number = 13
BSEHALLUSERLIST_USERCOUNT_FIELD.index = 12
BSEHALLUSERLIST_USERCOUNT_FIELD.label = 2
BSEHALLUSERLIST_USERCOUNT_FIELD.has_default_value = false
BSEHALLUSERLIST_USERCOUNT_FIELD.default_value = 0
BSEHALLUSERLIST_USERCOUNT_FIELD.type = 5
BSEHALLUSERLIST_USERCOUNT_FIELD.cpp_type = 1
BSEHALLUSERLIST_PAGE_FIELD.name = "page"
BSEHALLUSERLIST_PAGE_FIELD.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList.page"
BSEHALLUSERLIST_PAGE_FIELD.number = 14
BSEHALLUSERLIST_PAGE_FIELD.index = 13
BSEHALLUSERLIST_PAGE_FIELD.label = 1
BSEHALLUSERLIST_PAGE_FIELD.has_default_value = true
BSEHALLUSERLIST_PAGE_FIELD.default_value = 0
BSEHALLUSERLIST_PAGE_FIELD.type = 5
BSEHALLUSERLIST_PAGE_FIELD.cpp_type = 1
BSEHALLUSERLIST.name = "BseHallUserList"
BSEHALLUSERLIST.full_name = ".com.xinqihd.sns.gameserver.proto.BseHallUserList"
BSEHALLUSERLIST.nested_types = {}
BSEHALLUSERLIST.enum_types = {}
BSEHALLUSERLIST.fields = {BSEHALLUSERLIST_USERID_FIELD, BSEHALLUSERLIST_NAME_FIELD, BSEHALLUSERLIST_URL_FIELD, BSEHALLUSERLIST_LEVEL_FIELD, BSEHALLUSERLIST_GENDER_FIELD, BSEHALLUSERLIST_WIN_FIELD, BSEHALLUSERLIST_TOTAL_FIELD, BSEHALLUSERLIST_ATTACK_FIELD, BSEHALLUSERLIST_YELLOWDMD_FIELD, BSEHALLUSERLIST_YELLOWDMDYEAR_FIELD, BSEHALLUSERLIST_YELLOWDMDLV_FIELD, BSEHALLUSERLIST_POWER_FIELD, BSEHALLUSERLIST_USERCOUNT_FIELD, BSEHALLUSERLIST_PAGE_FIELD}
BSEHALLUSERLIST.is_extendable = false
BSEHALLUSERLIST.extensions = {}
BseHallUserList = protobuf.Message(BSEHALLUSERLIST)
_G.BSEHALLUSERLIST_PB_BSEHALLUSERLIST = BSEHALLUSERLIST
|
local utils = require 'mp.utils'
local msg = require 'mp.msg'
local function exec(args)
local ret = utils.subprocess({args = args, cancellable=false})
return ret.status, ret.stdout, ret, ret.killed_by_us
end
mp.register_script_message("generate-pdf-page", function(url, density, quality)
local input = string.gsub(url, "pdf://", "")
local output = "/tmp/mpv-pdf/" .. string.gsub(input, "/", "|")..".jpg"
exec({"mkdir", "-p", "/tmp/mpv-pdf/"}) --TODO make tmp directory configurable
--convert pdf page to jpg
stat,out,ret,killed = exec({"convert",
"-density", density, --PPI
"-quality", quality, -- jpg compression quality
input, output})
mp.commandv("script-message", "pdf-page-generator-return", tostring(killed or stat ~= 0), url, output )
end)
mp.commandv("script-message", "pdf-page-generator-broadcast", mp.get_script_name())
|
---------------------------------------------------------------------------
-- Tracking Noise channel volume peaks
-- by AnS, 2012
---------------------------------------------------------------------------
-- Showcases following functions:
-- * sound.get()
-- * taseditor.markedframe()
-- * taseditor.getmarker()
-- * taseditor.setmarker()
-- * taseditor.getnote()
-- * taseditor.setnote()
---------------------------------------------------------------------------
-- Usage:
-- Run the script, unpause emulation.
-- When the "Auto function" checkbox is checked, the script will
-- automatically create Markers on various frames according to ingame music.
-- These Markers should help you see music patterns,
-- so you can adjust input precisely creating nice Tool-Assisted dances.
--
-- This script uses Noise channel volume as an indicator for setting Markers,
-- but it's possible to use any other property of sound channels
-- as a factor to decide whether to set Marker on current frame.
--
-- The script was tested on Super Mario Bros, Megaman and Duck Tales.
-- You may want to see it in slow-mo. Use -/= hotkeys to change emulation speed.
--
-- To create customized script for your game, first use SoundDisplay.lua
-- to collect and analyse statistics about ingame music. Then choose
-- which channel you want to sync your input to. Finally, change this script
-- so that Markers will be created using new set of rules.
---------------------------------------------------------------------------
NOISE_VOL_THRESHOLD = 0.35;
function track_changes()
if (taseditor.engaged()) then
current_frame = movie.framecount();
if (last_frame ~= current_frame) then
-- Playback has moved
-- Get current value of indicator for current_frame
snd = sound.get();
indicator = snd.rp2a03.noise.volume;
-- If Playback moved 1 frame forward, this was probably Frame Advance
if (last_frame == current_frame - 1) then
-- Looks like we advanced one frame from the last time
-- Decide whether to set Marker
if (indicator > NOISE_VOL_THRESHOLD and last_frame_indicator_value == 0) then
-- this was a peak in volume! ____/\____
-- Set Marker and show frequency of noise+triangle in its Note
SetSoundMarker(current_frame - 1, "Sound: " .. (snd.rp2a03.noise.regs.frequency + snd.rp2a03.triangle.regs.frequency));
end
end
last_frame = current_frame;
last_frame_indicator_value = indicator;
end
else
gui.text(1, 9, "TAS Editor is not engaged.");
end
end
function SetSoundMarker(frame, new_note)
if (taseditor.markedframe(frame)) then
-- this frame is already marked
old_note = taseditor.getnote(taseditor.getmarker(frame));
-- check if the Note of the Marker already contains new_note text
if (string.find(old_note, new_note) == nil) then
-- append new_note text to the Marker's Note
taseditor.setnote(taseditor.getmarker(frame), old_note .. " " .. new_note);
end
else
-- this frame isn't marked
-- create new Marker here
new_marker = taseditor.setmarker(frame);
taseditor.setnote(new_marker, new_note);
end
end
last_frame = 0;
last_frame_indicator_value = 0;
taseditor.registerauto(track_changes);
|
--[[
desc: Bullet, a basic bullet.
author: Musoucrow
since: 2018-8-7
alter: 2019-6-26
]]--
local _RESMGR = require("actor.resmgr")
---@class Actor.Component.Bullet
---@field attackData Actor.RESMGR.AttackData
---@field moveTweener Util.Gear.Tweener
---@field length int
---@field time milli
---@field attackValue Actor.Gear.Attack.AttackValue
---@field attack Actor.Gear.Attack
---@field easing string
---@field obstacleType string @nil, "normal", "destroy"
---@field isCross boolean
---@field endDestroy boolean
---@field angleY number
---@field angleZ number
---@field OnHit function
---@field rotateSpeed number
local _Bullet = require("core.class")()
function _Bullet.HandleData(data)
if (data.attack) then
data.attack = _RESMGR.GetAttackData(data.attack)
end
end
function _Bullet:Ctor(data, param)
self.attackData = data.attack
self.length = data.length
self.time = data.time
self.easing = data.easing
self.obstacleType = data.obstacleType
self.endDestroy = data.endDestroy or false
self.isCross = data.isCross or false
self.attackValue = data.attackValue or param.attackValue
self.OnHit = param.OnHit
self.angleY = data.angleY or param.angleY or 0
self.angleZ = data.angleZ or param.angleZ or 0
self.rotateSpeed = data.rotateSpeed or 0
end
return _Bullet |
#!/usr/bin/env lua
local gumbo = require "gumbo"
local serialize = require "gumbo.serialize.html"
local outfile = arg[2] and assert(io.open(arg[2], "a")) or io.stdout
local tree = assert(gumbo.parseFile(arg[1] ~= "-" and arg[1] or io.stdin))
serialize(tree, outfile)
|
--[[
© CloudSixteen.com do not share, re-distribute or modify
without permission of its author (kurozael@gmail.com).
Clockwork was created by Conna Wiles (also known as kurozael.)
http://cloudsixteen.com/license/clockwork.html
--]]
CW_SWEDISH = Clockwork.lang:GetTable("Swedish");
CW_SWEDISH["DynamicAdvertRemoved"] = "Du har lyckats ta bort #1 dynamisk advertisering(ar).";
CW_SWEDISH["DynamicAdvertAdded"] = "Du har lyckats lägga till en dynamisk advertisering.";
CW_SWEDISH["DynamicAdvertNoneNearPosition"] = "Det finns inga dynamiska advertiseringar i närheten."; |
require "import"
import "android.widget.*"
import "android.view.*"
import "android.app.*"
local classes=require "android"
import "clayout"
import "mlayout"
import "autotheme"
activity.Title="Java API浏览器"
activity.setTheme(autotheme())
function adapter(t)
local ls=ArrayList()
for k,v in ipairs(t) do
ls.add(v)
end
return ArrayAdapter(activity,android.R.layout.simple_list_item_1, ls)
end
import "android.content.*"
cm=activity.getSystemService(activity.CLIPBOARD_SERVICE)
function copy(str)
local cd = ClipData.newPlainText("label",str)
cm.setPrimaryClip(cd)
Toast.makeText(activity,"已复制的剪切板",1000).show()
end
dlg=Dialog(activity,autotheme())
dlg.setContentView(loadlayout(mlayout))
curr_class=nil
curt_adapter=nil
activity.setContentView(clayout)
clist.setAdapter(adapter(classes))
clist.onItemClick=function(l,v)
local s=tostring(v.Text)
local class=luajava.bindClass(s)
curr_class=class
local t={}
local fs={}
local ms={}
local es={}
local ss={}
local gs={}
local super=class.getSuperclass()
super=super and " extends "..tostring(super.getName()) or ""
table.insert(t,tostring(class)..super)
table.insert(t,"构建方法")
local cs=class.getConstructors()
for n=0,#cs-1 do
table.insert(t,tostring(cs[n]))
end
curr_ms=class.getMethods()
for n=0,#curr_ms-1 do
local str=tostring(curr_ms[n])
table.insert(ms,str)
local e1=str:match("%.setOn(%a+)Listener")
local s1,s2=str:match("%.set(%a+)(%([%a$%.]+%))")
local g1,g2=str:match("([%a$%.]+) [%a$%.]+%.get(%a+)%(%)")
if e1 then
table.insert(es,"on"..e1)
elseif s1 then
table.insert(ss,s1..s2)
end
if g1 then
table.insert(gs,string.format("(%s)%s",g1,g2))
end
end
table.insert(t,"公有事件")
for k,v in ipairs(es) do
table.insert(t,v)
end
table.insert(t,"公有getter")
for k,v in ipairs(gs) do
table.insert(t,v)
end
table.insert(t,"公有setter")
for k,v in ipairs(ss) do
table.insert(t,v)
end
curr_fs=class.getFields()
table.insert(t,"公有字段")
for n=0,#curr_fs-1 do
table.insert(t,tostring(curr_fs[n]))
end
table.insert(t,"公有方法")
for k,v in ipairs(ms) do
table.insert(t,v)
end
dlg.Title=tostring(s)
curt_adapter=adapter(t)
mlist.setAdapter(curt_adapter)
dlg.show()
end
clist.onItemLongClick=function(l,v)
local s=tostring(v.Text)
copy(s)
return true
end
mlist.onItemLongClick=function(l,v)
local s=tostring(v.Text)
if s:find("%w%(") then
s=s:match("(%w+)%(")
else
s=s:match("(%w+)$")
end
copy(s)
return true
end
medit.addTextChangedListener{
onTextChanged=function(c)
local s=tostring(c)
if #s==0 then
mlist.setAdapter(curt_adapter)
return true
end
local class=curr_class
local t={}
local fs=curr_fs
table.insert(t,"公有字段")
for n=0,#fs-1 do
if fs[n].Name:find(s,1,true) then
table.insert(t,tostring(fs[n]))
end
end
local ms=curr_ms
table.insert(t,"公有方法")
for n=0,#ms-1 do
if ms[n].Name:find(s,1,true) then
table.insert(t,tostring(ms[n]))
end
end
mlist.setAdapter(adapter(t))
end
}
edit.addTextChangedListener{
onTextChanged=function(c)
local s=tostring(c)
if #s==0 then
clist.setAdapter(adapter(classes))
end
local t={}
for k,v in ipairs(classes) do
if v:find(s,1,true) then
table.insert(t,v)
end
end
clist.setAdapter(adapter(t))
end
}
|
-- Copyright 2019 - present Xlab
--
-- 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.
-- Auto merge pull by approve command
if (config['approve'] ~= nil and config['approve'].label ~= nil) then
sched(compConfig.schedName, compConfig.sched, function ()
local data = getData()
if (data == nil) then -- data not ready yet
return
end
for i= 1, #data.pulls do
local pull = data.pulls[i]
-- if the pull is still open and have config['approve'].label (default: pull/approved), try merge it
if (pull.closedAt == nil and arrayContains(pull.labels, function (l)
return l == config['approve'].label
end)) then
merge(pull.number)
end
end
end)
else
log("Not set approve.label in config, skip " .. compName)
end
|
local EnemyAISystem = class("EnemyAISystem", System)
local Actions = require "systems/ai/Actions"
local Prerequisites = require "systems/ai/Prerequisites"
function EnemyAISystem:update(dt)
local player = nil
-- get first player
for _, p in pairs(self.targets.Player) do
player = p
break
end
-- continue only if player exists
if player == nil then
return
end
for i, enemy in pairs(self.targets.Enemies) do
local AI = enemy:get("AI")
local priorityGoal = { weight = function() return -1 end }
local nextActionData
if AI.currentAction then
nextActionData = { action = AI.currentAction }
else
nextActionData = {action = Actions.Idle, cost = math.huge }
for _, goal in pairs(AI.goals) do
local actions = AI:getActions(goal)
local actionStack = Stack()
local acomplished
actionStack:multiPush(map(actions, function(a) return {action = a, cost = a.cost(enemy, player, dt)} end))
repeat
actionData = actionStack:pop()
action = actionData.action
accomplished = true
for _, prerequisite in pairs(action.prerequisites) do
accomplished = accomplished and Prerequisites[prerequisite.name](action.name, prerequisite, enemy, player, dt)
if not accomplished then
actionStack:multiPush(map(AI:getActions(prerequisite), function(a) return {action = a, cost = actionData.cost + a.cost(enemy, player, dt)} end))
break
end
end
if accomplished then
if goal.weight(enemy, player, dt) > priorityGoal.weight(enemy, player, dt) then
nextActionData = actionData
priorityGoal = goal
else if goal.weight(enemy, player, dt) == priorityGoal.weight(enemy, player, dt)
and actionData.cost < nextActionData.cost then
nextActionData = actionData
priorityGoal = goal
end
end
end
until actionStack:isEmpty()
end
end
nextAction = nextActionData.action
if nextAction.perform(enemy, player, dt) then
AI.currentState = {}
AI.currentAction = nil
else
AI.currentAction = nextAction
end
end
end
function map(list, func)
result = {}
for _, item in ipairs(list) do
table.insert(result, func(item))
end
return result
end
function EnemyAISystem:requires()
return {
Enemies = {"Position", "Velocity", "Circle", "AI"},
Player = {"Position", "Hitpoints", "Circle", "IsPlayer"}
}
end
return EnemyAISystem
|
--[[**********************************
*
* Multi Theft Auto - Admin Panel
*
* server/admin_storage.lua
*
* Original File by lil_Toady
*
**************************************]]
function aSetupStorage()
--local query = db.query ( "SELECT name FROM sqlite_master WHERE name='admin_alias'" )
db.exec("CREATE TABLE IF NOT EXISTS alias ( ip TEXT, serial TEXT, name TEXT, time INTEGER )")
db.exec("CREATE TABLE IF NOT EXISTS warnings ( ip TEXT, serial TEXT, name TEXT, time INTEGER )")
local node = xmlLoadFile("conf\\interiors.xml")
if (node) then
local interiors = 0
while (xmlFindChild(node, "interior", interiors)) do
local interior = xmlFindChild(node, "interior", interiors)
interiors = interiors + 1
aInteriors[interiors] = {
world = tonumber(xmlNodeGetAttribute(interior, "world")),
id = xmlNodeGetAttribute(interior, "id"),
x = xmlNodeGetAttribute(interior, "posX"),
y = xmlNodeGetAttribute(interior, "posY"),
z = xmlNodeGetAttribute(interior, "posZ"),
r = xmlNodeGetAttribute(interior, "rot")
}
end
xmlUnloadFile(node)
end
local node = xmlLoadFile("conf\\stats.xml")
if (node) then
local stats = 0
while (xmlFindChild(node, "stat", stats)) do
local stat = xmlFindChild(node, "stat", stats)
local id = tonumber(xmlNodeGetAttribute(stat, "id"))
local name = xmlNodeGetAttribute(stat, "name")
aStats[id] = name
stats = stats + 1
end
xmlUnloadFile(node)
end
local node = xmlLoadFile("conf\\weathers.xml")
if (node) then
local weathers = 0
while (xmlFindChild(node, "weather", weathers) ~= false) do
local weather = xmlFindChild(node, "weather", weathers)
local id = tonumber(xmlNodeGetAttribute(weather, "id"))
local name = xmlNodeGetAttribute(weather, "name")
aWeathers[id] = name
weathers = weathers + 1
end
xmlUnloadFile(node)
end
local node = xmlLoadFile("conf\\reports.xml")
if (node) then
local messages = 0
while (xmlFindChild(node, "message", messages)) do
subnode = xmlFindChild(node, "message", messages)
local author = xmlFindChild(subnode, "author", 0)
local subject = xmlFindChild(subnode, "subject", 0)
local category = xmlFindChild(subnode, "category", 0)
local text = xmlFindChild(subnode, "text", 0)
local time = xmlFindChild(subnode, "time", 0)
local read = (xmlFindChild(subnode, "read", 0) ~= false)
local id = #aReports + 1
aReports[id] = {}
if (author) then
aReports[id].author = xmlNodeGetValue(author)
else
aReports[id].author = ""
end
if (category) then
aReports[id].category = xmlNodeGetValue(category)
else
aReports[id].category = ""
end
if (subject) then
aReports[id].subject = xmlNodeGetValue(subject)
else
aReports[id].subject = ""
end
if (text) then
aReports[id].text = xmlNodeGetValue(text)
else
aReports[id].text = ""
end
if (time) then
aReports[id].time = xmlNodeGetValue(time)
else
aReports[id].time = ""
end
aReports[id].read = read
messages = messages + 1
end
xmlUnloadFile(node)
end
local node = xmlLoadFile("conf\\messages.xml")
if (node) then
for id, type in ipairs(_types) do
local subnode = xmlFindChild(node, type, 0)
if (subnode) then
aLogMessages[type] = {}
local groups = 0
while (xmlFindChild(subnode, "group", groups)) do
local group = xmlFindChild(subnode, "group", groups)
local action = xmlNodeGetAttribute(group, "action")
local r = tonumber(xmlNodeGetAttribute(group, "r"))
local g = tonumber(xmlNodeGetAttribute(group, "g"))
local b = tonumber(xmlNodeGetAttribute(group, "b"))
aLogMessages[type][action] = {}
aLogMessages[type][action]["r"] = r or 0
aLogMessages[type][action]["g"] = g or 255
aLogMessages[type][action]["b"] = b or 0
if (xmlFindChild(group, "all", 0)) then
aLogMessages[type][action]["all"] = xmlNodeGetValue(xmlFindChild(group, "all", 0))
end
if (xmlFindChild(group, "admin", 0)) then
aLogMessages[type][action]["admin"] = xmlNodeGetValue(xmlFindChild(group, "admin", 0))
end
if (xmlFindChild(group, "player", 0)) then
aLogMessages[type][action]["player"] = xmlNodeGetValue(xmlFindChild(group, "player", 0))
end
if (xmlFindChild(group, "log", 0)) then
aLogMessages[type][action]["log"] = xmlNodeGetValue(xmlFindChild(group, "log", 0))
end
groups = groups + 1
end
end
end
xmlUnloadFile(node)
end
end
function aReleaseStorage()
local node = xmlLoadFile("conf\\reports.xml")
if (node) then
local messages = 0
while (xmlFindChild(node, "message", messages) ~= false) do
local subnode = xmlFindChild(node, "message", messages)
xmlDestroyNode(subnode)
messages = messages + 1
end
else
node = xmlCreateFile("conf\\reports.xml", "messages")
end
for id, message in ipairs(aReports) do
local subnode = xmlCreateChild(node, "message")
for key, value in pairs(message) do
if (value) then
xmlNodeSetValue(xmlCreateChild(subnode, key), tostring(value))
end
end
end
xmlSaveFile(node)
xmlUnloadFile(node)
end
|
entitytooltip = class:new()
local theight = 64
local twidth = 64
local descwidth = 0
twidth = twidth + descwidth*8
function entitytooltip:init(ent)
self.ent = ent
if tooltipimages[self.ent] then
if not tooltipimages[self.ent].image then
tooltipimages[self.ent].image = love.graphics.newImage(tooltipimages[self.ent].path)
end
self.graphic = tooltipimages[self.ent].image
if self.graphic:getWidth() > 64 then
self.timer = 0
end
else
self.customenemy = true
self.v = enemiesdata[self.ent]
if self.v.tooltipgraphic then
self.graphic = self.v.tooltipgraphic
if self.graphic:getWidth() > 64 then
self.timer = 0
end
else
self.graphic = self.v.graphic
self.quad = self.v.quad
end
end
end
function entitytooltip:update(dt)
self.x = math.min(love.mouse.getX(), width*16*scale-(twidth+4)*scale)
self.y = math.max(0, love.mouse.getY()-(theight+4)*scale)
if self.timer then
self.timer = (self.timer+dt)%2
end
end
function entitytooltip:draw(a)
if (tooltipimages[self.ent] and tooltipimages[self.ent].image) or self.customenemy then
love.graphics.setColor(255, 255, 255, a)
local s = self.ent
if not self.customenemy then
s = entitylist[self.ent].name or entitylist[self.ent].t
end
properprintFbackground(s, self.x, self.y, true)
love.graphics.setColor(0, 0, 0, a)
drawrectangle(self.x/scale, self.y/scale+8, (twidth+4), (theight+4))
love.graphics.setColor(255, 255, 255, a)
drawrectangle(self.x/scale+1, self.y/scale+9, 66, theight+2)
local r, g, b = love.graphics.getBackgroundColor()
love.graphics.setColor(r, g, b, a)
love.graphics.rectangle("fill", self.x+2*scale, self.y+10*scale, 64*scale, 64*scale)
love.graphics.setColor(255, 255, 255, a)
if self.customenemy and (not self.v.tooltipgraphic) then
love.graphics.setScissor(self.x+2*scale, self.y+10*scale, 64*scale, 64*scale)
local v = self.v
if v.width and v.height then
local xoff, yoff = ((0.5-v.width/2+(v.spawnoffsetx or 0))*16 + v.offsetX - v.quadcenterX)*scale, (((v.spawnoffsety or 0)-v.height+1)*16-v.offsetY - v.quadcenterY)*scale
love.graphics.setColor(255, 0, 0, 150*(a/255))
love.graphics.rectangle("fill", self.x+(2+32-8)*scale, self.y+(10+32-8)*scale, 16*scale, 16*scale)
love.graphics.setColor(255, 255, 255, a)
if self.graphic and self.quad then
love.graphics.draw(self.graphic, self.quad, self.x+(2+32-8)*scale+xoff, self.y+(10+32)*scale+yoff, 0, scale, scale)
else
local s = "broken\nsprite"
if self.graphic and (not self.quad) then
s = "no\n quad "
elseif (not self.graphic) and self.quad then
s = "no\ngraphic"
end
love.graphics.setColor(216, 40, 0, a)
properprintFbackground(s, self.x+(2+32-#("broken")*4)*scale+xoff, self.y+(10+32)*scale+yoff, true)
end
end
love.graphics.setScissor()
else
if self.timer then
love.graphics.draw(self.graphic, tooltipquad[math.floor(self.timer)+1], self.x+2*scale, self.y+10*scale, 0, scale, scale)
if self.timer%1 > 0.9 then
local alpha = (((self.timer%1)-0.9)/0.1)
love.graphics.setColor(r, g, b, (1-math.sqrt(1-(alpha*alpha)))*a)
love.graphics.rectangle("fill", self.x+2*scale, self.y+10*scale, 64*scale, 64*scale)
love.graphics.setColor(255, 255, 255, alpha*a)
love.graphics.draw(self.graphic, tooltipquad[math.floor((self.timer+1)%2)+1], self.x+2*scale, self.y+10*scale, 0, scale, scale)
end
else
love.graphics.draw(self.graphic, self.x+2*scale, self.y+10*scale, 0, scale, scale)
end
end
end
end |
---@type Rect
local Rect = require('lib.stdlib.oop._generated._rect')
local Vector = require('lib.stdlib.oop.vector')
local Native = require('lib.stdlib.native.native')
---<static> create
---@overload fun(min: Vector, max: Vector): Rect
---@param minx float
---@param miny float
---@param maxx float
---@param maxy float
---@return Rect
function Rect:create(minx, miny, maxx, maxy)
if type(minx) == 'table' and type(miny) == 'table' then
maxx, maxy = table.unpack(miny)
minx, miny = table.unpack(minx)
end
-- @debug@
checkclass(self, Rect, 'create', 'self')
checktype(minx, 'float', 'create', 1)
checktype(miny, 'float', 'create', 2)
checktype(maxx, 'float', 'create', 3)
checktype(maxy, 'float', 'create', 4)
-- @end-debug@
return Rect:fromUd(Native.Rect(minx, miny, maxx, maxy))
end
---@type Rect
local _worldBound = Rect:fromUd(Native.GetWorldBounds())
---<static> getWorldBounds
---@return Rect
function Rect:getWorldBounds()
return _worldBound
end
---getWorldBoundMax
---@return Vector
function Rect:getWorldBoundMax()
return Vector:new(_worldBound:getMaxX(), _worldBound:getMaxY())
end
---set
---@overload fun(min: Vector, max: Vector): void
---@param minx float
---@param miny float
---@param maxx float
---@param maxy float
---@return void
function Rect:set(minx, miny, maxx, maxy)
if type(minx) == 'table' and type(miny) == 'table' then
maxx, maxy = table.unpack(miny)
minx, miny = table.unpack(minx)
end
-- @debug@
checkobject(self, Rect, 'set', 'self')
checktype(minx, 'float', 'set', 1)
checktype(miny, 'float', 'set', 2)
checktype(maxx, 'float', 'set', 3)
checktype(maxy, 'float', 'set', 4)
-- @end-debug@
return Native.SetRect(getUd(self), minx, miny, maxx, maxy)
end
---getCenter
---@return Vector
function Rect:getCenter()
local x = self:getCenterX()
local y = self:getCenterY()
return Vector:new(x, y)
end
---toCameraBounds
---@return x1, y1, x2, y2, x3, y3, x4, y4 float
function Rect:toCameraBounds()
return self:getMinX() + Native.GetCameraMargin(CAMERA_MARGIN_LEFT),
self:getMinY() + Native.GetCameraMargin(CAMERA_MARGIN_BOTTOM),
self:getMaxX() - Native.GetCameraMargin(CAMERA_MARGIN_RIGHT),
self:getMinY() - Native.GetCameraMargin(CAMERA_MARGIN_TOP),
self:getMinX() + Native.GetCameraMargin(CAMERA_MARGIN_LEFT),
self:getMaxY() - Native.GetCameraMargin(CAMERA_MARGIN_TOP),
self:getMaxX() - Native.GetCameraMargin(CAMERA_MARGIN_RIGHT),
self:getMaxY() + Native.GetCameraMargin(CAMERA_MARGIN_BOTTOM)
end
---@param me Rect
function Rect.meta.__tostring(me)
return string.format('%s,%s;%s,%s', me:getMinX(), me:getMinY(), me:getMaxX(), me:getMaxY())
end
return Rect
|
-----------------------------------------
-- INFORMATION
-----------------------------------------
--[[
These functions get added to all UiWidgets. Weee
Changing a font to bold doesn't update itself unless the size of the font is changed too.
So call SetBold before SetFontSize
--]]
-----------------------------------------
-- LOCALIZED GLOBAL VARIABLES
-----------------------------------------
local ZGV = _G.ZGV
local tinsert,tremove,sort,min,max,floor,type,pairs,ipairs = table.insert,table.remove,table.sort,math.min,math.max,math.floor,type,pairs,ipairs
local print = ZGV.print
local CHAIN = ZGV.Utils.ChainCall
local print = ZGV.print
local ui = ZGV.UI
local Base = {}
-----------------------------------------
-- LOAD TIME SETUP
-----------------------------------------
ui:RegisterWidget("Base",Base)
-- Can not create a new Base.. These are just general use functions that every widget gets
-----------------------------------------
-- CLASS FUNCTIONS
-----------------------------------------
function Base:ShowIf(bool)
self:SetHidden(not bool)
end
function Base:Show()
self:SetHidden(false)
end
function Base:Hide()
self:SetHidden(true)
end
function Base:HookHandler(which,hand)
local presentHand = self:GetHandler(which)
if not presentHand then
self:SetHandler(which,hand)
else
self:SetHandler(which,function(...)
hand(...)
presentHand(...)
end)
end
end
function Base:SetSize(x,y)
self:SetDimensions(x,y)
end
function Base:GetSize()
return self:GetDimensions()
end
function Base:SetPoint(...)
local args = {...}
local num = #args
local parent = self:GetParent()
if num == 5 then
-- SetAnchor(whereOnMe, anchorTargetControl, whereOnTarget, offsetX, offsetY)
self:SetAnchor(...)
elseif num==4 then
-- SetAnchor(whereOnMe, anchorTargetControl, offsetX, offsetY)
self:SetAnchor(args[1],args[2],args[1],args[3],args[4])
elseif num==3 then
if type(args[1])=="number" then
if type(args[2])=="userdata" then
-- SetAnchor(whereOnMe, anchorTargetControl, whereOnTarget)
self:SetAnchor(...)
else
-- SetAnchor(whereOnMe, offsetX, offsetY)
self:SetAnchor(args[1],parent,args[1],args[2],args[3])
end
else
-- SetSimpleAnchor(anchorTargetControl, offsetX, offsetY)
-- Topleft
self:SetSimpleAnchor(...)
end
elseif num==2 then
if type(args[2])=="userdata" then
-- SetAnchor(whereOnMe, anchorTargetControl)
self:SetAnchor(args[1], args[2], args[1])
else
--SetSimpleAnchorParent (offsetX, offsetY)
-- Topleft
self:SetSimpleAnchorParent(...)
end
elseif num==1 then
if type(args[1])=="userdata" then
-- SetAnchorFill(anchorTargetControl)
self:SetAnchorFill(...)
else
--SetAnchor (anchorTargetControl)
self:SetAnchor(...)
end
elseif num==0 then
-- Same as SetAnchor(TOPLEFT)
self:SetAnchor()
end
end
function Base:ClearAllPoints()
self:ClearAnchors()
end
function Base:SetAllPoints()
self:SetPoint(self:GetParent())
end
function Base:IsShown()
return not self:IsHidden()
end
function Base:SetBold(bold)
self.bold = bold
end
function Base:SetFontSize(size,bold)
if not self.SetFont then assert("Can't set font for this! -"..self:GetName()) return end
local font = ui:GetFont(size,self.bold or bold)
self:SetFont(font)
end
-- Most times this is all that is needed to Add a tooltip. Can overwrite when special action is needed aka Dropdowns.
function Base:AddTooltip(head,msg,owner,onme,x,y,onpt)
-- Default point is topright of self.
owner = owner or self
onme = onme or BOTTOM
x = x or 0
y = y or 0
onpt = onpt or TOP
local enter = function(me)
CHAIN(ZGV.Tooltip)
:ClearLines()
:SetWidth(0)
:SetOwner(owner,onme,x,y,onpt)
:AddHeader(head)
:AddLine(msg)
:Show()
end
local exit = function(me)
ZGV.Tooltip:Hide()
end
CHAIN(self)
:HookHandler("OnMouseEnter",enter)
:HookHandler("OnMouseExit",exit)
end
|
local CorePackages = game:GetService("CorePackages")
local Roact = require(CorePackages.Roact)
local RoactRodux = require(CorePackages.RoactRodux)
local Components = script.Parent
local EmotesMenu = Components.Parent
local Constants = require(EmotesMenu.Constants)
local SlotNumbers = Roact.PureComponent:extend("SlotNumbers")
function SlotNumbers:render()
local LayoutConstants = Constants.Layouts[self.props.layout]
local slotNumbers = {}
for slotIndex = 1, Constants.EmotesPerPage do
local angle = (360 / Constants.EmotesPerPage) * (slotIndex - 1) + Constants.SegmentsStartRotation
local radius = Constants.InnerCircleSizeRatio / 2
local numberSize = Constants.SlotNumberSize
local numberPadding = numberSize / 2
local cos = math.cos(math.rad(angle))
local xRadiusPos = radius * cos
local xPadding = numberPadding * cos
local xPos = 0.5 + xRadiusPos + xPadding
local sin = math.sin(math.rad(angle))
local yRadiusPos = radius * sin
local yPadding = numberPadding * sin
local yPos = 0.5 + yRadiusPos + yPadding
slotNumbers[slotIndex] = Roact.createElement("TextLabel", {
AnchorPoint = Vector2.new(0.5, 0.5),
Position = UDim2.new(xPos, 0, yPos, 0),
Size = UDim2.new(numberSize, 0, numberSize, 0),
BackgroundTransparency = 1,
TextScaled = true,
TextSize = LayoutConstants.SlotNumberTextSize,
TextColor3 = Constants.Colors.White,
Text = slotIndex,
Font = LayoutConstants.SlotNumberFont,
ZIndex = 2, -- TODO: Remove with Sibling ZIndex
}, {
TextSizeConstraint = Roact.createElement("UITextSizeConstraint", {
MaxTextSize = LayoutConstants.SlotNumberTextSize,
}),
})
end
return Roact.createElement("Frame", {
Size = UDim2.new(1, 0, 1, 0),
BackgroundTransparency = 1,
}, slotNumbers)
end
local function mapStateToProps(state)
return {
layout = state.layout,
}
end
return RoactRodux.UNSTABLE_connect2(mapStateToProps, nil)(SlotNumbers) |
local server = require "nvim-lsp-installer.server"
local path = require "nvim-lsp-installer.path"
local shell = require "nvim-lsp-installer.installers.shell"
local root_dir = server.get_server_root_path "groovyls"
return server.Server:new {
name = "groovyls",
root_dir = root_dir,
pre_install_check = function()
if vim.fn.executable "javac" ~= 1 then
error "Missing a Javac installation."
end
end,
installer = shell.raw [[
git clone --depth 1 https://github.com/GroovyLanguageServer/groovy-language-server .;
./gradlew build;
]],
default_options = {
cmd = { "java", "-jar", path.concat { root_dir, "groovy-language-server-all.jar" } },
},
}
|
local on_attach = require('lsp.on_attach')
local lspconfig = require('lspconfig')
local capabilities = require('cmp_nvim_lsp').update_capabilities(
vim.lsp.protocol.make_client_capabilities()
)
capabilities.textDocument.completion.completionItem.snippetSupport = true
capabilities.textDocument.completion.completionItem.resolveSupport = {
properties = { 'documentation', 'detail', 'additionalTextEdits' },
}
lspconfig.terraform_lsp.setup({
capabilities = capabilities,
on_attach = function(client)
client.server_capabilities.signature_help = false
on_attach(client)
end,
filetypes = { 'terraform', 'tf' },
})
|
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2008-2015 Jo-Philipp Wich <jow@openwrt.org>
-- Licensed to the public under the Apache License 2.0.
local uci = require "luci.model.uci".cursor()
local bit = require "nixio".bit
local ip = require "luci.ip"
-------------------- Init --------------------
--
-- Find link-local address
--
function find_ll()
local _, r
for _, r in ipairs(ip.routes({ family = 6, dest = "fe80::/64" })) do
if r.dest:higher("fe80:0:0:0:ff:fe00:0:0") then
return (r.dest - "fe80::")
end
end
return ip.IPv6("::")
end
--
-- Determine defaults
--
local ula_prefix = uci:get("siit", "ipv6", "ula_prefix") or "fd00::"
local ula_global = uci:get("siit", "ipv6", "ula_global") or "00ca:ffee:babe::" -- = Freifunk
local ula_subnet = uci:get("siit", "ipv6", "ula_subnet") or "0000:0000:0000:4223::" -- = Berlin
local siit_prefix = uci:get("siit", "ipv6", "siit_prefix") or "::ffff:0000:0000"
local ipv4_pool = uci:get("siit", "ipv4", "pool") or "172.16.0.0/12"
local ipv4_netsz = uci:get("siit", "ipv4", "netsize") or "24"
--
-- Find IPv4 allocation pool
--
local gv4_net = ip.IPv4(ipv4_pool)
--
-- Generate ULA
--
local ula = ip.IPv6("::/64")
for _, prefix in ipairs({ ula_prefix, ula_global, ula_subnet }) do
ula = ula:add(ip.IPv6(prefix))
end
ula = ula:add(find_ll())
-------------------- View --------------------
f = SimpleForm("siitwizward", "SIIT-Wizzard",
"This wizzard helps to setup SIIT (IPv4-over-IPv6) translation according to RFC2765.")
f:field(DummyValue, "info_ula", "Mesh ULA address").value = ula:string()
f:field(DummyValue, "ipv4_pool", "IPv4 allocation pool").value =
"%s (%i hosts)" %{ gv4_net:string(), 2 ^ ( 32 - gv4_net:prefix() ) - 2 }
f:field(DummyValue, "ipv4_size", "IPv4 LAN network prefix").value =
"%i bit (%i hosts)" %{ ipv4_netsz, 2 ^ ( 32 - ipv4_netsz ) - 2 }
mode = f:field(ListValue, "mode", "Operation mode")
mode:value("client", "Client")
mode:value("gateway", "Gateway")
dev = f:field(ListValue, "device", "Wireless device")
uci:foreach("wireless", "wifi-device",
function(section)
dev:value(section[".name"])
end)
lanip = f:field(Value, "ipaddr", "LAN IPv4 subnet")
function lanip.formvalue(self, section)
local val = self.map:formvalue(self:cbid(section))
local net = ip.IPv4("%s/%i" %{ val, ipv4_netsz })
if net then
if gv4_net:contains(net) then
if not net:minhost():equal(net:host()) then
self.error = { [section] = true }
f.errmessage = "IPv4 address is not the first host of " ..
"subnet, expected " .. net:minhost():string()
end
else
self.error = { [section] = true }
f.errmessage = "IPv4 address is not within the allocation pool"
end
else
self.error = { [section] = true }
f.errmessage = "Invalid IPv4 address given"
end
return val
end
dns = f:field(Value, "dns", "DNS server for LAN clients")
dns.value = "141.1.1.1"
-------------------- Control --------------------
function f.handle(self, state, data)
if state == FORM_VALID then
luci.http.redirect(luci.dispatcher.build_url("admin", "uci", "changes"))
return false
end
return true
end
function mode.write(self, section, value)
--
-- Find LAN IPv4 range
--
local lan_net = ip.IPv4(
( lanip:formvalue(section) or "172.16.0.1" ) .. "/" .. ipv4_netsz
)
if not lan_net then return end
--
-- Find wifi interface, dns server and hostname
--
local device = dev:formvalue(section)
local dns_server = dns:formvalue(section) or "141.1.1.1"
local hostname = "siit-" .. lan_net:host():string():gsub("%.","-")
--
-- Configure wifi device
--
local wifi_device = dev:formvalue(section)
local wifi_essid = uci:get("siit", "wifi", "essid") or "6mesh.freifunk.net"
local wifi_bssid = uci:get("siit", "wifi", "bssid") or "02:ca:ff:ee:ba:be"
local wifi_channel = uci:get("siit", "wifi", "channel") or "1"
-- nuke old device definition
uci:delete_all("wireless", "wifi-iface",
function(s) return s.device == wifi_device end )
uci:delete_all("network", "interface",
function(s) return s['.name'] == wifi_device end )
-- create wifi device definition
uci:tset("wireless", wifi_device, {
disabled = 0,
channel = wifi_channel,
-- txantenna = 1,
-- rxantenna = 1,
-- diversity = 0
})
uci:section("wireless", "wifi-iface", nil, {
encryption = "none",
mode = "adhoc",
txpower = 10,
sw_merge = 1,
network = wifi_device,
device = wifi_device,
ssid = wifi_essid,
bssid = wifi_bssid,
})
--
-- Gateway mode
--
-- * wan port is dhcp, lan port is 172.23.1.1/24
-- * siit0 gets a dummy address: 169.254.42.42
-- * wl0 gets an ipv6 address, in this case the fdca:ffee:babe::1:1/64
-- * we do a ::ffff:ffff:0/96 route into siit0, so everything from 6mesh goes into translation.
-- * an HNA6 of ::ffff:ffff:0:0/96 announces the mapped 0.0.0.0/0 ipv4 space.
-- * MTU on WAN, LAN down to 1400, ipv6 headers are slighly larger.
if value == "gateway" then
-- wan mtu
uci:set("network", "wan", "mtu", 1240)
-- lan settings
uci:tset("network", "lan", {
mtu = 1240,
ipaddr = lan_net:host():string(),
netmask = lan_net:mask():string(),
proto = "static"
})
-- use full siit subnet
siit_route = ip.IPv6(siit_prefix .. "/96")
-- v4 <-> siit route
uci:delete_all("network", "route",
function(s) return s.interface == "siit0" end)
uci:section("network", "route", nil, {
interface = "siit0",
target = gv4_net:network():string(),
netmask = gv4_net:mask():string()
})
--
-- Client mode
--
-- * 172.23.2.1/24 on its lan, fdca:ffee:babe::1:2 on wl0 and the usual dummy address on siit0.
-- * we do a ::ffff:ffff:172.13.2.0/120 to siit0, because in this case, only traffic directed to clients needs to go into translation.
-- * same route as HNA6 announcement to catch the traffic out of the mesh.
-- * Also, MTU on LAN reduced to 1400.
else
-- lan settings
uci:tset("network", "lan", {
mtu = 1240,
ipaddr = lan_net:host():string(),
netmask = lan_net:mask():string()
})
-- derive siit subnet from lan config
siit_route = ip.IPv6(
siit_prefix .. "/" .. (96 + lan_net:prefix())
):add(lan_net[2])
-- ipv4 <-> siit route
uci:delete_all("network", "route",
function(s) return s.interface == "siit0" end)
-- XXX: kind of a catch all, gv4_net would be better
-- but does not cover non-local v4 space
uci:section("network", "route", nil, {
interface = "siit0",
target = "0.0.0.0",
netmask = "0.0.0.0"
})
end
-- setup the firewall
uci:delete_all("firewall", "zone",
function(s) return (
s['.name'] == "siit0" or s.name == "siit0" or
s.network == "siit0" or s['.name'] == wifi_device or
s.name == wifi_device or s.network == wifi_device
) end)
uci:delete_all("firewall", "forwarding",
function(s) return (
s.src == wifi_device and s.dest == "siit0" or
s.dest == wifi_device and s.src == "siit0" or
s.src == "lan" and s.dest == "siit0" or
s.dest == "lan" and s.src == "siit0"
) end)
uci:section("firewall", "zone", "siit0", {
name = "siit0",
network = "siit0",
input = "ACCEPT",
output = "ACCEPT",
forward = "ACCEPT"
})
uci:section("firewall", "zone", wifi_device, {
name = wifi_device,
network = wifi_device,
input = "ACCEPT",
output = "ACCEPT",
forward = "ACCEPT"
})
uci:section("firewall", "forwarding", nil, {
src = wifi_device,
dest = "siit0"
})
uci:section("firewall", "forwarding", nil, {
src = "siit0",
dest = wifi_device
})
uci:section("firewall", "forwarding", nil, {
src = "lan",
dest = "siit0"
})
uci:section("firewall", "forwarding", nil, {
src = "siit0",
dest = "lan"
})
-- firewall include
uci:delete_all("firewall", "include",
function(s) return s.path == "/etc/firewall.user" end)
uci:section("firewall", "include", nil, {
path = "/etc/firewall.user"
})
-- siit0 interface
uci:delete_all("network", "interface",
function(s) return ( s.ifname == "siit0" ) end)
uci:section("network", "interface", "siit0", {
ifname = "siit0",
proto = "none"
})
-- siit0 route
uci:delete_all("network", "route6",
function(s) return siit_route:contains(ip.IPv6(s.target)) end)
uci:section("network", "route6", nil, {
interface = "siit0",
target = siit_route:string()
})
-- create wifi network interface
uci:section("network", "interface", wifi_device, {
proto = "static",
mtu = 1400,
ip6addr = ula:string()
})
-- nuke old olsrd interfaces
uci:delete_all("olsrd", "Interface",
function(s) return s.interface == wifi_device end)
-- configure olsrd interface
uci:foreach("olsrd", "olsrd",
function(s) uci:set("olsrd", s['.name'], "IpVersion", 6) end)
uci:section("olsrd", "Interface", nil, {
ignore = 0,
interface = wifi_device,
Ip6AddrType = "unique-local"
})
-- hna6
uci:delete_all("olsrd", "Hna6",
function(s) return true end)
uci:section("olsrd", "Hna6", nil, {
netaddr = siit_route:host():string(),
prefix = siit_route:prefix()
})
-- txtinfo v6 & olsrd nameservice
uci:foreach("olsrd", "LoadPlugin",
function(s)
if s.library == "olsrd_txtinfo.so.0.1" then
uci:set("olsrd", s['.name'], "accept", "::1")
elseif s.library == "olsrd_nameservice.so.0.3" then
uci:set("olsrd", s['.name'], "name", hostname)
end
end)
-- lan dns
uci:tset("dhcp", "lan", {
dhcp_option = "6," .. dns_server,
start = bit.band(lan_net:minhost():add(1)[2][2], 0xFF),
limit = ( 2 ^ ( 32 - lan_net:prefix() ) ) - 3
})
-- hostname
uci:foreach("system", "system",
function(s)
uci:set("system", s['.name'], "hostname", hostname)
end)
uci:save("wireless")
uci:save("firewall")
uci:save("network")
uci:save("system")
uci:save("olsrd")
uci:save("dhcp")
end
return f
|
-- URI
-- RFC 3986
local lpeg = require "lpeg"
local P = lpeg.P
local S = lpeg.S
local C = lpeg.C
local Cc = lpeg.Cc
local Cg = lpeg.Cg
local Cs = lpeg.Cs
local Ct = lpeg.Ct
local util = require "lpeg_patterns.util"
local core = require "lpeg_patterns.core"
local ALPHA = core.ALPHA
local DIGIT = core.DIGIT
local HEXDIG = core.HEXDIG
local IPv4address = require "lpeg_patterns.IPv4".IPv4address
local IPv6address = require "lpeg_patterns.IPv6".IPv6address
local _M = {}
_M.sub_delims = S"!$&'()*+,;=" -- 2.2
local unreserved = ALPHA + DIGIT + S"-._~" -- 2.3
_M.pct_encoded = P"%" * (HEXDIG * HEXDIG / util.read_hex) / function(n)
local c = string.char(n)
if unreserved:match(c) then
-- always decode unreserved characters (2.3)
return c
else
-- normalise to upper-case (6.2.2.1)
return string.format("%%%02X", n)
end
end -- 2.1
_M.scheme = ALPHA * (ALPHA + DIGIT + S"+-.")^0 / string.lower -- 3.1
_M.userinfo = Cs((unreserved + _M.pct_encoded + _M.sub_delims + P":")^0) -- 3.2.1
-- Host 3.2.2
local IPvFuture_mt = {
__name = "lpeg_patterns.IPvFuture";
}
function IPvFuture_mt:__tostring()
return string.format("v%x.%s", self.version, self.string)
end
local function new_IPvFuture(version, string)
return setmetatable({version=version, string=string}, IPvFuture_mt)
end
local IPvFuture = S"vV" * (HEXDIG^1/util.read_hex) * P"." * C((unreserved+_M.sub_delims+P":")^1) / new_IPvFuture
-- RFC 6874
local ZoneID = Cs((unreserved + _M.pct_encoded)^1)
local IPv6addrz = IPv6address * (P"%25" * ZoneID)^-1 / function(IPv6, zoneid)
IPv6:setzoneid(zoneid)
return IPv6
end
_M.IP_literal = P"[" * (IPv6addrz + IPvFuture) * P"]"
local IP_host = (_M.IP_literal + IPv4address) / tostring
local reg_name = Cs((
unreserved / string.lower
+ _M.pct_encoded / function(s) return s:sub(1,1) == "%" and s or string.lower(s) end
+ _M.sub_delims
)^1) + Cc(nil)
_M.host = IP_host + reg_name
_M.port = DIGIT^0 / tonumber -- 3.2.3
-- Path 3.3
local pchar = unreserved + _M.pct_encoded + _M.sub_delims + S":@"
local segment = pchar^0
_M.segment = Cs(segment)
local segment_nz = pchar^1
local segment_nz_nc = (pchar - P":")^1
-- an empty path is nil instead of the empty string
local path_empty = Cc(nil)
local path_abempty = Cs((P"/" * segment)^1) + path_empty
local path_rootless = Cs(segment_nz * (P"/" * segment)^0)
local path_noscheme = Cs(segment_nz_nc * (P"/" * segment)^0)
local path_absolute = Cs(P"/" * (segment_nz * (P"/" * segment)^0)^-1)
_M.query = Cs( ( pchar + S"/?" )^0 ) -- 3.4
_M.fragment = _M.query -- 3.5
-- Put together with named captures
_M.authority = ( Cg(_M.userinfo, "userinfo") * P"@" )^-1
* Cg(_M.host, "host")
* ( P":" * Cg(_M.port, "port") )^-1
local hier_part = P"//" * _M.authority * Cg (path_abempty, "path")
+ Cg(path_absolute + path_rootless + path_empty, "path")
_M.absolute_uri = Ct (
( Cg(_M.scheme, "scheme") * P":" )
* hier_part
* ( P"?" * Cg(_M.query, "query"))^-1
)
_M.uri = Ct (
( Cg(_M.scheme, "scheme") * P":" )
* hier_part
* ( P"?" * Cg(_M.query, "query"))^-1
* ( P"#" * Cg(_M.fragment, "fragment"))^-1
)
_M.relative_part = P"//" * _M.authority * Cg(path_abempty, "path")
+ Cg(path_absolute + path_noscheme + path_empty, "path")
local relative_ref = Ct (
_M.relative_part
* ( P"?" * Cg(_M.query, "query"))^-1
* ( P"#" * Cg(_M.fragment, "fragment"))^-1
)
_M.uri_reference = _M.uri + relative_ref
_M.path = path_abempty + path_absolute + path_noscheme + path_rootless + path_empty
-- Create a slightly more sane host pattern
-- scheme is optional
-- the "//" isn't required
-- if missing, the host needs to at least have a "." and end in two alpha characters
-- an authority is always required
local sane_host_char = unreserved / string.lower
local hostsegment = (sane_host_char - P".")^1
local dns_entry = Cs ( ( hostsegment * P"." )^1 * ALPHA^2 )
_M.sane_host = IP_host + dns_entry
_M.sane_authority = ( Cg(_M.userinfo, "userinfo") * P"@" )^-1
* Cg(_M.sane_host, "host")
* ( P":" * Cg(_M.port, "port") )^-1
local sane_hier_part = (P"//")^-1 * _M.sane_authority * Cg(path_absolute + path_empty, "path")
_M.sane_uri = Ct (
( Cg(_M.scheme, "scheme") * P":" )^-1
* sane_hier_part
* ( P"?" * Cg(_M.query, "query"))^-1
* ( P"#" * Cg(_M.fragment, "fragment"))^-1
)
return _M
|
--[[
Copyright (C) 2018 "IoT.bzh"
Author Arthur Guyader <arthur.guyader@iot.bzh>
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.
NOTE: strict mode: every global variables should be prefixed by '_'
--]]
_AFT.setBeforeAll(function()
local can = io.open("/sys/class/net/can0")
if can == nil then
print("# You do not have 'can0' device set. Please run the following command:\n### sudo modprobe vcan; sudo ip link add can2 type vcan; sudo ip link set can2 up ")
return -1
end
return 0
end)
_AFT.setBeforeEach(function() print("~~~~~ Begin Test ~~~~~") end)
_AFT.setAfterEach(function()
os.execute("pkill canplayer")
os.execute("pkill linuxcan-canpla")
print("~~~~~ End Test ~~~~~")
end)
_AFT.setAfterAll( function()
os.execute("pkill canplayer")
os.execute("pkill linuxcan-canpla")
return 0
end)
--[[
###########################################################
####################### J1939 TESTS #######################
###########################################################
]]
print("\n##########################################")
print("######### BEGIN J1939 TESTS #########")
print("##########################################\n")
--[[
+++++++++++++++++++++++++++
Tests subscribe/unsubscribe
+++++++++++++++++++++++++++
]]
--print("\n++++++++++++++++++++++++++++++++++++++++++")
--print("++++ TESTS SUBSCRIBE / UNSUBSCRIBE ++++")
--print("++++++++++++++++++++++++++++++++++++++++++\n")
_AFT.describe("Test subscribe/unsubscribe", function()
_AFT.testVerbStatusSuccess("low-can_subscribe_j1939_event", "low-can", "subscribe", {event= "Eng.Momentary.Overspeed.Enable"})
_AFT.testVerbStatusSuccess("low-can_subscribe_j1939_events", "low-can", "subscribe", {event= "Eng.*"})
_AFT.testVerbStatusSuccess("low-can_subscribe_j1939_pgn", "low-can", "subscribe", {pgn= 61442})
_AFT.testVerbStatusSuccess("low-can_subscribe_j1939_all_pgn", "low-can", "subscribe", {pgn= "*"})
_AFT.testVerbStatusSuccess("low-can_subscribe_j1939_id", "low-can", "subscribe", {id= 61442})
_AFT.testVerbStatusSuccess("low-can_subscribe_j1939_all_id", "low-can", "subscribe", {id= "*"})
_AFT.testVerbStatusSuccess("low-can_subscribe_j1939_event", "low-can", "unsubscribe", {event= "Eng.Momentary.Overspeed.Enable"})
_AFT.testVerbStatusSuccess("low-can_subscribe_j1939_event", "low-can", "unsubscribe", {event= "*"})
_AFT.testVerbStatusSuccess("low-can_subscribe_j1939_id", "low-can", "subscribe", {id= 61442})
_AFT.testVerbStatusError("low-can_subscribe_j1939_no_event", "low-can", "subscribe", {event= ""})
_AFT.testVerbStatusError("low-can_subscribe_j1939_no_event", "low-can", "subscribe", {id= ""})
_AFT.testVerbStatusError("low-can_subscribe_j1939_no_event", "low-can", "subscribe", {pgn= ""})
end)
--[[
+++++++++++
Tests write
+++++++++++
]]
--print("\n++++++++++++++++++++++++++")
--print("++++ TESTS WRITE ++++")
--print("++++++++++++++++++++++++++\n")
_AFT.describe("Test write", function()
_AFT.testVerbStatusError("low-can_write_wo_auth", "low-can", "write", { signal_name = "Eng.Momentary.Overspeed.Enable", signal_value = 1})
_AFT.testVerbStatusSuccess("low-can_auth", "low-can", "auth", {})
_AFT.testVerbStatusSuccess("low-can_write_signal", "low-can", "write", { signal_name = "Eng.Momentary.Overspeed.Enable", signal_value = 1})
_AFT.testVerbStatusSuccess("low-can_write_frame", "low-can", "write", { bus_name= "j1939", frame= { pgn= 62420, length=8, data= {1, 2, 3, 4, 5, 6, 7, 8}}})
_AFT.testVerbStatusSuccess("low-can_write_frame_other_pgn", "low-can", "write", { bus_name= "j1939", frame= { pgn= 126208, length=8, data= {9, 10, 11, 12, 13, 14, 15, 16}}})
_AFT.testVerbStatusError("low-can_write_frame_invalid_pgn", "low-can", "write", { bus_name= "j1939", frame= { pgn= 1234, length=8, data= {9, 10, 11, 12, 13, 14, 15, 16}}})
_AFT.testVerbStatusSuccess("low-can_write_multi_frame", "low-can", "write", { bus_name= "j1939", frame= { pgn= 126208, length=9, data= {9, 10, 11, 12, 13, 14, 15, 16, 17}}})
end)
--[[
++++++++++
Tests read
++++++++++
]]
local api = "low-can"
local evt = "messages.Eng.Momentary.Overspeed.Enable"
local evt2 = "messages.Actl.Eng.Prcnt.Trque.High.Resolution"
_AFT.describe("Test subscribe read frame", function()
_AFT.addEventToMonitor(api .. "/" ..evt, function(eventname, data)
_AFT.assertEquals(eventname, api.."/"..evt)
end)
_AFT.assertVerbStatusSuccess(api ,"subscribe", { event = evt})
local ret = os.execute("bash ".._AFT.bindingRootDir.."/var/replay_launcher.sh ".._AFT.bindingRootDir.."/var/testj1939.canreplay");
_AFT.assertIsTrue(ret)
_AFT.assertEvtReceived(api .. "/" ..evt, 1000000)
end,
nil,
function()
_AFT.callVerb(api, "unsubscribe", { event = evt})
end)
------------------------------------------------------------------------------
_AFT.describe("Test subscribe not read all frame", function()
_AFT.addEventToMonitor(api .. "/" ..evt2, function(eventname, data)
_AFT.assertEquals(eventname, api.."/"..evt2)
end)
_AFT.assertVerbStatusSuccess(api ,"subscribe", { event = evt2})
local ret = os.execute("bash ".._AFT.bindingRootDir.."/var/replay_launcher.sh ".._AFT.bindingRootDir.."/var/testj1939.canreplay");
_AFT.assertIsTrue(ret)
_AFT.assertEvtNotReceived(api .. "/" ..evt2, 1000000)
end,
nil,
function()
_AFT.callVerb(api, "unsubscribe", { event = evt2})
end)
---------------
_AFT.describe("Test subscribe read frame low time", function()
_AFT.addEventToMonitor(api .. "/" ..evt, function(eventname, data)
_AFT.assertEquals(eventname, api.."/"..evt)
end)
_AFT.assertVerbStatusSuccess(api ,"subscribe", { event = evt})
local ret = os.execute("bash ".._AFT.bindingRootDir.."/var/replay_launcher.sh ".._AFT.bindingRootDir.."/var/testj1939.canreplay");
_AFT.assertIsTrue(ret)
end,
nil,
function()
_AFT.callVerb(api, "unsubscribe", { event = evt})
end)
_AFT.exitAtEnd()
|
-- This file is automatically generated, do not edit!
-- Item data (c) Grinding Gear Games
return {
["ChaosResistJewelCorrupted"] = { type = "Corrupted", affix = "", "+(1-3)% to Chaos Resistance", statOrderKey = "1235", statOrder = { 1235 }, level = 1, group = "ChaosResistance", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "resistance" }, },
["ReducedCharacterSizeJewelCorrupted"] = { type = "Corrupted", affix = "", "1% reduced Character Size", statOrderKey = "1614", statOrder = { 1614 }, level = 1, group = "ActorSize", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["ReducedChillDurationJewelCorrupted"] = { type = "Corrupted", affix = "", "(3-5)% reduced Chill Duration on you", statOrderKey = "1442", statOrder = { 1442 }, level = 1, group = "ReducedChillDuration", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "ailment" }, },
["ReducedFreezeDurationJewelCorrupted"] = { type = "Corrupted", affix = "", "(3-5)% reduced Freeze Duration on you", statOrderKey = "1444", statOrder = { 1444 }, level = 1, group = "ReducedFreezeDuration", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "ailment" }, },
["ReducedIgniteDurationJewelCorrupted"] = { type = "Corrupted", affix = "", "(3-5)% reduced Ignite Duration on you", statOrderKey = "1445", statOrder = { 1445 }, level = 1, group = "ReducedBurnDuration", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "ailment" }, },
["ReducedShockDurationJewelCorrupted"] = { type = "Corrupted", affix = "", "(3-5)% reduced Shock Duration on you", statOrderKey = "1443", statOrder = { 1443 }, level = 1, group = "ReducedShockDuration", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "ailment" }, },
["IncreasedChargeDurationJewelCorrupted_"] = { type = "Corrupted", affix = "", "(3-7)% increased Endurance, Frenzy and Power Charge Duration", statOrderKey = "2531", statOrder = { 2531 }, level = 1, group = "ChargeDuration", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "endurance_charge", "frenzy_charge", "power_charge" }, },
["AddedChaosDamageJewelCorrupted"] = { type = "Corrupted", affix = "", "Adds 1 to (2-3) Chaos Damage to Attacks", statOrderKey = "991", statOrder = { 991 }, level = 1, group = "ChaosDamage", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos_damage", "damage", "chaos", "attack" }, },
["ChanceToBeCritJewelCorrupted"] = { type = "Corrupted", affix = "", "Hits have (60-100)% increased Critical Strike Chance against you", statOrderKey = "2633", statOrder = { 2633 }, level = 1, group = "ChanceToTakeCriticalStrike", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "critical" }, },
["DamageWhileDeadJewelCorrupted"] = { type = "Corrupted", affix = "", "(20-30)% increased Damage while Dead", statOrderKey = "2597", statOrder = { 2597 }, level = 1, group = "DamageWhileDead", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["VaalSkillDamageJewelCorrupted"] = { type = "Corrupted", affix = "", "(5-10)% increased Damage with Vaal Skills", statOrderKey = "2596", statOrder = { 2596 }, level = 1, group = "VaalSkillDamage", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage", "vaal" }, },
["ChaosDamagePerCorruptedItemJewelCorrupted"] = { type = "Corrupted", affix = "", "1% increased Chaos Damage for each Corrupted Item Equipped", statOrderKey = "2600", statOrder = { 2600 }, level = 1, group = "ChaosDamagePerCorruptedItem", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos_damage", "damage", "chaos" }, },
["LifeLeechRatePerCorruptedItemJewelCorrupted"] = { type = "Corrupted", affix = "", "1% increased total Recovery per second from Life Leech for each Corrupted Item Equipped", statOrderKey = "2601", statOrder = { 2601 }, level = 1, group = "LifeLeechRatePerCorruptedItem", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["ManaLeechRatePerCorruptedItemJewelCorrupted"] = { type = "Corrupted", affix = "", "1% increased total Recovery per second from Mana Leech for each Corrupted Item Equipped", statOrderKey = "2603", statOrder = { 2603 }, level = 1, group = "ManaLeechRatePerCorrupteditem", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["SilenceImmunityJewelCorrupted"] = { type = "Corrupted", affix = "", "You cannot be Cursed with Silence", statOrderKey = "2595", statOrder = { 2595 }, level = 1, group = "PlayerCurseImmunity", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster", "curse" }, },
["V2CorruptedBloodImmunityCorrupted"] = { type = "Corrupted", affix = "", "Corrupted Blood cannot be inflicted on you", statOrderKey = "4514", statOrder = { 4514 }, level = 33, group = "CorruptedBloodImmunity", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "bleed", "physical", "ailment" }, },
["V2HinderImmunityCorrupted"] = { type = "Corrupted", affix = "", "You cannot be Hindered", statOrderKey = "8080", statOrder = { 8080 }, level = 40, group = "YouCannotBeHindered", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "blue_herring" }, },
["V2IncreasedAilmentEffectOnEnemiesCorrupted"] = { type = "Corrupted", affix = "", "(5-7)% increased Effect of Non-Damaging Ailments", statOrderKey = "7291", statOrder = { 7291 }, level = 1, group = "IncreasedAilmentEffectOnEnemies", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "ailment" }, },
["V2IncreasedAreaOfEffectCorrupted"] = { type = "Corrupted", affix = "", "(4-5)% increased Area of Effect", statOrderKey = "1450", statOrder = { 1450 }, level = 1, group = "AreaOfEffect", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["V2IncreasedCriticalStrikeChanceCorrupted_"] = { type = "Corrupted", affix = "", "(8-10)% increased Global Critical Strike Chance", statOrderKey = "1060", statOrder = { 1060 }, level = 1, group = "CriticalStrikeChanceIncrease", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "critical" }, },
["V2IncreasedDamageJewelCorrupted___"] = { type = "Corrupted", affix = "", "(4-5)% increased Damage", statOrderKey = "805", statOrder = { 805 }, level = 1, group = "IncreasedDamage", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["V2MaimImmunityCorrupted"] = { type = "Corrupted", affix = "", "You cannot be Maimed", statOrderKey = "4228", statOrder = { 4228 }, level = 40, group = "AvoidMaimChance", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["V2MinionDamageCorrupted"] = { type = "Corrupted", affix = "", "Minions deal (4-5)% increased Damage", statOrderKey = "1535", statOrder = { 1535 }, level = 1, group = "MinionDamage", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage", "minion" }, },
["V2ReducedManaReservationCorrupted"] = { type = "Corrupted", affix = "", "2% increased Reservation Efficiency of Skills", statOrderKey = "1786", statOrder = { 1786 }, level = 1, group = "ReducedManaReservationsCost", weightKey = { "jewel", "default", }, weightVal = { 0, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["V2ReducedManaReservationCorruptedEfficiency__"] = { type = "Corrupted", affix = "", "2% increased Reservation Efficiency of Skills", statOrderKey = "1783", statOrder = { 1783 }, level = 1, group = "ReducedManaReservationsCost", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["V2SilenceImmunityJewelCorrupted"] = { type = "Corrupted", affix = "", "You cannot be Cursed with Silence", statOrderKey = "2595", statOrder = { 2595 }, level = 60, group = "PlayerCurseImmunity", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster", "curse" }, },
["V2FirePenetrationJewelCorrupted"] = { type = "Corrupted", affix = "", "Damage Penetrates 1% Fire Resistance", statOrderKey = "2487", statOrder = { 2487 }, level = 1, group = "FireResistancePenetration", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental_damage", "damage", "elemental", "fire" }, },
["V2ColdPenetrationJewelCorrupted"] = { type = "Corrupted", affix = "", "Damage Penetrates 1% Cold Resistance", statOrderKey = "2488", statOrder = { 2488 }, level = 1, group = "ColdResistancePenetration", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental_damage", "damage", "elemental", "cold" }, },
["V2LightningPenetrationJewelCorrupted__"] = { type = "Corrupted", affix = "", "Damage Penetrates 1% Lightning Resistance", statOrderKey = "2489", statOrder = { 2489 }, level = 1, group = "LightningResistancePenetration", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental_damage", "damage", "elemental", "lightning" }, },
["V2ElementalPenetrationJewelCorrupted_"] = { type = "Corrupted", affix = "", "Damage Penetrates 1% Elemental Resistances", statOrderKey = "2486", statOrder = { 2486 }, level = 1, group = "ElementalPenetration", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental_damage", "damage", "elemental" }, },
["V2ArmourPenetrationJewelCorrupted"] = { type = "Corrupted", affix = "", "Overwhelm 2% Physical Damage Reduction", statOrderKey = "2484", statOrder = { 2484 }, level = 1, group = "ArmourPenetration", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "physical_damage", "damage", "physical" }, },
["V2AvoidIgniteJewelCorrupted"] = { type = "Corrupted", affix = "", "(20-25)% chance to Avoid being Ignited", statOrderKey = "1416", statOrder = { 1416 }, level = 1, group = "AvoidIgnite", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "ailment" }, },
["V2AvoidChillAndFreezeJewelCorrupted"] = { type = "Corrupted", affix = "", "(20-25)% chance to Avoid being Chilled", "(20-25)% chance to Avoid being Frozen", statOrderKey = "1414,1415", statOrder = { 1414, 1415 }, level = 1, group = "ChanceToAvoidFreezeAndChill", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "ailment" }, },
["V2AvoidShockJewelCorrupted_"] = { type = "Corrupted", affix = "", "(20-25)% chance to Avoid being Shocked", statOrderKey = "1418", statOrder = { 1418 }, level = 1, group = "AvoidShock", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "ailment" }, },
["V2AvoidPoisonJewelCorrupted"] = { type = "Corrupted", affix = "", "(20-25)% chance to Avoid being Poisoned", statOrderKey = "1419", statOrder = { 1419 }, level = 1, group = "ChanceToAvoidPoison", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "poison", "chaos", "ailment" }, },
["V2AvoidBleedJewelCorrupted__"] = { type = "Corrupted", affix = "", "(20-25)% chance to Avoid Bleeding", statOrderKey = "3696", statOrder = { 3696 }, level = 1, group = "ChanceToAvoidBleeding", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "bleed", "physical", "attack", "ailment" }, },
["V2AvoidStunJewelCorrupted_"] = { type = "Corrupted", affix = "", "(20-25)% chance to Avoid being Stunned", statOrderKey = "1421", statOrder = { 1421 }, level = 1, group = "AvoidStun", weightKey = { "jewel", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["AfflictionNotableProdigiousDefense__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Prodigious Defence", statOrderKey = "6115", statOrder = { 6115 }, level = 1, group = "AfflictionNotableProdigiousDefense", weightKey = { "affliction_attack_damage_while_holding_a_shield", "affliction_chance_to_block", "default", }, weightVal = { 600, 750, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "damage", "attack" }, },
["AfflictionNotableAdvanceGuard"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Advance Guard", statOrderKey = "5918", statOrder = { 5918 }, level = 50, group = "AfflictionNotableAdvanceGuard", weightKey = { "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "speed" }, },
["AfflictionNotableGladiatorialCombat"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Gladiatorial Combat", statOrderKey = "6039", statOrder = { 6039 }, level = 68, group = "AfflictionNotableGladiatorialCombat", weightKey = { "default", }, weightVal = { 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "critical" }, },
["AfflictionNotableStrikeLeader_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Strike Leader", statOrderKey = "6170", statOrder = { 6170 }, level = 1, group = "AfflictionNotableStrikeLeader", weightKey = { "affliction_attack_damage_while_holding_a_shield", "affliction_chance_to_block", "default", }, weightVal = { 600, 750, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "damage", "attack" }, },
["AfflictionNotablePowerfulWard"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Powerful Ward", statOrderKey = "6105", statOrder = { 6105 }, level = 68, group = "AfflictionNotablePowerfulWard", weightKey = { "affliction_chance_to_block", "default", }, weightVal = { 141, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "power_charge" }, },
["AfflictionNotableEnduringWard_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Enduring Ward", statOrderKey = "6008", statOrder = { 6008 }, level = 68, group = "AfflictionNotableEnduringWard", weightKey = { "affliction_chance_to_block", "default", }, weightVal = { 141, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "endurance_charge" }, },
["AfflictionNotableGladiatorsFortitude"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Gladiator's Fortitude", statOrderKey = "6040", statOrder = { 6040 }, level = 68, group = "AfflictionNotableGladiatorsFortitude", weightKey = { "affliction_attack_damage_while_holding_a_shield", "affliction_maximum_life", "default", }, weightVal = { 113, 146, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "damage", "attack" }, },
["AfflictionNotablePreciseRetaliation_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Precise Retaliation", statOrderKey = "6109", statOrder = { 6109 }, level = 50, group = "AfflictionNotablePreciseRetaliation", weightKey = { "affliction_attack_damage_while_holding_a_shield", "affliction_critical_chance", "default", }, weightVal = { 300, 457, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "critical" }, },
["AfflictionNotableVeteranDefender"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Veteran Defender", statOrderKey = "6192", statOrder = { 6192 }, level = 1, group = "AfflictionNotableVeteranDefender", weightKey = { "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 600, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "defences", "elemental", "resistance", "attribute" }, },
["AfflictionNotableIronBreaker"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Iron Breaker", statOrderKey = "6066", statOrder = { 6066 }, level = 1, group = "AfflictionNotableIronBreaker", weightKey = { "affliction_physical_damage", "default", }, weightVal = { 464, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "damage", "physical" }, },
["AfflictionNotableDeepCuts"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Deep Cuts", statOrderKey = "5986", statOrder = { 5986 }, level = 75, group = "AfflictionNotableDeepCuts", weightKey = { "default", }, weightVal = { 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical", "attack" }, },
["AfflictionNotableMastertheFundamentals_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Master the Fundamentals", statOrderKey = "6083", statOrder = { 6083 }, level = 50, group = "AfflictionNotableMastertheFundamentals", weightKey = { "affliction_physical_damage", "default", }, weightVal = { 232, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "elemental_damage", "damage", "physical", "elemental", "resistance" }, },
["AfflictionNotableForceMultiplier"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Force Multiplier", statOrderKey = "6034", statOrder = { 6034 }, level = 50, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_physical_damage", "default", }, weightVal = { 232, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "damage", "physical" }, },
["AfflictionNotableFuriousAssault"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Furious Assault", statOrderKey = "6037", statOrder = { 6037 }, level = 1, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_physical_damage", "default", }, weightVal = { 464, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "caster_damage", "damage", "damage", "physical", "attack", "caster" }, },
["AfflictionNotableViciousSkewering"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Vicious Skewering", statOrderKey = "6195", statOrder = { 6195 }, level = 68, group = "AfflictionNotableViciousSkewering", weightKey = { "affliction_attack_damage_", "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 81, 141, 141, 151, 145, 151, 113, 117, 113, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "bleed", "physical", "attack", "ailment" }, },
["AfflictionNotableGrimOath"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Grim Oath", statOrderKey = "6044", statOrder = { 6044 }, level = 68, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_physical_damage", "affliction_chaos_damage", "default", }, weightVal = { 87, 97, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "chaos_damage", "damage", "physical", "chaos" }, },
["AfflictionNotableBattleHardened_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Battle-Hardened", statOrderKey = "5939", statOrder = { 5939 }, level = 50, group = "AfflictionNotableBattleHardened", weightKey = { "affliction_physical_damage", "affliction_armour", "affliction_evasion", "default", }, weightVal = { 232, 696, 658, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "evasion", "defences", "physical" }, },
["AfflictionNotableReplenishingPresence"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Replenishing Presence", statOrderKey = "6133", statOrder = { 6133 }, level = 50, group = "AfflictionNotableReplenishingPresence", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "default", }, weightVal = { 480, 480, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "aura" }, },
["AfflictionNotableMasterofCommand__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Master of Command", statOrderKey = "6079", statOrder = { 6079 }, level = 68, group = "AfflictionNotableMasterofCommand", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "default", }, weightVal = { 180, 180, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "aura" }, },
["AfflictionNotableFirstAmongEquals__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Spiteful Presence", statOrderKey = "6029", statOrder = { 6029 }, level = 1, group = "AfflictionNotableFirstAmongEquals", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "default", }, weightVal = { 960, 960, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "elemental", "cold", "aura", "ailment" }, },
["AfflictionNotablePurposefulHarbinger"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Purposeful Harbinger", statOrderKey = "6122", statOrder = { 6122 }, level = 75, group = "AfflictionNotablePurposefulHarbinger", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "affliction_damage_while_you_have_a_herald", "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 60, 60, 118, 158, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "aura" }, },
["AfflictionNotablePreciseCommander"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Destructive Aspect", statOrderKey = "6107", statOrder = { 6107 }, level = 68, group = "AfflictionNotablePreciseCommander", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "affliction_critical_chance", "default", }, weightVal = { 180, 180, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "aura" }, },
["AfflictionNotablePureCommander"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Electric Presence", statOrderKey = "6119", statOrder = { 6119 }, level = 68, group = "AfflictionNotablePureCommander", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "affliction_lightning_resistance", "affliction_cold_resistance", "affliction_fire_resistance", "default", }, weightVal = { 180, 180, 0, 0, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "elemental", "lightning", "aura", "ailment" }, },
["AfflictionNotableSummerCommander"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Mortifying Aspect", statOrderKey = "6174", statOrder = { 6174 }, level = 68, group = "AfflictionNotableSummerCommander", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "affliction_fire_resistance", "default", }, weightVal = { 180, 180, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "chaos", "resistance", "aura" }, },
["AfflictionNotableWinterCommander"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Frantic Aspect", statOrderKey = "6210", statOrder = { 6210 }, level = 68, group = "AfflictionNotableWinterCommander", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "affliction_cold_resistance", "default", }, weightVal = { 180, 180, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "speed", "aura" }, },
["AfflictionNotableGroundedCommander"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Introspection", statOrderKey = "6045", statOrder = { 6045 }, level = 68, group = "AfflictionNotableGroundedCommander", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "affliction_lightning_resistance", "default", }, weightVal = { 180, 180, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "aura" }, },
["AfflictionNotableStalwartCommander"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Volatile Presence", statOrderKey = "6163", statOrder = { 6163 }, level = 50, group = "AfflictionNotableStalwartCommander", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "affliction_armour", "affliction_evasion", "affliction_maximum_energy_shield", "default", }, weightVal = { 480, 480, 0, 0, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "elemental", "fire", "aura", "ailment" }, },
["AfflictionNotableVengefulCommander"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Righteous Path", statOrderKey = "6191", statOrder = { 6191 }, level = 1, group = "AfflictionNotableVengefulCommander", weightKey = { "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "affliction_elemental_damage", "affliction_lightning_damage", "affliction_cold_damage", "affliction_fire_damage", "default", }, weightVal = { 960, 960, 0, 0, 0, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "aura" }, },
["AfflictionNotableSkullbreaker"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Skullbreaker", statOrderKey = "6154", statOrder = { 6154 }, level = 68, group = "AfflictionNotableSkullbreaker", weightKey = { "affliction_critical_chance", "default", }, weightVal = { 171, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "critical" }, },
["AfflictionNotablePressurePoints__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Pressure Points", statOrderKey = "6110", statOrder = { 6110 }, level = 50, group = "AfflictionNotablePressurePoints", weightKey = { "affliction_critical_chance", "default", }, weightVal = { 457, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "critical" }, },
["AfflictionNotableOverwhelmingMalice"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Overwhelming Malice", statOrderKey = "6099", statOrder = { 6099 }, level = 68, group = "AfflictionNotableOverwhelmingMalice", weightKey = { "affliction_critical_chance", "affliction_chaos_damage", "default", }, weightVal = { 171, 97, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { }, },
["AfflictionNotableMagnifier"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Magnifier", statOrderKey = "6075", statOrder = { 6075 }, level = 1, group = "AfflictionNotableMagnifier", weightKey = { "affliction_critical_chance", "affliction_area_damage", "default", }, weightVal = { 914, 1959, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "critical" }, },
["AfflictionNotableSavageResponse"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Savage Response", statOrderKey = "6142", statOrder = { 6142 }, level = 50, group = "AfflictionNotableSavageResponse", weightKey = { "affliction_critical_chance", "default", }, weightVal = { 457, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "critical" }, },
["AfflictionNotableEyeoftheStorm"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Eye of the Storm", statOrderKey = "6018", statOrder = { 6018 }, level = 50, group = "AfflictionNotableEyeoftheStorm", weightKey = { "affliction_critical_chance", "affliction_fire_damage_over_time_multiplier", "affliction_effect_of_non-damaging_ailments", "default", }, weightVal = { 457, 366, 814, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "fire", "cold", "lightning", "critical", "ailment" }, },
["AfflictionNotableBasicsofPain"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Basics of Pain", statOrderKey = "5938", statOrder = { 5938 }, level = 1, group = "AfflictionNotableBasicsofPain", weightKey = { "affliction_critical_chance", "default", }, weightVal = { 914, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "critical" }, },
["AfflictionNotableQuickGetaway"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Quick Getaway", statOrderKey = "6124", statOrder = { 6124 }, level = 1, group = "AfflictionNotableQuickGetaway", weightKey = { "affliction_critical_chance", "default", }, weightVal = { 914, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "attack", "caster", "speed", "critical" }, },
["AfflictionNotableAssertDominance"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Assert Dominance", statOrderKey = "5936", statOrder = { 5936 }, level = 68, group = "AfflictionNotableAssertDominance", weightKey = { "affliction_area_damage", "default", }, weightVal = { 367, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { }, },
["AfflictionNotableVastPower"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Vast Power", statOrderKey = "6190", statOrder = { 6190 }, level = 50, group = "AfflictionNotableVastPower", weightKey = { "affliction_area_damage", "default", }, weightVal = { 980, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotablePowerfulAssault_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Powerful Assault", statOrderKey = "6104", statOrder = { 6104 }, level = 50, group = "AfflictionNotablePowerfulAssault", weightKey = { "affliction_area_damage", "default", }, weightVal = { 980, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableIntensity"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Intensity", statOrderKey = "6064", statOrder = { 6064 }, level = 68, group = "AfflictionNotableIntensity", weightKey = { "default", }, weightVal = { 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableTitanicSwings_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Titanic Swings", statOrderKey = "6182", statOrder = { 6182 }, level = 50, group = "AfflictionNotableTitanicSwings", weightKey = { "affliction_area_damage", "affliction_damage_with_two_handed_melee_weapons", "default", }, weightVal = { 980, 302, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableToweringThreat"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Towering Threat", statOrderKey = "6184", statOrder = { 6184 }, level = 68, group = "AfflictionNotableToweringThreat", weightKey = { "affliction_area_damage", "affliction_maximum_life", "default", }, weightVal = { 367, 146, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life" }, },
["AfflictionNotableAncestralEcho"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Ancestral Echo", statOrderKey = "5924", statOrder = { 5924 }, level = 1, group = "AfflictionNotableAncestralEcho", weightKey = { "affliction_totem_damage", "default", }, weightVal = { 1477, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "attack", "caster", "speed" }, },
["AfflictionNotableAncestralReach"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Ancestral Reach", statOrderKey = "5929", statOrder = { 5929 }, level = 1, group = "AfflictionNotableAncestralReach", weightKey = { "affliction_totem_damage", "default", }, weightVal = { 1477, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "speed" }, },
["AfflictionNotableAncestralMight"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Ancestral Might", statOrderKey = "5927", statOrder = { 5927 }, level = 50, group = "AfflictionNotableAncestralMight", weightKey = { "affliction_totem_damage", "default", }, weightVal = { 738, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableAncestralPreservation__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Ancestral Preservation", statOrderKey = "5928", statOrder = { 5928 }, level = 68, group = "AfflictionNotableAncestralPreservation", weightKey = { "affliction_totem_damage", "default", }, weightVal = { 277, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "chaos", "resistance" }, },
["AfflictionNotableSnaringSpirits"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Snaring Spirits", statOrderKey = "6158", statOrder = { 6158 }, level = 50, group = "AfflictionNotableSnaringSpirits", weightKey = { "affliction_totem_damage", "default", }, weightVal = { 738, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableSleeplessSentries"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Sleepless Sentries", statOrderKey = "6155", statOrder = { 6155 }, level = 68, group = "AfflictionNotableSleeplessSentries", weightKey = { "affliction_totem_damage", "default", }, weightVal = { 277, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { }, },
["AfflictionNotableAncestralGuidance_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Ancestral Guidance", statOrderKey = "5925", statOrder = { 5925 }, level = 50, group = "AfflictionNotableAncestralGuidance", weightKey = { "affliction_totem_damage", "default", }, weightVal = { 738, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "speed" }, },
["AfflictionNotableAncestralInspiration__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Ancestral Inspiration", statOrderKey = "5926", statOrder = { 5926 }, level = 68, group = "AfflictionNotableAncestralInspiration", weightKey = { "affliction_totem_damage", "affliction_spell_damage", "default", }, weightVal = { 277, 281, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster" }, },
["AfflictionNotableVitalFocus"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Vital Focus", statOrderKey = "6198", statOrder = { 6198 }, level = 1, group = "AfflictionNotableVitalFocus", weightKey = { "affliction_channelling_skill_damage", "default", }, weightVal = { 1811, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "damage" }, },
["AfflictionNotableRapidInfusion_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Rapid Infusion", statOrderKey = "6125", statOrder = { 6125 }, level = 68, group = "AfflictionNotableRapidInfusion", weightKey = { "affliction_channelling_skill_damage", "default", }, weightVal = { 340, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "speed" }, },
["AfflictionNotableUnwaveringFocus"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Unwavering Focus", statOrderKey = "6188", statOrder = { 6188 }, level = 50, group = "AfflictionNotableUnwaveringFocus", weightKey = { "affliction_channelling_skill_damage", "default", }, weightVal = { 906, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "damage" }, },
["AfflictionNotableEnduringFocus"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Enduring Focus", statOrderKey = "6007", statOrder = { 6007 }, level = 75, group = "AfflictionNotableEnduringFocus", weightKey = { "affliction_channelling_skill_damage", "default", }, weightVal = { 113, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "endurance_charge", "damage" }, },
["AfflictionNotablePreciseFocus"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Precise Focus", statOrderKey = "6108", statOrder = { 6108 }, level = 50, group = "AfflictionNotablePreciseFocus", weightKey = { "affliction_channelling_skill_damage", "default", }, weightVal = { 906, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "critical" }, },
["AfflictionNotableStoicFocus"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Stoic Focus", statOrderKey = "6165", statOrder = { 6165 }, level = 1, group = "AfflictionNotableStoicFocus", weightKey = { "affliction_channelling_skill_damage", "affliction_chance_to_block", "default", }, weightVal = { 1811, 750, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "damage" }, },
["AfflictionNotableHexBreaker"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Hex Breaker", statOrderKey = "6053", statOrder = { 6053 }, level = 75, group = "AfflictionNotableHexBreaker", weightKey = { "affliction_channelling_skill_damage", "default", }, weightVal = { 113, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "attack", "caster", "speed", "curse" }, },
["AfflictionNotableArcaneAdept_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Arcane Adept", statOrderKey = "5932", statOrder = { 5932 }, level = 68, group = "AfflictionNotableArcaneAdept", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 281, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "damage", "attack", "caster", "speed" }, },
["AfflictionNotableDistilledPerfection_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Distilled Perfection", statOrderKey = "5995", statOrder = { 5995 }, level = 1, group = "AfflictionNotableDistilledPerfection", weightKey = { "affliction_flask_duration", "affliction_life_and_mana_recovery_from_flasks", "default", }, weightVal = { 1079, 1778, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "flask", "resource", "life", "mana" }, },
["AfflictionNotableSpikedConcoction"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Spiked Concoction", statOrderKey = "6161", statOrder = { 6161 }, level = 50, group = "AfflictionNotableSpikedConcoction", weightKey = { "affliction_flask_duration", "affliction_life_and_mana_recovery_from_flasks", "default", }, weightVal = { 539, 889, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "flask", "attack", "caster", "speed" }, },
["AfflictionNotableFasting"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Fasting", statOrderKey = "6022", statOrder = { 6022 }, level = 50, group = "AfflictionNotableFasting", weightKey = { "affliction_flask_duration", "affliction_life_and_mana_recovery_from_flasks", "default", }, weightVal = { 539, 889, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "flask", "speed" }, },
["AfflictionNotableMendersWellspring__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Mender's Wellspring", statOrderKey = "6084", statOrder = { 6084 }, level = 68, group = "AfflictionNotableMendersWellspring", weightKey = { "affliction_flask_duration", "affliction_life_and_mana_recovery_from_flasks", "default", }, weightVal = { 202, 333, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "flask", "resource", "life" }, },
["AfflictionNotableSpecialReserve"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Special Reserve", statOrderKey = "6160", statOrder = { 6160 }, level = 1, group = "AfflictionNotableSpecialReserve", weightKey = { "affliction_flask_duration", "affliction_life_and_mana_recovery_from_flasks", "default", }, weightVal = { 1079, 1778, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "flask", "resource", "life", "damage" }, },
["AfflictionNotableNumbingElixir"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Numbing Elixir", statOrderKey = "6093", statOrder = { 6093 }, level = 68, group = "AfflictionNotableNumbingElixir", weightKey = { "affliction_flask_duration", "affliction_life_and_mana_recovery_from_flasks", "default", }, weightVal = { 202, 333, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "flask", "caster", "ailment", "curse" }, },
["AfflictionNotableMobMentality"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Mob Mentality", statOrderKey = "6087", statOrder = { 6087 }, level = 75, group = "AfflictionNotableMobMentality", weightKey = { "affliction_warcry_buff_effect", "default", }, weightVal = { 109, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "endurance_charge", "frenzy_charge", "power_charge", "damage", "attack" }, },
["AfflictionNotableCryWolf__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Cry Wolf", statOrderKey = "5977", statOrder = { 5977 }, level = 68, group = "AfflictionNotableCryWolf", weightKey = { "affliction_warcry_buff_effect", "default", }, weightVal = { 327, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableHauntingShout"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Haunting Shout", statOrderKey = "6048", statOrder = { 6048 }, level = 50, group = "AfflictionNotableHauntingShout", weightKey = { "affliction_warcry_buff_effect", "default", }, weightVal = { 873, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { }, },
["AfflictionNotableLeadByExample__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Lead By Example", statOrderKey = "6068", statOrder = { 6068 }, level = 1, group = "AfflictionNotableLeadByExample", weightKey = { "affliction_warcry_buff_effect", "default", }, weightVal = { 1745, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "attribute" }, },
["AfflictionNotableProvocateur"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Provocateur", statOrderKey = "6116", statOrder = { 6116 }, level = 50, group = "AfflictionNotableProvocateur", weightKey = { "affliction_warcry_buff_effect", "affliction_critical_chance", "default", }, weightVal = { 873, 457, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "critical" }, },
["AfflictionNotableWarningCall"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Warning Call", statOrderKey = "6202", statOrder = { 6202 }, level = 68, group = "AfflictionNotableWarningCall", weightKey = { "affliction_warcry_buff_effect", "default", }, weightVal = { 327, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "defences" }, },
["AfflictionNotableRattlingBellow"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Rattling Bellow", statOrderKey = "6126", statOrder = { 6126 }, level = 1, group = "AfflictionNotableRattlingBellow", weightKey = { "affliction_warcry_buff_effect", "default", }, weightVal = { 1745, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "attribute" }, },
["AfflictionNotableBloodscent"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Bloodscent", statOrderKey = "5947", statOrder = { 5947 }, level = 75, group = "AfflictionNotableBloodscent", weightKey = { "affliction_axe_and_sword_damage", "default", }, weightVal = { 47, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "attack" }, },
["AfflictionNotableRunThrough"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Run Through", statOrderKey = "6138", statOrder = { 6138 }, level = 68, group = "AfflictionNotableRunThrough", weightKey = { "affliction_axe_and_sword_damage", "default", }, weightVal = { 141, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "damage", "physical", "attack" }, },
["AfflictionNotableWoundAggravation____"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Wound Aggravation", statOrderKey = "6214", statOrder = { 6214 }, level = 1, group = "AfflictionNotableWoundAggravation", weightKey = { "affliction_axe_and_sword_damage", "affliction_physical_damage_over_time_multiplier", "default", }, weightVal = { 750, 686, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "damage", "physical", "attack" }, },
["AfflictionNotableOverlord"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Overlord", statOrderKey = "6097", statOrder = { 6097 }, level = 75, group = "AfflictionNotableOverlord", weightKey = { "affliction_mace_and_staff_damage", "default", }, weightVal = { 47, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableExpansiveMight"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Expansive Might", statOrderKey = "6013", statOrder = { 6013 }, level = 68, group = "AfflictionNotableExpansiveMight", weightKey = { "affliction_mace_and_staff_damage", "affliction_area_damage", "default", }, weightVal = { 141, 367, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableWeightAdvantage_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Weight Advantage", statOrderKey = "6204", statOrder = { 6204 }, level = 1, group = "AfflictionNotableWeightAdvantage", weightKey = { "affliction_mace_and_staff_damage", "default", }, weightVal = { 750, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "attribute" }, },
["AfflictionNotableWindup_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Wind-up", statOrderKey = "6209", statOrder = { 6209 }, level = 68, group = "AfflictionNotableWindup", weightKey = { "affliction_dagger_and_claw_damage", "default", }, weightVal = { 151, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "power_charge", "damage", "attack", "critical" }, },
["AfflictionNotableFanofBlades_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Fan of Blades", statOrderKey = "6020", statOrder = { 6020 }, level = 75, group = "AfflictionNotableFanofBlades", weightKey = { "affliction_dagger_and_claw_damage", "default", }, weightVal = { 51, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableDiseaseVector"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Disease Vector", statOrderKey = "5992", statOrder = { 5992 }, level = 50, group = "AfflictionNotableDiseaseVector", weightKey = { "affliction_dagger_and_claw_damage", "default", }, weightVal = { 404, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "poison", "damage", "chaos", "ailment" }, },
["AfflictionNotableArcingShot__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Arcing Shot", statOrderKey = "5935", statOrder = { 5935 }, level = 50, group = "AfflictionNotableArcingShot", weightKey = { "affliction_bow_damage", "default", }, weightVal = { 387, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "critical" }, },
["AfflictionNotableTemperedArrowheads"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Tempered Arrowheads", statOrderKey = "6179", statOrder = { 6179 }, level = 50, group = "AfflictionNotableTemperedArrowheads", weightKey = { "affliction_bow_damage", "default", }, weightVal = { 387, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "ailment" }, },
["AfflictionNotableBroadside_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Broadside", statOrderKey = "5953", statOrder = { 5953 }, level = 1, group = "AfflictionNotableBroadside", weightKey = { "affliction_bow_damage", "default", }, weightVal = { 774, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "attack" }, },
["AfflictionNotableExplosiveForce"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Explosive Force", statOrderKey = "6016", statOrder = { 6016 }, level = 68, group = "AfflictionNotableExplosiveForce", weightKey = { "affliction_wand_damage", "default", }, weightVal = { 151, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "chaos_damage", "damage", "physical", "chaos", "attack" }, },
["AfflictionNotableOpportunisticFusilade_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Opportunistic Fusilade", statOrderKey = "6096", statOrder = { 6096 }, level = 1, group = "AfflictionNotableOpportunisticFusilade", weightKey = { "affliction_wand_damage", "default", }, weightVal = { 807, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "critical" }, },
["AfflictionNotableStormsHand"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Storm's Hand", statOrderKey = "6168", statOrder = { 6168 }, level = 50, group = "AfflictionNotableStormsHand", weightKey = { "affliction_wand_damage", "default", }, weightVal = { 403, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "elemental_damage", "damage", "physical", "elemental", "lightning", "attack" }, },
["AfflictionNotableBattlefieldDominator"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Battlefield Dominator", statOrderKey = "5940", statOrder = { 5940 }, level = 1, group = "AfflictionNotableBattlefieldDominator", weightKey = { "affliction_damage_with_two_handed_melee_weapons", "default", }, weightVal = { 604, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableMartialMastery"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Martial Mastery", statOrderKey = "6076", statOrder = { 6076 }, level = 50, group = "AfflictionNotableMartialMastery", weightKey = { "affliction_damage_with_two_handed_melee_weapons", "default", }, weightVal = { 302, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "attack", "speed", "attribute" }, },
["AfflictionNotableSurefootedStriker_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Surefooted Striker", statOrderKey = "6176", statOrder = { 6176 }, level = 50, group = "AfflictionNotableSurefootedStriker", weightKey = { "affliction_damage_with_two_handed_melee_weapons", "default", }, weightVal = { 302, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "critical" }, },
["AfflictionNotableGracefulExecution_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Graceful Execution", statOrderKey = "6041", statOrder = { 6041 }, level = 1, group = "AfflictionNotableGracefulExecution", weightKey = { "affliction_damage_with_two_handed_melee_weapons", "default", }, weightVal = { 604, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "attack", "speed", "critical", "attribute" }, },
["AfflictionNotableBrutalInfamy"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Brutal Infamy", statOrderKey = "5955", statOrder = { 5955 }, level = 50, group = "AfflictionNotableBrutalInfamy", weightKey = { "affliction_damage_with_two_handed_melee_weapons", "default", }, weightVal = { 302, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableFearsomeWarrior"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Fearsome Warrior", statOrderKey = "6023", statOrder = { 6023 }, level = 68, group = "AfflictionNotableFearsomeWarrior", weightKey = { "affliction_damage_with_two_handed_melee_weapons", "default", }, weightVal = { 113, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableCombatRhythm"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Combat Rhythm", statOrderKey = "5969", statOrder = { 5969 }, level = 50, group = "AfflictionNotableCombatRhythm", weightKey = { "affliction_attack_damage_while_dual_wielding_", "default", }, weightVal = { 312, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "attack", "speed" }, },
["AfflictionNotableHitandRun"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Hit and Run", statOrderKey = "6055", statOrder = { 6055 }, level = 1, group = "AfflictionNotableHitandRun", weightKey = { "affliction_attack_damage_while_dual_wielding_", "affliction_chance_to_dodge_attacks", "default", }, weightVal = { 623, 1477, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableInsatiableKiller_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Insatiable Killer", statOrderKey = "6061", statOrder = { 6061 }, level = 50, group = "AfflictionNotableInsatiableKiller", weightKey = { "affliction_attack_damage_while_dual_wielding_", "default", }, weightVal = { 312, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "frenzy_charge", "attack", "speed" }, },
["AfflictionNotableMageBane__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Mage Bane", statOrderKey = "6073", statOrder = { 6073 }, level = 68, group = "AfflictionNotableMageBane", weightKey = { "affliction_attack_damage_while_dual_wielding_", "affliction_chance_to_block", "default", }, weightVal = { 117, 141, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "power_charge", "damage", "attack" }, },
["AfflictionNotableMartialMomentum"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Martial Momentum", statOrderKey = "6077", statOrder = { 6077 }, level = 50, group = "AfflictionNotableMartialMomentum", weightKey = { "affliction_attack_damage_while_dual_wielding_", "default", }, weightVal = { 312, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "speed" }, },
["AfflictionNotableDeadlyRepartee"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Deadly Repartee", statOrderKey = "5984", statOrder = { 5984 }, level = 1, group = "AfflictionNotableDeadlyRepartee", weightKey = { "affliction_attack_damage_while_dual_wielding_", "default", }, weightVal = { 623, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "damage", "attack", "critical" }, },
["AfflictionNotableQuickandDeadly_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Quick and Deadly", statOrderKey = "6123", statOrder = { 6123 }, level = 68, group = "AfflictionNotableQuickandDeadly", weightKey = { "affliction_attack_damage_while_dual_wielding_", "default", }, weightVal = { 117, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "speed" }, },
["AfflictionNotableSmitetheWeak"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Smite the Weak", statOrderKey = "6156", statOrder = { 6156 }, level = 1, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_attack_damage_", "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 432, 750, 750, 808, 774, 807, 604, 623, 600, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableHeavyHitter"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Heavy Hitter", statOrderKey = "6050", statOrder = { 6050 }, level = 50, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_attack_damage_", "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 216, 375, 375, 404, 387, 403, 302, 312, 300, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionNotableMartialProwess"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Martial Prowess", statOrderKey = "6078", statOrder = { 6078 }, level = 1, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_attack_damage_", "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 432, 750, 750, 808, 774, 807, 604, 623, 600, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack", "speed" }, },
["AfflictionNotableCalamitous"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Calamitous", statOrderKey = "5958", statOrder = { 5958 }, level = 50, group = "AfflictionNotableCalamitous", weightKey = { "affliction_attack_damage_", "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 216, 375, 375, 404, 387, 403, 302, 312, 300, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "fire", "cold", "lightning", "attack", "ailment" }, },
["AfflictionNotableDevastator"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Devastator", statOrderKey = "5989", statOrder = { 5989 }, level = 75, group = "AfflictionNotableDevastator", weightKey = { "affliction_attack_damage_", "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 27, 47, 47, 51, 48, 50, 38, 39, 38, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "damage", "physical", "attack" }, },
["AfflictionNotableFueltheFight"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Fuel the Fight", statOrderKey = "6036", statOrder = { 6036 }, level = 1, group = "AfflictionNotableFueltheFight", weightKey = { "affliction_attack_damage_", "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 432, 750, 750, 808, 774, 807, 604, 623, 600, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "attack", "speed" }, },
["AfflictionNotableDrivetheDestruction__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Drive the Destruction", statOrderKey = "6001", statOrder = { 6001 }, level = 1, group = "AfflictionNotableDrivetheDestruction", weightKey = { "affliction_attack_damage_", "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 432, 750, 750, 808, 774, 807, 604, 623, 600, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "damage", "attack" }, },
["AfflictionNotableFeedtheFury"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Feed the Fury", statOrderKey = "6026", statOrder = { 6026 }, level = 50, group = "AfflictionNotableFeedtheFury", weightKey = { "affliction_attack_damage_", "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 216, 375, 375, 404, 387, 403, 302, 312, 300, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "damage", "attack", "speed" }, },
["AfflictionNotableSealMender"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Seal Mender", statOrderKey = "6145", statOrder = { 6145 }, level = 75, group = "AfflictionNotableSealMender", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 94, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { }, },
["AfflictionNotableConjuredWall"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Conjured Wall", statOrderKey = "5972", statOrder = { 5972 }, level = 50, group = "AfflictionNotableConjuredWall", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 750, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "caster_damage", "damage", "caster" }, },
["AfflictionNotableArcaneHeroism_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Arcane Heroism", statOrderKey = "5933", statOrder = { 5933 }, level = 68, group = "AfflictionNotableArcaneHeroism", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 281, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { }, },
["AfflictionNotablePracticedCaster"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Practiced Caster", statOrderKey = "6106", statOrder = { 6106 }, level = 1, group = "AfflictionNotablePracticedCaster", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 1500, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "damage", "caster", "speed" }, },
["AfflictionNotableBurdenProjection"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Burden Projection", statOrderKey = "5956", statOrder = { 5956 }, level = 50, group = "AfflictionNotableBurdenProjection", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 750, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "damage", "caster", "speed" }, },
["AfflictionNotableThaumophage"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Thaumophage", statOrderKey = "6180", statOrder = { 6180 }, level = 50, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 750, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "caster_damage", "defences", "damage", "caster" }, },
["AfflictionNotableEssenceRush"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Essence Rush", statOrderKey = "6010", statOrder = { 6010 }, level = 50, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 750, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "caster_damage", "defences", "damage", "attack", "caster", "speed" }, },
["AfflictionNotableSapPsyche"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Sap Psyche", statOrderKey = "6141", statOrder = { 6141 }, level = 68, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 281, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "caster_damage", "resource", "mana", "defences", "damage", "caster" }, },
["AfflictionNotableSadist_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Sadist", statOrderKey = "6139", statOrder = { 6139 }, level = 68, group = "AfflictionNotableSadist", weightKey = { "affliction_elemental_damage", "affliction_lightning_damage", "affliction_cold_damage", "affliction_fire_damage", "default", }, weightVal = { 281, 136, 95, 89, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental" }, },
["AfflictionNotableCorrosiveElements"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Corrosive Elements", statOrderKey = "5975", statOrder = { 5975 }, level = 75, group = "AfflictionNotableCorrosiveElements", weightKey = { "affliction_elemental_damage", "affliction_lightning_damage", "affliction_cold_damage", "affliction_fire_damage", "default", }, weightVal = { 94, 45, 32, 30, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental" }, },
["AfflictionNotableDoryanisLesson_"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Doryani's Lesson", statOrderKey = "5998", statOrder = { 5998 }, level = 68, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_elemental_damage", "affliction_lightning_damage", "affliction_cold_damage", "affliction_fire_damage", "default", }, weightVal = { 281, 136, 95, 89, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "resource", "life", "damage", "elemental" }, },
["AfflictionNotableDisorientingDisplay____"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Disorienting Display", statOrderKey = "5993", statOrder = { 5993 }, level = 50, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_elemental_damage", "affliction_lightning_damage", "affliction_cold_damage", "affliction_fire_damage", "default", }, weightVal = { 750, 364, 253, 238, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental" }, },
["AfflictionNotablePrismaticHeart__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Prismatic Heart", statOrderKey = "6114", statOrder = { 6114 }, level = 1, group = "AfflictionNotablePrismaticHeart", weightKey = { "affliction_elemental_damage", "affliction_lightning_damage", "affliction_cold_damage", "affliction_fire_damage", "affliction_lightning_resistance", "affliction_cold_resistance", "affliction_fire_resistance", "default", }, weightVal = { 1500, 727, 505, 475, 1371, 1371, 1315, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "resistance" }, },
["AfflictionNotableWidespreadDestruction"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Widespread Destruction", statOrderKey = "6207", statOrder = { 6207 }, level = 1, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_elemental_damage", "affliction_lightning_damage", "affliction_cold_damage", "affliction_fire_damage", "default", }, weightVal = { 1500, 727, 505, 475, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental" }, },
["AfflictionNotableMasterofFire"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Master of Fire", statOrderKey = "6081", statOrder = { 6081 }, level = 75, group = "AfflictionNotableMasterofFire", weightKey = { "affliction_fire_damage", "affliction_fire_damage_over_time_multiplier", "default", }, weightVal = { 30, 46, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { }, },
["AfflictionNotableSmokingRemains"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Smoking Remains", statOrderKey = "6157", statOrder = { 6157 }, level = 50, group = "AfflictionNotableSmokingRemains", weightKey = { "affliction_fire_damage", "affliction_fire_damage_over_time_multiplier", "default", }, weightVal = { 238, 366, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "fire" }, },
["AfflictionNotableCremator"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Cremator", statOrderKey = "5976", statOrder = { 5976 }, level = 50, group = "AfflictionNotableCremator", weightKey = { "affliction_fire_damage", "affliction_fire_damage_over_time_multiplier", "default", }, weightVal = { 238, 366, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "fire" }, },
["AfflictionNotableSnowstorm"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Snowstorm", statOrderKey = "6159", statOrder = { 6159 }, level = 50, group = "AfflictionNotableSnowstorm", weightKey = { "affliction_lightning_damage", "affliction_cold_damage", "default", }, weightVal = { 364, 253, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "cold", "lightning" }, },
["AfflictionNotableStormDrinker___"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Storm Drinker", statOrderKey = "6166", statOrder = { 6166 }, level = 1, group = "AfflictionNotableStormDrinker", weightKey = { "affliction_lightning_damage", "default", }, weightVal = { 727, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "elemental_damage", "defences", "damage", "elemental", "lightning" }, },
["AfflictionNotableParalysis"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Paralysis", statOrderKey = "6100", statOrder = { 6100 }, level = 50, group = "AfflictionNotableParalysis", weightKey = { "affliction_lightning_damage", "default", }, weightVal = { 364, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "lightning" }, },
["AfflictionNotableSupercharge"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Supercharge", statOrderKey = "6175", statOrder = { 6175 }, level = 75, group = "AfflictionNotableSupercharge", weightKey = { "default", }, weightVal = { 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "lightning" }, },
["AfflictionNotableBlanketedSnow_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Blanketed Snow", statOrderKey = "5942", statOrder = { 5942 }, level = 68, group = "AfflictionNotableBlanketedSnow", weightKey = { "affliction_cold_damage", "default", }, weightVal = { 95, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "cold" }, },
["AfflictionNotableColdtotheCore"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Cold to the Core", statOrderKey = "5968", statOrder = { 5968 }, level = 68, group = "AfflictionNotableColdtotheCore", weightKey = { "affliction_cold_damage", "default", }, weightVal = { 95, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "cold" }, },
["AfflictionNotableColdBloodedKiller_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Cold-Blooded Killer", statOrderKey = "5966", statOrder = { 5966 }, level = 50, group = "AfflictionNotableColdBloodedKiller", weightKey = { "affliction_cold_damage", "affliction_cold_damage_over_time_multiplier", "default", }, weightVal = { 253, 390, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "resource", "life", "damage", "elemental", "cold" }, },
["AfflictionNotableTouchofCruelty_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Touch of Cruelty", statOrderKey = "6183", statOrder = { 6183 }, level = 1, group = "AfflictionNotableTouchofCruelty", weightKey = { "affliction_chaos_damage", "default", }, weightVal = { 519, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "damage", "chaos" }, },
["AfflictionNotableUnwaveringlyEvil"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Unwaveringly Evil", statOrderKey = "6189", statOrder = { 6189 }, level = 1, group = "AfflictionNotableUnwaveringlyEvil", weightKey = { "affliction_chaos_damage", "affliction_chaos_damage_over_time_multiplier", "default", }, weightVal = { 519, 696, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "damage", "chaos" }, },
["AfflictionNotableUnspeakableGifts"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Unspeakable Gifts", statOrderKey = "6186", statOrder = { 6186 }, level = 75, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_chaos_damage", "default", }, weightVal = { 32, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "damage", "chaos" }, },
["AfflictionNotableDarkIdeation"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Dark Ideation", statOrderKey = "5981", statOrder = { 5981 }, level = 68, group = "AfflictionNotableDarkIdeation", weightKey = { "affliction_chaos_damage", "affliction_chaos_damage_over_time_multiplier", "default", }, weightVal = { 97, 130, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "damage", "chaos" }, },
["AfflictionNotableUnholyGrace_"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Unholy Grace", statOrderKey = "6185", statOrder = { 6185 }, level = 1, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_chaos_damage", "default", }, weightVal = { 519, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "chaos_damage", "damage", "chaos", "attack", "caster", "speed" }, },
["AfflictionNotableWickedPall_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Wicked Pall", statOrderKey = "6206", statOrder = { 6206 }, level = 50, group = "AfflictionNotableWickedPall", weightKey = { "affliction_chaos_damage", "affliction_chaos_damage_over_time_multiplier", "default", }, weightVal = { 259, 348, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "damage", "chaos" }, },
["AfflictionNotableRenewal"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Renewal", statOrderKey = "6131", statOrder = { 6131 }, level = 50, group = "AfflictionNotableRenewal", weightKey = { "affliction_minion_damage", "affliction_minion_life", "default", }, weightVal = { 500, 716, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "damage", "minion" }, },
["AfflictionNotableRazeandPillage_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Raze and Pillage", statOrderKey = "6127", statOrder = { 6127 }, level = 68, group = "AfflictionNotableRazeandPillage", weightKey = { "affliction_minion_damage", "default", }, weightVal = { 188, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "elemental_damage", "bleed", "damage", "physical", "elemental", "fire", "minion", "ailment" }, },
["AfflictionNotableRottenClaws"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Rotten Claws", statOrderKey = "6137", statOrder = { 6137 }, level = 50, group = "AfflictionNotableRottenClaws", weightKey = { "affliction_minion_damage", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical", "attack", "minion" }, },
["AfflictionNotableCalltotheSlaughter"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Call to the Slaughter", statOrderKey = "5959", statOrder = { 5959 }, level = 1, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_minion_damage", "default", }, weightVal = { 1000, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "damage", "attack", "caster", "speed", "minion" }, },
["AfflictionNotableSkeletalAtrophy"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Skeletal Atrophy", statOrderKey = "6153", statOrder = { 6153 }, level = 68, group = "AfflictionNotableSkeletalAtrophy", weightKey = { "affliction_minion_damage", "default", }, weightVal = { 188, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "chaos_damage", "damage", "physical", "chaos", "minion" }, },
["AfflictionNotableHulkingCorpses"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Hulking Corpses", statOrderKey = "6059", statOrder = { 6059 }, level = 50, group = "AfflictionNotableHulkingCorpses", weightKey = { "affliction_minion_life", "default", }, weightVal = { 716, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "minion" }, },
["AfflictionNotableViciousBite"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Vicious Bite", statOrderKey = "6193", statOrder = { 6193 }, level = 75, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_minion_damage", "default", }, weightVal = { 63, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "minion", "critical" }, },
["AfflictionNotablePrimordialBond"] = { type = "Suffix", affix = "of Significance", "1 Added Passive Skill is Primordial Bond", statOrderKey = "6111", statOrder = { 6111 }, level = 68, group = "AfflictionNotableLargeSuffix", weightKey = { "affliction_minion_damage", "default", }, weightVal = { 188, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "damage", "minion" }, },
["AfflictionNotableBlowback"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Blowback", statOrderKey = "5948", statOrder = { 5948 }, level = 50, group = "AfflictionNotableBlowback", weightKey = { "affliction_fire_damage_over_time_multiplier", "default", }, weightVal = { 366, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "fire", "ailment" }, },
["AfflictionNotableFantheFlames_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Fan the Flames", statOrderKey = "6021", statOrder = { 6021 }, level = 68, group = "AfflictionNotableFantheFlames", weightKey = { "affliction_fire_damage_over_time_multiplier", "default", }, weightVal = { 137, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "fire", "ailment" }, },
["AfflictionNotableCookedAlive"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Cooked Alive", statOrderKey = "5974", statOrder = { 5974 }, level = 68, group = "AfflictionNotableCookedAlive", weightKey = { "affliction_fire_damage_over_time_multiplier", "default", }, weightVal = { 137, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "fire", "ailment" }, },
["AfflictionNotableBurningBright"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Burning Bright", statOrderKey = "5957", statOrder = { 5957 }, level = 50, group = "AfflictionNotableBurningBright", weightKey = { "affliction_fire_damage_over_time_multiplier", "affliction_fire_damage", "default", }, weightVal = { 366, 238, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "fire" }, },
["AfflictionNotableWrappedinFlame_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Wrapped in Flame", statOrderKey = "6215", statOrder = { 6215 }, level = 68, group = "AfflictionNotableWrappedinFlame", weightKey = { "affliction_fire_damage_over_time_multiplier", "default", }, weightVal = { 137, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "fire" }, },
["AfflictionNotableVividHues"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Vivid Hues", statOrderKey = "6199", statOrder = { 6199 }, level = 50, group = "AfflictionNotableVividHues", weightKey = { "affliction_physical_damage_over_time_multiplier", "default", }, weightVal = { 343, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "bleed", "resource", "life", "physical", "attack", "ailment" }, },
["AfflictionNotableRend"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Rend", statOrderKey = "6130", statOrder = { 6130 }, level = 50, group = "AfflictionNotableRend", weightKey = { "affliction_physical_damage_over_time_multiplier", "default", }, weightVal = { 343, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "bleed", "physical", "attack", "ailment" }, },
["AfflictionNotableDisorientingWounds"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Disorienting Wounds", statOrderKey = "5994", statOrder = { 5994 }, level = 1, group = "AfflictionNotableDisorientingWounds", weightKey = { "affliction_physical_damage_over_time_multiplier", "default", }, weightVal = { 686, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "bleed", "physical", "attack", "ailment" }, },
["AfflictionNotableCompoundInjury"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Compound Injury", statOrderKey = "5970", statOrder = { 5970 }, level = 50, group = "AfflictionNotableCompoundInjury", weightKey = { "affliction_physical_damage_over_time_multiplier", "default", }, weightVal = { 343, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "bleed", "physical", "attack", "ailment" }, },
["AfflictionNotableBloodArtist"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Blood Artist", statOrderKey = "5946", statOrder = { 5946 }, level = 75, group = "AfflictionNotableBloodArtist", weightKey = { "affliction_physical_damage_over_time_multiplier", "default", }, weightVal = { 129, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "bleed", "physical", "ailment" }, },
["AfflictionNotablePhlebotomist"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Phlebotomist", statOrderKey = "6103", statOrder = { 6103 }, level = 50, group = "AfflictionNotablePhlebotomist", weightKey = { "affliction_physical_damage_over_time_multiplier", "default", }, weightVal = { 343, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "bleed", "physical", "critical", "ailment" }, },
["AfflictionNotableSepticSpells"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Septic Spells", statOrderKey = "6149", statOrder = { 6149 }, level = 50, group = "AfflictionNotableSepticSpells", weightKey = { "affliction_chaos_damage_over_time_multiplier", "default", }, weightVal = { 348, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "chaos_damage", "poison", "damage", "chaos", "caster", "speed", "ailment" }, },
["AfflictionNotableLowTolerance"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Low Tolerance", statOrderKey = "6072", statOrder = { 6072 }, level = 68, group = "AfflictionNotableLowTolerance", weightKey = { "affliction_chaos_damage_over_time_multiplier", "default", }, weightVal = { 130, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "poison", "damage", "chaos", "ailment" }, },
["AfflictionNotableSteadyTorment"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Steady Torment", statOrderKey = "6164", statOrder = { 6164 }, level = 68, group = "AfflictionNotableSteadyTorment", weightKey = { "affliction_chaos_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "default", }, weightVal = { 130, 129, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "chaos_damage", "bleed", "poison", "damage", "physical", "chaos", "attack", "ailment", "ailment" }, },
["AfflictionNotableEternalSuffering"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Eternal Suffering", statOrderKey = "6011", statOrder = { 6011 }, level = 50, group = "AfflictionNotableEternalSuffering", weightKey = { "affliction_chaos_damage_over_time_multiplier", "default", }, weightVal = { 348, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "damage", "chaos" }, },
["AfflictionNotableEldritchInspiration"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Eldritch Inspiration", statOrderKey = "6002", statOrder = { 6002 }, level = 50, group = "AfflictionNotableEldritchInspiration", weightKey = { "affliction_chaos_damage_over_time_multiplier", "affliction_maximum_mana", "default", }, weightVal = { 348, 466, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "resource", "mana", "damage", "chaos" }, },
["AfflictionNotableWastingAffliction"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Wasting Affliction", statOrderKey = "6203", statOrder = { 6203 }, level = 68, group = "AfflictionNotableWastingAffliction", weightKey = { "affliction_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "default", }, weightVal = { 222, 178, 129, 137, 130, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "ailment" }, },
["AfflictionNotableHaemorrhage"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Haemorrhage", statOrderKey = "6047", statOrder = { 6047 }, level = 50, group = "AfflictionNotableHaemorrhage", weightKey = { "affliction_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "affliction_critical_chance", "default", }, weightVal = { 593, 475, 343, 366, 348, 457, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "critical", "ailment" }, },
["AfflictionNotableFlowofLife_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Flow of Life", statOrderKey = "6032", statOrder = { 6032 }, level = 68, group = "AfflictionNotableFlowofLife", weightKey = { "affliction_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "affliction_maximum_life", "default", }, weightVal = { 222, 178, 129, 137, 130, 146, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "damage" }, },
["AfflictionNotableExposureTherapy_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Exposure Therapy", statOrderKey = "6017", statOrder = { 6017 }, level = 1, group = "AfflictionNotableExposureTherapy", weightKey = { "affliction_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "affliction_chaos_resistance", "default", }, weightVal = { 1185, 950, 686, 733, 696, 2341, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "damage", "chaos", "resistance" }, },
["AfflictionNotableBrushwithDeath"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Brush with Death", statOrderKey = "5954", statOrder = { 5954 }, level = 68, group = "AfflictionNotableBrushwithDeath", weightKey = { "affliction_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "affliction_maximum_life", "affliction_maximum_energy_shield", "default", }, weightVal = { 222, 178, 129, 137, 130, 146, 189, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "resource", "life", "defences", "damage" }, },
["AfflictionNotableVileReinvigoration_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Vile Reinvigoration", statOrderKey = "6197", statOrder = { 6197 }, level = 50, group = "AfflictionNotableVileReinvigoration", weightKey = { "affliction_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "affliction_maximum_energy_shield", "default", }, weightVal = { 593, 475, 343, 366, 348, 505, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "defences", "damage" }, },
["AfflictionNotableCirclingOblivion"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Circling Oblivion", statOrderKey = "5964", statOrder = { 5964 }, level = 1, group = "AfflictionNotableCirclingOblivion", weightKey = { "affliction_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "default", }, weightVal = { 1185, 950, 686, 733, 696, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "ailment" }, },
["AfflictionNotableBrewedforPotency"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Brewed for Potency", statOrderKey = "5952", statOrder = { 5952 }, level = 1, group = "AfflictionNotableBrewedforPotency", weightKey = { "affliction_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "affliction_flask_duration", "default", }, weightVal = { 1185, 950, 686, 733, 696, 1079, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "flask", "resource", "life", "mana", "damage" }, },
["AfflictionNotableAstonishingAffliction"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Astonishing Affliction", statOrderKey = "5937", statOrder = { 5937 }, level = 1, group = "AfflictionNotableAstonishingAffliction", weightKey = { "affliction_effect_of_non-damaging_ailments", "default", }, weightVal = { 1627, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "ailment" }, },
["AfflictionNotableColdConduction__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Cold Conduction", statOrderKey = "5967", statOrder = { 5967 }, level = 68, group = "AfflictionNotableColdConduction", weightKey = { "affliction_effect_of_non-damaging_ailments", "default", }, weightVal = { 305, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "cold", "lightning", "ailment" }, },
["AfflictionNotableInspiredOppression"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Inspired Oppression", statOrderKey = "6062", statOrder = { 6062 }, level = 75, group = "AfflictionNotableInspiredOppression", weightKey = { "affliction_effect_of_non-damaging_ailments", "affliction_elemental_damage", "affliction_lightning_damage", "affliction_cold_damage", "default", }, weightVal = { 102, 94, 45, 32, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "resource", "mana", "damage", "elemental", "ailment" }, },
["AfflictionNotableChillingPresence"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Chilling Presence", statOrderKey = "5962", statOrder = { 5962 }, level = 75, group = "AfflictionNotableChillingPresence", weightKey = { "affliction_effect_of_non-damaging_ailments", "affliction_cold_damage_over_time_multiplier", "default", }, weightVal = { 102, 59, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "cold", "ailment" }, },
["AfflictionNotableDeepChill"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Deep Chill", statOrderKey = "5985", statOrder = { 5985 }, level = 1, group = "AfflictionNotableDeepChill", weightKey = { "affliction_effect_of_non-damaging_ailments", "affliction_cold_damage", "affliction_cold_damage_over_time_multiplier", "default", }, weightVal = { 1627, 505, 950, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "cold", "ailment" }, },
["AfflictionNotableBlastFreeze_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Blast-Freeze", statOrderKey = "5943", statOrder = { 5943 }, level = 68, group = "AfflictionNotableBlastFreeze", weightKey = { "affliction_cold_damage", "affliction_cold_damage_over_time_multiplier", "affliction_effect_of_non-damaging_ailments", "default", }, weightVal = { 95, 178, 305, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "cold", "ailment" }, },
["AfflictionNotableThunderstruck"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Thunderstruck", statOrderKey = "6181", statOrder = { 6181 }, level = 50, group = "AfflictionNotableThunderstruck", weightKey = { "affliction_lightning_damage", "default", }, weightVal = { 364, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "lightning", "critical" }, },
["AfflictionNotableStormrider"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Stormrider", statOrderKey = "6167", statOrder = { 6167 }, level = 68, group = "AfflictionNotableStormrider", weightKey = { "affliction_effect_of_non-damaging_ailments", "affliction_cold_damage", "affliction_lightning_damage", "default", }, weightVal = { 305, 95, 136, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "power_charge", "elemental_damage", "damage", "elemental", "cold", "lightning" }, },
["AfflictionNotableOvershock"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Overshock", statOrderKey = "6098", statOrder = { 6098 }, level = 50, group = "AfflictionNotableOvershock", weightKey = { "affliction_lightning_damage", "affliction_effect_of_non-damaging_ailments", "default", }, weightVal = { 364, 814, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "lightning", "ailment" }, },
["AfflictionNotableEvilEye"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Evil Eye", statOrderKey = "6012", statOrder = { 6012 }, level = 1, group = "AfflictionNotableEvilEye", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 706, 706, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "damage", "caster", "curse" }, },
["AfflictionNotableWhispersofDeath"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Inevitable Doom", statOrderKey = "6205", statOrder = { 6205 }, level = 1, group = "AfflictionNotableWhispersofDeath", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 706, 706, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "curse" }, },
["AfflictionNotableWardbreaker_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Forbidden Words", statOrderKey = "6201", statOrder = { 6201 }, level = 68, group = "AfflictionNotableWardbreaker", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 132, 132, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "caster", "curse" }, },
["AfflictionNotableDarkDiscourse"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Doedre's Spite", statOrderKey = "5980", statOrder = { 5980 }, level = 50, group = "AfflictionNotableDarkDiscourse", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 353, 353, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "curse" }, },
["AfflictionNotableVictimMaker"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Victim Maker", statOrderKey = "6196", statOrder = { 6196 }, level = 50, group = "AfflictionNotableVictimMaker", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 353, 353, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "speed", "curse" }, },
["AfflictionNotableMasterofFear"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Master of Fear", statOrderKey = "6080", statOrder = { 6080 }, level = 68, group = "AfflictionNotableMasterofFear", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 132, 132, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "curse" }, },
["AfflictionNotableWishforDeath_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Wish for Death", statOrderKey = "6212", statOrder = { 6212 }, level = 50, group = "AfflictionNotableWishforDeath", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 353, 353, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "curse" }, },
["AfflictionNotableLordofDrought_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Lord of Drought", statOrderKey = "6030", statOrder = { 6030 }, level = 50, group = "AfflictionNotableLordofDrought", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "affliction_fire_damage", "default", }, weightVal = { 353, 353, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "curse" }, },
["AfflictionNotableBlizzardCaller_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Blizzard Caller", statOrderKey = "6035", statOrder = { 6035 }, level = 50, group = "AfflictionNotableBlizzardCaller", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "affliction_cold_damage", "default", }, weightVal = { 353, 353, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "critical", "curse" }, },
["AfflictionNotableTempttheStorm"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Tempt the Storm", statOrderKey = "6070", statOrder = { 6070 }, level = 50, group = "AfflictionNotableTempttheStorm", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "affliction_lightning_damage", "default", }, weightVal = { 353, 353, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "speed", "curse" }, },
["AfflictionNotableMiseryEverlasting"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Misery Everlasting", statOrderKey = "5987", statOrder = { 5987 }, level = 50, group = "AfflictionNotableMiseryEverlasting", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "affliction_chaos_damage", "default", }, weightVal = { 353, 353, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "curse" }, },
["AfflictionNotableExploitWeakness_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Exploit Weakness", statOrderKey = "6051", statOrder = { 6051 }, level = 50, group = "AfflictionNotableExploitWeakness", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "affliction_physical_damage", "default", }, weightVal = { 353, 353, 0, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "physical_damage", "caster_damage", "damage", "physical", "caster", "curse" }, },
["AfflictionNotableHoundsMark"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Hound's Mark", statOrderKey = "6058", statOrder = { 6058 }, level = 1, group = "AfflictionNotableHoundsMark", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 706, 706, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "damage", "caster", "curse" }, },
["AfflictionNotableDoedresGluttony"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Doedre's Gluttony", statOrderKey = "5997", statOrder = { 5997 }, level = 50, group = "AfflictionNotableDoedresGluttony", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 353, 353, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "damage", "caster", "curse" }, },
["AfflictionNotableDoedresApathy____"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Doedre's Apathy", statOrderKey = "5996", statOrder = { 5996 }, level = 68, group = "AfflictionNotableDoedresApathy", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 132, 132, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "curse" }, },
["AfflictionNotableMasterOfTheMaelstrom_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Master of the Maelstrom", statOrderKey = "6082", statOrder = { 6082 }, level = 50, group = "AfflictionNotableMasterOfTheMaelstrom", weightKey = { "old_do_not_use_affliction_curse_effect", "affliction_curse_effect_small", "default", }, weightVal = { 353, 353, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "caster", "ailment", "curse" }, },
["AfflictionNotableHeraldry"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Heraldry", statOrderKey = "6052", statOrder = { 6052 }, level = 75, group = "AfflictionNotableHeraldry", weightKey = { "affliction_damage_while_you_have_a_herald", "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 118, 158, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { }, },
["AfflictionNotableEndbringer"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Endbringer", statOrderKey = "6005", statOrder = { 6005 }, level = 68, group = "AfflictionNotableEndbringer", weightKey = { "affliction_damage_while_you_have_a_herald", "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 353, 474, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableCultLeader_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Cult-Leader", statOrderKey = "5978", statOrder = { 5978 }, level = 1, group = "AfflictionNotableCultLeader", weightKey = { "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 2526, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "minion" }, },
["AfflictionNotableEmpoweredEnvoy_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Empowered Envoy", statOrderKey = "6004", statOrder = { 6004 }, level = 1, group = "AfflictionNotableEmpoweredEnvoy", weightKey = { "affliction_damage_while_you_have_a_herald", "default", }, weightVal = { 1882, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableDarkMessenger"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Dark Messenger", statOrderKey = "5982", statOrder = { 5982 }, level = 50, group = "AfflictionNotableDarkMessenger", weightKey = { "affliction_damage_while_you_have_a_herald", "default", }, weightVal = { 941, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableAgentofDestruction"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Agent of Destruction", statOrderKey = "5921", statOrder = { 5921 }, level = 1, group = "AfflictionNotableAgentofDestruction", weightKey = { "affliction_damage_while_you_have_a_herald", "default", }, weightVal = { 1882, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "fire", "cold", "lightning", "ailment" }, },
["AfflictionNotableLastingImpression_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Lasting Impression", statOrderKey = "6067", statOrder = { 6067 }, level = 68, group = "AfflictionNotableLastingImpression", weightKey = { "affliction_damage_while_you_have_a_herald", "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 353, 474, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableSelfFulfillingProphecy_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Self-Fulfilling Prophecy", statOrderKey = "6148", statOrder = { 6148 }, level = 68, group = "AfflictionNotableSelfFulfillingProphecy", weightKey = { "affliction_damage_while_you_have_a_herald", "default", }, weightVal = { 353, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "critical" }, },
["AfflictionNotableInvigoratingPortents"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Invigorating Portents", statOrderKey = "6065", statOrder = { 6065 }, level = 50, group = "AfflictionNotableInvigoratingPortents", weightKey = { "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 1263, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "speed", "minion" }, },
["AfflictionNotablePureAgony_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Pure Agony", statOrderKey = "6117", statOrder = { 6117 }, level = 68, group = "AfflictionNotablePureAgony", weightKey = { "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 474, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "minion" }, },
["AfflictionNotableDisciples_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Disciples", statOrderKey = "5990", statOrder = { 5990 }, level = 68, group = "AfflictionNotableDisciples", weightKey = { "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 474, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "speed", "minion" }, },
["AfflictionNotableDreadMarch_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Dread March", statOrderKey = "6000", statOrder = { 6000 }, level = 1, group = "AfflictionNotableDreadMarch", weightKey = { "affliction_minion_life", "default", }, weightVal = { 1433, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "chaos", "resistance", "speed", "minion" }, },
["AfflictionNotableBlessedRebirth"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Blessed Rebirth", statOrderKey = "5945", statOrder = { 5945 }, level = 68, group = "AfflictionNotableBlessedRebirth", weightKey = { "affliction_minion_life", "default", }, weightVal = { 269, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "minion" }, },
["AfflictionNotableLifefromDeath_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Life from Death", statOrderKey = "6069", statOrder = { 6069 }, level = 50, group = "AfflictionNotableLifefromDeath", weightKey = { "affliction_minion_life", "default", }, weightVal = { 716, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "minion" }, },
["AfflictionNotableFeastingFiends"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Feasting Fiends", statOrderKey = "6025", statOrder = { 6025 }, level = 1, group = "AfflictionNotableFeastingFiends", weightKey = { "affliction_minion_life", "affliction_minion_damage", "default", }, weightVal = { 1433, 1000, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "damage", "minion" }, },
["AfflictionNotableBodyguards"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Bodyguards", statOrderKey = "5949", statOrder = { 5949 }, level = 50, group = "AfflictionNotableBodyguards", weightKey = { "affliction_minion_life", "default", }, weightVal = { 716, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "minion" }, },
["AfflictionNotableFollowThrough_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Follow-Through", statOrderKey = "6033", statOrder = { 6033 }, level = 68, group = "AfflictionNotableFollowThrough", weightKey = { "affliction_projectile_damage", "default", }, weightVal = { 333, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableStreamlined"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Streamlined", statOrderKey = "6169", statOrder = { 6169 }, level = 1, group = "AfflictionNotableStreamlined", weightKey = { "affliction_projectile_damage", "default", }, weightVal = { 1778, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "speed" }, },
["AfflictionNotableShriekingBolts_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Shrieking Bolts", statOrderKey = "6152", statOrder = { 6152 }, level = 50, group = "AfflictionNotableShriekingBolts", weightKey = { "affliction_projectile_damage", "default", }, weightVal = { 889, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableEyetoEye"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Eye to Eye", statOrderKey = "6019", statOrder = { 6019 }, level = 50, group = "AfflictionNotableEyetoEye", weightKey = { "affliction_projectile_damage", "default", }, weightVal = { 889, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableRepeater"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Repeater", statOrderKey = "6132", statOrder = { 6132 }, level = 1, group = "AfflictionNotableRepeater", weightKey = { "affliction_projectile_damage", "default", }, weightVal = { 1778, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "damage", "attack", "caster", "speed" }, },
["AfflictionNotableAerodynamics"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Aerodynamics", statOrderKey = "5920", statOrder = { 5920 }, level = 68, group = "AfflictionNotableAerodynamics", weightKey = { "affliction_projectile_damage", "default", }, weightVal = { 333, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "speed" }, },
["AfflictionNotableChipAway"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Chip Away", statOrderKey = "5963", statOrder = { 5963 }, level = 50, group = "AfflictionNotableChipAway", weightKey = { "affliction_brand_damage", "default", }, weightVal = { 1171, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "speed" }, },
["AfflictionNotableSeekerRunes"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Seeker Runes", statOrderKey = "6147", statOrder = { 6147 }, level = 68, group = "AfflictionNotableSeekerRunes", weightKey = { "affliction_brand_damage", "default", }, weightVal = { 439, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "damage", "caster" }, },
["AfflictionNotableRemarkable"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Remarkable", statOrderKey = "6129", statOrder = { 6129 }, level = 68, group = "AfflictionNotableRemarkable", weightKey = { "affliction_brand_damage", "default", }, weightVal = { 439, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "speed" }, },
["AfflictionNotableBrandLoyalty"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Brand Loyalty", statOrderKey = "5951", statOrder = { 5951 }, level = 1, group = "AfflictionNotableBrandLoyalty", weightKey = { "affliction_brand_damage", "default", }, weightVal = { 2341, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster_damage", "damage", "caster" }, },
["AfflictionNotableHolyConquest"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Holy Conquest", statOrderKey = "6057", statOrder = { 6057 }, level = 50, group = "AfflictionNotableHolyConquest", weightKey = { "affliction_brand_damage", "default", }, weightVal = { 1171, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "speed" }, },
["AfflictionNotableGrandDesign_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Grand Design", statOrderKey = "6043", statOrder = { 6043 }, level = 68, group = "AfflictionNotableGrandDesign", weightKey = { "affliction_brand_damage", "default", }, weightVal = { 439, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "caster", "speed" }, },
["AfflictionNotableSetandForget_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Set and Forget", statOrderKey = "6150", statOrder = { 6150 }, level = 50, group = "AfflictionNotableSetandForget", weightKey = { "affliction_trap_and_mine_damage", "default", }, weightVal = { 980, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableExpertSabotage"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Expert Sabotage", statOrderKey = "6015", statOrder = { 6015 }, level = 50, group = "AfflictionNotableExpertSabotage", weightKey = { "affliction_trap_and_mine_damage", "default", }, weightVal = { 980, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "speed" }, },
["AfflictionNotableGuerillaTactics"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Guerilla Tactics", statOrderKey = "6046", statOrder = { 6046 }, level = 1, group = "AfflictionNotableGuerillaTactics", weightKey = { "affliction_trap_and_mine_damage", "default", }, weightVal = { 1959, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "speed" }, },
["AfflictionNotableExpendability"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Expendability", statOrderKey = "6014", statOrder = { 6014 }, level = 68, group = "AfflictionNotableExpendability", weightKey = { "affliction_trap_and_mine_damage", "default", }, weightVal = { 367, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { }, },
["AfflictionNotableArcanePyrotechnics"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Arcane Pyrotechnics", statOrderKey = "5934", statOrder = { 5934 }, level = 68, group = "AfflictionNotableArcanePyrotechnics", weightKey = { "affliction_trap_and_mine_damage", "default", }, weightVal = { 367, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableSurpriseSabotage_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Surprise Sabotage", statOrderKey = "6178", statOrder = { 6178 }, level = 50, group = "AfflictionNotableSurpriseSabotage", weightKey = { "affliction_trap_and_mine_damage", "default", }, weightVal = { 980, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "damage", "elemental", "critical" }, },
["AfflictionNotableCarefulHandling"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Careful Handling", statOrderKey = "5961", statOrder = { 5961 }, level = 68, group = "AfflictionNotableCarefulHandling", weightKey = { "affliction_trap_and_mine_damage", "affliction_maximum_mana", "affliction_maximum_life", "default", }, weightVal = { 367, 175, 146, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "mana", "damage" }, },
["AfflictionNotablePeakVigour"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Peak Vigour", statOrderKey = "6102", statOrder = { 6102 }, level = 1, group = "AfflictionNotablePeakVigour", weightKey = { "affliction_maximum_life", "affliction_flask_duration", "default", }, weightVal = { 780, 1079, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "flask", "resource", "life" }, },
["AfflictionNotableFettle"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Fettle", statOrderKey = "6027", statOrder = { 6027 }, level = 75, group = "AfflictionNotableFettle", weightKey = { "affliction_maximum_life", "default", }, weightVal = { 49, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life" }, },
["AfflictionNotableFeastofFlesh"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Feast of Flesh", statOrderKey = "6024", statOrder = { 6024 }, level = 68, group = "AfflictionNotableFeastofFlesh", weightKey = { "affliction_maximum_life", "default", }, weightVal = { 146, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "attack" }, },
["AfflictionNotableSublimeSensation_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Sublime Sensation", statOrderKey = "6173", statOrder = { 6173 }, level = 50, group = "AfflictionNotableSublimeSensation", weightKey = { "affliction_maximum_life", "affliction_maximum_energy_shield", "default", }, weightVal = { 390, 505, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "resource", "life", "defences" }, },
["AfflictionNotableSurgingVitality"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Surging Vitality", statOrderKey = "6177", statOrder = { 6177 }, level = 1, group = "AfflictionNotableSurgingVitality", weightKey = { "affliction_maximum_life", "default", }, weightVal = { 780, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life" }, },
["AfflictionNotablePeaceAmidstChaos"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Peace Amidst Chaos", statOrderKey = "6101", statOrder = { 6101 }, level = 50, group = "AfflictionNotablePeaceAmidstChaos", weightKey = { "affliction_maximum_life", "default", }, weightVal = { 390, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "resource", "life", "defences" }, },
["AfflictionNotableAdrenaline_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Adrenaline", statOrderKey = "5917", statOrder = { 5917 }, level = 68, group = "AfflictionNotableAdrenaline", weightKey = { "affliction_maximum_life", "default", }, weightVal = { 146, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life" }, },
["AfflictionNotableWallofMuscle_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Wall of Muscle", statOrderKey = "6200", statOrder = { 6200 }, level = 75, group = "AfflictionNotableWallofMuscle", weightKey = { "affliction_maximum_life", "default", }, weightVal = { 49, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "attribute" }, },
["AfflictionNotableMindfulness"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Mindfulness", statOrderKey = "6086", statOrder = { 6086 }, level = 50, group = "AfflictionNotableMindfulness", weightKey = { "affliction_maximum_mana", "default", }, weightVal = { 466, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana" }, },
["AfflictionNotableLiquidInspiration"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Liquid Inspiration", statOrderKey = "6071", statOrder = { 6071 }, level = 68, group = "AfflictionNotableLiquidInspiration", weightKey = { "affliction_maximum_mana", "affliction_flask_duration", "default", }, weightVal = { 175, 202, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "flask", "power_charge", "resource", "mana" }, },
["AfflictionNotableOpenness__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Openness", statOrderKey = "6095", statOrder = { 6095 }, level = 1, group = "AfflictionNotableOpenness", weightKey = { "affliction_maximum_mana", "default", }, weightVal = { 932, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana" }, },
["AfflictionNotableDaringIdeas"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Daring Ideas", statOrderKey = "5979", statOrder = { 5979 }, level = 50, group = "AfflictionNotableDaringIdeas", weightKey = { "affliction_maximum_mana", "default", }, weightVal = { 466, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "attack" }, },
["AfflictionNotableClarityofPurpose"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Clarity of Purpose", statOrderKey = "5965", statOrder = { 5965 }, level = 1, group = "AfflictionNotableClarityofPurpose", weightKey = { "affliction_maximum_mana", "default", }, weightVal = { 932, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana" }, },
["AfflictionNotableScintillatingIdea_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Scintillating Idea", statOrderKey = "6144", statOrder = { 6144 }, level = 50, group = "AfflictionNotableScintillatingIdea", weightKey = { "affliction_maximum_mana", "affliction_lightning_damage", "default", }, weightVal = { 466, 364, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental_damage", "resource", "mana", "damage", "elemental", "lightning" }, },
["AfflictionNotableHolisticHealth"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Holistic Health", statOrderKey = "6056", statOrder = { 6056 }, level = 68, group = "AfflictionNotableHolisticHealth", weightKey = { "affliction_maximum_mana", "affliction_maximum_life", "default", }, weightVal = { 175, 146, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "mana" }, },
["AfflictionNotableGenius"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Genius", statOrderKey = "6038", statOrder = { 6038 }, level = 75, group = "AfflictionNotableGenius", weightKey = { "affliction_maximum_mana", "default", }, weightVal = { 58, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "attribute" }, },
["AfflictionNotableImprovisor"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Improvisor", statOrderKey = "6060", statOrder = { 6060 }, level = 68, group = "AfflictionNotableImprovisor", weightKey = { "affliction_maximum_mana", "default", }, weightVal = { 175, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "attack" }, },
["AfflictionNotableStubbornStudent"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Stubborn Student", statOrderKey = "6171", statOrder = { 6171 }, level = 68, group = "AfflictionNotableStubbornStudent", weightKey = { "affliction_maximum_mana", "affliction_armour", "default", }, weightVal = { 175, 261, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "resource", "mana", "defences" }, },
["AfflictionNotableSavourtheMoment"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Savour the Moment", statOrderKey = "6143", statOrder = { 6143 }, level = 1, group = "AfflictionNotableSavourtheMoment", weightKey = { "affliction_maximum_energy_shield", "default", }, weightVal = { 1011, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "defences" }, },
["AfflictionNotableEnergyFromNaught"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Energy From Naught", statOrderKey = "6009", statOrder = { 6009 }, level = 50, group = "AfflictionNotableEnergyFromNaught", weightKey = { "affliction_maximum_energy_shield", "default", }, weightVal = { 505, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "defences" }, },
["AfflictionNotableWillShaper"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Will Shaper", statOrderKey = "6208", statOrder = { 6208 }, level = 75, group = "AfflictionNotableWillShaper", weightKey = { "affliction_maximum_energy_shield", "affliction_maximum_mana", "default", }, weightVal = { 63, 58, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "defences" }, },
["AfflictionNotableSpringBack_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Spring Back", statOrderKey = "6162", statOrder = { 6162 }, level = 1, group = "AfflictionNotableSpringBack", weightKey = { "affliction_maximum_energy_shield", "default", }, weightVal = { 1011, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "defences" }, },
["AfflictionNotableConservationofEnergy"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Conservation of Energy", statOrderKey = "5973", statOrder = { 5973 }, level = 68, group = "AfflictionNotableConservationofEnergy", weightKey = { "affliction_maximum_energy_shield", "default", }, weightVal = { 189, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "defences", "caster" }, },
["AfflictionNotableSelfControl"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Self-Control", statOrderKey = "5991", statOrder = { 5991 }, level = 50, group = "AfflictionNotableSelfControl", weightKey = { "affliction_maximum_energy_shield", "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "default", }, weightVal = { 505, 480, 480, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana" }, },
["AfflictionNotableHeartofIron"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Heart of Iron", statOrderKey = "6049", statOrder = { 6049 }, level = 68, group = "AfflictionNotableHeartofIron", weightKey = { "affliction_maximum_life", "affliction_armour", "default", }, weightVal = { 146, 261, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "defences" }, },
["AfflictionNotablePrismaticCarapace_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Prismatic Carapace", statOrderKey = "6112", statOrder = { 6112 }, level = 75, group = "AfflictionNotablePrismaticCarapace", weightKey = { "affliction_armour", "affliction_lightning_resistance", "affliction_cold_resistance", "affliction_fire_resistance", "default", }, weightVal = { 87, 86, 86, 82, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "defences", "elemental", "resistance" }, },
["AfflictionNotableMilitarism"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Militarism", statOrderKey = "6085", statOrder = { 6085 }, level = 50, group = "AfflictionNotableMilitarism", weightKey = { "affliction_armour", "default", }, weightVal = { 696, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "resource", "life", "defences" }, },
["AfflictionNotableSecondSkin"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Second Skin", statOrderKey = "6146", statOrder = { 6146 }, level = 1, group = "AfflictionNotableSecondSkin", weightKey = { "affliction_armour", "affliction_chance_to_block", "default", }, weightVal = { 1391, 750, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "block", "defences" }, },
["AfflictionNotableDragonHunter__"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Dragon Hunter", statOrderKey = "5999", statOrder = { 5999 }, level = 50, group = "AfflictionNotableDragonHunter", weightKey = { "affliction_armour", "affliction_fire_resistance", "default", }, weightVal = { 696, 658, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "defences", "elemental", "fire", "resistance" }, },
["AfflictionNotableEnduringComposure"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Enduring Composure", statOrderKey = "6006", statOrder = { 6006 }, level = 68, group = "AfflictionNotableEnduringComposure", weightKey = { "affliction_armour", "default", }, weightVal = { 261, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "endurance_charge", "defences" }, },
["AfflictionNotableUncompromising_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Uncompromising", statOrderKey = "5988", statOrder = { 5988 }, level = 50, group = "AfflictionNotableUncompromising", weightKey = { "affliction_armour", "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "default", }, weightVal = { 696, 480, 480, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana" }, },
["AfflictionNotablePrismaticDance____"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Prismatic Dance", statOrderKey = "6113", statOrder = { 6113 }, level = 75, group = "AfflictionNotablePrismaticDance", weightKey = { "affliction_evasion", "affliction_lightning_resistance", "affliction_cold_resistance", "affliction_fire_resistance", "default", }, weightVal = { 82, 86, 86, 82, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "evasion", "defences", "elemental", "resistance" }, },
["AfflictionNotableNaturalVigour_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Natural Vigour", statOrderKey = "6090", statOrder = { 6090 }, level = 50, group = "AfflictionNotableNaturalVigour", weightKey = { "affliction_evasion", "affliction_maximum_life", "default", }, weightVal = { 658, 390, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "evasion", "resource", "life", "defences" }, },
["AfflictionNotableUntouchable"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Untouchable", statOrderKey = "6187", statOrder = { 6187 }, level = 1, group = "AfflictionNotableUntouchable", weightKey = { "affliction_evasion", "affliction_chance_to_dodge_attacks", "default", }, weightVal = { 1315, 1477, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "evasion", "defences" }, },
["AfflictionNotableShiftingShadow"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Shifting Shadow", statOrderKey = "6151", statOrder = { 6151 }, level = 50, group = "AfflictionNotableShiftingShadow", weightKey = { "affliction_evasion", "default", }, weightVal = { 658, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "evasion", "defences", "attribute" }, },
["AfflictionNotableReadiness"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Readiness", statOrderKey = "6128", statOrder = { 6128 }, level = 1, group = "AfflictionNotableReadiness", weightKey = { "affliction_evasion", "default", }, weightVal = { 1315, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "evasion", "bleed", "defences", "physical", "attack", "ailment" }, },
["AfflictionNotableSublimeForm"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Sublime Form", statOrderKey = "6042", statOrder = { 6042 }, level = 50, group = "AfflictionNotableSublimeForm", weightKey = { "affliction_evasion", "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "default", }, weightVal = { 658, 480, 480, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "elemental", "resistance" }, },
["AfflictionNotableConfidentCombatant"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Confident Combatant", statOrderKey = "5971", statOrder = { 5971 }, level = 68, group = "AfflictionNotableConfidentCombatant", weightKey = { "default", }, weightVal = { 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage" }, },
["AfflictionNotableFlexibleSentry___"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Flexible Sentry", statOrderKey = "6031", statOrder = { 6031 }, level = 50, group = "AfflictionNotableFlexibleSentry", weightKey = { "affliction_chance_to_block", "affliction_lightning_resistance", "affliction_cold_resistance", "affliction_fire_resistance", "default", }, weightVal = { 375, 686, 686, 658, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "ailment" }, },
["AfflictionNotableViciousGuard_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Vicious Guard", statOrderKey = "6194", statOrder = { 6194 }, level = 1, group = "AfflictionNotableViciousGuard", weightKey = { "affliction_chance_to_block", "affliction_maximum_life", "default", }, weightVal = { 750, 780, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "resource", "life", "attack" }, },
["AfflictionNotableMysticalWard_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Mystical Ward", statOrderKey = "6089", statOrder = { 6089 }, level = 1, group = "AfflictionNotableMysticalWard", weightKey = { "affliction_chance_to_block", "affliction_maximum_energy_shield", "default", }, weightVal = { 750, 1011, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "energy_shield", "defences" }, },
["AfflictionNotableRoteReinforcement"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Rote Reinforcement", statOrderKey = "6136", statOrder = { 6136 }, level = 68, group = "AfflictionNotableRoteReinforcement", weightKey = { "affliction_chance_to_block", "affliction_maximum_life", "default", }, weightVal = { 141, 146, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "endurance_charge", "resource", "life" }, },
["AfflictionNotableMageHunter___"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Mage Hunter", statOrderKey = "6074", statOrder = { 6074 }, level = 68, group = "AfflictionNotableMageHunter", weightKey = { "affliction_chance_to_block", "affliction_spell_damage", "default", }, weightVal = { 141, 281, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "power_charge", "caster_damage", "damage", "caster" }, },
["AfflictionNotableRiotQueller"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Riot Queller", statOrderKey = "6134", statOrder = { 6134 }, level = 75, group = "AfflictionNotableRiotQueller", weightKey = { "affliction_chance_to_block", "affliction_attack_damage_while_holding_a_shield", "default", }, weightVal = { 47, 38, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block" }, },
["AfflictionNotableOnewiththeShield_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is One with the Shield", statOrderKey = "6094", statOrder = { 6094 }, level = 50, group = "AfflictionNotableOnewiththeShield", weightKey = { "affliction_chance_to_block", "default", }, weightVal = { 375, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "block", "resource", "life", "defences" }, },
["AfflictionNotableAerialist"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Aerialist", statOrderKey = "5919", statOrder = { 5919 }, level = 75, group = "AfflictionNotableAerialist", weightKey = { "affliction_chance_to_dodge_attacks", "default", }, weightVal = { 92, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "attribute" }, },
["AfflictionNotableElegantForm"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Elegant Form", statOrderKey = "6003", statOrder = { 6003 }, level = 1, group = "AfflictionNotableElegantForm", weightKey = { "affliction_chance_to_dodge_attacks", "default", }, weightVal = { 1477, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "ailment" }, },
["AfflictionNotableDartingMovements"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Darting Movements", statOrderKey = "5983", statOrder = { 5983 }, level = 1, group = "AfflictionNotableDartingMovements", weightKey = { "affliction_chance_to_dodge_attacks", "default", }, weightVal = { 1477, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "speed" }, },
["AfflictionNotableNoWitnesses"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is No Witnesses", statOrderKey = "6091", statOrder = { 6091 }, level = 75, group = "AfflictionNotableNoWitnesses", weightKey = { "default", }, weightVal = { 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { }, },
["AfflictionNotableMoltenOnesMark_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Molten One's Mark", statOrderKey = "6088", statOrder = { 6088 }, level = 68, group = "AfflictionNotableMoltenOnesMark", weightKey = { "affliction_fire_resistance", "default", }, weightVal = { 247, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "elemental", "fire", "resistance" }, },
["AfflictionNotableFireAttunement_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Fire Attunement", statOrderKey = "6028", statOrder = { 6028 }, level = 1, group = "AfflictionNotableFireAttunement", weightKey = { "affliction_fire_resistance", "default", }, weightVal = { 1315, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "fire", "ailment" }, },
["AfflictionNotablePureMight"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Pure Might", statOrderKey = "6121", statOrder = { 6121 }, level = 68, group = "AfflictionNotablePureMight", weightKey = { "affliction_fire_resistance", "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "default", }, weightVal = { 247, 180, 180, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "attribute" }, },
["AfflictionNotableBlacksmith_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Blacksmith", statOrderKey = "5941", statOrder = { 5941 }, level = 68, group = "AfflictionNotableBlacksmith", weightKey = { "affliction_fire_resistance", "affliction_armour", "default", }, weightVal = { 247, 261, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "armour", "resource", "life", "defences", "elemental", "fire", "resistance" }, },
["AfflictionNotableNonFlammable"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Non-Flammable", statOrderKey = "6092", statOrder = { 6092 }, level = 50, group = "AfflictionNotableNonFlammable", weightKey = { "affliction_fire_resistance", "default", }, weightVal = { 658, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "fire", "resistance", "ailment" }, },
["AfflictionNotableWinterProwler"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Winter Prowler", statOrderKey = "6211", statOrder = { 6211 }, level = 68, group = "AfflictionNotableWinterProwler", weightKey = { "affliction_cold_resistance", "default", }, weightVal = { 257, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "cold", "resistance", "speed" }, },
["AfflictionNotableHibernator"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Hibernator", statOrderKey = "6054", statOrder = { 6054 }, level = 50, group = "AfflictionNotableHibernator", weightKey = { "affliction_cold_resistance", "default", }, weightVal = { 686, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "cold", "ailment" }, },
["AfflictionNotablePureGuile"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Pure Guile", statOrderKey = "6120", statOrder = { 6120 }, level = 68, group = "AfflictionNotablePureGuile", weightKey = { "affliction_cold_resistance", "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "default", }, weightVal = { 257, 180, 180, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "attribute" }, },
["AfflictionNotableAlchemist"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Alchemist", statOrderKey = "5923", statOrder = { 5923 }, level = 1, group = "AfflictionNotableAlchemist", weightKey = { "affliction_cold_resistance", "default", }, weightVal = { 1371, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "flask", "elemental", "cold", "resistance", "attack", "caster", "speed" }, },
["AfflictionNotableAntifreeze"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Antifreeze", statOrderKey = "5930", statOrder = { 5930 }, level = 50, group = "AfflictionNotableAntifreeze", weightKey = { "affliction_cold_resistance", "default", }, weightVal = { 686, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "cold", "resistance", "ailment" }, },
["AfflictionNotableWizardry_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Wizardry", statOrderKey = "6213", statOrder = { 6213 }, level = 68, group = "AfflictionNotableWizardry", weightKey = { "affliction_lightning_resistance", "affliction_maximum_mana", "default", }, weightVal = { 257, 175, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "mana", "elemental", "lightning", "resistance" }, },
["AfflictionNotableCapacitor____"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Capacitor", statOrderKey = "5960", statOrder = { 5960 }, level = 50, group = "AfflictionNotableCapacitor", weightKey = { "affliction_lightning_resistance", "default", }, weightVal = { 686, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "lightning", "ailment" }, },
["AfflictionNotablePureAptitude"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Pure Aptitude", statOrderKey = "6118", statOrder = { 6118 }, level = 68, group = "AfflictionNotablePureAptitude", weightKey = { "affliction_lightning_resistance", "old_do_not_use_affliction_aura_effect", "affliction_reservation_efficiency_small", "default", }, weightVal = { 257, 180, 180, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "resource", "mana", "defences", "attribute" }, },
["AfflictionNotableSage_"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Sage", statOrderKey = "6140", statOrder = { 6140 }, level = 1, group = "AfflictionNotableSage", weightKey = { "affliction_lightning_resistance", "affliction_maximum_mana", "affliction_maximum_life", "default", }, weightVal = { 1371, 932, 780, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "mana", "elemental", "lightning", "resistance" }, },
["AfflictionNotableInsulated"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Insulated", statOrderKey = "6063", statOrder = { 6063 }, level = 50, group = "AfflictionNotableInsulated", weightKey = { "affliction_lightning_resistance", "default", }, weightVal = { 686, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "elemental", "lightning", "resistance", "ailment" }, },
["AfflictionNotableBornofChaos"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Born of Chaos", statOrderKey = "5950", statOrder = { 5950 }, level = 68, group = "AfflictionNotableBornofChaos", weightKey = { "affliction_chaos_resistance", "default", }, weightVal = { 439, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos", "resistance" }, },
["AfflictionNotableAntivenom"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Antivenom", statOrderKey = "5931", statOrder = { 5931 }, level = 50, group = "AfflictionNotableAntivenom", weightKey = { "affliction_chaos_resistance", "default", }, weightVal = { 1171, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "poison", "chaos", "resistance", "ailment" }, },
["AfflictionNotableRotResistant"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Rot-Resistant", statOrderKey = "6135", statOrder = { 6135 }, level = 68, group = "AfflictionNotableRotResistant", weightKey = { "affliction_chaos_resistance", "default", }, weightVal = { 439, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "energy_shield", "resource", "life", "mana", "defences", "chaos", "resistance" }, },
["AfflictionNotableBlessed"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Blessed", statOrderKey = "5944", statOrder = { 5944 }, level = 68, group = "AfflictionNotableBlessed", weightKey = { "affliction_chaos_resistance", "affliction_maximum_life", "affliction_maximum_mana", "default", }, weightVal = { 439, 146, 175, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "resource", "life", "mana", "chaos", "resistance" }, },
["AfflictionNotableStudentofDecay"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Student of Decay", statOrderKey = "6172", statOrder = { 6172 }, level = 50, group = "AfflictionNotableStudentofDecay", weightKey = { "affliction_chaos_resistance", "affliction_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "default", }, weightVal = { 1171, 593, 343, 366, 348, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "chaos_damage", "damage", "chaos", "resistance" }, },
["AfflictionNotableAggressiveDefence"] = { type = "Prefix", affix = "Notable", "1 Added Passive Skill is Aggressive Defence", statOrderKey = "5922", statOrder = { 5922 }, level = 1, group = "AfflictionNotableAggressiveDefence", weightKey = { "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "default", }, weightVal = { 750, 750, 750, 0 }, weightMultiplierKey = { "expansion_jewel_large", "expansion_jewel_medium", "has_affliction_notable", "expansion_jewel_small", "default", }, weightMultiplierVal = { 100, 100, 0, 100, 0 }, tags = { "has_affliction_notable", }, modTags = { "damage", "attack" }, },
["AfflictionJewelSmallPassivesGrantLife_"] = { type = "Prefix", affix = "Hale", "Added Small Passive Skills also grant: +(2-3) to Maximum Life", statOrderKey = "5905", statOrder = { 5905 }, level = 1, group = "AfflictionJewelSmallPassivesGrantLife", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLife2_"] = { type = "Prefix", affix = "Healthy", "Added Small Passive Skills also grant: +(4-7) to Maximum Life", statOrderKey = "5905", statOrder = { 5905 }, level = 68, group = "AfflictionJewelSmallPassivesGrantLife", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLife3"] = { type = "Prefix", affix = "Sanguine", "Added Small Passive Skills also grant: +(8-10) to Maximum Life", statOrderKey = "5905", statOrder = { 5905 }, level = 84, group = "AfflictionJewelSmallPassivesGrantLife", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantMana"] = { type = "Prefix", affix = "Beryl", "Added Small Passive Skills also grant: +(2-5) to Maximum Mana", statOrderKey = "5906", statOrder = { 5906 }, level = 1, group = "AfflictionJewelSmallPassivesGrantMana", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantMana2"] = { type = "Prefix", affix = "Cobalt", "Added Small Passive Skills also grant: +(6-8) to Maximum Mana", statOrderKey = "5906", statOrder = { 5906 }, level = 68, group = "AfflictionJewelSmallPassivesGrantMana", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantMana3"] = { type = "Prefix", affix = "Azure", "Added Small Passive Skills also grant: +(9-10) to Maximum Mana", statOrderKey = "5906", statOrder = { 5906 }, level = 84, group = "AfflictionJewelSmallPassivesGrantMana", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantES"] = { type = "Prefix", affix = "Shining", "Added Small Passive Skills also grant: +(4-5) to Maximum Energy Shield", statOrderKey = "5904", statOrder = { 5904 }, level = 1, group = "AfflictionJewelSmallPassivesGrantES", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "energy_shield", "defences" }, },
["AfflictionJewelSmallPassivesGrantES2"] = { type = "Prefix", affix = "Glimmering", "Added Small Passive Skills also grant: +(6-9) to Maximum Energy Shield", statOrderKey = "5904", statOrder = { 5904 }, level = 68, group = "AfflictionJewelSmallPassivesGrantES", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "energy_shield", "defences" }, },
["AfflictionJewelSmallPassivesGrantES3"] = { type = "Prefix", affix = "Glowing", "Added Small Passive Skills also grant: +(10-12) to Maximum Energy Shield", statOrderKey = "5904", statOrder = { 5904 }, level = 84, group = "AfflictionJewelSmallPassivesGrantES", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "energy_shield", "defences" }, },
["AfflictionJewelSmallPassivesGrantArmour"] = { type = "Prefix", affix = "Lacquered", "Added Small Passive Skills also grant: +(11-20) to Armour", statOrderKey = "5875", statOrder = { 5875 }, level = 1, group = "AfflictionJewelSmallPassivesGrantArmour", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "armour", "defences" }, },
["AfflictionJewelSmallPassivesGrantArmour2"] = { type = "Prefix", affix = "Studded", "Added Small Passive Skills also grant: +(21-30) to Armour", statOrderKey = "5875", statOrder = { 5875 }, level = 68, group = "AfflictionJewelSmallPassivesGrantArmour", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "armour", "defences" }, },
["AfflictionJewelSmallPassivesGrantArmour3_"] = { type = "Prefix", affix = "Ribbed", "Added Small Passive Skills also grant: +(31-40) to Armour", statOrderKey = "5875", statOrder = { 5875 }, level = 84, group = "AfflictionJewelSmallPassivesGrantArmour", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "armour", "defences" }, },
["AfflictionJewelSmallPassivesGrantEvasion"] = { type = "Prefix", affix = "Agile", "Added Small Passive Skills also grant: +(11-20) to Evasion", statOrderKey = "5899", statOrder = { 5899 }, level = 1, group = "AfflictionJewelSmallPassivesGrantEvasion", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "evasion", "defences" }, },
["AfflictionJewelSmallPassivesGrantEvasion2__"] = { type = "Prefix", affix = "Dancer's", "Added Small Passive Skills also grant: +(21-30) to Evasion", statOrderKey = "5899", statOrder = { 5899 }, level = 68, group = "AfflictionJewelSmallPassivesGrantEvasion", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "evasion", "defences" }, },
["AfflictionJewelSmallPassivesGrantEvasion3"] = { type = "Prefix", affix = "Acrobat's", "Added Small Passive Skills also grant: +(31-40) to Evasion", statOrderKey = "5899", statOrder = { 5899 }, level = 84, group = "AfflictionJewelSmallPassivesGrantEvasion", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "evasion", "defences" }, },
["AfflictionJewelSmallPassivesGrantStr"] = { type = "Suffix", affix = "of the Brute", "Added Small Passive Skills also grant: +(2-3) to Strength", statOrderKey = "5912", statOrder = { 5912 }, level = 1, group = "AfflictionJewelSmallPassivesGrantStr", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantStr2_"] = { type = "Suffix", affix = "of the Wrestler", "Added Small Passive Skills also grant: +(4-5) to Strength", statOrderKey = "5912", statOrder = { 5912 }, level = 68, group = "AfflictionJewelSmallPassivesGrantStr", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantStr3_"] = { type = "Suffix", affix = "of the Bear", "Added Small Passive Skills also grant: +(6-8) to Strength", statOrderKey = "5912", statOrder = { 5912 }, level = 84, group = "AfflictionJewelSmallPassivesGrantStr", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantDex_"] = { type = "Suffix", affix = "of the Mongoose", "Added Small Passive Skills also grant: +(2-3) to Dexterity", statOrderKey = "5897", statOrder = { 5897 }, level = 1, group = "AfflictionJewelSmallPassivesGrantDex", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantDex2"] = { type = "Suffix", affix = "of the Lynx", "Added Small Passive Skills also grant: +(4-5) to Dexterity", statOrderKey = "5897", statOrder = { 5897 }, level = 68, group = "AfflictionJewelSmallPassivesGrantDex", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantDex3_"] = { type = "Suffix", affix = "of the Fox", "Added Small Passive Skills also grant: +(6-8) to Dexterity", statOrderKey = "5897", statOrder = { 5897 }, level = 84, group = "AfflictionJewelSmallPassivesGrantDex", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantInt_"] = { type = "Suffix", affix = "of the Pupil", "Added Small Passive Skills also grant: +(2-3) to Intelligence", statOrderKey = "5901", statOrder = { 5901 }, level = 1, group = "AfflictionJewelSmallPassivesGrantInt", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantInt2_"] = { type = "Suffix", affix = "of the Student", "Added Small Passive Skills also grant: +(4-5) to Intelligence", statOrderKey = "5901", statOrder = { 5901 }, level = 68, group = "AfflictionJewelSmallPassivesGrantInt", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantInt3"] = { type = "Suffix", affix = "of the Prodigy", "Added Small Passive Skills also grant: +(6-8) to Intelligence", statOrderKey = "5901", statOrder = { 5901 }, level = 84, group = "AfflictionJewelSmallPassivesGrantInt", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantAttributes"] = { type = "Suffix", affix = "of the Cloud", "Added Small Passive Skills also grant: +2 to All Attributes", statOrderKey = "5874", statOrder = { 5874 }, level = 1, group = "AfflictionJewelSmallPassivesGrantAttributes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantAttributes2"] = { type = "Suffix", affix = "of the Sky", "Added Small Passive Skills also grant: +3 to All Attributes", statOrderKey = "5874", statOrder = { 5874 }, level = 68, group = "AfflictionJewelSmallPassivesGrantAttributes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantAttributes3"] = { type = "Suffix", affix = "of the Meteor", "Added Small Passive Skills also grant: +4 to All Attributes", statOrderKey = "5874", statOrder = { 5874 }, level = 84, group = "AfflictionJewelSmallPassivesGrantAttributes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantManaRegen"] = { type = "Suffix", affix = "of Excitement", "Added Small Passive Skills also grant: 4% increased Mana Regeneration Rate", statOrderKey = "5903", statOrder = { 5903 }, level = 1, group = "AfflictionJewelSmallPassivesGrantManaRegen", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantManaRegen2"] = { type = "Suffix", affix = "of Joy", "Added Small Passive Skills also grant: 5% increased Mana Regeneration Rate", statOrderKey = "5903", statOrder = { 5903 }, level = 68, group = "AfflictionJewelSmallPassivesGrantManaRegen", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantManaRegen3_"] = { type = "Suffix", affix = "of Elation", "Added Small Passive Skills also grant: 6% increased Mana Regeneration Rate", statOrderKey = "5903", statOrder = { 5903 }, level = 84, group = "AfflictionJewelSmallPassivesGrantManaRegen", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantLifeRegen___"] = { type = "Suffix", affix = "of the Newt", "Added Small Passive Skills also grant: Regenerate 0.1% of Life per Second", statOrderKey = "5910", statOrder = { 5910 }, level = 1, group = "AfflictionJewelSmallPassivesGrantLifeRegen", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLifeRegen2_"] = { type = "Suffix", affix = "of the Lizard", "Added Small Passive Skills also grant: Regenerate 0.15% of Life per Second", statOrderKey = "5910", statOrder = { 5910 }, level = 68, group = "AfflictionJewelSmallPassivesGrantLifeRegen", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLifeRegen3"] = { type = "Suffix", affix = "of the Flatworm", "Added Small Passive Skills also grant: Regenerate 0.2% of Life per Second", statOrderKey = "5910", statOrder = { 5910 }, level = 84, group = "AfflictionJewelSmallPassivesGrantLifeRegen", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantFireRes"] = { type = "Suffix", affix = "of the Whelpling", "Added Small Passive Skills also grant: +(2-3)% to Fire Resistance", statOrderKey = "5900", statOrder = { 5900 }, level = 1, group = "AfflictionJewelSmallPassivesGrantFireRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "resistance" }, },
["AfflictionJewelSmallPassivesGrantFireRes2"] = { type = "Suffix", affix = "of the Salamander", "Added Small Passive Skills also grant: +(4-5)% to Fire Resistance", statOrderKey = "5900", statOrder = { 5900 }, level = 68, group = "AfflictionJewelSmallPassivesGrantFireRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "resistance" }, },
["AfflictionJewelSmallPassivesGrantFireRes3"] = { type = "Suffix", affix = "of the Drake", "Added Small Passive Skills also grant: +(6-7)% to Fire Resistance", statOrderKey = "5900", statOrder = { 5900 }, level = 84, group = "AfflictionJewelSmallPassivesGrantFireRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "resistance" }, },
["AfflictionJewelSmallPassivesGrantColdRes_"] = { type = "Suffix", affix = "of the Inuit", "Added Small Passive Skills also grant: +(2-3)% to Cold Resistance", statOrderKey = "5893", statOrder = { 5893 }, level = 1, group = "AfflictionJewelSmallPassivesGrantColdRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "resistance" }, },
["AfflictionJewelSmallPassivesGrantColdRes2"] = { type = "Suffix", affix = "of the Seal", "Added Small Passive Skills also grant: +(4-5)% to Cold Resistance", statOrderKey = "5893", statOrder = { 5893 }, level = 68, group = "AfflictionJewelSmallPassivesGrantColdRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "resistance" }, },
["AfflictionJewelSmallPassivesGrantColdRes3"] = { type = "Suffix", affix = "of the Penguin", "Added Small Passive Skills also grant: +(6-7)% to Cold Resistance", statOrderKey = "5893", statOrder = { 5893 }, level = 84, group = "AfflictionJewelSmallPassivesGrantColdRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "resistance" }, },
["AfflictionJewelSmallPassivesGrantLightningRes"] = { type = "Suffix", affix = "of the Cloud", "Added Small Passive Skills also grant: +(2-3)% to Lightning Resistance", statOrderKey = "5902", statOrder = { 5902 }, level = 1, group = "AfflictionJewelSmallPassivesGrantLightningRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "resistance" }, },
["AfflictionJewelSmallPassivesGrantLightningRes2_"] = { type = "Suffix", affix = "of the Squall", "Added Small Passive Skills also grant: +(4-5)% to Lightning Resistance", statOrderKey = "5902", statOrder = { 5902 }, level = 68, group = "AfflictionJewelSmallPassivesGrantLightningRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "resistance" }, },
["AfflictionJewelSmallPassivesGrantLightningRes3"] = { type = "Suffix", affix = "of the Storm", "Added Small Passive Skills also grant: +(6-7)% to Lightning Resistance", statOrderKey = "5902", statOrder = { 5902 }, level = 84, group = "AfflictionJewelSmallPassivesGrantLightningRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "resistance" }, },
["AfflictionJewelSmallPassivesGrantElementalRes"] = { type = "Suffix", affix = "of the Crystal", "Added Small Passive Skills also grant: +2% to Elemental Resistance", statOrderKey = "5898", statOrder = { 5898 }, level = 1, group = "AfflictionJewelSmallPassivesGrantElementalRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "resistance" }, },
["AfflictionJewelSmallPassivesGrantElementalRes2"] = { type = "Suffix", affix = "of the Prism", "Added Small Passive Skills also grant: +3% to Elemental Resistance", statOrderKey = "5898", statOrder = { 5898 }, level = 68, group = "AfflictionJewelSmallPassivesGrantElementalRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "resistance" }, },
["AfflictionJewelSmallPassivesGrantElementalRes3"] = { type = "Suffix", affix = "of the Kaleidoscope", "Added Small Passive Skills also grant: +4% to Elemental Resistance", statOrderKey = "5898", statOrder = { 5898 }, level = 84, group = "AfflictionJewelSmallPassivesGrantElementalRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "resistance" }, },
["AfflictionJewelSmallPassivesGrantChaosRes"] = { type = "Suffix", affix = "of the Lost", "Added Small Passive Skills also grant: +3% to Chaos Resistance", statOrderKey = "5891", statOrder = { 5891 }, level = 1, group = "AfflictionJewelSmallPassivesGrantChaosRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "resistance" }, },
["AfflictionJewelSmallPassivesGrantChaosRes2"] = { type = "Suffix", affix = "of Banishment", "Added Small Passive Skills also grant: +4% to Chaos Resistance", statOrderKey = "5891", statOrder = { 5891 }, level = 68, group = "AfflictionJewelSmallPassivesGrantChaosRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "resistance" }, },
["AfflictionJewelSmallPassivesGrantChaosRes3"] = { type = "Suffix", affix = "of Eviction", "Added Small Passive Skills also grant: +5% to Chaos Resistance", statOrderKey = "5891", statOrder = { 5891 }, level = 84, group = "AfflictionJewelSmallPassivesGrantChaosRes", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "resistance" }, },
["AfflictionJewelSmallPassivesGrantDamage_"] = { type = "Prefix", affix = "Harmful", "Added Small Passive Skills also grant: 2% increased Damage", statOrderKey = "5896", statOrder = { 5896 }, level = 1, group = "AfflictionJewelSmallPassivesGrantDamage", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 500, 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesGrantDamage2_"] = { type = "Prefix", affix = "Hazardous", "Added Small Passive Skills also grant: 3% increased Damage", statOrderKey = "5896", statOrder = { 5896 }, level = 68, group = "AfflictionJewelSmallPassivesGrantDamage", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 400, 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesGrantDamage3"] = { type = "Prefix", affix = "Dangerous", "Added Small Passive Skills also grant: 4% increased Damage", statOrderKey = "5896", statOrder = { 5896 }, level = 84, group = "AfflictionJewelSmallPassivesGrantDamage", weightKey = { "expansion_jewel_large", "expansion_jewel_medium", "default", }, weightVal = { 300, 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesGrantLifeSmall"] = { type = "Prefix", affix = "Hale", "Added Small Passive Skills also grant: +(2-3) to Maximum Life", statOrderKey = "5905", statOrder = { 5905 }, level = 1, group = "AfflictionJewelSmallPassivesGrantLife", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLifeSmall2"] = { type = "Prefix", affix = "Healthy", "Added Small Passive Skills also grant: +(4-7) to Maximum Life", statOrderKey = "5905", statOrder = { 5905 }, level = 68, group = "AfflictionJewelSmallPassivesGrantLife", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLifeSmall3"] = { type = "Prefix", affix = "Sanguine", "Added Small Passive Skills also grant: +(8-10) to Maximum Life", statOrderKey = "5905", statOrder = { 5905 }, level = 73, group = "AfflictionJewelSmallPassivesGrantLife", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLifeSmall4"] = { type = "Prefix", affix = "Stalwart", "Added Small Passive Skills also grant: +(11-13) to Maximum Life", statOrderKey = "5905", statOrder = { 5905 }, level = 78, group = "AfflictionJewelSmallPassivesGrantLife", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLifeSmall5_"] = { type = "Prefix", affix = "Stout", "Added Small Passive Skills also grant: +(14-16) to Maximum Life", statOrderKey = "5905", statOrder = { 5905 }, level = 84, group = "AfflictionJewelSmallPassivesGrantLife", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantManaSmall"] = { type = "Prefix", affix = "Beryl", "Added Small Passive Skills also grant: +(2-5) to Maximum Mana", statOrderKey = "5906", statOrder = { 5906 }, level = 1, group = "AfflictionJewelSmallPassivesGrantMana", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantManaSmall2_"] = { type = "Prefix", affix = "Cobalt", "Added Small Passive Skills also grant: +(6-8) to Maximum Mana", statOrderKey = "5906", statOrder = { 5906 }, level = 68, group = "AfflictionJewelSmallPassivesGrantMana", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantManaSmall3"] = { type = "Prefix", affix = "Azure", "Added Small Passive Skills also grant: +(9-10) to Maximum Mana", statOrderKey = "5906", statOrder = { 5906 }, level = 73, group = "AfflictionJewelSmallPassivesGrantMana", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantManaSmall4_"] = { type = "Prefix", affix = "Sapphire", "Added Small Passive Skills also grant: +(11-13) to Maximum Mana", statOrderKey = "5906", statOrder = { 5906 }, level = 78, group = "AfflictionJewelSmallPassivesGrantMana", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantManaSmall5_"] = { type = "Prefix", affix = "Cerulean", "Added Small Passive Skills also grant: +(14-16) to Maximum Mana", statOrderKey = "5906", statOrder = { 5906 }, level = 84, group = "AfflictionJewelSmallPassivesGrantMana", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantESSmall"] = { type = "Prefix", affix = "Shining", "Added Small Passive Skills also grant: +(4-5) to Maximum Energy Shield", statOrderKey = "5904", statOrder = { 5904 }, level = 1, group = "AfflictionJewelSmallPassivesGrantES", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "energy_shield", "defences" }, },
["AfflictionJewelSmallPassivesGrantESSmall2"] = { type = "Prefix", affix = "Glimmering", "Added Small Passive Skills also grant: +(6-9) to Maximum Energy Shield", statOrderKey = "5904", statOrder = { 5904 }, level = 68, group = "AfflictionJewelSmallPassivesGrantES", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "energy_shield", "defences" }, },
["AfflictionJewelSmallPassivesGrantESSmall3_"] = { type = "Prefix", affix = "Glowing", "Added Small Passive Skills also grant: +(10-12) to Maximum Energy Shield", statOrderKey = "5904", statOrder = { 5904 }, level = 73, group = "AfflictionJewelSmallPassivesGrantES", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "energy_shield", "defences" }, },
["AfflictionJewelSmallPassivesGrantESSmall4"] = { type = "Prefix", affix = "Radiating", "Added Small Passive Skills also grant: +(13-16) to Maximum Energy Shield", statOrderKey = "5904", statOrder = { 5904 }, level = 78, group = "AfflictionJewelSmallPassivesGrantES", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "energy_shield", "defences" }, },
["AfflictionJewelSmallPassivesGrantESSmall5"] = { type = "Prefix", affix = "Pulsing", "Added Small Passive Skills also grant: +(17-20) to Maximum Energy Shield", statOrderKey = "5904", statOrder = { 5904 }, level = 84, group = "AfflictionJewelSmallPassivesGrantES", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "energy_shield", "defences" }, },
["AfflictionJewelSmallPassivesGrantArmourSmall__"] = { type = "Prefix", affix = "Lacquered", "Added Small Passive Skills also grant: +(11-20) to Armour", statOrderKey = "5875", statOrder = { 5875 }, level = 1, group = "AfflictionJewelSmallPassivesGrantArmour", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "armour", "defences" }, },
["AfflictionJewelSmallPassivesGrantArmourSmall2__"] = { type = "Prefix", affix = "Studded", "Added Small Passive Skills also grant: +(21-30) to Armour", statOrderKey = "5875", statOrder = { 5875 }, level = 68, group = "AfflictionJewelSmallPassivesGrantArmour", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "armour", "defences" }, },
["AfflictionJewelSmallPassivesGrantArmourSmall3"] = { type = "Prefix", affix = "Ribbed", "Added Small Passive Skills also grant: +(31-40) to Armour", statOrderKey = "5875", statOrder = { 5875 }, level = 73, group = "AfflictionJewelSmallPassivesGrantArmour", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "armour", "defences" }, },
["AfflictionJewelSmallPassivesGrantArmourSmall4___"] = { type = "Prefix", affix = "Fortified", "Added Small Passive Skills also grant: +(41-53) to Armour", statOrderKey = "5875", statOrder = { 5875 }, level = 78, group = "AfflictionJewelSmallPassivesGrantArmour", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "armour", "defences" }, },
["AfflictionJewelSmallPassivesGrantArmourSmall5"] = { type = "Prefix", affix = "Plated", "Added Small Passive Skills also grant: +(54-66) to Armour", statOrderKey = "5875", statOrder = { 5875 }, level = 84, group = "AfflictionJewelSmallPassivesGrantArmour", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "armour", "defences" }, },
["AfflictionJewelSmallPassivesGrantEvasionSmall"] = { type = "Prefix", affix = "Agile", "Added Small Passive Skills also grant: +(11-20) to Evasion", statOrderKey = "5899", statOrder = { 5899 }, level = 1, group = "AfflictionJewelSmallPassivesGrantEvasion", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "evasion", "defences" }, },
["AfflictionJewelSmallPassivesGrantEvasionSmall2_"] = { type = "Prefix", affix = "Dancer's", "Added Small Passive Skills also grant: +(21-30) to Evasion", statOrderKey = "5899", statOrder = { 5899 }, level = 68, group = "AfflictionJewelSmallPassivesGrantEvasion", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "evasion", "defences" }, },
["AfflictionJewelSmallPassivesGrantEvasionSmall3___"] = { type = "Prefix", affix = "Acrobat's", "Added Small Passive Skills also grant: +(31-40) to Evasion", statOrderKey = "5899", statOrder = { 5899 }, level = 73, group = "AfflictionJewelSmallPassivesGrantEvasion", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "evasion", "defences" }, },
["AfflictionJewelSmallPassivesGrantEvasionSmall4_"] = { type = "Prefix", affix = "Fleet", "Added Small Passive Skills also grant: +(41-53) to Evasion", statOrderKey = "5899", statOrder = { 5899 }, level = 78, group = "AfflictionJewelSmallPassivesGrantEvasion", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "evasion", "defences" }, },
["AfflictionJewelSmallPassivesGrantEvasionSmall5"] = { type = "Prefix", affix = "Blurred", "Added Small Passive Skills also grant: +(54-66) to Evasion", statOrderKey = "5899", statOrder = { 5899 }, level = 84, group = "AfflictionJewelSmallPassivesGrantEvasion", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "evasion", "defences" }, },
["AfflictionJewelSmallPassivesGrantStrSmall_"] = { type = "Suffix", affix = "of the Brute", "Added Small Passive Skills also grant: +(2-3) to Strength", statOrderKey = "5912", statOrder = { 5912 }, level = 1, group = "AfflictionJewelSmallPassivesGrantStr", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantStrSmall2"] = { type = "Suffix", affix = "of the Wrestler", "Added Small Passive Skills also grant: +(4-5) to Strength", statOrderKey = "5912", statOrder = { 5912 }, level = 68, group = "AfflictionJewelSmallPassivesGrantStr", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantStrSmall3"] = { type = "Suffix", affix = "of the Bear", "Added Small Passive Skills also grant: +(6-8) to Strength", statOrderKey = "5912", statOrder = { 5912 }, level = 73, group = "AfflictionJewelSmallPassivesGrantStr", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantStrSmall4_"] = { type = "Suffix", affix = "of the Lion", "Added Small Passive Skills also grant: +(9-11) to Strength", statOrderKey = "5912", statOrder = { 5912 }, level = 78, group = "AfflictionJewelSmallPassivesGrantStr", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantStrSmall5"] = { type = "Suffix", affix = "of the Gorilla", "Added Small Passive Skills also grant: +(12-14) to Strength", statOrderKey = "5912", statOrder = { 5912 }, level = 84, group = "AfflictionJewelSmallPassivesGrantStr", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantDexSmall_"] = { type = "Suffix", affix = "of the Mongoose", "Added Small Passive Skills also grant: +(2-3) to Dexterity", statOrderKey = "5897", statOrder = { 5897 }, level = 1, group = "AfflictionJewelSmallPassivesGrantDex", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantDexSmall2"] = { type = "Suffix", affix = "of the Lynx", "Added Small Passive Skills also grant: +(4-5) to Dexterity", statOrderKey = "5897", statOrder = { 5897 }, level = 68, group = "AfflictionJewelSmallPassivesGrantDex", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantDexSmall3"] = { type = "Suffix", affix = "of the Fox", "Added Small Passive Skills also grant: +(6-8) to Dexterity", statOrderKey = "5897", statOrder = { 5897 }, level = 73, group = "AfflictionJewelSmallPassivesGrantDex", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantDexSmall4_"] = { type = "Suffix", affix = "of the Falcon", "Added Small Passive Skills also grant: +(9-11) to Dexterity", statOrderKey = "5897", statOrder = { 5897 }, level = 78, group = "AfflictionJewelSmallPassivesGrantDex", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantDexSmall5"] = { type = "Suffix", affix = "of the Panther", "Added Small Passive Skills also grant: +(12-14) to Dexterity", statOrderKey = "5897", statOrder = { 5897 }, level = 84, group = "AfflictionJewelSmallPassivesGrantDex", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantIntSmall_"] = { type = "Suffix", affix = "of the Pupil", "Added Small Passive Skills also grant: +(2-3) to Intelligence", statOrderKey = "5901", statOrder = { 5901 }, level = 1, group = "AfflictionJewelSmallPassivesGrantInt", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantIntSmall2"] = { type = "Suffix", affix = "of the Student", "Added Small Passive Skills also grant: +(4-5) to Intelligence", statOrderKey = "5901", statOrder = { 5901 }, level = 68, group = "AfflictionJewelSmallPassivesGrantInt", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantIntSmall3______"] = { type = "Suffix", affix = "of the Prodigy", "Added Small Passive Skills also grant: +(6-8) to Intelligence", statOrderKey = "5901", statOrder = { 5901 }, level = 73, group = "AfflictionJewelSmallPassivesGrantInt", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantIntSmall4_"] = { type = "Suffix", affix = "of the Augur", "Added Small Passive Skills also grant: +(9-11) to Intelligence", statOrderKey = "5901", statOrder = { 5901 }, level = 78, group = "AfflictionJewelSmallPassivesGrantInt", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantIntSmall5"] = { type = "Suffix", affix = "of the Philosopher", "Added Small Passive Skills also grant: +(12-14) to Intelligence", statOrderKey = "5901", statOrder = { 5901 }, level = 84, group = "AfflictionJewelSmallPassivesGrantInt", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantAttributesSmall"] = { type = "Suffix", affix = "of the Cloud", "Added Small Passive Skills also grant: +2 to All Attributes", statOrderKey = "5874", statOrder = { 5874 }, level = 1, group = "AfflictionJewelSmallPassivesGrantAttributes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantAttributesSmall2"] = { type = "Suffix", affix = "of the Sky", "Added Small Passive Skills also grant: +3 to All Attributes", statOrderKey = "5874", statOrder = { 5874 }, level = 68, group = "AfflictionJewelSmallPassivesGrantAttributes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantAttributesSmall3_"] = { type = "Suffix", affix = "of the Meteor", "Added Small Passive Skills also grant: +4 to All Attributes", statOrderKey = "5874", statOrder = { 5874 }, level = 73, group = "AfflictionJewelSmallPassivesGrantAttributes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantAttributesSmall4"] = { type = "Suffix", affix = "of the Comet", "Added Small Passive Skills also grant: +5 to All Attributes", statOrderKey = "5874", statOrder = { 5874 }, level = 78, group = "AfflictionJewelSmallPassivesGrantAttributes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantAttributesSmall5"] = { type = "Suffix", affix = "of the Heavens", "Added Small Passive Skills also grant: +6 to All Attributes", statOrderKey = "5874", statOrder = { 5874 }, level = 84, group = "AfflictionJewelSmallPassivesGrantAttributes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attribute" }, },
["AfflictionJewelSmallPassivesGrantManaRegenSmall_"] = { type = "Suffix", affix = "of Excitement", "Added Small Passive Skills also grant: 4% increased Mana Regeneration Rate", statOrderKey = "5903", statOrder = { 5903 }, level = 1, group = "AfflictionJewelSmallPassivesGrantManaRegen", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantManaRegenSmall2"] = { type = "Suffix", affix = "of Joy", "Added Small Passive Skills also grant: 5% increased Mana Regeneration Rate", statOrderKey = "5903", statOrder = { 5903 }, level = 68, group = "AfflictionJewelSmallPassivesGrantManaRegen", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantManaRegenSmall3"] = { type = "Suffix", affix = "of Elation", "Added Small Passive Skills also grant: 6% increased Mana Regeneration Rate", statOrderKey = "5903", statOrder = { 5903 }, level = 73, group = "AfflictionJewelSmallPassivesGrantManaRegen", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantManaRegenSmall4"] = { type = "Suffix", affix = "of Bliss", "Added Small Passive Skills also grant: (7-8)% increased Mana Regeneration Rate", statOrderKey = "5903", statOrder = { 5903 }, level = 78, group = "AfflictionJewelSmallPassivesGrantManaRegen", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantManaRegenSmall5"] = { type = "Suffix", affix = "of Euphoria", "Added Small Passive Skills also grant: (9-10)% increased Mana Regeneration Rate", statOrderKey = "5903", statOrder = { 5903 }, level = 84, group = "AfflictionJewelSmallPassivesGrantManaRegen", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "mana" }, },
["AfflictionJewelSmallPassivesGrantLifeRegenSmall"] = { type = "Suffix", affix = "of the Newt", "Added Small Passive Skills also grant: Regenerate 0.1% of Life per Second", statOrderKey = "5910", statOrder = { 5910 }, level = 1, group = "AfflictionJewelSmallPassivesGrantLifeRegen", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLifeRegenSmall2_"] = { type = "Suffix", affix = "of the Lizard", "Added Small Passive Skills also grant: Regenerate 0.15% of Life per Second", statOrderKey = "5910", statOrder = { 5910 }, level = 68, group = "AfflictionJewelSmallPassivesGrantLifeRegen", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLifeRegenSmall3_"] = { type = "Suffix", affix = "of the Flatworm", "Added Small Passive Skills also grant: Regenerate 0.2% of Life per Second", statOrderKey = "5910", statOrder = { 5910 }, level = 73, group = "AfflictionJewelSmallPassivesGrantLifeRegen", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLifeRegenSmall4_"] = { type = "Suffix", affix = "of the Starfish", "Added Small Passive Skills also grant: Regenerate 0.25% of Life per Second", statOrderKey = "5910", statOrder = { 5910 }, level = 78, group = "AfflictionJewelSmallPassivesGrantLifeRegen", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantLifeRegenSmall5"] = { type = "Suffix", affix = "of the Hydra", "Added Small Passive Skills also grant: Regenerate 0.3% of Life per Second", statOrderKey = "5910", statOrder = { 5910 }, level = 84, group = "AfflictionJewelSmallPassivesGrantLifeRegen", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life" }, },
["AfflictionJewelSmallPassivesGrantFireResSmall"] = { type = "Suffix", affix = "of the Whelpling", "Added Small Passive Skills also grant: +(2-3)% to Fire Resistance", statOrderKey = "5900", statOrder = { 5900 }, level = 1, group = "AfflictionJewelSmallPassivesGrantFireRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "resistance" }, },
["AfflictionJewelSmallPassivesGrantFireResSmall2"] = { type = "Suffix", affix = "of the Salamander", "Added Small Passive Skills also grant: +(4-5)% to Fire Resistance", statOrderKey = "5900", statOrder = { 5900 }, level = 68, group = "AfflictionJewelSmallPassivesGrantFireRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "resistance" }, },
["AfflictionJewelSmallPassivesGrantFireResSmall3_"] = { type = "Suffix", affix = "of the Drake", "Added Small Passive Skills also grant: +(6-7)% to Fire Resistance", statOrderKey = "5900", statOrder = { 5900 }, level = 73, group = "AfflictionJewelSmallPassivesGrantFireRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "resistance" }, },
["AfflictionJewelSmallPassivesGrantFireResSmall4"] = { type = "Suffix", affix = "of the Kiln", "Added Small Passive Skills also grant: +(8-9)% to Fire Resistance", statOrderKey = "5900", statOrder = { 5900 }, level = 78, group = "AfflictionJewelSmallPassivesGrantFireRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "resistance" }, },
["AfflictionJewelSmallPassivesGrantFireResSmall5"] = { type = "Suffix", affix = "of the Furnace", "Added Small Passive Skills also grant: +(10-11)% to Fire Resistance", statOrderKey = "5900", statOrder = { 5900 }, level = 84, group = "AfflictionJewelSmallPassivesGrantFireRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "resistance" }, },
["AfflictionJewelSmallPassivesGrantColdResSmall"] = { type = "Suffix", affix = "of the Inuit", "Added Small Passive Skills also grant: +(2-3)% to Cold Resistance", statOrderKey = "5893", statOrder = { 5893 }, level = 1, group = "AfflictionJewelSmallPassivesGrantColdRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "resistance" }, },
["AfflictionJewelSmallPassivesGrantColdResSmall2"] = { type = "Suffix", affix = "of the Seal", "Added Small Passive Skills also grant: +(4-5)% to Cold Resistance", statOrderKey = "5893", statOrder = { 5893 }, level = 68, group = "AfflictionJewelSmallPassivesGrantColdRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "resistance" }, },
["AfflictionJewelSmallPassivesGrantColdResSmall3"] = { type = "Suffix", affix = "of the Penguin", "Added Small Passive Skills also grant: +(6-7)% to Cold Resistance", statOrderKey = "5893", statOrder = { 5893 }, level = 73, group = "AfflictionJewelSmallPassivesGrantColdRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "resistance" }, },
["AfflictionJewelSmallPassivesGrantColdResSmall4"] = { type = "Suffix", affix = "of the Yeti", "Added Small Passive Skills also grant: +(8-9)% to Cold Resistance", statOrderKey = "5893", statOrder = { 5893 }, level = 78, group = "AfflictionJewelSmallPassivesGrantColdRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "resistance" }, },
["AfflictionJewelSmallPassivesGrantColdResSmall5_"] = { type = "Suffix", affix = "of the Walrus", "Added Small Passive Skills also grant: +(10-11)% to Cold Resistance", statOrderKey = "5893", statOrder = { 5893 }, level = 84, group = "AfflictionJewelSmallPassivesGrantColdRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "resistance" }, },
["AfflictionJewelSmallPassivesGrantLightningResSmall"] = { type = "Suffix", affix = "of the Cloud", "Added Small Passive Skills also grant: +(2-3)% to Lightning Resistance", statOrderKey = "5902", statOrder = { 5902 }, level = 1, group = "AfflictionJewelSmallPassivesGrantLightningRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "resistance" }, },
["AfflictionJewelSmallPassivesGrantLightningResSmall2__"] = { type = "Suffix", affix = "of the Squall", "Added Small Passive Skills also grant: +(4-5)% to Lightning Resistance", statOrderKey = "5902", statOrder = { 5902 }, level = 68, group = "AfflictionJewelSmallPassivesGrantLightningRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "resistance" }, },
["AfflictionJewelSmallPassivesGrantLightningResSmall3"] = { type = "Suffix", affix = "of the Storm", "Added Small Passive Skills also grant: +(6-7)% to Lightning Resistance", statOrderKey = "5902", statOrder = { 5902 }, level = 73, group = "AfflictionJewelSmallPassivesGrantLightningRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "resistance" }, },
["AfflictionJewelSmallPassivesGrantLightningResSmall4_"] = { type = "Suffix", affix = "of the Thunderhead", "Added Small Passive Skills also grant: +(8-9)% to Lightning Resistance", statOrderKey = "5902", statOrder = { 5902 }, level = 78, group = "AfflictionJewelSmallPassivesGrantLightningRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "resistance" }, },
["AfflictionJewelSmallPassivesGrantLightningResSmall5"] = { type = "Suffix", affix = "of the Tempest", "Added Small Passive Skills also grant: +(10-11)% to Lightning Resistance", statOrderKey = "5902", statOrder = { 5902 }, level = 84, group = "AfflictionJewelSmallPassivesGrantLightningRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "resistance" }, },
["AfflictionJewelSmallPassivesGrantElementalResSmall"] = { type = "Suffix", affix = "of the Crystal", "Added Small Passive Skills also grant: +2% to Elemental Resistance", statOrderKey = "5898", statOrder = { 5898 }, level = 1, group = "AfflictionJewelSmallPassivesGrantElementalRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "resistance" }, },
["AfflictionJewelSmallPassivesGrantElementalResSmall2"] = { type = "Suffix", affix = "of the Prism", "Added Small Passive Skills also grant: +3% to Elemental Resistance", statOrderKey = "5898", statOrder = { 5898 }, level = 68, group = "AfflictionJewelSmallPassivesGrantElementalRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "resistance" }, },
["AfflictionJewelSmallPassivesGrantElementalResSmall3"] = { type = "Suffix", affix = "of the Kaleidoscope", "Added Small Passive Skills also grant: +4% to Elemental Resistance", statOrderKey = "5898", statOrder = { 5898 }, level = 73, group = "AfflictionJewelSmallPassivesGrantElementalRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "resistance" }, },
["AfflictionJewelSmallPassivesGrantElementalResSmall4"] = { type = "Suffix", affix = "of Variegation", "Added Small Passive Skills also grant: +5% to Elemental Resistance", statOrderKey = "5898", statOrder = { 5898 }, level = 78, group = "AfflictionJewelSmallPassivesGrantElementalRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "resistance" }, },
["AfflictionJewelSmallPassivesGrantElementalResSmall5"] = { type = "Suffix", affix = "of the Rainbow", "Added Small Passive Skills also grant: +6% to Elemental Resistance", statOrderKey = "5898", statOrder = { 5898 }, level = 84, group = "AfflictionJewelSmallPassivesGrantElementalRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "resistance" }, },
["AfflictionJewelSmallPassivesGrantChaosResSmall"] = { type = "Suffix", affix = "of the Lost", "Added Small Passive Skills also grant: +3% to Chaos Resistance", statOrderKey = "5891", statOrder = { 5891 }, level = 1, group = "AfflictionJewelSmallPassivesGrantChaosRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "resistance" }, },
["AfflictionJewelSmallPassivesGrantChaosResSmall2"] = { type = "Suffix", affix = "of Banishment", "Added Small Passive Skills also grant: +4% to Chaos Resistance", statOrderKey = "5891", statOrder = { 5891 }, level = 68, group = "AfflictionJewelSmallPassivesGrantChaosRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "resistance" }, },
["AfflictionJewelSmallPassivesGrantChaosResSmall3"] = { type = "Suffix", affix = "of Eviction", "Added Small Passive Skills also grant: +5% to Chaos Resistance", statOrderKey = "5891", statOrder = { 5891 }, level = 73, group = "AfflictionJewelSmallPassivesGrantChaosRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "resistance" }, },
["AfflictionJewelSmallPassivesGrantChaosResSmall4"] = { type = "Suffix", affix = "of Expulsion", "Added Small Passive Skills also grant: +6% to Chaos Resistance", statOrderKey = "5891", statOrder = { 5891 }, level = 78, group = "AfflictionJewelSmallPassivesGrantChaosRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "resistance" }, },
["AfflictionJewelSmallPassivesGrantChaosResSmall5"] = { type = "Suffix", affix = "of Exile", "Added Small Passive Skills also grant: +(7-8)% to Chaos Resistance", statOrderKey = "5891", statOrder = { 5891 }, level = 84, group = "AfflictionJewelSmallPassivesGrantChaosRes", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "resistance" }, },
["AfflictionJewelSmallPassivesGrantDamageSmall_"] = { type = "Prefix", affix = "Harmful", "Added Small Passive Skills also grant: 2% increased Damage", statOrderKey = "5896", statOrder = { 5896 }, level = 1, group = "AfflictionJewelSmallPassivesGrantDamage", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 500, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesGrantDamageSmall2_"] = { type = "Prefix", affix = "Hazardous", "Added Small Passive Skills also grant: 3% increased Damage", statOrderKey = "5896", statOrder = { 5896 }, level = 68, group = "AfflictionJewelSmallPassivesGrantDamage", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 400, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesGrantDamageSmall3_"] = { type = "Prefix", affix = "Dangerous", "Added Small Passive Skills also grant: 4% increased Damage", statOrderKey = "5896", statOrder = { 5896 }, level = 73, group = "AfflictionJewelSmallPassivesGrantDamage", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 300, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesGrantDamageSmall4_"] = { type = "Prefix", affix = "Destructive", "Added Small Passive Skills also grant: 5% increased Damage", statOrderKey = "5896", statOrder = { 5896 }, level = 78, group = "AfflictionJewelSmallPassivesGrantDamage", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 200, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesGrantDamageSmall5"] = { type = "Prefix", affix = "Deadly", "Added Small Passive Skills also grant: 6% increased Damage", statOrderKey = "5896", statOrder = { 5896 }, level = 84, group = "AfflictionJewelSmallPassivesGrantDamage", weightKey = { "expansion_jewel_small", "default", }, weightVal = { 100, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesHaveIncreasedEffect"] = { type = "Prefix", affix = "Potent", "Added Small Passive Skills have 25% increased Effect", statOrderKey = "5916", statOrder = { 5916 }, level = 1, group = "AfflictionJewelSmallPassivesHaveIncreasedEffect", weightKey = { "default", }, weightVal = { 500 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["AfflictionJewelSmallPassivesHaveIncreasedEffect2"] = { type = "Prefix", affix = "Powerful", "Added Small Passive Skills have 35% increased Effect", statOrderKey = "5916", statOrder = { 5916 }, level = 84, group = "AfflictionJewelSmallPassivesHaveIncreasedEffect", weightKey = { "default", }, weightVal = { 300 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["AfflictionJewelSmallPassivesGrantAttackSpeed"] = { type = "Suffix", affix = "of Skill", "Added Small Passive Skills also grant: 1% increased Attack Speed", statOrderKey = "5884", statOrder = { 5884 }, level = 1, group = "AfflictionJewelSmallPassivesGrantAttackSpeed", weightKey = { "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "affliction_attack_damage_", "default", }, weightVal = { 350, 350, 350, 350, 350, 350, 350, 350, 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "speed" }, },
["AfflictionJewelSmallPassivesGrantAttackSpeed2_"] = { type = "Suffix", affix = "of Ease", "Added Small Passive Skills also grant: 2% increased Attack Speed", statOrderKey = "5884", statOrder = { 5884 }, level = 68, group = "AfflictionJewelSmallPassivesGrantAttackSpeed", weightKey = { "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "affliction_attack_damage_", "default", }, weightVal = { 350, 350, 350, 350, 350, 350, 350, 350, 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "speed" }, },
["AfflictionJewelSmallPassivesGrantAttackSpeed3__"] = { type = "Suffix", affix = "of Mastery", "Added Small Passive Skills also grant: 3% increased Attack Speed", statOrderKey = "5884", statOrder = { 5884 }, level = 84, group = "AfflictionJewelSmallPassivesGrantAttackSpeed", weightKey = { "affliction_axe_and_sword_damage", "affliction_mace_and_staff_damage", "affliction_dagger_and_claw_damage", "affliction_bow_damage", "affliction_wand_damage", "affliction_damage_with_two_handed_melee_weapons", "affliction_attack_damage_while_dual_wielding_", "affliction_attack_damage_while_holding_a_shield", "affliction_attack_damage_", "default", }, weightVal = { 250, 250, 250, 250, 250, 250, 250, 250, 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "speed" }, },
["AfflictionJewelSmallPassivesGrantCastSpeed"] = { type = "Suffix", affix = "of Talent", "Added Small Passive Skills also grant: 1% increased Cast Speed", statOrderKey = "5886", statOrder = { 5886 }, level = 1, group = "AfflictionJewelSmallPassivesGrantCastSpeed", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantCastSpeed2"] = { type = "Suffix", affix = "of Nimbleness", "Added Small Passive Skills also grant: 2% increased Cast Speed", statOrderKey = "5886", statOrder = { 5886 }, level = 68, group = "AfflictionJewelSmallPassivesGrantCastSpeed", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantCastSpeed3_"] = { type = "Suffix", affix = "of Expertise", "Added Small Passive Skills also grant: 3% increased Cast Speed", statOrderKey = "5886", statOrder = { 5886 }, level = 84, group = "AfflictionJewelSmallPassivesGrantCastSpeed", weightKey = { "affliction_spell_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantDamageOverTime"] = { type = "Suffix", affix = "of Decline", "Added Small Passive Skills also grant: 1% increased Damage over Time", statOrderKey = "5895", statOrder = { 5895 }, level = 1, group = "AfflictionJewelSmallPassivesGrantDamageOverTime", weightKey = { "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_damage_over_time_multiplier", "default", }, weightVal = { 350, 350, 350, 350, 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesGrantDamageOverTime2"] = { type = "Suffix", affix = "of Degeneration", "Added Small Passive Skills also grant: 2% increased Damage over Time", statOrderKey = "5895", statOrder = { 5895 }, level = 68, group = "AfflictionJewelSmallPassivesGrantDamageOverTime", weightKey = { "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_damage_over_time_multiplier", "default", }, weightVal = { 350, 350, 350, 350, 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesGrantDamageOverTime3"] = { type = "Suffix", affix = "of Disintegration", "Added Small Passive Skills also grant: 3% increased Damage over Time", statOrderKey = "5895", statOrder = { 5895 }, level = 84, group = "AfflictionJewelSmallPassivesGrantDamageOverTime", weightKey = { "affliction_fire_damage_over_time_multiplier", "affliction_chaos_damage_over_time_multiplier", "affliction_physical_damage_over_time_multiplier", "affliction_cold_damage_over_time_multiplier", "affliction_damage_over_time_multiplier", "default", }, weightVal = { 250, 250, 250, 250, 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage" }, },
["AfflictionJewelSmallPassivesGrantElementalAilmentDuration_"] = { type = "Suffix", affix = "of Tumult", "Added Small Passive Skills also grant: 3% increased Duration of Elemental Ailments on Enemies", statOrderKey = "5888", statOrder = { 5888 }, level = 1, group = "AfflictionJewelSmallPassivesGrantElementalAilmentDuration", weightKey = { "affliction_effect_of_non-damaging_ailments", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "cold", "lightning", "ailment" }, },
["AfflictionJewelSmallPassivesGrantElementalAilmentDuration2"] = { type = "Suffix", affix = "of Turbulence", "Added Small Passive Skills also grant: 4% increased Duration of Elemental Ailments on Enemies", statOrderKey = "5888", statOrder = { 5888 }, level = 68, group = "AfflictionJewelSmallPassivesGrantElementalAilmentDuration", weightKey = { "affliction_effect_of_non-damaging_ailments", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "cold", "lightning", "ailment" }, },
["AfflictionJewelSmallPassivesGrantElementalAilmentDuration3"] = { type = "Suffix", affix = "of Disturbance", "Added Small Passive Skills also grant: 5% increased Duration of Elemental Ailments on Enemies", statOrderKey = "5888", statOrder = { 5888 }, level = 84, group = "AfflictionJewelSmallPassivesGrantElementalAilmentDuration", weightKey = { "affliction_effect_of_non-damaging_ailments", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "cold", "lightning", "ailment" }, },
["AfflictionJewelSmallPassivesGrantAuraAreaOfEffect__"] = { type = "Suffix", affix = "of Outreach", "Added Small Passive Skills also grant: 2% increased Area of Effect of Aura Skills", statOrderKey = "5885", statOrder = { 5885 }, level = 1, group = "AfflictionJewelSmallPassivesGrantAuraAreaOfEffect", weightKey = { "old_do_not_use_affliction_aura_effect", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "aura" }, },
["AfflictionJewelSmallPassivesGrantAuraAreaOfEffect2"] = { type = "Suffix", affix = "of Influence", "Added Small Passive Skills also grant: 4% increased Area of Effect of Aura Skills", statOrderKey = "5885", statOrder = { 5885 }, level = 68, group = "AfflictionJewelSmallPassivesGrantAuraAreaOfEffect", weightKey = { "old_do_not_use_affliction_aura_effect", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "aura" }, },
["AfflictionJewelSmallPassivesGrantAuraAreaOfEffect3"] = { type = "Suffix", affix = "of Guidance", "Added Small Passive Skills also grant: 6% increased Area of Effect of Aura Skills", statOrderKey = "5885", statOrder = { 5885 }, level = 84, group = "AfflictionJewelSmallPassivesGrantAuraAreaOfEffect", weightKey = { "old_do_not_use_affliction_aura_effect", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "aura" }, },
["AfflictionJewelSmallPassivesGrantCurseAreaOfEffect"] = { type = "Suffix", affix = "of Clout", "Added Small Passive Skills also grant: 1% increased Area of Effect of Hex Skills", statOrderKey = "5894", statOrder = { 5894 }, level = 1, group = "AfflictionJewelSmallPassivesGrantCurseAreaOfEffect", weightKey = { "old_do_not_use_affliction_curse_effect", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster", "curse" }, },
["AfflictionJewelSmallPassivesGrantCurseAreaOfEffect2"] = { type = "Suffix", affix = "of Dominance", "Added Small Passive Skills also grant: 2% increased Area of Effect of Hex Skills", statOrderKey = "5894", statOrder = { 5894 }, level = 68, group = "AfflictionJewelSmallPassivesGrantCurseAreaOfEffect", weightKey = { "old_do_not_use_affliction_curse_effect", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster", "curse" }, },
["AfflictionJewelSmallPassivesGrantCurseAreaOfEffect3"] = { type = "Suffix", affix = "of Suppression", "Added Small Passive Skills also grant: 3% increased Area of Effect of Hex Skills", statOrderKey = "5894", statOrder = { 5894 }, level = 84, group = "AfflictionJewelSmallPassivesGrantCurseAreaOfEffect", weightKey = { "old_do_not_use_affliction_curse_effect", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster", "curse" }, },
["AfflictionJewelSmallPassivesGrantWarcryDuration"] = { type = "Suffix", affix = "of Yelling", "Added Small Passive Skills also grant: 2% increased Warcry Duration", statOrderKey = "5915", statOrder = { 5915 }, level = 1, group = "AfflictionJewelSmallPassivesGrantWarcryDuration", weightKey = { "affliction_warcry_buff_effect", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["AfflictionJewelSmallPassivesGrantWarcryDuration2"] = { type = "Suffix", affix = "of Shouting", "Added Small Passive Skills also grant: 3% increased Warcry Duration", statOrderKey = "5915", statOrder = { 5915 }, level = 68, group = "AfflictionJewelSmallPassivesGrantWarcryDuration", weightKey = { "affliction_warcry_buff_effect", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["AfflictionJewelSmallPassivesGrantWarcryDuration3"] = { type = "Suffix", affix = "of Bellowing", "Added Small Passive Skills also grant: 4% increased Warcry Duration", statOrderKey = "5915", statOrder = { 5915 }, level = 84, group = "AfflictionJewelSmallPassivesGrantWarcryDuration", weightKey = { "affliction_warcry_buff_effect", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["AfflictionJewelSmallPassivesGrantCriticalStrikeMultiplier"] = { type = "Suffix", affix = "of Ire", "Added Small Passive Skills also grant: +1% to Critical Strike Multiplier", statOrderKey = "5887", statOrder = { 5887 }, level = 1, group = "AfflictionJewelSmallPassivesGrantCriticalStrikeMultiplier", weightKey = { "affliction_critical_chance", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage", "critical" }, },
["AfflictionJewelSmallPassivesGrantCriticalStrikeMultiplier2_"] = { type = "Suffix", affix = "of Anger", "Added Small Passive Skills also grant: +2% to Critical Strike Multiplier", statOrderKey = "5887", statOrder = { 5887 }, level = 68, group = "AfflictionJewelSmallPassivesGrantCriticalStrikeMultiplier", weightKey = { "affliction_critical_chance", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage", "critical" }, },
["AfflictionJewelSmallPassivesGrantCriticalStrikeMultiplier3"] = { type = "Suffix", affix = "of Rage", "Added Small Passive Skills also grant: +3% to Critical Strike Multiplier", statOrderKey = "5887", statOrder = { 5887 }, level = 84, group = "AfflictionJewelSmallPassivesGrantCriticalStrikeMultiplier", weightKey = { "affliction_critical_chance", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "damage", "critical" }, },
["AfflictionJewelSmallPassivesGrantMinionLifeRegen"] = { type = "Suffix", affix = "of Fostering", "Added Small Passive Skills also grant: Minions Regenerate 0.1% of Life per Second", statOrderKey = "5909", statOrder = { 5909 }, level = 1, group = "AfflictionJewelSmallPassivesGrantMinionLifeRegen", weightKey = { "affliction_minion_life", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life", "minion" }, },
["AfflictionJewelSmallPassivesGrantMinionLifeRegen2"] = { type = "Suffix", affix = "of Nurturing", "Added Small Passive Skills also grant: Minions Regenerate 0.15% of Life per Second", statOrderKey = "5909", statOrder = { 5909 }, level = 68, group = "AfflictionJewelSmallPassivesGrantMinionLifeRegen", weightKey = { "affliction_minion_life", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life", "minion" }, },
["AfflictionJewelSmallPassivesGrantMinionLifeRegen3"] = { type = "Suffix", affix = "of Motherhood", "Added Small Passive Skills also grant: Minions Regenerate 0.2% of Life per Second", statOrderKey = "5909", statOrder = { 5909 }, level = 84, group = "AfflictionJewelSmallPassivesGrantMinionLifeRegen", weightKey = { "affliction_minion_life", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "resource", "life", "minion" }, },
["AfflictionJewelSmallPassivesGrantAreaOfEffect_"] = { type = "Suffix", affix = "of Reach", "Added Small Passive Skills also grant: 1% increased Area of Effect", statOrderKey = "5890", statOrder = { 5890 }, level = 1, group = "AfflictionJewelSmallPassivesGrantAreaOfEffect", weightKey = { "affliction_area_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["AfflictionJewelSmallPassivesGrantAreaOfEffect2"] = { type = "Suffix", affix = "of Range", "Added Small Passive Skills also grant: 2% increased Area of Effect", statOrderKey = "5890", statOrder = { 5890 }, level = 68, group = "AfflictionJewelSmallPassivesGrantAreaOfEffect", weightKey = { "affliction_area_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["AfflictionJewelSmallPassivesGrantAreaOfEffect3"] = { type = "Suffix", affix = "of Horizons", "Added Small Passive Skills also grant: 3% increased Area of Effect", statOrderKey = "5890", statOrder = { 5890 }, level = 84, group = "AfflictionJewelSmallPassivesGrantAreaOfEffect", weightKey = { "affliction_area_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { }, },
["AfflictionJewelSmallPassivesGrantProjectileSpeed"] = { type = "Suffix", affix = "of Darting", "Added Small Passive Skills also grant: 2% increased Projectile Speed", statOrderKey = "5889", statOrder = { 5889 }, level = 1, group = "AfflictionJewelSmallPassivesGrantProjectileSpeed", weightKey = { "affliction_projectile_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "speed" }, },
["AfflictionJewelSmallPassivesGrantProjectileSpeed2"] = { type = "Suffix", affix = "of Flight", "Added Small Passive Skills also grant: 3% increased Projectile Speed", statOrderKey = "5889", statOrder = { 5889 }, level = 68, group = "AfflictionJewelSmallPassivesGrantProjectileSpeed", weightKey = { "affliction_projectile_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "speed" }, },
["AfflictionJewelSmallPassivesGrantProjectileSpeed3"] = { type = "Suffix", affix = "of Propulsion", "Added Small Passive Skills also grant: 4% increased Projectile Speed", statOrderKey = "5889", statOrder = { 5889 }, level = 84, group = "AfflictionJewelSmallPassivesGrantProjectileSpeed", weightKey = { "affliction_projectile_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "speed" }, },
["AfflictionJewelSmallPassivesGrantTrapAndMineSpeed_"] = { type = "Suffix", affix = "of Tinkering", "Added Small Passive Skills also grant: 1% increased Trap and Mine Throwing Speed", statOrderKey = "5914", statOrder = { 5914 }, level = 1, group = "AfflictionJewelSmallPassivesGrantTrapAndMineSpeed", weightKey = { "affliction_trap_and_mine_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "speed" }, },
["AfflictionJewelSmallPassivesGrantTrapAndMineSpeed2"] = { type = "Suffix", affix = "of Assembly", "Added Small Passive Skills also grant: 2% increased Trap and Mine Throwing Speed", statOrderKey = "5914", statOrder = { 5914 }, level = 68, group = "AfflictionJewelSmallPassivesGrantTrapAndMineSpeed", weightKey = { "affliction_trap_and_mine_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "speed" }, },
["AfflictionJewelSmallPassivesGrantTrapAndMineSpeed3_"] = { type = "Suffix", affix = "of Deployment", "Added Small Passive Skills also grant: 3% increased Trap and Mine Throwing Speed", statOrderKey = "5914", statOrder = { 5914 }, level = 84, group = "AfflictionJewelSmallPassivesGrantTrapAndMineSpeed", weightKey = { "affliction_trap_and_mine_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "speed" }, },
["AfflictionJewelSmallPassivesGrantTotemPlacementSpeed"] = { type = "Suffix", affix = "of the Karui", "Added Small Passive Skills also grant: 1% increased Totem Placement speed", statOrderKey = "5913", statOrder = { 5913 }, level = 1, group = "AfflictionJewelSmallPassivesGrantTotemPlacementSpeed", weightKey = { "affliction_totem_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "speed" }, },
["AfflictionJewelSmallPassivesGrantTotemPlacementSpeed2"] = { type = "Suffix", affix = "of the Ancestors", "Added Small Passive Skills also grant: 2% increased Totem Placement speed", statOrderKey = "5913", statOrder = { 5913 }, level = 68, group = "AfflictionJewelSmallPassivesGrantTotemPlacementSpeed", weightKey = { "affliction_totem_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "speed" }, },
["AfflictionJewelSmallPassivesGrantTotemPlacementSpeed3"] = { type = "Suffix", affix = "of The Way", "Added Small Passive Skills also grant: 3% increased Totem Placement speed", statOrderKey = "5913", statOrder = { 5913 }, level = 84, group = "AfflictionJewelSmallPassivesGrantTotemPlacementSpeed", weightKey = { "affliction_totem_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "speed" }, },
["AfflictionJewelSmallPassivesGrantBrandAttachmentRange_"] = { type = "Suffix", affix = "of Gripping", "Added Small Passive Skills also grant: 1% increased Brand Attachment range", statOrderKey = "5911", statOrder = { 5911 }, level = 1, group = "AfflictionJewelSmallPassivesGrantBrandAttachmentRange", weightKey = { "affliction_brand_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster" }, },
["AfflictionJewelSmallPassivesGrantBrandAttachmentRange2"] = { type = "Suffix", affix = "of Grasping", "Added Small Passive Skills also grant: 2% increased Brand Attachment range", statOrderKey = "5911", statOrder = { 5911 }, level = 68, group = "AfflictionJewelSmallPassivesGrantBrandAttachmentRange", weightKey = { "affliction_brand_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster" }, },
["AfflictionJewelSmallPassivesGrantBrandAttachmentRange3____"] = { type = "Suffix", affix = "of Latching", "Added Small Passive Skills also grant: 3% increased Brand Attachment range", statOrderKey = "5911", statOrder = { 5911 }, level = 84, group = "AfflictionJewelSmallPassivesGrantBrandAttachmentRange", weightKey = { "affliction_brand_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "caster" }, },
["AfflictionJewelSmallPassivesGrantChannelledAttackAndCastSpeed"] = { type = "Suffix", affix = "of Attention", "Added Small Passive Skills also grant: Channelling Skills have 1% increased Attack and Cast Speed", statOrderKey = "5877", statOrder = { 5877 }, level = 1, group = "AfflictionJewelSmallPassivesGrantChannelledAttackAndCastSpeed", weightKey = { "affliction_channelling_skill_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantChannelledAttackAndCastSpeed2"] = { type = "Suffix", affix = "of Concentration", "Added Small Passive Skills also grant: Channelling Skills have 2% increased Attack and Cast Speed", statOrderKey = "5877", statOrder = { 5877 }, level = 68, group = "AfflictionJewelSmallPassivesGrantChannelledAttackAndCastSpeed", weightKey = { "affliction_channelling_skill_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantChannelledAttackAndCastSpeed3"] = { type = "Suffix", affix = "of Forethought", "Added Small Passive Skills also grant: Channelling Skills have 3% increased Attack and Cast Speed", statOrderKey = "5877", statOrder = { 5877 }, level = 84, group = "AfflictionJewelSmallPassivesGrantChannelledAttackAndCastSpeed", weightKey = { "affliction_channelling_skill_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantFlaskChargesGained"] = { type = "Suffix", affix = "of Refilling", "Added Small Passive Skills also grant: 1% increased Flask Charges gained", statOrderKey = "5892", statOrder = { 5892 }, level = 1, group = "AfflictionJewelSmallPassivesGrantFlaskChargesGained", weightKey = { "affliction_life_and_mana_recovery_from_flasks", "affliction_flask_duration", "default", }, weightVal = { 350, 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "flask" }, },
["AfflictionJewelSmallPassivesGrantFlaskChargesGained2_"] = { type = "Suffix", affix = "of Brimming", "Added Small Passive Skills also grant: 2% increased Flask Charges gained", statOrderKey = "5892", statOrder = { 5892 }, level = 68, group = "AfflictionJewelSmallPassivesGrantFlaskChargesGained", weightKey = { "affliction_life_and_mana_recovery_from_flasks", "affliction_flask_duration", "default", }, weightVal = { 350, 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "flask" }, },
["AfflictionJewelSmallPassivesGrantFlaskChargesGained3"] = { type = "Suffix", affix = "of Overflowing", "Added Small Passive Skills also grant: 3% increased Flask Charges gained", statOrderKey = "5892", statOrder = { 5892 }, level = 84, group = "AfflictionJewelSmallPassivesGrantFlaskChargesGained", weightKey = { "affliction_life_and_mana_recovery_from_flasks", "affliction_flask_duration", "default", }, weightVal = { 250, 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "flask" }, },
["AfflictionJewelSmallPassivesGrantFireSkillAttackAndCastSpeed"] = { type = "Suffix", affix = "of Kindling", "Added Small Passive Skills also grant: 1% increased Attack and Cast Speed with Fire Skills", statOrderKey = "5881", statOrder = { 5881 }, level = 1, group = "AfflictionJewelSmallPassivesGrantFireSkillAttackAndCastSpeed", weightKey = { "affliction_fire_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantFireSkillAttackAndCastSpeed2"] = { type = "Suffix", affix = "of Smoke", "Added Small Passive Skills also grant: 2% increased Attack and Cast Speed with Fire Skills", statOrderKey = "5881", statOrder = { 5881 }, level = 68, group = "AfflictionJewelSmallPassivesGrantFireSkillAttackAndCastSpeed", weightKey = { "affliction_fire_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantFireSkillAttackAndCastSpeed3_"] = { type = "Suffix", affix = "of Flashfires", "Added Small Passive Skills also grant: 3% increased Attack and Cast Speed with Fire Skills", statOrderKey = "5881", statOrder = { 5881 }, level = 84, group = "AfflictionJewelSmallPassivesGrantFireSkillAttackAndCastSpeed", weightKey = { "affliction_fire_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "fire", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantColdSkillAttackAndCastSpeed"] = { type = "Suffix", affix = "of Cooling", "Added Small Passive Skills also grant: 1% increased Attack and Cast Speed with Cold Skills", statOrderKey = "5879", statOrder = { 5879 }, level = 1, group = "AfflictionJewelSmallPassivesGrantColdSkillAttackAndCastSpeed", weightKey = { "affliction_cold_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantColdSkillAttackAndCastSpeed2_"] = { type = "Suffix", affix = "of Frigidity", "Added Small Passive Skills also grant: 2% increased Attack and Cast Speed with Cold Skills", statOrderKey = "5879", statOrder = { 5879 }, level = 68, group = "AfflictionJewelSmallPassivesGrantColdSkillAttackAndCastSpeed", weightKey = { "affliction_cold_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantColdSkillAttackAndCastSpeed3"] = { type = "Suffix", affix = "of the Avalanche", "Added Small Passive Skills also grant: 3% increased Attack and Cast Speed with Cold Skills", statOrderKey = "5879", statOrder = { 5879 }, level = 84, group = "AfflictionJewelSmallPassivesGrantColdSkillAttackAndCastSpeed", weightKey = { "affliction_cold_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "cold", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantLightningSkillAttackAndCastSpeed"] = { type = "Suffix", affix = "of Gathering Clouds", "Added Small Passive Skills also grant: 1% increased Attack and Cast Speed with Lightning Skills", statOrderKey = "5882", statOrder = { 5882 }, level = 1, group = "AfflictionJewelSmallPassivesGrantLightningSkillAttackAndCastSpeed", weightKey = { "affliction_lightning_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantLightningSkillAttackAndCastSpeed2"] = { type = "Suffix", affix = "of Sudden Storms", "Added Small Passive Skills also grant: 2% increased Attack and Cast Speed with Lightning Skills", statOrderKey = "5882", statOrder = { 5882 }, level = 68, group = "AfflictionJewelSmallPassivesGrantLightningSkillAttackAndCastSpeed", weightKey = { "affliction_lightning_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantLightningSkillAttackAndCastSpeed3"] = { type = "Suffix", affix = "of the Strike", "Added Small Passive Skills also grant: 3% increased Attack and Cast Speed with Lightning Skills", statOrderKey = "5882", statOrder = { 5882 }, level = 84, group = "AfflictionJewelSmallPassivesGrantLightningSkillAttackAndCastSpeed", weightKey = { "affliction_lightning_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "lightning", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantChaosSkillAttackAndCastSpeed"] = { type = "Suffix", affix = "of Dusk", "Added Small Passive Skills also grant: 1% increased Attack and Cast Speed with Chaos Skills", statOrderKey = "5878", statOrder = { 5878 }, level = 1, group = "AfflictionJewelSmallPassivesGrantChaosSkillAttackAndCastSpeed", weightKey = { "affliction_chaos_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantChaosSkillAttackAndCastSpeed2____"] = { type = "Suffix", affix = "of Midnight", "Added Small Passive Skills also grant: 2% increased Attack and Cast Speed with Chaos Skills", statOrderKey = "5878", statOrder = { 5878 }, level = 68, group = "AfflictionJewelSmallPassivesGrantChaosSkillAttackAndCastSpeed", weightKey = { "affliction_chaos_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantChaosSkillAttackAndCastSpeed3"] = { type = "Suffix", affix = "of the Eclipse", "Added Small Passive Skills also grant: 3% increased Attack and Cast Speed with Chaos Skills", statOrderKey = "5878", statOrder = { 5878 }, level = 84, group = "AfflictionJewelSmallPassivesGrantChaosSkillAttackAndCastSpeed", weightKey = { "affliction_chaos_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "chaos", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantPhysicalSkillAttackAndCastSpeed"] = { type = "Suffix", affix = "of Rumbling", "Added Small Passive Skills also grant: 1% increased Attack and Cast Speed with Physical Skills", statOrderKey = "5883", statOrder = { 5883 }, level = 1, group = "AfflictionJewelSmallPassivesGrantPhysicalSkillAttackAndCastSpeed", weightKey = { "affliction_physical_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "physical", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantPhysicalSkillAttackAndCastSpeed2"] = { type = "Suffix", affix = "of Tremors", "Added Small Passive Skills also grant: 2% increased Attack and Cast Speed with Physical Skills", statOrderKey = "5883", statOrder = { 5883 }, level = 68, group = "AfflictionJewelSmallPassivesGrantPhysicalSkillAttackAndCastSpeed", weightKey = { "affliction_physical_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "physical", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantPhysicalSkillAttackAndCastSpeed3_"] = { type = "Suffix", affix = "of the Earthquake", "Added Small Passive Skills also grant: 3% increased Attack and Cast Speed with Physical Skills", statOrderKey = "5883", statOrder = { 5883 }, level = 84, group = "AfflictionJewelSmallPassivesGrantPhysicalSkillAttackAndCastSpeed", weightKey = { "affliction_physical_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "physical", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantElementalSkillAttackAndCastSpeed"] = { type = "Suffix", affix = "of Coaxing", "Added Small Passive Skills also grant: 1% increased Attack and Cast Speed with Elemental Skills", statOrderKey = "5880", statOrder = { 5880 }, level = 1, group = "AfflictionJewelSmallPassivesGrantElementalSkillAttackAndCastSpeed", weightKey = { "affliction_elemental_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantElementalSkillAttackAndCastSpeed2_"] = { type = "Suffix", affix = "of Evoking", "Added Small Passive Skills also grant: 2% increased Attack and Cast Speed with Elemental Skills", statOrderKey = "5880", statOrder = { 5880 }, level = 68, group = "AfflictionJewelSmallPassivesGrantElementalSkillAttackAndCastSpeed", weightKey = { "affliction_elemental_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantElementalSkillAttackAndCastSpeed3_"] = { type = "Suffix", affix = "of Manifesting", "Added Small Passive Skills also grant: 3% increased Attack and Cast Speed with Elemental Skills", statOrderKey = "5880", statOrder = { 5880 }, level = 84, group = "AfflictionJewelSmallPassivesGrantElementalSkillAttackAndCastSpeed", weightKey = { "affliction_elemental_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "elemental", "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantMinionAttackAndCastSpeed"] = { type = "Suffix", affix = "of Pillaging", "Added Small Passive Skills also grant: Minions have 1% increased Attack and Cast Speed", statOrderKey = "5907", statOrder = { 5907 }, level = 1, group = "AfflictionJewelSmallPassivesGrantMinionAttackAndCastSpeed", weightKey = { "affliction_minion_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed", "minion" }, },
["AfflictionJewelSmallPassivesGrantMinionAttackAndCastSpeed2"] = { type = "Suffix", affix = "of Ravaging", "Added Small Passive Skills also grant: Minions have 2% increased Attack and Cast Speed", statOrderKey = "5907", statOrder = { 5907 }, level = 68, group = "AfflictionJewelSmallPassivesGrantMinionAttackAndCastSpeed", weightKey = { "affliction_minion_damage", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed", "minion" }, },
["AfflictionJewelSmallPassivesGrantMinionAttackAndCastSpeed3"] = { type = "Suffix", affix = "of Razing", "Added Small Passive Skills also grant: Minions have 3% increased Attack and Cast Speed", statOrderKey = "5907", statOrder = { 5907 }, level = 84, group = "AfflictionJewelSmallPassivesGrantMinionAttackAndCastSpeed", weightKey = { "affliction_minion_damage", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed", "minion" }, },
["AfflictionJewelSmallPassivesGrantHeraldAttackAndCastSpeed"] = { type = "Suffix", affix = "of the Courier", "Added Small Passive Skills also grant: 1% increased Attack and Cast Speed while affected by a Herald", statOrderKey = "5876", statOrder = { 5876 }, level = 1, group = "AfflictionJewelSmallPassivesGrantHeraldAttackAndCastSpeed", weightKey = { "affliction_damage_while_you_have_a_herald", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantHeraldAttackAndCastSpeed2_"] = { type = "Suffix", affix = "of the Messenger", "Added Small Passive Skills also grant: 2% increased Attack and Cast Speed while affected by a Herald", statOrderKey = "5876", statOrder = { 5876 }, level = 68, group = "AfflictionJewelSmallPassivesGrantHeraldAttackAndCastSpeed", weightKey = { "affliction_damage_while_you_have_a_herald", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantHeraldAttackAndCastSpeed3"] = { type = "Suffix", affix = "of the Herald", "Added Small Passive Skills also grant: 3% increased Attack and Cast Speed while affected by a Herald", statOrderKey = "5876", statOrder = { 5876 }, level = 84, group = "AfflictionJewelSmallPassivesGrantHeraldAttackAndCastSpeed", weightKey = { "affliction_damage_while_you_have_a_herald", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed" }, },
["AfflictionJewelSmallPassivesGrantHeraldMinionAttackAndCastSpeed"] = { type = "Suffix", affix = "of the Message", "Added Small Passive Skills also grant: Minions have 1% increased Attack and Cast Speed while you are affected by a Herald", statOrderKey = "5908", statOrder = { 5908 }, level = 1, group = "AfflictionJewelSmallPassivesGrantHeraldMinionAttackAndCastSpeed", weightKey = { "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed", "minion" }, },
["AfflictionJewelSmallPassivesGrantHeraldMinionAttackAndCastSpeed2_"] = { type = "Suffix", affix = "of the Teachings", "Added Small Passive Skills also grant: Minions have 2% increased Attack and Cast Speed while you are affected by a Herald", statOrderKey = "5908", statOrder = { 5908 }, level = 68, group = "AfflictionJewelSmallPassivesGrantHeraldMinionAttackAndCastSpeed", weightKey = { "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 350, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed", "minion" }, },
["AfflictionJewelSmallPassivesGrantHeraldMinionAttackAndCastSpeed3"] = { type = "Suffix", affix = "of the Canon", "Added Small Passive Skills also grant: Minions have 3% increased Attack and Cast Speed while you are affected by a Herald", statOrderKey = "5908", statOrder = { 5908 }, level = 84, group = "AfflictionJewelSmallPassivesGrantHeraldMinionAttackAndCastSpeed", weightKey = { "affliction_minion_damage_while_you_have_a_herald", "default", }, weightVal = { 250, 0 }, weightMultiplierKey = { }, weightMultiplierVal = { }, modTags = { "attack", "caster", "speed", "minion" }, },
} |
local m = require 'model_helpers'
local defaults = require 'models.default_middleware_specs'
-- local MiddlewareSpec = {}
-- local collection = 'middleware_specs'
local Model = require 'model'
local MiddlewareSpec = Model:new()
MiddlewareSpec.collection = 'middleware_specs'
MiddlewareSpec.excluded_fiels_to_index = Model.build_excluded_fields('description', 'code')
function MiddlewareSpec:ensure_defaults_exist()
for i = 1, #defaults do
if not MiddlewareSpec:find({name = defaults[i].name}) then
MiddlewareSpec:create(defaults[i])
end
end
end
function MiddlewareSpec:create(attrs)
local middleware_spec = Model.create(self, attrs)
local middleware_id = attrs.middleware_id
if middleware_id then -- update the middleware's spec_id to point to new spec
local condition = { middlewares = {[middleware_id] = {uuid = middleware_id}} }
local update = { middlewares = {[middleware_id] = { spec_id = middleware_spec._id } } }
local pipeline, err = m.update('pipelines', condition, update)
end
return middleware_spec
end
return MiddlewareSpec
|
if (SERVER) then
AddCSLuaFile()
end
--AKS-74U
sound.Add({
name="Weapon_AKS74U.Single",
volume = 1.0,
pitch = {100,105},
sound = "weapons/aks74u/AKS_fp.wav",
level = 160,
channel = CHAN_STATIC
})
sound.Add({
name="Weapon_AKS74U.SingleSilenced",
volume = 1.0,
pitch = {100,105},
sound = "weapons/aks74u/AKS_suppressed_fp.wav",
level = 135,
channel = CHAN_STATIC
})
sound.Add({
name="Weapon_AKS74U.Magrelease",
volume = 0.2,
sound = "weapons/aks74u/handling/AKS_magrelease.wav",
level = 65,
channel = CHAN_ITEM
})
sound.Add({
name="Weapon_AKS74U.MagHitrelease",
volume = 0.3,
sound = "weapons/aks74u/handling/AKS_maghitrelease.wav",
level = 65,
channel = CHAN_ITEM
})
sound.Add({
name="Weapon_AKS74U.Magin",
volume = 0.2,
sound = "weapons/aks74u/handling/AKS_magin.wav",
level = 65,
channel = CHAN_ITEM
})
sound.Add({
name="Weapon_AKS74U.Magout",
volume = 0.2,
sound = "weapons/aks74u/handling/AKS_magout.wav",
level = 65,
channel = CHAN_ITEM
})
sound.Add({
name="Weapon_AKS74U.Boltback",
volume = 0.3,
sound = "weapons/aks74u/handling/AKS_boltback.wav",
level = 65,
channel = CHAN_ITEM
})
sound.Add({
name="Weapon_AKS74U.Boltrelease",
volume = 0.3,
sound = "weapons/aks74u/handling/AKS_boltrelease.wav",
level = 65,
channel = CHAN_ITEM
})
sound.Add({
name="Weapon_AKS74U.Hit",
volume = 0.2,
sound = "weapons/aks74u/handling/AKS_hit.wav",
level = 65,
channel = CHAN_ITEM
})
sound.Add({
name="Weapon_AKS74U.Rattle",
volume = 0.2,
sound = "weapons/aks74u/handling/AKS_rattle.wav",
level = 65,
channel = CHAN_ITEM
})
sound.Add({
name="Weapon_AKS74U.MagoutRattle",
volume = 0.2,
sound = "weapons/aks74u/handling/AKS_magout_rattle.wav",
level = 65,
channel = CHAN_ITEM
})
sound.Add({
name="Weapon_AKS74U.ROF",
volume = 0.2,
sound = "weapons/aks74u/handling/AKS_fireselect_1.wav",
level = 65,
channel = CHAN_ITEM
})
|
#!/usr/local/bin/lua
--
--------------------------------------------------------------------------------
-- File: t_ex03.lua
--
-- Usage: src/t_ex03.lua
--
-- Description:
--
-- Options: ---
-- Requirements: ---
-- Bugs: ---
-- Notes: ---
-- Author: YOUR NAME (), <>
-- Organization:
-- Version: 1.0
-- Created: 26-05-19
-- Revision: ---
--------------------------------------------------------------------------------
--
package.cpath = "bld/?.so"
array = require("ex03");
a = array.new(10)
print(a) --> userdata: 0x8064d48
print(array.size(a)) --> 10
for i=1,10 do
array.set(a, i, 1/i)
end
print(array.get(a, 10)) --> 0.1
print("Error follows due to: array.get(io.stdin, 1)");
array.get(io.stdin, 1);
--[[ Note:
Can't do the following with the library 'ex02.so'
a:set(2, 10);
print(a:get(2))
lua: src/t_ex02.lua:35: attempt to index a userdata value (global 'a')
stack traceback:
src/t_ex02.lua:35: in main chunk
[C]: in ?
A call like: print(a[2]) produces the same error.
--]]
|
--------------------------------------------------------------------
---FSM
require 'mock.ai.FSMScheme'
require 'mock.ai.FSMController'
require 'mock.ai.ScriptedFSMController'
--------------------------------------------------------------------
---- Behaviour Tree
require 'mock.ai.BTScheme'
require 'mock.ai.BTScript'
require 'mock.ai.BTController'
--------------------------------------------------------------------
---- Steer Controller
require 'mock.ai.SteerController'
--------------------------------------------------------------------
---- PATH finder
require 'mock.ai.PathFinder'
--------------------------------------------------------------------
--NavMesh
require 'mock.ai.PathGraphNavMesh2D'
require 'mock.ai.WaypointPathGraph'
|
-- Including the Advanced NPC System
dofile('data/npc/lib/npcsystem/npcsystem.lua')
dofile('data/npc/lib/npcsystem/customModules.lua')
isPlayerPremiumCallback = Player.isPremium
function msgcontains(message, keyword)
local message, keyword = message:lower(), keyword:lower()
if message == keyword then
return true
end
return message:find(keyword) and not message:find('(%w+)' .. keyword)
end
function doNpcSellItem(cid, itemId, amount, subType, ignoreCap, inBackpacks, backpack)
local amount = amount or 1
local subType = subType or 0
local item = 0
local player = Player(cid)
if ItemType(itemId):isStackable() then
local stuff
if inBackpacks then
stuff = Game.createItem(backpack, 1)
item = stuff:addItem(itemId, math.min(100, amount))
else
stuff = Game.createItem(itemId, math.min(100, amount))
end
return player:addItemEx(stuff, ignoreCap) ~= RETURNVALUE_NOERROR and 0 or amount, 0
end
local a = 0
if inBackpacks then
local container, itemType, b = Game.createItem(backpack, 1), ItemType(backpack), 1
for i = 1, amount do
local item = container:addItem(itemId, subType)
if isInArray({(itemType:getCapacity() * b), amount}, i) then
if player:addItemEx(container, ignoreCap) ~= RETURNVALUE_NOERROR then
b = b - 1
break
end
a = i
if amount > i then
container = Game.createItem(backpack, 1)
b = b + 1
end
end
end
return a, b
end
for i = 1, amount do -- normal method for non-stackable items
local item = Game.createItem(itemId, subType)
if player:addItemEx(item, ignoreCap) ~= RETURNVALUE_NOERROR then
break
end
a = i
end
return a, 0
end
local func = function(cid, text, type, e, pcid)
local npc = Npc(cid)
if not npc then
return
end
local player = Player(pcid)
if player then
npc:say(text, type, false, player, npc:getPosition())
e.done = true
end
end
function doCreatureSayWithDelay(cid, text, type, delay, e, pcid)
if Player(pcid) then
e.done = false
e.event = addEvent(func, delay < 1 and 1000 or delay, cid, text, type, e, pcid)
end
end
function doPlayerTakeItem(cid, itemid, count)
local player = Player(cid)
if player:getItemCount(itemid) < count then
return false
end
while count > 0 do
local tempcount = 0
if ItemType(itemid):isStackable() then
tempcount = math.min (100, count)
else
tempcount = 1
end
local ret = player:removeItem(itemid, tempcount)
if ret then
count = count - tempcount
else
return false
end
end
if count ~= 0 then
return false
end
return true
end
function doPlayerSellItem(cid, itemid, count, cost)
local player = Player(cid)
if doPlayerTakeItem(cid, itemid, count) then
if not player:addMoney(cost) then
error('Could not add money to ' .. player:getName() .. '(' .. cost .. 'gp)')
end
return true
end
return false
end
function doPlayerBuyItemContainer(cid, containerid, itemid, count, cost, charges)
local player = Player(cid)
if not player:removeMoney(cost) then
return false
end
for i = 1, count do
local container = Game.createItem(containerid, 1)
for x = 1, ItemType(containerid):getCapacity() do
container:addItem(itemid, charges)
end
if player:addItemEx(container, true) ~= RETURNVALUE_NOERROR then
return false
end
end
return true
end
function getCount(string)
local b, e = string:find("%d+")
return b and e and tonumber(string:sub(b, e)) or -1
end
|
-- tests stdnet.apps.columnts.lua internal functions
local t = require("tabletools")
local stats = require("columnts/stats")
local function series_for_test ()
-- TEST MULTI SERIES AGGREGATION
local serie1 = {key='first',
times={1001,1002,1003,1004},
field_values={field1 = {1,3,2,4}}}
local serie2 = {key='second',
times={1001,1002,1004,1005,1006},
field_values={field1 = {1,1.5,2,4,1.5}}}
local serie3 = {key='third',
times={1001,1002,1003,1004,1009},
field_values={field1 = {-2,3,2.4,4,6.4}}}
return {serie1, serie2, serie3}
end
local suite = {}
suite.test_vector_sadd = function ()
local v1 = t.init(5,3)
local v2 = t.init(5,-2)
local v3 = stats.vector_sadd(v1,v2)
assert_equal(# v1, 5)
assert_true(t.equal(v1,v3))
assert_true(t.equal(v1,{1,1,1,1,1}))
assert_true(t.equal(v2,{-2,-2,-2,-2,-2}))
v1 = {1,2,3}
stats.vector_sadd(v1, {3,-1,6})
assert_true(t.equal(v1, {4,1,9}))
end
suite.test_vector_diff = function ()
local v1 = t.init(5,3)
local v2 = t.init(5,-2)
local v3 = stats.vector_diff(v1,v2)
assert_equal(# v3, 5)
assert_false(t.equal(v1,v3))
assert_true(t.equal(v1,{3,3,3,3,3}))
assert_true(t.equal(v2,{-2,-2,-2,-2,-2}))
assert_true(t.equal(v3,{5,5,5,5,5}))
end
suite.test_square = function()
local vector = t.init(7,98)
local vector2 = stats.vector_square(vector)
assert_equal(# vector2, 28)
for i,v in ipairs(vector2) do
assert_equal(v, 98*98)
end
vector = {2,4,9,-2}
vector2 = stats.vector_square(vector)
assert_equal(# vector2, 10)
assert_equal(vector2[1], 4)
assert_equal(vector2[2], 8)
assert_equal(vector2[3], 16)
assert_equal(vector2[4], 18)
assert_equal(vector2[5], 36)
assert_equal(vector2[6], 81)
assert_equal(vector2[7], -4)
assert_equal(vector2[8], -8)
assert_equal(vector2[9], -18)
assert_equal(vector2[10], 4)
end
suite.test_series = function()
local series = series_for_test()
local a = stats.fields_and_times(series)
assert_equal(# a.times, 4)
assert_true(t.equal(a.times, series[1].times))
assert_equal(# a.names, 3)
assert_true(t.equal(a.names, {'first @ field1','second @ field1','third @ field1'}))
assert_equal(# a.time_dict, 0)
local flat = t.flat(a.time_dict)
assert_equal(# flat, 8)
assert_equal('string', type(flat[1]))
assert_equal('string', type(flat[3]))
assert_equal('string', type(flat[5]))
assert_equal('string', type(flat[7]))
local ofield = {flat[1]+0,flat[3]+0,flat[5]+0,flat[7]+0}
table.sort(ofield)
assert_true(t.equal(ofield,{1001,1002,1003,1004}))
assert_true(t.equal({1,1,-2}, a.time_dict['1001']))
assert_true(t.equal({3,1.5,3}, a.time_dict['1002']))
assert_true(t.equal({2, 2.4}, a.time_dict['1003']))
assert_true(t.equal({4,2,4}, a.time_dict['1004']))
end
suite.test_multivariate = function()
local series = series_for_test()
local result = stats.multivariate(series)
assert_equal(3, result.N)
assert_true(t.equal({'first @ field1','second @ field1','third @ field1'}, result.fields))
assert_true(t.equal({8,4.5,5}, result.sum))
assert_true(t.equal({26,13.5,7.25,23,10.5,29}, result.sum2))
assert_true(t.equal({3,1,6}, result.dsum))
assert_true(t.equal({5,1.5,0.5,11,3,26}, result.dsum2))
end
return suite
|
local K, C, L = unpack(select(2, ...))
local Module = K:GetModule("Infobar")
local _G = _G
local math_max = _G.math.max
local string_format = _G.string.format
local GetAvailableBandwidth = _G.GetAvailableBandwidth
local GetBackgroundLoadingStatus = _G.GetBackgroundLoadingStatus
local GetCVarBool = _G.GetCVarBool
local GetDownloadedPercentage = _G.GetDownloadedPercentage
local GetFileStreamingStatus = _G.GetFileStreamingStatus
local GetNetIpTypes = _G.GetNetIpTypes
local GetNetStats = _G.GetNetStats
local UNKNOWN = _G.UNKNOWN
local entered
local ipTypes = {"IPv4", "IPv6"}
local function colorLatency(latency)
if latency < 250 then
return "|cff0CD809"..latency
elseif latency < 500 then
return "|cffE8DA0F"..latency
else
return "|cffD80909"..latency
end
end
local function setLatency()
local _, _, latencyHome, latencyWorld = GetNetStats()
local latency = math_max(latencyHome, latencyWorld)
if C["DataText"].HideText then
Module.LatencyDataTextFrame.Text:SetText("")
else
Module.LatencyDataTextFrame.Text:SetText(L["MS"]..": "..colorLatency(latency))
end
end
local function OnEnter()
entered = true
GameTooltip:SetOwner(Module.LatencyDataTextFrame, "ANCHOR_NONE")
GameTooltip:SetPoint(K.GetAnchors(Module.LatencyDataTextFrame))
GameTooltip:ClearLines()
GameTooltip:AddLine(L["Latency"], 0, 0.6, 1)
GameTooltip:AddLine(" ")
local _, _, latencyHome, latencyWorld = GetNetStats()
GameTooltip:AddDoubleLine(L["Home Latency"], colorLatency(latencyHome).."|r ms", 0.6, 0.8, 1, 1, 1, 1)
GameTooltip:AddDoubleLine(L["World Latency"], colorLatency(latencyWorld).."|r ms", 0.6, 0.8, 1, 1, 1, 1)
if GetCVarBool("useIPv6") then
local ipTypeHome, ipTypeWorld = GetNetIpTypes()
GameTooltip:AddLine(" ")
GameTooltip:AddDoubleLine(L["Home Protocol"], ipTypes[ipTypeHome or 0] or UNKNOWN, 0.6, 0.8, 1, 1, 1, 1)
GameTooltip:AddDoubleLine(L["World Protocol"], ipTypes[ipTypeWorld or 0] or UNKNOWN, 0.6, 0.8, 1, 1, 1, 1)
end
local downloading = GetFileStreamingStatus() ~= 0 or GetBackgroundLoadingStatus() ~= 0
if downloading then
GameTooltip:AddLine(" ")
GameTooltip:AddDoubleLine(L["Bandwidth"], string_format("%.2f Mbps", GetAvailableBandwidth()), 0.6, 0.8, 1, 1, 1, 1)
GameTooltip:AddDoubleLine(L["Download"], string_format("%.2f%%", GetDownloadedPercentage() * 100), 0.6, 0.8, 1, 1, 1, 1)
end
GameTooltip:Show()
end
local function OnUpdate(self, elapsed)
self.timer = (self.timer or 0) + elapsed
if self.timer > 1 then
setLatency()
if entered then
OnEnter()
end
self.timer = 0
end
end
local function OnLeave()
entered = false
GameTooltip:Hide()
end
function Module:CreateLatencyDataText()
if not C["DataText"].Latency then
return
end
Module.LatencyDataTextFrame = CreateFrame("Button", "KKUI_LatencyDataText", UIParent)
Module.LatencyDataTextFrame:SetSize(24, 24)
Module.LatencyDataTextFrame.Texture = Module.LatencyDataTextFrame:CreateTexture(nil, "BACKGROUND")
Module.LatencyDataTextFrame.Texture:SetPoint("LEFT", Module.LatencyDataTextFrame, "LEFT", 2, 0)
Module.LatencyDataTextFrame.Texture:SetTexture(("Interface\\AddOns\\KkthnxUI\\Media\\DataText\\ping.blp"))
Module.LatencyDataTextFrame.Texture:SetSize(16, 16)
Module.LatencyDataTextFrame.Texture:SetVertexColor(unpack(C["DataText"].IconColor))
Module.LatencyDataTextFrame.Text = Module.LatencyDataTextFrame:CreateFontString("OVERLAY")
Module.LatencyDataTextFrame.Text:SetFontObject(K.GetFont(C["UIFonts"].DataTextFonts))
Module.LatencyDataTextFrame.Text:SetPoint("LEFT", Module.LatencyDataTextFrame.Texture, "RIGHT", 4, 0)
if C["DataText"].System then
Module.LatencyDataTextFrame.Pos = {"LEFT", _G.KKUI_SystemDataText.Text, "RIGHT", 4, 0}
else
Module.LatencyDataTextFrame.Pos = {"TOPLEFT", UIParent, "TOPLEFT", 4, 0}
end
Module.LatencyDataTextFrame:SetScript("OnUpdate", OnUpdate)
Module.LatencyDataTextFrame:SetScript("OnEnter", OnEnter)
Module.LatencyDataTextFrame:SetScript("OnLeave", OnLeave)
K.Mover(Module.LatencyDataTextFrame, "KKUI_LatencyDataText", "KKUI_LatencyDataText", Module.LatencyDataTextFrame.Pos)
end |
function benchmark_median(path, samples, func)
local result = {}
for n=1, samples do
t1 = os.clock()
func()
t = os.clock() - t1
table.insert(result, n, t)
end
local median;
table.sort(result)
-- output results
f = io.open(path, "w")
for n=1, samples do
f:write(string.format("%f", result[n]))
f:write('\n')
end
f:close()
-- calc median
if samples % 2 == 0 then
median = (result[samples / 2 - 1] + result[samples / 2]) / 2
else
median = result[samples / 2]
end
return median
end
|
local awful = require("awful")
require("awful.autofocus")
local beautiful = require("beautiful")
local gears = require("gears")
beautiful.useless_gap = 7
beautiful.bg_normal = "#090A0F60"
beautiful.bg_focus = "#090A0F90"
beautiful.bg_urgent = "#090A0F00"
beautiful.bg_minimize = "#AAAAAA80"
beautiful.bg_systray = beautiful.bg_normal
beautiful.fg_normal = "#AAAAAA"
beautiful.fg_focus = "#E98567"
beautiful.fg_urgent = "#D4191990"
beautiful.fg_minimize = "#FAC86A"
beautiful.border_width = 0
beautiful.border_normal = "#e98567"
beautiful.border_focus = "#89DDFF"
beautiful.border_marked = "#EC0101"
awful.screen.connect_for_each_screen(function(s)
-- Each screen has its own tag table.
awful.tag({ " ", " ", " ", " ﴣ", " ", " ","辶 " , " ", "拓 " }, s, awful.layout.layouts[1])
end)
-- }}}
|
local const = require("druid.const")
local component = require("druid.component")
local M = component.create("pin", { const.ON_INPUT })
local SCHEME = {
ROOT = "root",
PIN = "pin",
}
local function update_visual(self)
local rotation = vmath.vector3(0, 0, self.angle)
gui.set_rotation(self.node, rotation)
end
local function set_angle(self, value)
local prev_value = self.angle
self.angle = value
self.angle = math.min(self.angle, self.angle_max)
self.angle = math.max(self.angle, self.angle_min)
update_visual(self)
if prev_value ~= self.angle and self.callback then
local output_value = self.angle
if output_value ~= 0 then
output_value = -output_value
end
self.callback(self:get_context(), output_value)
end
end
function M.init(self, template_name, callback)
self:set_template(template_name)
self.druid = self:get_druid()
self.node = self:get_node(SCHEME.PIN)
self.is_drag = false
self.callback = callback
self:set_angle(0, -100, 100)
end
function M.set_angle(self, cur_value, min, max)
self.angle_min = min
self.angle_max = max
set_angle(self, cur_value)
end
function M.on_input(self, action_id, action)
if action_id ~= const.ACTION_TOUCH then
return false
end
if gui.pick_node(self.node, action.x, action.y) then
if action.pressed then
self.pos = gui.get_position(self.node)
self.is_drag = true
end
end
if self.is_drag and not action.pressed then
set_angle(self, self.angle - action.dx)
end
if action.released then
self.is_drag = false
end
return self.is_drag
end
return M
|
--[[
author:{JanRoid}
time:2018-12-04
Description: 自定义全局方法
]]
local funs = {}
--[[
@desc: 添加get,set方法
author:{JanRoid}
time:2018-12-04 11:21:47
--@object: 类 or 表
--@varName: 属性名称(自动生成getVerName,setVerName方法)
--@defaultValue: 默认值
--@createGetter: 创建get方法,默认创建
--@createSetter: 创建set方法,默认创建
@return:
]]
function funs.addProperty(object, varName, defaultValue, createGetter, createSetter)
if not object or not varName then
Log.e("addProperty --> object or varName is nil")
return;
end
createGetter = (createGetter == nil) or createGetter
createSetter = (createSetter == nil) or createSetter
local tempName = string.gsub(varName,"m_","")
local propName = string.upper(string.sub(tempName, 1, 1)) .. (#tempName > 1 and string.sub(tempName, 2, -1) or "")
object[varName] = defaultValue
if createGetter then
object[string.format("get%s", propName)] = function(self)
return object[varName]
end
end
if createSetter then
object[string.format("set%s", propName)] = function(p1,p2)
object[varName] = p2 or (p1 ~= object and p1 or nil)
end
end
end
function funs.getNumFromTable(tb,key,default)
if nil == tb or not key or type(tb) ~= "table" then
return default
end
local ret = default
if tb[key] ~= nil then
ret = tonumber(tb[key]);
if ret == nil then
ret = default;
end
end
return ret;
end
function funs.getStrFromTable(tb,key,default)
if not default then
default = "";
end
if nil == tb or not key or type(tb) ~= "table" then
return default
end;
local ret = default;
if tb[key] ~= nil then
ret = tb[key];
if ret == nil or type(ret) == "table" or string.len(ret) == 0 then
ret = default;
end
end
return tostring(ret);
end
function funs.getBooleanFromTable(tb,key,default)
if not default then
default = false;
else
default = true;
end
if nil == tb or not key or type(tb) ~= "table" then
return default
end;
local ret = default;
if tb[key] ~= nil then
ret = tb[key];
if ret == nil then
ret = default;
else
ret = tostring(ret);
end
end
if ret == "true" then
ret = true;
else
ret = false;
end
return ret;
end
function funs.getTabFromTable(tb,key,default)
default = default or {};
if type(default) ~= "table" then
default = {};
end
if nil == tb or not key or type(tb) ~= "table" then
return default
end;
local ret = tb[key];
if not ret or type(ret) ~= "table" then
return default;
end
return tb[key];
end
function funs.switchFilePath(filePath)
if(type(filePath) == "string") then
if g_AppManager then
filePath = "creator/lanRes/" .. "lanRes_".. g_AppManager:getAppPlatform() .. "/" .. filePath
end
end
return filePath;
end
local cocosImport = import
-- 获取相对包的路径
local function getRelativelyPath(str)
-- 去掉最后一个"/"或"\"后面的内容
local function dirname(str)
if str:match(".-/.-") then
local name = string.gsub(str, "(.*/)(.+)", "%1")
return name
elseif str:match(".-\\.-") then
local name = string.gsub(str, "(.*\\)(.+)", "%1")
return name
else
return ''
end
end
-- "/"和"\"转换为"."
local function getRelPath(str)
if str:match("/") then
str = string.gsub(str,"/","%.")
end
if str:match("\\") then
str = string.gsub(str,"\\","%.")
end
-- 去掉首尾所有的"."
str = string.gsub(str, "^%.*(.-)%.*$", "%1");
return str;
end
local path = dirname(str);
return getRelPath(path);
end
--[[
@desc: 使用相对路径require文件,目前只支持到上层路径
author:{author}
time:2019-04-29 12:09:45
--@moduleName: 路径开头:1:(xxx) 表示相对当前路径,2:(.xxx)表示相对上层路径,
@return:
]]
function funs.import(moduleName)
local path = debug.getinfo(2,'S').source;
if path == "=[C]" then -- 使用pcall or xpcall执行函数时,需加一层
path = debug.getinfo(3,'S').source
end
path = getRelativelyPath(path);
if string.byte(moduleName, 1) == 46 then
local n = string.find( path,"%.[^%.]*$")
if n then
path = string.sub( path, 1,n)
end
end
-- 防止 .. 的异常路径
path = path .. "." .. moduleName;
path = string.gsub(path, "(%.%.+)", "%.");
return require(path);
end
return funs |
function AddIntellect(keys)
local caster = keys.caster
local ability = keys.ability
if not ability.currentStacks then
ability.currentStacks = 0
end
ability.currentStacks = ability.currentStacks+1
caster:ModifyAgility(ability:GetSpecialValueFor("bonus_agi"))
caster:CalculateStatBonus()
caster:SetModifierStackCount("modifier_stat_boost", ability, ability.currentStacks)
end
function stacksSpawn(keys)
local caster = keys.caster
local ability = keys.ability
if not ability.currentStacks then
ability.currentStacks = 0
end
ability.currentStacks = ability.currentStacks
caster:SetModifierStackCount("modifier_stat_boost", ability, ability.currentStacks)
end |
----------------------------------------------------------------------------------
--- Total RP 3
--- Target widget module
--- ---------------------------------------------------------------------------
--- Copyright 2014 Sylvain Cossement (telkostrasz@telkostrasz.be)
--- Copyright 2014-2019 Renaud "Ellypse" Parize <ellypse@totalrp3.info> @EllypseCelwe
---
--- Licensed under the Apache License, Version 2.0 (the "License");
--- you may not use this file except in compliance with the License.
--- You may obtain a copy of the License at
---
--- http://www.apache.org/licenses/LICENSE-2.0
---
--- Unless required by applicable law or agreed to in writing, software
--- distributed under the License is distributed on an "AS IS" BASIS,
--- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
--- See the License for the specific language governing permissions and
--- limitations under the License.
----------------------------------------------------------------------------------
local ui_TargetFrame;
-- Always build UI on init. Because maybe other modules would like to anchor it on start.
local function onInit()
ui_TargetFrame = CreateFrame("Frame", "TRP3_TargetFrame", UIParent, "TRP3_TargetFrameTemplate");
end
local function onStart()
-- Public accessor
TRP3_API.target = {};
-- imports
local Utils, Events, Globals = TRP3_API.utils, TRP3_API.events, TRP3_API.globals;
local CreateFrame, EMPTY = CreateFrame, Globals.empty;
local loc = TRP3_API.loc;
local isPlayerIC, isUnitIDKnown, getUnitIDCurrentProfile, hasProfile, isIDIgnored;
local getConfigValue, registerConfigKey, registerConfigHandler, setConfigValue = TRP3_API.configuration.getValue, TRP3_API.configuration.registerConfigKey, TRP3_API.configuration.registerHandler, TRP3_API.configuration.setValue;
local assert, pairs, tinsert, table, math, _G = assert, pairs, tinsert, table, math, _G;
local getUnitID, unitIDToInfo, companionIDToInfo = Utils.str.getUnitID, Utils.str.unitIDToInfo, Utils.str.companionIDToInfo;
local setTooltipForSameFrame, mainTooltip, refreshTooltip = TRP3_API.ui.tooltip.setTooltipForSameFrame, TRP3_MainTooltip, TRP3_API.ui.tooltip.refresh;
local get = TRP3_API.profile.getData;
local setupFieldSet = TRP3_API.ui.frame.setupFieldPanel;
local originalGetTargetType, getCompanionFullID = TRP3_API.ui.misc.getTargetType, TRP3_API.ui.misc.getCompanionFullID;
local getCompanionRegisterProfile, getCompanionProfile, companionHasProfile, isCurrentMine;
local TYPE_CHARACTER = TRP3_API.ui.misc.TYPE_CHARACTER;
local TYPE_PET = TRP3_API.ui.misc.TYPE_PET;
local TYPE_BATTLE_PET = TRP3_API.ui.misc.TYPE_BATTLE_PET;
local TYPE_NPC = TRP3_API.ui.misc.TYPE_NPC;
local CONFIG_TARGET_USE = "target_use";
local CONFIG_TARGET_ICON_SIZE = "target_icon_size";
local CONFIG_CONTENT_PREFIX = "target_content_";
local currentTargetID, currentTargetType;
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Buttons logic
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local targetButtons = {};
local uiButtons = {};
local marginLeft = 10;
local loaded = false;
local function createButton(index)
local uiButton = CreateFrame("Button", "TRP3_TargetFrameButton"..index, ui_TargetFrame, "TRP3_TargetFrameButton");
uiButton:ClearAllPoints();
uiButton:RegisterForClicks("LeftButtonUp", "RightButtonUp");
uiButton:SetScript("OnEnter", function(self)
refreshTooltip(self);
end);
uiButton:SetScript("OnLeave", function()
mainTooltip:Hide();
end);
uiButton:SetScript("OnClick", function(self, button)
if self.onClick then
self.onClick(self.unitID, self.targetType, button, self);
end
end);
return uiButton;
end
local function displayButtonsPanel()
local buttonSize = getConfigValue(CONFIG_TARGET_ICON_SIZE);
--Hide all
for _,uiButton in pairs(uiButtons) do
uiButton:Hide();
end
-- Test which buttons to show
local ids = {};
for id, buttonStructure in pairs(targetButtons) do
if buttonStructure.visible and
(not buttonStructure.condition or buttonStructure.condition(currentTargetType, currentTargetID)) and
(not buttonStructure.onlyForType or buttonStructure.onlyForType == currentTargetType) then
tinsert(ids, id);
end
end
table.sort(ids);
local index = 0;
local x = marginLeft;
for _, id in pairs(ids) do
local buttonStructure = targetButtons[id];
local uiButton = uiButtons[index+1];
-- Create the button
if uiButton == nil then
uiButton = createButton(index);
tinsert(uiButtons, uiButton);
end
if buttonStructure.adapter then
buttonStructure.adapter(buttonStructure, currentTargetID, currentTargetType);
end
if type(buttonStructure.icon) == "table" and buttonStructure.icon.Apply then
uiButton:SetNormalTexture(buttonStructure.icon:GetFileID())
uiButton:SetPushedTexture(buttonStructure.icon:GetFileID());
else
uiButton:SetNormalTexture("Interface\\ICONS\\"..buttonStructure.icon);
uiButton:SetPushedTexture("Interface\\ICONS\\"..buttonStructure.icon);
end
uiButton:GetPushedTexture():SetDesaturated(1);
uiButton:SetPoint("TOPLEFT", x, -12);
uiButton:SetWidth(buttonSize);
uiButton:SetHeight(buttonSize);
uiButton:Show();
uiButton.buttonId = id;
uiButton.onClick = buttonStructure.onClick;
uiButton.unitID = currentTargetID;
uiButton.targetType = currentTargetType;
if buttonStructure.tooltip then
setTooltipForSameFrame(uiButton, "TOP", 0, 5, buttonStructure.tooltip, buttonStructure.tooltipSub);
else
setTooltipForSameFrame(uiButton);
end
local uiAlert = _G[uiButton:GetName() .. "Alert"];
uiAlert:Hide();
if buttonStructure.alert and buttonStructure.alertIcon then
uiAlert:Show();
uiAlert:SetWidth(buttonSize / 1.7);
uiAlert:SetHeight(buttonSize / 1.7);
uiAlert:SetTexture(buttonStructure.alertIcon);
end
index = index + 1;
x = x + buttonSize + 2;
end
local oldWidth = ui_TargetFrame:GetWidth();
ui_TargetFrame:SetWidth(math.max(30 + index * buttonSize, 200));
-- Updating anchors so the toolbar expands from the center
local anchor, _, _, tfX, tfY = ui_TargetFrame:GetPoint();
if anchor == "LEFT" then
tfX = tfX - (ui_TargetFrame:GetWidth() - oldWidth) / 2;
elseif anchor == "RIGHT" then
tfX = tfX + (ui_TargetFrame:GetWidth() - oldWidth) / 2;
end
ui_TargetFrame:SetPoint(anchor, tfX, tfY);
ui_TargetFrame:SetHeight(buttonSize + 23);
end
local function registerButton(targetButton)
assert(not loaded, "All button must be registered on addon load. You're too late !");
assert(targetButton and targetButton.id, "Usage: button structure containing 'id' field");
assert(not targetButtons[targetButton.id], "Already registered button id: " .. targetButton.id);
targetButtons[targetButton.id] = targetButton;
end
TRP3_API.target.registerButton = registerButton;
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Display logic
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local function getCharacterInfo()
if currentTargetID == Globals.player_id then
return get("player") or EMPTY;
elseif isUnitIDKnown(currentTargetID) and hasProfile(currentTargetID) then
return getUnitIDCurrentProfile(currentTargetID) or EMPTY;
end
return EMPTY;
end
local function getCompanionInfo(owner, companionID, currentTargetId)
local profile;
if owner == Globals.player_id then
profile = getCompanionProfile(companionID) or EMPTY;
else
profile = getCompanionRegisterProfile(currentTargetId);
end
return profile;
end
local TARGET_NAME_WIDTH = 168;
local function displayTargetName()
if currentTargetType == TYPE_CHARACTER then
local info = getCharacterInfo(currentTargetID);
local name = unitIDToInfo(currentTargetID);
if info.characteristics then
setupFieldSet(ui_TargetFrame, (info.characteristics.FN or name) .. " " .. (info.characteristics.LN or ""), TARGET_NAME_WIDTH);
else
setupFieldSet(ui_TargetFrame, name, TARGET_NAME_WIDTH);
end
elseif currentTargetType == TYPE_PET or currentTargetType == TYPE_BATTLE_PET then
local owner, companionID = companionIDToInfo(currentTargetID);
local companionInfo = getCompanionInfo(owner, companionID, currentTargetID);
local info = companionInfo and companionInfo.data or EMPTY;
setupFieldSet(ui_TargetFrame, info.NA or companionID, TARGET_NAME_WIDTH);
elseif currentTargetType == TYPE_NPC then
setupFieldSet(ui_TargetFrame, UnitName("target"), TARGET_NAME_WIDTH);
end
end
local function displayTargetFrame()
ui_TargetFrame:Show();
displayTargetName();
displayButtonsPanel();
end
local function getTargetType()
return originalGetTargetType("target");
end
local function shouldShowTargetFrame(config)
if currentTargetID == nil or (getConfigValue(config) ~= 1 and (getConfigValue(config) ~= 2 or not isPlayerIC())) then
return false;
elseif currentTargetType == TYPE_CHARACTER and (currentTargetID == Globals.player_id or (not isIDIgnored(currentTargetID) and isUnitIDKnown(currentTargetID))) then
return true;
elseif currentTargetType == TYPE_PET or currentTargetType == TYPE_BATTLE_PET then
local owner = companionIDToInfo(currentTargetID);
return not isIDIgnored(owner) and (isCurrentMine or companionHasProfile(currentTargetID));
elseif currentTargetType == TYPE_NPC then
return TRP3_API.quest and TRP3_API.quest.getActiveCampaignLog();
end
end
local function onTargetChanged()
ui_TargetFrame:Hide();
currentTargetType, isCurrentMine = getTargetType();
if currentTargetType == TYPE_CHARACTER then
currentTargetID = getUnitID("target");
elseif currentTargetType == TYPE_NPC then
currentTargetID = TRP3_API.utils.str.getUnitNPCID("target");
else
currentTargetID = getCompanionFullID("target", currentTargetType);
end
if shouldShowTargetFrame(CONFIG_TARGET_USE) then
displayTargetFrame();
end
end
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Position
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
local CONFIG_TARGET_POS_X = "CONFIG_TARGET_POS_X";
local CONFIG_TARGET_POS_Y = "CONFIG_TARGET_POS_Y";
local CONFIG_TARGET_POS_A = "CONFIG_TARGET_POS_A";
registerConfigKey(CONFIG_TARGET_POS_A, "BOTTOM");
registerConfigKey(CONFIG_TARGET_POS_X, 0);
registerConfigKey(CONFIG_TARGET_POS_Y, 200);
local function reposition()
ui_TargetFrame:SetPoint(getConfigValue("CONFIG_TARGET_POS_A"), UIParent, getConfigValue("CONFIG_TARGET_POS_A"),
getConfigValue("CONFIG_TARGET_POS_X"), getConfigValue("CONFIG_TARGET_POS_Y"));
end
reposition();
function TRP3_API.target.reset()
setConfigValue(CONFIG_TARGET_POS_A, "BOTTOM");
setConfigValue(CONFIG_TARGET_POS_X, 0);
setConfigValue(CONFIG_TARGET_POS_Y, 200);
end
ui_TargetFrame:RegisterForDrag("LeftButton");
ui_TargetFrame:SetMovable(true);
ui_TargetFrame:SetScript("OnDragStart", function(self)
self:StartMoving();
end);
ui_TargetFrame:SetScript("OnDragStop", function(self)
self:StopMovingOrSizing();
local anchor, _, _, x, y = ui_TargetFrame:GetPoint(1);
setConfigValue(CONFIG_TARGET_POS_A, anchor);
setConfigValue(CONFIG_TARGET_POS_X, x);
setConfigValue(CONFIG_TARGET_POS_Y, y);
end);
ui_TargetFrame.caption:ClearAllPoints();
ui_TargetFrame.caption:SetPoint("TOP", 0, 15);
ui_TargetFrame.caption:EnableMouse(true);
ui_TargetFrame.caption:RegisterForDrag("LeftButton");
ui_TargetFrame.caption:SetScript("OnDragStart", function(self)
ui_TargetFrame:GetScript("OnDragStart")(ui_TargetFrame);
end);
ui_TargetFrame.caption:SetScript("OnDragStop", function(self)
ui_TargetFrame:GetScript("OnDragStop")(ui_TargetFrame);
end);
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Config
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
TRP3_API.events.listenToEvent(TRP3_API.events.WORKFLOW_ON_FINISH, function()
loaded = true;
-- Config
registerConfigKey(CONFIG_TARGET_USE, 1);
registerConfigKey(CONFIG_TARGET_ICON_SIZE, 30);
registerConfigHandler({CONFIG_TARGET_USE, CONFIG_TARGET_ICON_SIZE}, onTargetChanged);
tinsert(TRP3_API.configuration.CONFIG_FRAME_PAGE.elements, {
inherit = "TRP3_ConfigH1",
title = loc.CO_TARGETFRAME,
});
tinsert(TRP3_API.configuration.CONFIG_FRAME_PAGE.elements, {
inherit = "TRP3_ConfigDropDown",
widgetName = "TRP3_ConfigTarget_Usage",
title = loc.CO_TARGETFRAME_USE,
help = loc.CO_TARGETFRAME_USE_TT,
listContent = {
{loc.CO_TARGETFRAME_USE_1, 1},
{loc.CO_TARGETFRAME_USE_2, 2},
{loc.CO_TARGETFRAME_USE_3, 3}
},
configKey = CONFIG_TARGET_USE,
listWidth = nil,
listCancel = true,
});
tinsert(TRP3_API.configuration.CONFIG_FRAME_PAGE.elements, {
inherit = "TRP3_ConfigSlider",
title = loc.CO_TARGETFRAME_ICON_SIZE,
configKey = CONFIG_TARGET_ICON_SIZE,
min = 15,
max = 50,
step = 1,
integer = true,
});
tinsert(TRP3_API.configuration.CONFIG_FRAME_PAGE.elements, {
inherit = "TRP3_ConfigButton",
title = loc.CO_MINIMAP_BUTTON_RESET,
text = loc.CO_MINIMAP_BUTTON_RESET_BUTTON,
callback = function()
setConfigValue(CONFIG_TARGET_POS_A, "CENTER");
setConfigValue(CONFIG_TARGET_POS_X, 0);
setConfigValue(CONFIG_TARGET_POS_Y, 0);
ui_TargetFrame:ClearAllPoints();
ui_TargetFrame:SetPoint("CENTER", UIParent, "CENTER", 0, 0);
end,
});
local ids = {};
for buttonID, _ in pairs(targetButtons) do
tinsert(ids, buttonID);
end
table.sort(ids);
for _, buttonID in pairs(ids) do
local button = targetButtons[buttonID];
local configKey = CONFIG_CONTENT_PREFIX .. buttonID;
registerConfigKey(configKey, true);
registerConfigHandler(configKey, function()
button.visible = getConfigValue(configKey);
onTargetChanged();
end);
button.visible = getConfigValue(configKey);
tinsert(TRP3_API.configuration.CONFIG_FRAME_PAGE.elements, {
inherit = "TRP3_ConfigCheck",
title = button.configText or buttonID,
configKey = configKey,
});
end
end);
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-- Init
--*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
isUnitIDKnown = TRP3_API.register.isUnitIDKnown;
getUnitIDCurrentProfile = TRP3_API.register.getUnitIDCurrentProfile;
hasProfile = TRP3_API.register.hasProfile
isPlayerIC = TRP3_API.dashboard.isPlayerIC;
isIDIgnored = TRP3_API.register.isIDIgnored;
getCompanionProfile = TRP3_API.companions.player.getCompanionProfile;
getCompanionRegisterProfile = TRP3_API.companions.register.getCompanionProfile;
companionHasProfile = TRP3_API.companions.register.companionHasProfile;
Utils.event.registerHandler("PLAYER_TARGET_CHANGED", onTargetChanged);
Utils.event.registerHandler("PLAYER_MOUNT_DISPLAY_CHANGED", onTargetChanged);
Events.listenToEvent(Events.REGISTER_ABOUT_READ, onTargetChanged);
Events.listenToEvent(Events.REGISTER_DATA_UPDATED, function(unitID, _, dataType)
if (not unitID or (currentTargetID == unitID)) and (not dataType or dataType == "characteristics" or dataType == "about") then
onTargetChanged();
end
end);
end
local MODULE_STRUCTURE = {
["name"] = "Target bar",
["description"] = "Add a target bar containing several handy buttons about your target !",
["version"] = 1.000,
["id"] = "trp3_target_bar",
["onStart"] = onStart,
["onInit"] = onInit,
["minVersion"] = 3,
};
TRP3_API.module.registerModule(MODULE_STRUCTURE);
|
do
local table = table
local meta = { __index = table}
-- give tables metatable access to the table library
function table.new(t)
t = t or { }
setmetatable(t, meta)
return t
end
function table:imap(fn)
local iter, a, s = ipairs(self)
local closure = function(...)
local i, v = iter(...)
return i, fn(v)
end
return closure, self, 0
end
function table:ifilter(fn)
local iter, a, s = ipairs(self)
local closure = function(...)
local i, v = iter(...)
while i ~= nil and not fn(v) do
i, v = iter(a, i)
end
return i, v
end
return closure, self, 0
end
function table:vomit(depth, seen, out)
depth = depth or 0
-- maintain a list of dumped tables to
-- avoid infinite loops
seen = seen or { }
out = out or { }
local indent = strint.rep(" ", level)
for n, v in pairs(self) do
if type(v) == "table" and not seen[v] then
seen[v] = true
table.insert(out, string.format("%s%s =", indent, tostring(n)))
self.vomit(v, depth + 1, seen, out)
else
table.insert(out, string.format("%s%s = %s", indent, tostring(n), tostring(v)))
end
end
return table.concat(out, "\n")
end
function meta:__tostring()
if DEBUG then
return self:vomit()
else
return table.__tostring(self)
end
end
end
-- string library extensions
do
function string:encode_hex()
local out = table.new()
for tok in self:gmatch("%f[%x](%x%x)") do
if tok:gmatch("^%x+$") then
out:insert(string.char(tonumber(tok, 16)))
end
end
return out:concat("")
end
function string:decode_printable()
local out = table.new()
for tok in self:gmatch(".") do
if tok:match("%g") then
out:insert(tok)
else
out:insert(".")
end
end
return out:concat("")
end
function string:decode_hex()
local out = table.new()
for tok in self:gmatch(".") do
out:insert(string.format("%02x", string.byte(tok)))
end
return out:concat(" ")
end
end
-- Assertions library
check = { }
do
function raise(title, msg, lvl)
lvl = lvl or 3
local info = debug.getinfo(lvl)
error(
string.format(
"%s:%d: %s: %s",
info.short_src,
info.currentline,
title,
msg
)
)
end
function check.tables_equal(exp, act)
if exp == act then return end
for n, e in pairs(exp) do
local a = act[n]
if a ~= e then
raise(
"tables unequal",
string.format(
"item with key %s differs (%s ~= %s)",
tostring(n),
tostring(e),
tostring(a)
)
)
end
end
end
function check.arrays_equal(exp, act)
if exp == act then return end
if #exp ~= #act then
raise(
"arrays unequal",
string.format(
"lengths differ (#%d ~= #%d)",
#exp, #act
)
)
end
for i, e in ipairs(exp) do
local a = act[i]
if e ~= a then
raise(
"arrays unequal",
string.format(
"item at index %d differs (%s ~= %s)",
i, tostring(e), tostring(a)
)
)
end
end
end
function check.raises(fn, msg)
local ok, err = pcall(fn)
if ok then
raise("did not throw", msg or "")
end
end
function check.check(expr, msg)
if not expr then
raise("assertion failed", msg or "")
end
end
end
-- Test runner
function run_tests(tests)
local failed = false
for name, fn in pairs(tests) do
ok, err = pcall(fn)
if not ok then
print("--", name, err)
failed = true
end
end
return not failed
end
-- Misc utils
packet = { }
do
function packet.construct_ip4(hdr, data)
local rb = RawBuffer.new(hdr .. data)
local dd = DecodeData.new()
local p = Packet.new(rb)
local ip_api = dd:get_ip_api()
ip_api:set_ip4(rb)
p:set_data(#hdr, #data)
p:set { proto_bits = 4 }
p:set_decode_data(dd)
return p
end
end
|
function initVariables()
w,h =term.getSize() -- 51, 19
shipYPos = 10
shipXPos = 24
shipFacingRight=true
pressedKey=0
killedState = false
lives=3
score =0
aliens=10
killedDelay=0
running=true
moveLeft=false
moveRight=true
moveUp=false
moveDown=false
human1x = 3
human1y = 18
human2x = 15
human2y = 18
human3x = 40
human3y = 18
human4x = 60
human4y = 18
human5x = 70
human5y = 18
human6x = 85
human6y = 18
human1 = true
human2 = true
human3 = true
human4 = true
human5 = true
human6 = true
human1Abducted=false
human2Abducted=false
human3Abducted=false
human4Abducted=false
human5Abducted=false
human6Abducted=false
humansLeft=6
bulletXPos=0
bulletYPos=0
bulletState=false
bulletGoingRight=true
alien1 = false
alien1y = 2
alien1x =84
alien1Abduct=false
alien1Carry=false
alien1Step=2
stepValue=0.1 --0.1
end
function clear()
term.clear()
term.setCursorPos(1,1)
term.setBackgroundColour(colours.black)
term.setTextColour(colours.white)
end
function drawGrass()
term.setCursorPos(1,h)
term.setBackgroundColour(colours.green)
write(string.rep(" ",w))
term.setCursorPos(1,1)
term.setBackgroundColour(colours.black)
end
function drawShip(yPos)
if shipFacingRight==true then
term.setCursorPos(24,yPos)
term.setBackgroundColour(colours.orange)
print(" ")
term.setCursorPos(25,yPos)
term.setBackgroundColour(colours.white)
print(" ")
else
term.setCursorPos(26,yPos)
term.setBackgroundColour(colours.orange)
print(" ")
term.setCursorPos(24,yPos)
term.setBackgroundColour(colours.white)
print(" ")
end
term.setBackgroundColour(colours.black)
end
function delShip(yPos)
term.setCursorPos(24,yPos)
term.setBackgroundColour(colours.black)
print(" ")
end
function drawAliens()
term.setBackgroundColour(colours.cyan)
if alien1==true then
term.setCursorPos(alien1x,alien1y)
write(" ")
end
term.setBackgroundColour(colours.black)
end
function delAliens()
term.setBackgroundColour(colours.black)
if alien1==true then
term.setCursorPos(alien1x,alien1y)
write(" ")
end
end
function drawHumans()
term.setBackgroundColour(colours.pink)
if human1==true then
term.setCursorPos(human1x,human1y)
write(" ")
end
if human2==true then
term.setCursorPos(human2x,human2y)
write(" ")
end
if human3==true then
term.setCursorPos(human3x,human3y)
write(" ")
end
if human4==true then
term.setCursorPos(human4x,human4y)
write(" ")
end
if human5==true then
term.setCursorPos(human5x,human5y)
write(" ")
end
if human6==true then
term.setCursorPos(human6x,human6y)
write(" ")
end
term.setBackgroundColour(colours.green)
term.setCursorPos(1,19)
write(" ")
term.setBackgroundColour(colours.black)
end
function delHumans()
term.setBackgroundColour(colours.black)
if human1==true then
term.setCursorPos(human1x,human1y)
write(" ")
end
if human2==true then
term.setCursorPos(human2x,human2y)
write(" ")
end
if human3==true then
term.setCursorPos(human3x,human3y)
write(" ")
end
if human4==true then
term.setCursorPos(human4x,human4y)
write(" ")
end
if human5==true then
term.setCursorPos(human5x,human5y)
write(" ")
end
if human6==true then
term.setCursorPos(human6x,human6y)
write(" ")
end
end
function drawBullet()
term.setBackgroundColour(colours.yellow)
term.setCursorPos(bulletXPos,bulletYPos)
write(" ")
term.setBackgroundColour(colours.black)
end
function delBullet()
term.setBackgroundColour(colours.black)
term.setCursorPos(bulletXPos,bulletYPos)
write(" ")
end
function newHighScoreTable()
name1="Dan" score1=1000
name2="Fred" score2=800
name3="Fred" score3=600
name4="Fred" score4=400
name5="Fred" score5=200
local highScoreTable = {{name1, score1}, {name2,score2}, {name3,score3}, {name4,score4}, {name5,score5}}
local newHighScoreStr = textutils.serialize(highScoreTable)
--print("new table "..newHighScoreStr)-- debug
fs.makeDir("protectordata")
local handle = fs.open("protectordata/pdata","w")
handle.write(newHighScoreStr)
handle.close()
end
function printCent(xpos,text)
local ypos = w/2 - (string.len(text)/2)
term.setCursorPos(ypos,xpos)
write(text)
end
function introHighScoreTable()
term.clear()
term.setCursorPos(35,1) write("SPACE WHEN READY")
if fs.exists("protectordata")==false then
newHighScoreTable()
end
local handle = fs.open("protectordata/pdata","r")
local dataStr = handle.readAll()
handle.close()
--print("dataStr "..dataStr)
highScoreData = textutils.unserialize(dataStr)
--print(highScoreData[2])
name1 = highScoreData[1][1] score1 = highScoreData[1][2]
name2 = highScoreData[2][1] score2 = highScoreData[2][2]
name3 = highScoreData[3][1] score3 = highScoreData[3][2]
name4 = highScoreData[4][1] score4 = highScoreData[4][2]
name5 = highScoreData[5][1] score5 = highScoreData[5][2]
term.setTextColour(colours.yellow)
printCent(5,"HIGH SCORES")
term.setTextColour(colours.white)
printCent(7,name1.." "..score1)
printCent(8,name2.." "..score2)
printCent(9,name3.." "..score3)
printCent(10,name4.." "..score4)
printCent(11,name5.." "..score5)
end
function printScore()
term.clear()
term.setTextColour(colours.yellow)
printCent(3,"HIGH SCORES")
term.setTextColour(colours.white)
printCent(5,name1.." "..score1)
printCent(6,name2.." "..score2)
printCent(7,name3.." "..score3)
printCent(8,name4.." "..score4)
printCent(9,name5.." "..score5)
playAgain()
end
function rewriteScores()
if newScore > score1 then
name5=name4 score5=score4
name4=name3 score4=score3
name3=name2 score3=score2
name2=name1 score2=score1
name1= newName score1=newScore
elseif newScore > score2 then
name5=name4 score5=score4
name4=name3 score4=score3
name3=name2 score3=score2
name2=newName score2=newScore
elseif newScore > score3 then
name5=name4 score5=score4
name4=name3 score4=score3
name3=newName score3=newScore
elseif newScore > score4 then
name5=name4 score5=score4
name4=newName score4=newScore
elseif newScore > score5 then
name5=newName score5=newScore
end
local highScoreTable = {{name1, score1}, {name2,score2}, {name3,score3}, {name4,score4}, {name5,score5}}
local newHighScoreStr = textutils.serialize(highScoreTable)
local handle = fs.open("protectordata/pdata","w")
handle.write(newHighScoreStr)
handle.close()
end
function newHighScoreObtained()
clear()
term.setTextColour(colours.yellow)
printCent(8,"CONGRATULATIONS")
term.setTextColour(colours.white)
printCent(10,"You have a new high score!")
printCent(12,"Enter your name: ")
printCent(14," ")
local newNameStr = ""
local newNameStrLen = 0
while true do
local event,p1,p2,p3 = os.pullEvent()
if event=="char" and newNameStrLen < 9 then
newNameStr=newNameStr..p1
newNameStrLen=newNameStrLen+1
printCent(14,newNameStr.." ")
elseif event=="key" and p1 == 14 and newNameStrLen>0 then
newNameStr=string.sub(newNameStr,1,string.len(newNameStr)-1)
newNameStrLen=newNameStrLen-1
term.setCursorPos(1,14)
write(string.rep(" ",w))
printCent(14,newNameStr.." ")
elseif event=="key" and p1== 28 then
newName = newNameStr
newScore = score
rewriteScores()
printScore()
end
end
end
function highScore()
if fs.exists("protectordata")==false then
newHighScoreTable()
end
local handle = fs.open("protectordata/pdata","r")
local dataStr = handle.readAll()
handle.close()
--print("dataStr "..dataStr)
highScoreData = textutils.unserialize(dataStr)
--print(highScoreData[2])
name1 = highScoreData[1][1] score1 = highScoreData[1][2]
name2 = highScoreData[2][1] score2 = highScoreData[2][2]
name3 = highScoreData[3][1] score3 = highScoreData[3][2]
name4 = highScoreData[4][1] score4 = highScoreData[4][2]
name5 = highScoreData[5][1] score5 = highScoreData[5][2]
if score>score5 then
newHighScoreObtained()
end
printScore()
end
function gameOver(gameOverMsg)
clear()
delShip(shipYPos)
term.setCursorPos(40,1)
write("Lives: "..lives.." ")
term.setCursorPos(5,1)
if score<0 then score=0 end
write("Score: "..score.." ")
term.setTextColour(colours.red)
term.setCursorPos( (w/2)-5 , h/2 -1)
print("GAME OVER")
term.setCursorPos( (w/2)-(string.len(gameOverMsg)/2) , (h/2)+1)
print(gameOverMsg)
term.setTextColour(colours.white)
running=false
sleep(1.5)
highScore()-- new
--playAgain
end
function playAgain()
sleep(1)
printCent(12,"Play again (Y or N)")
while true do
local event,p1,p2,p3 = os.pullEvent()
if event=="char" then
if string.lower(p1)=="y" then
runGame()
elseif string.lower(p1)=="n" then
os.shutdown()
end
end
end
end
function killPlayer()
moveLeft=false
moveRight=false
moveUp=false
moveDown=false
delShip(shipYPos)
lives=lives-1
if lives==0 then
gameOver("OUT OF LIVES")
end
killedState=true
--killedStr="true"
end
function left()
delHumans()
delAliens()
human1x=human1x+1
human2x=human2x+1
human3x=human3x+1
human4x=human4x+1
human5x=human5x+1
human6x=human6x+1
alien1x=alien1x+1
if human1x>100 then human1x=0 end
if human2x>100 then human2x=0 end
if human3x>100 then human3x=0 end
if human4x>100 then human4x=0 end
if human5x>100 then human5x=0 end
if human6x>100 then human6x=0 end
if alien1x>100 then alien1x=0 end
shipFacingRight=false
checkShipCollision()
drawShip(shipYPos)
drawHumans()
drawAliens()
drawBorder()
moveRight=false
end
function right()
delHumans()
delAliens()
human1x=human1x-1
human2x=human2x-1
human3x=human3x-1
human4x=human4x-1
human5x=human5x-1
human6x=human6x-1
alien1x=alien1x-1
if human1x<1 then human1x=100 end
if human2x<1 then human2x=100 end
if human3x<1 then human3x=100 end
if human4x<1 then human4x=100 end
if human5x<1 then human5x=100 end
if human6x<1 then human6x=100 end
if alien1x<1 then alien1x=100 end
shipFacingRight=true
checkShipCollision()
drawShip(shipYPos)
drawHumans()
drawAliens()
drawBorder()
moveLeft=false
end
function up()
if shipYPos > 2 then
delShip(shipYPos)
shipYPos=shipYPos-1
checkShipCollision()
drawShip(shipYPos)
end
moveUp=false
moveDown=false
end
function down()
if shipYPos<17 then
delShip(shipYPos)
shipYPos=shipYPos+1
checkShipCollision()
drawShip(shipYPos)
end
moveDown=false
moveUp=false
end
function checkShipCollision()
if killedState==false then
if shipYPos == alien1y and alien1== true then
if alien1x >= 22 and alien1x <= 26 then
alien1Hit()
killPlayer()
end
elseif human1==true and human1y==shipYPos then
if human1x >=24 and human1x <= 26 then
human1=false
humanHitRoutine()
end
elseif human2==true and human2y==shipYPos then
if human2x >=24 and human2x <= 26 then
human2=false
humanHitRoutine()
end
elseif human3==true and human3y==shipYPos then
if human3x >=24 and human3x <= 26 then
human3=false
humanHitRoutine()
end
elseif human4==true and human4y==shipYPos then
if human4x >=24 and human4x <= 26 then
human4=false
humanHitRoutine()
end
elseif human5==true and human5y==shipYPos then
if human5x >=24 and human5x <= 26 then
human5=false
humanHitRoutine()
end
elseif human6==true and human6y==shipYPos then
if human6x >=24 and human6x <= 26 then
human6=false
humanHitRoutine()
end
end
end
end
function alienGen()
if alien1==false then
local alienChance= math.random(1,10)
if alienChance==1 then
if human1==true then
alien1 = true
alien1y = 2
alien1x = human1x - 1
end
elseif alienChance == 2 then
if human2==true then
alien1 = true
alien1y=2
alien1x = human2x-1
end
elseif alienChance == 3 then
if human3==true then
alien1 = true
alien1y=2
alien1x = human3x-1
end
elseif alienChance == 4 then
if human4==true then
alien1 = true
alien1y=2
alien1x = human4x-1
end
elseif alienChance == 5 then
if human5==true then
alien1 = true
alien1y=2
alien1x = human5x-1
end
elseif alienChance == 6 then
if human6==true then
alien1 = true
alien1y=2
alien1x = human6x-1
end
end
end
end
function alienDown()
if alien1==true and alien1Abduct==false and alien1y<19 then
alien1Step=alien1Step+stepValue
alien1y=math.floor(alien1Step)
if alien1==true and alien1Abduct==false and alien1y==17 then
alien1Abduct=true
alien1Carry=true
alien1Step=17
end
end
end
function alienRoutine()
alien1=false
alien1Step=2
if alien1Carry==true then
score= score -50
humansLeft=humansLeft-1
end
alien1Abduct=false
alien1Carry=false
if humansLeft==0 then
gameOver("NO HUMANS LEFT")
end
end
function alienUp()
if alien1==true and alien1Abduct==true then
if alien1x+1 == human1x then
human1Abducted=true
alien1Step=alien1Step-stepValue
alien1y=math.floor(alien1Step)
human1y=math.floor(alien1Step)+1
human1x=alien1x+1
if human1y<=2 then
alienRoutine()
human1=false
end
elseif alien1x+1 == human2x then
human2Abducted=true
alien1Step=alien1Step-stepValue
alien1y=math.floor(alien1Step)
human2y=math.floor(alien1Step)+1
human2x=alien1x+1
if human2y<=2 then
alienRoutine()
human2=false
end
elseif alien1x+1 == human3x then
human3Abducted=true
alien1Step=alien1Step-stepValue
alien1y=math.floor(alien1Step)
human3y=math.floor(alien1Step)+1
human3x=alien1x+1
if human3y<=2 then
alienRoutine()
human3=false
end
elseif alien1x+1 == human4x then
human4Abducted=true
alien1Step=alien1Step-stepValue
alien1y=math.floor(alien1Step)
human4y=math.floor(alien1Step)+1
human4x=alien1x+1
if human4y<=2 then
alienRoutine()
human4=false
end
elseif alien1x+1 == human5x then
human5Abducted=true
alien1Step=alien1Step-stepValue
alien1y=math.floor(alien1Step)
human5y=math.floor(alien1Step)+1
human5x=alien1x+1
if human5y<=2 then
alienRoutine()
human5=false
end
elseif alien1x+1 == human6x then
human6Abducted=true
alien1Step=alien1Step-stepValue
alien1y=math.floor(alien1Step)
human6y=math.floor(alien1Step)+1
human6x=alien1x+1
if human6y<=2 then
alienRoutine()
human6=false
end
end
end
if alien1==false then alienGen() end
end
function keyPress() -- 200 UP, 208 DOWN, 203 LEFT, 205 RIGHT, 57 SPACE, 16 Q
if pressedKey==200 or pressedKey == 17 then -- up
moveUp=true
moveDown=false
elseif pressedKey==208 or pressedKey == 31 then -- DOWN
moveDown=true
moveUp=false
elseif pressedKey==203 or pressedKey == 30 then -- left
moveLeft=true
moveRight=false
elseif pressedKey==205 or pressedKey == 32 then -- right
moveRight=true
moveLeft=false
elseif pressedKey==57 then -- space
if bulletState==false then
bulletYPos=shipYPos
bulletState=true
if shipFacingRight==true then
bulletXPos=shipXPos+3
bulletGoingRight=true
else
bulletXPos=shipXPos-1
bulletGoingRight=false
end
end
elseif pressedKey==25 then -- q (use 25 if p for quit)
gameOver("YOU QUIT")
end
--term.setCursorPos(30,1)
--write(pressedKey.." ")
end
function removeBullet()
if bulletGoingRight==true then
bulletXPos = 60
else
bulletXPos = -10
end
end
function alien1Hit()
delAliens()
alien1=false
score=score+20
alien1Step=2
alien1Abduct=false
removeBullet()
drawAliens()
end
function humanHitRoutine()
score=score-50
humansLeft=humansLeft-1
if humansLeft==0 then
gameOver("NO HUMANS LEFT")
end
if alien1Carry==true then alien1Carry=false end
end
function checkBulletCollision()
if alien1 == true and bulletYPos == alien1y then
if bulletXPos >= alien1x and bulletXPos <= alien1x + 3 then
alien1Hit()
end
end
if human1 == true and bulletYPos == human1y and bulletXPos == human1x then human1=false humanHitRoutine() end
if human2 == true and bulletYPos == human2y and bulletXPos == human2x then human2=false humanHitRoutine() end
if human3 == true and bulletYPos == human3y and bulletXPos == human3x then human3=false humanHitRoutine() end
if human4 == true and bulletYPos == human4y and bulletXPos == human4x then human4=false humanHitRoutine() end
if human5 == true and bulletYPos == human5y and bulletXPos == human5x then human5=false humanHitRoutine() end
if human6 == true and bulletYPos == human6y and bulletXPos == human6x then human6=false humanHitRoutine() end
end
function drawBorder()
term.setBackgroundColour(colours.black)
for i=1,h-2 do
term.setCursorPos(1,i+1)
write(" ")
term.setCursorPos(w,i+1)
write(" ")
end
end
function dropHumans()
if alien1Abduct==false then
if human1y<18 then human1y = human1y+1 end
if human2y<18 then human2y = human2y+1 end
if human3y<18 then human3y = human3y+1 end
if human4y<18 then human4y = human4y+1 end
if human5y<18 then human5y = human5y+1 end
if human6y<18 then human6y = human6y+1 end
end
end
function gameControl()
gameTimer=os.startTimer(0.1)
while running do
local event,p1,p2,p3 = os.pullEvent()
if score<0 then score=0 end
term.setCursorPos(1,1)
term.setBackgroundColour(colours.yellow)
write(string.rep(" ",w))
term.setTextColour(colours.red)
term.setCursorPos(5,1)
write("Score: "..score.." ")
term.setCursorPos(20,1)
write("Humans Left: "..humansLeft.." ")
term.setCursorPos(40,1)
write("Lives: "..lives.." ")
term.setBackgroundColour(colours.black)
term.setTextColour(colours.white)
local newStepValue = (score+0.1)/1000
if newStepValue > stepValue then stepValue= newStepValue end
if stepValue>0.4 then stepValue=0.4 end
--[[DEBUG
term.setCursorPos(2,2)
write("human1x "..human1x.." ")
term.setCursorPos(2,3)
write("human2x "..human2x.." ")
term.setCursorPos(2,4)
write("human3x "..human3x.." ")
term.setCursorPos(2,5)
write("human4x "..human4x.." ")
term.setCursorPos(2,6)
write("human5x "..human5x.." ")
term.setCursorPos(2,7)
write("human6x "..human6x.." ")
]]--
if event=="timer" and gameTimer == p1 then
if killedState==true then
delShip(shipYPos)
delHumans()
dropHumans()
drawHumans()
killedDelay = killedDelay + 1
if killedDelay>20 then
shipYPos = 10
killedState = false
term.setBackgroundColour(colours.black)
for i = 2, h-2 do
term.setCursorPos(1,i)
write(string.rep(" ",w))
end
drawGrass()
if shipFacingRight==true then
moveRight=true
moveLeft=false
else
moveLeft=true
moveRight=false
end
killedDelay=0
end
else
--alienGen()
drawShip(shipYPos)
delAliens()
delHumans()
dropHumans()
alienDown()
alienUp()
drawAliens()
drawHumans()
drawBorder()
end
if bulletState==true then
if bulletGoingRight==true then
delBullet()
bulletXPos=bulletXPos+1
checkBulletCollision()
if bulletXPos>45 then
bulletState=false
else
if killedState==false then drawBullet() end
end
else
delBullet()
bulletXPos=bulletXPos-1
checkBulletCollision()
if bulletXPos<6 then
bulletState=false
else
if killedState==false then drawBullet() end
end
end
end
if moveLeft==true then
left()
end
if moveRight==true then
right()
end
if moveUp==true then
up()
end
if moveDown==true then
down()
end
gameTimer=os.startTimer(0.1)
elseif event=="key" and killedState==false then
pressedKey=p1
keyPress()
end
end
end
function runGame()
initVariables()
clear()
drawGrass()
drawHumans()
alienGen()
gameControl()
end
function pix(xCo,yCo,text,col)
if col== nil then term.setBackgroundColour(colours.black)
elseif col =="white" then term.setBackgroundColour(colours.white)
elseif col =="green" then term.setBackgroundColour(colours.green)
elseif col =="pink" then term.setBackgroundColour(colours.pink)
elseif col =="orange" then term.setBackgroundColour(colours.orange)
elseif col =="cyan" then term.setBackgroundColour(colours.cyan)
elseif col =="yellow" then term.setBackgroundColour(colours.yellow)
end
term.setCursorPos(xCo,yCo)
write(text)
end
function drawHumanPix()
drawGrass()
pix(23,humanPixY," ","pink")
pix(27,humanPixY," ","pink")
pix(24,humanPixY-1," ","pink")
pix(26,humanPixY-1," ","pink")
pix(25,humanPixY-2," ","pink")
pix(23,humanPixY-3," ","pink")
pix(25,humanPixY-4," ","pink")
pix(24,humanPixY-5," ","pink")
pix(24,humanPixY-6," ","pink")
end
function delHumanPix()
pix(23,humanPixY," ")
pix(27,humanPixY," ")
pix(24,humanPixY-1," ")
pix(26,humanPixY-1," ")
pix(25,humanPixY-2," ")
pix(23,humanPixY-3," ")
pix(25,humanPixY-4," ")
pix(24,humanPixY-5," ")
pix(24,humanPixY-6," ")
end
function drawAlienPix()
pix(19,alienPixY," ","cyan")
pix(17,alienPixY+1," ","cyan")
pix(19,alienPixY+2," ","cyan")
end
function delAlienPix()
pix(19,alienPixY," ")
pix(17,alienPixY+1," ")
pix(19,alienPixY+2," ")
end
function drawShipPix()
pix(shipPixX+3,3," ","white")
pix(shipPixX+3,4," ","white")
pix(shipPixX+3,5," ","white")
pix(shipPixX+3,6," ","white")
pix(shipPixX+3,7," ","white")
pix(shipPixX+2,5," ","orange")
pix(shipPixX+2,6," ","yellow")
pix(shipPixX+2,7," ","orange")
pix(shipPixX,6," ","orange")
pix(shipPixX+14,5," ","cyan")
end
function delShipPix()
pix(shipPixX+3,3," ")
pix(shipPixX+3,4," ")
pix(shipPixX+3,5," ")
pix(shipPixX+3,6," ")
pix(shipPixX+3,7," ")
pix(shipPixX+2,5," ")
pix(shipPixX+2,6," ")
pix(shipPixX+2,7," ")
pix(shipPixX,6," ")
pix(shipPixX+14,5," ")
end
function line1()
pix(8,4," ","white")
pix(12,4," ","white")
pix(16,4," ","white")
pix(20,4," ","white")
pix(24,4," ","white")
pix(28,4," ","white")
pix(32,4," ","white")
pix(36,4," ","white")
pix(40,4," ","white")
end
function line2()
pix(8,5," ","white")
pix(10,5," ","white")
pix(12,5," ","white")
pix(14,5," ","white")
pix(16,5," ","white")
pix(18,5," ","white")
pix(21,5," ","white")
pix(24,5," ","white")
pix(28,5," ","white")
pix(33,5," ","white")
pix(36,5," ","white")
pix(38,5," ","white")
pix(40,5," ","white")
pix(42,5," ","white")
end
function line3()
pix(8,6," ","white")
pix(12,6," ","white")
pix(16,6," ","white")
pix(18,6," ","white")
pix(21,6," ","white")
pix(24,6," ","white")
pix(28,6," ","white")
pix(33,6," ","white")
pix(36,6," ","white")
pix(38,6," ","white")
pix(40,6," ","white")
end
function line4()
pix(8,7," ","white")
pix(12,7," ","white")
pix(16,7," ","white")
pix(18,7," ","white")
pix(21,7," ","white")
pix(24,7," ","white")
pix(28,7," ","white")
pix(33,7," ","white")
pix(36,7," ","white")
pix(38,7," ","white")
pix(40,7," ","white")
end
function line5()
pix(8,8," ","white")
pix(12,8," ","white")
pix(14,8," ","white")
pix(16,8," ","white")
pix(21,8," ","white")
pix(24,8," ","white")
pix(28,8," ","white")
pix(33,8," ","white")
pix(36,8," ","white")
pix(40,8," ","white")
pix(42,8," ","white")
end
function startScreen()
clear()
term.setBackgroundColour(colours.green)
term.setCursorPos(1,h)
write(string.rep(" ",w))
local screenStage=0
screenTimer=os.startTimer(0.1)
while true do
local event,p1,p2,p3=os.pullEvent()
if event=="key"and p1==57 then
term.setBackgroundColour(colours.black)
clear()
runGame()
elseif event=="timer" and screenTimer == p1 then
--term.setCursorPos(1,1) write("screenStage: "..screenStage.." ")
term.setBackgroundColour(colours.black)
term.setCursorPos(35,1) write("SPACE WHEN READY")
if screenStage>0 and screenStage<0.5 then
humanPixY = 18
drawHumanPix()
elseif screenStage>2 and screenStage<2.9 then
alienPixY = -2
drawAlienPix()
elseif screenStage>3 and screenStage<3.9 then
alienPixY = -2
delAlienPix()
alienPixY = -1
drawAlienPix()
elseif screenStage>4 and screenStage<4.9 then
alienPixY = -1
delAlienPix()
alienPixY = 0
drawAlienPix()
elseif screenStage>5 and screenStage<5.9 then
alienPixY = 0
delAlienPix()
alienPixY = 1
drawAlienPix()
elseif screenStage>6 and screenStage<6.9 then
alienPixY = 1
delAlienPix()
alienPixY = 2
drawAlienPix()
elseif screenStage>7 and screenStage<7.9 then
alienPixY = 2
delAlienPix()
alienPixY = 3
drawAlienPix()
elseif screenStage>8 and screenStage<8.9 then
alienPixY = 3
delAlienPix()
alienPixY = 4
drawAlienPix()
elseif screenStage>8 and screenStage<9.9 then
alienPixY = 4
delAlienPix()
alienPixY = 5
drawAlienPix()
elseif screenStage>10 and screenStage<10.4 then
pix(25,8," ","yellow")
pix(25,9," ","yellow")
pix(25,10," ","yellow")
pix(25,11," ","yellow")
pix(25,17," ","yellow")
pix(25,18," ","yellow")
elseif screenStage>10.4 and screenStage<10.6 then
pix(25,8," ","yellow")
pix(25,9," ","yellow")
pix(25,10," ","yellow")
pix(24,11," ","yellow")
pix(24,12," ","yellow")
pix(24,13," ","yellow")
pix(24,14," ","yellow")
pix(23,15," ","yellow")
pix(23,16," ","yellow")
pix(23,17," ","yellow")
pix(23,18," ","yellow")
humanPixY = 18
drawHumanPix()
elseif screenStage>10.6 and screenStage<10.8 then
pix(25,8," ","yellow")
pix(25,9," ","yellow")
pix(24,10," ","yellow")
pix(24,11," ","yellow")
pix(24,12," ","yellow")
pix(23,13," ","yellow")
pix(23,14," ","yellow")
pix(23,15," ","yellow")
pix(22,16," ","yellow")
pix(22,17," ","yellow")
pix(22,18," ","yellow")
humanPixY = 18
drawHumanPix()
elseif screenStage>10.8 and screenStage<11 then
pix(25,8," ","yellow")
pix(24,9," ","yellow")
pix(24,10," ","yellow")
pix(23,11," ","yellow")
pix(23,12," ","yellow")
pix(22,13," ","yellow")
pix(22,14," ","yellow")
pix(21,15," ","yellow")
pix(21,16," ","yellow")
pix(20,17," ","yellow")
pix(20,18," ","yellow")
humanPixY = 18
drawHumanPix()
elseif screenStage>11.9 and screenStage<12 then
pix(1,6," ","yellow")
elseif screenStage>12 and screenStage<12.1 then
pix(1,6," ")
pix(3,6," ","yellow")
elseif screenStage>12.1 and screenStage<12.2 then
pix(3,6," ")
pix(5,6," ","yellow")
elseif screenStage>12.2 and screenStage<12.3 then
pix(5,6," ")
pix(7,6," ","yellow")
elseif screenStage>12.3 and screenStage<12.4 then
pix(7,6," ")
pix(9,6," ","yellow")
elseif screenStage>12.4 and screenStage<12.5 then
pix(9,6," ")
pix(11,6," ","yellow")
elseif screenStage>12.5 and screenStage<12.6 then
pix(11,6," ")
pix(13,6," ","yellow")
elseif screenStage>12.6 and screenStage<12.7 then
pix(13,6," ")
pix(15,6," ","yellow")
elseif screenStage>12.7 and screenStage<12.8 then
term.setBackgroundColour(colours.black)
for i= 5, h-1 do
term.setCursorPos(15,i)
write(" ")
end
humanPixY=18
drawHumanPix()
elseif screenStage>13 and screenStage<13.1 then
shipPixX= -16
drawShipPix()
elseif screenStage>13 and screenStage<13.1 then
delShipPix()
shipPixX= -15
drawShipPix()
elseif screenStage>13.1 and screenStage<13.2 then
delShipPix()
shipPixX= -12
drawShipPix()
elseif screenStage>13.2 and screenStage<13.3 then
delShipPix()
shipPixX= -9
drawShipPix()
elseif screenStage>13.2 and screenStage<13.3 then
delShipPix()
shipPixX= -6
drawShipPix()
elseif screenStage>13.3 and screenStage<13.4 then
delShipPix()
shipPixX= -3
drawShipPix()
elseif screenStage>13.4 and screenStage<13.5 then
delShipPix()
shipPixX= 0
drawShipPix()
elseif screenStage>13.6 and screenStage<13.7 then
delShipPix()
shipPixX= 3
drawShipPix()
elseif screenStage>13.8 and screenStage<13.9 then
delShipPix()
shipPixX= 6
drawShipPix()
elseif screenStage>13.9 and screenStage<14 then
delShipPix()
shipPixX= 9
drawShipPix()
elseif screenStage>14.1 and screenStage<14.2 then
delShipPix()
shipPixX= 12
drawShipPix()
elseif screenStage>14.2 and screenStage<14.3 then
delShipPix()
shipPixX= 15
drawShipPix()
elseif screenStage>14.3 and screenStage<14.4 then
delShipPix()
shipPixX= 18
drawShipPix()
elseif screenStage>14.4 and screenStage<14.5 then
delShipPix()
shipPixX= 21
drawShipPix()
elseif screenStage>14.5 and screenStage<14.6 then
delShipPix()
shipPixX= 24
drawShipPix()
elseif screenStage>14.6 and screenStage<14.7 then
delShipPix()
shipPixX= 27
drawShipPix()
elseif screenStage>14.7 and screenStage<14.8 then
delShipPix()
shipPixX= 30
drawShipPix()
elseif screenStage>14.8 and screenStage<14.9 then
delShipPix()
shipPixX= 33
drawShipPix()
elseif screenStage>14.9 and screenStage<15 then
delShipPix()
shipPixX= 36
drawShipPix()
elseif screenStage>15 and screenStage<15.1 then
delShipPix()
shipPixX= 39
drawShipPix()
elseif screenStage>15.1 and screenStage<15.2 then
delShipPix()
shipPixX= 41
drawShipPix()
elseif screenStage>15.2 and screenStage<15.3 then
delShipPix()
shipPixX= 44
drawShipPix()
elseif screenStage>15.3 and screenStage<15.4 then
delShipPix()
shipPixX= 47
drawShipPix()
elseif screenStage>15.4 and screenStage<15.5 then
delShipPix()
shipPixX= 50
drawShipPix()
elseif screenStage>15.5 and screenStage<15.6 then
delShipPix()
elseif screenStage>16 and screenStage<16.9 then
humanPixY=18
delHumanPix()
line1()
line2()
line3()
line4()
line5()
elseif screenStage>17 and screenStage<22 then
term.setCursorPos((w/2)-6,10)
write("by FredTHead")
term.setCursorPos((w/2)-13,12)
write("WSAD or arrow keys to move")
term.setCursorPos((w/2)-6,13)
write("SPACE to fire")
term.setCursorPos((w/2)-4,14)
write("P to quit")
term.setCursorPos((w/2)-8,16)
write("Fire when ready")
elseif screenStage>22.1 and screenStage <27 then
introHighScoreTable()
elseif screenStage>27 then
term.setBackgroundColour(colours.black)
for i = 2,h-1 do
term.setCursorPos(1,i)
write(string.rep(" ",w-1))
end
screenStage=0
end
screenStage=screenStage+0.1
screenTimer=os.startTimer(0.025)
end
end
end
w,h =term.getSize()
if term.isColour() and w==51 then
initVariables()
startScreen()
else
term.clear()
term.setCursorPos(1,1)
print("I'm sorry, Protector requires an Advanced Computer to run")
print(" ")
end |
require 'src/Dependencies'
-- current font being used
currFont = fonts["skia"]
velY = 0 -- scrolling text velocity
function love.load()
-- threas are used to isolate tasking things
thread = love.thread.newThread("save_thread.lua")
channel = love.thread.newChannel()
love.graphics.setDefaultFilter('nearest', 'nearest')
love.window.setTitle('Project Gamma')
-- used to emualte the size changes
push:setupScreen(VIRTUAL_WIDTH, VIRTUAL_HEIGHT, WINDOW_WIDTH, WINDOW_HEIGHT, {
fullscreen = false,
resizable = false,
vsync = true
})
-- used to run seperate parts of the game
stateMachine = StateMachine {
['start'] = function() return StartState() end,
['play'] = function() return PlayState() end,
['settings'] = function() return SettingsState() end,
['achievment'] = function() return AchievementState() end,
['instructions'] = function() return InstructionsState() end,
['maze'] = function() return MazeState() end,
['flappy'] = function() return FlappyState() end
-- body
}
stateMachine:change('start')
data = loadAchievementData()
achievementSystem = AchievementSystem(DEFAULT_ACHIEVEMENTS)
local count = 1
if (data) then
for i, achievement in pairs(achievementSystem.achievements) do
achievement.unlocked = data[count]
count = count + 1
end
end
-- saves last frames key actions
love.keyboard.keysPressed = {}
love.keyboard.keysReleased = {}
musicVolume = .5
love.filesystem.setIdentity("Project-Gamma")
sounds["theme"]:setVolume(musicVolume)
love.audio.play(sounds["theme"])
end
function love.resize(w, h)
push:resize(w, h)
end
function love.keypressed(key)
if key == 'escape' then
love.event.quit()
end
love.keyboard.keysPressed[key] = true
end
function love.keyboard.wasPressed(key)
return love.keyboard.keysPressed[key]
end
function love.keyreleased(key)
love.keyboard.keysReleased[key] = true
end
function love.keyboard.wasReleased(key)
return love.keyboard.keysReleased[key]
end
function love.update(dt)
stateMachine:update(dt)
love.keyboard.keysPressed = {}
love.keyboard.keysReleased = {}
end
function love.draw()
push:apply('start')
-- clears the screen white
love.graphics.clear(colors['white'])
stateMachine:render()
displayFPS()
push:apply('end')
end |
local Astar = require("astar")
local Snake
do
local _class_0
local _base_0 = {
generate_snake_from_map_image_data = function(self, mapImageData)
local snake = { }
local direction = { }
local w, h = mapImageData:getDimensions()
local startingPoint = { }
for i = 0, (w - 1) do
for j = 0, (h - 1) do
local r, g, b, _ = mapImageData:getPixel(i, j)
if (r == 0) and (g == 1) and (b == 0) then
startingPoint.x, startingPoint.y = i + 1, j + 1
break
end
end
end
local usedPoints = { }
usedPoints[startingPoint.x * w + startingPoint.y] = true
local headPoint = { }
for i, point in ipairs(self:get_neighbour_points(startingPoint)) do
local r, g, b, _ = mapImageData:getPixel(point.x - 1, point.y - 1)
if (r == 1) and (g == 0) and (b == 0) then
headPoint.x, headPoint.y = point.x, point.y
usedPoints[headPoint.x * w + headPoint.y] = true
break
end
end
direction.x = startingPoint.x - headPoint.x
direction.y = startingPoint.y - headPoint.y
table.insert(snake, headPoint)
local search = true
local actualPoint = headPoint
while search do
for i, point in ipairs(self:get_neighbour_points(actualPoint)) do
if not (usedPoints[point.x * w + point.y]) then
local r, g, b, _ = mapImageData:getPixel(point.x - 1, point.y - 1)
if (r == 0) and (g == 0) and (b == 1) then
table.insert(snake, point)
usedPoints[point.x * w + point.y] = true
actualPoint = point
search = true
break
else
search = false
end
end
end
end
return snake, direction
end,
get_neighbour_points = function(self, point)
local points = {
{
x = point.x + 1,
y = point.y
},
{
x = point.x - 1,
y = point.y
},
{
x = point.x,
y = point.y + 1
},
{
x = point.x,
y = point.y - 1
}
}
return points
end,
is_not_part_of_body = function(self, point)
for i, bodyPoint in ipairs(self.snake) do
if (point.x == bodyPoint.x) and (point.y == bodyPoint.y) then
return false
end
end
return true
end,
get_snake = function(self)
return self.snake
end,
update = function(self, dt, newTreat)
local treatExists = true
self.movementTickTimer = self.movementTickTimer + dt
if newTreat then
self:set_treat(newTreat)
end
if self.movementTickTimer >= self.tickTime then
if self.path then
self:move_along_path(self.path)
local lastSnakePoint = self:move(self.direction)
if (self.snake[1].x == self.treat.x) and (self.snake[1].y == self.treat.y) then
table.insert(self.snake, lastSnakePoint)
treatExists = false
end
else
print("There's no path from my point of view")
if self.game then
self.game:restart()
end
end
self.movementTickTimer = self.movementTickTimer - self.tickTime
end
return treatExists
end,
move = function(self, direction)
if (direction.x == 0) and (direction.y == 0) then
return nil
end
local point = { }
point.x = self.snake[1].x
point.y = self.snake[1].y
self.snake[1].x = self.snake[1].x + direction.x
self.snake[1].y = self.snake[1].y + direction.y
for i, bodyPoint in ipairs(self.snake) do
local _continue_0 = false
repeat
if i == 1 then
_continue_0 = true
break
end
local savePoint = { }
savePoint.x = bodyPoint.x
savePoint.y = bodyPoint.y
bodyPoint.x = point.x
bodyPoint.y = point.y
point.x = savePoint.x
point.y = savePoint.y
_continue_0 = true
until true
if not _continue_0 then
break
end
end
return point
end,
move_along_path = function(self, path)
self.direction = path:get_next()
end,
set_treat = function(self, treat)
self.treat = treat
self.path = self.astar:navigate(self.snake[1], self.treat)
end
}
_base_0.__index = _base_0
_class_0 = setmetatable({
__init = function(self, mapImageData, tickTime, map, game)
self.snake, self.direction = self:generate_snake_from_map_image_data(mapImageData)
self.movementTickTimer = 0
self.tickTime = tickTime
self.astar = Astar(map, self)
self.treat = nil
self.path = nil
self.game = game
end,
__base = _base_0,
__name = "Snake"
}, {
__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
Snake = _class_0
end
return Snake
|
require "turtle"
local f=0.5 -- how much shorter the next tree should be
local a=60 -- what angle to use to turn the branches
function tree(d, n) -- distance to grow, level for recursion
if n == 0 then return end
local width = pnsz(n) -- set pen size; save current value
local color = pncl(colr(127,(8-n)*32,0)) -- set pen color
move(2/3*d)
turn(a)
tree(d*f, n-1)
turn(-a)
move(1/3*d)
turn(-a)
tree(d*f, n-1)
turn(a)
turn(7)
tree(d*f, n-1)
turn(-7)
move(-1/3*d) -- note that 1/3+2/3 is not always 1
move(-2/3*d) -- so move back in the same way as forward
pncl(color) -- restore pen color to make it work recursively
pnsz(width) -- restore pen size to make it work recursively
wait(0.001) -- slow down the drawing
end
turn(-90) -- point turtle up as trees grow up
-- grow a large tree
posn(0, 120)
tree(160, 7)
-- grow a small bush
posn(-80, 120)
tree(80, 6)
-- grow grass
for grass = -180,180 do
posn(grass+rand(5),120+rand(25))
tree(8,3)
end
save("tree")
wait()
|
--
local M = {}
---@class mx.attribute.AttrScope
local AttrScope = class('mx.attribute.AttrScope')
M.AttrScope = AttrScope
function AttrScope:ctor(kwargs)
kwargs = default(kwargs, {})
self._old_scope = nil
for _, value in ipairs(table.values(kwargs)) do
if not type(value) == 'string' then
raise('ValueError', 'Attributes need to be string')
end
end
self._attr = kwargs
end
function AttrScope:get(attr)
if self._attr then
local ret = table.clone(self._attr)
if attr then
for k, v in pairs(attr) do
ret[k] = v
end
end
return ret
else
return attr or {}
end
end
function AttrScope:__enter()
if not AttrScope._current.value then
AttrScope._current.value = AttrScope()
end
self._old_scope = AttrScope._current.value
local attr = table.clone(AttrScope._current.value._attr)
for k, v in pairs(self._attr) do
attr[k] = v
end
self._attr = attr
AttrScope._current.value = self
return self
end
function AttrScope:__exit()
assert(self._old_scope)
AttrScope._current.value = self._old_scope
end
AttrScope._current = { value = AttrScope() }
return M
|
--[=[ scSuite
by SavageCore
]=]--
SCSuiteConfiguration = SCSuiteConfiguration or class()
require("SCSuite/Localisation.lua")
function SCSuiteConfiguration:init()
self.mute_bain_enabled = true
self.mute_bain_broadcast_toggle = true
self.mute_bain_blacklist = {
"alex_1", -- Rats Day 1
--"alex_2", -- Rats Day 2
--"alex_3", -- Rats Day 3
--"arm_cro", -- Armored Transport: Crossroads
"arm_fac", -- Armored Transport: Harbor
--"arm_for", -- Armored Transport: Train Heist
"arm_hcm", -- Armored Transport: Downtown
--"arm_par", -- Armored Transport: Park
--"arm_und", -- Armored Transport: Underpass
"big", -- Big Bank
--"branchbank", -- Bank Heist
--"election_day_1", -- Election Day Day 1
--"election_day_2", -- Election Day Day 2
--"election_day_3_skip1", -- Election Day Day 3 (Not sure the difference)
--"election_day_3_skip2", -- Election Day Day 3 (Not sure the difference)
--"election_day_3", -- Election Day Day 3
--"escape_cafe_day", -- Escape: Cafe (Day)
--"escape_cafe", -- Escape: Cafe
--"escape_garage", -- Escape: Garage
--"escape_overpass_night", -- Escape: Overpass (Night)
"escape_overpass", -- Escape: Overpass
--"escape_park_day", -- Escape: Park (Day)
--"escape_park", -- Escape: Park
--"escape_street", -- Escape: Street
--"family", -- Diamond Heist
--"firestarter_1", -- Firestarter Day 1
--"firestarter_2", -- Firestarter Day 2
--"firestarter_3", -- Firestarter Day 3
--"four_stores", -- Four Stores
--"framing_frame_1", -- Framing Frame Day 1
--"framing_frame_2", -- Framing Frame Day 2
--"framing_frame_3", -- Framing Frame Day 3
--"jewelry_store", -- Jewelry Store
--"kosugi", -- Shadow Raid
--"mallcrasher", -- Mallcrasher
--"nightclub", -- Nightclub
"roberts", -- GO Bank
--"safehouse", -- Safehouse
--"ukrainian_job", -- Ukranian Job
--"watchdogs_1", -- Watchdogs Day 1
"watchdogs_2", -- Watchdogs Day 2
--"welcome_to_the_jungle_1", -- Big Oil Day 1
--"welcome_to_the_jungle_2", -- Big Oil Day 2
}
self.mission_menu_enabled = true
self.toggle_mask_enabled = true
self.toggle_equipment_enabled = true
self.instant_drill_toggle = true
self.confirm_respec_toggle = true
self.persistent_gadget_toggle = true
self.force_ready_toggle = true
self.force_ready_threshold_value = 5
self.skip_endscreen_toggle = true
self.unlock_dlc_toggle = true
self.bank_buster_toggle = true
self.nuke_map_toggle = true
self.carry_stacker_toggle = true
self.carry_stacker_limit_value = 2
self.cable_tie_toggle = true
self.cable_tie_limit_value = 25
self.pager_chance_toggle = true
self.restart_pro_toggle = true
self.disable_update_notifier_toggle = true
self.sell_hostage_toggle = true
self.follow_override_toggle = true
self.follow_override_limit_value = 4
end |
local ffi = require("ffi")
require "lj2intelxed.xed-decoded-inst.h"
require "lj2intelxed.xed-error-enum.h"
require "lj2intelxed.xed-chip-features.h"
--[[
/// This is the main interface to the decoder.
/// @param xedd the decoded instruction of type #xed_decoded_inst_t . Mode/state sent in via xedd; See the #xed_state_t
/// @param itext the pointer to the array of instruction text bytes
/// @param bytes the length of the itext input array. 1 to 15 bytes, anything more is ignored.
/// @return #xed_error_enum_t indicating success (#XED_ERROR_NONE) or failure. Note failure can be due to not
/// enough bytes in the input array.
///
/// The maximum instruction is 15B and XED will tell you how long the
/// actual instruction is via an API function call
/// xed_decoded_inst_get_length(). However, it is not always safe or
/// advisable for XED to read 15 bytes if the decode location is at the
/// boundary of some sort of protection limit. For example, if one is
/// decoding near the end of a page and the XED user does not want to cause
/// extra page faults, one might send in the number of bytes that would
/// stop at the page boundary. In this case, XED might not be able to
/// decode the instruction and would return an error. The XED user would
/// then have to decide if it was safe to touch the next page and try again
/// to decode with more bytes. Also sometimes the user process does not
/// have read access to the next page and this allows the user to prevent
/// XED from causing process termination by limiting the memory range that
/// XED will access.
///
/// @ingroup DEC
--]]
ffi.cdef[[
xed_error_enum_t
xed_decode(xed_decoded_inst_t* xedd,
const xed_uint8_t* itext,
const unsigned int bytes);
/// @ingroup DEC
/// See #xed_decode(). This version of the decode API adds a CPUID feature
/// vector to support restricting decode based on both a specified chip via
/// #xed_decoded_inst_set_input_chip() and a modify-able cpuid feature
/// vector obtained from #xed_get_chip_features().
xed_error_enum_t
xed_decode_with_features(xed_decoded_inst_t* xedd,
const xed_uint8_t* itext,
const unsigned int bytes,
xed_chip_features_t* features);
]]
|
local M = {}
local lib = {}
-- font {name = '', path = ''}
function M.register(font)
lib[#lib + 1] = font
end
function M.resolve(name)
if not name then
return assert(lib[1], 'no default font')
else
for _, font in ipairs(lib) do
if string.find(font.name, name) then
return font
end
end
print(string.format("font '%s' not found", name))
return assert(lib[1], 'no default font')
end
end
return M |
-- Generated by CSharp.lua Compiler
local System = System
local SlipeServerAccounts
local SlipeServerPeds
local SlipeSharedElements
System.import(function (out)
SlipeServerAccounts = Slipe.Server.Accounts
SlipeServerPeds = Slipe.Server.Peds
SlipeSharedElements = Slipe.Shared.Elements
end)
System.namespace("Slipe.Server.Peds.Events", function (namespace)
namespace.class("OnBannedEventArgs", function (namespace)
local __ctor__
__ctor__ = function (this, ban, responsibleBanner)
this.Ban = System.new(SlipeServerAccounts.Ban, 2, ban)
this.ResponsiblePlayer = SlipeSharedElements.ElementManager.getInstance():GetElement(responsibleBanner, SlipeServerPeds.Player)
end
return {
__ctor__ = __ctor__,
__metadata__ = function (out)
return {
properties = {
{ "Ban", 0x6, out.Slipe.Server.Accounts.Ban },
{ "ResponsiblePlayer", 0x6, out.Slipe.Server.Peds.Player }
},
methods = {
{ ".ctor", 0x204, nil, out.Slipe.MtaDefinitions.MtaBan, out.Slipe.MtaDefinitions.MtaElement }
},
class = { 0x6 }
}
end
}
end)
end)
|
local K, C, L, _ = select(2, ...):unpack()
local collectgarbage = collectgarbage
local UnitIsAFK = UnitIsAFK
local CreateFrame = CreateFrame
local InCombatLockdown = InCombatLockdown
local Garbage = CreateFrame("Frame")
local eventcount = 0
function Garbage:OnEvent(event, unit)
eventcount = eventcount + 1
if InCombatLockdown() and eventcount > 25000 or not InCombatLockdown() and eventcount > 10000 or event == "PLAYER_ENTERING_WORLD" then
collectgarbage("collect")
self:UnregisterEvent(event)
else
if (unit ~= "player") then return end
if UnitIsAFK(unit) then collectgarbage("collect") end
end
end
Garbage:SetScript("OnEvent", Garbage.OnEvent)
Garbage:RegisterEvent("PLAYER_FLAGS_CHANGED")
Garbage:RegisterEvent("PLAYER_ENTERING_WORLD") |
require('level')
local function gnome_stat_gain_fn(creature_id, level)
local is_pl = is_player(creature_id)
local stat = RNG_range(1, 3)
if level % 7 == 0 then
if stat == 1 then
incr_int(creature_id, is_pl)
elseif stat == 2 then
incr_wil(creature_id, is_pl)
else
incr_agi(creature_id, is_pl)
end
end
end
local gnome_race_stat_fn = gnome_stat_gain_fn
level.set_race_stat_gain_level_fn("10_gnome", gnome_race_stat_fn)
|
function love.load(args)
loveframes = require("lib.loveframes")
require('modules.images')
local Ship = require('modules.ship')
ship = Ship:new(love.window.getWidth() / 2, love.window.getHeight() / 2)
local Asteroid = require('modules.asteroid')
asteroid = Asteroid:new(512, 512, 16)
end
function love.update(dt)
loveframes.update(dt)
asteroid:update()
end
function love.draw()
ship:draw()
asteroid:draw()
loveframes.draw()
end
function love.mousepressed(x, y, button)
loveframes.mousepressed(x, y, button)
asteroid:mouseDown(button)
end
function love.mousereleased(x, y, button)
loveframes.mousereleased(x, y, button)
asteroid:mouseUp(x, y, button)
end
function love.keypressed(key, unicode)
loveframes.keypressed(key, unicode)
end
function love.keyreleased(key)
loveframes.keyreleased(key)
end
function love.textinput(text)
loveframes.textinput(text)
end |
local Config = {}
local Camera = require("scripts.camera")
local Tracker = require("scripts.tracker")
--- (re)loads the mod settings and initializes player settings if needed
function Config.reload(event)
if event.player_index == nil then
-- The reload was not caused by a player (but a script)
return
end
local player = game.players[event.player_index]
local guiSettings = settings.get_player_settings(player)
local playerSettings = global.playerSettings[event.player_index]
if playerSettings == nil then
playerSettings = Config.newPlayerSettings(player)
global.playerSettings[event.player_index] = playerSettings
end
playerSettings.saveFolder = guiSettings["tlbe-save-folder"].value
playerSettings.sequentialNames = guiSettings["tlbe-sequential-names"].value
end
function Config.newPlayerSettings(player)
-- Setup some default trackers
local trackers = {
Tracker.newTracker "player",
Tracker.newTracker "rocket",
Tracker.newTracker "base"
}
local camera = Camera.newCamera(player, {})
camera.name = "main"
camera.trackers = {trackers[1], trackers[2], trackers[3]}
return {
screenshotNumber = 1,
-- Setup a default camera and attach trackers to it
cameras = {camera},
trackers = trackers
}
end
return Config
|
Locales['nl'] = {
['mechanic'] = 'monteur',
['drive_to_indicated'] = '~y~Rij~s~ naar de aangegeven locatie',
['mission_canceled'] = 'opdracht ~r~Geannuleerd~s~',
['vehicle_list'] = 'voertuigenlijst',
['work_wear'] = 'werk kleding',
['civ_wear'] = 'burger kleding',
['deposit_stock'] = 'vooraad wegleggen',
['withdraw_stock'] = 'vooraad opbergen',
['boss_actions'] = 'baas acties',
['service_vehicle'] = 'service voertuig',
['flat_bed'] = 'oprijwagen',
['tow_truck'] = 'sleep wagen',
['service_full'] = 'dienst voledig: ',
['open_actions'] = 'Druk op ~INPUT_CONTEXT~ om in het menu te komen.',
['harvest'] = 'oogsten',
['harvest_menu'] = 'druk op ~INPUT_CONTEXT~ om in het oogst menu te komen.',
['not_experienced_enough'] = 'je hebt ~r~niet genoeg ervaring~s~ om dit te doen.',
['gas_can'] = 'jerrycan',
['repair_tools'] = 'reparatie gereedschap',
['body_work_tools'] = 'plaatwerk gereedschap',
['blowtorch'] = 'gasbrannder',
['repair_kit'] = 'reparatie set',
['body_kit'] = 'plaatwerk set',
['craft'] = 'maaken',
['craft_menu'] = 'druk op ~INPUT_CONTEXT~ om in het maak menu te komen.',
['billing'] = 'facturen',
['hijack'] = 'openbreken',
['repair'] = 'repareer',
['clean'] = 'maak schoon',
['imp_veh'] = 'inbeslag nemen',
['place_objects'] = 'plaats objecten',
['invoice_amount'] = 'factuur bedrag',
['amount_invalid'] = 'ongeldig aantal',
['no_players_nearby'] = 'er is geen speler in de buurt',
['no_vehicle_nearby'] = 'er is geen voertuig in de buurt',
['inside_vehicle'] = 'je kan dit niet doen in een voertuig!',
['vehicle_unlocked'] = 'het voortuig is ~g~opengebroken',
['vehicle_repaired'] = 'het voortuig is ~g~gerepareerd',
['vehicle_cleaned'] = 'het voortuig is ~g~schoongemaakt',
['vehicle_impounded'] = 'het voortuig is ~r~in beslag genomen',
['must_seat_driver'] = 'je moet in de bestuurders stoel zitten',
['must_near'] = 'je moet ~r~dicht bij een voertuig zijn~s~ om hem in beslag te nemen.',
['vehicle_success_attached'] = 'voertuig succesvol ~b~vastgemaakt~s~',
['please_drop_off'] = 'graag voertuig naar de garage brengen',
['cant_attach_own_tt'] = '~r~je kan niet~s~ je eigen wagen vast maken',
['no_veh_att'] = 'er zijn geen ~r~voertuigen~s~ om vast te maken',
['not_right_veh'] = 'dit is niet het juiste voertuig',
['veh_det_succ'] = 'voertuig succesvol ~b~losgekoppeld~s~!',
['imp_flatbed'] = '~r~Actie onmogelijk!~s~ je moet een ~b~oprijwagen~s~ nodig om deze te laden',
['objects'] = 'objecten',
['roadcone'] = 'pion',
['toolbox'] = 'gereedschaps kist',
['mechanic_stock'] = 'monteurs opslag',
['quantity'] = 'hoeveelheid',
['invalid_quantity'] = 'ongeldige hoeveelheid',
['inventory'] = 'inventaris',
['veh_unlocked'] = '~g~Voertuig opgengemaakt',
['hijack_failed'] = '~r~Openbreken mislukt',
['body_repaired'] = '~g~Plaatwerk gerepareerd',
['veh_repaired'] = '~g~Voertuig gerepareerd',
['veh_stored'] = 'Druk op ~INPUT_CONTEXT~ om voertuig op te slaan.',
['press_remove_obj'] = 'Druk op ~INPUT_CONTEXT~ om object weg te halen',
['please_tow'] = 'graag voertuig ~y~afslepen~s~',
['wait_five'] = 'je moet 5 minuten ~r~wachten~s~',
['must_in_flatbed'] = 'je bent een oprijwagen nodig voor deze klant',
['mechanic_customer'] = 'klant van garage',
['you_do_not_room'] = '~r~Je hebt geen ruimte',
['recovery_gas_can'] = '~b~Jerrycan~s~ Ophalen...',
['recovery_repair_tools'] = '~b~Reparatie gereedschap~s~ Ophalen...',
['recovery_body_tools'] = '~b~Plaatwerk gereedschap~s~ Ophalen...',
['not_enough_gas_can'] = 'je hebt ~r~niet genoeg~s~ jerrycans.',
['assembling_blowtorch'] = 'In elkaar aan het zetten ~b~gasbrannder~s~...',
['not_enough_repair_tools'] = 'je hebt ~r~niet genoeg~s~ reparatie gereedschap.',
['assembling_repair_kit'] = 'In elkaar aan het zetten ~b~reparatie set~s~...',
['not_enough_body_tools'] = 'je hebt ~r~niet genoeg~s~ plaatwerk gereedschap.',
['assembling_body_kit'] = 'In elkaar aan het zetten ~b~plaatwerk set~s~...',
['your_comp_earned'] = 'de garage heeft ~g~verdient~s~ ~g~€',
['you_used_blowtorch'] = 'je gebruikte een ~b~gasbrannder',
['you_used_repair_kit'] = 'je gebruikte een ~b~reparatie set',
['you_used_body_kit'] = 'je gebruikte een ~b~plaatwerk set',
['have_withdrawn'] = 'je hebt opgenomen ~y~x%s~s~ ~b~%s~s~',
['have_deposited'] = 'je hebt gestort ~y~x%s~s~ ~b~%s~s~',
['player_cannot_hold'] = 'je hebt ~r~niet~s~ genoeg ~y~vrije ruimte~s~ in je inventaris!',
}
|
--[[
A biome map (bm_*) collects a group of biomes from biome definition files (could be all from the
same or could be from different ones) and decides how to map them to the world surface.
A biome map provides a list of biomes, and a biome function that maps those biomes to the surface.
There are two primary biome map types. "MATRIX" and "VORONOI" this is an example of MATRIX.
MATRIX is very simple to implement, you just build a matrix and populate it with the biomes you
want. It gives you complete and easy control over what percentage of the world will be what biome.
The disadvantage is that it does not create as natural of a distribution as VORONOI, and your biomes
have to set up "alternate" lists of repalcement biomes if the primary biome is outside of its y
range.
this biome maps does NOT use the generic biome function. Because this one sort of cheats.
it detects if the noise comes near the edge of a biome, and changes top to turn it into
a chasm. This creates a strange looking world of isolated biomes separated by deep chasms,
somewhat remenicent of Sanderson's "Shattered Plains" (only very somewhat)
so, this is a biome map that cheats and acts partially as a terrain generator?
My first approach at making a shatterds plane generator was tg_mesas. Which I thought
looked pretty cool. My son looked at it, said, "yes, it does look cool, but it would look a lot
more like the shattered plains if you did..." and described this functionality. I said, "Nah, that
wouldnt... hmmm, let me see" I tried it, and well, I think it DOES look better.
So now I have two generators that create landscapes with deep chasms. The world is big, it can
handle two of them.
--]]
bm_shattered_biomes={}
bm_shattered_biomes.name="shattered biomes map"
local icesheet = realms.biome.default_icesheet_shallow
local tundra = realms.biome.default_tundra
local taiga = realms.biome.default_taiga
local snowy_grass = realms.biome.default_snowy_grassland
local grassland = realms.biome.default_grassland
local grassland_d = realms.biome.default_grassland_dunes
local conif_for = realms.biome.default_coniferous_forest
local conif_dune = realms.biome.default_coniferous_forest_dunes
local decid_for = realms.biome.default_deciduous_forest
local desert = realms.biome.default_desert
local sandstone_d = realms.biome.default_sandstone_desert
local cold_desert = realms.biome.default_cold_desert
local savanna = realms.biome.default_savanna
local rainforest = realms.biome.default_rainforest
local crystal = realms.biome.odd_crystal
local mushroom = realms.biome.odd_mushroom
local scorched = realms.biome.odd_scorched
local golden = realms.biome.odd_golden
local rainbow = realms.biome.odd_rainbow
bm_shattered_biomes.heatrange=5
bm_shattered_biomes.humidrange=5
bm_shattered_biomes.typ="MATRIX"
bm_shattered_biomes.biome={
{icesheet ,crystal ,tundra ,mushroom ,taiga },
{scorched ,snowy_grass,grassland ,rainbow ,grassland_d},
{golden ,conif_for ,crystal ,conif_dune ,rainforest },
{decid_for ,desert ,mushroom ,sandstone_d,rainbow },
{cold_desert,golden ,savanna ,rainbow ,scorched },
}
realms.register_noise("Map2dHeat02",{
offset = 0,
scale = 1,
spread = {x=512, y=512, z=512},
--spread = {x=128, y=128, z=128},
octaves = 3,
persist = 0.6,
seed = 928349
})
realms.register_noise("Map2dHumid02",{
offset = 0,
scale = 1,
--spread = {x=256, y=256, z=256},
spread = {x=412, y=412, z=412},
octaves = 3,
persist = 0.6,
seed = 2872
})
realms.register_biomemap(bm_shattered_biomes)
--********************************
function bm_shattered_biomes.bm_shattered_biomes(parms)
biomemap=bm_shattered_biomes
local edge=0.08
local edgehe=(1/biomemap.heatrange)*edge
local edgehu=(1/biomemap.humidrange)*edge
--minetest.log(" edgehe="..edgehe.." edgehu="..edgehu)
local sealevel=parms.sealevel
local changeheight=30
local minmesaheight=8+sealevel
--bf_generic.map_biome_to_surface(parms,bm_shattered_biomes)
--this biome map does some strange stuff, so it can't use bf_generic
--NOTE: our default_seed is the realm_seed, so that each realm will have unique noise.
--If you want two different realm entries to use the same noise, you must set parms.seed
local heat_map = realms.get_noise2d(parms.noiseheat ,"Map2dHeat02" ,parms.seed,parms.realm_seed, parms.isectsize2d,parms.minposxz)
local humid_map = realms.get_noise2d(parms.noisehumid,"Map2dHumid02",parms.seed,parms.realm_seed, parms.isectsize2d,parms.minposxz)
local filler_noise= realms.get_noise2d(parms.noisefil ,"FillerDep01" ,parms.seed,parms.realm_seed, parms.isectsize2d,parms.minposxz)
local top_noise = realms.get_noise2d(parms.noisetop ,"TopDep01" ,parms.seed,parms.realm_seed, parms.isectsize2d,parms.minposxz)
local nixz=1
for z=parms.isect_minp.z, parms.isect_maxp.z do
for x=parms.isect_minp.x, parms.isect_maxp.x do
local srfc=parms.share.surface[z][x]
local biome
local noisehe=math.abs(heat_map[nixz])
local noisehu=math.abs(humid_map[nixz])
if noisehe>=1 then noisehe=1-(noisehe-1) end
if noisehu>=1 then noisehu=1-(noisehu-1) end
local n_heat = math.floor(noisehe*biomemap.heatrange)+1
local n_humid = math.floor(noisehu*biomemap.humidrange)+1
--minetest.log("shattered->>> heat="..heat_map[nixz].." humd="..humid_map[nixz].." n_heat="..n_heat.." n_humid="..n_humid)
--if we are close to the edge, then make this a canyon
if math.floor((noisehe+edgehe)*biomemap.heatrange)+1~=n_heat or math.floor((noisehe-edgehe)*biomemap.heatrange)+1~=n_heat
or math.floor((noisehu+edgehu)*biomemap.humidrange)+1~=n_humid or math.floor((noisehu-edgehu)*biomemap.humidrange)+1~=n_humid then
srfc.biome=realms.biome.odd_chasm_bottom
--srfc.top=srfc.top-changeheight
--we want to move the surface height to close to sealevel, we will use our own noise
srfc.top=math.floor(sealevel+3*top_noise[nixz])
else
srfc.biome=biomemap.biome[n_heat][n_humid]
srfc.top=srfc.top+changeheight
--no mater what the noise, we dont want the mesa height to drop below minmesaheight
--if it does, we reverse the change so it is climbing up again
if srfc.top<minmesaheight then srfc.top=minmesaheight+(minmesaheight-srfc.top) end
end --if math.floor
--I like these depths to have a bit of variation in them:
if srfc.biome.node_water_top~=nil then
srfc.water_top_depth=realms.randomize_depth(srfc.biome.depth_water_top,0.33,top_noise[nixz])
end --water_top
srfc.top_depth=realms.randomize_depth(srfc.biome.depth_top,0.33,top_noise[nixz])
srfc.filler_depth=realms.randomize_depth(srfc.biome.depth_filler,0.33,filler_noise[nixz])
--minetest.log("bf_generic.map_biome_to_surface-> n_heat="..n_heat.." n_humid="..n_humid.." biome="..biome.name)
nixz=nixz+1
end --for x
end --for z
minetest.log("bm_shattered -> "..luautils.pos_to_str(parms.isect_minp).." biome map="..biomemap.name.." END")
end -- bm_shattered_biomes
realms.register_mapfunc("bm_shattered_biomes",bm_shattered_biomes.bm_shattered_biomes)
|
local class = require 'middleclass'
local Object = class.Object
describe('Object', function()
describe('name', function()
it('is correctly set', function()
assert.equal(Object.name, 'Object')
end)
end)
describe('tostring', function()
it('returns "class Object"', function()
assert.equal(tostring(Object), 'class Object')
end)
end)
describe('()', function()
it('returns an object, like Object:new()', function()
local obj = Object()
assert.is_true(obj:isInstanceOf(Object))
end)
end)
describe('subclass', function()
it('throws an error when used without the :', function()
assert.error(function() Object.subclass() end)
end)
it('throws an error when no name is given', function()
assert.error( function() Object:subclass() end)
end)
describe('when given a class name', function()
local SubClass
before_each(function()
SubClass = Object:subclass('SubClass')
end)
it('it returns a class with the correct name', function()
assert.equal(SubClass.name, 'SubClass')
end)
it('it returns a class with the correct superclass', function()
assert.equal(SubClass.super, Object)
end)
it('it includes the subclass in the list of subclasses', function()
assert.is_true(Object.subclasses[SubClass])
end)
end)
end)
describe('instance creation', function()
local SubClass
before_each(function()
SubClass = class('SubClass')
function SubClass:initialize() self.mark=true end
end)
describe('allocate', function()
it('allocates instances properly', function()
local instance = SubClass:allocate()
assert.equal(instance.class, SubClass)
assert.equal(tostring(instance), "instance of " .. tostring(SubClass))
end)
it('throws an error when used without the :', function()
assert.error(Object.allocate)
end)
it('does not call the initializer', function()
local allocated = SubClass:allocate()
assert.is_nil(allocated.mark)
end)
it('can be overriden', function()
local previousAllocate = SubClass.static.allocate
function SubClass.static:allocate()
local instance = previousAllocate(SubClass)
instance.mark = true
return instance
end
local allocated = SubClass:allocate()
assert.is_true(allocated.mark)
end)
end)
describe('new', function()
it('initializes instances properly', function()
local instance = SubClass:new()
assert.equal(instance.class, SubClass)
end)
it('throws an error when used without the :', function()
assert.error(SubClass.new)
end)
it('calls the initializer', function()
local initialized = SubClass:new()
assert.is_true(initialized.mark)
end)
end)
describe('isInstanceOf', function()
describe('nils, integers, strings, tables, and functions', function()
local o = Object:new()
local primitives = {nil, 1, 'hello', {}, function() end}
for _,primitive in pairs(primitives) do
local theType = type(primitive)
describe('A ' .. theType, function()
local f1 = function() return Object.isInstanceOf(primitive, Object) end
local f2 = function() return Object.isInstanceOf(primitive, o) end
local f3 = function() return Object.isInstanceOf(primitive, primitive) end
describe('does not throw errors', function()
it('instanceOf(Object, '.. theType ..')', function()
assert.not_error(f1)
end)
it('instanceOf(' .. theType .. ', Object:new())', function()
assert.not_error(f2)
end)
it('instanceOf(' .. theType .. ',' .. theType ..')', function()
assert.not_error(f3)
end)
end)
it('makes instanceOf return false', function()
assert.is_false(f1())
assert.is_false(f2())
assert.is_false(f3())
end)
end)
end
end)
describe('An instance', function()
local Class1 = class('Class1')
local Class2 = class('Class2', Class1)
local Class3 = class('Class3', Class2)
local UnrelatedClass = class('Unrelated')
local o1, o2, o3 = Class1:new(), Class2:new(), Class3:new()
it('isInstanceOf(Object)', function()
assert.is_true(o1:isInstanceOf(Object))
assert.is_true(o2:isInstanceOf(Object))
assert.is_true(o3:isInstanceOf(Object))
end)
it('isInstanceOf its class', function()
assert.is_true(o1:isInstanceOf(Class1))
assert.is_true(o2:isInstanceOf(Class2))
assert.is_true(o3:isInstanceOf(Class3))
end)
it('is instanceOf its class\' superclasses', function()
assert.is_true(o2:isInstanceOf(Class1))
assert.is_true(o3:isInstanceOf(Class1))
assert.is_true(o3:isInstanceOf(Class2))
end)
it('is not instanceOf its class\' subclasses', function()
assert.is_false(o1:isInstanceOf(Class2))
assert.is_false(o1:isInstanceOf(Class3))
assert.is_false(o2:isInstanceOf(Class3))
end)
it('is not instanceOf an unrelated class', function()
assert.is_false(o1:isInstanceOf(UnrelatedClass))
assert.is_false(o2:isInstanceOf(UnrelatedClass))
assert.is_false(o3:isInstanceOf(UnrelatedClass))
end)
end)
end)
end)
describe('isSubclassOf', function()
describe('nils, integers, etc', function()
local primitives = {nil, 1, 'hello', {}, function() end}
for _,primitive in pairs(primitives) do
local theType = type(primitive)
describe('A ' .. theType, function()
local f1 = function() return Object.isSubclassOf(Object, primitive) end
local f2 = function() return Object.isSubclassOf(primitive, o) end
local f3 = function() return Object.isSubclassOf(primitive, primitive) end
describe('does not throw errors', function()
it('isSubclassOf(Object, '.. theType ..')', function()
assert.not_error(f1)
end)
it('isSubclassOf(' .. theType .. ', Object:new())', function()
assert.not_error(f2)
end)
it('isSubclassOf(' .. theType .. ',' .. theType ..')', function()
assert.not_error(f3)
end)
end)
it('makes isSubclassOf return false', function()
assert.is_false(f1())
assert.is_false(f2())
assert.is_false(f3())
end)
end)
end
end)
describe('Any class (except Object)', function()
local Class1 = class('Class1')
local Class2 = class('Class2', Class1)
local Class3 = class('Class3', Class2)
local UnrelatedClass = class('Unrelated')
it('isSubclassOf(Object)', function()
assert.is_true(Class1:isSubclassOf(Object))
assert.is_true(Class2:isSubclassOf(Object))
assert.is_true(Class3:isSubclassOf(Object))
end)
it('is subclassOf its direct superclass', function()
assert.is_true(Class2:isSubclassOf(Class1))
assert.is_true(Class3:isSubclassOf(Class2))
end)
it('is subclassOf its ancestors', function()
assert.is_true(Class3:isSubclassOf(Class1))
end)
it('is a subclassOf its class\' subclasses', function()
assert.is_true(Class2:isSubclassOf(Class1))
assert.is_true(Class3:isSubclassOf(Class1))
assert.is_true(Class3:isSubclassOf(Class2))
end)
it('is not a subclassOf an unrelated class', function()
assert.is_false(Class1:isSubclassOf(UnrelatedClass))
assert.is_false(Class2:isSubclassOf(UnrelatedClass))
assert.is_false(Class3:isSubclassOf(UnrelatedClass))
end)
end)
end)
describe('includes', function()
describe('nils, numbers, etc', function()
local o = Object:new()
local primitives = {nil, 1, 'hello', {}, function() end}
for _,primitive in pairs(primitives) do
local theType = type(primitive)
describe('A ' .. theType, function()
local f1 = function() return Object.includes(Object, primitive) end
local f2 = function() return Object.includes(primitive, o) end
local f3 = function() return Object.includes(primitive, primitive) end
describe('don\'t throw errors', function()
it('includes(Object, '.. theType ..')', function()
assert.not_error(f1)
end)
it('includes(' .. theType .. ', Object:new())', function()
assert.not_error(f2)
end)
it('includes(' .. theType .. ',' .. theType ..')', function()
assert.not_error(f3)
end)
end)
it('make includes return false', function()
assert.is_false(f1())
assert.is_false(f2())
assert.is_false(f3())
end)
end)
end -- for
end)
describe('A class', function()
local Class1 = class('Class1')
local Class2 = class('Class2', Class1)
local Class3 = class('Class3', Class2)
local UnrelatedClass = class('Unrelated')
local hasFoo = { foo=function() return 'foo' end }
Class1:include(hasFoo)
it('returns true if it includes a mixin', function()
assert.is_true(Class1:includes(hasFoo))
end)
it('returns true if its superclass includes a mixin', function()
assert.is_true(Class2:includes(hasFoo))
assert.is_true(Class3:includes(hasFoo))
end)
it('returns false otherwise', function()
assert.is_false(UnrelatedClass:includes(hasFoo))
end)
end)
end)
end)
|
Mesh = "mge/models/GenTile.obj" --Add path to the model.
Texture = "mge/textures/GenTile.png" --Add path to the texture.
--Specific Tile Coding will go here.
Textures = {
"mge/textures/GenTile-Darker.png",
"mge/textures/GenTile-Gradient.png",
"mge/textures/GenTile.png"
}
TileSize = 1 |
local light_detector_handler = {}
light_detector_handler.__index = light_detector_handler
setmetatable(light_detector_handler, {
__call = function (cls, ...)
return cls.new(...)
end,
})
function light_detector_handler.new(node, callback)
local self = setmetatable({}, light_detector_handler)
self.node = node
self.callback = callback
return self
end
function light_detector_handler:handle(socket, message)
response = false
if message ~= nil and message.event ~= nil then
if message.event == 'light.state' then
message = network_message.prepareMessage()
message.response = self.node:get_state()
network_message.sendMessage(socket, message)
if self.callback ~= nil then
self.callback('light.state', self.node:get_state())
end
response = true
end
end
return response
end
return light_detector_handler
|
workspace "ETOD"
architecture "x64"
configurations
{
"Debug",
"Release",
"Dist"
}
outputdir = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
-- Include directories relative to root folder (solution directory)
IncludeDir = {}
IncludeDir["GLFW"] = "ETOD/vendor/GLFW/include"
IncludeDir["Glad"] = "ETOD/vendor/Glad/include"
IncludeDir["ImGui"] = "ETOD/vendor/imgui"
IncludeDir["glm"] = "ETOD/vendor/glm"
IncludeDir["stb_image"] = "ETOD/vendor/stb_image"
include "ETOD/vendor/GLFW"
include "ETOD/vendor/Glad"
include "ETOD/vendor/imgui"
project "ETOD"
location "ETOD"
kind "StaticLib"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
pchheader "etodpch.h"
pchsource "ETOD/src/etodpch.cpp"
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp",
"%{prj.name}/vendor/stb_image/**.h",
"%{prj.name}/vendor/stb_image/**.cpp",
"%{prj.name}/vendor/glm/glm/**.hpp",
"%{prj.name}/vendor/glm/glm/**.inl",
}
defines
{
"_CRT_SECURE_NO_WARNINGS"
}
includedirs
{
"%{prj.name}/src",
"%{prj.name}/vendor/spdlog/include",
"%{IncludeDir.GLFW}",
"%{IncludeDir.Glad}",
"%{IncludeDir.ImGui}",
"%{IncludeDir.glm}",
"%{IncludeDir.stb_image}"
}
links
{
"GLFW",
"Glad",
"ImGui",
"opengl32.lib"
}
filter "system:windows"
systemversion "latest"
defines
{
"ETOD_PLATFORM_WINDOWS",
"ETOD_BUILD_DLL",
"GLFW_INCLUDE_NONE"
}
filter "configurations:Debug"
defines "ETOD_DEBUG"
runtime "Debug"
symbols "on"
filter "configurations:Release"
defines "ETOD_RELEASE"
runtime "Release"
optimize "on"
filter "configurations:Dist"
defines "ETOD_DIST"
runtime "Release"
optimize "on"
project "Sandbox"
location "Sandbox"
kind "ConsoleApp"
language "C++"
cppdialect "C++17"
staticruntime "on"
targetdir ("bin/" .. outputdir .. "/%{prj.name}")
objdir ("bin-int/" .. outputdir .. "/%{prj.name}")
files
{
"%{prj.name}/src/**.h",
"%{prj.name}/src/**.cpp"
}
includedirs
{
"ETOD/vendor/spdlog/include",
"ETOD/src",
"ETOD/vendor",
"%{IncludeDir.glm}"
}
links
{
"ETOD"
}
filter "system:windows"
systemversion "latest"
defines
{
"ETOD_PLATFORM_WINDOWS",
}
filter "configurations:Debug"
defines "ETOD_DEBUG"
symbols "on"
filter "configurations:Release"
defines "ETOD_RELEASE"
optimize "on"
filter "configurations:Dist"
defines "ETOD_DIST"
optimize "on" |
-----------------------------------------
-- ID: 15793
-- Item: Anniversary Ring
-- Experience point bonus
-----------------------------------------
-- Bonus: +100%
-- Duration: 720 min
-- Max bonus: 3000 exp
-----------------------------------------
require("scripts/globals/status")
-----------------------------------------
function onItemCheck(target)
local result = 0
if (target:hasStatusEffect(tpz.effect.DEDICATION) == true) then
result = 56
end
return result
end
function onItemUse(target)
target:addStatusEffect(tpz.effect.DEDICATION, 100, 0, 43200, 0, 3000)
end
|
return {'pfeiffer','pfeiffer','pfennings','pfeifer','pfeijffer'} |
local x, y
x, t[1], t.field, t[x], t[x + 4], y = 1, 2, 3, 4, 5, 6
|
--------------------------------------------------------------------------------
-- Handler.......... : onStatStore
-- Author........... :
-- Description...... : Commits all achievement and stat changes.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
function Steam.onStatStore ( )
--------------------------------------------------------------------------------
if user.getAIState ( this.getUser ( ), "Steam" ) == "Idle" then return 0 end
Steamworks.StoreStats ( )
--------------------------------------------------------------------------------
end
--------------------------------------------------------------------------------
|
ffi = require "ffi"
require "LDYOM.Scripts.baseNode"
class = require "LDYOM.Scripts.middleclass"
Node = bitser.registerClass(class("NodeAttachCamToCharLookChar", BaseNode));
Node.static.name = imgui.imnodes.getNodeIcon("func")..' '..ldyom.langt("CoreNodeAttachCamToCharLookChar");
Node.static.mission = true;
function Node:initialize(id)
BaseNode.initialize(self,id);
self.type = 4;
self.Pins = {
[self.id+1] = BasePin:new(self.id+1,imgui.imnodes.PinType.void, 0),
[self.id+2] = BasePin:new(self.id+2,imgui.imnodes.PinType.number, 0, ffi.new("int[1]")),
[self.id+3] = BasePin:new(self.id+3,imgui.imnodes.PinType.number, 0, ffi.new("float[1]")),
[self.id+4] = BasePin:new(self.id+4,imgui.imnodes.PinType.number, 0, ffi.new("float[1]")),
[self.id+5] = BasePin:new(self.id+5,imgui.imnodes.PinType.number, 0, ffi.new("float[1]")),
[self.id+6] = BasePin:new(self.id+6,imgui.imnodes.PinType.number, 0, ffi.new("int[1]")),
[self.id+7] = BasePin:new(self.id+7,imgui.imnodes.PinType.boolean, 0, ffi.new("bool[1]")),
[self.id+9] = BasePin:new(self.id+9,imgui.imnodes.PinType.void, 1),
};
end
function attachToVehicleLookChar()
ldyom.attachCameraToEntity(3, currNodeStaticCamera.Pins[currNodeStaticCamera.id+2].value[0], currNodeStaticCamera.Pins[currNodeStaticCamera.id+6].value[0], currNodeStaticCamera.Pins[currNodeStaticCamera.id+3].value, currNodeStaticCamera.Pins[currNodeStaticCamera.id+4].value, currNodeStaticCamera.Pins[currNodeStaticCamera.id+5].value, nil, nil, nil);
end
function Node:draw()
imgui.imnodes.BeginNode(self.id,self.type)
imgui.imnodes.BeginNodeTitleBar();
imgui.Text(self.class.static.name);
if ldyom.getLastNode() == self.id then
imgui.SameLine(0,0);
imgui.TextColored(imgui.ImVec4.new(1.0,0.0,0.0,1.0)," \xef\x86\x88");
end
imgui.imnodes.EndNodeTitleBar();
imgui.imnodes.BeginInputAttribute(self.id+1);
imgui.Dummy(imgui.ImVec2:new(0,10));
imgui.imnodes.EndInputAttribute();
imgui.imnodes.BeginStaticAttribute(self.id+2);
local names = ldyom.namesActors;
imgui.Text(ldyom.langt("actor"));
imgui.SetNextItemWidth(150);
imgui.ComboVecChars("",self.Pins[self.id+2].value,names);
imgui.imnodes.EndStaticAttribute();
imgui.imnodes.BeginInputAttribute(self.id+3);
imgui.Text("x");
if not self.Pins[self.id+3].link then
imgui.SetNextItemWidth(200);
imgui.InputFloat("", self.Pins[self.id+3].value);
end
imgui.imnodes.EndInputAttribute();
imgui.imnodes.BeginInputAttribute(self.id+4);
imgui.Text("y");
if not self.Pins[self.id+4].link then
imgui.SetNextItemWidth(200);
imgui.InputFloat("", self.Pins[self.id+4].value);
end
imgui.imnodes.EndInputAttribute();
imgui.imnodes.BeginInputAttribute(self.id+5);
imgui.Text("z");
if not self.Pins[self.id+5].link then
imgui.SetNextItemWidth(200);
imgui.InputFloat("", self.Pins[self.id+5].value);
end
imgui.imnodes.EndInputAttribute();
imgui.imnodes.BeginStaticAttribute(self.id+6);
imgui.Text(ldyom.langt("actor"));
imgui.SetNextItemWidth(150);
imgui.ComboVecChars("",self.Pins[self.id+6].value,names);
imgui.imnodes.EndStaticAttribute();
imgui.imnodes.BeginInputAttribute(self.id+7);
if not self.Pins[self.id+7].link then
imgui.ToggleButton(ldyom.langt("movecam"), self.Pins[self.id+7].value);
else
imgui.Text(ldyom.langt(""));
end
imgui.imnodes.EndInputAttribute();
imgui.imnodes.BeginStaticAttribute(self.id+8);
if imgui.Button(ldyom.langt("edithand"), imgui.ImVec2:new(200,20)) and #names > 0 then
callOpcode(0x01B4, {{0,"int"}, {0,"int"}});
currNodeStaticCamera = self;
ldyom.set_off_gui(true);
addThread(attachToVehicleLookChar);
end
imgui.imnodes.EndStaticAttribute();
imgui.imnodes.BeginOutputAttribute(self.id+9);
imgui.Dummy(imgui.ImVec2:new(0,10));
imgui.imnodes.EndOutputAttribute();
imgui.imnodes.EndNode();
end
function Node:play(data, mission)
local ped = self:getPinValue(self.id+2,data,mission)[0];
local x = self:getPinValue(self.id+3,data,mission)[0];
local y = self:getPinValue(self.id+4,data,mission)[0];
local z = self:getPinValue(self.id+5,data,mission)[0];
local ped2 = self:getPinValue(self.id+6,data,mission)[0];
local movecam = self:getPinValue(self.id+7,data,mission)[0];
assert(mission.list_actors[ped+1].missionPed, "The actor is not yet established or has already disappeared.");
ldyom.setLastNode(self.id);
local pedRef = getPedRef(mission.list_actors[ped+1].missionPed);
local ped2Ref = getPedRef(mission.list_actors[ped2+1].missionPed);
callOpcode(0x067E, {{pedRef,"int"}, {x,"float"}, {y,"float"}, {z,"float"}, {ped2Ref,"int"}, {0.0,"float"}, {fif(movecam,1,2),"int"}});
self:callOutputLinks(data, mission, self.id+9);
end
ldyom.nodeEditor.addNodeClass("Camera",Node); |
local diff = {
["keyDiffs"] = {
["d201pnilu202cdnilvdnilvpnilvunil"] = {
["name"] = "Aircraft Rudder Left",
["removed"] = {
[1] = {
["key"] = "Z",
},
},
},
["d203pnilu204cdnilvdnilvpnilvunil"] = {
["name"] = "Aircraft Rudder Right",
["removed"] = {
[1] = {
["key"] = "X",
},
},
},
["d3001pnilu3001cd12vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "N",
},
},
["name"] = "Master Caution Button",
},
["d3001pnilunilcd15vd-1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "3",
["reformers"] = {
[1] = "LWin",
},
},
},
["name"] = "RDR ALT Switch - OFF",
},
["d3001pnilunilcd31vd0vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "R",
["reformers"] = {
[1] = "RAlt",
[2] = "RShift",
},
},
},
["name"] = "FCR Switch - OFF",
},
["d3001pnilunilcd31vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "R",
["reformers"] = {
[1] = "RAlt",
},
},
},
["name"] = "FCR Switch - FCR",
},
["d3002pnilu3002cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "0",
},
},
["name"] = "ICP Priority Function Button - 0(M-SEL)",
["removed"] = {
[1] = {
["key"] = "Num0",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3002pnilunilcd10vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "C",
["reformers"] = {
[1] = "LCtrl",
[2] = "LShift",
},
},
},
["name"] = "Canopy Switch - OPEN",
},
["d3002pnilunilcd19vd0vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "M",
["reformers"] = {
[1] = "LAlt",
},
},
},
["name"] = "MASTER ARM Switch - OFF",
},
["d3002pnilunilcd19vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "M",
["reformers"] = {
[1] = "LCtrl",
},
},
},
["name"] = "MASTER ARM Switch - MASTER ARM",
},
["d3003pnilu3003cd10vd-1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "C",
["reformers"] = {
[1] = "LCtrl",
},
},
},
["name"] = "Canopy Switch - CLOSE",
},
["d3003pnilu3003cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "1",
},
},
["name"] = "ICP Priority Function Button - 1(T-ILS)",
["removed"] = {
[1] = {
["key"] = "Num1",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3003pnilu3003cd2vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "Y",
},
},
["name"] = "BIT Switch - OFF/BIT",
},
["d3004pnilu3004cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "2",
},
},
["name"] = "ICP Priority Function Button - 2/N(ALOW)",
["removed"] = {
[1] = {
["key"] = "Num2",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3004pnilunilcd6vd0vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "G",
["reformers"] = {
[1] = "RAlt",
[2] = "RShift",
},
},
},
["name"] = "Engine ANTI ICE Switch - AUTO",
},
["d3004pnilunilcd6vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "G",
["reformers"] = {
[1] = "RCtrl",
[2] = "RShift",
},
},
},
["name"] = "Engine ANTI ICE Switch - ON",
},
["d3005pnilu3005cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "3",
},
},
["name"] = "ICP Priority Function Button - 3",
["removed"] = {
[1] = {
["key"] = "Num3",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3006pnilu3006cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "4",
},
},
["name"] = "ICP Priority Function Button - 4/W(STPT)",
["removed"] = {
[1] = {
["key"] = "Num4",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3006pnilunilcd11vd0.4vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "L",
["reformers"] = {
[1] = "LCtrl",
},
},
},
["name"] = "MASTER Switch - NORM",
},
["d3006pnilunilcd11vd0vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "1",
["reformers"] = {
[1] = "LWin",
},
},
},
["name"] = "MASTER Switch - OFF",
},
["d3007pnilu3007cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "5",
},
},
["name"] = "ICP Priority Function Button - 5(CRUS)",
["removed"] = {
[1] = {
["key"] = "Num5",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3007pnilunilcd32vd0vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "D",
["reformers"] = {
[1] = "RCtrl",
[2] = "RShift",
},
},
},
["name"] = "CH Expendable Category Switch - OFF",
},
["d3007pnilunilcd32vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "D",
["reformers"] = {
[1] = "RShift",
},
},
},
["name"] = "CH Expendable Category Switch - ON",
},
["d3008pnilu3008cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "6",
},
},
["name"] = "ICP Priority Function Button - 6/E(TIME)",
["removed"] = {
[1] = {
["key"] = "Num6",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3008pnilunilcd11vd0vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "2",
["reformers"] = {
[1] = "LWin",
},
},
},
["name"] = "LANDING TAXI LIGHTS Switch - OFF",
},
["d3008pnilunilcd11vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "L",
["reformers"] = {
[1] = "RAlt",
},
},
},
["name"] = "LANDING TAXI LIGHTS Switch - LANDING",
},
["d3008pnilunilcd32vd0vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "D",
["reformers"] = {
[1] = "LCtrl",
[2] = "LShift",
},
},
},
["name"] = "FL Expendable Category Switch - OFF",
},
["d3008pnilunilcd32vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "D",
["reformers"] = {
[1] = "LShift",
},
},
},
["name"] = "FL Expendable Category Switch - ON",
},
["d3008pnilunilcd4vd0vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "R",
["reformers"] = {
[1] = "LAlt",
},
},
},
["name"] = "AIR REFUEL Switch - CLOSE",
},
["d3008pnilunilcd4vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "R",
["reformers"] = {
[1] = "LCtrl",
},
},
},
["name"] = "AIR REFUEL Switch - OPEN",
},
["d3009pnilu3009cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "7",
},
},
["name"] = "ICP Priority Function Button - 7(MARK)",
["removed"] = {
[1] = {
["key"] = "Num7",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3010pnilu3010cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "8",
},
},
["name"] = "ICP Priority Function Button - 8/S(FIX)",
["removed"] = {
[1] = {
["key"] = "Num8",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3010pnilu3010cd2vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "L",
},
},
["name"] = "MANUAL PITCH Override Switch - OVRD/NORM",
},
["d3011pnilu3011cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "9",
},
},
["name"] = "ICP Priority Function Button - 9(A-CAL)",
["removed"] = {
[1] = {
["key"] = "Num9",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3012pnilu3012cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "E",
["reformers"] = {
[1] = "LShift",
},
},
},
["name"] = "ICP COM Override Button - COM1(UHF)",
["removed"] = {
[1] = {
["key"] = "5",
},
},
},
["d3013pnilu3013cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "E",
["reformers"] = {
[1] = "RShift",
},
},
},
["name"] = "ICP COM Override Button - COM2(VHF)",
["removed"] = {
[1] = {
["key"] = "6",
},
},
},
["d3014pnilu3014cd16vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "D",
["reformers"] = {
[1] = "LAlt",
},
},
},
["name"] = "Countermeasures Management Switch - Fwd",
},
["d3014pnilu3014cd17vd1vpnilvu0"] = {
["name"] = "ICP IFF Override Button - IFF",
["removed"] = {
[1] = {
["key"] = "7",
},
},
},
["d3015pnilu3015cd16vd-1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "D",
["reformers"] = {
[1] = "LCtrl",
},
},
},
["name"] = "Countermeasures Management Switch - Aft",
},
["d3015pnilu3015cd17vd1vpnilvu0"] = {
["name"] = "ICP LIST Override Button - LIST",
["removed"] = {
[1] = {
["key"] = "8",
},
},
},
["d3016pnilu3016cd16vd-1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "D",
["reformers"] = {
[1] = "RAlt",
},
},
},
["name"] = "Countermeasures Management Switch - Left",
},
["d3016pnilu3016cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "Enter",
},
[2] = {
["key"] = "Q",
},
},
["name"] = "ICP Enter Button - ENTR",
["removed"] = {
[1] = {
["key"] = "NumEnter",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["d3017pnilu3017cd16vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "D",
["reformers"] = {
[1] = "RCtrl",
},
},
},
["name"] = "Countermeasures Management Switch - Right",
},
["d3018pnilu3018cd16vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "I",
},
},
["name"] = "Expand/FOV Button - Depress",
},
["d3018pnilu3018cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "E",
["reformers"] = {
[1] = "LAlt",
},
},
},
["name"] = "ICP Master Mode Button - A-A",
["removed"] = {
[1] = {
["key"] = "1",
},
},
},
["d3018pnilunilcd10vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "C",
["reformers"] = {
[1] = "LShift",
},
},
},
["name"] = "Canopy Handle - DOWN/UP",
},
["d3019pnilu3019cd16vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "A",
},
},
["name"] = "Paddle Switch - Depress",
},
["d3019pnilu3019cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "E",
["reformers"] = {
[1] = "RAlt",
},
},
},
["name"] = "ICP Master Mode Button - A-G",
["removed"] = {
[1] = {
["key"] = "2",
},
},
},
["d3028pnilunilcd17vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "C",
["reformers"] = {
[1] = "RShift",
},
},
},
["name"] = "ICP DRIFT CUTOUT/WARN RESET Switch - DRIFT C/O",
},
["d3030pnilu3030cd17vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "X",
},
},
["name"] = "ICP DED Increment/Decrement Switch - Increment",
},
["d3030pnilunilcd16vd-1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "O",
["reformers"] = {
[1] = "RAlt",
},
},
},
["name"] = "DOGFIGHT/Missile Override Switch - MISSILE OVERRIDE",
},
["d3030pnilunilcd16vd0vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "O",
["reformers"] = {
[1] = "LShift",
},
},
},
["name"] = "DOGFIGHT/Missile Override Switch - CENTER",
},
["d3030pnilunilcd16vd1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "O",
["reformers"] = {
[1] = "LAlt",
},
},
},
["name"] = "DOGFIGHT/Missile Override Switch - DOGFIGHT",
},
["d3031pnilu3031cd17vd-1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "Z",
},
},
["name"] = "ICP DED Increment/Decrement Switch - Decrement",
},
["d3031pnilu3031cd2vd-1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "A",
["reformers"] = {
[1] = "LShift",
},
},
},
["name"] = "Autopilot PITCH Switch - ATT HOLD",
},
["d3032pnilu3032cd17vd-1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "R",
},
},
["name"] = "ICP Data Control Switch - RET",
},
["d3032pnilu3032cd2vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "A",
["reformers"] = {
[1] = "LCtrl",
},
},
},
["name"] = "Autopilot PITCH Switch - ALT HOLD",
},
["d3032pnilunilcd2vd-1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "A",
["reformers"] = {
[1] = "LAlt",
},
},
},
["name"] = "Autopilot PITCH Switch - A/P OFF",
},
["d3035pnilu3035cd17vd-1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "`",
},
[2] = {
["key"] = "T",
},
},
["name"] = "ICP Data Control Switch - DOWN",
},
["d3038pnilunilcd17vd-1vpnilvunil"] = {
["added"] = {
[1] = {
["key"] = "4",
["reformers"] = {
[1] = "LWin",
},
},
},
["name"] = "RF Switch - SILENT",
},
["d3039pnilu3039cd16vd1vpnilvu0"] = {
["added"] = {
[1] = {
["key"] = "Enter",
["reformers"] = {
[1] = "LShift",
},
},
},
["name"] = "ENABLE Switch - Depress",
["removed"] = {
[1] = {
["key"] = "Enter",
},
},
},
["d3044pnilunilcd16vd-1vpnilvunil"] = {
["name"] = "DOGFIGHT/Missile Override Switch - MISSILE OVERRIDE/CENTER",
["removed"] = {
[1] = {
["key"] = "4",
},
},
},
["d3044pnilunilcd16vd1vpnilvunil"] = {
["name"] = "DOGFIGHT/Missile Override Switch - DOGFIGHT/CENTER",
["removed"] = {
[1] = {
["key"] = "3",
},
},
},
["d71pnilu71cdnilvd1vpnilvu0"] = {
["name"] = "Canopy - OPEN/CLOSE",
["removed"] = {
[1] = {
["key"] = "C",
["reformers"] = {
[1] = "LCtrl",
},
},
},
},
["dnilp3002unilcd30vdnilvp0.3vunil"] = {
["added"] = {
[1] = {
["key"] = "H",
["reformers"] = {
[1] = "RAlt",
},
},
},
["name"] = "HMCS SYMBOLOGY INT Knob - CW/Increase",
},
["dnilp3040unilcd16vdnilvp1vunil"] = {
["added"] = {
[1] = {
["key"] = "]",
["reformers"] = {
[1] = "RShift",
},
},
},
["name"] = "MAN RNG Knob - CW",
},
["dnilp3041unilcd16vdnilvp-1vunil"] = {
["added"] = {
[1] = {
["key"] = "[",
["reformers"] = {
[1] = "RShift",
},
},
},
["name"] = "MAN RNG Knob - CCW",
},
},
}
return diff |
--[[
Multiple Line Text Input Manager
Handles input for a multiline textbox
]]
local lib, input
local text
text = {
init = function(self, engine)
lib = engine.lib
lib.oop:objectify(self)
end
}
return text |
--[[ Encounter - Kil'Jaeden's Death.lua
This script was written and is protected
by the GPL v2. This script was released
by BrantX of the Blua Scripting
Project. Please give proper accredidations
when re-releasing or sharing this script
with others in the emulation commUnity.
~~End of License Agreement
-- BrantX, February 18, 2009. ]]
--[[
Spawn ID : 26246 = Velen
Spawn ID : 25246 = Liadrin
In Order, Start to Finish.
Mortal heroes, your victory here today was foretold long ago. My brother's anguished cry of defeat will echo across the universe, bringing renewed hope to all those who still stand against the Burning Crusade.
Sound ID : 12515
Talker : Velen
As the Legion's final defeat draws ever-nearer, stand proud in the knowledge that you have saved worlds without number from the flame.
Sound ID : 12516
Talker : Velen
Just as this day marks an ending, so too does it herald a new beginning...
Sound ID : 12517
Talker : Velen
The creature Entropius, whom you were forced to destroy, was once the noble naaru, M'uru. In life, M'uru channeled vast energies of Light and Hope. For a time, a misguided few sought to steal those energies...
Sound ID : 12518
Talker : Velen
Our arrogance was unpardonable. We damned one of the most noble beings of all. We may never atone for this sin.
Sound ID : 12524
Talker : Liadrin
Then fortunate it is, that I have reclaimed the noble naaru's spark from where it fell! Where faith dwells, hope is never lost, young blood elf.
Sound ID: 12519
Talker : Velen
Can it be?
Sound ID : 12525
Talker : Liadrin
Gaze now, mortals - upon the Heat Of M'uru! Unblemished. Bathed by the light of Creation - just as it was at the Dawn.
Sound ID : 12520
Talker : Velen
In time, the light and hope held within - will rebirth more than this mere fount of power... Mayhap, they will rebirth the soul of a nation.
Sound ID : 12521
Talker : Velen
Blessed ancestors! I feel it... so much love... so much grace... there are... no words... impossible to describe...
Sound ID : 12526
Talker : Liadrin
Salvation, young one. It waits for us all.
Sound ID : 12522
Talker : Velen
Farewell...
Sound ID : 12523
Talker : Velen
--]]
|
-- Script for set teleport destination
-- /teleport xxxx, xxxx, x
local teleportSetDestination = TalkAction("/teleport")
function teleportSetDestination.onSay(player, words, param)
if not player:getGroup():getAccess() or player:getAccountType() < ACCOUNT_TYPE_GOD then
return true
end
if param == "" then
player:sendCancelMessage("Teleport position required.")
return false
end
local position = player:getPosition()
position:getNextPosition(player:getDirection(), 1)
local split = param:split(",")
local teleportId = 1949
local teleport = Tile(position):getItemById(teleportId)
if teleport and teleport:isTeleport() then
if split then
teleport:setDestination(Position(split[1], split[2], split[3]))
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("New position: %s, %s, %s", split[1], split[2], split[3]))
end
else
player:sendCancelMessage("Not is item of id ".. teleportId ..".")
return true
end
return false
end
teleportSetDestination:separator(" ")
teleportSetDestination:register()
|
namespace('MemeBrowser')
local function htmlDecode(str)
local tbl = {
['lt'] = '<',
['gt'] = '>',
['quot'] = '"',
['apos'] = '\'',
['nbsp'] = ' ',
['amp'] = '&',
['oacute'] = 'ó',
}
return str:gsub('&([#%w]+);', function(s)
if (s:sub(1, 1) == '#') then
return string.char(s:sub(2))
else
return tbl[s]
end
end)
end
local g_Services = {}
g_Services.demotywatory = {
getImageList = function(self, callback, page, ...)
local url, cacheResponse
if (page) then
url = 'http://demotywatory.pl/page/'..page
cacheResponse = true
else
url = 'http://demotywatory.pl/losuj'
end
DownloadMgr.get(url, cacheResponse, function(data, ...)
if (not data) then
Debug.err('Failed to download demotywatory images')
callback(false, page, ...)
elseif (data:len() < 200) then
Debug.warn('Returned data too short: '..data)
callback(false, page, ...)
else
local imgList = {}
local pattern = '<img%s+src="([^"]+)"%s+alt="([^"]+)"%s+class="demot".-/>'
for url, title in data:gmatch(pattern) do
local title1, title2 = title:match('^(.-)%s*–%s*(.-)$')
if (title1 and title2) then
if (title2:len() > 0) then
title = title1..' - '..title2
else
title = title1
end
end
local imgInfo = {url, htmlDecode(title)}
table.insert(imgList, imgInfo)
end
callback(imgList, page, ...)
end
end, ...)
end,
}
g_Services.kwejk = {
getImageList = function(self, callback, page, ...)
local url, cacheResponse
if (page) then
if (page == 1 or not self.pageNum) then
url = 'http://kwejk.pl/' -- FIXME: page
else
url = 'http://kwejk.pl/strona/'..self.pageNum - (page - 1)
end
cacheResponse = true
else
url = 'http://kwejk.pl/losuj'
end
DownloadMgr.get(url, cacheResponse, function(data, ...)
if (not data) then
callback(false, page, ...)
elseif (data:len() < 1000) then
Debug.warn('Returned data too short: '..data)
callback(false, page, ...)
else
local imgList = {}
--local pattern = '<a data-track="true" data-track-category="[^"]+"+ data-track-action="[^"]+" data-track-label="[^"]+" +href="[^"]+">%s+<img src="([^"]+)" +alt="([^"]+)" />%s+</a>'
local pattern = 'data%-track%-label="[^"]+"%s+href="[^"]+">%s+<img src="([^"]+)" +alt="([^"]+)" />%s+</a>'
for url, title in data:gmatch(pattern) do
local imgInfo = {url, htmlDecode(title)}
table.insert(imgList, imgInfo)
end
callback(imgList, page, ...)
local pagesTotal = data:match('pagesTotal: (%d+)')
if (pagesTotal) then
self.pageNum = pagesTotal
end
end
end, ...)
end,
}
local function downloadImages(imgList, page, serviceId, playerEl)
if not imgList then
Debug.err('Failed to download '..serviceId..' images')
return
end
Debug.info('Download '..serviceId..' images - '..#imgList)
for i, imgInfo in ipairs(imgList) do
DownloadMgr.get(imgInfo[1], true, function(data)
if (isElement(playerEl)) then
RPC('MemeBrowser.addImage', page, i, imgInfo[2], data):setClient(playerEl):exec()
end
end)
end
end
function requestImages(serviceId, page)
local service = g_Services[serviceId]
if (not service) then return end
service:getImageList(downloadImages, page, serviceId, client)
end
RPC.allow('MemeBrowser.requestImages')
local function onPlayerQuit()
for id, service in pairs(g_Services) do
-- TODO
end
end
addInitFunc(function()
addEventHandler('onPlayerQuit', root, onPlayerQuit)
end)
|
--====================================================================--
-- dmc_corona/dmc_websockets/exception.lua
--
-- Documentation: http://docs.davidmccuskey.com/
--====================================================================--
--[[
The MIT License (MIT)
Copyright (C) 2014-2015 David McCuskey. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
--]]
--====================================================================--
--== DMC Corona Library : WebSockets Exception
--====================================================================--
-- Semantic Versioning Specification: http://semver.org/
local VERSION = "0.2.0"
--====================================================================--
--== Imports
local Error = require 'lib.dmc_lua.lua_error'
local Objects = require 'lib.dmc_lua.lua_objects'
--====================================================================--
--== Setup, Constants
-- setup some aliases to make code cleaner
local newClass = Objects.newClass
--====================================================================--
--== Protocol Error Class
--====================================================================--
local ProtocolError = newClass( Error, { name="Protocol Error" } )
-- params:
-- code
-- reason
-- message
--
function ProtocolError:__new__( params )
-- print( "ProtocolError:__init__" )
params = params or {}
self:superCall( '__new__', params.message, params )
--==--
if self.is_class then return end
assert( params.code, "ProtocolError: missing protocol code" )
self.code = params.code
self.reason = params.reason or ""
end
--====================================================================--
--== Exception Facade
--====================================================================--
return {
ProtocolError=ProtocolError
}
|
local ENCODER = require(script:GetCustomProperty("EncoderAPI"))
function Decode(message)
local result = ENCODER.DecodePosAndOffsetSigns(message)
for i, val in ipairs(result) do
print(tostring(i).." "..tostring(val))
end
end
Events.Connect("Message", Decode) |
if UseItem(127) == true then goto label0 end;
do return end;
::label0::
AddItemWithoutHint(127, -1);
Talk(35, "好一只翡翠杯!得此美酒佳器,人生更有何憾.我令狐冲先干为敬,谢谢兄弟赠酒之情.", "talkname35", 0);
PlayAnimation(3, 5722, 5748);
jyx2_PlayTimeline("[Timeline]ka238_悦来客栈_令狐冲喝酒", 0, false, "NPC/linghuchong");
jyx2_Wait(0.9);
jyx2_StopTimeline("[Timeline]ka238_悦来客栈_令狐冲喝酒");
ModifyEvent(-2, -2, -2, -2, 243, -1, -1, 5722, 5748, 5722, -2, -2, -2);
Talk(0, "<令狐冲!他就是令狐冲>我听江湖上议论纷纷说令狐兄已遭华山派逐出师门,不知可有此事?", "talkname0", 1);
Talk(35, "唉!令狐冲一生仗义直行,从不做违背良心之事,到头来却落至这个结果.这件事的始末也非三言两语可道尽.唉.不谈这个,咱们喝酒吧", "talkname35", 0);
Talk(0, "不知令狐兄今后有何打算?", "talkname0", 1);
Talk(35, "......", "talkname35", 0);
if AskJoin () == true then goto label1 end;
Talk(0, "<这个玩物丧志的家伙,整天就只知道喝酒,跟他在一起真是浪费我找书的时间>啊!令狐兄,我突然想起还有重要的事要办,我先失陪了.", "talkname0", 1);
do return end;
::label1::
Talk(0, "我看不如这样吧.令狐兄就和我一起同游江湖共寻美酒,才不枉此生.", "talkname0", 1);
if TeamIsFull() == false then goto label2 end;
Talk(35, "你的队伍已满,我无法加入.", "talkname35", 0);
do return end;
::label2::
Talk(35, "这个提议甚好,咱们就一起喝尽人世间的佳酿美酒,走!对了,兄弟,告诉你一个好玩的地方,是我在华山时发现的.那地方甚为隐密,入口在华山的背面,有空我们可以去看看.", "talkname35", 0);
ModifyEvent(-2, -2, 0, 0, -1, -1, -1, -1, -1, -1, -1, -2, -2);
LightScence();
Join(35);
AddEthics(3);
do return end;
|
-- block interface
-- allows creation of block device objects
-- which are an abstraction on files
local block = {}
function block.new(image, blocksize, offset)
local bd = {}
offset = offset or 0
bd.bs = blocksize
bd.file = io.open(image, "rb+")
if not bd.file then return false end
bd.size = bd.file:seek("end") - (offset * blocksize)
bd.blocks = math.floor(bd.size / blocksize) - offset
function bd:seek(block)
self.file:seek("set", (block * self.bs) + (offset * self.bs))
end
function bd:read()
return string.byte(self.file:read(1))
end
function bd:write(byte)
self.file:write(string.char(byte))
end
function bd:readBlock(block)
if block > self.blocks then
error(string.format("read %x", block))
end
local b = {}
self.file:seek("set", (block * self.bs) + (offset * self.bs))
for i = 0, self.bs - 1 do
b[i] = string.byte(self.file:read(1) or "\0")
end
return b
end
function bd:writeBlock(block, b)
if block > self.blocks then
error(string.format("write %x", block))
end
self.file:seek("set", (block * self.bs) + (offset * self.bs))
for i = 0, self.bs - 1 do
self.file:write(string.char(b[i] or 0))
end
end
function bd:close()
self.file:close()
end
return bd
end
return block |
-- Declare Constants
DoorOpen = 1
DoorClosed = 0
GearUp = 1
GearDown = 0
--enumerated state 'constants'
Retracted = 0
Opening = 1
Lowering = 2
ClosingDown = 3
Deployed = 4
OpeningDown = 5
Raising = 6
Closing = 7
--Output Channels
DoorChannelOut = 1
GearChannelOut = 2
-- Global Variables
--Input Channels
GearToggleChannelIn = 1
-- State variables
GearState = Deployed
GearButtonPressed = false
GearTimeCounter = 0
function onTick()
-- Read the inputs
gearButton = input.getBool(GearToggleChannelIn)
-- Sets the state of the Gear when the button is pressed.
-- If the button is pressed for the first tick since it was last pressed, then flip the state
-- Also record that the button is currently pressed, so it can be ignored until it's been released and then pressed again.
if gearButton then
if not GearButtonPressed then
GearButtonPressed = true
--if you're here this is the first tick that the button's been pressed, this time around. Time to start the hatch moving.
if GearState == Deployed then
GearState = OpeningDown
output.setNumber(DoorChannelOut, DoorOpen)
GearTimeCounter = 0
elseif GearState == Retracted then
GearState = Opening
output.setNumber(DoorChannelOut, DoorOpen)
GearTimeCounter = 0
end
end
else
--Reset button pressed variable whenever it's not being pressed
GearButtonPressed = false
end
-- Code to run for each hatch state
if GearState == Opening then
GearTimeCounter = GearTimeCounter + 1
if GearTimeCounter >= 60 then
GearState = Lowering
output.setNumber(GearChannelOut, GearDown)
GearTimeCounter = 0
end
elseif GearState == Lowering then
GearTimeCounter = GearTimeCounter + 1
if GearTimeCounter >= 60 then
GearState = ClosingDown
output.setNumber(DoorChannelOut, DoorClosed)
end
elseif GearState == ClosingDown then
GearTimeCounter = GearTimeCounter + 1
if GearTimeCounter >= 60 then
GearState = Deployed
GearTimeCounter = 0
end
elseif GearState == OpeningDown then
GearTimeCounter = GearTimeCounter + 1
if GearTimeCounter >= 60 then
GearState = Raising
output.setNumber(GearChannelOut, GearUp)
GearTimeCounter = 0
end
elseif GearState == Raising then
GearTimeCounter = GearTimeCounter + 1
if GearTimeCounter >= 60 then
GearState = Closing
output.setNumber(DoorChannelOut, DoorClosed)
GearTimeCounter = 0
end
elseif GearState == Closing then
GearTimeCounter = GearTimeCounter + 1
if GearTimeCounter >= 60 then
GearState = Retracted
GearTimeCounter = 0
end
end
end |
description = [[
Performs brute force password auditing against http form-based authentication.
]]
---
-- @usage
-- nmap --script http-form-brute -p 80 <host>
--
-- This script uses the unpwdb and brute libraries to perform password
-- guessing. Any successful guesses are stored in the nmap registry, under
-- the nmap.registry.credentials.http key for other scripts to use.
--
-- The script automatically attempts to discover the form field names to
-- use in order to perform password guessing. If it fails doing so the form
-- parameters can be supplied using the uservar and passvar arguments.
--
-- After attempting to authenticate using a HTTP POST request the script
-- analyzes the response and attempt to determine whether authentication was
-- successful or not. The script analyzes this by checking the response using
-- the following rules:
-- 1. If the response was empty the authentication was successful
-- 2. If the response contains the message passed in the onsuccess
-- argument the authentication was successful
-- 3. If no onsuccess argument was passed, and if the response
-- does not contain the message passed in the onfailure argument the
-- authentication was successful
-- 4. If neither the onsuccess or onfailure argument was passed and the
-- response does not contain a password form field authentication
-- was successful
-- 5. Authentication failed
--
-- @output
-- PORT STATE SERVICE REASON
-- 80/tcp open http syn-ack
-- | http-brute:
-- | Accounts
-- | Patrik Karlsson:secret => Login correct
-- | Statistics
-- |_ Perfomed 60023 guesses in 467 seconds, average tps: 138
--
-- Summary
-- -------
-- x The Driver class contains the driver implementation used by the brute
-- library
--
-- @args http-form-brute.path points to the path protected by authentication
-- @args http-form-brute.hostname sets the host header in case of virtual
-- hosting
-- @args http-form-brute.uservar (optional) sets the http-variable name that
-- holds the username used to authenticate. A simple autodetection of
-- this variable is attempted.
-- @args http-form-brute.passvar sets the http-variable name that holds the
-- password used to authenticate. A simple autodetection of this variable
-- is attempted.
-- @args http-form-brute.onsuccess (optional) sets the message to expect on
-- successful authentication
-- @args http-form-brute.onfailure (optional) sets the message to expect on
-- unsuccessful authentication
--
-- Version 0.3
-- Created 07/30/2010 - v0.1 - created by Patrik Karlsson <patrik@cqure.net>
-- Revised 05/23/2011 - v0.2 - changed so that uservar is optional
-- Revised 06/05/2011 - v0.3 - major re-write, added onsucces, onfailure and
-- support for redirects
--
author = "Patrik Karlsson"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = {"intrusive", "brute"}
require 'shortport'
require 'http'
require 'brute'
require 'url'
require 'creds'
portrule = shortport.port_or_service( {80, 443}, {"http", "https"}, "tcp", "open")
local form_params = {}
Driver = {
new = function(self, host, port, options)
local o = {}
setmetatable(o, self)
self.__index = self
o.host = nmap.registry.args['http-form-brute.hostname'] or host
o.port = port
o.options = options
return o
end,
connect = function( self )
-- This will cause problems, as ther is no way for us to "reserve"
-- a socket. We may end up here early with a set of credentials
-- which won't be guessed until the end, due to socket exhaustion.
return true
end,
login = function( self, username, password )
-- we need to supply the no_cache directive, or else the http library
-- incorrectly tells us that the authentication was successfull
local postparams = { [self.options.passvar] = password }
if ( self.options.uservar ) then postparams[self.options.uservar] = username end
local response = Driver.postRequest(self.host, self.port, self.options.path, postparams)
local success = false
-- if we have no response, we were successful
if ( not(response.body) ) then
success = true
-- if we have a response and it matches our onsuccess match, login was successful
elseif ( response.body and
self.options.onsuccess and
response.body:match(self.options.onsuccess) ) then
success = true
-- if we have a response and it does not match our onfailure, login was successful
elseif ( response.body and
not(self.options.onsuccess) and
self.options.onfailure and
not(response.body:match(self.options.onfailure))) then
success = true
-- if we have a response and no onfailure or onsuccess match defined
-- and can't find a password field, login was successful
elseif ( response.body and
not(self.options.onfailure) and
not(self.options.onsuccess) and
not(response.body:match("input.-type=[\"]*[Pp][Aa][Ss][Ss][Ww][Oo][Rr][Dd][\"]*"))
) then
success = true
end
-- We check whether the body was empty or that we have a body without our user- and pass-var
if ( success ) then
nmap.registry['credentials'] = nmap.registry['credentials'] or {}
nmap.registry.credentials['http'] = nmap.registry.credentials['http'] or {}
table.insert( nmap.registry.credentials.http, { username = username, password = password } )
return true, brute.Account:new( username, password, creds.State.VALID)
end
return false, brute.Error:new( "Incorrect password" )
end,
disconnect = function( self )
return true
end,
check = function( self )
return true
end,
postRequest = function( host, port, path, options )
local response = http.post( host, port, path, { no_cache = true }, nil, options )
local status = ( response and tonumber(response.status) ) or 0
if ( status > 300 and status < 400 ) then
local new_path = url.absolute(path, response.header.location)
response = http.get( host, port, new_path, { no_cache = true } )
end
return response
end,
}
--- Attempts to auto-detect known form-fields
--
local function detectFormFields( host, port, path )
local response = http.get( host, port, path )
local user_field, pass_field
if ( response.status == 200 ) then
user_field = response.body:match("<[Ii][Nn][Pp][Uu][Tt].-name=[\"]*([^\"]-[Uu][Ss][Ee][Rr].-)[\"]*.->")
pass_field = response.body:match("<[Ii][Nn][Pp][Uu][Tt].-name=[\"]*([Pp][Aa][Ss][Ss].-)[\"]*.->")
if ( not(pass_field) ) then
pass_field = response.body:match("<[Ii][Nn][Pp][Uu][Tt].-name=[\"]-([^\"]-[Kk][Ee][Yy].-)[\"].->")
end
end
return user_field, pass_field
end
action = function( host, port )
local uservar = stdnse.get_script_args('http-form-brute.uservar')
local passvar = stdnse.get_script_args('http-form-brute.passvar')
local path = stdnse.get_script_args('http-form-brute.path') or "/"
local force = stdnse.get_script_args("http-form-brute.force")
local onsuccess = stdnse.get_script_args("http-form-brute.onsuccess")
local onfailure = stdnse.get_script_args("http-form-brute.onfailure")
local _
-- if now fields were given attempt to autodetect
if ( not(uservar) and not(passvar) ) then
uservar, passvar = detectFormFields( host, port, path )
-- if now passvar was detected attempt to autodetect
elseif ( not(passvar) ) then
_, passvar = detectFormFields( host, port, path )
end
-- uservar is optional, so only make sure we have a passvar
if ( not( passvar ) ) then
return "\n ERROR: No passvar was specified (see http-form-brute.passvar)"
end
if ( not(path) ) then
return "\n ERROR: No path was specified (see http-form-brute.path)"
end
if ( onsuccess and onfailure ) then
return "\n ERROR: Either the onsuccess or onfailure argument should be passed, not both."
end
local options = { [passvar] = "this_is_not_a_valid_password" }
if ( uservar ) then options[uservar] = "this_is_not_a_valid_user" end
local response = Driver.postRequest( host, port, path, options )
if ( not(response) or not(response.body) or response.status ~= 200 ) then
return ("\n ERROR: Failed to retrieve path (%s) from server"):format(path)
end
-- try to detect onfailure match
if ( onfailure and not(response.body:match(onfailure)) ) then
return ("\n ERROR: Failed to match password failure message (%s)"):format(onfailure)
elseif ( not(onfailure) and
not(onsuccess) and
not(response.body:match("input.-type=[\"]*[Pp][Aa][Ss][Ss][Ww][Oo][Rr][Dd][\"]*")) ) then
return ("\n ERROR: Failed to detect password form field see (http-form-brute.onsuccess or http-form-brute.onfailure)")
end
local engine = brute.Engine:new( Driver, host, port, {
uservar = uservar, passvar = passvar,
path = path, onsuccess = onsuccess, onfailure = onfailure
}
)
-- there's a bug in http.lua that does not allow it to be called by
-- multiple threads
engine:setMaxThreads(1)
engine.options.script_name = SCRIPT_NAME
if ( not(uservar) ) then
engine.options:setOption( "passonly", true )
end
local status, result = engine:start()
return result
end
|
--- #
--- # SET USERGROUP
--- #
xAdmin.Core.RegisterCommand("setgroup", "Set a user's group", 93, function(admin, args)
if not args or not args[1] or not args[2] then return end
if not xAdmin.Groups[args[2]] then
xAdmin.Core.Msg({Color(46, 170, 200), "[xAdmin] ", Color(255, 255, 255), args[2].." is not a valid usergroup"}, admin)
return
end
if not admin:HasPower(xAdmin.Groups[args[2]].power) then
xAdmin.Core.Msg({Color(46, 170, 200), "[xAdmin] ", Color(255, 255, 255), "You do not have enough power to set this rank"}, admin)
return
end
local target, targetPly = xAdmin.Core.GetID64(args[1], admin)
if not target then
xAdmin.Core.Msg({Color(46, 170, 200), "[xAdmin] ", Color(255, 255, 255), "Please provide a valid target. The following was not recognised: "..args[1]}, admin)
return
end
if IsValid(targetPly) and targetPly:HasPower(admin:GetGroupPower()) then
xAdmin.Core.Msg({Color(46, 170, 200), "[xAdmin] ", Color(255, 255, 255), "This user outpowers you."}, admin)
return
end
xAdmin.Database.UpdateUsersGroup(target, xAdmin.Database.Escape(args[2]))
if IsValid(targetPly) then
xAdmin.Core.Msg({"Your usergroup has been updated to the following: "..args[2]}, targetPly)
xAdmin.Core.Msg({"You have updated "..targetPly:GetName().."'s usergroup to: "..args[2]}, admin)
xAdmin.Users[targetPly:SteamID64()] = args[2]
if targetPly:HasPower(xAdmin.Config.AdminChat) then
xAdmin.AdminChat[targetPly:SteamID64()] = targetPly
else
xAdmin.AdminChat[targetPly:SteamID64()] = nil
end
local commandCache = {}
for k, v in pairs(xAdmin.Commands) do
if targetPly:HasPower(v.power) then
commandCache[v.command] = v.desc
end
end
net.Start("xAdminNetworkCommands")
net.WriteTable(commandCache)
net.Send(targetPly)
net.Start("xAdminNetworkIDRank")
net.WriteString(targetPly:SteamID64())
net.WriteString(xAdmin.Users[targetPly:SteamID64()])
net.Broadcast()
if args[2] == "jr-mod" then
targetPly:GiveBadge("staff")
end
else
xAdmin.Core.Msg({"You have updated "..target.."'s usergroup to: "..args[2]}, admin)
if args[2] == "jr-mod" then
XYZBadges.Core.GiveIDBadge(target, "staff")
end
end
end)
--- #
--- # GET USERGROUP
--- #
xAdmin.Core.RegisterCommand("getgroup", "Get a user's group", 10, function(admin, args)
if not args or not args[1] then return end
local targetID, target = xAdmin.Core.GetID64(args[1], admin)
if not targetID then
xAdmin.Core.Msg({Color(46, 170, 200), "[xAdmin] ", Color(255, 255, 255), "Please provide a valid target. The following was not recognised: "..args[1]}, admin)
return
end
if target then
xAdmin.Core.Msg({target, "'s usergroup is: "..target:GetUserGroup()}, admin)
else
xAdmin.Database.GetUsersGroup(targetID, function(data)
if not data[1] then
xAdmin.Core.Msg({"No users found with the following ID: "..targetID}, admin)
return
end
xAdmin.Core.Msg({targetID.."'s usergroup is: "..data[1].rank}, admin)
end)
end
end) |
-- Copyright (c) 2020 Trevor Redfern
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
describe("game.rules.start_turn.pick_quests", function()
local quest = require "game.entities.quest"
local quest_db
local pick_quests = require "game.rules.start_turn.pick_quests"
local game_state
before_each(function()
game_state = require "game.game_state":new()
quest_db = {
quest:new{ title = "not-available", prerequisites = function() return false end},
quest:new{ title = "available 1", prerequisites = function() return true end },
quest:new{ title = "available 2", prerequisites = function() return true end }
}
end)
it("picks quests that are available this turn", function()
pick_quests(game_state, quest_db)
assert.equals(2, #game_state.quests)
assert.equals("available 1", game_state.quests[1].title)
assert.equals("available 2", game_state.quests[2].title)
end)
it("defaults the database to the entire quest database", function()
assert.has_no_errors(function() pick_quests(game_state) end)
end)
it("does not pick the same quest twice and leaves existing quests there", function()
pick_quests(game_state, quest_db)
local q1, q2 = game_state.quests[1], game_state.quests[2]
pick_quests(game_state, quest_db)
assert.array_matches({q1, q2}, game_state.quests)
end)
end) |
local au = require('au')
local u = require('util')
-- # Simple autocmd with one event: au.<event> = string | fn | { pattern: string, action: string | fn }
-- 1. If you want aucmd to fire on every buffer, you can use the style below
au.TextYankPost = function()
vim.highlight.on_yank()
end
au.BufWritePre = function()
u.auto_mkdir(vim.fn.expand('<afile>:p:h:s?suda://??'), vim.api.nvim_eval('v:cmdbang'))
end
-- au.InsertLeave = function()
-- vim.go.paste = false
-- end
au.BufReadPost = [[ if line("'\"") > 0 && line ("'\"") <= line("$") | exe "normal! g'\"" | endif ]]
au.BufWinEnter = [[ if empty(&buftype) && line('.') > winheight(0) / 2 | execute 'normal! zz' | endif ]]
-- # Autocmd with multiple event: au(events: table, cmd: string | fn | {pattern: string, action: string | fn})
-- For this you can just call the required module just like a function
au({ 'BufEnter', 'FocusGained', 'InsertLeave', 'WinEnter' },
function()
vim.wo.relativenumber = true
end
)
au({ 'BufLeave', 'FocusLost', 'InsertEnter', 'WinLeave' },
function()
vim.wo.relativenumber = false
end
)
-- # Autocmd group: au.group(group: string, cmds: fn(au) | {event: string, pattern: string, action: string | fn})
-- 1. Where action is a ex-cmd
au.group('PackerGroup', {
{ 'BufWritePost', 'plugin.all.lua', 'source <afile> | PackerCompile' },
})
|
workspace "DXR_SoftShadows"
architecture "x64"
configurations { "Debug", "Release", "Dist" }
startproject "Sandbox"
systemversion "latest"
project "BeLuEngine"
location "BeLuEngine"
kind "StaticLib"
language "C++"
pchheader "stdafx.h"
pchsource "%{prj.location}/src/Headers/stdafx.cpp"
targetdir "bin/%{cfg.buildcfg}/%{prj.name}"
objdir "bin-int/%{cfg.buildcfg}/%{prj.name}"
files { "%{prj.location}/src/**.cpp", "%{prj.location}/src/**.h", "%{prj.location}/src/**.hlsl" }
forceincludes { "stdafx.h" }
staticruntime "On"
filter { "files:**.hlsl" }
flags "ExcludeFromBuild"
filter "configurations:*"
cppdialect "C++17"
includedirs {"Vendor/Include/", "%{prj.location}/src/Headers/"}
libdirs { "Vendor/Lib/**" }
links {
"d3d12",
"dxgi",
"dxcompiler",
"dxguid",
"assimp-vc142-mt",
}
postbuildcommands
{
("{COPY} ../dll ../bin/%{cfg.buildcfg}/Sandbox"),
}
defines{"_CRT_SECURE_NO_DEPRECATE", "_CRT_NONSTDC_NO_DEPRECATE"}
filter "configurations:Debug"
defines { "DEBUG", "BT_USE_DOUBLE_PRECISION" }
symbols "On"
filter "configurations:Release"
defines { "DEBUG", "BT_USE_DOUBLE_PRECISION" }
optimize "On"
filter "configurations:Dist"
defines { "DIST", "BT_USE_DOUBLE_PRECISION" }
optimize "On"
project "Sandbox"
location "Sandbox"
kind "WindowedApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}/%{prj.name}"
objdir "bin-int/%{cfg.buildcfg}/%{prj.name}"
staticruntime "On"
files { "%{prj.location}/src/**.cpp", "%{prj.location}/src/**.h", "%{prj.location}/src/**.hlsl", }
vpaths {["Gamefiles"] = {"*.cpp", "*.h"}}
filter { "files:**.hlsl" }
flags "ExcludeFromBuild"
filter "configurations:*"
cppdialect "C++17"
includedirs {"Vendor/Include/", "BeLuEngine/src/", "BeLuEngine/src/Headers/"}
libdirs { "Vendor/Lib/**" }
links {
"BeLuEngine"
}
postbuildcommands
{
("{COPY} ../dll ../bin/%{cfg.buildcfg}/Sandbox"),
("{COPY} ../bin/%{cfg.buildcfg}/Sandbox ../bin/%{cfg.buildcfg}/PerformanceTest/Sandbox")
}
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
filter "configurations:Release"
defines { "DEBUG" }
optimize "On"
filter "configurations:Dist"
defines { "DIST", "BT_USE_DOUBLE_PRECISION" }
optimize "On"
project "PerformanceTest"
location "PerformanceTest"
kind "ConsoleApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}/%{prj.name}"
objdir "bin-int/%{cfg.buildcfg}/%{prj.name}"
staticruntime "On"
files { "%{prj.location}/src/**.cpp", "%{prj.location}/src/**.h", "%{prj.location}/src/**.hlsl", }
filter { "files:**.hlsl" }
flags "ExcludeFromBuild"
filter "configurations:*"
cppdialect "C++17"
includedirs {"Vendor/Include/", "BeLuEngine/src/"}
libdirs { "Vendor/Lib/**" }
links {
"Sandbox"
}
postbuildcommands
{
("{COPY} ../PerformanceTest/gnuplot/Sample_Data_Timeline.gp ../bin/%{cfg.buildcfg}/PerformanceTest/"),
("{COPY} ../BeLuEngine ../bin/%{cfg.buildcfg}/PerformanceTest/BeLuEngine"),
("{COPY} ../Sandbox ../bin/%{cfg.buildcfg}/PerformanceTest/Sandbox"),
("{COPY} ../Vendor ../bin/%{cfg.buildcfg}/PerformanceTest/Vendor")
}
filter "configurations:Debug"
defines { "DEBUG" }
symbols "On"
debugdir "bin/%{cfg.buildcfg}/%{prj.name}"
filter "configurations:Release"
defines { "DEBUG" }
optimize "On"
filter "configurations:Dist"
defines { "DIST", "BT_USE_DOUBLE_PRECISION" }
optimize "On"
|
Import "Utils/FindRoute.lua"
local small_rooms = {
"A_Combat01",
"A_Combat03",
"A_Combat04",
"A_Combat05",
"A_Combat06",
"A_Combat07",
"A_Combat08A",
"A_Combat09",
"A_Combat10"
}
local c5_boon = {
ItemName = "AphroditeShoutTrait"
}
local requirements = {
Seed = { Min = 2323902, Max = 2323902 },
C1 = { -- different format since Ello's is used for C1 instead of Para's
Type = "Hammer",
SecondRoomRewardStore = "MetaProgress",
FirstRoomChaos = false,
SecondRoomChaos = false,
SecondRoomName = function(roomName)
return matches_one(small_rooms, roomName)
end,
HammerData = {
Options = function(options)
return one_matches({ Name = "GunExplodingSecondaryTrait"}, options)
end
}
},
C2 = {
Offset = { Min = 15, Max = 25 },
Room = {
Waves = 1,
Enemies = function(enemies)
return matches_table({"PunchingBagUnit"}, enemies)
end
},
Exit = {
Reward = "RoomRewardMoneyDrop",
ChaosGate = true,
RoomName = function(roomName)
return matches_one(small_rooms, roomName)
end
}
},
C3 = {
Offset = { Min = 7, Max = 17 },
Room = {
Waves = 1,
Enemies = function(enemies)
return matches_table({"PunchingBagUnit"}, enemies)
end
},
Exit = "SecretDoor" -- special value
},
C4 = {
Offset = { Min = 5, Max = 25 },
Room = {
UpgradeOptions = function(options)
return one_matches({ SecondaryItemName = "ChaosCurseHealthTrait" }, options)
end
},
Exit = {
Reward = "AphroditeUpgrade",
RoomName = "A_Reprieve01"
}
},
C5 = {
Offset = { Min = 6, Max = 26 },
Room = {
UpgradeOptionsReroll = function(reroll_options)
return one_matches(c5_boon, reroll_options)
end
},
Boon = c5_boon,
Exit = { RoomName = "A_Shop01" }
},
C6 = {
Offset = { Min = 5, Max = 25 },
Room = {
HasCharonBag = true,
StoreOptions = function(store_items)
return one_matches({
Name = "HermesUpgradeDrop",
Args = {
UpgradeOptions = function(options)
return one_matches({
Rarity = "Legendary"
}, options)
end
}
}, store_items)
end
}
}
}
FindRoute(requirements)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.